﻿
/* ── THEME VARIABLES ── */
*, *::before, *::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}


[data-theme="midnight"] {
   --bg: #13111e;
   --bg2: #1a1828;
   --border: #2e2a45;
   --text: #ede9ff;
   --text-muted: #7a749e;
   --accent: #a78bfa;
   --accent2: #f472b6;
   --accent3: #34d399;
   --danger: #f87171;
   --danger-bg: rgba(248,113,113,.1);
   --badge: rgba(167,139,250,.15);
   --shadow: 0 8px 32px rgba(0,0,0,.5);
}

[data-theme="aurora"] {
   --bg: #091c1f;
   --bg2: #0c2427;
   --border: #183d42;
   --text: #d0f0f4;
   --text-muted: #4e8a90;
   --accent: #2dd4bf;
   --accent2: #818cf8;
   --accent3: #4ade80;
   --danger: #f87171;
   --danger-bg: rgba(248,113,113,.1);
   --badge: rgba(45,212,191,.12);
   --shadow: 0 8px 32px rgba(0,30,35,.5);
}

[data-theme="ember"] {
   --bg: #fdf8f3;
   --bg2: #f5ede2;
   --border: #e8d9c8;
   --text: #2c1e0f;
   --text-muted: #9c7a5a;
   --accent: #c2410c;
   --accent2: #d97706;
   --accent3: #0d9488;
   --danger: #dc2626;
   --danger-bg: rgba(220,38,38,.08);
   --badge: rgba(194,65,12,.1);
   --shadow: 0 4px 20px rgba(44,30,15,.1);
}

[data-theme="forest"] {
   --bg: #f0f4f0;
   --bg2: #e8efe8;
   --border: #d1ddd1;
   --text: #1a2e1a;
   --text-muted: #6a8a6a;
   --accent: #2d8c4e;
   --accent2: #e67e22;
   --accent3: #8e44ad;
   --danger: #dc2626;
   --danger-bg: rgba(220,38,38,.08);
   --badge: rgba(45,140,78,.1);
   --shadow: 0 4px 20px rgba(26,46,26,.12);
}

[data-theme="pearl"] {
   --bg: #fafafa;
   --bg2: #f3f4f6;
   --border: #e5e7eb;
   --text: #111827;
   --text-muted: #9ca3af;
   --accent: #f59e0b;
   --accent2: #ef4444;
   --accent3: #3b82f6;
   --danger: #dc2626;
   --danger-bg: rgba(220,38,38,.08);
   --badge: rgba(245,158,11,.1);
   --shadow: 0 4px 20px rgba(0,0,0,.08);
}

[data-theme="neon"] {
   --bg: #1a1015;
   --bg2: #221520;
   --border: #3a2535;
   --text: #f5e6ef;
   --text-muted: #9e7090;
   --accent: #e879a8;
   --accent2: #fb923c;
   --accent3: #a3e635;
   --danger: #f87171;
   --danger-bg: rgba(248,113,113,.1);
   --badge: rgba(232,121,168,.15);
   --shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* ── BASE ── */

html, body {
   min-height: 100vh;
   background: var(--bg);
   color: var(--text);
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   display: flex;
   align-items: center;
   justify-content: center;
}

   /* subtle grid bg */
   body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
      opacity: .18;
   }

   /* accent glow behind card */
   body::after {
      content: '';
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -60%);
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 65%);
      pointer-events: none;
   }

/* base card */
.xc {
   background: var(--card-bg);
   border: 1px solid var(--border);
   border-radius: 14px;
   overflow: hidden;
   transition: border-color .2s, box-shadow .2s, transform .2s;
}

   .xc:hover {
      border-color: color-mix(in srgb,var(--accent) 40%,var(--border));
      box-shadow: var(--shadow);
   }

.xc-body {
   padding: 18px;
}

.xc-title {
   font-family: 'Syne',sans-serif;
   font-size: 15px;
   font-weight: 700;
   color: var(--text);
   margin-bottom: 5px;
}

