/* ══════════════════════════════════════════════════
   ON1I — DESIGN SYSTEM
   Palette: Black & Orange
   #000000  #14213D  #FCA311  #E5E5E5  #FFFFFF
══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Syne:wght@400;600;700;800&display=swap');

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

:root {
  --bg:        #000000;
  --surface:   #0a0a0a;
  --card:      #14213D;
  --card-alt:  #0f1825;
  --accent:    #FCA311;
  --accent-dk: #d98b0e;
  --white:     #FFFFFF;
  --offwhite:  #E5E5E5;
  --muted:     rgba(229,229,229,0.4);
  --muted2:    rgba(229,229,229,0.65);
  --border:    rgba(229,229,229,0.08);
  --border-md: rgba(229,229,229,0.15);
  --border-lg: rgba(229,229,229,0.28);
  --accent-bg: rgba(252,163,17,0.1);
  --accent-br: rgba(252,163,17,0.25);
  --danger:    #ef4444;
  --success:   #22c55e;
  --font-d:    'Syne', sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --r:         10px;
  --r-lg:      16px;
  --r-xl:      22px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--offwhite); overflow-x: hidden; min-height: 100vh; line-height: 1.6; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-b); font-size: 14px; font-weight: 500;
  border: none; transition: all 0.18s; text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #000; font-weight: 700; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-ghost     { background: none; border: 1px solid var(--border-md); color: var(--muted2); }
.btn-ghost:hover { border-color: var(--border-lg); color: var(--white); }
.btn-outline   { background: none; border: 1px solid var(--border-lg); color: var(--offwhite); }
.btn-outline:hover { background: rgba(255,255,255,0.04); }
.btn-danger    { background: none; border: 1px solid rgba(239,68,68,0.35); color: #f87171; }
.btn-danger:hover { background: rgba(239,68,68,0.1); }
.btn-lg        { padding: 14px 32px; font-size: 16px; font-weight: 600; }
.btn-full      { width: 100%; border-radius: var(--r); padding: 13px; }
.btn-sm        { padding: 7px 16px; font-size: 13px; }

/* ── FORM ── */
.form-field  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted2); margin-bottom: 6px; }
.form-input  { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border-md); border-radius: var(--r); padding: 11px 14px; color: var(--offwhite); font-family: var(--font-b); font-size: 15px; outline: none; transition: border-color 0.2s; }
.form-input:focus  { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }
.form-row    { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }
.input-prefix { display: flex; border: 1px solid var(--border-md); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,0.04); }
.input-prefix span { padding: 11px 12px; color: var(--muted); font-size: 14px; border-right: 1px solid var(--border); background: rgba(0,0,0,0.3); white-space: nowrap; }
.input-prefix .form-input { border: none; background: transparent; border-radius: 0; }
.form-hint   { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-hint .hl { color: var(--accent); }

/* ── CARD ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.card-title { font-family: var(--font-d); font-size: 15px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

/* ── NAV ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 66px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); }
.nav-logo img { height: 30px; filter: brightness(0) invert(1); cursor: pointer; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted2); font-size: 14px; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; gap: 10px; }

/* ── BADGE ── */
.badge { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-br); }
.badge-success { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.25); }
.badge-danger  { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.25); }

/* ── TOGGLE ── */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-text .tt { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.toggle-text .td { font-size: 12px; color: var(--muted); }
.toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-left: 16px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.tog-sl { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; transition: 0.25s; border: 1px solid var(--border); }
.tog-sl::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--offwhite); bottom: 2px; left: 2px; transition: 0.25s; }
.toggle input:checked + .tog-sl { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .tog-sl::before { transform: translateX(18px); background: #000; }

/* ── OTP ── */
.otp-wrap { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.otp-input { width: 50px; height: 58px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-md); border-radius: var(--r); color: var(--white); font-family: var(--font-d); font-size: 24px; font-weight: 700; text-align: center; outline: none; transition: border-color 0.2s; }
.otp-input:focus { border-color: var(--accent); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--border-md); color: var(--offwhite); padding: 11px 24px; border-radius: 100px; font-size: 14px; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 9999; white-space: nowrap; }
.toast.show { opacity: 1; }

/* ── PULSE ANIMATION ── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)} }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; display: inline-block; }
.live-dot  { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; display: inline-block; }

/* ── DIVIDER ── */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 12px; height: 54px; }
  .nav-logo img { height: 24px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { font-size: 11px; padding: 5px 10px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-outline { display: inline-flex !important; font-size:11px; padding:5px 10px; }
  .nav-actions .btn-primary { display: inline-flex !important; }
  .nav-links { display: none; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 400px) {
  .nav { padding: 0 10px; height: 50px; }
  .nav-logo img { height: 22px; }
  .nav-actions .btn { font-size: 11px; padding: 5px 8px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-outline { display: inline-flex !important; font-size:11px; padding:5px 10px; }
}

@media (max-width: 430px) {
  .nav { padding: 0 10px; }
  .nav-logo img { height: 22px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { font-size: 10px; padding: 5px 8px; }
  .nav-actions .btn-ghost { display: inline-flex !important; font-size: 10px; padding: 5px 8px; }
}
