/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --void: #010812;
  --deep: #030f20;
  --dark: #061527;
  --panel: rgba(6,21,39,0.88);
  --panel2: rgba(3,15,32,0.97);
  --glass: rgba(255,255,255,0.04);
  --glass-b: rgba(255,255,255,0.08);

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-b: rgba(0,180,255,0.22);
  --border-g: rgba(0,255,180,0.18);

  /* Brand blues */
  --blue: #0055ff;
  --blue-mid: #0d8fff;
  --blue-hi: #38b6ff;
  --cyan: #00d4ff;
  --teal: #00ffc3;
  --violet: #7c3aed;

  /* Status */
  --success: #00ffc3;
  --danger: #ff3d71;
  --warn: #ffaa00;
  --info: #00b4ff;

  /* Text */
  --text: #dce8f8;
  --text-mid: #7ba3c8;
  --text-dim: rgba(120,163,200,0.55);

  /* Layout */
  --sidebar-w: 270px;
  --hdr: 64px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-glow: 0 0 30px rgba(0,180,255,.15);
  --shadow-glow-g: 0 0 30px rgba(0,255,180,.15);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: rgba(0,180,255,.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,180,255,.5); }

/* ─── SCENE BACKGROUND ─── */
#scene-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-layer1 {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at -5% -5%, rgba(0,80,200,.22) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 105% 105%, rgba(0,200,160,.10) 0%, transparent 50%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(0,100,180,.06) 0%, transparent 70%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,150,255,.015) 2px, rgba(0,150,255,.015) 4px
  );
  animation: scanDrift 10s linear infinite;
}
@keyframes scanDrift { from { background-position: 0 0; } to { background-position: 0 120px; } }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); animation: orbFloat 14s ease-in-out infinite;
}
.orb1 { width:600px; height:600px; background:rgba(0,100,255,.09); top:-200px; left:-150px; animation-delay:0s; }
.orb2 { width:450px; height:450px; background:rgba(0,200,160,.07); bottom:-150px; right:-100px; animation-delay:-6s; }
.orb3 { width:350px; height:350px; background:rgba(0,160,255,.06); top:40%; left:50%; transform:translate(-50%,-50%); animation-delay:-3s; }
.orb4 { width:250px; height:250px; background:rgba(124,58,237,.05); top:20%; right:10%; animation-delay:-9s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.06); }
  66% { transform: translate(-20px,30px) scale(.94); }
}

#particle-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .45;
}

/* ─── CUSTOM CURSOR ─── */
#cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s ease, width .2s ease, height .2s ease;
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,212,255,.4);
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,.5); pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .18s ease, width .25s ease, height .25s ease, border-color .2s ease;
}
body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot { width:12px; height:12px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width:52px; height:52px; border-color: var(--cyan); }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 400;
  background: var(--panel2);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(40px) saturate(180%);
  display: flex; flex-direction: column;
  box-shadow: 6px 0 60px rgba(0,0,0,.6);
  overflow-y: auto; overflow-x: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--cyan), rgba(0,255,195,.4), transparent);
  opacity: .4;
}

.s-logo {
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; text-decoration: none; color: inherit;
}
.s-logo-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #005bff, #00d4ff);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 0 24px rgba(0,120,255,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.s-logo-txt { font-weight: 800; font-size: 15px; letter-spacing: -.3px; line-height: 1.2; }
.s-logo-txt small {
  display: block; font-size: 9.5px; letter-spacing: 3px;
  color: var(--text-dim); font-weight: 400; text-transform: uppercase; margin-top: 2px;
}

.s-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.s-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  box-shadow: 0 0 0 2.5px rgba(0,212,255,.3), 0 0 18px rgba(0,120,255,.25);
  position: relative; overflow: hidden;
}
.s-avatar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
}
.s-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.s-role {
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px;
}
.s-balance {
  font-size: 12px; font-weight: 600; color: var(--teal);
  font-family: 'Space Mono', monospace; margin-top: 2px;
}

