:root {
  --blue-900: #0a2540;
  --blue-800: #0a3d62;
  --blue-700: #0f4d8a;
  --blue-600: #1d6df0;
  --blue-500: #2563eb;
  --cyan-400: #22d3ee;
  --accent: #f59e0b;
  --gold: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --grad-main: linear-gradient(135deg, #0a3d62 0%, #1d6df0 100%);
  --grad-soft: linear-gradient(120deg, #1d6df0 0%, #22d3ee 100%);
  --shadow: 0 6px 24px rgba(10, 61, 98, 0.08);
  --shadow-lg: 0 18px 40px rgba(10, 61, 98, 0.16);
  --radius: 14px;
}

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.18s ease;
  text-align: center;
  background: var(--grad-soft);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 109, 240, 0.3);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 109, 240, 0.4); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-gold { background: linear-gradient(120deg, #f59e0b, #fbbf24); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45); }
.btn-ghost { background: transparent; color: var(--blue-600); box-shadow: none; border: 1.5px solid var(--blue-600); }
.btn-ghost:hover { background: rgba(29, 109, 240, 0.06); box-shadow: none; }
.btn-outline { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); box-shadow: none; }
.btn-danger { background: linear-gradient(120deg, #dc2626, #ef4444); box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.btn-green { background: linear-gradient(120deg, #059669, #10b981); box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.btn-wide { width: 100%; }

/* ---------- Landing ---------- */
.site-header { background: var(--blue-900); color: #fff; padding: 18px 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.site-header .container { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.logo .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; font-size: 19px; color: #fff; box-shadow: 0 4px 12px rgba(34,211,238,.35); }
.logo span b { color: var(--gold); }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: rgba(255,255,255,0.82); font-weight: 500; }
.site-nav a:hover { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-panel { display: flex; gap: 18px; align-items: center; }

.hero { background: var(--grad-main); color: #fff; padding: 70px 0 90px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 800; margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.hero-badges .ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; font-size: 16px; }
.hero-visual { position: relative; }
.hero-card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.hero-balance { background: var(--grad-soft); background-size: 200% 200%; color: #fff; border-radius: 14px; padding: 20px; animation: float 5s ease-in-out infinite; }
.hero-balance h4 { font-weight: 400; font-size: 13px; opacity: 0.9; }
.hero-balance .amt { font-size: 30px; font-weight: 800; margin: 6px 0 10px; }
.hero-balance .acc { font-size: 13px; opacity: 0.85; letter-spacing: 2px; }
.floating-chip { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.fc1 { top: -14px; left: -18px; }
.fc2 { bottom: -10px; right: -8px; color: var(--green); }
.fc2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.section { padding: 70px 0; }
.section.alt { background: #fff; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-head .kicker { color: var(--blue-600); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12.5px; }
.sec-head h2 { font-size: 34px; font-weight: 800; color: var(--blue-900); margin: 8px 0 12px; }
.sec-head p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: all .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .fi { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-size: 26px; color: #fff; }
.feature-card h3 { font-size: 16.5px; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

.plan-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; transition: all .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card .pbadge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(29,109,240,.1); color: var(--blue-600); font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 12px; }
.plan-card h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 10px; }
.plan-card .price { font-size: 28px; font-weight: 800; color: var(--blue-600); }
.plan-card .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; margin: 16px 0 20px; }
.plan-card ul li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; color: var(--ink); }
.plan-card ul li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-main); color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.step h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); max-width: 260px; margin: 0 auto; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-list { list-style: none; margin-top: 16px; }
.why-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.why-list .wi { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: rgba(29,109,240,.1); display: grid; place-items: center; font-size: 20px; }
.why-list b { display: block; color: var(--blue-900); }
.why-list span { color: var(--muted); font-size: 13.5px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; text-align: center; }
.stat .n { font-size: 30px; font-weight: 800; color: var(--blue-600); }
.stat .l { font-size: 13px; color: var(--muted); }

.cta-band { background: var(--grad-soft); border-radius: 18px; padding: 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; }
.cta-band p { opacity: 0.9; margin-top: 4px; }

.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.8); padding: 46px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.7); padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 16px; text-align: center; font-size: 13px; }

/* ---------- Auth pages ---------- */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-side { background: var(--grad-main); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: 40px; line-height: 1.2; margin: 16px 0; }
.auth-side p { opacity: 0.85; max-width: 380px; }
.auth-side .logo { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 28px; color: var(--blue-900); margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(29,109,240,.14); }
.hint { font-size: 12.5px; color: var(--muted); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ---------- User panel ---------- */
.panel { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--blue-900); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display:flex; flex-direction:column; }
.sidebar .logo { margin-bottom: 24px; font-size: 19px; }
.sidebar .logo .mark { width: 34px; height: 34px; font-size: 16px; }
.sidebar nav { flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,0.75); font-weight: 500; margin-bottom: 3px; }
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar nav a.active { background: linear-gradient(120deg, rgba(29,109,240,.5), rgba(34,211,238,.35)); color: #fff; }
.sidebar nav a .si { font-size: 18px; width: 22px; text-align: center; }
.sidebar .side-user { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; margin-top: 14px; }
.side-user .uname { font-weight: 700; }
.side-user .uacc { font-size: 12px; opacity: 0.7; letter-spacing: 1px; }
.main { flex: 1; padding: 26px 30px 40px; max-width: 100%; overflow-x: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; color: var(--blue-900); }
.topbar .who { font-size: 13.5px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h3 { color: var(--blue-900); font-size: 17px; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title h3 { margin-bottom: 0; }

.balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.balance-card { border-radius: var(--radius); padding: 22px; color: #fff; box-shadow: var(--shadow); background: var(--grad-main); }
.balance-card.green { background: linear-gradient(135deg, #047857, #10b981); }
.balance-card.gold { background: linear-gradient(135deg, #b45309, #f59e0b); }
.balance-card.cyan { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.balance-card .bl { font-size: 13px; opacity: 0.85; }
.balance-card .bv { font-size: 27px; font-weight: 800; margin-top: 4px; }
.balance-card .bs { font-size: 12px; opacity: 0.8; margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink); transition: all .18s; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.qa .qi { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px; background: rgba(29,109,240,.1); display: grid; place-items: center; font-size: 22px; }
.qa b { font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.gray { background: #f1f5f9; color: #475569; }
.badge.green { background: #ecfdf5; color: #047857; }
.badge.red { background: #fef2f2; color: #b91c1c; }
.badge.blue { background: #eff6ff; color: #1d4ed8; }
.badge.gold { background: #fffbeb; color: #b45309; }
.badge.purple { background: #f5f3ff; color: #6d28d9; }

.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }

.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--blue-600); border-color: var(--blue-600); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) {
  .plan-grid, .grid-3, .quick-actions, .balance-grid, .feature-grid, .plan-intro, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .container, .why-grid { grid-template-columns: 1fr; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .plan-grid, .quick-actions, .balance-grid, .feature-grid, .plan-intro, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .main { padding: 18px; }
}

.skeleton { border-radius: var(--radius); }

/* ---------- Premium auth polish ---------- */
.auth-body { position: relative; background: #eef3f9; }
.auth-side { position: relative; overflow: hidden; padding: 50px 56px; background: radial-gradient(1200px 600px at 85% -10%, rgba(34,211,238,.25), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(245,158,11,.18), transparent 55%), var(--grad-main); }
.auth-side::after { content: ""; position: absolute; inset: auto -80px -140px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%); }
.auth-side .logo { position: relative; z-index: 2; }
.auth-side h1 { position: relative; z-index: 2; font-size: 38px; }
.auth-side p { position: relative; z-index: 2; }
.brand-content { position: relative; z-index: 2; margin-top: 30px; flex: 1; }
.brand-feats { list-style: none; margin-top: 26px; position: relative; z-index: 2; }
.brand-feats li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; color: rgba(255,255,255,0.94); }
.brand-feats .fico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: rgba(255,255,255,0.14); display: grid; place-items: center; font-size: 16px; }
.brand-card { position: relative; z-index: 2; max-width: 380px; margin-top: 26px; border-radius: 18px; padding: 22px; color: #fff; background: linear-gradient(135deg, #1e3a8a, #0f6bd6 80%); box-shadow: 0 24px 50px rgba(2, 23, 53, 0.4); transform: rotate(-2deg); }
.brand-card .bc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .9; letter-spacing: 1px; }
.brand-card .bc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #f59e0b); margin: 16px 0 14px; position: relative; }
.brand-card .bc-chip::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: rgba(0,0,0,.25); }
.brand-card .bc-num { font-size: 20px; letter-spacing: 3px; font-weight: 700; margin-bottom: 14px; }
.brand-card .bc-row { display: flex; justify-content: space-between; align-items: flex-end; }
.brand-card .bc-row b { font-size: 14px; }
.brand-card .bc-row .bc-brand { font-weight: 800; letter-spacing: .5px; font-size: 13px; }
.brand-stats { display: flex; gap: 26px; margin-top: 28px; position: relative; z-index: 2; }
.brand-stats div b { display: block; font-size: 22px; font-weight: 800; }
.brand-stats div span { font-size: 12.5px; opacity: .78; }
.brand-foot { position: relative; z-index: 2; margin-top: 30px; font-size: 12.5px; opacity: .75; }
.auth-main { position: relative; align-items: center; justify-content: center; background: radial-gradient(700px 400px at 100% 0%, rgba(29,109,240,.06), transparent 60%), #eef3f9; }
.auth-box { width: 100%; max-width: 430px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); padding: 36px 34px; }
.auth-card h2 { font-size: 26px; }
.auth-card .sub { margin-bottom: 22px; }
.portal-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(29,109,240,.09); color: var(--blue-600); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 42px; }
.input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--muted); pointer-events: none; }
.check-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13.5px; }
.check-row a { font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue-600); cursor: pointer; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.sec-note .lock { color: var(--green); font-size: 14px; }
.admin-warn { display: flex; gap: 12px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 20px; }
.brand-flag { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-400), var(--gold), var(--blue-600)); background-size: 200% 100%; animation: slide 6s linear infinite; }
@keyframes slide { from { background-position: 0 0; } to { background-position: 200% 0; } }
.kbd-copy { display: flex; align-items: center; gap: 6px; background: #f1f5f9; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--ink); cursor: pointer; margin-top: 6px; }
.kbd-copy:hover { background: #e2e8f0; }

/* ---------- Currency ticker & exchange ---------- */
.ticker { background: linear-gradient(90deg, var(--blue-900), var(--blue-800)); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--blue-900), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--blue-800), transparent); }
.ticker-track { display: inline-block; animation: marquee 55s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; padding: 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.ticker-item .up { color: #4ade80; }
.ticker-item .down { color: #f87171; }
.ticker-item .flat { color: #cbd5e1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.company-section { padding: 60px 0 24px; background: linear-gradient(180deg, #f8fafc, #fff); }
.company-strip { overflow: hidden; white-space: nowrap; position: relative; padding: 10px 0; }
.company-strip::before, .company-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.company-strip::before { left: 0; background: linear-gradient(90deg, #f8fafc, transparent); }
.company-strip::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.company-track { display: inline-block; animation: marquee 45s linear infinite; will-change: transform; }
.company-track:hover { animation-play-state: paused; }
.company-group { display: inline-block; }
.company-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 12px; padding: 12px 22px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); font-weight: 700; font-size: 14px; color: var(--blue-900); letter-spacing: .3px; }
.company-chip .fico { font-size: 17px; color: var(--blue-600); }
@media (prefers-reduced-motion: reduce) { .company-track { animation: none; overflow-x: auto; } }

.rate-section { background: linear-gradient(180deg, var(--bg), #fff 40%); }
.rate-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rate-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rate-card .rc-top { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rate-card .rc-code { font-size: 13px; font-weight: 800; color: var(--blue-900); letter-spacing: .4px; }
.rate-card .rc-name { font-size: 11px; color: var(--muted); }
.rate-card .rc-val { font-size: 20px; font-weight: 800; color: var(--ink); margin: 8px 0 4px; }
.rate-card .rc-val .sym { font-size: 12px; color: var(--muted); font-weight: 600; }
.rate-card .rc-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rc-delta.up { color: var(--green); background: rgba(16,185,129,.10); }
.rc-delta.down { color: var(--red); background: rgba(239,68,68,.10); }
.rc-delta.flat { color: var(--muted); background: rgba(100,116,139,.10); }
.rc-pulse { position: absolute; top: -40px; left: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); animation: rcPulse 3s ease-in-out infinite; }
@keyframes rcPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: .4; } }
.rc-flash-up { animation: rcFlashUp .6s ease; }
.rc-flash-down { animation: rcFlashDown .6s ease; }
@keyframes rcFlashUp { 0% { color: var(--green); transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes rcFlashDown { 0% { color: var(--red); transform: translateY(3px); } 100% { transform: translateY(0); } }

.converter { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.converter h3 { color: var(--blue-900); font-size: 18px; margin-bottom: 4px; }
.converter .sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.conv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.conv-row .field { flex: 1; margin-bottom: 0; }
.conv-row .field input, .conv-row .field select { text-align: center; }
.conv-swap { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 16px; display: grid; place-items: center; transition: all .15s; flex: 0 0 38px; }
.conv-swap:hover { background: rgba(29,109,240,.08); border-color: var(--blue-500); }
.conv-result { background: linear-gradient(120deg, rgba(29,109,240,.08), rgba(34,211,238,.10)); border: 1px dashed var(--blue-500); border-radius: 12px; padding: 16px; text-align: center; margin-top: 6px; }
.conv-result .cr-amt { font-size: 26px; font-weight: 800; color: var(--blue-600); transition: transform .2s; }
.conv-result .cr-rate { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.conv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); }
.conv-live .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: rcPulse 1.6s ease-in-out infinite; }
@media (max-width: 980px) { .rate-wrap { grid-template-columns: 1fr; } .rate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rate-grid { grid-template-columns: 1fr; } .conv-row { flex-direction: column; } .conv-swap { transform: rotate(90deg); } }

/* back link in panel topbar */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--blue-900); cursor: pointer; transition: .2s; }
.back-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* deposit gateway cards */
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.gateway-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .2s; background: #fff; }
.gateway-card:hover { border-color: var(--blue-400, #3b82f6); }
.gateway-card.sel { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.gateway-card .gic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--blue-soft, #eef3fb); color: var(--blue-900, #123); }
.gateway-card .ginfo b { display: block; font-size: 13.5px; color: var(--blue-900); }
.gateway-card .ginfo span { font-size: 11.5px; color: var(--muted); }
.gateway-card .check { position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 11px; color: #fff; }
.gateway-card.sel .check { background: var(--gold); border-color: var(--gold); }

/* account strip on dashboard */
.acct-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--grad-main); color: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.acct-strip .as-greet b { font-size: 19px; display: block; }
.acct-strip .as-greet span { opacity: .85; font-size: 13px; }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 9px 14px; border-radius: 12px; font-weight: 700; letter-spacing: .5px; cursor: pointer; transition: .2s; font-size: 14px; }
.acct-chip:hover { background: rgba(255,255,255,.28); }
.kyc-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; border: 1.5px solid #f0c033; background: #fffbea; font-size: 13.5px; }
.kyc-banner .kb-ico { font-size: 18px; }
.kyc-banner a { margin-left: auto; white-space: nowrap; }
.dep-preview { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--gold-soft, #fbf3dc); border: 1.5px dashed var(--gold, #d4af37); font-size: 13.5px; color: var(--blue-900); }

/* KYC steps */
.kyc-steps { display: flex; align-items: center; margin: 4px 0 20px; }
.kyc-steps .ks-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 76px; }
.kyc-steps .ks-step .ks-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg); border: 2px solid var(--border); color: var(--muted); transition: .2s; }
.kyc-steps .ks-step.done .ks-n { background: var(--green, #16a34a); border-color: var(--green, #16a34a); color: #fff; }
.kyc-steps .ks-step.active .ks-n { background: var(--gold, #d4af37); border-color: var(--gold, #d4af37); color: #fff; box-shadow: 0 0 0 4px rgba(212,175,55,.2); }
.kyc-steps .ks-step.active b, .kyc-steps .ks-step.done b { color: var(--blue-900); }
.kyc-steps .ks-line { flex: 1; height: 3px; background: var(--border); margin: 0 8px; border-radius: 2px; }
.kyc-steps .ks-line.done { background: var(--green, #16a34a); }
.kyc-verified-box { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; background: linear-gradient(135deg,#ecfdf5,#d1fae5); border: 1.5px solid #a7f3d0; }
.kyc-verified-box .kv-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--green,#16a34a); color: #fff; display: grid; place-items: center; font-size: 26px; }
.kyc-verified-box b { font-size: 17px; color: #065f46; display: block; }
.kyc-verified-box span { color: #047857; font-size: 13.5px; }

/* KYC document checklist */
.kyc-doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 12px; background: var(--bg); border-radius: 12px; border: 1px solid #e8eef6; }
.kyc-doc-list .kd-item { display: flex; gap: 12px; align-items: flex-start; }
.kyc-doc-list .kd-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #e0ecff; color: var(--blue-600); display: grid; place-items: center; font-size: 16px; }
.kyc-doc-list b { font-size: 13.5px; display: block; color: var(--blue-900); }
.kyc-doc-list span { font-size: 12px; color: var(--muted); }
/* KYC unlocks */
.kyc-unlocks { margin-top: 18px; padding: 14px; background: var(--bg); border-radius: 12px; border: 1px solid #e8eef6; }
.kyc-unlocks .ku-title { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kyc-unlocks .ku-item { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: #065f46; padding: 6px 0; font-weight: 600; }
.kyc-unlocks .ku-item span { font-size: 14px; }
.kyc-unlocks .ku-item.ku-off { color: var(--muted); font-weight: 500; }
.kyc-unlocks .ku-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* dashboard international bank details */
#bankDetails { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px 18px; margin-bottom: 20px; box-shadow: var(--shadow); }
.bd-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--bg); }
.bd-row > span { flex: 0 0 150px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.bd-row .bd-v { flex: 1; min-width: 220px; font-weight: 700; color: var(--blue-900); letter-spacing: .5px; }
.bd-row .bd-copy { flex: 0 0 auto; }

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #1e293b;
  --bg: #0f172a;
  --card: #16233b;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .input, [data-theme="dark"] textarea.input, [data-theme="dark"] select.input { background: #0f1a2e; color: var(--ink); border-color: #24334c; }
[data-theme="dark"] .input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .qa, [data-theme="dark"] .gateway-card, [data-theme="dark"] .rate-card, [data-theme="dark"] .converter, [data-theme="dark"] .rate-section, [data-theme="dark"] .dep-preview { background: var(--card); }
[data-theme="dark"] tr:hover td { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .badge.gray { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .badge.green { background: rgba(16, 185, 129, .15); color: #34d399; }
[data-theme="dark"] .badge.red { background: rgba(239, 68, 68, .15); color: #f87171; }
[data-theme="dark"] .badge.blue { background: rgba(59, 130, 246, .18); color: #93c5fd; }
[data-theme="dark"] .badge.gold { background: rgba(245, 158, 11, .15); color: #fcd34d; }
[data-theme="dark"] .badge.purple { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
[data-theme="dark"] .sidestepper, .ks-line, .block { border-color: #24334c; }
[data-theme="dark"] code { background: rgba(255,255,255,.06); }
[data-theme="dark"] .rate-section { background: linear-gradient(180deg, var(--bg), var(--card) 40%); }
[data-theme="dark"] .kyc-doc-list, [data-theme="dark"] .kyc-unlocks, [data-theme="dark"] .bd-row { background: #0f1a2e; border-color: #24334c; }
[data-theme="dark"] .kyc-banner { background: #2a2410; border-color: #6b5a1f; }
[data-theme="dark"] .sidebar { background: #081426; }
[data-theme="dark"] a { color: #60a5fa; }

/* ---------- Topbar actions, bell, theme toggle ---------- */
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 17px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--blue-500); }
.bell { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 17px; text-decoration: none; }
.bell:hover { border-color: var(--blue-500); }
.bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Empty states ---------- */
.empty { color: var(--muted); }
.empty .e-ico { font-size: 26px; display: block; margin-bottom: 8px; }

/* ---------- Virtual cards ---------- */
.vcard { position: relative; border-radius: 18px; padding: 24px; color: #fff; background: linear-gradient(135deg, #0a2540, #1d6df0); box-shadow: var(--shadow-lg); min-width: 320px; overflow: hidden; }
.vcard.gold { background: linear-gradient(135deg, #3f2d06, #b45309); }
.vcard.frozen { filter: grayscale(.9); opacity: .85; }
.vcard::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.3), transparent 70%); }
.vcard .vc-top { display: flex; justify-content: space-between; align-items: center; }
.vcard .vc-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #f59e0b); position: relative; }
.vcard .vc-chip::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: rgba(0,0,0,.25); }
.vcard .vc-num { font-size: 22px; letter-spacing: 3px; font-weight: 700; margin: 18px 0 14px; font-family: "Courier New", monospace; }
.vcard .vc-row { display: flex; gap: 26px; align-items: flex-end; }
.vcard .vc-row b { font-size: 14px; display: block; }
.vcard .vc-row span { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.vcard .vc-note { position: absolute; right: 20px; bottom: 22px; font-size: 11px; opacity: .85; }
.card-badge { position: absolute; top: 18px; right: 20px; }

/* ---------- Vaults ---------- */
.vault-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); }
.vault-card .goal-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vault-card .goal-bar i { display: block; height: 100%; background: var(--grad-soft); border-radius: 999px; }

/* ---------- Notifications ---------- */
.notif-item { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); align-items: flex-start; }
.notif-item.unread { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(29, 109, 240, .1); }
.notif-item .n-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(29,109,240,.1); }
.notif-item b { display: block; font-size: 14px; color: var(--blue-900); }
[data-theme="dark"] .notif-item b { color: var(--ink); }
.notif-item p { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); margin-top: 6px; flex: 0 0 8px; }

/* ---------- Limit bar ---------- */
.limit-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.limit-bar i { display: block; height: 100%; background: var(--grad-soft); border-radius: 999px; }
.usage-high .limit-bar i { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* ---------- Security / settings rows ---------- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.set-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- Recurring ---------- */
.rec-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--card); flex-wrap: wrap; }
.rec-row .rec-main { flex: 1; min-width: 200px; }
.rec-status { font-size: 12px; font-weight: 700; }

/* ---------- Currency accounts ---------- */
.cur-account { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.cur-account .cca { font-size: 26px; font-weight: 800; color: var(--blue-600); }
.cur-account .ccb { font-size: 15px; }
.cur-account .ccn { font-size: 12px; color: var(--muted); }