/* ===========================
   SORAKH NET — Premium Theme
   100% Local, No CDN
   =========================== */

/* ── Local Fonts ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Design Tokens ── */
:root {
  --bg:           #05070f;
  --bg2:          #080c18;
  --bg3:          #0d1225;
  --surface:      #0f1530;
  --surface2:     #141a38;
  --card:         rgba(14,20,46,0.85);
  --card2:        rgba(18,26,58,0.7);
  --border:       rgba(99,117,255,0.12);
  --border2:      rgba(99,117,255,0.22);

  --purple:       #6366f1;
  --purple2:      #818cf8;
  --purple-dark:  #3730a3;
  --purple-glow:  rgba(99,102,241,0.35);
  --cyan:         #22d3ee;
  --cyan2:        #67e8f9;
  --cyan-dark:    #0891b2;
  --cyan-glow:    rgba(34,211,238,0.25);
  --pink:         #ec4899;
  --pink-glow:    rgba(236,72,153,0.2);
  --emerald:      #10b981;
  --gold:         #f59e0b;

  --text:         #f0f4ff;
  --text2:        #a5b4d8;
  --muted:        #5c6b8a;

  --success:      #10b981;
  --success-bg:   rgba(16,185,129,0.1);
  --warning:      #f59e0b;
  --warning-bg:   rgba(245,158,11,0.1);
  --danger:       #f43f5e;
  --danger-bg:    rgba(244,63,94,0.1);
  --info:         #38bdf8;
  --info-bg:      rgba(56,189,248,0.1);

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-card:    linear-gradient(145deg, rgba(14,20,46,0.9) 0%, rgba(8,12,24,0.95) 100%);

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 40px rgba(99,102,241,0.2);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animated Background ── */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34,211,238,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(236,72,153,0.04) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(99,117,255,0.025) 60px, rgba(99,117,255,0.025) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(99,117,255,0.025) 60px, rgba(99,117,255,0.025) 61px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Selection ── */
::selection { background: var(--purple-glow); color: var(--text); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
a { color: var(--purple2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--cyan); }
code {
  font-family: 'Courier New', monospace;
  background: rgba(99,102,241,0.12);
  padding: 2px 7px; border-radius: 5px;
  font-size: 0.85em; color: var(--cyan2); direction: ltr; display: inline-block;
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-card); z-index: -1;
}
.card:hover { border-color: var(--border2); box-shadow: var(--shadow-glow); }
.card.glow   { box-shadow: var(--shadow-glow); border-color: rgba(99,102,241,0.3); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,7,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--text);
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; -webkit-text-fill-color: initial;
  box-shadow: 0 0 20px var(--purple-glow); flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--r-full);
  color: var(--text2); font-weight: 500; font-size: 0.9rem;
  transition: all var(--t-fast); cursor: pointer;
  border: none; background: none; font-family: inherit;
}
.nav-link:hover  { color: var(--text); background: rgba(99,102,241,0.1); }
.nav-link.active { color: var(--purple2); background: rgba(99,102,241,0.15); }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
  padding: 8px; border-radius: var(--r-sm); transition: background var(--t-fast);
}
.menu-toggle:hover { background: rgba(99,102,241,0.15); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--r-full);
  font-family: 'Vazirmatn', sans-serif; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; border: none; transition: all var(--t-normal);
  white-space: nowrap; position: relative; overflow: hidden; text-decoration: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(99,102,241,0.5); }

.btn-secondary {
  background: rgba(99,102,241,0.1); border: 1px solid var(--border2); color: var(--text2);
}
.btn-secondary:hover { background: rgba(99,102,241,0.18); color: var(--text); border-color: var(--purple); }

.btn-danger {
  background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.3); color: var(--danger);
}
.btn-danger:hover { background: rgba(244,63,94,0.2); }

.btn-success {
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--success);
}

.btn-cyan {
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.3); color: var(--cyan);
}
.btn-cyan:hover { background: rgba(34,211,238,0.18); }

