/* ============================================================
   RechargeX — customer-facing design system
   Clean, white, systematic fintech-app aesthetic: soft neutral
   ground, one restrained navy accent, real component states.
   No gradients on surfaces, no glow — hierarchy comes from type
   weight, spacing and a single disciplined accent color.
   ============================================================ */

:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --line: #e9ebf1;
  --line-strong: #dadde6;

  --ink: #10131c;
  --text: #171a24;
  --text-soft: #5c6172;
  --text-faint: #9397a8;

  --primary: #12326b;
  --primary-dark: #0b2350;
  --primary-soft: #e8edf8;

  --success: #16915f;
  --success-bg: #e3f6ed;
  --info: #2f6fed;
  --info-bg: #eaf1ff;
  --warning: #b4790f;
  --warning-bg: #fbf1dd;
  --danger: #cc3b3b;
  --danger-bg: #fbeaea;
  --purple: #6e56cf;
  --purple-bg: #f0ecfb;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 28, 0.05);
  --shadow-md: 0 10px 28px rgba(16, 19, 28, 0.07);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }

.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-wordmark { align-items: center; }
.wordmark-logo {
  height: 30px; max-width: 190px; width: auto; object-fit: contain; display: block;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 10px;
  border-radius: 8px;
}
.brand-text .name { font-weight: 800; font-size: 16.5px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }
.brand-text .tag { font-size: 11px; color: var(--text-faint); margin-top: 2px; font-weight: 500; }
.header-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}
.header-icon-btn svg { width: 16px; height: 16px; }

.trust-strip { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.trust-strip span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-soft); }
.trust-strip svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary); }