.s-section {
  padding: 18px 16px 6px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
}
.s-nav { padding: 6px 11px; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 11px; margin-bottom: 3px;
  color: var(--text-mid); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: all .22s; position: relative; overflow: hidden;
}
.nav-link::before {
  content: ''; position: absolute; inset: 0; border-radius: 11px;
  background: linear-gradient(135deg, rgba(0,100,255,.14), rgba(0,212,255,.05));
  opacity: 0; transition: opacity .22s;
}
.nav-link:hover::before, .nav-link.active::before { opacity: 1; }
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--cyan);
  background: rgba(0,180,255,.08);
  border: 1px solid rgba(0,180,255,.15);
}
.nav-link.active::after {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--blue-mid), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}
.nav-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; background: rgba(255,255,255,.05); transition: all .22s;
}
.nav-link.active .nav-ico { background: rgba(0,180,255,.18); color: var(--cyan); }
.nav-link:hover .nav-ico { background: rgba(0,180,255,.12); color: var(--blue-hi); }
.nav-link.danger { color: rgba(255,61,113,.65); }
.nav-link.danger:hover { background: rgba(255,61,113,.08); color: var(--danger); }
.nav-link.danger .nav-ico { color: var(--danger); }

.s-div { height: 1px; background: var(--border); margin: 8px 11px; }

.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(0,212,255,.15); color: var(--cyan);
  border: 1px solid rgba(0,212,255,.25);
}
.nav-badge.live {
  background: rgba(255,61,113,.15); color: var(--danger);
  border-color: rgba(255,61,113,.25);
  animation: badgePulse 2s infinite;
}
.nav-badge.pro {
  background: rgba(124,58,237,.2); color: #a78bfa;
  border-color: rgba(124,58,237,.3);
}
@keyframes badgePulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.s-foot {
  padding: 14px 20px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.s-foot strong { color: var(--blue-hi); }
.s-online {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--teal);
}
.s-online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 6px var(--teal); animation: dpulse 2s infinite;
}
@keyframes dpulse { 0%,100%{opacity:1;box-shadow:0 0 6px var(--teal)} 50%{opacity:.4;box-shadow:0 0 14px var(--teal)} }

/* ─── TOPBAR ─── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--hdr); z-index: 300;
  background: rgba(1,8,18,.92);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  box-shadow: 0 1px 0 rgba(0,180,255,.08), 0 4px 30px rgba(0,0,0,.4);
}
.topbar-l { display: flex; align-items: center; gap: 14px; }
.hmb {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-mid); font-size: 20px; padding: 5px;
  transition: color .2s;
}
.hmb:hover { color: var(--cyan); }

.tb-ticker {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-dim);
}
.tb-tick {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04);
  padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border);
  transition: border-color .2s;
}
.tb-tick:hover { border-color: var(--border-b); }
.tb-tick span { color: var(--text); font-weight: 700; font-family: 'Space Mono', monospace; font-size: 11.5px; }
.tb-tick i { color: var(--blue-hi); font-size: 11px; }
.tick-up { color: var(--teal) !important; }
.tick-dn { color: var(--danger) !important; }

.topbar-r { display: flex; align-items: center; gap: 10px; }
.tb-mode {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.tb-mode-btn {
  padding: 7px 14px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; border: none; background: none;
  color: var(--text-dim); transition: all .2s; font-family: 'Outfit', sans-serif;
  letter-spacing: .5px;
}
.tb-mode-btn.demo.active { background: rgba(0,212,255,.15); color: var(--cyan); }
.tb-mode-btn.live.active { background: rgba(255,61,113,.15); color: var(--danger); }

.tb-notif {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; position: relative; color: var(--text-mid);
  text-decoration: none;
}
.tb-notif:hover { border-color: var(--border-b); color: var(--cyan); }
.notif-count {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--danger); color: white;
  font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--void);
}

.tb-user {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; position: relative;
  text-decoration: none; color: inherit;
}
.tb-user:hover { border-color: var(--border-b); }
.tb-user-av {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: white;
}
.tb-user-info { line-height: 1.3; }
.tb-user-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.tb-user-type { font-size: 10px; color: var(--text-dim); }

.tb-status {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,255,195,.07); border: 1px solid rgba(0,255,195,.18);
  border-radius: 100px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--teal);
}
.tb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: dpulse 2s infinite;
}

/* ─── DROPDOWN MENU ─── */
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--panel2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-lg);
  z-index: 500; display: none;
  animation: dropIn .2s ease-out;
}
.dropdown.open { display: block; }
@keyframes dropIn { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text-mid); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all .15s; cursor: pointer; border: none; background: none; width: 100%;
}
.dd-item:hover { background: rgba(0,100,200,.1); color: var(--text); }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: rgba(255,61,113,.08); }
.dd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dd-bal {
  padding: 12px; margin-bottom: 4px;
  background: rgba(0,100,200,.08); border-radius: 9px;
  border: 1px solid var(--border);
}
.dd-bal-name { font-size: 13px; font-weight: 700; color: var(--text); }
.dd-bal-amt { font-size: 16px; font-weight: 800; color: var(--teal); font-family: 'Space Mono', monospace; }

