:root {
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, #edf2f7 0%, #f8fafc 80%);
  --card: #ffffff;
  --text: #0f172a;
  --text-light: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-light: #eef2ff;
  --primary-glow: rgba(67, 56, 202, 0.15);
  --sidebar: #090d16;
  --sidebar-hover: #1e293b;
  --sidebar-active: #2e384d;
  --green: #059669;
  --green-light: #ecfdf5;
  --red: #dc2626;
  --red-light: #fef2f2;
  --orange: #d97706;
  --orange-light: #fffbeb;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -1px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-gradient);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

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

/* ============================================================
   SIDEBAR (Deep Midnight Slate with Subtle Glow Accents)
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--sidebar);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(251, 176, 22, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
  background: #fff;
  flex-shrink: 0;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.brand h1 { font-size: 17px; font-weight: 800; margin: 0 0 2px; letter-spacing: 0.02em; color: #f8fafc; }
.brand span { font-size: 11px; color: #94a3b8; font-weight: 500; display: block; line-height: 1.3; }

/* Login Page Pro Max Styling */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 10%, #1e1b4b 0%, #090d16 100%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 22px;
  padding: 38px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-brand-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 0 0 4px #fbb016, 0 10px 25px rgba(251, 176, 22, 0.35);
  background: #fff;
}
.login-brand h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.login-brand p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
}