/* ---------- Banner ---------- */
.banner { margin-top: 14px; border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--primary); }
.banner img, .banner svg.banner-art { width: 100%; height: auto; display: block; }
.banner-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 26px; }
.banner-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); margin-bottom: 8px; font-weight: 700; }
.banner-heading { font-size: 24px; line-height: 1.2; color: #fff; max-width: 230px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Home banner carousel ---------- */
.carousel {
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 800 / 260;
  background: var(--ink);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide-img, .carousel-decor, .carousel-slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide .banner-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 26px; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px 0 2px; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 3px;
  border: none; padding: 0; background: var(--line-strong);
  cursor: pointer; transition: background .2s, width .2s;
}
.carousel-dot.active { background: var(--primary); width: 18px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.section-title { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.01em; }
.section-sub { font-size: 12.5px; color: var(--text-faint); margin: 0 0 16px; }

/* ---------- Identity row (operator + number + change) ---------- */
.identity-row { display: flex; align-items: flex-start; gap: 12px; }
.identity-badge {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0;
  overflow: hidden;
}
.identity-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.identity-info .number { font-size: 17px; font-weight: 800; color: var(--ink); }
.identity-info .meta { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.identity-info .meta a { color: var(--primary); font-weight: 700; }

/* ---------- Operator picker ---------- */
.operator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.operator-tile {
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--card);
  padding: 13px 6px 10px; text-align: center; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; position: relative;
}
.operator-tile.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.operator-logo { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; overflow: hidden; }
.operator-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.operator-tile .op-name { font-size: 11.5px; font-weight: 700; color: var(--text-soft); }
.operator-tile .check {
  width: 17px; height: 17px; border-radius: 50%; background: var(--primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  position: absolute; top: -6px; right: -6px; border: 2px solid var(--card);
}
.operator-tile .check svg { width: 8px; height: 8px; }
.operator-tile.selected .check { display: flex; }

/* ---------- Form ---------- */
.field-label { font-size: 12px; font-weight: 700; color: var(--text-soft); margin-bottom: 7px; display: block; }
.input-row { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.input-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-prefix { padding: 13px 12px; background: var(--bg); color: var(--text-soft); font-weight: 700; font-size: 14.5px; border-right: 1.5px solid var(--line-strong); }
.input-row input { border: none; outline: none; flex: 1; padding: 13px 12px; font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); min-width: 0; background: transparent; }
.input-row input::placeholder { color: var(--text-faint); font-weight: 500; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.field-error { font-size: 11.5px; color: var(--danger); margin-top: 6px; display: none; }

.text-input { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 13px 14px; font-size: 14.5px; font-family: inherit; outline: none; color: var(--text); background: var(--card); }
.text-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Search + filter ---------- */
.search-row { display: flex; align-items: center; gap: 10px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--card); padding: 11px 16px;
}
.search-box svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.search-box input { border: none; outline: none; flex: 1; font-size: 13.5px; font-family: inherit; background: transparent; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: var(--text-faint); }
.search-box:focus-within { border-color: var(--primary); }
.filter-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); background: var(--card);
  display: flex; align-items: center; justify-content: center; color: var(--text-soft); cursor: pointer;
}
.filter-btn svg { width: 16px; height: 16px; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--card);
  font-size: 12px; font-weight: 700; color: var(--text-soft); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.quick { display: flex; align-items: center; gap: 8px; text-align: left; }
.chip.quick .amt { font-weight: 800; color: var(--ink); }
.chip.quick.active .amt { color: #fff; }
.chip.quick svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Tabs ---------- */
.tab-row { display: flex; gap: 22px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
.tab-item {
  flex-shrink: 0; padding: 4px 2px 12px; font-size: 13px; font-weight: 700; color: var(--text-faint);
  border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; background: none; border-left: none; border-right: none; border-top: none;
}
.tab-item.active { color: var(--ink); border-bottom-color: var(--primary); }

/* ---------- Recommended plan hero ---------- */
.hero-plan { border: 1.5px solid var(--line); }
.hero-plan .hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-label { font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.hero-amount { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero-desc { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }
.btn-recharge {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 11px 22px; font-weight: 700; font-size: 13.5px; cursor: pointer; flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-md); font-weight: 700; font-size: 14.5px;
  padding: 15px 20px; cursor: pointer; width: 100%; transition: opacity .15s, background .15s;
}
.btn:active { opacity: .88; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; width: auto; }
.btn-danger-outline { background: var(--card); color: var(--danger); border: 1.5px solid #f0c9c9; }
.btn-success { background: var(--success); color: #fff; }

/* ---------- Badges / tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.badge-pending    { background: var(--info-bg); color: var(--info); }
.badge-processing { background: var(--warning-bg); color: var(--warning); }
.badge-success    { background: var(--success-bg); color: var(--success); }
.badge-failed     { background: var(--danger-bg); color: var(--danger); }

.pill { display: inline-block; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.tag-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); font-weight: 500; }
.tag-row .dot { color: var(--line-strong); }

/* ---------- Plan list ---------- */
.plan-grid { display: flex; flex-direction: column; gap: 12px; }
.plan-card {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); padding: 18px 16px 16px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.plan-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ribbon {
  position: absolute; top: -1px; left: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 0 0 6px 6px;
  color: #fff;
}
.ribbon-green  { background: var(--success); }
.ribbon-blue   { background: var(--info); }
.ribbon-amber  { background: var(--warning); }
.ribbon-purple { background: var(--purple); }

.plan-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-price-col { flex-shrink: 0; }
.plan-amount { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.plan-per-day { font-size: 10.5px; color: var(--text-faint); font-weight: 600; margin-top: 1px; }
.plan-meta-cols { flex: 1; display: flex; gap: 26px; padding-top: 3px; }
.plan-meta-cols .col .k { font-size: 10px; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.plan-meta-cols .col .v { font-size: 13px; font-weight: 700; color: var(--text); }
.plan-chevron { color: var(--text-faint); flex-shrink: 0; margin-top: 4px; }
.plan-chevron svg { width: 16px; height: 16px; transition: transform .15s; }
.plan-card.expanded .plan-chevron svg { transform: rotate(90deg); }
.plan-details-link { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 10px; display: inline-block; }
.plan-details-body { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: none; }
.plan-card.expanded .plan-details-body { display: block; }

/* ---------- VIP number cards ---------- */
.vip-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 16px;
}
.vip-top { display: flex; align-items: center; gap: 12px; }
.vip-op-badge {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; overflow: hidden;
}
.vip-op-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vip-number {
  font-size: 19px; font-weight: 800; color: var(--ink);
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums;
}

.vip-mini-card {
  flex-shrink: 0;
  width: 136px;
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.vip-mini-card:active { border-color: var(--primary); }
.vip-mini-card .ribbon { font-size: 9.5px; padding: 3px 9px; }
.vip-mini-card .vip-op-badge { margin-top: 4px; }
.vip-mini-number {
  font-size: 12px; font-weight: 800; color: var(--ink);
  letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vip-mini-price-row { display: flex; align-items: baseline; justify-content: center; gap: 5px; flex-wrap: wrap; }
.vip-mini-price { font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.vip-mini-mrp { font-size: 10px; font-weight: 600; color: var(--text-faint); text-decoration: line-through; white-space: nowrap; }

/* ---------- Home service switcher ---------- */
.service-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.service-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, box-shadow .15s;
}
.service-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.service-tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.service-tab .badge-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #c9a84c; flex-shrink: 0;
}
.service-panel { display: none; }
.service-panel.active { display: block; }

/* ---------- Sticky bottom bar ---------- */
.sticky-bar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(16,19,28,0.04); }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--text-faint); }
.text-sm { font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.copy-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; border: 1px solid var(--line); }
.copy-chip svg { width: 12px; height: 12px; color: var(--primary); }
.divider { height: 1px; background: var(--line); border: none; margin: 4px 0; }

.status-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.status-icon svg { width: 24px; height: 24px; }
.status-icon.success { background: var(--success-bg); color: var(--success); }
.status-icon.pending  { background: var(--warning-bg); color: var(--warning); }
.status-icon.failed   { background: var(--danger-bg); color: var(--danger); }

.footer-note { text-align: center; color: var(--text-faint); font-size: 11px; padding: 26px 16px 34px; }

.alert { border-radius: var(--radius-md); padding: 12px 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 380px) {
  .operator-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .banner-heading { font-size: 21px; }
  .plan-meta-cols { gap: 18px; }
}
