/* =============================================================
   BIRDS EMPIRE - Glassmorphism Design System
   ============================================================= */

:root {
  /* ---------- BRAND PALETTE ---------- */
  --deep-blue:    #123C9F;   /* Deep Electric Blue */
  --royal-blue:   #244FC4;   /* Royal / Indigo Blue */
  --electric:     #1746B8;   /* Electric Blue */
  --purple:       #7B3FE4;   /* Vibrant Purple */
  --violet:       #A94CFF;   /* Neon Violet */
  --magenta:      #E45CFF;   /* Magenta / Pink Glow */
  --navy:         #081C5E;   /* Dark Navy Background */
  --navy-deep:    #03081A;   /* Deepest navy (near black) */
  --white:        #F4F7FF;   /* Soft White */

  --brand-1: #123C9F;
  --brand-2: #6B35D6;
  --brand-3: #9440F0;
  --brand-4: #C44DF0;
  --accent:  #A94CFF;
  --gold:    #F5C451;

  /* ---------- LAVENDER GLOW (translucent highlights) ---------- */
  --lav-1: rgba(148, 64, 240, 0.30);
  --lav-2: rgba(196, 77, 240, 0.20);
  --lav-3: rgba(167, 139, 250, 0.20);
  --glow-soft: 0 0 22px rgba(148, 64, 240, 0.22);
  --glow-hard: 0 0 38px rgba(196, 77, 240, 0.30);

  /* ---------- GLASS SURFACES ---------- */
  --glass-1: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.095);
  --glass-3: rgba(255, 255, 255, 0.150);
  --glass-border: rgba(196, 181, 253, 0.16);
  --glass-border-strong: rgba(196, 181, 253, 0.32);
  --glass-hi: rgba(196, 77, 240, 0.12);
  --glass-blur: 24px;

  /* ---------- TEXT ---------- */
  --text: #EDF1FB;
  --text-soft: #D2DBF4;
  --text-muted: #98A6CE;
  --text-dim: #6C7CA6;

  /* ---------- STATUS ---------- */
  --success: #4ADE80;
  --success-bg: rgba(74, 222, 128, 0.13);
  --warning: #F5C451;
  --warning-bg: rgba(245, 196, 81, 0.13);
  --danger: #FB7185;
  --danger-bg: rgba(251, 113, 133, 0.13);
  --info: #7DD3FC;
  --info-bg: rgba(125, 211, 252, 0.13);

  /* ---------- SHAPE ---------- */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 10px 36px rgba(0, 2, 12, 0.62);
  --shadow-lg: 0 24px 70px rgba(0, 2, 12, 0.76);
  --glow: 0 0 0 1px rgba(148, 64, 240, 0.18), 0 14px 46px rgba(107, 53, 214, 0.26);

  --sidebar-w: 272px;
  --header-h: 66px;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #123C9F 0%, #6B35D6 50%, #C44DF0 100%);
  --grad-glow: linear-gradient(135deg, rgba(148,64,240,.26), rgba(196,77,240,.14));
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- Animated gradient mesh background ---------------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1100px 720px at 12% -8%,  rgba(18, 60, 159, 0.52), transparent 60%),
    radial-gradient(940px 660px at 90% 2%,    rgba(107, 53, 214, 0.46), transparent 58%),
    radial-gradient(860px 720px at 80% 94%,   rgba(196, 77, 240, 0.28), transparent 60%),
    radial-gradient(740px 620px at 4% 84%,    rgba(148, 64, 240, 0.26), transparent 58%),
    linear-gradient(170deg, #081C5E 0%, #05123a 48%, #03081a 100%);
}

.bg-mesh::after {
  content: '';
  position: absolute;
  inset: -55%;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(148, 64, 240, 0.34), transparent 44%),
    radial-gradient(circle at 68% 62%, rgba(196, 77, 240, 0.24), transparent 44%),
    radial-gradient(circle at 45% 88%, rgba(18, 60, 159, 0.40), transparent 46%);
  filter: blur(100px);
  animation: meshFloat 28s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, -3%) scale(1.10); }
  100% { transform: translate(-4%, 3%) scale(1.05); }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora ribbon */
.bg-mesh .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
}