.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: rgba(99,102,241,0.08); color: var(--text); }

.btn-sm   { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg   { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--r-md); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(244,63,94,0.2); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(56,189,248,0.2); }
.badge-purple  { background: rgba(99,102,241,0.12); color: var(--purple2); border: 1px solid rgba(99,102,241,0.25); }

/* ── Alerts ── */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 0.9rem; line-height: 1.5;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(244,63,94,0.25); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(56,189,248,0.2); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--text2); }
.form-input {
  background: rgba(8,12,24,0.7); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  color: var(--text); font-family: inherit; font-size: 0.92rem;
  width: 100%; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(10,14,28,0.9);
}
.form-input::placeholder { color: var(--muted); }
.form-input[readonly] { background: rgba(5,7,15,0.6); cursor: text; color: var(--text2); }
select.form-input { cursor: pointer; }
select.form-input option { background: var(--surface); }
textarea.form-input { resize: vertical; min-height: 90px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }

/* ── Tabs ── */
.tabs {
  display: flex; gap: 4px;
  background: rgba(8,12,24,0.6); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 4px; width: fit-content;
}
.tab {
  padding: 8px 20px; border-radius: var(--r-full);
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all var(--t-normal);
}
.tab.active { background: var(--grad-primary); color: #fff; box-shadow: 0 2px 12px var(--purple-glow); }
.tab:not(.active):hover { color: var(--text2); background: rgba(99,102,241,0.08); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r-xl); padding: 0;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.15);
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal > .modal-header + * { padding: 24px 28px; }
.modal-close {
  background: rgba(99,102,241,0.1); border: 1px solid var(--border);
  color: var(--muted); width: 32px; height: 32px; border-radius: var(--r-full);
  cursor: pointer; font-size: 1.1rem; transition: all var(--t-fast);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(244,63,94,0.3); }

/* Topup modal: hide scrollbar (RTL shows it on the left) but keep touch scroll */
#topupModal .modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#topupModal .modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Toast ── */
.toast-container {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  padding: 12px 22px; border-radius: var(--r-full);
  font-size: 0.88rem; font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: auto; white-space: nowrap;
  backdrop-filter: blur(20px); box-shadow: var(--shadow-md);
}
.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.toast-error   { background: rgba(244,63,94,0.15);  border: 1px solid rgba(244,63,94,0.3);  color: #fca5a5; }
.toast-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.toast-info    { background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.25); color: var(--info); }

/* ── Spinner ── */
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(99,102,241,0.15);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; flex-direction: column; gap: 12px;
}

/* ── Helpers ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; border: none; }
.hidden  { display: none !important; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Page Header ── */
.page-header  { margin-bottom: 32px; }
.page-title   {
  font-size: 1.75rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.page-subtitle { color: var(--muted); font-size: 0.92rem; }

/* ── Stats ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  backdrop-filter: blur(20px); transition: all var(--t-normal);
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.purple { background: rgba(99,102,241,0.15); }
.stat-icon.cyan   { background: rgba(34,211,238,0.12); }
.stat-icon.green  { background: rgba(16,185,129,0.12); }
.stat-icon.gold   { background: rgba(245,158,11,0.12); }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ── App Layout ── */
.app-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 256px; flex-shrink: 0;
  background: rgba(5,7,15,0.92);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; z-index: 50;
  backdrop-filter: blur(20px);
}
.sidebar-logo { padding: 24px 20px 20px; border-bottom: 1px solid var(--border); }
.sidebar-nav  { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: var(--r-md);
  color: var(--text2); font-family: inherit; font-size: 0.9rem; font-weight: 500;
  background: none; border: none; cursor: pointer; width: 100%;
  text-align: right; transition: all var(--t-fast);
}
.sidebar-item:hover  { background: rgba(99,102,241,0.08); color: var(--text); }
.sidebar-item.active {
  background: rgba(99,102,241,0.15); color: var(--purple2);
  border: 1px solid rgba(99,102,241,0.2);
}
.sidebar-item-icon { font-size: 1.1rem; width: 22px; flex-shrink: 0; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--card2); border: 1px solid var(--border); margin-bottom: 8px;
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff; flex-shrink: 0;
}
.sidebar-user-name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user-role { font-size: 0.75rem; color: var(--muted); }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 40;
}
.sidebar-overlay.visible { display: block; }