/* ─── MAIN CONTENT ─── */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--hdr);
  position: relative; z-index: 1; min-height: 100vh;
}

/* ─── HERO ─── */
.hero {
  padding: 32px 28px 90px;
  background: linear-gradient(160deg, rgba(0,60,160,.35) 0%, rgba(0,180,255,.10) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 35%;
  background: linear-gradient(to left, rgba(0,212,255,.04), transparent);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-eye {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--blue-hi); font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eye::before {
  content: ''; display: inline-block; width: 22px; height: 1.5px;
  background: linear-gradient(to right, var(--blue-mid), var(--cyan));
}
.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15;
}
.hero-hi {
  background: linear-gradient(120deg, var(--blue-hi), var(--cyan), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gShift 4s ease infinite;
}
@keyframes gShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.hero-sub { margin-top: 8px; font-size: 13px; color: var(--text-dim); }

/* ─── CONTENT WRAP ─── */
.cw { padding: 0 28px 52px; margin-top: -52px; }

/* ─── CARDS ─── */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(24px);
  overflow: hidden; margin-bottom: 22px;
  animation: cardIn .5s ease-out both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.card-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: rgba(0,50,120,.08);
}
.card-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--cyan); }
.card-r { display: flex; align-items: center; gap: 9px; }

/* ─── BALANCE CARD ─── */
.bal-card {
  border-radius: 22px; padding: 28px 30px 24px;
  position: relative; overflow: hidden; margin-bottom: 22px;
  background: linear-gradient(145deg, #0a2050 0%, #073070 35%, #0a4a90 65%, #063560 100%);
  border: 1px solid rgba(0,180,255,.28);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,180,255,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
.bal-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: 24px;
  z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);
  background-size: 200% 100%; animation: cShimmer 3.5s ease-in-out infinite;
}
@keyframes cShimmer { from{background-position:200% 0} to{background-position:-200% 0} }
.bal-card::after {
  content: ''; position: absolute; top: 0; right: -40px; width: 250px; height: 250px;
  z-index: 0; background: radial-gradient(ellipse at center, rgba(0,212,255,.14), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.bal-inner { position: relative; z-index: 1; }
.bal-toprow {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px;
}
.bal-brand {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(200,230,255,.5);
}
.bal-chip {
  width: 38px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffcc00 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 6px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.bal-chip::after {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(0,0,0,.3); transform: translateY(-50%);
}
.bal-lbl { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(144,200,255,.6); margin-bottom: 6px; }
.bal-amt {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -2px; color: white; line-height: 1;
  text-shadow: 0 0 40px rgba(0,180,255,.4);
}
.bal-amt .sym { font-size: 55%; vertical-align: super; opacity: .75; letter-spacing: 0; }
.bal-sub { font-size: 12px; color: rgba(200,230,255,.5); margin-top: 6px; }
.bal-bot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 22px; gap: 12px; flex-wrap: wrap;
}
.bal-acno { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 3px; color: rgba(200,230,255,.75); }
.bal-type {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
  background: rgba(0,212,255,.15); border: 1px solid rgba(0,212,255,.30);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan);
}
.bal-acts { display: flex; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.b-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border-radius: 11px; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .22s;
}
.b-btn.pri {
  background: rgba(255,255,255,.18); color: white;
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px);
}
.b-btn.pri:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.b-btn.gho {
  background: transparent; color: rgba(200,230,255,.75);
  border: 1px solid rgba(200,230,255,.20);
}
.b-btn.gho:hover { background: rgba(255,255,255,.08); color: white; }