/* ---------------- Glass primitives ---------------- */
.glass {
  background: var(--glass-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(228, 92, 255, 0.55), rgba(169, 76, 255, 0) 42%, rgba(196, 181, 253, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-2 { background: var(--glass-2); }
.glass-3 { background: var(--glass-3); }
.glass-strong {
  background: rgba(10, 26, 74, 0.78);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
.glass-hover { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s; }
.glass-hover:hover {
  transform: translateY(-4px);
  background: var(--glass-2);
  box-shadow: var(--shadow-lg), var(--glow);
}

/* ---------------- App shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  padding: 20px 14px;
  overflow-y: auto;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 22, 68, 0.86), rgba(6, 17, 54, 0.90));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  box-shadow: 6px 0 40px rgba(4, 9, 34, 0.5);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(9, 24, 72, 0.80), rgba(8, 21, 62, 0.68));
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(4, 9, 34, 0.42);
}

.content { padding: 24px 22px 60px; flex: 1; min-width: 0; }

/* ---------------- Brand ---------------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 20px; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 26px rgba(123, 63, 228, 0.60), inset 0 1px 0 rgba(255,255,255,.35);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

/* ---------------- Sidebar nav ---------------- */
.nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--text-dim); font-weight: 700;
  padding: 16px 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 3px;
  position: relative;
  transition: background .22s, color .22s, transform .22s;
}
.nav-item:hover { background: var(--glass-2); color: #fff; transform: translateX(3px); }
.nav-item.active {
  background: linear-gradient(100deg, rgba(123, 63, 228, 0.55), rgba(228, 92, 255, 0.24));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.30), 0 6px 22px rgba(123, 63, 228, 0.30);
  text-shadow: 0 0 12px rgba(228, 92, 255, 0.45);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--violet), var(--magenta));
  box-shadow: var(--glow-soft);
}
.nav-item .ic { width: 19px; text-align: center; flex-shrink: 0; font-size: 15px; }
.nav-badge {
  margin-left: auto;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(251, 113, 133, .5);
}
.nav-badge.gold { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* ---------------- Topbar right ---------------- */
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--glass-3); transform: translateY(-2px); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(10,16,30,.8);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 40px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background .2s;
}
.user-chip:hover { background: var(--glass-3); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(123, 63, 228, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 78px; height: 78px; font-size: 26px; }
.user-name { font-size: 13px; font-weight: 600; line-height: 1.15; }
.user-role { font-size: 10.5px; color: var(--text-muted); }

/* ---------------- Hero / balance card ---------------- */
.hero {
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 20px;
  background:
    linear-gradient(120deg, rgba(18, 60, 159, 0.46), rgba(107, 53, 214, 0.36) 48%, rgba(196, 77, 240, 0.26));
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.16);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -60%; right: -14%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(228,92,255,.30), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.hero-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,.78); font-weight: 700; margin-bottom: 8px;
}
.balance-amount {
  font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.05;
  text-shadow: 0 4px 24px rgba(123, 63, 228, 0.55), 0 0 34px rgba(228, 92, 255, 0.28);
}
.balance-amount .cur { font-size: 24px; opacity: .78; margin-right: 3px; }
.balance-sub { font-size: 12.5px; color: rgba(255,255,255,.74); margin-top: 8px; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(196,181,253,.30);
  backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.wallet-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.wallet-pill {
  padding: 9px 14px; border-radius: 14px;
  background: rgba(6, 17, 54, 0.42);
  border: 1px solid rgba(196,181,253,.20);
  backdrop-filter: blur(10px);
}
.wallet-pill .w-l { font-size: 10.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .6px; }
.wallet-pill .w-v { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ---------------- Stat cards ---------------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
/* grid tracks must be allowed to shrink; otherwise wide tables/inputs push the grid past the viewport */
.grid > * { min-width: 0; }

.stat {
  padding: 18px;
  border-radius: var(--r);
  background: var(--glass-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.stat:hover { transform: translateY(-5px); background: var(--glass-2); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 19px; margin-bottom: 13px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
}
.stat-label { font-size: 11.5px; color: var(--text-muted); font-transform: uppercase; letter-spacing: .7px; font-weight: 600; }
.stat-value { font-size: 25px; font-weight: 800; margin-top: 5px; letter-spacing: -.5px; }
.stat-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--danger); font-weight: 600; }

.tint-purple { background: linear-gradient(135deg, rgba(123,63,228,.34), rgba(169,76,255,.10)); }
.tint-blue   { background: linear-gradient(135deg, rgba(23,70,184,.34), rgba(36,79,196,.10)); }
.tint-green  { background: linear-gradient(135deg, rgba(16,185,129,.28), rgba(74,222,128,.08)); }
.tint-gold   { background: linear-gradient(135deg, rgba(245,196,81,.28), rgba(245,196,81,.08)); }
.tint-pink   { background: linear-gradient(135deg, rgba(228,92,255,.32), rgba(228,92,255,.08)); }
.tint-cyan   { background: linear-gradient(135deg, rgba(125,211,252,.28), rgba(125,211,252,.08)); }
.tint-red    { background: linear-gradient(135deg, rgba(251,113,133,.28), rgba(251,113,133,.08)); }

/* ---------------- Card / panel ---------------- */
.card {
  padding: 22px;
  border-radius: var(--r);
  background: var(--glass-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.card-title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card-title .ic { font-size: 17px; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 26px rgba(123, 63, 228, 0.42);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 14px 34px rgba(169, 76, 255, 0.50); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

.btn-ghost {
  background: var(--glass-2);
  border-color: var(--glass-border);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-3); box-shadow: 0 0 0 1px rgba(169,76,255,.30); }

.btn-green { background: linear-gradient(135deg, #0E9F6E, #4ADE80); box-shadow: 0 6px 22px rgba(74,222,128,.34); color: #04241a; }
.btn-gold  { background: linear-gradient(135deg, #D99A1C, #F5C451); box-shadow: 0 6px 22px rgba(245,196,81,.34); color: #241a05; }
.btn-pink  { background: linear-gradient(135deg, #7B3FE4, #E45CFF); box-shadow: 0 6px 22px rgba(228,92,255,.40); }
.btn-red   { background: linear-gradient(135deg, #BE123C, #FB7185); box-shadow: 0 6px 22px rgba(251,113,133,.34); }
.btn-cyan  { background: linear-gradient(135deg, #1746B8, #7DD3FC); box-shadow: 0 6px 22px rgba(125,211,252,.34); color: #04182e; }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 11px; border-radius: 9px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 15px; }
.label {
  display: block; font-size: 12px; font-weight: 650;
  color: var(--text-soft); margin-bottom: 7px;
  letter-spacing: .2px;
}
.label .req { color: var(--danger); }
.hint { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(9, 14, 26, 0.42);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.75);
  background: rgba(9, 14, 26, 0.62);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}
.textarea { min-height: 92px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393a4c0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.select option { background: #131c2f; color: var(--text); }

.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 44px; height: 25px; border-radius: 20px;
  background: rgba(9, 14, 26, 0.6);
  border: 1px solid var(--glass-border);
  position: relative; transition: background .25s;
  flex-shrink: 0;
}
.switch .track::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--text-muted);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s;
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.switch input:checked + .track::after { transform: translateX(19px); background: #fff; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.check-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand-1); cursor: pointer; }

/* ---------------- Fixed withdrawal amount boxes ---------------- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 13px;
}
.amount-box {
  position: relative;
  padding: 17px 15px;
  border-radius: var(--r);
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  text-align: center;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .22s, border-color .22s, box-shadow .22s;
  user-select: none;
}
.amount-box:hover { transform: translateY(-4px); background: var(--glass-2); border-color: var(--glass-border-strong); }
.amount-box input { position: absolute; opacity: 0; pointer-events: none; }
.amount-box .a-main { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.amount-box .a-fee { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.amount-box .a-net { font-size: 11.5px; color: var(--success); font-weight: 650; margin-top: 2px; }
.amount-box.selected {
  background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(56,189,248,.18));
  border-color: rgba(124, 92, 255, 0.85);
  box-shadow: 0 10px 30px rgba(124,92,255,.35);
  transform: translateY(-4px);
}
.amount-box.selected::after {
  content: '\2713';
  position: absolute; top: 9px; right: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-1); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.amount-box:disabled, .amount-box.disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ---------------- Plan cards ---------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.plan-card {
  padding: 22px 18px;
  border-radius: var(--r);
  background: var(--glass-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow); background: var(--glass-2); }
.plan-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  opacity: .85;
}
.plan-card.featured {
  background: linear-gradient(150deg, rgba(124,92,255,.28), rgba(56,189,248,.12));
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 14px 44px rgba(124,92,255,.28);
}
.plan-card.free { background: linear-gradient(150deg, rgba(52,211,153,.22), rgba(34,211,238,.08)); }
.plan-card.free::before { background: linear-gradient(90deg, #34d399, #22d3ee); }
.plan-name { font-size: 14px; font-weight: 700; }
.plan-amount { font-size: 31px; font-weight: 800; letter-spacing: -1px; margin: 9px 0; }
.plan-amount .cur { font-size: 17px; opacity: .7; }
.plan-row { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-top: 1px dashed rgba(255,255,255,.10); }
.plan-row span:first-child { color: var(--text-muted); }
.plan-row span:last-child { font-weight: 650; }
.plan-tag {
  position: absolute; top: 12px; right: -28px;
  transform: rotate(38deg);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1a1205; font-size: 9.5px; font-weight: 800;
  padding: 4px 32px;
  letter-spacing: .5px;
}

/* ---------------- Countdown ---------------- */
.countdown-box {
  padding: 20px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(124,92,255,.20), rgba(56,189,248,.08));
  border: 1px solid var(--glass-border);
  text-align: center;
}
.cd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--text-muted); font-weight: 700; }
.cd-value {
  font-size: 33px; font-weight: 800; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Consolas', monospace;
  margin: 7px 0;
  background: linear-gradient(135deg, #fff, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .58; } }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--glass-border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
/* wide management tables (many columns) keep their layout and scroll inside the card */
table.tbl.tbl-wide { min-width: 860px; }
table.tbl thead th {
  background: rgba(9, 14, 26, 0.55);
  padding: 12px 14px;
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  position: sticky; top: 0;
}
table.tbl tbody td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
table.tbl tbody tr { transition: background .18s; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.045); }
.t-right { text-align: right; }
.t-center { text-align: center; }
.t-muted { color: var(--text-muted); font-size: 12px; }
.t-mono { font-family: 'SF Mono', Consolas, monospace; font-size: 12px; }
.t-bold { font-weight: 700; }
.t-credit { color: var(--success); font-weight: 650; }
.t-debit { color: var(--danger); font-weight: 650; }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,.28); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,.28); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(251,113,133,.28); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(56,189,248,.28); }
.badge-muted   { background: rgba(148,163,184,.12); color: var(--text-muted); border: 1px solid rgba(148,163,184,.22); }
.badge-purple  { background: rgba(124,92,255,.16); color: #c4b5fd; border: 1px solid rgba(124,92,255,.32); }

/* ---------------- Alerts ---------------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 17px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  border: 1px solid;
}
.alert .ic { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.alert-danger  { background: var(--danger-bg);  border-color: rgba(251,113,133,.3); color: #fecdd3; }
.alert-warning { background: var(--warning-bg); border-color: rgba(251,191,36,.3); color: #fde68a; }
.alert-info    { background: var(--info-bg);    border-color: rgba(56,189,248,.3); color: #bae6fd; }
.alert a { color: #fff; text-decoration: underline; }

/* ---------------- Progress ---------------- */
.progress { height: 8px; border-radius: 20px; background: rgba(9,14,26,.55); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 20px;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 12px rgba(124,92,255,.5);
}
.progress.green > span { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 12px rgba(52,211,153,.5); }
.progress.gold  > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 12px rgba(251,191,36,.5); }

/* ---------------- Copy field ---------------- */
.copy-field {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(9,14,26,.45);
  border: 1px dashed var(--glass-border-strong);
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}
.copy-field .val { flex: 1; color: var(--accent); }

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 460px;
  border-radius: var(--r-lg);
  padding: 28px;
  background: rgba(18, 26, 45, 0.88);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg);
  animation: slideUp .35s cubic-bezier(.2,.8,.2,1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-icon {
  width: 62px; height: 62px; border-radius: 20px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 30px rgba(37, 211, 102, .34);
}
.modal-title { font-size: 18px; font-weight: 750; text-align: center; margin-bottom: 10px; }
.modal-text { font-size: 13.5px; color: var(--text-soft); text-align: center; line-height: 1.75; }
.modal-actions { display: flex; gap: 11px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
.wa-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; box-shadow: 0 6px 20px rgba(37,211,102,.34);
}

/* ---------------- Chat ---------------- */
.chat-box {
  height: 430px; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 11px;
}
.msg { max-width: 76%; padding: 11px 15px; border-radius: 17px; font-size: 13.5px; line-height: 1.6; }
.msg-time { font-size: 10px; opacity: .6; margin-top: 5px; }
.msg.member { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--glass-border); border-bottom-left-radius: 5px; }
.msg.admin {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(124,92,255,.42), rgba(56,189,248,.26));
  border: 1px solid rgba(124,92,255,.36);
  border-bottom-right-radius: 5px;
}
.chat-input { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--glass-border); }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; border-radius: 15px; background: rgba(9,14,26,.32); border: 1px solid var(--glass-border); width: fit-content; max-width: 100%; }
.tab {
  padding: 8px 16px; border-radius: 11px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; box-shadow: 0 4px 14px rgba(124,92,255,.34); }

/* ---------------- Pagination ---------------- */
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 7px 13px; border-radius: 10px;
  background: var(--glass-1); border: 1px solid var(--glass-border);
  font-size: 12.5px; text-decoration: none; color: var(--text-soft);
  min-width: 36px; text-align: center;
}
.pager a:hover { background: var(--glass-2); color: #fff; }
.pager .current { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; border-color: transparent; }

/* ---------------- Empty state ---------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text-muted); }
.empty-icon { font-size: 42px; margin-bottom: 12px; opacity: .55; }
.empty-title { font-size: 15px; font-weight: 650; color: var(--text-soft); margin-bottom: 6px; }
.empty-text { font-size: 12.5px; }

/* ---------------- Auth pages ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card {
  width: 100%; max-width: 430px;
  padding: 34px 30px;
  border-radius: var(--r-xl);
  background: rgba(16, 23, 42, 0.62);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg);
  animation: slideUp .5s cubic-bezier(.2,.8,.2,1);
}
.auth-card.wide { max-width: 520px; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .brand-logo { width: 62px; height: 62px; font-size: 24px; margin: 0 auto 14px; border-radius: 19px; }
.auth-brand h1 { font-size: 22px; font-weight: 750; }
.auth-brand p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.auth-links { display: flex; gap: 12px; margin-top: 18px; }
.auth-links a {
  flex: 1; padding: 9px; border-radius: 12px;
  background: var(--glass-1); border: 1px solid var(--glass-border);
  text-align: center; font-size: 12px; color: var(--text-soft); text-decoration: none;
  transition: background .2s, transform .2s;
}
.auth-links a:hover { background: var(--glass-2); transform: translateY(-2px); color: #fff; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--text-muted); }
.auth-foot a { color: var(--brand-2); text-decoration: none; font-weight: 600; }

.referral-banner {
  padding: 13px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(52,211,153,.20), rgba(34,211,238,.08));
  border: 1px solid rgba(52,211,153,.28);
  font-size: 12.5px; color: #a7f3d0;
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 18px;
}

/* ---------------- Utilities ---------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; } .gap10 { gap: 10px; } .gap14 { gap: 14px; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; }
.mt18 { margin-top: 18px; } .mt24 { margin-top: 24px; }
.mb6 { margin-bottom: 6px; } .mb10 { margin-bottom: 10px; }
.mb14 { margin-bottom: 14px; } .mb18 { margin-bottom: 18px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 17px; }
.fw7 { font-weight: 700; }
.fw6 { font-weight: 600; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-gold { color: var(--gold); }
.text-purple { color: #c4b5fd; }
.hidden { display: none !important; }
.full { width: 100%; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); margin: 18px 0; }
.mono { font-family: 'SF Mono', Consolas, monospace; }

/* ---------------- Simple bar chart ---------------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 12px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.chart-bar {
  width: 100%; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-1));
  min-height: 5px;
  box-shadow: 0 4px 14px rgba(124,92,255,.34);
  transition: height .7s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.chart-bar:hover { filter: brightness(1.2); }
.chart-label { font-size: 10px; color: var(--text-muted); }
.chart-val { font-size: 10px; color: var(--text-soft); font-weight: 650; }

/* ---------------- Responsive ---------------- */
.menu-toggle { display: none; }

@media (max-width: 1200px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-overlay {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(4,8,18,.6);
    backdrop-filter: blur(4px);
    display: none;
  }
  .sidebar-overlay.open { display: block; }
}

@media (max-width: 620px) {
  .content { padding: 16px 13px 50px; }
  .topbar { padding: 0 14px; }
  .g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; }
  .g2.keep-2, .g4.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-amount { font-size: 32px; }
  .hero { padding: 20px; }
  .card { padding: 17px; }
  .plan-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .user-chip .user-info { display: none; }
  .auth-card { padding: 26px 20px; }
  .cd-value { font-size: 27px; }
  .tabs { width: 100%; overflow-x: auto; }
}

@media print {
  .sidebar, .topbar, .btn, .tabs { display: none !important; }
  .main { margin-left: 0; }
  body { background: #fff; color: #000; }
}

/* Scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(9,14,26,.4); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* =============================================================
   PAYMENT METHOD PICKER  (member deposit / withdraw)
   ============================================================= */
.pm-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pm-opt { display: block; cursor: pointer; }
.pm-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.pm-opt-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color .18s, background .18s, transform .12s;
}
.pm-opt:hover .pm-opt-in { border-color: rgba(77, 155, 255, .45); }
.pm-opt:active .pm-opt-in { transform: scale(.985); }
.pm-opt input:checked + .pm-opt-in {
  border-color: #2E86FF;
  background: linear-gradient(160deg, rgba(46, 134, 255, .20), rgba(46, 134, 255, .07));
  box-shadow: 0 0 0 1px rgba(46, 134, 255, .35), 0 8px 20px rgba(46, 134, 255, .18);
}
.pm-opt input:focus-visible + .pm-opt-in { outline: 2px solid #7FB2FF; outline-offset: 2px; }
.pm-opt-ic {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(77, 155, 255, .14);
  color: #7FB2FF;
}
.pm-opt input:checked + .pm-opt-in .pm-opt-ic {
  background: linear-gradient(135deg, #2E86FF, #1E6BE6);
  color: #fff;
}
.pm-opt-txt {
  font-size: 12px;
  font-weight: 700;
  color: #E6EDF8;
  line-height: 1.25;
}
@media (max-width: 420px) {
  .pm-picker { gap: 8px; }
  .pm-opt-in { padding: 10px 6px; }
  .pm-opt-txt { font-size: 11px; }
}

/* =============================================================
   PLAN IMAGE  (admin plan edit + member plan card)
   ============================================================= */

/* ---- admin edit modal ---- */
.plan-img-row { display: flex; gap: 12px; align-items: flex-start; }
.plan-img-prev {
  width: 120px; height: 82px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(46,134,255,.18), rgba(120,90,255,.14));
  display: grid; place-items: center;
  flex-shrink: 0;
  color: rgba(255,255,255,.55);
}
.plan-img-prev.empty { border-style: dashed; }
.plan-img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-img-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---- member plans page ---- */
.plan-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(30,107,230,.28), rgba(120,90,255,.18));
  border: 1px solid rgba(255,255,255,.10);
  display: block;
}
.plan-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.plan-card-img.fallback {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
}
@media (max-width: 420px) {
  .plan-card-img { aspect-ratio: 2 / 1; border-radius: 12px; }
  .plan-img-prev { width: 96px; height: 68px; }
}

/* support FAB (admin shell) */
#supportFab {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1746B8 0%, #7B3FE4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 900;
  box-shadow:
    0 10px 28px rgba(123, 63, 228, 0.42),
    0 4px 10px rgba(0, 0, 0, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
#supportFab:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 36px rgba(169, 76, 255, 0.5), 0 6px 14px rgba(0,0,0,.3);
}
#supportFab.dragging { cursor: grabbing; transform: scale(.96); }
#supportFab svg { width: 30px; height: 30px; fill: currentColor; pointer-events: none; }

#supportFab .online-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #0a122a;
  border-radius: 50%;
  pointer-events: none;
}
#supportFab .online-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(34, 197, 94, 0.38);
  border-radius: 50%;
  animation: fabPulse 1.8s infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(.7); opacity: .85; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

#supportFab::before {
  content: attr(data-label);
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #0b1120;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(196,181,253,.16);
}
#supportFab:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
