/* ═══════════════════════════════════
   BRAND TOKENS
═══════════════════════════════════ */
:root {
  --brand-start:   #1B75BB;
  --brand-mid-1:   #197ABF;
  --brand-mid-2:   #1287CC;
  --brand-mid-3:   #079EE0;
  --brand-end:     #00ADEE;

  --brand-dark:    #0F5A96;
  --brand-deep:    #0A3F6E;
  --brand-dim:     rgba(0,173,238,0.10);
  --brand-glow:    rgba(0,173,238,0.22);
  --brand-border:  rgba(0,173,238,0.28);

  --grad-brand:   linear-gradient(90deg, #1B75BB 0%, #197ABF 25%, #1287CC 54%, #079EE0 84%, #00ADEE 100%);
  --grad-brand-d: linear-gradient(135deg, #1B75BB 0%, #00ADEE 100%);

  --charcoal:    #231F20;
  --charcoal-2:  #3A3637;
  --charcoal-3:  #5C5759;

  --shell:       #0C1A2E;
  --shell-2:     #112240;
  --shell-3:     #16304F;
  --shell-4:     #1E3D5C;

  --off-white:   #F5F7FA;
  --white:       #FFFFFF;
  --light-border:#DDE3EC;
  --light-muted: #8A97A8;
  --light-text:  #2E3A4A;

  --success:     #17A754;
  --danger:      #D93025;
  --warning:     #D18B0F;

  --font-display: 'Syne', sans-serif;
  --font-body:    'IBM Plex Sans', 'Noto Sans Arabic', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--shell);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
button { font-family: var(--font-body); cursor: pointer; }
input, select { font-family: var(--font-body); }
a { text-decoration: none; }

/* ═══════════════════════════════════
   SHARED UI COMPONENTS
═══════════════════════════════════ */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 24px; height: 46px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.18s;
  white-space: nowrap; text-decoration: none;
}
.btn-brand {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 18px var(--brand-glow);
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(0,173,238,0.35); filter: brightness(1.06); }
.btn-brand:active { transform: translateY(0); filter: brightness(0.97); }

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
}
.btn-outline-light:hover { border-color: var(--brand-end); color: var(--brand-end); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
.btn-ghost:hover { background: rgba(255,255,255,0.11); color: #fff; }

.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; border-radius: 12px; }

/* Form controls */
.field-block { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--light-muted); margin-bottom: 6px;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.field-label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.field-wrap { position: relative; }
.field-pfx {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #9BAAB8; font-size: 16px; pointer-events: none; line-height: 1;
}
.field-sfx {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 13px;
  cursor: pointer; background: none; border: none;
  color: #9BAAB8; font-size: 15px; transition: color 0.15s;
}
.field-sfx:hover { color: var(--light-text); }
.field {
  width: 100%; height: 50px; padding: 0 13px 0 42px;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius); font-size: 14px;
  color: var(--light-text); background: var(--white);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
}
.field:focus {
  border-color: var(--brand-mid-2);
  box-shadow: 0 0 0 3px rgba(18,135,204,0.14);
}
.field.no-pfx { padding-left: 13px; }
.field.has-sfx { padding-right: 42px; }
.field.is-error { border-color: var(--danger); }
.field.is-error:focus { box-shadow: 0 0 0 3px rgba(217,48,37,0.12); }
.field-err {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--danger); margin-top: 5px;
}
.field-hint { font-size: 12px; color: var(--light-muted); margin-top: 5px; }

/* Checkbox */
.check-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: #5A6877; cursor: pointer;
}
.check-row input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--brand-mid-2); cursor: pointer;
}

/* Divider */
.or-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #B0BBCA; margin: 22px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--light-border);
}

/* Alert banner */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 18px; border: 1px solid;
  line-height: 1.5;
}
.alert-err  { background: rgba(217,48,37,0.07); border-color: rgba(217,48,37,0.22); color: var(--danger); }
.alert-ok   { background: rgba(23,167,84,0.07); border-color: rgba(23,167,84,0.22); color: var(--success); }
.alert-info { background: var(--brand-dim); border-color: var(--brand-border); color: var(--brand-mid-2); }