/* ─── STAT CARDS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px 18px;
  position: relative; overflow: hidden; backdrop-filter: blur(20px);
  transition: transform .22s, box-shadow .22s; cursor: default;
  animation: statIn .5s ease-out both;
}
.stat:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,.4), var(--shadow-glow); }
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; border-radius: 20px 20px 0 0; }
.s-b::before { background: linear-gradient(90deg, #0050cc, var(--cyan)); }
.s-t::before { background: linear-gradient(90deg, #009b9b, var(--teal)); }
.s-c::before { background: linear-gradient(90deg, var(--blue-mid), var(--cyan)); }
.s-w::before { background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.8)); }
.s-v::before { background: linear-gradient(90deg, var(--violet), #a78bfa); }
.stat::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 130px; height: 130px; border-radius: 50%; opacity: .09; pointer-events: none;
}
.s-b::after { background: radial-gradient(var(--blue-hi), transparent); }
.s-t::after { background: radial-gradient(var(--teal), transparent); }
.s-c::after { background: radial-gradient(var(--cyan), transparent); }
.s-w::after { background: radial-gradient(white, transparent); }
.s-v::after { background: radial-gradient(#a78bfa, transparent); }
.stat:nth-child(1){animation-delay:.05s} .stat:nth-child(2){animation-delay:.12s}
.stat:nth-child(3){animation-delay:.19s} .stat:nth-child(4){animation-delay:.26s}
@keyframes statIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.stat-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; position: relative; z-index: 1;
}
.s-b .stat-ico { background: rgba(0,100,255,.18); color: var(--blue-hi); }
.s-t .stat-ico { background: rgba(0,255,195,.12); color: var(--teal); }
.s-c .stat-ico { background: rgba(0,212,255,.12); color: var(--cyan); }
.s-w .stat-ico { background: rgba(255,255,255,.10); color: rgba(255,255,255,.85); }
.s-v .stat-ico { background: rgba(124,58,237,.18); color: #a78bfa; }
.stat-lbl {
  font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 7px; position: relative; z-index: 1;
}
.stat-val {
  font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: -.5px; line-height: 1; position: relative; z-index: 1;
}
.s-b .stat-val { color: #90d0ff; }
.s-t .stat-val { color: var(--teal); }
.s-c .stat-val { color: var(--cyan); }
.s-w .stat-val { color: rgba(255,255,255,.9); }
.s-v .stat-val { color: #a78bfa; }
.stat-sub { font-size: 11px; color: var(--text-dim); margin-top: 7px; position: relative; z-index: 1; }
.stat-trend {
  font-size: 11px; font-weight: 600; margin-top: 7px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 4px;
}
.trend-up { color: var(--teal); }
.trend-dn { color: var(--danger); }

/* ─── QUICK ACTIONS ─── */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.qa-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px 16px;
  text-align: center; text-decoration: none;
  transition: all .22s; backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.qa-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,100,255,.12), rgba(0,212,255,.04)); opacity: 0; transition: opacity .22s;
}
.qa-item:hover::before { opacity: 1; }
.qa-item:hover {
  border-color: var(--border-b); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), var(--shadow-glow);
}
.qa-icon {
  width: 50px; height: 50px; border-radius: 14px;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: all .22s;
}
.qa-item:hover .qa-icon { transform: scale(1.1) rotate(-3deg); }
.qa1 .qa-icon { background: rgba(0,100,255,.18); color: var(--blue-hi); }
.qa2 .qa-icon { background: rgba(0,255,195,.12); color: var(--teal); }
.qa3 .qa-icon { background: rgba(255,170,0,.12); color: var(--warn); }
.qa4 .qa-icon { background: rgba(0,212,255,.10); color: var(--cyan); }
.qa5 .qa-icon { background: rgba(124,58,237,.15); color: #a78bfa; }
.qa-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-mid); }