.main-content { flex: 1; min-width: 0; padding: 32px; overflow-y: auto; }
.mobile-header { display: none; }

/* ── Wallet ── */
.wallet-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px;
  text-align: center; position: relative; overflow: hidden;
  backdrop-filter: blur(20px);
}
.wallet-card::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.wallet-balance-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.wallet-balance {
  font-size: 2.8rem; font-weight: 900; line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.wallet-balance-currency { font-size: 1rem; font-weight: 600; }
.wallet-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  backdrop-filter: blur(20px); transition: all var(--t-slow);
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary); opacity: 0; transition: opacity var(--t-normal);
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: var(--shadow-md); }
.pricing-card:hover::before { opacity: 1; }
.pricing-card.featured {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.pricing-card.featured::before { opacity: 1; }

.pricing-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 700;
  margin-bottom: 16px; align-self: flex-start;
}
.pricing-badge.popular { background: rgba(99,102,241,0.15); color: var(--purple2); border: 1px solid rgba(99,102,241,0.3); }
.pricing-badge.special { background: rgba(245,158,11,0.12); color: var(--gold);    border: 1px solid rgba(245,158,11,0.25); }
.pricing-badge.economy { background: rgba(16,185,129,0.1);  color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }

.pricing-name    { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.pricing-desc    { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; min-height: 38px; }
.pricing-price   { margin-bottom: 4px; display: flex; align-items: baseline; gap: 6px; }
.pricing-amount  { font-size: 2rem; font-weight: 900; }
.pricing-currency{ font-size: 0.9rem; color: var(--muted); }
.pricing-period  { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.pricing-meta    { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pricing-meta-item {
  font-size: 0.8rem; color: var(--text2);
  background: rgba(99,102,241,0.08); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-full);
}
.pricing-features {
  list-style: none; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.pricing-features li {
  font-size: 0.86rem; color: var(--text2);
  padding-right: 20px; position: relative;
}
.pricing-features li::before { content: '✓'; position: absolute; right: 0; color: var(--success); font-weight: 700; }

/* ── Order Cards ── */
.order-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; backdrop-filter: blur(20px); transition: all var(--t-normal);
}
.order-card:hover { border-color: var(--border2); box-shadow: var(--shadow-sm); }
.order-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.order-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(99,102,241,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.order-name   { font-weight: 600; font-size: 0.95rem; }
.order-meta   { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.order-expire { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.order-status { flex-shrink: 0; text-align: left; }

/* ── Transactions ── */
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(99,117,255,0.07);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.tx-icon.deposit  { background: rgba(16,185,129,0.12); }
.tx-icon.purchase { background: rgba(99,102,241,0.12); }
.tx-desc  { flex: 1; min-width: 0; }
.tx-title { font-size: 0.9rem; font-weight: 500; }
.tx-date  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.tx-amount { font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.tx-amount.positive { color: var(--success); }
.tx-amount.negative { color: var(--text2); }

.topup-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--card2); border: 1px solid var(--border);
}

/* ── Config box ── */
.config-box {
  background: rgba(5,7,15,0.8); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
  font-family: monospace; font-size: 0.82rem; color: var(--cyan2);
  direction: ltr; text-align: left; white-space: pre-wrap;
  word-break: break-all; max-height: 220px; overflow-y: auto;
}

/* ── Empty State ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px;
  text-align: center; gap: 10px;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 8px; opacity: 0.7; }
.empty-state h3 { font-size: 1.1rem; color: var(--text2); }
.empty-state p  { font-size: 0.88rem; color: var(--muted); max-width: 300px; line-height: 1.6; }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: right;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 14px 16px; font-size: 0.88rem;
  border-bottom: 1px solid rgba(99,117,255,0.06); vertical-align: middle;
}
.data-table tr:hover td { background: rgba(99,102,241,0.04); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Table wrapper (admin lists) ── */
.table-wrapper {
  width: 100%; overflow-x: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.table-wrapper table {
  width: 100%; border-collapse: collapse; min-width: 640px;
}
.table-wrapper thead th {
  padding: 14px 16px; text-align: right;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--card2);
}
.table-wrapper tbody td {
  padding: 14px 16px; font-size: 0.88rem;
  border-bottom: 1px solid rgba(99,117,255,0.06); vertical-align: middle;
}
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr:hover td { background: rgba(99,102,241,0.04); }

.td-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

/* ── Inbound checkboxes ── */
.inbound-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 10px;
}
.inbound-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--t-fast); background: var(--card2);
}
.inbound-check-item:hover { border-color: var(--border2); background: rgba(99,102,241,0.08); }
.inbound-check-item input[type=checkbox] { accent-color: var(--purple); width: 16px; height: 16px; cursor: pointer; }
.inbound-check-item.selected { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }

/* ── Hero (Landing) ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  position: relative; z-index: 1; overflow: hidden;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 120%; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%),
                       radial-gradient(ellipse 80% 75% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%),
              radial-gradient(ellipse 80% 75% at 50% 45%, #000 55%, transparent 100%);
  mask-composite: intersect;
  filter: saturate(1.15) brightness(0.85);
}
.hero-video-bg video {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; object-fit: cover;
  transform: translate(-50%, -50%) scale(1.15);
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(5,7,15,0.55) 75%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(5,7,15,0.25) 18%, rgba(5,7,15,0.35) 55%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--r-full);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.82rem; font-weight: 600; color: var(--purple2);
  margin-bottom: 24px; letter-spacing: 0.03em;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.15;
  margin-bottom: 20px; max-width: 800px;
}
.hero-title .gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text2);
  max-width: 520px; line-height: 1.7; margin-bottom: 40px;
}
.hero-actions  { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-features {
  display: flex; gap: 32px; margin-top: 64px;
  flex-wrap: wrap; justify-content: center;
}
.hero-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text2); }
.hero-feature-icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: rgba(99,102,241,0.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* ── Sections ── */
.section { padding: 80px 24px; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; padding: 4px 14px;
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2);
  border-radius: var(--r-full); font-size: 0.78rem; font-weight: 600;
  color: var(--cyan); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px;
}
.section-title    { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; line-height: 1.7; }
.container        { max-width: 1200px; margin: 0 auto; }