/* ═══════════════════════════════════
   LANDING PAGE
═══════════════════════════════════ */

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; padding: 0 6%;
  display: flex; align-items: center; gap: 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.sticky {
  background: rgba(12,26,46,0.94);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,0.07);
}
.nav-brand { flex-shrink: 0; cursor: pointer; }
.nav-links {
  display: flex; gap: 28px; margin: 0 auto;
}
.nav-link {
  font-size: 14px; color: rgba(255,255,255,0.58); font-weight: 500;
  cursor: pointer; transition: color 0.15s;
}
.nav-link:hover { color: var(--brand-end); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; overflow: hidden; margin-right: 4px;
}
.lang-btn {
  padding: 5px 11px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.45); background: none;
  border: none; cursor: pointer; transition: all 0.15s;
  font-family: var(--font-body);
}
.lang-btn.on { background: var(--grad-brand); color: #fff; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 6% 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(0,0,0,0.6), transparent);
}
.hero-bg-glow-1 {
  position: absolute; right: -8%; top: -15%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,173,238,0.09) 0%, transparent 68%);
}
.hero-bg-glow-2 {
  position: absolute; left: -5%; bottom: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,117,187,0.07) 0%, transparent 68%);
}
.hero-brand-line {
  position: absolute; left: 6%; top: 50%;
  width: calc(100% - 12%); height: 1px;
  background: var(--grad-brand);
  opacity: 0.12; pointer-events: none;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 480px;
  gap: 60px; align-items: center;
  width: 100%; position: relative; z-index: 2;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  animation: riseIn 0.6s ease both;
}
.hero-eyebrow-pip { display: flex; gap: 3px; }
.hero-eyebrow-pip span {
  width: 18px; height: 3px; border-radius: 3px;
  background: var(--grad-brand);
}
.hero-eyebrow-pip span:nth-child(2) { opacity: 0.65; width: 12px; }
.hero-eyebrow-pip span:nth-child(3) { opacity: 0.35; width: 8px; }
.hero-eyebrow-text {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--brand-end); letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 62px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px; color: #fff;
  animation: riseIn 0.6s 0.08s ease both;
}
.hero-h1 .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,0.55); max-width: 430px;
  margin-top: 18px;
  animation: riseIn 0.6s 0.16s ease both;
}
.hero-cta {
  display: flex; gap: 12px; margin-top: 34px;
  animation: riseIn 0.6s 0.24s ease both;
}
.hero-trust {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px; font-size: 12px; color: rgba(255,255,255,0.35);
  animation: riseIn 0.6s 0.32s ease both;
}
.hero-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); }

/* Right visual card */
.hero-card {
  background: rgba(22,48,79,0.65);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,173,238,0.06),
    0 32px 64px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  animation: riseIn 0.8s 0.12s ease both;
}
.card-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(12,26,46,0.5);
}
.card-topbar-dots { display: flex; gap: 5px; }
.card-topbar-dots span { width: 9px; height: 9px; border-radius: 50%; }
.card-topbar-dots span:nth-child(1) { background: #FF5F57; }
.card-topbar-dots span:nth-child(2) { background: #FFBD2E; }
.card-topbar-dots span:nth-child(3) { background: #28C840; }
.card-topbar-label {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.08em;
}
.card-topbar-live {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; color: #28C840;
}
.card-topbar-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #28C840;
  animation: pulse-dot 2s infinite;
}

.wh-section { padding: 14px 16px; }
.wh-section-label {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.3); letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 9px;
}
.wh-grid { display: grid; gap: 3px; }
.wh-cell {
  border-radius: 3px; height: 13px;
  transition: background 0.4s;
}
.wh-cell.e  { background: rgba(255,255,255,0.05); }
.wh-cell.a  { background: rgba(18,135,204,0.55); }
.wh-cell.af { background: #1287CC; box-shadow: 0 0 5px rgba(18,135,204,0.5); }
.wh-cell.c  { background: rgba(0,173,238,0.45); }
.wh-cell.p  { background: rgba(27,117,187,0.65); }
.wh-cell.x  { background: transparent; }

.wh-legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.wh-leg-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255,255,255,0.38); font-family: var(--font-mono); }
.wh-leg-dot { width: 8px; height: 8px; border-radius: 2px; }