.xc-sub {
   font-size: 12px;
   color: var(--text-muted);
   margin-bottom: 12px;
   line-height: 1.5;
}

.xc-footer {
   padding: 12px 18px;
   border-top: 1px solid var(--border);
   display: flex;
   align-items: center;
   gap: 10px;
}

.xc-header {
   padding: 12px 18px;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

/* CARD */
.card {
   position: relative;
   z-index: 1;
   width: 100%;
   max-width: 400px;
   background: var(--bg2);
   border: 1px solid var(--border);
   border-radius: 16px;
   overflow: hidden;
   box-shadow: var(--shadow);
   animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Danger top stripe */
.danger-stripe {
   height: 3px;
   background: repeating-linear-gradient( 90deg, var(--danger) 0px, var(--danger) 12px, transparent 12px, transparent 18px );
   opacity: .7;
   animation: stripeScroll 1.2s linear infinite;
   background-size: 18px 100%;
}

@keyframes stripeScroll {
   from {
      background-position: 0 0;
   }

   to {
      background-position: 18px 0;
   }
}

/* card header */
.card-head {
   padding: 28px 32px 24px;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.brand {
   display: flex;
   align-items: center;
   gap: 10px;
}

.brand-seal {
   width: 36px;
   height: 36px;
   border: 1.5px solid var(--accent);
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Cormorant Garamond', serif;
   font-size: 17px;
   font-weight: 600;
   color: var(--accent);
   flex-shrink: 0;
   position: relative;
}

   .brand-seal::before {
      content: '';
      position: absolute;
      inset: 3px;
      border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
   }

.brand-name {
   font-family: 'Syne', sans-serif;
   font-weight: 700;
   font-size: 14px;
   letter-spacing: .03em;
   color: var(--text);
   line-height: 1.2;
}

.brand-sub {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
   margin-top: 1px;
}

/* theme dots in header */
.theme-dots {
   display: flex;
   gap: 5px;
   align-items: center;
}

.tdot {
   width: 11px;
   height: 11px;
   border-radius: 50%;
   cursor: pointer;
   border: 1.5px solid transparent;
   transition: transform .18s, border-color .18s;
   flex-shrink: 0;
}

   .tdot:hover {
      transform: scale(1.35);
   }

   .tdot.on {
      border-color: var(--text);
   }

/* alert strip */
.alert-strip {
   background: color-mix(in srgb, #f87171 12%, var(--bg2));
   border-bottom: 1px solid color-mix(in srgb, #f87171 30%, var(--border));
   padding: 10px 32px;
   display: flex;
   align-items: center;
   gap: 10px;
}

.alert-dot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: #f87171;
   flex-shrink: 0;
   animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
   0%,100% {
      opacity: 1;
   }

   50% {
      opacity: .3;
   }
}

.alert-text {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: #f87171;
   letter-spacing: .12em;
   text-transform: uppercase;
}

/* step indicator */
.steps {
   display: flex;
   align-items: center;
   gap: 0;
   padding: 0 32px;
   border-bottom: 1px solid var(--border);
   overflow: hidden;
}

.step {
   flex: 1;
   padding: 10px 0;
   text-align: center;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   letter-spacing: .12em;
   text-transform: uppercase;
   color: var(--text-muted);
   position: relative;
   transition: color .3s;
}

   .step.active {
      color: var(--accent);
   }

   .step.done {
      color: var(--accent3);
   }

   .step::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: transparent;
      transition: background .3s;
   }

   .step.active::after {
      background: var(--accent);
   }

   .step.done::after {
      background: var(--accent3);
   }

.step-sep {
   font-family: 'DM Mono', monospace;
   font-size: 10px;
   color: var(--border);
   flex-shrink: 0;
   padding-bottom: 2px;
}

/* card body */
.card-body {
   padding: 28px 32px;
}


/* Lock icon */
.icon-wrap {
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 26px;
}

.icon-ring {
   width: 64px;
   height: 64px;
   border: 1.5px solid var(--danger);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   animation: popIn .55s cubic-bezier(.175,.885,.32,1.275) .1s both;
}

@keyframes popIn {
   from {
      transform: scale(.3) rotate(-15deg);
      opacity: 0;
   }

   to {
      transform: scale(1) rotate(0deg);
      opacity: 1;
   }
}

.icon-ring::before {
   content: '';
   position: absolute;
   inset: -6px;
   border-radius: 50%;
   border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent);
   animation: ringPulse 3s ease-out .7s infinite;
}

@keyframes ringPulse {
   0% {
      transform: scale(1);
      opacity: .5;
   }

   100% {
      transform: scale(1.4);
      opacity: 0;
   }
}

.icon-inner {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: var(--danger-bg);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--danger);
}

/* shake on load */
.icon-ring {
   animation: popIn .55s cubic-bezier(.175,.885,.32,1.275) .1s both, shake .4s ease .7s;
}

@keyframes shake {
   0%,100% {
      transform: translateX(0);
   }

   20% {
      transform: translateX(-5px) rotate(-2deg);
   }

   40% {
      transform: translateX(5px) rotate(2deg);
   }

   60% {
      transform: translateX(-3px);
   }

   80% {
      transform: translateX(3px);
   }
}

/* lock icon */
.lock-icon {
   width: 68px;
   height: 68px;
   border-radius: 50%;
   background: color-mix(in srgb, #f87171 10%, var(--bg));
   border: 1.5px solid color-mix(in srgb, #f87171 40%, var(--border));
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 28px;
   margin-bottom: 20px;
   animation: pop .5s .1s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes pop {
   from {
      transform: scale(.4) rotate(-15deg);
      opacity: 0;
   }

   to {
      transform: scale(1) rotate(0);
      opacity: 1;
   }
}

/* avatar ring */
.avatar-ring {
   position: relative;
   margin-bottom: 20px;
}

.avatar {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   background: var(--badge);
   border: 1.5px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Syne', sans-serif;
   font-weight: 700;
   font-size: 22px;
   color: var(--accent);
   letter-spacing: .02em;
   animation: pop .5s .1s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes pop {
   from {
      transform: scale(.5);
      opacity: 0;
   }

   to {
      transform: scale(1);
      opacity: 1;
   }
}

/* avatar ring */
.avatar-ring {
   position: relative;
   margin-bottom: 20px;
}

.avatar {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   background: var(--badge);
   border: 1.5px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Syne', sans-serif;
   font-weight: 700;
   font-size: 22px;
   color: var(--accent);
   letter-spacing: .02em;
   animation: pop .5s .1s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes pop {
   from {
      transform: scale(.5);
      opacity: 0;
   }

   to {
      transform: scale(1);
      opacity: 1;
   }
}

.avatar-status {
   position: absolute;
   bottom: 1px;
   right: 1px;
   width: 14px;
   height: 14px;
   border-radius: 50%;
   background: var(--accent3);
   border: 2px solid var(--bg2);
}

/* user info */
.user-name {
   font-family: 'Syne', sans-serif;
   font-weight: 700;
   font-size: 18px;
   letter-spacing: .02em;
   color: var(--text);
   margin-bottom: 3px;
}

.user-email {
   font-family: 'DM Mono', monospace;
   font-size: 10px;
   color: var(--accent);
   letter-spacing: .06em;
   margin-bottom: 4px;
}

.user-role {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .1em;
   text-transform: uppercase;
   margin-bottom: 24px;
}

/* divider */
.divider {
   width: 100%;
   height: 1px;
   background: var(--border);
   margin-bottom: 20px;
}

/* attempt grid */
.attempt-grid {
   width: 100%;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1px;
   background: var(--border);
   border: 1px solid color-mix(in srgb, #f87171 30%, var(--border));
   border-radius: 10px;
   overflow: hidden;
   margin-bottom: 22px;
}

.attempt-cell {
   background: var(--bg);
   padding: 10px 14px;
   text-align: left;
}

.attempt-lbl {
   font-family: 'DM Mono', monospace;
   font-size: 8px;
   color: var(--text-muted);
   letter-spacing: .12em;
   text-transform: uppercase;
   margin-bottom: 3px;
}

.attempt-val {
   font-family: 'DM Mono', monospace;
   font-size: 10px;
   color: var(--text);
   letter-spacing: .04em;
}

   .attempt-val.warn {
      color: #fb923c;
   }

   .attempt-val.err {
      color: #f87171;
   }

/* countdown timer */
.timer-wrap {
   width: 100%;
   margin-bottom: 22px;
}

.timer-label {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .1em;
   text-transform: uppercase;
   margin-bottom: 8px;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

   .timer-label span {
      color: #f87171;
      font-size: 11px;
      font-weight: 400;
   }

.timer-track {
   width: 100%;
   height: 4px;
   background: var(--border);
   border-radius: 2px;
   overflow: hidden;
}

.timer-bar {
   height: 100%;
   border-radius: 2px;
   background: linear-gradient(90deg, #f87171, #fb923c);
   transition: width 1s linear;
}

/* Error code box */
.error-box {
   background: var(--bg);
   border: 1px solid var(--border);
   border-left: 3px solid var(--danger);
   border-radius: 8px;
   padding: 12px 14px;
   margin-bottom: 20px;
   animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .45s both;
}

.error-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 4px;
}

   .error-row:last-child {
      margin-bottom: 0;
   }

.error-key {
   font-family: 'DM Mono', monospace;
   font-size: 8px;
   color: var(--text-muted);
   letter-spacing: .12em;
   text-transform: uppercase;
}

.error-val {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text);
   letter-spacing: .04em;
}

   .error-val.red {
      color: var(--danger);
   }

/* Reasons */
.reasons {
   margin-bottom: 22px;
   animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .5s both;
}

.reasons-label {
   font-family: 'DM Mono', monospace;
   font-size: 8px;
   color: var(--text-muted);
   letter-spacing: .14em;
   text-transform: uppercase;
   margin-bottom: 9px;
   display: flex;
   align-items: center;
   gap: 8px;
}

   .reasons-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
   }

.reason-item {
   display: flex;
   align-items: flex-start;
   gap: 9px;
   padding: 7px 0;
   border-bottom: 1px solid var(--border);
}

   .reason-item:last-child {
      border-bottom: none;
   }

.reason-dot {
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: var(--border);
   flex-shrink: 0;
   margin-top: 5px;
}

.reason-item.highlight .reason-dot {
   background: var(--danger);
}

.reason-text {
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   font-size: 12px;
   color: var(--text-muted);
   line-height: 1.5;
}

.reason-item.highlight .reason-text {
   color: var(--text);
}

/* session info */
.session-grid {
   width: 100%;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1px;
   background: var(--border);
   border: 1px solid var(--border);
   border-radius: 10px;
   overflow: hidden;
   margin-bottom: 24px;
}

.session-cell {
   background: var(--bg);
   padding: 10px 14px;
   text-align: left;
}

.session-lbl {
   font-family: 'DM Mono', monospace;
   font-size: 8px;
   color: var(--text-muted);
   letter-spacing: .12em;
   text-transform: uppercase;
   margin-bottom: 3px;
}

.session-val {
   font-family: 'DM Mono', monospace;
   font-size: 10px;
   color: var(--text);
   letter-spacing: .04em;
}

   .session-val.ok {
      color: var(--accent3);
   }

.form-ey {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--accent);
   letter-spacing: .2em;
   text-transform: uppercase;
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 8px;
}

   .form-ey::before {
      content: '';
      display: block;
      width: 16px;
      height: 1px;
      background: var(--accent);
   }

.form-h {
   font-family: 'Cormorant Garamond', serif;
   font-weight: 300;
   font-size: 36px;
   line-height: 1;
   letter-spacing: -.02em;
   color: var(--text);
   margin-bottom: 4px;
}

   .form-h em {
      font-style: italic;
      color: var(--accent);
   }

.form-desc {
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   font-size: 12px;
   color: var(--text-muted);
   line-height: 1.6;
   margin-bottom: 22px;
}

/* social */
.socials {
   display: flex;
   gap: 7px;
   margin-bottom: 16px;
}

.s-btn {
   flex: 1;
   height: 36px;
   background: var(--bg);
   border: 1px solid var(--border);
   color: var(--text-muted);
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   letter-spacing: .08em;
   border-radius: 8px;
   transition: all .18s;
}

   .s-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--badge);
   }

/* divider */
.or {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 16px;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .14em;
}

   .or::before, .or::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
   }

/* fields */
.field {
   margin-bottom: 13px;
}

.f-label {
   display: flex;
   align-items: center;
   justify-content: space-between;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   letter-spacing: .12em;
   color: var(--text-muted);
   text-transform: uppercase;
   margin-bottom: 6px;
}

   .f-label a {
      color: var(--accent);
      text-decoration: none;
      transition: opacity .15s;
   }

      .f-label a:hover {
         opacity: .7;
      }

.f-wrap {
   position: relative;
}

.f-in {
   width: 100%;
   height: 44px;
   background: var(--bg);
   border: 1px solid var(--border);
   color: var(--text);
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   font-size: 14px;
   padding: 0 38px 0 13px;
   outline: none;
   border-radius: 8px;
   transition: border-color .18s, background .18s;
}

   .f-in::placeholder {
      color: var(--text-muted);
      font-style: italic;
   }

   .f-in:focus {
      border-color: var(--accent);
      background: var(--badge);
   }

   .f-in.err {
      border-color: #f87171;
   }

.f-suf {
   position: absolute;
   right: 11px;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   color: var(--text-muted);
   cursor: pointer;
   font-size: 12px;
   transition: color .15s;
   padding: 2px;
   line-height: 1;
}

   .f-suf:hover {
      color: var(--accent);
   }

.f-err {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: #f87171;
   letter-spacing: .05em;
   margin-top: 4px;
   display: none;
}

   .f-err.show {
      display: block;
   }

/* hint text below field */
.f-hint {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .06em;
   margin-top: 6px;
   line-height: 1.6;
}


/* remember */
.rem {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 18px;
}

.chk {
   width: 13px;
   height: 13px;
   background: var(--bg);
   border: 1px solid var(--border);
   appearance: none;
   -webkit-appearance: none;
   cursor: pointer;
   position: relative;
   flex-shrink: 0;
   border-radius: 3px;
   transition: border-color .15s, background .15s;
}

   .chk:checked {
      background: var(--accent);
      border-color: var(--accent);
   }

      .chk:checked::after {
         content: '';
         position: absolute;
         left: 2px;
         top: .5px;
         width: 5px;
         height: 7px;
         border: 1.5px solid var(--bg);
         border-top: none;
         border-left: none;
         transform: rotate(45deg);
      }

.rem-lbl {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
}

/* password strength */
.strength-wrap {
   margin-top: 8px;
}

.strength-bars {
   display: flex;
   gap: 4px;
   margin-bottom: 5px;
}

.sbar {
   flex: 1;
   height: 3px;
   border-radius: 2px;
   background: var(--border);
   transition: background .3s;
}

   .sbar.weak {
      background: #f87171;
   }

   .sbar.fair {
      background: #fb923c;
   }

   .sbar.good {
      background: #facc15;
   }

   .sbar.strong {
      background: var(--accent3);
   }

.strength-lbl {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
}

/* requirements checklist */
.reqs {
   margin-top: 10px;
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.req {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .06em;
   display: flex;
   align-items: center;
   gap: 6px;
   transition: color .2s;
}

   .req.met {
      color: var(--accent3);
   }

.req-dot {
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: var(--border);
   flex-shrink: 0;
   transition: background .2s;
}

.req.met .req-dot {
   background: var(--accent3);
}

/* submit button */
.btn {
   width: 100%;
   height: 48px;
   background: var(--accent);
   border: none;
   cursor: pointer;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   font-size: 16px;
   letter-spacing: .06em;
   color: var(--bg);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   position: relative;
   overflow: hidden;
   border-radius: 8px;
   transition: all .2s;
   margin-bottom: 14px;
}

   .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      transform: translateX(-100%);
      transition: transform .5s;
   }

   .btn:hover::before {
      transform: translateX(100%);
   }

   .btn:hover {
      background: var(--accent);
      border: none;
      color: var(--bg);
      filter: brightness(1.08);
      box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
      transform: translateY(-1px);
   }

   .btn:active {
      transform: translateY(0);
   }

.btn-arrow {
   transition: transform .2s;
}

.btn:hover .btn-arrow {
   transform: translateX(4px);
}

.btn.loading {
   pointer-events: none;
}

   .btn.loading .btn-lbl {
      opacity: 0;
   }

   .btn.loading .btn-spin {
      display: block;
   }

/* buttons */
.btn-logout {
   width: 100%;
   height: 48px;
   background: color-mix(in srgb, #f87171 85%, var(--bg));
   border: 1px solid #f87171;
   color: #fff;
   cursor: pointer;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   font-size: 16px;
   letter-spacing: .06em;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   position: relative;
   overflow: hidden;
   border-radius: 8px;
   transition: all .2s;
   margin-bottom: 10px;
}

   .btn-logout::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
      transform: translateX(-100%);
      transition: transform .5s;
   }

   .btn-logout:hover::before {
      transform: translateX(100%);
   }

   .btn-logout:hover {
      background: #f87171;
      box-shadow: 0 6px 20px rgba(248,113,113,.3);
      transform: translateY(-1px);
   }

   .btn-logout:active {
      transform: translateY(0);
   }

   .btn-logout.loading {
      pointer-events: none;
   }

      .btn-logout.loading .btn-lbl {
         opacity: 0;
      }

      .btn-logout.loading .btn-spin {
         display: block;
      }

.btn-main {
   width: 100%;
   height: 48px;
   background: var(--accent);
   border: none;
   cursor: pointer;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   font-size: 16px;
   letter-spacing: .06em;
   color: var(--bg);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   position: relative;
   overflow: hidden;
   border-radius: 8px;
   transition: all .2s;
}

   .btn-main::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      transform: translateX(-100%);
      transition: transform .5s;
   }

   .btn-main:hover::before {
      transform: translateX(100%);
   }

   .btn-main:hover {
      filter: brightness(1.08);
      box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
      transform: translateY(-1px);
   }

   .btn-main:active {
      transform: translateY(0);
   }

.btn-arrow {
   transition: transform .2s;
}

.btn-main:hover .btn-arrow {
   transform: translateX(4px);
}

.btn-main:disabled {
   opacity: .35;
   cursor: not-allowed;
   pointer-events: none;
   transform: none;
   filter: none;
   box-shadow: none;
}

.btn-spin {
   display: none;
   position: absolute;
   width: 16px;
   height: 16px;
   border: 2px solid rgba(0,0,0,.15);
   border-top-color: var(--bg);
   border-radius: 50%;
   animation: spin .7s linear infinite;
}

@keyframes spin {
   to {
      transform: rotate(360deg);
   }
}

/* ghost/outline back button */
.btn-ghost {
   width: 100%;
   height: 40px;
   background: transparent;
   border: 1px solid var(--border);
   cursor: pointer;
   font-family: 'DM Mono', monospace;
   font-size: 10px;
   letter-spacing: .1em;
   color: var(--text-muted);
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   transition: all .18s;
}

   .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--badge);
   }

   .btn-ghost:disabled {
      opacity: .35;
      cursor: not-allowed;
      pointer-events: none;
   }

