/* =====================================================================
   SterlingCapitalUK — Global Theme & Design System
   Dual theme (dark navy / light), blue-cyan accents, fintech aesthetic
   ===================================================================== */

:root {
  /* Brand accent — primary cyan/blue */
  --accent: #00b8d4;
  --accent-2: #0a84ff;
  --accent-grad: linear-gradient(135deg, #0a84ff 0%, #00b8d4 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(10,132,255,.18), rgba(0,184,212,.18));

  /* Pink/magenta accent — OANDA TMS inspired */
  --pink: #e91e80;
  --pink-2: #d6156b;
  --pink-grad: linear-gradient(135deg, #e91e80 0%, #d6156b 100%);
  --pink-grad-soft: linear-gradient(135deg, rgba(233,30,128,.16), rgba(214,21,107,.16));

  /* Maroon/burgundy accent — geometric shapes inspired */
  --maroon: #8b1a3d;
  --maroon-2: #6d122e;
  --maroon-grad: linear-gradient(135deg, #8b1a3d 0%, #6d122e 100%);

  /* Status */
  --up: #16c784;
  --down: #ea3943;
  --warn: #f5a623;

  /* Radii & shadow */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --shadow-soft: 0 6px 24px rgba(0,0,0,.18);

  /* Font */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- DARK (default) ---------- */
:root, [data-theme="dark"] {
  --bg: #070d1a;
  --bg-2: #0d1730;
  --bg-3: #131f3d;
  --card: #111c38;
  --card-2: #16223f;
  --elev: #1a2747;
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.14);
  --text: #f2f5fb;
  --text-2: #aab4cf;
  --text-3: #6b769a;
  --muted: #7c87a8;
  --chip: rgba(255,255,255,.06);
  --glass: rgba(17,28,56,.7);
  --nav-bg: rgba(7,13,26,.82);
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-2: #ffffff;
  --bg-3: #eef3fb;
  --card: #ffffff;
  --card-2: #f7faff;
  --elev: #ffffff;
  --border: rgba(15,23,42,.10);
  --border-2: rgba(15,23,42,.16);
  --text: #0b1a36;
  --text-2: #46587e;
  --text-3: #8190b0;
  --muted: #9aa7c4;
  --chip: rgba(15,23,42,.05);
  --glass: rgba(255,255,255,.8);
  --nav-bg: rgba(255,255,255,.85);
  --shadow: 0 10px 40px rgba(15,23,42,.12);
  --shadow-soft: 0 6px 20px rgba(15,23,42,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 20px; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px rgba(0,184,212,.32); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(0,184,212,.5); }
.btn-ghost { background: var(--chip); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--card-2); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card-hover:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card-grad { background: linear-gradient(160deg, var(--card), var(--card-2)); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--chip); border: 1px solid var(--border); color: var(--text-2);
}
.badge-up { color: var(--up); }
.badge-down { color: var(--down); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-up { background: var(--up); }
.dot-down { background: var(--down); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad);
  display: grid; place-items: center; color: #fff; font-weight: 900;
  box-shadow: 0 6px 18px rgba(0,184,212,.4);
}
.nav-links { display: flex; gap: 22px; margin-left: 14px; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: .92rem; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* selectors */
.selector {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 999px; background: var(--chip); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.selector:hover { border-color: var(--border-2); }
.flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; display: inline-block; }

/* theme toggle */
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--chip); border: 1px solid var(--border); position: relative; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-grad); transition: transform .2s; }
[data-theme="light"] .toggle::after { transform: translateX(18px); }

/* ---------- Live ticker ---------- */
.ticker-bar {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-track { display: inline-flex; gap: 36px; padding: 10px 0; animation: ticker 60s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.ticker-item .sym { color: var(--text); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 10%, rgba(0,184,212,.18), transparent 60%),
              radial-gradient(50% 50% at 10% 90%, rgba(10,132,255,.15), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-img { position: relative; }
.hero-img img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-img { order: -1; } }

/* ---------- Stats strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; }
.stat .num { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* ---------- Products grid ---------- */
.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product-card { padding: 24px; }
.product-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-grad-soft); border: 1px solid var(--border); font-size: 1.5rem; margin-bottom: 14px; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.product-card p { color: var(--text-2); font-size: .92rem; }

/* ---------- Account types ---------- */
.acct-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 980px) { .acct-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card { padding: 26px 22px; position: relative; }
.acct-card.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(0,184,212,.18); }
.acct-card .price { font-size: 2rem; font-weight: 800; }
.acct-card ul { list-style: none; margin: 16px 0; }
.acct-card li { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: .9rem; }
.acct-card li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.acct-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 26px; }
.step-num { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer a { display: block; color: var(--text-2); font-size: .88rem; padding: 5px 0; }
.footer a:hover { color: var(--accent); }
.disclaimer { font-size: .76rem; color: var(--text-3); border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; line-height: 1.6; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text);
  font-size: .95rem; transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--text-3); }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--bg); }
