:root {
  --bg-from: #0f0c29;
  --bg-mid: #302b63;
  --bg-to: #24243e;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.95);
  --text-dim: rgba(255, 255, 255, 0.5);
  --accent: #007AFF;
  --accent-light: rgba(0, 122, 255, 0.25);
  --danger: #FF453A;
  --danger-light: rgba(255, 69, 58, 0.2);
  --success: #30D158;
  --success-light: rgba(48, 209, 88, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-mid) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(120, 80, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 122, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* GLASS CARD */
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.brand h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* CARD LINKS */
.card {
  display: block;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}

.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: var(--accent-light);
  color: #5ac8fa;
  border: 1px solid rgba(90, 200, 250, 0.3);
}

.card.danger .tag {
  background: var(--danger-light);
  color: #ff9f0a;
  border-color: rgba(255, 159, 10, 0.3);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* BACK LINK */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 28px;
  text-decoration: none;
  font-weight: 500;
}

.back:hover { opacity: 0.75; }

/* FORM */
form { margin-top: 8px; }

.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.opt { font-weight: 400; opacity: 0.6; }

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 122, 255, 0.08);
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.25); }

textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

button {
  font-family: var(--font);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  width: 100%;
  -webkit-appearance: none;
}

button:hover { opacity: 0.88; }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

/* STATUS */
.status {
  margin-top: 16px;
  font-size: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  display: none;
  line-height: 1.5;
}

.status.show { display: block; }

.status.ok {
  background: var(--success-light);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: var(--success);
}

.status.err {
  background: var(--danger-light);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--danger);
}

/* FOOTER */
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.75; }
