@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1322;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(56, 189, 248, 0.4);
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --glow-cyan: 0 4px 20px rgba(56, 189, 248, 0.2);
  --glow-purple: 0 4px 20px rgba(168, 85, 247, 0.2);
  --glow-emerald: 0 4px 20px rgba(16, 185, 129, 0.2);

  /* Tiranga Theme Tokens */
  --saffron: #FF671F;
  --white: #FFFFFF;
  --ashoka-navy: #041E42;
  --india-green: #046A38;
  --tiranga-gradient: linear-gradient(90deg, #FF671F 0%, #FF671F 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #046A38 66.66%, #046A38 100%);
}

/* Tiranga Top Indicator Bar */
.tiranga-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tiranga-gradient);
  z-index: 99999;
  box-shadow: 0 0 15px rgba(255, 103, 31, 0.45);
}

@keyframes spinChakra {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.08), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(13, 18, 29, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.brand-title {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

.nav-btn.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.4);
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.user-email {
  font-size: 11.5px;
  color: var(--text-dim);
}

.btn-signout {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signout:hover {
  background: rgba(244, 63, 94, 0.2);
  transform: translateY(-1px);
}

/* MAIN WRAPPER */
.main-container {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ADVERTISEMENT & PROMO HERO BANNER */
.promo-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15) 60%, rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.promo-title span {
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.promo-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.promo-feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 999px;
}

/* TOP STATUS BAR (FOR UNLOCKED USERS) */
.user-status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.status-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.status-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.status-icon.plan { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.status-icon.credits { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-icon.key { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.status-icon.gmail { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.api-key-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
}

.btn-icon-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
}
.btn-icon-copy:hover { color: #fff; }

/* PRICING GRID (STEP 1) */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.plan-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
}

.plan-card.popular {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(26, 20, 48, 0.8) 0%, rgba(18, 24, 39, 0.7) 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--glow-purple);
}

.plan-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Active Plan & Upgrade Highlight States */
.plan-card.current-active-plan {
  border-color: rgba(52, 211, 153, 0.8) !important;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35) 0%, rgba(18, 24, 39, 0.85) 100%) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(52, 211, 153, 0.25) !important;
}

.plan-card.current-active-plan .plan-name {
  color: #34d399 !important;
}

.current-plan-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
}

.btn-buy-plan.active-extend-btn {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
}
.btn-buy-plan.active-extend-btn:hover {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5) !important;
}

.btn-buy-plan.upgrade-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #fff !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35) !important;
}
.btn-buy-plan.upgrade-btn:hover {
  background: linear-gradient(135deg, #9333ea, #c084fc) !important;
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5) !important;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 6px;
}

.plan-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.plan-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.plan-period {
  font-size: 13px;
  color: var(--text-dim);
}

.plan-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.plan-features-list {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.plan-feature-item svg {
  color: #34d399;
  flex-shrink: 0;
}

.btn-buy-plan {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-buy-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-buy-plan.purple {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
}

.btn-buy-plan.purple:hover {
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
}

/* LOCKED FEATURES PREVIEWS */
.locked-card {
  background: rgba(18, 24, 39, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.locked-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 9, 14, 0.7), rgba(7, 9, 14, 0.95));
  backdrop-filter: blur(4px);
  z-index: 10;
}

.locked-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  text-align: center;
  padding: 20px;
}