/* support note */
.support-note {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
   line-height: 1.7;
   margin-top: 14px;
   text-align: center;
}

   .support-note a {
      color: var(--accent);
      text-decoration: none;
   }

      .support-note a:hover {
         text-decoration: underline;
      }

/* done view */
.done-wrap {
   display: none;
   flex-direction: column;
   align-items: center;
   text-align: center;
   padding: 4px 0 16px;
   animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}

   .done-wrap.show {
      display: flex;
   }

.done-icon {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   border: 1.5px solid var(--accent3);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 26px;
   color: var(--accent3);
   margin-bottom: 18px;
   animation: pop .5s .1s cubic-bezier(.175,.885,.32,1.275) both;
}

.done-title {
   font-family: 'Cormorant Garamond', serif;
   font-weight: 300;
   font-size: 28px;
   color: var(--text);
   margin-bottom: 8px;
}

.done-desc {
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   font-size: 12px;
   color: var(--text-muted);
   line-height: 1.7;
   margin-bottom: 22px;
   max-width: 260px;
}

.done-cd {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--accent);
   letter-spacing: .14em;
   margin-bottom: 20px;
}

/* signup note */
.signup {
   text-align: center;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .1em;
   line-height: 1.8;
}

   .signup a {
      color: var(--accent);
      text-decoration: none;
   }

      .signup a:hover {
         text-decoration: underline;
      }

