/* ===================================================
   PayGateway v2 — Light Mode Design System
   =================================================== */

/* ── Google Font ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #f5f7fb;
  --bg-card:    #ffffff;
  --bg-card2:   #f9fafb;
  --bg-hover:   #f0f4ff;

  /* Borders */
  --border:       #e5e7eb;
  --border-light: #eff1f5;

  /* Brand */
  --accent:       #4f46e5;
  --accent-dark:  #3730a3;
  --accent-light: #eef2ff;
  --accent-2:     #06b6d4;
  --accent-warm:  #f43f5e;
  --accent-yellow:#f59e0b;

  /* Text */
  --text:       #111827;
  --text-muted: #6b7280;
  --text-dim:   #9ca3af;
  --text-light: #d1d5db;

  /* Status */
  --success:  #10b981;
  --error:    #ef4444;
  --warning:  #f59e0b;
  --pending:  #8b5cf6;

  --success-bg: #ecfdf5;
  --error-bg:   #fff1f2;
  --warning-bg: #fffbeb;
  --pending-bg: #ede9fe;

  /* Layout */
  --sidebar-w: 256px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(79,70,229,0.15);
  --transition: 0.18s ease;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, button, select, textarea { outline: none; font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===================================================
   AUTH PAGES
   =================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(79,70,229,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(6,182,212,0.06) 0%, transparent 45%),
    var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo .brand-icon { font-size: 26px; }
.auth-logo .brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Forms ─────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-input::placeholder { color: var(--text-dim); }

select.form-input { cursor: pointer; }

.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 13px;
  font-size: 15px;
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn-success {
  background: var(--success);
  color: #fff;
  font-weight: 700;
}
.btn-success:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* ── Alerts ────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: slideDown 0.25s ease;
  border: 1px solid transparent;
}

.alert-success { background: var(--success-bg); border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: var(--error-bg);   border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--accent-light); border-color: #c7d2fe; color: var(--accent-dark); }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  opacity: 0.5;
  padding: 0 4px;
  flex-shrink: 0;
}
.alert-close:hover { opacity: 1; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   APP SHELL (Dashboard Layout)
   =================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-icon { font-size: 20px; }
.sidebar-brand .brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-hover); color: var(--accent); }
.nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.active-plan  { background: #ecfdf5; color: #065f46; }
.active-plan .plan-dot  { background: var(--success); }
.expired-plan { background: var(--error-bg); color: #991b1b; }
.expired-plan .plan-dot { background: var(--error); }
.no-plan      { background: var(--warning-bg); color: #92400e; }
.no-plan .plan-dot      { background: var(--warning); }

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-mobile { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-badge  { font-size: 11px; color: var(--success); font-weight: 600; }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.logout-btn svg { width: 15px; height: 15px; }
.logout-btn:hover { background: #fff1f2; color: var(--error); }

/* ── Main Area ─────────────────────────────────── */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.topbar-plan-btn {
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}
.topbar-plan-btn:hover { background: var(--accent-dark); transform: scale(1.02); }

.topbar-plan-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}
.plan-usage { color: var(--text-muted); font-weight: 500; }

.page-content { padding: 28px; flex: 1; }

/* ── Stats Grid ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card.total::before   { background: linear-gradient(90deg, var(--accent), #818cf8); }
.stat-card.success::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.failed::before  { background: linear-gradient(90deg, var(--error), #f87171); }
.stat-card.pending::before { background: linear-gradient(90deg, var(--pending), #a78bfa); }
.stat-card.amount::before  { background: linear-gradient(90deg, var(--accent-2), #38bdf8); }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  opacity: 0.08;
}

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Table ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-card2);
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-hover); }
.data-table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Badges ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-success { background: var(--success-bg); color: #065f46; }
.badge-failed  { background: var(--error-bg);   color: #991b1b; }
.badge-pending { background: var(--pending-bg);  color: #5b21b6; }

/* ── API Key ───────────────────────────────────── */
.api-key-display {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  word-break: break-all;
  margin-bottom: 16px;
  position: relative;
}
.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}
.copy-btn:hover { background: var(--accent); color: #fff; }

.api-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Empty State ───────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ── Sidebar overlay ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.35);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── Plan Cards ────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1), var(--shadow);
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.plan-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; margin-bottom: 2px; line-height: 1; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.plan-limit { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.plan-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.plan-feature { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.plan-feature::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: center;
}
.plan-cta-primary { background: var(--accent); color: #fff; }
.plan-cta-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-lg); }
.plan-cta-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.plan-cta-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.plan-cta-active { background: var(--success-bg); color: #065f46; border: 1.5px solid #a7f3d0; cursor: default; }

/* ── Payment Page ──────────────────────────────── */
.pay-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.pay-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pay-header {
  padding: 24px;
  background: var(--accent);
  text-align: center;
}
.pay-header .pay-brand { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.pay-header .pay-amount { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.pay-header .pay-orderId { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

.pay-body { padding: 28px; }

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.pay-qr-wrap img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  padding: 8px;
  background: #fff;
}

.pay-upi {
  text-align: center;
  margin-bottom: 20px;
}
.pay-upi .upi-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.pay-upi .upi-id { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--accent); font-weight: 600; }

.pay-status-wrap { text-align: center; margin-bottom: 20px; }
.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}
.pay-status.pending { background: var(--pending-bg); color: #5b21b6; }
.pay-status.success { background: var(--success-bg); color: #065f46; }
.pay-status.failed  { background: var(--error-bg);   color: #991b1b; }

.pay-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.pay-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.pay-info-row:last-child { border-bottom: none; }
.pay-info-row strong { color: var(--text); font-weight: 600; }

.pay-footer { padding: 16px 28px; border-top: 1px solid var(--border); text-align: center; }
.pay-footer p { font-size: 12px; color: var(--text-dim); }

/* ── Settings Page ─────────────────────────────── */
.settings-section { margin-bottom: 28px; }
.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── Code block ────────────────────────────────── */
.code-block {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.8;
  overflow-x: auto;
}

/* ── OTP ───────────────────────────────────────── */
.otp-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ===================================================
   LANDING PAGE
   =================================================== */
.landing-page { overflow-x: hidden; }

/* Navbar */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  height: 66px;
  gap: 32px;
}
.lp-nav .brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.lp-nav .brand .brand-icon { font-size: 20px; }
.lp-nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.lp-nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.lp-nav-links a:hover { color: var(--text); }
.lp-nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.lp-nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* Hero */
.lp-hero {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 5%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,70,229,0.08) 0%, transparent 65%),
    var(--bg);
  position: relative;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.lp-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 820px;
}

.lp-hero h1 span {
  color: var(--accent);
}

.lp-hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.lp-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(79,70,229,0.3);
  transition: all var(--transition);
}
.btn-hero-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,70,229,0.4); }