.lock-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.locked-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.locked-subtext {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

/* TABS SYSTEM (FOR UNLOCKED USERS) */
.tabs-header {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  padding: 12px 20px;
  border-radius: 10px 10px 0 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GMAIL CONNECT FORM & CARDS */
.gmail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 780px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(13, 18, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-primary {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

/* CODE BLOCKS & PLAYGROUND */
.code-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-dim);
}

.code-content {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.5;
}

/* PAYMENT MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(25px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-box {
  background: rgba(18, 24, 39, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.qr-image-container {
  display: contents;
}

/* Official NPCI / Bharat UPI Merchant Stand Card */
.official-upi-stand {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 35px rgba(56, 189, 248, 0.25);
  width: 100%;
  max-width: 290px;
  margin: 12px auto 16px;
  color: #0f172a;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.official-upi-stand:hover {
  transform: translateY(-2px);
}

.upi-tricolor-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%, #138808 100%);
}

.upi-stand-header {
  background: #0b1528;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
}

.upi-stand-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.upi-stand-title {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.upi-stand-sub {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.npci-ribbon {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.upi-scan-banner {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.upi-qr-body {
  padding: 10px;
  background: #ffffff;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalQrImage, .upi-qr-img {
  width: 210px;
  height: 210px;
  display: block;
  border-radius: 6px;
  margin: 0 auto;
}

.upi-center-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid #0f172a;
}

.upi-center-pill svg {
  width: 28px;
  height: 28px;
}

.upi-stand-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 10px;
}

.upi-apps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.app-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.app-pill.gpay { background: #e8f0fe; color: #1a73e8; border: 1px solid #c2e7ff; }
.app-pill.phonepe { background: #f3e8ff; color: #6739b7; border: 1px solid #e9d5ff; }
.app-pill.paytm { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.app-pill.bhim { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.app-pill.any { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.upi-footer-tagline {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.verification-status-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--accent-cyan);
  margin-top: 16px;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* CELEBRATION CONFETTI */
.success-celebration {
  text-align: center;
  padding: 20px 0;
}

.celebrate-icon {
  font-size: 58px;
  margin-bottom: 16px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ========================================================
   2-LINE LEFT SIDEBAR & MODERN APP LAYOUT
   ======================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar-2line {
  width: 290px;
  min-width: 290px;
  background: #080c14;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand-box {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  flex-shrink: 0;
}

.sidebar-brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* User Card in Sidebar */
.sidebar-user-card {
  margin: 14px 16px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(56, 189, 248, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-plan-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  text-transform: uppercase;
  margin-top: 3px;
}

/* 2-Line Nav Items */
.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-item-2line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  text-align: left;
}

.sidebar-item-2line:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-item-2line.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.02));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-item-2line.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.sidebar-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  transition: all 0.2s;
}

.sidebar-item-2line.active .sidebar-item-icon {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.sidebar-item-texts {
  flex: 1;
  min-width: 0;
}

.sidebar-item-line1 {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.25;
}

.sidebar-item-2line.active .sidebar-item-line1 {
  color: #38bdf8;
}

.sidebar-item-line2 {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.2;
}

.sidebar-item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.sidebar-item-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pulseWarning 2s infinite;
}

.sidebar-item-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sidebar-item-badge.admin {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.96); }
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-engine-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-btn-signout {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-btn-signout:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* MAIN CONTENT AREA */
.main-content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* Content Topbar */
.content-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(13, 18, 29, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.btn-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-topbar-logout:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
  border-color: rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
}

.mobile-sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s;
}

.mobile-sidebar-close-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

.sidebar-user-signout-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.sidebar-user-signout-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.topbar-quick-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

.topbar-stat-pill.cyan {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
}

.topbar-stat-pill.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.topbar-stat-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

/* Urgent Action Banner */
.urgent-banner {
  margin: 20px 32px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(244, 63, 94, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.urgent-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #fde68a;
  line-height: 1.4;
}

.urgent-banner-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #f59e0b;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.urgent-banner-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* Content Views Container */
.content-body {
  padding: 24px 32px 40px;
  flex: 1;
}

.dashboard-view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dashboard-view-section.active {
  display: block;
}

/* Orders Live Tracking Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}

.table-toolbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.table-search-input {
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(13, 18, 29, 0.9);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 13px;
  min-width: 240px;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.table-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.expired {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Mobile & Tablet Responsive Engine */
@media (max-width: 992px) {
  .dashboard-wrapper {
    position: relative;
  }

  .sidebar-2line {
    position: fixed;
    top: 0;
    left: -310px;
    height: 100vh;
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.85);
  }

  .sidebar-2line.mobile-open {
    left: 0;
  }

  #mobileMenuBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-sidebar-close-btn {
    display: inline-flex !important;
  }

  .main-content-area {
    width: 100% !important;
    min-width: 0;
  }

  .content-topbar {
    padding: 14px 18px;
    gap: 12px;
  }

  .content-body {
    padding: 18px 16px;
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .content-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }

  .topbar-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .topbar-title-wrap {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .topbar-page-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-topbar-logout {
    padding: 6px 11px;
    font-size: 12px;
    gap: 4px;
  }

  .topbar-quick-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-stat-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .urgent-banner {
    margin: 12px 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .plan-card {
    padding: 22px 18px;
  }

  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .data-table {
    min-width: 580px;
  }

  /* Payment Modal Responsiveness */
  .modal-box {
    width: 95vw !important;
    max-width: 440px !important;
    margin: 12px auto !important;
    padding: 16px 14px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }

  .official-upi-stand {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 10px !important;
  }

  .upi-qr-body img {
    max-width: 190px !important;
    height: auto !important;
  }

  .mobile-intent-buttons {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .intent-btn {
    width: 100% !important;
  }
}

/* Responsive Grid Utilities */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-host-port-responsive {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.api-sim-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

/* API Key Card & Mobile Ergonomics */
.api-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.api-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.api-card-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

.api-key-display-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.api-key-string-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(13, 18, 29, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
}

.api-key-prefix-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.api-key-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.api-key-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.api-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.api-action-btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
  flex: 1;
}

.api-action-btn.primary:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.api-action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-subtle);
  padding: 8px 14px;
}

.api-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.api-action-btn.danger {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.25);
  padding: 8px 14px;
}

.api-action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-host-port-responsive {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .api-sim-form {
    grid-template-columns: 1fr !important;
  }
  .api-sim-form button {
    width: 100% !important;
  }
  .api-key-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .api-action-btn.primary {
    grid-column: span 2;
    min-height: 44px;
    font-size: 14px;
  }
  .api-action-btn.secondary,
  .api-action-btn.danger {
    min-height: 42px;
    width: 100%;
  }
  .gmail-card {
    padding: 16px 14px !important;
  }
}

@media (max-width: 480px) {
  .sidebar-2line {
    width: 270px;
  }

  .topbar-page-title {
    font-size: 15px;
  }

  .billing-tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .plan-price-wrap .plan-amount {
    font-size: 32px;
  }
}

/* ======================================================== */
/* BILLING TOGGLE & ENTERPRISE / VIP DESK STYLES            */
/* ======================================================== */
.billing-switcher-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 28px;
}

.billing-switcher-inner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 5px;
  display: inline-flex;
  gap: 6px;
}

.billing-tab-btn {
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-tab-btn:hover {
  color: #fff;
}

.billing-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.billing-save-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ENTERPRISE CONTACT MODAL */
.vip-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0 10px;
}

.vip-contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.vip-contact-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
}

.vip-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vip-btn-action {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.vip-btn-action:hover {
  transform: translateY(-1px);
}

/* SETTLEMENT ROUTING STATUS CARD */
.settlement-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.settlement-status-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
}

.settlement-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.settlement-val {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.google-step-card {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
}

/* UPI PROVIDER SELECTION CHIPS */
.upi-provider-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: #fff;
  width: 100%;
}

.upi-provider-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.upi-provider-chip.active {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* PAYMENT LINK EXPIRY PILLS */
.expiry-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.expiry-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.expiry-pill.active {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}





/* ======================================================== */
/* ======================================================== */
/* HIGH-CONTRAST FINTECH THEME & MAXIMUM VISIBILITY ENGINE   */
/* ======================================================== */

body {
  background-color: #080c14 !important;
  color: #f8fafc !important;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.08), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06), transparent 40%) !important;
}

/* Sidebar */
.sidebar-2line {
  background: #0d1322 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-brand-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-brand-title {
  color: #ffffff !important;
}

.sidebar-user-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-user-name {
  color: #ffffff !important;
}

.sidebar-user-email {
  color: #94a3b8 !important;
}

.sidebar-item-2line {
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.sidebar-item-2line:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

.sidebar-item-2line.active {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}

.sidebar-item-line1 {
  color: inherit !important;
  font-weight: 700 !important;
}

.sidebar-item-line2 {
  color: #64748b !important;
}

.sidebar-item-2line.active .sidebar-item-line2 {
  color: #7dd3fc !important;
}

/* Topbar */
.topbar-2line {
  background: rgba(13, 19, 34, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.topbar-title {
  color: #ffffff !important;
}

.topbar-subtitle {
  color: #94a3b8 !important;
}

.topbar-stat-chip {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

/* Cards & Surfaces */
.dashboard-card,
.stat-card-2line,
.settlement-card,
.panel-card,
.card,
.glass-card,
.table-card,
.table-container {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: #f8fafc !important;
}

.stat-card-title,
.card-title,
.section-title {
  color: #ffffff !important;
}

.section-desc {
  color: #94a3b8 !important;
}

.stat-card-value {
  color: #ffffff !important;
}

.stat-card-desc,
.card-desc,
.text-muted {
  color: #94a3b8 !important;
}

/* Form Controls */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  outline: none !important;
}

.form-label,
label {
  color: #e2e8f0 !important;
  font-weight: 700 !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #3b82f6) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Tables & Data */
table,
.table,
.data-table {
  background: #111827 !important;
  color: #f8fafc !important;
}

th,
.data-table th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

td,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
}

tr:hover td,
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Modals */
.modal-overlay,
.modal-backdrop {
  background: rgba(4, 7, 13, 0.85) !important;
  backdrop-filter: blur(15px) !important;
}

.modal-content,
.modal-box,
.checkout-modal-card {
  background: #111827 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #f8fafc !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15) !important;
}

.modal-title,
.modal-header h2,
.modal-header h3 {
  color: #ffffff !important;
}

/* Billing Period Switcher */
.billing-switcher-container {
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto 36px !important;
}

.billing-switcher-inner {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(18, 24, 39, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  padding: 5px !important;
  gap: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.billing-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.billing-tab-btn:hover {
  color: #ffffff !important;
}

.billing-tab-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4) !important;
}

.billing-save-pill {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  letter-spacing: 0.4px !important;
}

/* Plan Cards High Contrast */
.plan-card,
.plan-card-tier {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

.plan-card:hover,
.plan-card-tier:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.2) !important;
}

.plan-name {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.plan-amount {
  color: #ffffff !important;
  font-size: 42px !important;
  font-weight: 800 !important;
}

.plan-currency {
  color: #38bdf8 !important;
}

.plan-period {
  color: #94a3b8 !important;
}

.plan-feature-item {
  color: #cbd5e1 !important;
}

.plan-feature-item svg {
  color: #34d399 !important;
}

/* Scrollbars */
::-webkit-scrollbar-track {
  background: #080c14 !important;
}
::-webkit-scrollbar-thumb {
  background: #1e293b !important;
  border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155 !important;
}