.card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.card-stat {
  padding: 12px 14px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.card-stat:last-child { border-right: none; }
.card-stat-val {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-stat-label { font-size: 9px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 2px; }

.card-ledger { padding: 0 16px 14px; }
.ledger-row-mini {
  display: grid; grid-template-columns: 1.5fr 1fr 70px 52px;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-mono); font-size: 11px; align-items: center;
}
.ledger-row-mini:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.ledger-row-mini:last-child { border-bottom: none; }
.lr-loc { color: rgba(255,255,255,0.65); }
.lr-prod { color: rgba(255,255,255,0.35); font-size: 10px; }
.lr-qty-d { color: #4ADE80; }
.lr-qty-c { color: #F87171; }
.lr-type { font-size: 10px; color: rgba(255,255,255,0.28); text-align: right; }
.ledger-balance {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 7px 0;
  font-family: var(--font-mono); font-size: 11px;
  color: #4ADE80;
}
.ledger-balance span:first-child { color: rgba(255,255,255,0.28); }

/* ── FEATURES ── */
.features {
  padding: 96px 6%;
  background: linear-gradient(180deg, var(--shell) 0%, var(--shell-2) 100%);
  position: relative;
}
.features::before {
  content: '';
  position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: var(--grad-brand); opacity: 0.18;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--brand-end); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700; letter-spacing: -0.7px; color: #fff; line-height: 1.15;
}
.section-h2 .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { font-size: 15px; color: rgba(255,255,255,0.45); margin-top: 12px; max-width: 460px; margin-left: auto; margin-right: auto; }

.feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feat-card {
  background: rgba(12,26,46,0.7);
  padding: 30px 26px; position: relative;
  transition: background 0.2s;
}
.feat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.feat-card:hover { background: rgba(18,34,58,0.9); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
}
.feat-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.feat-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ── LEDGER CALLOUT ── */
.ledger-section {
  padding: 96px 6%;
  background: var(--shell-2);
  position: relative;
}
.ledger-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-brand); opacity: 0.15;
}
.ledger-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; max-width: 1080px; margin: 0 auto;
}
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.check-item { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: rgba(255,255,255,0.65); }
.check-circle {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-dim); border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--brand-end); flex-shrink: 0; margin-top: 2px;
}
.ledger-table-full {
  background: rgba(10,20,36,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--font-mono);
}
.lt-head {
  background: var(--brand-dim); border-bottom: 1px solid var(--brand-border);
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
}
.lt-head-ref { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.lt-head-status { font-size: 10px; color: #4ADE80; }
.lt-cols {
  display: grid; grid-template-columns: 1.8fr 1.3fr 1fr 70px;
  padding: 8px 16px; background: rgba(0,0,0,0.2);
  font-size: 10px; color: rgba(255,255,255,0.28); letter-spacing: 0.07em; text-transform: uppercase;
}
.lt-row {
  display: grid; grid-template-columns: 1.8fr 1.3fr 1fr 70px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; align-items: center;
}
.lt-row:last-of-type { border-bottom: none; }
.lt-loc { color: rgba(255,255,255,0.75); }
.lt-prod { font-size: 11px; color: rgba(255,255,255,0.4); }
.lt-d { color: #4ADE80; font-weight: 500; }
.lt-c { color: #F87171; font-weight: 500; }
.lt-type { font-size: 10px; color: rgba(255,255,255,0.28); }
.lt-sum {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 10px 16px;
  background: rgba(74,222,128,0.06);
  border-top: 1px solid rgba(74,222,128,0.18);
  font-size: 12px;
}
.lt-sum-lbl { color: rgba(255,255,255,0.3); }
.lt-sum-val { color: #4ADE80; font-weight: 600; }

/* ── METRICS ── */
.metrics-strip {
  padding: 64px 6%;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--shell);
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; max-width: 960px; margin: 0 auto;
  text-align: center;
}
.metric-card {
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.metric-card:last-child { border-right: none; }
.metric-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 800;
  line-height: 1; letter-spacing: -1px;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-lbl { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 8px; }
.metric-sub { font-size: 11px; color: rgba(255,255,255,0.22); margin-top: 3px; }

/* ── FOOTER ── */
.footer {
  background: var(--shell-2);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 36px 6%;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.3); cursor: pointer; transition: color 0.15s; }
.footer-link:hover { color: var(--brand-end); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════
   AUTH SHELL
═══════════════════════════════════ */
.auth-wrap {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 460px;
}

.auth-left {
  background: var(--shell-2);
  display: flex; flex-direction: column; padding: 44px 52px;
  position: relative; overflow: hidden;
}
.auth-left-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-left-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-left-glow {
  position: absolute; right: -10%; bottom: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,173,238,0.07) 0%, transparent 70%);
}
.auth-brand-line {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--grad-brand); opacity: 0.18;
}
.auth-brand-line.top { top: 96px; }
.auth-brand-line.bot { bottom: 96px; }

.auth-left-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; position: relative; z-index: 2;
  padding-top: 40px;
}
.auth-tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; color: #fff;
  margin-bottom: 16px;
}
.auth-tagline .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline-sub { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 380px; margin-bottom: 32px; }
.auth-feat-list { display: flex; flex-direction: column; gap: 12px; }
.auth-feat { display: flex; align-items: flex-start; gap: 11px; }
.auth-feat-chk {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-dim); border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--brand-end); flex-shrink: 0; margin-top: 2px;
}
.auth-feat-text { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.auth-feat-text strong { color: rgba(255,255,255,0.82); font-weight: 500; }

.auth-widget {
  margin-top: 36px;
  background: rgba(10,20,36,0.65);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.auth-widget-top {
  display: flex; justify-content: space-between;
  margin-bottom: 10px;
}
.auth-widget-label { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.09em; text-transform: uppercase; }
.auth-widget-live { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: #28C840; }
.auth-widget-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #28C840; animation: pulse-dot 2s infinite; }
.auth-widget-stats { display: flex; gap: 22px; }
.auth-widget-stat-val { font-family: var(--font-mono); font-size: 19px; font-weight: 500; background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-widget-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.28); }

.auth-right {
  background: var(--off-white);
  display: flex; flex-direction: column;
  padding: 44px 48px; position: relative;
}
.auth-right-logo { margin-bottom: 40px; }
.auth-right-header { margin-bottom: 28px; }
.auth-h1 {
  font-family: var(--font-display); font-size: 24px;
  font-weight: 800; color: var(--charcoal);
  letter-spacing: -0.4px; margin-bottom: 7px;
}
.auth-sub { font-size: 13px; color: var(--light-muted); line-height: 1.6; }
.auth-sub a { color: var(--brand-mid-2); font-weight: 600; cursor: pointer; }
.auth-sub a:hover { color: var(--brand-dark); text-decoration: underline; }

.auth-btn {
  width: 100%; height: 50px;
  background: var(--grad-brand);
  color: #fff; font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--radius);
  cursor: pointer; letter-spacing: 0.02em;
  transition: all 0.18s;
  box-shadow: 0 4px 18px var(--brand-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,173,238,0.38); filter: brightness(1.05); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.auth-btn.secondary {
  background: white;
  color: var(--light-text);
  border: 1.5px solid var(--light-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.auth-btn.secondary:hover { border-color: var(--brand-mid-2); box-shadow: 0 4px 14px rgba(18,135,204,0.18); }

.forgot-link {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--light-muted);
  font-family: var(--font-body); padding: 0;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--brand-mid-2); }

/* OTP digits */
.otp-row { display: flex; gap: 9px; margin: 4px 0 18px; }
.otp-dig {
  flex: 1; height: 56px; border-radius: var(--radius);
  border: 1.5px solid var(--light-border); background: white;
  text-align: center; font-size: 22px; font-family: var(--font-mono);
  font-weight: 600; color: var(--charcoal); outline: none; transition: all 0.18s;
}
.otp-dig:focus {
  border-color: var(--brand-mid-2);
  box-shadow: 0 0 0 3px rgba(18,135,204,0.14);
}

/* Step indicator */
.steps { display: flex; align-items: center; margin-bottom: 8px; }
.step-node {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; transition: all 0.3s;
}
.step-node.done { background: var(--success); color: #fff; }
.step-node.active {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 2px 10px var(--brand-glow);
}
.step-node.idle { background: #EDF1F7; color: #B0BBCA; border: 1.5px solid var(--light-border); }
.step-line-seg { flex: 1; height: 2px; background: var(--light-border); margin: 0 4px; transition: background 0.3s; }
.step-line-seg.done { background: var(--success); }
.step-line-seg.active { background: var(--grad-brand); }
.step-names {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--light-muted); margin-bottom: 22px;
}
.step-names .cur { color: var(--charcoal); font-weight: 600; }

/* Strength meter */
.strength { margin-top: 7px; }
.strength-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.strength-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--light-border); transition: background 0.3s; }
.strength-bar.w { background: var(--danger); }
.strength-bar.m { background: var(--warning); }
.strength-bar.s { background: var(--success); }
.strength-txt { font-size: 11px; color: var(--light-muted); }

/* Match indicator */
.match-ok  { font-size: 12px; color: var(--success); margin-top: 5px; }
.match-err { font-size: 12px; color: var(--danger); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* Auth footer */
.auth-footer-note {
  margin-top: auto; padding-top: 20px;
  font-size: 12px; color: #B0BBCA; text-align: center;
}
.auth-footer-note a { color: #8A97A8; cursor: pointer; }

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--light-muted); cursor: pointer;
  background: none; border: none; font-family: var(--font-body);
  padding: 0; margin-bottom: 24px; transition: color 0.15s;
}
.back-btn:hover { color: var(--brand-mid-2); }

/* Success screen */
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(23,167,84,0.1); border: 2px solid rgba(23,167,84,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 30px;
}

/* Spinner */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

/* Ledger separator */
.lt-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 16px;
}

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════
   BLAZOR OVERRIDES
═══════════════════════════════════ */
.blazor-error-boundary {
  background: var(--danger);
  padding: 1rem;
  color: white;
}
#blazor-error-ui {
  background: var(--danger);
  padding: 0.5rem 1rem;
  color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
}
