/* ============================================
   MIKAMI OFFICIAL DIAS — Design System
   Theme: Dark Gaming / Volcanic Glass
   Fonts: Clash Display + Outfit
============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2a;
  --bg-elevated: #1a1a24;
  --border: #2a2a3a;
  --border-light: #333345;

  --accent: #7c3aed;
  --accent-light: #9d5cf6;
  --accent-glow: rgba(124,58,237,0.3);
  --accent2: #f59e0b;
  --accent2-light: #fbbf24;
  --accent3: #06b6d4;
  --accent3-light: #22d3ee;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  --text-primary: #f0f0f8;
  --text-secondary: #9090b0;
  --text-muted: #5a5a7a;

  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a1a 100%);
  --gradient-accent: linear-gradient(135deg, #7c3aed, #9d5cf6);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-card: linear-gradient(145deg, #16161f, #1e1e2a);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 20px rgba(124,58,237,0.3);
  --shadow-gold: 0 4px 20px rgba(245,158,11,0.3);

  --header-h: 64px;
  --bottom-nav-h: 64px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-h);
  padding-bottom: var(--bottom-nav-h);
}
a { cursor: pointer; text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select {
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-muted); }
img { max-width: 100%; }
h1,h2,h3,h4,h5 { font-family: 'Clash Display', sans-serif; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== MAINTENANCE OVERLAY ===== */
.maintenance-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
}
.maintenance-box {
  text-align: center; padding: 48px;
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.maintenance-icon { font-size: 64px; margin-bottom: 16px; }
.maintenance-box h2 { font-size: 28px; margin-bottom: 8px; }
.maintenance-box p { color: var(--text-secondary); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated); color: var(--text-primary);
  padding: 12px 24px; border-radius: var(--radius-full);
  border: 1px solid var(--border); z-index: 9000;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.info { border-color: var(--info); color: var(--info); }
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ===== GLOBAL LOADER ===== */
.global-loader {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(10,10,15,0.8);
  display: flex; align-items: center; justify-content: center;
}
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  color: white; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
.announcement-banner button {
  background: none; color: white; font-size: 16px; padding: 0 4px;
  opacity: 0.7; transition: opacity var(--transition);
}
.announcement-banner button:hover { opacity: 1; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex-shrink: 0;
}
.logo-img { height: 36px; width: auto; object-fit: contain; }
.logo-text-fallback {
  display: flex; align-items: center; gap: 8px;
}
.logo-gem { font-size: 24px; }
.logo-title {
  display: block; font-family: 'Clash Display', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  line-height: 1;
}
.logo-sub {
  display: block; font-size: 9px; font-weight: 500;
  color: var(--accent-light); letter-spacing: 2px; line-height: 1;
}
.desktop-nav {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary); background: var(--bg-elevated);
}
.header-actions {
  display: flex; align-items: center; gap: 10px;
}
.header-balance {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--accent2-light);
}
.balance-icon { font-size: 14px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient-accent);
  color: white; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--accent-light);
  border: 1px solid var(--accent); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-full);
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--accent-glow); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; text-align: center; }

/* ===== USER MENU ===== */
.user-avatar-btn { background: none; padding: 0; }
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: white;
  cursor: pointer;
}
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.dropdown-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.dropdown-header span { display: block; }
.dropdown-header span:first-child { font-weight: 600; font-size: 14px; }
.dropdown-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 14px; color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer;
}
.user-dropdown a:hover { background: var(--bg-card); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border); }
.logout-link { color: var(--danger) !important; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 12px 0;
}
.mobile-menu a {
  display: block; padding: 12px 20px; font-size: 15px;
  color: var(--text-secondary); transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.mobile-auth-link {
  display: inline-block !important; margin: 8px 20px 0 !important;
  padding: 10px 20px !important; border-radius: var(--radius-full) !important;
  background: var(--bg-elevated) !important; border: 1px solid var(--border) !important;
  font-weight: 600 !important;
}
.mobile-auth-link.register {
  background: var(--gradient-accent) !important; border-color: transparent !important;
  color: white !important;
}

/* ===== PAGES ===== */
.page { display: none; min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h)); }
.page.active { display: block; animation: pageIn 0.3s ease; }
@keyframes pageIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ===== SECTION CONTAINER ===== */
.section-container {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 20px;
}
.section-header { text-align: center; margin-bottom: 32px; }
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.section-sub { color: var(--text-secondary); font-size: 15px; }

/* ===== HERO ===== */
.hero-section {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.9) 0%, rgba(26,10,46,0.7) 50%, rgba(10,10,26,0.9) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.2); border: 1px solid var(--accent);
  color: var(--accent-light); padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