.dash-mobile-toggle { display: none; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: .9rem; cursor: pointer; position: sticky; top: 0; z-index: 100; width: 100%; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; position: fixed; top: 0; left: 0; width: 260px; z-index: 1000; box-shadow: 4px 0 30px rgba(0,0,0,.5); } .dash-side.open { display: block; } .dash-mobile-toggle { display: flex; } }
.dash-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-main { padding: 24px 28px; max-width: 100%; overflow-x: hidden; }
.dash-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; padding: 6px 8px 18px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: .9rem; margin-bottom: 3px; transition: all .15s; }
.side-nav a:hover { background: var(--chip); color: var(--text); }
.side-nav a.active { background: var(--accent-grad-soft); color: var(--accent); border: 1px solid var(--border); }
.side-nav a .ic { width: 20px; text-align: center; }

/* dashboard cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
.kpi { padding: 20px; }
.kpi .lbl { color: var(--text-3); font-size: .8rem; font-weight: 600; }
.kpi .val { font-size: 1.7rem; font-weight: 800; margin: 6px 0; }
.kpi .chg { font-size: .82rem; font-weight: 700; }

.dash-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .dash-grid-2 { grid-template-columns: 1fr; } }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.tbl tr:hover td { background: var(--chip); }
.tbl .sym { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.coin { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-grad-soft); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--accent); border: 1px solid var(--border); }

/* watch list */
.watch-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.watch-item:last-child { border: none; }

/* support chat widget */
.chat-fab { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 10px 30px rgba(0,184,212,.45); z-index: 200; cursor: pointer; }
.chat-panel { position: fixed; bottom: 96px; right: 24px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 140px); background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 200; overflow: hidden; }
.chat-head { padding: 16px; background: var(--accent-grad); color: #fff; display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.4; }
.chat-msg.bot { background: var(--chip); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.me { background: var(--accent-grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; }

/* notifications */
.notif-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border: none; }
.notif-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-grad-soft); display: grid; place-items: center; flex-shrink: 0; }