/* ─── TABLE ─── */
.tbl-wrap { overflow-x: auto; }
.tbl {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.tbl thead tr { background: rgba(1,10,25,.7); }
.tbl th {
  padding: 13px 18px; text-align: left;
  font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td {
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.035);
  color: var(--text-mid); vertical-align: middle;
}
.tbl tbody tr { transition: background .15s; animation: rowIn .4s ease-out both; }
.tbl tbody tr:hover { background: rgba(0,100,200,.07); }
.tbl tbody tr:last-child td { border-bottom: none; }
@keyframes rowIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.b-ok { background: rgba(0,255,195,.10); color: var(--teal); border: 1px solid rgba(0,255,195,.22); }
.b-ok::before { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.b-err { background: rgba(255,61,113,.10); color: var(--danger); border: 1px solid rgba(255,61,113,.22); }
.b-err::before { background: var(--danger); }
.b-pend { background: rgba(255,170,0,.10); color: var(--warn); border: 1px solid rgba(255,170,0,.22); }
.b-pend::before { background: var(--warn); }
.b-cr { background: rgba(0,255,195,.10); color: var(--teal); border: 1px solid rgba(0,255,195,.18); }
.b-cr::before { background: var(--teal); }
.b-dr { background: rgba(255,61,113,.10); color: var(--danger); border: 1px solid rgba(255,61,113,.18); }
.b-dr::before { background: var(--danger); }
.b-info { background: rgba(0,180,255,.10); color: var(--info); border: 1px solid rgba(0,180,255,.18); }
.b-info::before { background: var(--info); }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 8px;
}
.form-input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px 16px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 14px;
  transition: all .2s; outline: none;
}
.form-input:focus { border-color: var(--border-b); box-shadow: 0 0 0 3px rgba(0,180,255,.1); background: rgba(255,255,255,.06); }
.form-input::placeholder { color: var(--text-dim); }
.form-input.has-error { border-color: rgba(255,61,113,.5); }
.form-select {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px 16px; color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 14px; cursor: pointer; outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237ba3c8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-select:focus { border-color: var(--border-b); }
.form-select option { background: var(--deep); color: var(--text); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all .22s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: white; box-shadow: 0 4px 20px rgba(0,100,255,.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-mid), var(--cyan)); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,150,255,.4); }
.btn-success {
  background: linear-gradient(135deg, #007a5a, var(--teal));
  color: var(--void); box-shadow: 0 4px 20px rgba(0,255,180,.2);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,255,180,.3); }
.btn-danger {
  background: linear-gradient(135deg, #cc0044, var(--danger));
  color: white; box-shadow: 0 4px 20px rgba(255,61,113,.3);
}
.btn-danger:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border-b); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── PAGINATION ─── */
.pagi {
  display: flex; gap: 5px; align-items: center;
  padding: 16px 22px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.pagi a, .pagi .pi {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--text-mid); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); transition: all .18s;
}
.pagi a:hover, .pagi a.cur {
  background: rgba(0,150,255,.18); color: var(--cyan);
  border-color: rgba(0,150,255,.30);
}
.pagi-info { width: auto; padding: 0 12px; font-size: 12px; color: var(--text-dim); margin-left: auto; }