.hero-title {
  font-size: clamp(36px, 7vw, 72px); font-weight: 700; line-height: 1.1;
  margin-bottom: 16px; color: var(--text-primary);
}
.hero-accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px); color: var(--text-secondary);
  margin-bottom: 32px; line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--accent2-light);
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== GAME GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: all var(--transition-slow);
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.game-card-img-wrap {
  position: relative; height: 180px; overflow: hidden;
  background: var(--bg-elevated);
}
.game-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.game-card:hover .game-card-img { transform: scale(1.05); }
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 60%);
}
.game-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gradient-accent); color: white;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.game-card-body { padding: 16px; }
.game-card-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.game-card-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.game-card-price { font-size: 13px; color: var(--accent2-light); font-weight: 600; }
.game-card-btn {
  background: var(--gradient-accent); color: white;
  padding: 7px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; border: none;
  transition: all var(--transition);
}
.game-card-btn:hover { transform: scale(1.05); }

/* ===== FEATURES ===== */
.features-section {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 48px 0;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: center; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.page-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
}
.back-btn {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 8px 14px;
  border-radius: var(--radius-full); font-size: 13px;
  transition: all var(--transition);
}
.back-btn:hover { color: var(--text-primary); border-color: var(--accent); }

/* ===== GAME TABS ===== */
.game-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.game-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.game-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.game-tab.active {
  background: var(--gradient-accent); border-color: transparent;
  color: white; box-shadow: var(--shadow-accent);
}
.game-tab img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

/* ===== PACKAGES GRID ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.package-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; transition: all var(--transition);
  position: relative; text-align: center;
}
.package-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.package-card.selected {
  border-color: var(--accent); background: rgba(124,58,237,0.1);
}
.pkg-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
.pkg-badge.hot { background: #ef4444; color: white; }
.pkg-badge.popular { background: var(--gradient-accent); color: white; }
.pkg-badge.best-value { background: var(--gradient-gold); color: #1a1a00; }
.pkg-badge.new { background: var(--success); color: white; }
.pkg-badge.sale { background: var(--accent3); color: white; }
.pkg-icon { font-size: 28px; margin-bottom: 8px; }
.pkg-img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 8px; display: block; }
.pkg-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.pkg-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.pkg-price {
  font-size: 16px; font-weight: 700; color: var(--accent2-light);
}
.pkg-original-price {
  font-size: 12px; color: var(--text-muted);
  text-decoration: line-through; margin-bottom: 2px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
}
.modal-box {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  position: relative; animation: slideUp 0.3s ease;
}
@media (min-width: 600px) {
  .modal-box { border-radius: var(--radius-xl); }
}
@keyframes slideUp { from { transform: translateY(40px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); width: 32px; height: 32px;
  border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--danger); }
.modal-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.modal-pkg-icon { font-size: 40px; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-price { font-size: 22px; font-weight: 700; color: var(--accent2-light); }

/* ===== PAYMENT METHOD TOGGLE ===== */
.payment-method-toggle {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: var(--bg-card); padding: 4px; border-radius: var(--radius-full);
}
.method-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  background: none; transition: all var(--transition);
}
.method-btn.active {
  background: var(--gradient-accent); color: white;
  box-shadow: var(--shadow-accent);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; font-size: 16px; color: var(--text-muted);
  transition: color var(--transition);
}
.toggle-pw:hover { color: var(--text-primary); }

/* ===== WALLET BALANCE DISPLAY ===== */
.wallet-balance-display {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px;
  font-size: 14px;
}
.balance-highlight { font-weight: 700; color: var(--accent2-light); font-size: 16px; }

/* ===== UPI QR SECTION ===== */
.upi-qr-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
  margin-bottom: 16px;
}
.upi-instruction { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.qr-img {
  width: 160px; height: 160px; object-fit: contain;
  border-radius: var(--radius-md); margin: 0 auto 12px;
  display: block; background: white; padding: 8px;
}
.qr-img-large {
  width: 200px; height: 200px; object-fit: contain;
  border-radius: var(--radius-md); margin: 0 auto 16px;
  display: block; background: white; padding: 8px;
}
.upi-id-display {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: var(--radius-md); margin-bottom: 8px;
}
.upi-amount-note { font-size: 13px; color: var(--text-secondary); }
.upi-amount-note strong { color: var(--accent2-light); }
.copy-btn {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 10px;
  border-radius: var(--radius-sm); font-size: 12px;
  transition: all var(--transition);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-light); }

/* ===== WALLET PAGE ===== */
.wallet-balance-card {
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  border: 1px solid var(--accent); border-radius: var(--radius-xl);
  padding: 32px; text-align: center; margin-bottom: 32px;
  box-shadow: var(--shadow-accent);
}
.wallet-balance-label { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.wallet-balance-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: 48px; font-weight: 700; color: var(--accent2-light);
  margin-bottom: 8px;
}
.wallet-balance-sub { font-size: 13px; color: var(--text-muted); }
.wallet-add-section { margin-bottom: 32px; }
.sub-section-title {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  color: var(--text-primary);
}
.quick-amounts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.quick-amounts button {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 8px 16px;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  transition: all var(--transition);
}
.quick-amounts button:hover, .quick-amounts button.active {
  background: var(--gradient-accent); border-color: transparent;
  color: white; box-shadow: var(--shadow-accent);
}
.upi-payment-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  margin-bottom: 16px;
}
.upi-payment-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.upi-id-box {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 12px;
}
.upi-label { font-size: 13px; color: var(--text-secondary); }
.upi-value { font-weight: 700; color: var(--accent-light); font-size: 15px; }
.upi-note { font-size: 12px; color: var(--warning); line-height: 1.5; }
.qr-container { margin-bottom: 16px; }