/* toast */
.toast-wrap { position: fixed; top: 80px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 340px; font-size: .88rem; animation: slideIn .25s ease; }
.toast.success { border-left-color: var(--up); }
.toast.warn { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--down); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* wallet/deposit */
.wallet-card { padding: 20px; }
.wallet-addr { font-family: 'Courier New', monospace; background: var(--bg-3); padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--border-2); word-break: break-all; font-size: .85rem; cursor: pointer; }
.qr-box { width: 150px; height: 150px; margin: 14px auto; background: #fff; border-radius: var(--r-sm); display: grid; place-items: center; padding: 10px; }

/* admin extras */
.admin-kpi .val { font-size: 1.5rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.tag-pend { background: rgba(245,166,35,.16); color: var(--warn); }
.tag-ok { background: rgba(22,199,132,.16); color: var(--up); }
.tag-no { background: rgba(234,57,67,.16); color: var(--down); }
.tag-info { background: var(--accent-grad-soft); color: var(--accent); }

/* misc */
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap { gap: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.mt-lg { margin-top: 30px; }
.scroll-x { overflow-x: auto; }
.pill-tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--chip); border-radius: 999px; border: 1px solid var(--border); }
.pill-tabs button { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--text-2); }
.pill-tabs button.active { background: var(--accent-grad); color: #fff; }

/* RTL */
[dir="rtl"] .nav-links, [dir="rtl"] .side-nav a { direction: rtl; }
[dir="rtl"] .hero-grid { direction: rtl; }

/* fade-in */
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   PINK / MAGENTA ACCENTS (OANDA TMS inspired)
   ===================================================================== */
.btn-pink { background: var(--pink-grad); color: #fff; font-weight: 700; border-radius: var(--r-sm); padding: 14px 28px; display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s; box-shadow: 0 6px 24px rgba(233,30,128,.35); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(233,30,128,.45); }
.btn-pink.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }
.btn-pink.btn-block { width: 100%; justify-content: center; }
.btn-pink.btn-sm { padding: 8px 18px; font-size: .85rem; }

.pink-chip { background: var(--pink-grad-soft); border: 1px solid rgba(233,30,128,.3); color: var(--pink); border-radius: 999px; padding: 6px 16px; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.pink-text { color: var(--pink); }
.pink-grad-text { background: var(--pink-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.pink-card { border: 1px solid rgba(233,30,128,.2); background: var(--pink-grad-soft); border-radius: var(--r); }
.pink-card-hover { border: 1px solid rgba(233,30,128,.18); transition: border-color .25s, box-shadow .25s, transform .25s; }
.pink-card-hover:hover { border-color: rgba(233,30,128,.4); box-shadow: 0 8px 28px rgba(233,30,128,.15); transform: translateY(-3px); }

/* Section with pink-tinted background */
.section-pink { background: linear-gradient(180deg, var(--bg) 0%, rgba(233,30,128,.04) 50%, var(--bg) 100%); }
[data-theme="light"] .section-pink { background: linear-gradient(180deg, var(--bg) 0%, rgba(233,30,128,.03) 50%, var(--bg) 100%); }

/* =====================================================================
   MAROON / BURGUNDY GEOMETRIC ACCENTS
   ===================================================================== */
.maroon-shape { position: absolute; width: 280px; height: 280px; background: var(--maroon-grad); opacity: .12; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; filter: blur(40px); pointer-events: none; z-index: 0; }
.maroon-shape-2 { position: absolute; width: 200px; height: 200px; background: var(--maroon-grad); opacity: .08; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); filter: blur(30px); pointer-events: none; z-index: 0; }
.maroon-text { color: var(--maroon); }
.maroon-badge { background: var(--maroon-grad); color: #fff; border-radius: 8px; padding: 4px 12px; font-size: .74rem; font-weight: 700; display: inline-block; }

/* =====================================================================
   REFERRAL SECTION
   ===================================================================== */
.referral-section { position: relative; overflow: hidden; }
.referral-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.referral-card-big { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-soft); }
.referral-card-big::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: var(--pink-grad); opacity: .15; border-radius: 50%; filter: blur(20px); }
.referral-amount { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 900; background: var(--pink-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin: 10px 0; }
.referral-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.referral-step { text-align: center; }
.referral-step-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--pink-grad-soft); border: 1px solid rgba(233,30,128,.25); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 12px; position: relative; }
.referral-step-num { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-grad); color: #fff; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.referral-code-box { background: var(--bg-2); border: 2px dashed rgba(233,30,128,.35); border-radius: var(--r-sm); padding: 16px 24px; font-size: 1.3rem; font-weight: 800; font-family: 'Courier New', monospace; letter-spacing: 2px; color: var(--pink); display: inline-flex; align-items: center; gap: 10px; margin: 16px 0; }
.referral-code-box .copy-btn { background: var(--pink-grad); color: #fff; border-radius: 8px; padding: 6px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; border: none; }
.referral-stats { display: flex; gap: 32px; justify-content: center; margin-top: 24px; }
.referral-stat { text-align: center; }
.referral-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--pink); }
.referral-stat-label { font-size: .78rem; color: var(--text-2); }

/* Dashboard referral panel */
.referral-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.referral-link-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 18px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.referral-link-box code { font-family: 'Courier New', monospace; font-size: .88rem; color: var(--pink); word-break: break-all; }

@media (max-width: 760px) {
  .referral-hero { grid-template-columns: 1fr; gap: 24px; }
  .referral-steps { grid-template-columns: 1fr; gap: 16px; }
  .referral-stats { flex-wrap: wrap; gap: 16px; }
}

/* referral dashboard panel extras */
.referral-stat-item { text-align: center; }
.referral-stat-item .num { font-size: 2rem; font-weight: 800; background: var(--pink-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.referral-stat-item .lbl { font-size: .82rem; color: var(--text-dim); margin-top: 6px; }
.referral-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.referral-table th { text-align: left; padding: 12px 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.referral-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.referral-table tr:last-child td { border-bottom: none; }
.referral-badge-pending { background: rgba(255,180,0,.15); color: #f0a000; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.referral-badge-completed { background: var(--pink-grad-soft); color: var(--pink); padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.copy-btn { background: var(--pink-grad); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: .85rem; font-weight: 700; cursor: pointer; border: none; white-space: nowrap; transition: transform .15s; }
.copy-btn:hover { transform: translateY(-1px); }
