:root {
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --primary: #5b6ef5;
  --primary-hover: #495ce6;
  --primary-soft: rgba(91, 110, 245, 0.12);
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --neon: #a4fb53;
  --cyan: #38bdf8;
  --transition: 0.2s ease;

  /* Default light panel tokens */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --border: #e6e9f2;
  --text: #111827;
  --muted: #6b7280;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.05);
}

/* Full Dark Gaming Theme */
html[data-theme="dark"] {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #182235;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f3f6fc;
  --muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.2);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hybrid Theme: Dark Esports Storefront + Clean Light AnarGift Panel */
html[data-theme="hybrid"][data-view="store"] {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #172033;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f3f6fc;
  --muted: #94a3b8;
  --primary: #5b6ef5;
  --primary-hover: #7182ff;
  --primary-soft: rgba(91, 110, 245, 0.22);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
.hidden { display: none !important; }
.ltr-num, .ltr-input { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }
.ltr-input { text-align: left; }
.mt-md { margin-top: 18px; }
.mt-lg { margin-top: 28px; }
.mb-md { margin-bottom: 18px; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.topbar-right, .topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: 0.72rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--primary-soft); }

/* Theme switcher */
.theme-switcher {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}
.theme-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.theme-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(91, 110, 245, 0.35); }

/* User Pill (Screenshot 1) */
.user-pill-wrap { position: relative; }
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
}
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-sep { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 110, 245, 0.28);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}
.btn-soft:hover { filter: brightness(1.06); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 0.83rem; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ── Hero Section ── */
.hero-section {
  padding: 46px 0 36px;
  background: radial-gradient(circle at 80% 10%, rgba(91, 110, 245, 0.16), transparent 46%),
              radial-gradient(circle at 12% 85%, rgba(56, 189, 248, 0.12), transparent 42%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}
.hero-title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.3; font-weight: 900; margin: 0 0 14px; }
.accent-text {
  background: linear-gradient(120deg, #5b6ef5, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { color: var(--muted); font-size: 1rem; margin: 0 0 24px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.hero-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.hero-metric strong { font-size: 1.05rem; color: var(--primary); font-weight: 800; }
.hero-metric span { font-size: 0.76rem; color: var(--muted); }

.hero-art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art-img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-art-caption {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.hero-art-caption strong { font-size: 0.95rem; color: var(--primary); }
.hero-art-caption span { font-size: 0.82rem; color: var(--muted); }
.hero-art-caption code { background: var(--primary-soft); color: var(--primary); padding: 1px 7px; border-radius: 6px; font-weight: 700; }

/* ── Sections ── */
.section { padding: 48px 0; }
.section-alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-kicker { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--primary); font-weight: 800; }
.section-head h2 { margin: 4px 0 0; font-size: 1.55rem; font-weight: 800; }
.section-desc { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.game-thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: #0c1220; overflow: hidden; }
.game-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(15, 23, 42, 0.82); color: #fff;
  backdrop-filter: blur(8px);
  padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.game-ping-pill {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(22, 163, 74, 0.92); color: #fff;
  padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 800;
}
.game-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.game-body p { margin: 0; font-size: 0.83rem; color: var(--muted); flex: 1; }
.game-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); }

/* Duration Tabs & Plans */
.duration-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.dur-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
}
.dur-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(91, 110, 245, 0.3); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.plan-card.popular { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(91, 110, 245, 0.16); }
.plan-ribbon {
  position: absolute; top: -11px; left: 16px;
  background: linear-gradient(120deg, #5b6ef5, #38bdf8); color: #fff;
  font-size: 0.72rem; font-weight: 800; padding: 3px 11px; border-radius: 999px;
}
.plan-gb { font-size: 1.5rem; font-weight: 900; display: flex; align-items: baseline; gap: 6px; }
.plan-gb small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.plan-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price { font-size: 1.32rem; font-weight: 900; color: var(--primary); }
.plan-old-price { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.plan-disc-badge { background: rgba(22, 163, 74, 0.14); color: var(--success); font-size: 0.74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; color: var(--muted); flex: 1; }
.plan-features li::before { content: "✓ "; color: var(--success); font-weight: 900; }

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.guide-icon { font-size: 1.8rem; margin-bottom: 8px; }
.guide-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.guide-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.dns-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dns-chip { background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; color: var(--primary); }

.site-footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner strong { color: var(--text); }
.footer-inner p { margin: 4px 0 0; }
.footer-badges { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; }

/* ── USER DASHBOARD (AnarGift Faithful RTL Design) ── */
.view-panel { padding: 28px 0 60px; }
.panel-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.sidebar-user-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #5b6ef5, #38bdf8);
  color: #fff; font-weight: 900; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-mini strong { display: block; font-size: 0.93rem; }
.sidebar-user-mini span { font-size: 0.8rem; color: var(--muted); }

.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
}
.sb-item:hover { background: var(--surface-2); color: var(--text); }
.sb-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91, 110, 245, 0.34);
}
.sb-logout { color: var(--danger); margin-top: 6px; }
.sb-logout:hover { background: rgba(220, 38, 38, 0.08); color: var(--danger); }
.sidebar-store-cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.anargift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-heading { font-size: 1.25rem; font-weight: 800; margin: 0 0 14px; }
.tab-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-header-row .section-heading { margin: 0; }

