/* Single shared stylesheet.
   Theme: dark navy (#0B2545) + blue/green accents. System fonts only,
   no external assets, so pages work offline. */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #0a1c33;
  --blue: #2f80ed;
  --blue-light: #5b9dff;
  --green: #1fbf75;
  --green-dark: #148a54;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #16233a;
  --muted: #5c6b82;
  --border: #dbe4f0;
  --danger: #d64545;
  --amber: #b7791f;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

/* The hidden attribute must win over any display set by a class:
   .btn { display: inline-block } kept the Clear filters, Show more
   and Log out buttons visible while hidden (v2.6). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* v2.11: full-width layout — the container fills the screen (94vw, capped
   at 1600px) instead of sitting as a narrow column on wide monitors. */
.container { max-width: min(1600px, 94vw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: min(1600px, 94vw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.5px; flex: none;
}
.main-nav a { color: #cdd9ea; font-size: 0.95rem; }
.main-nav a:hover { color: #fff; text-decoration: none; }
/* v2.6: the current page's nav item is highlighted. */
.main-nav a.nav-active { color: #fff; font-weight: 600; border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* v2.7: the page links ALWAYS live behind the ☰ hamburger (mobile
   and desktop); the panel drops down from the header. */
.main-nav { display: none; }
/* v2.20: the open menu is a COMPACT DROPDOWN PANEL anchored under
   the ☰ button — max 320px wide, fits its content with its own
   scroll past 80vh, floating over the page (border + shadow) so the
   page stays visible around it. It must never again be a
   full-width / full-page list. */
.main-nav.nav-open {
  display: flex; position: absolute; top: calc(100% + 6px); left: 12px; right: auto;
  width: min(320px, calc(100vw - 24px));
  max-height: 80vh; overflow-y: auto;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--navy-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 14px 10px; z-index: 120;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.main-nav.nav-open a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.main-nav.nav-open a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none; cursor: pointer;
  padding: 10px 20px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  background: var(--blue); color: #fff;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: #2568c4; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: rgba(47, 128, 237, 0.08); }
.btn-light { background: #fff; color: var(--navy); font-weight: 700; }
.btn-light:hover { background: #e8eef7; }
/* Header Login on the dark navy bar: white-on-navy outline stays crisp
   on phone screens, where navy-on-white looked washed out (v2.4). */
.btn-header { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.9); font-weight: 700; }
.btn-header:hover { background: rgba(255,255,255,0.14); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b23333; }
.btn-ghost { background: #eef2f8; color: var(--text); }
.btn-ghost:hover { background: #dfe7f2; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1a4a7a 100%);
  /* v2.7: the gradient slowly drifts (original animation, navy theme). */
  background-size: 180% 180%;
  animation: heroGradient 16s ease-in-out infinite alternate;
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradient {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 14px; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; color: #c9d6e8; max-width: 720px; margin: 0 0 24px; }
.hero p.tagline { font-size: 1.05rem; font-weight: 600; color: #7ee2a8; max-width: 720px; margin: 0 0 10px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 8px 14px; font-size: 0.9rem;
}
.trust-chip .dot { color: var(--green); font-weight: 700; margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section h2 { font-size: 1.7rem; margin: 0 0 8px; color: var(--navy); }
.section .section-sub { color: var(--muted); margin: 0 0 28px; max-width: 760px; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* v2.7: cards lift slightly on hover. */
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11, 37, 69, 0.16); }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}

/* ---------- Price browser ---------- */
.price-controls {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.price-controls select, .price-controls input[type="search"] {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; background: #fff; min-width: 180px; flex: 1;
}
.table-wrap { overflow-x: auto; }
table.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; white-space: nowrap;
}
.price-table th { background: var(--navy); color: #fff; }
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child { border-radius: 0 8px 0 0; }
.price-table tr:hover td { background: #f2f6fc; }
.price-cell { font-weight: 700; color: var(--green-dark); }
.count-badge {
  display: inline-block; background: #e6f7ee; color: var(--green-dark);
  border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 600;
}
.state-box { padding: 28px; text-align: center; color: var(--muted); }
.state-box .spinner {
  width: 28px; height: 28px; margin: 0 auto 12px;
  border: 3px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { color: var(--danger); }
.results-note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue); font-weight: 800; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Support / footer ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer { background: var(--navy-3); color: #9fb0c7; padding: 28px 0; font-size: 0.9rem; }
.footer .container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer a { color: #cdd9ea; }

/* ---------- App / dashboard ---------- */
.demo-banner {
  background: #fff3cd; color: #7a5b00; border: 1px solid #ffe08a;
  border-radius: var(--radius); padding: 12px 16px; margin: 18px 0 0;
  font-weight: 600;
}
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 0 0 6px; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 40px; }
/* Single-column auth pages (login.html / signup.html): one form per
   screen, centred. */
.auth-single { max-width: 480px; margin: 24px auto 40px; }
.auth-single .card { margin-bottom: 18px; }
.auth-single .form-hint { margin-top: 12px; }
/* 3-step "How it works" explainer on the signup page. */
.steps-card h3 { margin-bottom: 4px; }
.steps { margin: 8px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 10px; line-height: 1.5; }
.steps li:last-child { margin-bottom: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue-light); border-color: var(--blue);
}
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.wallet-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; margin: 20px 0;
}
.wallet-bar .balance { font-size: 1.6rem; font-weight: 800; }
.wallet-bar .label { color: #c9d6e8; font-size: 0.9rem; }
.wallet-bar .spacer { flex: 1; }
.order-card { margin-bottom: 16px; }
.order-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.order-top h3 { margin: 0; }
.phone-number {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--navy);
  cursor: pointer; word-break: break-all;
}
.phone-number:hover { color: var(--blue); }
.copy-hint { font-size: 0.8rem; color: var(--muted); }
.otp-code {
  font-size: 2rem; font-weight: 800; letter-spacing: 4px; text-align: center;
  background: #e6f7ee; color: var(--green-dark);
  border: 2px dashed var(--green); border-radius: var(--radius);
  padding: 14px; margin: 14px 0;
}
.otp-waiting {
  text-align: center; color: var(--muted); padding: 14px;
  border: 1px dashed var(--border); border-radius: var(--radius); margin: 14px 0;
}
.countdown { font-weight: 700; color: var(--navy); }
.countdown.low { color: var(--danger); }
.status-badge {
  display: inline-block; border-radius: 999px; padding: 3px 12px;
  font-size: 0.85rem; font-weight: 700; text-transform: capitalize;
}
.status-waiting { background: #fff3cd; color: #7a5b00; }
.status-received { background: #e6f7ee; color: var(--green-dark); }
.status-confirmed { background: #e3edff; color: #1d4fa3; }
.status-reported { background: #fde8e8; color: #a12b2b; }
.status-cancelled, .status-refunded, .status-expired { background: #eef2f8; color: var(--muted); }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.order-meta { color: var(--muted); font-size: 0.9rem; margin: 6px 0; }
.cancel-note { color: var(--amber); font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.empty-state { text-align: center; color: var(--muted); padding: 32px 16px; }
.section-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 32px 0 14px; }
.section-title-row h2 { margin: 0; font-size: 1.3rem; color: var(--navy); }
.section-title-row .note { color: var(--muted); font-size: 0.9rem; }
.price-preview {
  background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 8px;
  padding: 12px 14px; margin: 12px 0; font-size: 1.05rem;
}
.price-preview strong { color: var(--navy); }
.pay-method { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.pay-method strong { color: var(--navy); }
.pay-method .pay-num { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }
.topup-history { margin-top: 18px; }

/* ---------- Top-up redesign (v2.6) ---------- */
.topup-subhead { margin: 0 0 14px; color: var(--navy); font-size: 1.05rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; color: var(--navy); }
/* Selectable payment-method cards (manual top-up). */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.method-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 14px; cursor: pointer; font: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.method-card:hover { border-color: var(--blue-light); }
.method-card.selected { border-color: var(--blue); background: #eef4ff; box-shadow: 0 0 0 1px var(--blue); }
.method-tile {
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem; flex: none;
}
.method-card--card .method-tile { background: var(--navy); }
.method-card--binance .method-tile { background: #f0b90b; color: #1a1a1a; }
.method-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.method-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
/* Payment details for the selected method only. */
.method-detail {
  background: #f8fafc; border: 1px solid var(--border); border-left: 3px solid var(--blue);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
}
.method-detail .pay-num { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; color: var(--navy); }
/* Instant USDT (BEP20) top-up — visually distinct from manual top-up. */.usdt-card { margin-top: 22px; background: #f0faf4; border: 1.5px solid #bfe6cd; border-radius: var(--radius); padding: 18px; }
.usdt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.usdt-head h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.usdt-badge {
  background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.usdt-warning {
  background: #fff3cd; border: 1px solid #ffe08a; color: #7a5b00;
  border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; margin-bottom: 12px;
}
.usdt-address-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; flex-wrap: wrap; }
.usdt-address-box { flex: 1; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.usdt-address-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.usdt-address { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; word-break: break-all; color: var(--navy); }
.usdt-address-row .btn { align-self: center; }
/* Card top-up (Visa/Mastercard) — navy-tinted panel, shown only as a
   coming-soon placeholder until a gateway is wired. */
.card-topup-panel { margin-top: 16px; background: #eef4ff; border: 1.5px solid #c3d4f5; border-radius: var(--radius); padding: 18px; }
.card-topup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-topup-head h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.card-badge {
  background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.card-coming-soon {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--muted);
}

/* ---------- Developer API (v2.6) ---------- */
.api-key-new { margin: 12px 0; }
.api-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.api-warning { color: var(--amber); font-weight: 600; margin-top: 14px; }
/* ---------- Account overview + top-up presets/policy (v2.6) ---------- */
.account-card { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; padding: 14px 16px; }
.account-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.account-label { color: var(--muted); }
#account-email, #account-balance { font-weight: 600; overflow-wrap: anywhere; }
.min-badge {
  display: inline-block; background: #e6f4ea; color: var(--green-dark);
  border: 1px solid #bfe6cc; border-radius: 999px; padding: 2px 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.amount-presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.preset-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 5px 14px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
}
.preset-btn:hover { border-color: var(--green); color: var(--green-dark); }
.preset-btn.preset-active { background: var(--green); border-color: var(--green); color: #fff; }
.policy-card { margin-top: 16px; }
.policy-card h3 { margin: 0 0 8px; }
.policy-card ul { margin: 0; padding-left: 20px; }
.policy-card li { margin-bottom: 4px; }
/* API docs page (api.html). */
.api-endpoint { margin-bottom: 22px; }
.api-endpoint h3 { margin: 0 0 6px; }
.api-endpoint h3 code { font-size: 0.95em; }
.api-endpoint p { margin: 0 0 8px; }
.api-endpoint table { margin-top: 8px; }
.code-block {
  background: var(--navy-3); color: #d7e3f4; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 0.88rem; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre; margin: 8px 0;
}
.api-callout {
  border: 1.5px solid var(--danger); background: #fdeeee; border-radius: var(--radius);
  padding: 16px 18px; margin: 18px 0;
}
.api-callout h3 { color: var(--danger); margin: 0 0 6px; }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.stat-card .stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
/* v2.5 admin: per-user balance adjustment controls inside the Users table. */
.bal-adjust { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bal-adjust .bal-amount { width: 90px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.bal-adjust .bal-reason { width: 150px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.admin-table th { background: var(--navy); color: #fff; }
.admin-table th:first-child { border-radius: 8px 0 0 0; }
.admin-table th:last-child { border-radius: 0 8px 0 0; }
.admin-table tr:hover td { background: #f2f6fc; }
.health-ok { color: var(--green-dark); font-weight: 700; }
.health-bad { color: var(--danger); font-weight: 700; }
.access-denied { text-align: center; padding: 60px 20px; color: var(--danger); }
.access-denied h1 { color: var(--danger); }

/* ---------- Toasts ---------- */
#toast-box {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.toast {
  background: var(--navy); color: #fff; padding: 12px 16px;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem; opacity: 1; transition: opacity 0.4s ease;
}
.toast-success { background: var(--green-dark); }
.toast-error { background: var(--danger); }
.toast-out { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 1.8rem; }
  .grid-3, .support-grid, .stat-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; gap: 12px; }
  .otp-code { font-size: 1.6rem; letter-spacing: 2px; }
  .phone-number { font-size: 1.2rem; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .usdt-address-row { flex-direction: column; }
  .usdt-address-row .btn { width: 100%; }
}

/* ---------- Custom dropdowns with icons/flags (v2.6) ---------- */
.cs-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs { position: relative; }
.cs-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.cs-btn:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.cs-btn.cs-placeholder { color: var(--muted); }
.cs-btn-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.cs-caret { color: var(--muted); font-size: 0.8rem; }
.cs-panel {
  position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px;
}
.cs-search { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; margin-bottom: 6px; }
.cs-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.cs-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.cs-option:hover, .cs-option.cs-highlighted { background: #eef4fb; }
.cs-option.cs-selected { font-weight: 700; background: #e6f4ea; }
.cs-empty { padding: 12px; color: var(--muted); text-align: center; }
.cs-option-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Prices page filters sit in a flex row — the custom control takes the same share. */
.price-controls .cs { flex: 1; min-width: 180px; }

/* ---------- Service icons + number options (RingVerify v2) ---------- */
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-weight: 800; font-size: 12px; line-height: 1;
  vertical-align: -5px; margin-right: 4px;
}
/* Real brand icons (v2.6): self-hosted Simple Icons SVGs. Black
   paths are inverted to white on the coloured tile; on light tiles
   (Snapchat yellow) the mark stays dark. */
.svc-icon-img { width: 16px; height: 16px; display: block; filter: brightness(0) invert(1); }
.svc-icon-img-dark { filter: none; }
.flag { font-size: 1.1rem; vertical-align: -2px; margin-right: 2px; }
/* Real flag images (flagcdn) — 20x15, slightly rounded. A failed
   image is hidden by flagImgError; the country name stays visible. */
.flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: -2px; }
/* Small USD figure shown beside the primary PKR price. */
.usd-sub { font-size: 0.8em; color: var(--muted); font-weight: 400; }
.opt-row td { background: #f6f9fc; }
.opt-list { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.opt-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; }
.opt-rank { font-weight: 700; font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; color: #fff; }
.rank-gold { background: #b8860b; }
.rank-silver { background: #64748b; }
.rank-bronze { background: #a05a2c; }
.opt-rate { color: var(--muted); }
.opt-toggle { white-space: nowrap; }

/* ---------- Mobile navigation + small-screen polish (v2.6) ---------- */
/* v2.7: the hamburger is visible at ALL widths (mobile and desktop);
   the nav always opens as a dropdown panel (see the .main-nav rules
   in the header section above). */
.nav-toggle {
  display: inline-block;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff; border-radius: 8px; padding: 5px 10px;
  font-size: 1.15rem; line-height: 1; cursor: pointer; flex: none;
}
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; flex: none; }
/* The prices table scrolls horizontally on phones; the hint tells
   users the columns continue sideways. */
.table-wrap { -webkit-overflow-scrolling: touch; }
.scroll-hint { display: none; }

@media (max-width: 768px) {
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .site-header { position: relative; }
  .scroll-hint {
    display: block; text-align: center; color: var(--muted);
    font-size: 0.85rem; margin: 0 0 8px;
  }
  .price-table { min-width: 620px; }
  /* Toasts must not run off the left edge on a 360px phone. */
  #toast-box { left: 16px; right: 16px; max-width: none; }
}

@media (max-width: 480px) {
  /* Brand text does not fit next to the menu + auth buttons at 360px;
     the RR logo mark stays, the name returns above 480px. */
  .brand [data-brand] { display: none; }
  .brand { font-size: 1.1rem; }
}

/* ---------- Home-page animations (v2.7) ----------
   Original, lightweight, navy/teal theme. CSS + tiny vanilla JS
   (js/home.js) only — no libraries, no external assets. */
/* Scroll reveal: hidden start state applies ONLY when JS is active
   (home.js adds .js-anim to <html>), so no-JS still shows content. */
.js-anim .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-anim .reveal.revealed { opacity: 1; transform: none; }
/* Floating OTP motif in the hero (decorative, aria-hidden in HTML). */
.otp-motif {
  position: absolute; right: 48px; top: 50%;
  width: 230px; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px; color: #fff;
  animation: otpFloat 5s ease-in-out infinite;
}
.otp-motif-label { font-size: 0.8rem; color: #9fb0c7; margin-bottom: 2px; }
.otp-motif-number { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.otp-motif-code {
  font-size: 1.7rem; font-weight: 800; letter-spacing: 5px; color: #7ee2a8;
  margin-bottom: 10px; animation: otpCodePop 3s ease-in-out infinite;
}
@keyframes otpFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}
@keyframes otpCodePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* The motif needs room: hide it before it can crowd the hero text. */
@media (max-width: 900px) {
  .otp-motif { display: none; }
}
/* Live-stats counters (home.js fills them in). */
#live-stats .stat-value { font-variant-numeric: tabular-nums; }
/* Respect reduced-motion: no drifting, floating, popping or sliding. */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .otp-motif, .otp-motif-code { animation: none; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ---------- v2.8: language selector ---------- */
.lang-select {
  background: var(--navy-2); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px; padding: 6px 8px; font-size: 0.9rem; cursor: pointer;
}
.lang-select option { color: var(--text); }

/* ---------- v2.8: price card grid (555api-style listing, own theme) ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
/* v2.10: very wide screens get a fifth column so the page fills out. */
@media (min-width: 1500px) { .price-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
}
/* v2.10: big brand tiles on price cards so the grid reads at a glance. */
.price-card-top .svc-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; margin-right: 0; flex: none; }
.price-card-top .svc-icon-img { width: 28px; height: 28px; }
.price-card:hover { border-color: var(--blue); }
.price-card-top { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.price-card-name { overflow: hidden; text-overflow: ellipsis; }
.price-card-country { color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.price-card-price { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); }
.price-card-price .usd-sub { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.price-card-stock { font-size: 0.95rem; }
.price-card-stock strong { color: var(--text); }
.price-card-meta { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }
.price-card .buy-btn { margin-top: auto; align-self: flex-start; }

/* ---------- v2.8: order dialog ---------- */
.order-dialog-overlay {
  position: fixed; inset: 0; background: rgba(10, 28, 51, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.order-dialog {
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  max-width: 460px; width: 100%; padding: 24px; max-height: 90vh; overflow-y: auto;
}
.order-dialog h2 { margin: 0 0 16px; color: var(--navy); font-size: 1.3rem; }
.dlg-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.dlg-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.dlg-row > span:first-child { color: var(--muted); }
.dlg-row select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; max-width: 260px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 4px; }
.qty-stepper button {
  width: 32px; height: 32px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.qty-stepper button:hover { border-color: var(--blue); }
.qty-stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.dialog-open { overflow: hidden; }

/* ---------- v2.8: password show/hide toggle ---------- */
.password-field { position: relative; }
.password-field input { padding-right: 44px; width: 100%; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 0.9rem;
  color: var(--muted); padding: 4px 8px; white-space: nowrap;
}
.password-toggle:hover { color: var(--navy); }

/* ---------- v2.8: RTL (Urdu) ---------- */
[dir="rtl"] .password-field input { padding-right: 12px; padding-left: 44px; }
[dir="rtl"] .password-toggle { right: auto; left: 6px; }
[dir="rtl"] .faq-item summary::after { float: left; }
[dir="rtl"] .price-card-top, [dir="rtl"] .price-card-country { flex-direction: row; }

/* ---------- v2.9 homepage polish ---------- */
/* Popular-service brand tiles (self-hosted Simple Icons SVGs, white
   glyph on the brand colour — same tile pattern as .svc-icon).
   v2.10: cards are links to prices.html?service=… and the tiles are
   bigger so the section fills the page. */
.popular-card { text-decoration: none; }
.popular-card:hover { text-decoration: none; }
.popular-card .svc-icon-pop { width: 72px; height: 72px; border-radius: 18px; margin: 0 0 14px; }
.popular-card .svc-icon-pop .svc-icon-img { width: 40px; height: 40px; }
/* "How it works" strip below the hero: 3 numbered step cards. */
.how-strip { padding-bottom: 8px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--muted); }
/* Professional footer: brand + tagline, quick links, contact icons. */
.footer .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr; gap: 28px; align-items: start; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-tagline { margin: 0; color: #9fb0c7; }
.footer-col h3 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.footer-col > a { display: block; margin-bottom: 8px; }
.footer-contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact-row a { display: inline; margin-bottom: 0; }
.footer-ico { width: 20px; height: 20px; flex: 0 0 auto; filter: brightness(0) invert(1); color: #cdd9ea; }
.footer-contact-num { color: #9fb0c7; font-size: 0.85rem; overflow-wrap: anywhere; }
.footer .footer-bottom { display: block; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 24px; padding-top: 18px; font-size: 0.85rem; }
/* Floating WhatsApp button (bottom-right, every page). */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform 0.15s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float img { width: 30px; height: 30px; filter: brightness(0) invert(1); }

/* ---------- v2.20: floating live-number DEMO card ---------- */
/* Logged-out pages only (login + landing). Bottom-LEFT so it never covers
   the WhatsApp float button (bottom-right). Clearly labelled Demo; the
   numbers/codes are fictional samples, never real data. Small on phones. */
.live-demo-card { position: fixed; left: 20px; bottom: 20px; z-index: 1000; width: 300px; max-width: calc(100vw - 28px); background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.28); padding: 12px 14px 10px; font-size: 14px; }
.live-demo-card[hidden] { display: none; }
.live-demo-close { position: absolute; top: 4px; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
.live-demo-close:hover { color: var(--text); }
.live-demo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-right: 20px; }
.live-demo-badge { font-size: 0.68rem; letter-spacing: 1px; font-weight: 700; color: #fff; background: var(--amber); border-radius: 999px; padding: 3px 8px; }
.live-demo-title { font-weight: 700; }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; animation: liveDemoPulse 1.6s ease-in-out infinite; }
@keyframes liveDemoPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.live-demo-service { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 2px; }
.live-demo-service .live-demo-service-name { color: var(--text); font-weight: 600; }
.live-demo-number { font-weight: 700; font-size: 17px; letter-spacing: 0.5px; margin: 2px 0 6px; }
.live-demo-otp-row { display: flex; align-items: baseline; gap: 10px; background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }
.live-demo-otp-label { font-size: 12px; color: var(--muted); }
.live-demo-otp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.live-demo-otp.is-delivered { animation: liveDemoFade 0.4s ease; }
@keyframes liveDemoFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.live-demo-status { font-size: 13px; color: var(--muted); }
.live-demo-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .steps-grid, .footer .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .live-demo-card { left: 14px; bottom: 14px; width: min(300px, calc(100vw - 28px)); }
}

/* ---------- v2.13 ---------- */
/* Compact change-password form (now inside Account Settings). */
.pw-compact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.pw-compact button { align-self: flex-start; }

/* Orders filter pills (All / Active / History). */
.orders-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.filter-pill { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.filter-pill:hover { border-color: var(--blue); }
.filter-pill.filter-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* OTP history table. */
.otp-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.otp-search-row input { flex: 1; }
.otp-copy { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); cursor: pointer; font-size: 0.9rem; }
.otp-copy:hover { border-color: var(--blue); color: var(--blue); }

/* Balance transfer history. */
.transfer-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.transfer-row:last-child { border-bottom: 0; }
.transfer-history { margin-top: 14px; }

/* Account settings card. */
.settings-card h3 { margin: 18px 0 8px; color: var(--navy); font-size: 1.05rem; }
.settings-card h3:first-child { margin-top: 0; }
.settings-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.settings-value { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* Admin quick-jump nav + per-user filter note. */
.admin-quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: 0.95rem; }

/* Login split layout: welcome panel + form card. */
.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; max-width: 1020px; margin: 24px auto 40px; }
.auth-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.auth-back { color: #c9d6e8; text-decoration: none; font-size: 0.95rem; }
.auth-back:hover { color: #fff; }
.auth-badge { align-self: flex-start; font-size: 0.75rem; letter-spacing: 1.5px; font-weight: 700; color: var(--blue-light); border: 1px solid rgba(91,157,255,0.5); border-radius: 999px; padding: 4px 10px; }
.auth-hero-title { margin: 0; color: #fff; font-size: 1.9rem; line-height: 1.25; }
.auth-hero-sub { margin: 0; color: #c9d6e8; }
.auth-snapshot { margin-top: auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 16px; }
.auth-snapshot-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; }
.live-badge { font-size: 0.7rem; letter-spacing: 1px; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; padding: 3px 8px; }
.auth-snapshot-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
.auth-snapshot-item strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.auth-snapshot-item span { font-size: 0.8rem; color: #9fb0c7; }
.auth-card-wrap { display: flex; align-items: center; }
.auth-card { width: 100%; }
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-snapshot-grid { grid-template-columns: 1fr; }
}

/* Landing: country cards, CTA band, popular live meta, motif tag. */
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country-card { display: block; text-decoration: none; padding: 20px; }
.country-card:hover { text-decoration: none; border-color: var(--blue); }
.country-card h3 { margin: 10px 0 4px; color: var(--navy); }
.country-card p { margin: 0; color: var(--muted); }
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: #c9d6e8; margin: 0 0 20px; }
.popular-meta { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.popular-buy { color: var(--blue); font-weight: 600; }
.otp-motif-tag { display: inline-block; font-size: 0.7rem; letter-spacing: 1px; font-weight: 700; color: var(--blue-light); border: 1px solid rgba(91,157,255,0.5); border-radius: 999px; padding: 3px 8px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .country-grid { grid-template-columns: 1fr; }
}

/* Theme picker panel (themes.js injects it). */
.theme-panel { position: fixed; z-index: 2000; top: 64px; right: 16px; width: min(340px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.theme-panel h3 { margin: 0 0 12px; color: var(--text); font-size: 1rem; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme-swatch { border: 1px solid var(--border); border-radius: 8px; padding: 6px 4px; background: var(--card); color: var(--text); cursor: pointer; font-size: 0.7rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-swatch:hover { border-color: var(--blue); }
.theme-swatch.theme-active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.theme-swatch-dots { display: flex; gap: 3px; justify-content: center; margin-bottom: 4px; }
.theme-swatch-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- v2.14 ---------- */
/* Hamburger account menu: separator between the account options and
   the site links inside #main-nav. */
.nav-sep { display: block; height: 1px; background: var(--border); margin: 6px 12px; }

/* Buy API Numbers: final-sale banner + bought-number cards with the
   shareable OTP link. */
.api-banner { background: #fff4e0; border: 1px solid #f0c36d; color: #7a4a00; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }
.api-num-card { margin-bottom: 12px; }
.api-num-status { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.api-num-phone { font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; margin: 8px 0; }
.otp-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.otp-link-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.otp-link { flex: 1 1 260px; min-width: 0; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; }

/* Public OTP page (/otp.html): no-login code view. */
.otp-page { max-width: 640px; margin: 48px auto; }
.otp-card { text-align: center; padding: 32px 24px; }
.otp-card h1 { margin: 0 0 8px; }
.otp-foot { text-align: center; margin-top: 16px; }

/* ---------- v2.17 ---------- */
/* "All countries" cards: real flag images (flagcdn). Windows Chrome
   renders flag emoji as two-letter codes, so the cards use <img>
   flags; the code letters stay visible if an image fails to load.
   Fixed 40x30 size reserves the space (no layout shift). */
.country-flag-row { display: flex; align-items: center; gap: 10px; }
.country-flag-img { width: 40px; height: 30px; object-fit: cover; border-radius: 3px; display: block; }
.country-code { color: var(--blue); font-weight: 700; font-size: 1.05rem; }

/* ---------- v2.18 ---------- */
/* Shop pages (VPNs + Subscriptions): Telegram store banner, buyer
   order cards with delivered credentials, and status pills. */
.shop-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; }
.shop-banner span { flex: 1 1 240px; }
.shop-updates-link { font-size: 0.9rem; }
.shop-order { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.shop-order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-order-price { margin-left: auto; font-weight: 700; }
.shop-status { font-size: 0.8rem; font-weight: 700; text-transform: capitalize; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.shop-status-delivered { background: #e6f7ec; border-color: #9fd6ae; color: #14532d; }
.shop-status-processing, .shop-status-needs_info { background: #fff4e0; border-color: #f0c36d; color: #7a4a00; }
.shop-status-failed, .shop-status-refunded { background: #fdecec; border-color: #f0b0b0; color: #7a1f1f; }
.shop-creds { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.shop-creds-h { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.shop-cred-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.shop-cred-row code { flex: 1 1 260px; min-width: 0; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; }
.shop-identifier { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shop-identifier-input { flex: 1 1 240px; min-width: 0; }

/* Services page (v2.18): custom services showcase — NOT wallet
   purchases, so no buy button and no prices here. */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 8px 0 20px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); overflow: hidden; }
/* v2.20: photo at the top of each service card — full-bleed, fixed height. */
.service-card .service-img { display: block; width: calc(100% + 36px); height: 180px; object-fit: cover; margin: -18px -18px 14px; }
.service-card h3 { margin: 0 0 8px; }
.service-card p { margin: 0 0 14px; color: var(--muted); }
.service-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Opening offer (v2.18): banner on the shop pages + offer line on
   the landing shop band. The banner is hidden until shop.js (or
   home.js on the landing) unhides it while the server says the
   offer is active; it disappears on its own when the window ends. */
.shop-offer-banner { border: 1px solid var(--accent, #2e9e5b); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; background: color-mix(in srgb, var(--accent, #2e9e5b) 12%, transparent); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.shop-offer-banner strong { font-size: 1.05rem; }
.shop-price-old { opacity: .65; }
.shop-offer-badge { display: inline-block; background: var(--accent, #2e9e5b); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
/* v2.20 shop: out-of-stock badge on subscription cards (the buy
   button is hidden for those cards — they can never be bought). */
.shop-out-badge { display: inline-block; background: #b3261e; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.shop-offer-line { text-align: center; font-weight: 600; margin: 0 0 12px; }

/* ---------- v2.19 ---------- */
/* Earlier codes on an order card: smaller rows under the big latest
   code, tap to copy like the main code. */
.otp-earlier-label { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 4px 0 6px; }
.otp-code-small {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 2px;
  background: var(--surface-muted, #f2f4f7); color: var(--text);
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 8px 12px; margin: 6px 0; cursor: pointer; word-break: break-all;
}
.otp-code-small .form-hint { letter-spacing: normal; font-weight: 400; }
/* Earlier codes on the public OTP page: same small-row treatment. */
.otp-codes-list { margin: 10px 0; }
