/* ==========================================================================
   TGSIMS  -  Page compositions
   Page-specific layouts that build on tokens/components/layout.
   Sections: Landing, Auth, Dashboard, Buy, Orders, OTP, Wallet, Settings, Support
   ========================================================================== */

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: var(--z-toast);
  background: var(--brand-500);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  font-weight: var(--fw-semi);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ==========================================================================
   LANDING  -  Hero
   ========================================================================== */
.lp-hero {
  position: relative;
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-10);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  top: -25%; right: -8%;
  width: 55%; height: 75%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 72%);
  z-index: -1;
  opacity: 0.85;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.lp-h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: var(--fw-extra);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: var(--sp-4);
}
.lp-lede-left {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 46ch;
  margin-top: var(--sp-4);
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.lp-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.lp-hero-tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
}

/* Hero visual + single floating "code received" card */
.lp-hero-visual { position: relative; }
.lp-hero-img {
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.lp-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-float-card {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  animation: floaty 5s var(--ease) infinite;
}
.lp-float-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
}
.lp-float-ico svg { width: 20px; height: 20px; }
.lp-float-label {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.lp-otp-code {
  display: block;
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  letter-spacing: 0.16em;
  color: var(--text);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Stats strip  -  full-width dark band */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface-inv);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.lp-stat { text-align: center; }
.lp-stat-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  color: var(--accent-cyan);
}
.lp-stat-label {
  font-size: var(--fs-xs);
  color: rgba(234, 240, 251, 0.6);
  margin-top: var(--sp-1);
}
/* CONT_PAGES_1 */

/* ==========================================================================
   LANDING  -  Sections
   ========================================================================== */
.lp-section-alt { background: var(--bg-alt); }
.lp-section .lp-h2 { margin-bottom: var(--sp-2); }

/* Soft lavender panel wrapper (activation steps + use cases) */
.lp-panel-soft {
  background: #eef1fc;
  border: 1px solid #e2e7f8;
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-10);
}
[data-theme="dark"] .lp-panel-soft {
  background: var(--surface);
  border-color: var(--border);
}

/* Features grid  -  3×2 flat cards */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}
.lp-feature {
  box-shadow: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lp-feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.lp-feature .icon-tile { margin-bottom: var(--sp-4); }
.lp-feature-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}
.lp-feature-text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* Steps (inside lavender panel) */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  position: relative;
}
.lp-steps::before {
  content: "";
  position: absolute;
  top: 18px; left: 17%; right: 17%;
  height: 2px;
  background: var(--border-strong);
  z-index: 0;
}
.lp-step { text-align: center; position: relative; z-index: 1; }
.lp-step-num {
  width: 36px; height: 36px;
  margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  border-radius: 50%;
  background: #0c1526;
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  box-shadow: 0 0 0 6px #eef1fc;
}
[data-theme="dark"] .lp-step-num { background: var(--brand-500); box-shadow: 0 0 0 6px var(--surface); }
.lp-step-title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.lp-step-text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 34ch; margin-inline: auto; }

/* Platforms */
.lp-platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  max-width: 720px;
  margin-inline: auto;
}
.lp-plat {
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-weight: var(--fw-semi);
}
.lp-plat-more { color: var(--brand); border-color: var(--brand-200); }
[data-theme="dark"] .lp-plat-more { border-color: var(--border-strong); }

/* Use cases (inside lavender panel)  -  centered cards */
.lp-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.lp-usecase {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-usecase-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.lp-usecase-ico svg { width: 26px; height: 26px; }
.lp-usecase .lp-feature-text { max-width: 30ch; }

/* ==========================================================================
   LANDING  -  Pricing (single composite card)
   ========================================================================== */
.lp-price-wrap { max-width: 860px; }
.lp-price-card {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.lp-price-head {
  background: #0c1220;
  color: #fff;
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
}
.lp-price-title { color: #fff; font-size: var(--fs-xl); font-weight: var(--fw-extra); }
.lp-price-sub {
  color: var(--accent-cyan);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  margin-top: var(--sp-2);
}
.lp-price-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-10);
  background: var(--surface);
  padding: var(--sp-8);
}
.lp-price-tiers-label,
.lp-price-perks .lp-price-tiers-label { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.lp-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}
.lp-tier-row.is-featured {
  border-color: var(--brand-400);
  background: var(--brand-soft);
}
.lp-tier-meta { display: flex; flex-direction: column; gap: 2px; }
.lp-tier-name { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--text); }
.lp-tier-note { font-size: var(--fs-xs); color: var(--text-muted); }
.lp-tier-price {
  font-size: var(--fs-lg);
  font-weight: var(--fw-extra);
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.is-featured .lp-tier-price { color: var(--brand); }
.lp-price-perks { display: flex; flex-direction: column; }
.lp-perk-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.lp-perk-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text);
}
.lp-perk-list svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }
.lp-price-perks .btn { margin-top: auto; }