/* ===== DEPOSIT HISTORY ===== */
.deposit-history-section { margin-top: 32px; }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.history-item-left { display: flex; flex-direction: column; gap: 2px; }
.history-item-title { font-size: 14px; font-weight: 600; }
.history-item-sub { font-size: 12px; color: var(--text-muted); }
.history-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.history-amount { font-weight: 700; font-size: 16px; color: var(--accent2-light); }
.status-badge {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status-badge.pending { background: rgba(245,158,11,0.2); color: var(--warning); border: 1px solid var(--warning); }
.status-badge.approved, .status-badge.completed { background: rgba(16,185,129,0.2); color: var(--success); border: 1px solid var(--success); }
.status-badge.rejected, .status-badge.failed { background: rgba(239,68,68,0.2); color: var(--danger); border: 1px solid var(--danger); }
.status-badge.processing { background: rgba(59,130,246,0.2); color: var(--info); border: 1px solid var(--info); }

/* ===== ORDERS ===== */
.orders-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.filter-btn {
  padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-accent); border-color: transparent;
  color: white;
}
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: all var(--transition);
}
.order-card:hover { border-color: var(--border-light); }
.order-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.order-id { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.order-card-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.order-detail { display: flex; flex-direction: column; gap: 2px; }
.order-detail-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.order-detail-value { font-size: 14px; font-weight: 600; }

/* ===== PROFILE ===== */
.profile-hero {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px;
}
.profile-avatar-large {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: 28px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.profile-badge {
  display: inline-block; padding: 3px 12px; border-radius: var(--radius-full);
  background: rgba(124,58,237,0.2); border: 1px solid var(--accent);
  color: var(--accent-light); font-size: 12px; font-weight: 600;
}
.profile-balance-card {
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  border: 1px solid var(--accent); border-radius: var(--radius-xl);
  padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.pbc-label { font-size: 13px; color: var(--text-secondary); }
.pbc-amount { font-family: 'Clash Display', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent2-light); }
.profile-menu { display: flex; flex-direction: column; gap: 2px; }
.profile-menu-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.profile-menu-item:hover { color: var(--text-primary); border-color: var(--accent); }
.pmi-icon { font-size: 20px; }
.pmi-arrow { margin-left: auto; color: var(--text-muted); }
.logout-item:hover { border-color: var(--danger); color: var(--danger); }

/* ===== AUTH ===== */
.auth-container {
  min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  width: 100%; max-width: 420px;
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 24px;
}
.auth-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 16px; }
.auth-switch a { color: var(--accent-light); font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== RESELLER ===== */
.reseller-hero { text-align: center; margin-bottom: 40px; }
.reseller-badge {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(124,58,237,0.2); border: 1px solid var(--accent);
  color: var(--accent-light); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.reseller-title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; margin-bottom: 12px; }
.reseller-sub { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.reseller-tiers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.tier-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; text-align: center;
  position: relative; transition: all var(--transition-slow);
}
.tier-card:hover { transform: translateY(-4px); }
.tier-card.bronze { border-color: #cd7f32; }
.tier-card.silver.popular-tier { border-color: var(--accent); box-shadow: var(--shadow-accent); transform: scale(1.02); }
.tier-card.gold { border-color: var(--accent2); }
.tier-badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-accent); color: white;
  padding: 4px 16px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.tier-icon { font-size: 48px; margin-bottom: 12px; }
.tier-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.tier-commission { font-size: 28px; font-weight: 700; color: var(--accent2-light); margin-bottom: 16px; }
.tier-card ul { list-style: none; margin-bottom: 20px; }
.tier-card ul li {
  padding: 6px 0; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li::before { content: '✓ '; color: var(--success); }
.reseller-dashboard {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
}
.reseller-dashboard h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.reseller-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px;
}
.rs-stat {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.rs-stat span { display: block; font-size: 24px; font-weight: 700; color: var(--accent2-light); margin-bottom: 4px; }
.rs-stat label { font-size: 12px; color: var(--text-muted); }
.referral-link-box label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input { flex: 1; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; height: var(--bottom-nav-h);
}
.bnav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; color: var(--text-muted);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all var(--transition); padding: 8px 4px;
}
.bnav-btn:hover, .bnav-btn.active { color: var(--accent-light); }
.bnav-btn.active .bnav-icon { transform: scale(1.2); }
.bnav-icon { font-size: 20px; transition: transform var(--transition); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted); font-size: 15px;
}
.empty-state::before { content: '📭'; display: block; font-size: 48px; margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .header-balance { display: none !important; }
  .packages-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn-lg { width: 100%; text-align: center; }
  .order-card-body { grid-template-columns: 1fr; }
  .profile-balance-card { flex-direction: column; text-align: center; gap: 12px; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .hamburger { display: none; }
}

/* ===== ADMIN LINK (hidden) ===== */
/* Admin panel is at /admin/index.html — not linked from main site */