/* ─── TOAST NOTIFICATIONS ─── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius); min-width: 280px;
  backdrop-filter: blur(20px); box-shadow: var(--shadow-lg);
  animation: toastIn .35s ease-out;
  border: 1px solid var(--border);
}
@keyframes toastIn { from{opacity:0;transform:translateX(50px)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { to{opacity:0;transform:translateX(50px)} }
.toast.success { background: rgba(0,60,30,.9); border-color: rgba(0,255,195,.2); }
.toast.error { background: rgba(60,0,20,.9); border-color: rgba(255,61,113,.2); }
.toast.info { background: rgba(0,30,60,.9); border-color: rgba(0,180,255,.2); }
.toast-icon { font-size: 18px; }
.toast.success .toast-icon { color: var(--teal); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }
.toast-msg { font-size: 13.5px; font-weight: 500; color: var(--text); flex: 1; }

/* ─── FLASH MESSAGE ─── */
.flash {
  margin-bottom: 18px; padding: 14px 18px;
  border-radius: var(--radius); display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 500; animation: cardIn .4s ease;
}
.flash.success { background: rgba(0,255,195,.08); border: 1px solid rgba(0,255,195,.2); color: var(--teal); }
.flash.error { background: rgba(255,61,113,.08); border: 1px solid rgba(255,61,113,.2); color: var(--danger); }
.flash.info { background: rgba(0,180,255,.08); border: 1px solid rgba(0,180,255,.2); color: var(--info); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 52px 24px; color: var(--text-dim); }
.empty-state i { font-size: 44px; display: block; margin-bottom: 14px; opacity: .25; }
.empty-state p { font-size: 13.5px; }

/* ─── P-TAG / LINK ─── */
.p-tag {
  font-size: 11px; color: var(--text-dim);
  background: rgba(255,255,255,.04); padding: 4px 10px;
  border-radius: 100px; border: 1px solid var(--border);
}
.p-link {
  font-size: 12px; color: var(--cyan); text-decoration: none;
  font-weight: 600; display: flex; align-items: center; gap: 5px; transition: gap .2s;
}
.p-link:hover { gap: 9px; }

/* ─── COPY WIDGET ─── */
.copy-row { display: flex; align-items: stretch; }
.copy-disp {
  flex: 1; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px 0 0 11px; padding: 13px 20px;
  font-family: 'Space Mono', monospace; font-size: 14px;
  letter-spacing: 3px; color: var(--blue-hi); font-weight: 700;
}
.copy-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border: none; border-radius: 0 11px 11px 0;
  color: white; padding: 13px 20px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all .2s; white-space: nowrap;
}
.copy-btn:hover { background: linear-gradient(135deg, var(--blue-mid), var(--cyan)); }
.copy-btn.done { background: linear-gradient(135deg, #007a5a, var(--teal)); }

/* ─── PAGE FOOTER ─── */
.pg-foot {
  padding: 0 28px 36px; text-align: center;
  font-size: 11.5px; color: var(--text-dim);
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
  transform: scale(.95) translateY(20px); transition: transform .25s;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-mid); transition: all .2s;
}
.modal-close:hover { background: rgba(255,61,113,.1); color: var(--danger); }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { left: 0; }
  .hmb { display: block; }
  .cw { padding: 0 14px 32px; }
  .hero { padding: 22px 16px 70px; }
  .tb-ticker { display: none; }
  #cursor-dot, #cursor-ring { display: none; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
}
#mob-overlay {
  display: none; position: fixed; inset: 0; z-index: 350;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
}
#mob-overlay.on { display: block; }