.lp-btn-black { background: #0c1220; color: #fff; }
.lp-btn-black:hover { background: #1a2438; }
[data-theme="dark"] .lp-btn-black { background: var(--brand-500); box-shadow: var(--shadow-brand); }
[data-theme="dark"] .lp-btn-black:hover { background: var(--brand-600); }

/* FAQ */
.lp-faq-wrap { max-width: 760px; margin-inline: auto; }
.lp-faq-wrap .accordion { margin-top: var(--sp-8); }

/* ==========================================================================
   LANDING  -  Community (colored variant cards)
   ========================================================================== */
.lp-community {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.lp-comm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--r-xl);
  border: 1px solid transparent;
}
.lp-comm-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
}
.lp-comm-ico svg { width: 24px; height: 24px; }
.lp-comm-title { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.lp-comm-text { font-size: var(--fs-sm); color: var(--text-muted); max-width: 30ch; }
.lp-comm-btn { margin-top: var(--sp-2); color: #fff; }

/* Telegram  -  light blue */
.lp-comm-telegram { background: #e8f1fe; border-color: #d4e5fd; }
.lp-comm-telegram .lp-comm-title,
.lp-comm-telegram .lp-comm-text { color: #12213b; }
.lp-comm-telegram .lp-comm-ico { background: var(--brand-500); }
.lp-comm-telegram .lp-comm-btn { background: var(--brand-500); }
.lp-comm-telegram .lp-comm-btn:hover { background: var(--brand-600); }

/* WhatsApp  -  light green */
.lp-comm-whatsapp { background: #e7f8ee; border-color: #cfeeda; }
.lp-comm-whatsapp .lp-comm-title,
.lp-comm-whatsapp .lp-comm-text { color: #12213b; }
.lp-comm-whatsapp .lp-comm-ico { background: #16a34a; }
.lp-comm-whatsapp .lp-comm-btn { background: #16a34a; }
.lp-comm-whatsapp .lp-comm-btn:hover { background: #15803d; }

/* Direct Support  -  black */
.lp-comm-support { background: #0c1220; border-color: #0c1220; }
.lp-comm-support .lp-comm-title { color: #fff; }
.lp-comm-support .lp-comm-text { color: rgba(234,240,251,0.7); }
.lp-comm-support .lp-comm-ico { background: var(--accent-cyan); color: #06202a; }
.lp-comm-support .lp-comm-btn { background: var(--accent-cyan); color: #06202a; }
.lp-comm-support .lp-comm-btn:hover { filter: brightness(0.94); }

[data-theme="dark"] .lp-comm-telegram { background: rgba(37,99,235,0.14); border-color: rgba(37,99,235,0.3); }
[data-theme="dark"] .lp-comm-telegram .lp-comm-title { color: var(--text); }
[data-theme="dark"] .lp-comm-telegram .lp-comm-text { color: var(--text-muted); }
[data-theme="dark"] .lp-comm-whatsapp { background: rgba(22,163,74,0.14); border-color: rgba(22,163,74,0.3); }
[data-theme="dark"] .lp-comm-whatsapp .lp-comm-title { color: var(--text); }
[data-theme="dark"] .lp-comm-whatsapp .lp-comm-text { color: var(--text-muted); }

/* ==========================================================================
   LANDING  -  CTA
   ========================================================================== */
.lp-cta {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  position: relative;
  overflow: hidden;
}
.lp-cta::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(37,99,235,0.3), transparent 70%),
    radial-gradient(40% 50% at 80% 100%, rgba(34,211,238,0.16), transparent 70%);
  z-index: 0;
}
.lp-cta > * { position: relative; z-index: 1; }
.lp-cta-title { color: #fff; font-size: var(--fs-2xl); font-weight: var(--fw-extra); }
.lp-cta-sub { color: rgba(234,240,251,0.72); font-size: var(--fs-sm); max-width: 52ch; margin: var(--sp-3) auto var(--sp-6); }
.lp-cta-note { color: rgba(234,240,251,0.5); font-size: var(--fs-xs); margin-top: var(--sp-4); }
.lp-btn-cyan { background: var(--accent-cyan); color: #06202a; box-shadow: 0 10px 26px rgba(34,211,238,0.35); }
.lp-btn-cyan:hover { filter: brightness(0.95); }

/* ==========================================================================
   LANDING  -  Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .lp-hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .lp-features, .lp-usecases, .lp-community { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; gap: var(--sp-8); }
  .lp-steps::before { display: none; }
  .lp-price-body { grid-template-columns: 1fr; gap: var(--sp-8); }
  .lp-panel-soft { padding: var(--sp-8) var(--sp-5); }
}
@media (max-width: 640px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}
/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.page-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ---- Stat cards ---- */
.stat-grid { margin-bottom: var(--sp-6); }
.stat-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.stat-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
}
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
}
.stat-delta svg { width: 16px; height: 16px; flex-shrink: 0; }
.stat-delta.is-up { color: var(--success); }
.stat-delta.is-muted { color: var(--text-muted); }

/* Distinct icon-tile tint per stat (wallet · spending · numbers) */
.stat-card:nth-child(1) .icon-tile { background: rgba(183,121,31,0.14); color: #b7791f; }
.stat-card:nth-child(2) .icon-tile { background: rgba(13,148,136,0.14); color: #0d9488; }
.stat-card:nth-child(3) .icon-tile { background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .stat-card:nth-child(1) .icon-tile { background: rgba(245,196,109,0.14); color: #f5c46d; }
[data-theme="dark"] .stat-card:nth-child(2) .icon-tile { background: rgba(45,212,191,0.16); color: #2dd4bf; }

/* ---- Shared card head (quick-buy · activity · recent) ---- */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.card-title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.card-title svg { width: 20px; height: 20px; color: var(--brand); }

/* ---- Quick Buy ---- */
.dash-mid { margin-bottom: var(--sp-6); }
.quick-buy { display: flex; flex-direction: column; }
.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
}
.price-box-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-medium); }
.price-box-value {
  font-size: var(--fs-md);
  font-weight: var(--fw-extra);
  color: var(--text);
  letter-spacing: -0.01em;
}
.quick-buy-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.quick-buy-note svg { width: 15px; height: 15px; }
/* ---- Activity Overview (segmented toggle + bar chart) ---- */
.activity-card { display: flex; flex-direction: column; }
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.seg-btn {
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}
.chart {
  flex: 1;
  padding: var(--sp-5) var(--sp-2) 0;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  height: 100%;
  min-height: 240px;
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--chart-grid);
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent calc(25% - 1px),
      var(--chart-grid) calc(25% - 1px),
      var(--chart-grid) 25%
    );
}
.chart-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.chart-col .bar {
  position: relative;
  display: block;
  width: 100%;
  max-width: 46px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--chart-bar-soft);
  overflow: hidden;
  transition: filter var(--dur) var(--ease);
}
/* Completed portion sits at the base of each bar in the solid brand fill. */
.chart-col .bar-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--chart-bar);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.chart-col:hover .bar { filter: brightness(1.04); }

/* X-axis labels under the bars */
.chart-axis {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.chart-axis-label {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-4);
}
.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.chart-legend .dot { width: 10px; height: 10px; border-radius: var(--r-full); }
.chart-legend .dot-soft { background: var(--chart-bar-soft); }
.chart-legend .dot-solid { background: var(--chart-bar); }

/* ---- Recent Verifications ---- */
.recent-head {
  padding: var(--sp-6) var(--sp-6) 0;
  margin-bottom: var(--sp-4);
}
.recent-card .table thead th { padding-top: var(--sp-2); }
.recent-card .table thead th:first-child,
.recent-card .table tbody td:first-child { padding-left: var(--sp-6); }
.recent-card .table thead th:last-child,
.recent-card .table tbody td:last-child { padding-right: var(--sp-6); }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--brand);
}
.link-more:hover { color: var(--brand-strong); }
.link-more .i-inline { width: 15px; height: 15px; }

/* ---- Dashboard responsive ---- */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .chart, .chart-bars { min-height: 200px; }
}
/* ==========================================================================
   BUY NUMBER
   ========================================================================== */
.buy-grid { align-items: start; }

/* ---- Selection step cards ---- */
.buy-step { margin-bottom: var(--sp-6); }
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.step-head-title { display: inline-flex; align-items: center; gap: var(--sp-3); }
.step-num {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.step-title { font-size: var(--fs-lg); font-weight: var(--fw-extra); letter-spacing: -0.01em; }
.step-search { min-width: 240px; flex: 1; max-width: 300px; }

/* ---- Option tiles (country / service) ---- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.opt-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 118px;
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.opt-tile:hover { border-color: var(--border-strong); background: var(--surface-2); }
.opt-tile:active { transform: translateY(1px); }
.opt-tile.is-selected {
  border-color: var(--brand-500);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-500);
}
.opt-tile-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
}
.opt-tile-check svg { width: 13px; height: 13px; }
.opt-tile.is-selected .opt-tile-check { display: grid; }
.opt-tile-name { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); line-height: 1.2; }
.opt-tile-sub { font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--text-muted); }
.opt-tile.is-selected .opt-tile-sub { color: var(--brand); }

/* Decorative "view all / more" tile */
.tile-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tile-more:hover { background: var(--brand-soft); border-color: var(--brand-400); }

/* Country letter badge (dashed boxes, matches Figma) */
.flag-badge { display: inline-flex; gap: 4px; }
.flag-badge i {
  width: 24px; height: 26px;
  display: grid; place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.opt-tile.is-selected .flag-badge i { border-color: var(--brand-400); color: var(--brand); }

/* Service circular icon (soft tint + saturated glyph) */
.svc-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.svc-ico svg { width: 22px; height: 22px; }
.svc-whatsapp { background: rgba(37,211,102,0.15); color: #17a44b; }
.svc-telegram { background: rgba(42,171,238,0.16); color: #2aabee; }
.svc-google   { background: rgba(234,67,53,0.14);  color: #ea4335; }
.svc-facebook { background: rgba(24,119,242,0.14); color: #1877f2; }
.svc-instagram{ background: rgba(225,48,108,0.14); color: #e1306c; }
.svc-openai   { background: rgba(16,163,127,0.16); color: #10a37f; }
.svc-tinder   { background: rgba(254,60,114,0.14); color: #fe3c72; }
.svc-tiktok   { background: rgba(120,130,150,0.18); color: var(--text); }
.svc-esim     { background: var(--brand-soft); color: var(--brand); }
.svc-generic  { background: var(--surface-3); color: var(--text-muted); }
/* ---- Review & Purchase (sticky aside) ---- */
.review-card { position: sticky; top: calc(var(--topbar-h) + var(--sp-6)); }
.review-rows { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
}
.review-row .k { color: var(--text-muted); font-weight: var(--fw-medium); }
.review-row .v {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  color: var(--text);
  text-align: right;
}
.review-row .v.is-empty { color: var(--text-dim); font-weight: var(--fw-medium); }
.review-row .v svg { width: 16px; height: 16px; color: var(--brand); }
.review-row .flag-badge i { width: 20px; height: 22px; font-size: var(--fs-xs); }

.review-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-top: 1px solid var(--border);
}
.review-total-label { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text); }
.review-total-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  color: var(--brand);
  letter-spacing: -0.02em;
}
.review-secure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.review-secure svg { width: 14px; height: 14px; }

/* ---- Empty grid state ---- */
.tile-empty {
  grid-column: 1 / -1;
  padding: var(--sp-8);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---- "Why choose" strip ---- */
.buy-why { margin-top: var(--sp-8); }
.buy-why-title { text-align: center; font-size: var(--fs-lg); font-weight: var(--fw-extra); margin-bottom: var(--sp-6); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.why-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.why-item .icon-tile { width: 40px; height: 40px; border-radius: var(--r-full); }
.why-item .icon-tile svg { width: 20px; height: 20px; }
/* Per-item tints for the "why choose" icons (matches Figma). */
.why-teal  { background: rgba(13,148,136,0.14); color: #0d9488; }
.why-blue  { background: var(--brand-soft); color: var(--brand); }
.why-amber { background: rgba(183,121,31,0.14); color: #b7791f; }
.why-dark  { background: var(--surface-inv); color: #eaf6ff; }
[data-theme="dark"] .why-teal  { background: rgba(45,212,191,0.16); color: #2dd4bf; }
[data-theme="dark"] .why-amber { background: rgba(245,196,109,0.14); color: #f5c46d; }
[data-theme="dark"] .why-dark  { background: rgba(255,255,255,0.08); color: #eaf6ff; }
.why-h { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.why-t { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.buy-powered { text-align: center; margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--text-dim); font-weight: var(--fw-semi); }

/* ---- Buy responsive ---- */
@media (max-width: 1200px) { .tile-grid, .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .buy-grid { grid-template-columns: 1fr; }
  .review-card { position: static; }
}
@media (max-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .step-search { max-width: none; }
}
/* ==========================================================================
   ORDERS + OTP HISTORY  (shared table-page furniture)
   ========================================================================== */
/* Filter row above a table (search + selects, or search + range/export) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.filter-bar .input-group { flex: 1; min-width: 240px; }
.filter-bar .select { width: auto; min-width: 150px; }
.filter-bar-spacer { flex: 1; }

/* Card whose table runs edge-to-edge (no card-pad); header/rows self-inset */
.table-card { padding: 0; overflow: hidden; }
.table-card .table thead th { padding-top: var(--sp-5); padding-bottom: var(--sp-4); }
.table-card .table thead th:first-child,
.table-card .table tbody td:first-child { padding-left: var(--sp-6); }
.table-card .table thead th:last-child,
.table-card .table tbody td:last-child { padding-right: var(--sp-6); }

/* "Showing 1 - N of X" + pagination */
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Smaller service avatar for dense table rows */
.svc-ico.svc-sm { width: 34px; height: 34px; }
.svc-ico.svc-sm svg { width: 18px; height: 18px; }

/* Country code chip that sits inline before a phone number */
.num-cell { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* OTP / result cell states */
.otp-waiting {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--brand);
  font-weight: var(--fw-semi);
}
.otp-waiting svg { width: 15px; height: 15px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.otp-msg {
  display: block;
  max-width: 46ch;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otp-msg .hl { color: var(--text); font-weight: var(--fw-semi); }
.stack-sub { display: block; font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }

@media (max-width: 640px) {
  .filter-bar .select { flex: 1; }
}
/* ==========================================================================
   WALLET & BILLING
   ========================================================================== */
.wallet-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
  margin-bottom: var(--sp-6);
}

/* Total-balance hero  -  dark gradient panel */
.balance-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-inv);
  color: #eaf0fb;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.balance-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 78% at 85% 8%, rgba(37,99,235,0.45), transparent 66%),
    radial-gradient(40% 55% at 4% 96%, rgba(34,211,238,0.12), transparent 72%);
  z-index: -1;
}
/* Oversized watermark glyph hidden */
.balance-watermark {
  display: none;
}
/* Small wallet chip above the label */
.balance-chip {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  margin-bottom: var(--sp-5);
}
.balance-chip svg { width: 24px; height: 24px; }
.balance-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234,240,251,0.6);
}
.balance-value {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: var(--fw-extra);
  letter-spacing: -0.02em;
  color: #fff;
  margin: var(--sp-2) 0 0;
  line-height: 1.05;
}
.balance-sub {
  font-size: var(--fs-sm);
  color: rgba(234,240,251,0.65);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
  line-height: var(--lh-base);
}
.balance-card .btn {
  align-self: stretch;
  margin-top: auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Payment Method selector card */
.method-card .card-title { margin-bottom: var(--sp-5); }
.method-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.method {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.method:hover { border-color: var(--brand-400); background: var(--surface-2); }
.method.is-active { border-color: var(--brand-500); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-500); }
.method-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.method.is-active .method-radio { border-color: var(--brand-500); }
.method.is-active .method-radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}
.method-meta { min-width: 0; flex: 1; }
.method-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.method-note { font-size: var(--fs-xs); color: var(--text-muted); }
.method-ico { color: var(--text-muted); flex-shrink: 0; }
.method-ico svg { width: 22px; height: 22px; }

/* Recent Activity  -  header actions, flush-to-padding table, centered footer */
.card-head-actions { display: inline-flex; gap: var(--sp-2); }
.recent-activity .table thead th:first-child,
.recent-activity .table tbody td:first-child { padding-left: 0; }
.recent-activity .table thead th:last-child,
.recent-activity .table tbody td:last-child { padding-right: 0; }
.tx-title { font-weight: var(--fw-semi); color: var(--text); }
.recent-foot { text-align: center; padding-top: var(--sp-5); }

/* Transaction description cell (icon + label) */
.tx-desc { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: var(--fw-semi); }
.tx-ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-3);
  color: var(--text-muted);
}
.tx-ico svg { width: 16px; height: 16px; }
.tx-ico.is-in { background: var(--success-bg); color: var(--success); }

/* Transaction amount coloring */
.tx-amount { font-weight: var(--fw-bold); white-space: nowrap; }
.tx-amount.is-in { color: var(--success); }
.tx-amount.is-out { color: var(--text); }

@media (max-width: 900px) { .wallet-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FUND WALLET
   ========================================================================== */
/* Single centered card, matching the "Fund Your Wallet" design */
.fund-shell { max-width: 760px; margin-inline: auto; }

/* Large amount entry with a currency symbol prefix */
.amount-group { position: relative; }
.amount-symbol {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: var(--fw-extra);
  color: var(--text);
  pointer-events: none;
}
.amount-input {
  width: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 3rem;
  font-size: 1.75rem;
  font-weight: var(--fw-extra);
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.amount-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input { -moz-appearance: textfield; }

/* Quick-pick preset amounts  -  pill row */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.preset-btn {
  flex: 1;
  min-width: 92px;
  padding: 0.6rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.preset-btn:hover { border-color: var(--brand-400); }
.preset-btn.is-active {
  border-color: var(--brand-500);
  background: var(--brand-soft);
  color: var(--brand);
}

/* Small caps section label */
.fund-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: var(--sp-3);
}

/* Payment method  -  horizontal selectable cards */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.pay-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pay-method:hover { border-color: var(--brand-400); }
.pay-method.is-active {
  border-color: var(--brand-500);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-500);
}
.pay-method-ico { color: var(--text); }
.pay-method.is-active .pay-method-ico { color: var(--brand); }
.pay-method-ico svg { width: 26px; height: 26px; }
.pay-method-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.pay-method-note { font-size: var(--fs-xs); color: var(--text-muted); }
.pay-check {
  position: absolute;
  top: var(--sp-2); right: var(--sp-2);
  width: 20px; height: 20px;
  border-radius: var(--r-full);
  display: none;
  place-items: center;
  background: var(--brand-500);
  color: #fff;
}
.pay-check svg { width: 12px; height: 12px; }
.pay-method.is-active .pay-check { display: grid; }

/* Conditional card-detail fields */
.card-fields {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.card-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* Order summary */
.order-summary {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--brand-soft);
  border-radius: var(--r-md);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.summary-row strong { color: var(--text); font-weight: var(--fw-semi); }
.summary-total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-base);
}
.summary-total span { color: var(--text); font-weight: var(--fw-bold); }
.summary-total strong { font-size: var(--fs-lg); color: var(--brand); font-weight: var(--fw-extra); }
.fund-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.fund-secure svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .pay-methods { grid-template-columns: 1fr; }
  .card-fields-row { grid-template-columns: 1fr; }
  .preset-btn { min-width: 0; }
}

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-6);
  align-items: start;
}

/* Sub-navigation (Profile / Security / Notifications) */
.set-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.set-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.set-nav-item:hover { background: var(--surface-2); color: var(--text); }
.set-nav-item.is-active { background: var(--brand-soft); color: var(--brand); }
.set-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Two-column form rows inside a settings panel */
.set-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-5);
}
.set-form-grid .field-full { grid-column: 1 / -1; }
.set-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--sp-6);
}

/* Avatar upload row */
.avatar-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.avatar-thumb {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  color: var(--text-dim);
  overflow: visible;
}
.avatar-thumb svg { width: 34px; height: 34px; }
.avatar-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-edit {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-500);
  color: #fff;
  border: 2px solid var(--surface);
  cursor: pointer;
}
.avatar-edit svg { width: 13px; height: 13px; }
.avatar-meta { min-width: 0; }
.avatar-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.avatar-hint { font-size: var(--fs-xs); color: var(--text-muted); margin: 2px 0 var(--sp-3); }

/* Setting row (toggle / description pairs for Security & Notifications) */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
}
.set-row:first-of-type { border-top: 0; }
.set-row-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.set-row-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; max-width: 52ch; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.switch .track::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .track { background: var(--brand-500); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--ring); }

@media (max-width: 860px) {
  .settings-grid { grid-template-columns: 1fr; }
  .set-nav { flex-direction: row; flex-wrap: wrap; }
  .set-form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUPPORT CENTER
   ========================================================================== */
.support-hero {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--brand-soft), var(--surface));
  border: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.support-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: var(--fw-extra);
  letter-spacing: -0.02em;
  color: var(--text);
}
.support-search {
  position: relative;
  max-width: 640px;
  margin: var(--sp-6) auto 0;
}
.support-search .input {
  height: 56px;
  padding-left: 3.2rem;
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  box-shadow: var(--shadow-sm);
}
.support-search-ico {
  position: absolute;
  left: 1.15rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  display: grid; place-items: center;
  pointer-events: none;
}
.support-search-ico svg { width: 20px; height: 20px; }
.support-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

/* Knowledge base */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.kb-card { display: block; }
.kb-card .icon-tile { margin-bottom: var(--sp-4); }
.kb-title { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text); margin-bottom: var(--sp-2); }
.kb-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }

/* Ticket id link inside the recent-tickets table */
.ticket-id { font-weight: var(--fw-bold); color: var(--brand); }

/* Contact channels */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.channel-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.channel-ico {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: var(--sp-4);
}
.channel-ico svg { width: 26px; height: 26px; }
.channel-title { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text); margin-bottom: var(--sp-2); }
.channel-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin-bottom: var(--sp-5); }
.channel-card .btn { margin-top: auto; align-self: stretch; }

@media (max-width: 900px) {
  .kb-grid, .channel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .kb-grid, .channel-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REFERRAL PROGRAM
   ========================================================================== */
.ref-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-inv);
  color: #eaf0fb;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
  text-align: center;
}
.ref-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 85% 0%, rgba(37, 99, 235, 0.45), transparent 66%),
    radial-gradient(45% 60% at 8% 100%, rgba(34, 211, 238, 0.14), transparent 72%);
}
.ref-hero-ico {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ref-hero-ico svg { width: 28px; height: 28px; }
.ref-hero-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: var(--fw-extra); color: #fff; letter-spacing: -0.02em; }
.ref-hero-sub { font-size: var(--fs-sm); color: rgba(234, 240, 251, 0.6); margin-top: var(--sp-2); max-width: 46ch; margin-inline: auto; }

/* Referral code capsule */
.ref-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: 420px;
  margin: var(--sp-6) auto 0;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--r-md);
}
.ref-code {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  color: #fff;
}

/* Stat row */
.ref-stat-value { font-size: var(--fs-2xl); font-weight: var(--fw-extra); color: var(--text); letter-spacing: -0.02em; }
.ref-stat-label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-1); }
.ref-stat .icon-tile { margin-bottom: var(--sp-3); }

/* Share link row */
.ref-share {
  display: flex;
  gap: var(--sp-3);
  align-items: stretch;
}
.ref-share .input { font-family: var(--font-mono); font-size: var(--fs-sm); }
.ref-share .btn { flex-shrink: 0; }

/* How it works */
.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.ref-step { text-align: center; padding: var(--sp-2); }
.ref-step-num {
  width: 40px; height: 40px;
  margin: 0 auto var(--sp-3);
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: var(--fw-extra);
}
.ref-step-title { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); margin-bottom: var(--sp-1); }
.ref-step-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }

@media (max-width: 720px) {
  .ref-share { flex-direction: column; }
  .ref-steps { grid-template-columns: 1fr; }
}
/* CONT_PAGES_2 */