/* ── Feature cards ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  backdrop-filter: blur(20px); transition: all var(--t-slow);
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-icon.purple { background: rgba(99,102,241,0.15); }
.feature-icon.cyan   { background: rgba(34,211,238,0.1); }
.feature-icon.pink   { background: rgba(236,72,153,0.1); }
.feature-icon.gold   { background: rgba(245,158,11,0.1); }
.feature-icon.green  { background: rgba(16,185,129,0.1); }
.feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc  { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px; position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--r-xl); padding: 40px 36px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.1);
}
.auth-logo     { text-align: center; margin-bottom: 32px; }
.auth-title    {
  font-size: 1.5rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-subtitle { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.auth-footer   { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--muted); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite; border-radius: var(--r-md);
}

/* ── Animations ── */
.fade-in { animation: fadeIn 0.35s ease both; }

@keyframes fadeIn  { from { opacity:0; }                              to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity:0; transform: translateY(-10px) scale(0.95); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes shimmer { from { background-position: -200% center; } to { background-position: 200% center; } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .main-content { padding: 24px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links .nav-link:not(.btn) { display: none; }
  .menu-toggle { display: flex; }
  .app-layout { z-index: auto; }

  .sidebar {
    position: fixed; top: 0; right: 0; width: 260px; height: 100vh;
    transform: translateX(100%);
    transition: transform var(--t-slow); z-index: 200; box-shadow: var(--shadow-lg);
    background: #05070f; backdrop-filter: none;
    will-change: transform;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--t-normal); }
  .sidebar-overlay.visible { opacity: 1; pointer-events: auto; }
  .mobile-header { display: flex; }
  .main-content  { padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2     { grid-template-columns: 1fr; }
  .hero       { padding: 60px 20px; }
  .section    { padding: 56px 20px; }
  .auth-card  { padding: 28px 24px; }
  .modal      { max-width: 100%; }
  .wallet-balance { font-size: 2.2rem; }
  .tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats-grid    { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .hero-title    { font-size: 2rem; }
  .page-title    { font-size: 1.4rem; }
  .card          { padding: 20px; }
  .wallet-card   { padding: 28px 20px; }
  .order-card    { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   LANDING PAGE — Missing classes
   ========================================= */

/* Background orbs */
.bg-orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(80px);
}
.bg-orb-1 {
  width: 500px; height: 500px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.bg-orb-2 {
  width: 400px; height: 400px; bottom: 200px; left: -100px;
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
}
.bg-orb-3 {
  width: 300px; height: 300px; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
}

/* Navbar */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.navbar.scrolled {
  background: rgba(5,7,15,0.96);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Social links */
.social-links { display: flex; align-items: center; gap: 10px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text2); transition: all var(--t-fast);
  flex-shrink: 0;
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  transform: translateY(-2px);
}
.nav-social { display: flex; align-items: center; gap: 8px; margin-inline-end: 8px; }
.nav-social .social-link { width: 36px; height: 36px; }
.nav-social .social-link svg { width: 16px; height: 16px; }
.footer-social { margin-top: 18px; }
.footer-links a.social-text-link {
  display: flex; align-items: center; gap: 8px;
}
.footer-links a.social-text-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

@media (max-width: 768px) {
  .nav-social { display: none; }
}

/* Hero */
.hero-visual {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.1);
  animation: pulse 4s ease-in-out infinite;
}
.hero-ring-1 { width: 400px; height: 400px; animation-delay: 0s; }
.hero-ring-2 { width: 650px; height: 650px; animation-delay: 0.8s; border-color: rgba(34,211,238,0.07); }
.hero-ring-3 { width: 900px; height: 900px; animation-delay: 1.6s; border-color: rgba(236,72,153,0.05); }

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--r-full);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.85rem; font-weight: 600; color: var(--purple2);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.15;
  text-align: center; margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text2);
  text-align: center; max-width: 520px; line-height: 1.75;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  padding: 24px 40px; border-radius: var(--r-xl);
  background: rgba(14,20,46,0.6); border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 1.6rem; font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Section tag */
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-full); font-size: 0.82rem; font-weight: 600;
  color: var(--purple2); margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-header p  { color: var(--muted); font-size: 0.95rem; }

/* Feature card (landing version — icon without color class) */
.feature-card .feature-icon {
  width: 56px; height: 56px; font-size: 1.6rem;
  background: rgba(99,102,241,0.12); border: 1px solid var(--border);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 28px; right: 10%; left: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 22px;
  text-align: center; backdrop-filter: blur(20px);
  transition: all var(--t-slow); position: relative;
}
.step:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: var(--shadow-md); }
.step-num {
  width: 52px; height: 52px; border-radius: var(--r-full);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  margin: 0 auto 16px; box-shadow: 0 4px 16px var(--purple-glow);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p   { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Footer */
footer {
  background: rgba(5,7,15,0.95);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1200px; margin: 0 auto 40px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.footer-logo .nav-logo-icon { -webkit-text-fill-color: initial; }
.footer-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text2); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; color: var(--muted); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--purple2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
  max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap; gap: 10px;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats   { gap: 24px; padding: 20px; }
  .steps::before { display: none; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