/* sent state */
.sent-wrap {
   display: none;
   flex-direction: column;
   align-items: center;
   text-align: center;
   padding: 8px 0 20px;
   animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}

   .sent-wrap.show {
      display: flex;
   }

.sent-icon {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   border: 1.5px solid var(--accent3);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 26px;
   color: var(--accent3);
   margin-bottom: 18px;
   animation: pop .5s .1s cubic-bezier(.175,.885,.32,1.275) both;
}

.sent-title {
   font-family: 'Cormorant Garamond', serif;
   font-weight: 300;
   font-size: 28px;
   color: var(--text);
   margin-bottom: 8px;
}

.sent-desc {
   font-family: 'DM Sans', sans-serif;
   font-weight: 300;
   font-size: 12px;
   color: var(--text-muted);
   line-height: 1.7;
   margin-bottom: 6px;
   max-width: 300px;
}

.sent-email {
   font-family: 'DM Mono', monospace;
   font-size: 11px;
   color: var(--accent);
   letter-spacing: .04em;
   margin-bottom: 22px;
}

.resend-row {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
   margin-top: 14px;
}

   .resend-row a {
      color: var(--accent);
      cursor: pointer;
      text-decoration: none;
   }

      .resend-row a:hover {
         text-decoration: underline;
      }