.btn-hero-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--accent); }

.lp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.lp-stat { text-align: center; }
.lp-stat .num { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.lp-stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Features Section */
.lp-section { padding: 80px 5%; }
.lp-section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.lp-section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.lp-section-header p { font-size: 18px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7d2fe; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Pricing */
.lp-pricing { background: var(--bg-card2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pricing-card.featured-price {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08), var(--shadow);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pricing-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 20px; font-weight: 600; vertical-align: top; margin-top: 10px; }
.pricing-price sub { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-limit { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.pricing-features { flex: 1; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-feature::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  text-align: center;
}
.pricing-cta-primary { background: var(--accent); color: #fff; }
.pricing-cta-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-lg); }
.pricing-cta-outline { border: 1.5px solid var(--border); color: var(--text-muted); }
.pricing-cta-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.lp-footer {
  background: var(--text);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-footer .brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: #fff; }
.lp-footer p { font-size: 13px; color: #9ca3af; }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { font-size: 13px; color: #9ca3af; transition: color var(--transition); }
.lp-footer-links a:hover { color: #fff; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.15); }
  .sidebar-overlay.visible { display: block; }
  .main-area { margin-left: 0; }
  .menu-toggle { display: flex; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-value { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  .auth-box { padding: 28px 20px; }
  .api-key-display { padding-right: 80px; font-size: 12px; }
  .lp-nav-links { display: none; }
  .lp-hero { padding: 40px 5% 60px; }
  .lp-hero h1 { font-size: 36px; }
  .lp-hero p { font-size: 16px; }
  .lp-hero-stats { gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer { text-align: center; justify-content: center; }
  .lp-footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ===================================================
   PAYMENT PAGE GLOBAL THEMES
   =================================================== */

/* Theme: Dark */
body.theme-dark { background: #111827; }
body.theme-dark .pay-box { background: #1f2937; border-color: #374151; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
body.theme-dark .pay-header { background: #374151; color: #fff; border-bottom: 1px solid #4b5563; }
body.theme-dark .pay-brand { color: #818cf8; }
body.theme-dark .pay-amount { color: #f9fafb; }
body.theme-dark .pay-orderId { color: #9ca3af; background: #111827; border: 1px solid #4b5563; }
body.theme-dark .pay-qr-wrap { background: #374151; border-color: #4b5563; }
body.theme-dark .pay-qr-wrap img { border-radius: 10px; mix-blend-mode: normal; }
body.theme-dark .upi-label { color: #9ca3af; }
body.theme-dark .upi-id { color: #f3f4f6; background: #374151; border-color: #4b5563; }
body.theme-dark .pay-info-row { border-bottom-color: #374151; }
body.theme-dark .pay-info-row span { color: #9ca3af; }
body.theme-dark .pay-info-row strong { color: #f9fafb; }
body.theme-dark .pay-footer { border-top-color: #374151; }
body.theme-dark .pay-footer p { color: #6b7280; }

/* Theme: Minimal Classic */
body.theme-minimal { background: #ffffff; }
body.theme-minimal .pay-box { border: 1px solid #e5e7eb; box-shadow: none; border-radius: 0; }
body.theme-minimal .pay-header { background: #fff; border-bottom: 2px solid #000; }
body.theme-minimal .pay-brand, body.theme-minimal .pay-amount { color: #000; }
body.theme-minimal .pay-qr-wrap { background: #fff; border: 2px solid #000; border-radius: 0; }
body.theme-minimal .upi-id { background: #fff; border: 1px solid #000; border-radius: 0; color: #000; font-family: monospace; }
body.theme-minimal .btn-app-pay { border-radius: 0 !important; }

/* Theme: Glassmorphism */
body.theme-glass {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
body.theme-glass .pay-box {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
body.theme-glass .pay-header { background: rgba(255, 255, 255, 0.5); }
body.theme-glass .pay-qr-wrap { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); }
body.theme-glass .upi-id { background: rgba(255, 255, 255, 0.5); border: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }

/* Theme: Modern Split View */
body.theme-modern { background: #fdfdfd; }
body.theme-modern .pay-box { max-width: 500px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); overflow: hidden; }
body.theme-modern .pay-header { background: #111827; color: white; padding: 40px 30px; }
body.theme-modern .pay-brand { color: #a5b4fc; }
body.theme-modern .pay-amount { color: white; font-size: 38px; }
body.theme-modern .pay-orderId { background: rgba(255,255,255,0.1); color: #fff; border: none; }
body.theme-modern .pay-qr-wrap { border: none; background: #f9fafb; padding: 15px; margin-top: -20px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