.menu { display: flex; flex-direction: column; gap: 5px; margin-top: 22px; }
.menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 11px 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s ease;
  position: relative;
}
.menu-item span:first-child { font-size: 15px; opacity: 0.85; transition: transform 0.18s ease; }
.menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  transform: translateX(2px);
}
.menu-item:hover span:first-child { transform: scale(1.1); }
.menu-item.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.08) 100%);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #6366f1;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}
.admin-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.avatar, .profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}
.admin-box strong { display: block; font-size: 12px; color: #f8fafc; font-weight: 600; }
.admin-box small { display: block; color: #94a3b8; font-size: 10px; margin-top: 2px; }

/* ============================================================
   MAIN CONTENT & TOPBAR (Glassmorphic & Polished)
   ============================================================ */
.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

.top-left { display: flex; gap: 16px; align-items: center; }
.topbar h2 { font-size: 20px; font-weight: 700; margin: 0 0 3px; letter-spacing: -0.02em; color: #0f172a; }
.topbar p { font-size: 12px; color: var(--muted); margin: 0; }
.hamburger {
  display: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 16px;
  color: var(--text);
}

.top-actions { display: flex; gap: 12px; align-items: center; }

/* TOPBAR WALLET & LIVE COUNTDOWN PILL (PRO MAX) */
.topbar-wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 6px 14px 6px 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.topbar-wallet-pill:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}
.wallet-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.wallet-pill-info { display: flex; flex-direction: column; text-align: left; }
.wallet-pill-timer {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(213, 0, 0, 0.4), 0 0 10px rgba(255, 23, 68, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}
.wallet-pill-timer.urgent { animation: timerPulse 1.5s infinite; }

.icon-btn, .profile-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  height: 42px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover, .profile-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.icon-btn { width: 42px; display: grid; place-items: center; font-size: 15px; }
.profile-btn { display: flex; gap: 10px; align-items: center; padding: 0 12px; }
.profile-avatar { width: 28px; height: 28px; font-size: 11px; }

.content {
  padding: 30px 32px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   STATS GRID & MODERN METRIC CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.stat-icon {
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.08); }
.blue   { background: #eff6ff; color: #2563eb; }
.green  { background: #ecfdf5; color: #059669; }
.purple { background: #f5f3ff; color: #7c3aed; }
.orange { background: #fffbeb; color: #d97706; }

.stat-card p { font-size: 12px; font-weight: 500; color: var(--muted); margin: 0; }
.stat-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; color: #0f172a; }
.positive { font-size: 11px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 4px; }

/* ============================================================
   PANELS, CARDS & LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-bottom: 24px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-head h3 { font-size: 17px; font-weight: 700; margin: 0 0 3px; letter-spacing: -0.01em; color: #0f172a; }
.panel-head p { font-size: 12px; color: var(--muted); margin: 0; }

.pill {
  background: #eef2ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #e0e7ff;
}

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quick-card {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 14px;
  text-align: left;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.quick-card:hover {
  background: #ffffff;
  border-color: #818cf8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.q-icon {
  grid-row: 1/3;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.quick-card:hover .q-icon { transform: scale(1.1); }
.quick-card strong { font-size: 13px; font-weight: 700; color: #0f172a; margin-top: 2px; }
.quick-card small { font-size: 11px; color: var(--muted); }

/* ============================================================
   COUNTDOWN HERO COMPONENT (UI/UX PRO MAX FEATURE)
   ============================================================ */
.countdown-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border-radius: 18px;
  padding: 24px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.countdown-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.countdown-header h4 { margin: 0; font-size: 14px; font-weight: 700; color: #c7d2fe; text-transform: uppercase; letter-spacing: 0.05em; }
.countdown-amount { font-size: 20px; font-weight: 800; color: #38bdf8; }

.countdown-boxes {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.countdown-box {
  background: linear-gradient(180deg, #ff1744 0%, #b71c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  min-width: 72px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(213, 0, 0, 0.45), 0 0 16px rgba(255, 23, 68, 0.35);
}
.countdown-num {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #ffebee;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timer-colon {
  font-size: 24px;
  font-weight: 900;
  color: #ff1744;
  text-shadow: 0 0 12px rgba(255, 23, 68, 0.85);
  animation: colonBlink 1s infinite;
}

@keyframes colonBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* ============================================================
   LOT ITEMS & BADGES
   ============================================================ */
.lot-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  transition: all 0.2s ease;
}
.lot-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}
.lot-item strong { font-size: 14px; font-weight: 700; color: var(--text); }
.lot-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

.live-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  color: #ffffff !important;
  border: 1px solid #ff8a80;
  box-shadow: 0 2px 10px rgba(213, 0, 0, 0.45), 0 0 14px rgba(255, 23, 68, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.live-timer-badge .cd-display {
  color: #ffffff !important;
  font-weight: 800;
}
.timer-green, .timer-yellow, .timer-red {
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ff8a80 !important;
  box-shadow: 0 3px 12px rgba(213, 0, 0, 0.45), 0 0 16px rgba(255, 23, 68, 0.35) !important;
}

/* ============================================================
   TABLES (High Clarity & Responsive)
   ============================================================ */
.table-wrap { overflow-x: auto; width: 100%; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
th {
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: #f8fafc; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status.success { background: #ecfdf5; color: #047857; }
.status.success::before { background: #10b981; }
.status.pending { background: #fffbeb; color: #b45309; }
.status.pending::before { background: #f59e0b; }
.status.danger  { background: #fef2f2; color: #b91c1c; }
.status.danger::before  { background: #ef4444; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.badge-success { background: #ecfdf5; color: #047857; }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger  { background: #fef2f2; color: #b91c1c; }
.badge-info    { background: #eef2ff; color: #4338ca; }

.link-btn, .table-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.table-btn {
  border: 1px solid #e0e7ff;
  background: #f8fafc;
  padding: 6px 11px;
  border-radius: 8px;
}
.table-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* ============================================================
   PAGE TOOLS & BUTTONS
   ============================================================ */
.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.search input { border: 0; outline: 0; width: 100%; padding-left: 8px; font-size: 12px; }

.primary-btn, .secondary-btn {
  border: 0;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}
.primary-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.primary-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}
.primary-btn:active { transform: translateY(0); }
.secondary-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.secondary-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.large { width: 100%; padding: 14px; font-size: 13px; }

/* ============================================================
   FORMS & PLAN CARDS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 12px; font-weight: 700; color: #334155; }
.field input, .field select, .field textarea {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
  font-size: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.recharge-layout { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-card { position: relative; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.plan-card:hover span { border-color: #cbd5e1; transform: translateY(-2px); }
.plan-card input:checked + span {
  border-color: var(--primary);
  background: #f5f7ff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), var(--shadow-md);
}
.plan-card strong { font-size: 13px; font-weight: 700; color: #0f172a; }
.plan-card small { font-size: 10px; color: var(--muted); font-weight: 600; }
.plan-card b { font-size: 16px; color: var(--primary); margin-top: 6px; font-weight: 800; }

.summary-panel { height: max-content; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 12px; }
.summary-row span { color: var(--muted); }
.summary-row strong { font-weight: 700; color: #0f172a; }
.summary-row.total { font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-row.total strong { color: var(--primary); font-size: 22px; font-weight: 800; }
.notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 11px;
  color: #475569;
  line-height: 1.6;
  margin-top: 14px;
}

/* ============================================================
   MODALS, ALERTS & TOASTS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 1000;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.modal.show { 
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-card {
  background: #ffffff;
  width: min(660px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  animation: modalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  box-sizing: border-box;
}
.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card h3 { 
  margin: 0 0 5px; 
  font-size: 19px; 
  font-weight: 800; 
  color: #0f172a; 
  padding-right: 40px; 
}
.modal-card > p { 
  font-size: 12px; 
  color: var(--muted); 
  margin: 0 0 20px; 
  padding-right: 40px; 
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  color: #64748b;
  transition: all 0.15s ease;
  z-index: 10;
  cursor: pointer;
}
.modal-close:hover { 
  background: #fee2e2; 
  color: #ef4444; 
  transform: scale(1.08); 
}

.toast {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.toast.show { opacity: 1; transform: translateY(0); }

.alert {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.alert.alert-danger  { background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.alert.alert-success { background: #f0fdf4; border: 1px solid #dcfce7; color: #166534; }
.alert.alert-info    { background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }

/* LOGIN SCREEN */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #090d16 90%);
  padding: 24px;
}
.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  padding: 40px 34px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}
.login-brand .brand-icon { width: 54px; height: 54px; font-size: 22px; }
.login-brand h2 { margin: 0; font-size: 20px; font-weight: 800; color: #0f172a; }
.login-brand p { margin: 0; font-size: 12px; color: var(--muted); }

/* ============================================================
   ADMIN WALLET HERO COMPONENT (EXECUTIVE SUITE)
   ============================================================ */
.admin-wallet-hero {
  margin-bottom: 24px;
}
.wallet-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  align-items: stretch;
}
.wallet-hero-stat {
  border-radius: 18px;
  padding: 24px 26px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}
.wallet-hero-stat.main-balance {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1e293b 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.wallet-hero-stat.countdown-card {
  background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #1c1917 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15), 0 10px 28px rgba(15, 23, 42, 0.25);
}
.wallet-hero-stat.countdown-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.wallet-hero-stat.empty-lots-card {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.stat-main-val {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
  font-weight: 500;
}
.stat-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.hero-btn.primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55);
}
.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.countdown-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.countdown-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.countdown-card-sub {
  font-size: 11px;
  color: #a1a1aa;
}
.lot-pill-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
}
.empty-lots-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
@media(max-width: 900px) {
  .wallet-hero-grid { grid-template-columns: 1fr; }
}

/* RESPONSIVENESS */
@media(max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .recharge-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .hamburger { display: block; }
  .topbar { padding: 0 18px; height: 74px; }
  .content { padding: 20px 16px; }
  .profile-text { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .quick-actions { grid-template-columns: 1fr; }
  .page-tools { flex-direction: column; align-items: stretch; }
  .page-tools .primary-btn, .page-tools .secondary-btn { width: 100%; }
  .topbar-wallet-pill .wallet-pill-info { display: none; }
}
@media(max-width: 480px) {
  .plan-grid { grid-template-columns: 1fr; }
  .countdown-boxes { gap: 6px; }
  .countdown-box { min-width: 54px; padding: 8px 4px; }
  .countdown-num { font-size: 20px; }
}

/* ============================================================
   PROVISIONING STEPPER & STATE MACHINE STYLES
   ============================================================ */
.provision-stepper {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.provision-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.provision-step.active {
  color: var(--primary);
  font-weight: 600;
}
.provision-step.completed {
  color: var(--green);
  font-weight: 600;
}
.provision-step.failed {
  color: var(--red);
  font-weight: 600;
}
.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: #e2e8f0;
  color: #64748b;
  flex-shrink: 0;
}
.provision-step.active .step-icon {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.provision-step.completed .step-icon {
  background: var(--green-light);
  color: var(--green);
}
.provision-step.failed .step-icon {
  background: var(--red-light);
  color: var(--red);
}
.step-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(67, 56, 202, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.receipt-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-top: 14px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.receipt-row:last-child {
  border-bottom: none;
}
.receipt-row span {
  color: var(--muted);
}
.receipt-row strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .modal {
    padding: 12px 8px;
  }
  .modal-card {
    padding: 22px 16px;
    border-radius: 16px;
    max-height: calc(100vh - 24px);
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .field.full {
    grid-column: 1;
  }
}