/* countdown timer pill */
.countdown {
   display: inline-flex;
   align-items: center;
   gap: 5px;
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
   margin-top: 10px;
}

.countdown-bar-wrap {
   width: 80px;
   height: 2px;
   background: var(--border);
   border-radius: 1px;
}

.countdown-bar {
   height: 100%;
   background: var(--accent3);
   border-radius: 1px;
   transition: width 1s linear;
}

/* card footer */
.card-foot {
   padding: 12px 32px;
   border-top: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.foot-l, .foot-r {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--text-muted);
   letter-spacing: .08em;
   opacity: .7;
}

/* success overlay */
.success {
   position: absolute;
   inset: 0;
   z-index: 10;
   background: var(--bg2);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 12px;
   opacity: 0;
   pointer-events: none;
   transition: opacity .4s;
   border-radius: 16px;
}

   .success.on {
      opacity: 1;
      pointer-events: all;
   }

.s-ring {
   width: 52px;
   height: 52px;
   border: 1.5px solid var(--accent);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Cormorant Garamond', serif;
   font-size: 22px;
   color: var(--accent);
   animation: pop .5s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes pop {
   from {
      transform: scale(.3) rotate(-12deg);
      opacity: 0;
   }

   to {
      transform: scale(1);
      opacity: 1;
   }
}

.s-title {
   font-family: 'Cormorant Garamond', serif;
   font-weight: 300;
   font-size: 22px;
   color: var(--text);
}

.s-code {
   font-family: 'DM Mono', monospace;
   font-size: 9px;
   color: var(--accent);
   letter-spacing: .14em;
}