/* 6-Metric Card (Screenshot 2) */
.stats-card-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
  margin-bottom: 26px;
  text-align: center;
}
.stat-cell { display: flex; flex-direction: column; gap: 5px; }
.stat-label { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.stat-value { font-size: 0.94rem; font-weight: 600; color: var(--muted); }

/* Profile 2-column (Screenshot 2) */
.profile-two-col { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 22px; }
.form-card { display: flex; flex-direction: column; gap: 16px; }
.floating-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 14px;
  background: var(--surface);
  transition: border-color var(--transition);
}
.floating-field:focus-within { border-color: var(--primary); }
.field-caption { font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.floating-field input, .floating-field textarea {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  resize: vertical;
}
.link-btn {
  border: none; background: transparent; color: var(--primary);
  font-weight: 800; font-size: 0.94rem; cursor: pointer; padding: 0; margin-bottom: 10px;
}
.pw-desc { margin: 0 0 14px; font-size: 0.88rem; color: var(--text); line-height: 1.9; font-weight: 500; }
.pw-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

/* KYC Cards (Screenshot 3) */
.empty-folder-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 16px; text-align: center; gap: 12px; color: var(--muted);
}
.empty-folder-box strong { color: var(--text); font-size: 1rem; }
.bank-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}
.bank-card-visual {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-bank-name { font-weight: 800; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.bc-bank-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.bc-chip {
  width: 34px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.bc-pan { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.08em; text-align: center; padding: 6px 0; }
.bc-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.bank-detect-badge { font-size: 0.74rem; color: var(--primary); font-weight: 700; }
.file-upload-field {
  display: flex; flex-direction: column; gap: 6px; padding: 14px;
  border: 1px dashed var(--border); border-radius: 13px; background: var(--surface-2); font-size: 0.84rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
.pending-card-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px;
}

/* Invoices (Screenshot 4 + Expandable QR/DNS Drawer) */
.invoices-wrapper { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.invoice-row-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition);
}
.invoice-row-card:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.invoice-row-main {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}
.inv-no { font-size: 1.15rem; font-weight: 900; }
.inv-meta { display: flex; flex-direction: column; gap: 2px; }
.inv-meta span { font-size: 0.76rem; color: var(--muted); font-weight: 700; }
.inv-meta strong { font-size: 0.9rem; font-weight: 700; }
.status-delivered { color: var(--success) !important; }
.status-pending { color: var(--warning) !important; }
.status-failed, .status-cancelled { color: var(--danger) !important; }

.invoice-detail-drawer {
  border-top: 1px dashed var(--border);
  background: var(--surface-2);
  padding: 18px;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #e5e7eb;
}
.qr-box img { width: 140px; height: 140px; display: block; margin: 0 auto; }
.qr-box small { display: block; margin-top: 6px; color: #374151; font-size: 0.72rem; font-weight: 700; }
.inv-detail-info { display: flex; flex-direction: column; gap: 12px; }
.usage-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.usage-bar-track { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.usage-bar-fill { height: 100%; background: linear-gradient(90deg, #5b6ef5, #22c55e); border-radius: 999px; }
.copy-field-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 8px 10px;
}
.copy-field-row code {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.78rem; color: var(--muted); direction: ltr; text-align: left;
}
.inv-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Wallet & Transactions */
.wallet-hero-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.wallet-balance-big { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-top: 4px; }
.wallet-pill-note { background: var(--primary-soft); color: var(--primary); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.preset-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 0.82rem; cursor: pointer;
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary); }

.tx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: none; }
.tx-credit { color: var(--success); font-weight: 800; }
.tx-debit { color: var(--danger); font-weight: 800; }

/* Tickets */
.tickets-list { display: flex; flex-direction: column; gap: 14px; }
.ticket-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ticket-msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.t-msg { padding: 10px 14px; border-radius: 12px; font-size: 0.86rem; max-width: 88%; }
.t-msg.user { background: var(--primary-soft); align-self: flex-start; }
.t-msg.admin { background: rgba(22, 163, 74, 0.12); align-self: flex-end; border: 1px solid rgba(22, 163, 74, 0.28); }
.t-msg small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.ticket-reply-row { display: flex; gap: 8px; }
.ticket-reply-row input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; background: var(--surface-2); color: var(--text); }

.discount-banner {
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: var(--success);
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-card h3 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; }
.modal-close {
  position: absolute; top: 14px; left: 16px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 1.25rem; cursor: pointer;
}
.auth-mode-tabs, .sub-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 16px;
}
.auth-tab, .sub-tab {
  border: none; background: transparent; color: var(--muted);
  padding: 9px; border-radius: 9px; font-weight: 700; font-size: 0.84rem; cursor: pointer;
}
.auth-tab.active, .sub-tab.active { background: var(--primary); color: #fff; }
.modal-form { display: flex; flex-direction: column; gap: 13px; }
.checkout-summary {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem;
}
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1px solid var(--border); border-radius: 13px; cursor: pointer;
}
.pay-method-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-method-option strong { display: block; font-size: 0.9rem; }
.pay-method-option small { font-size: 0.77rem; color: var(--muted); }

/* Toast */
.toast-root {
  position: fixed; bottom: 20px; left: 20px; z-index: 120;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  background: #111827; color: #fff; padding: 12px 16px; border-radius: 12px;
  font-size: 0.86rem; font-weight: 700; box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  border-right: 4px solid var(--primary);
}
.toast.ok { border-right-color: #22c55e; }
.toast.err { border-right-color: #ef4444; }
.loading-box { padding: 30px; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .panel-shell, .profile-two-col { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; }
  .invoice-row-main { grid-template-columns: 1fr 1fr; }
  .invoice-detail-drawer { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .stats-card-6 { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
}
