:root {
  --ink: #17234d;
  --muted: #66708c;
  --paper: #f7f9fd;
  --white: #fff;
  --indigo: #1e3a8a;
  --indigo-deep: #172b69;
  --teal: #0d9488;
  --shadow: 0 18px 48px rgba(30, 58, 138, .12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--indigo); color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 20; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,249,253,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,43,105,.06);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { width: min(168px, 42vw); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-pay {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px; border-radius: 14px;
  background: rgba(30, 58, 138, .08); color: var(--teal);
  font: inherit; font-weight: 800; font-size: 15px;
  border: 0; cursor: pointer; white-space: nowrap;
}
.header-call {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 8px 14px; border-radius: 14px;
  background: rgba(30, 58, 138, .08); color: var(--indigo-deep);
  white-space: nowrap;
}
.header-call-label { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .04em; white-space: nowrap; }
.header-call-num { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }

.hero { padding: 48px 0 28px; }
.hero-grid { display: block; }
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--indigo-deep);
}
.hero h1 span { color: var(--teal); }
.hero h1 span.hero-plain { color: inherit; }
.product-label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, .12);
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero-sub { margin: 16px 0 6px; font-size: 18px; font-weight: 700; }
.accent { margin: 0 0 22px; color: var(--muted); letter-spacing: .08em; font-size: 14px; }

.phone-focus {
  display: grid; gap: 12px; justify-items: start; width: 100%;
  padding: 18px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30,58,138,.08), rgba(13,148,136,.10));
  border: 1px solid rgba(30,58,138,.12);
  box-shadow: var(--shadow);
}
.phone-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.phone-number {
  display: block;
  color: var(--indigo-deep);
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
  text-decoration: none;
}
.phone-number:hover, .phone-number:focus-visible { color: var(--indigo); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800;
}
.phone-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary { color: #fff; background: var(--indigo); box-shadow: 0 12px 28px rgba(30,58,138,.22); }
.btn-ghost {
  color: var(--indigo-deep); background: #fff;
  border: 1.5px solid rgba(30,58,138,.18);
}
.btn-light { color: var(--indigo-deep); background: #fff; min-width: 132px; font-size: 16px; }

.live-wrap { padding: 8px 0 36px; }
.live-bar {
  position: relative; overflow: hidden; border-radius: 20px;
  min-height: 96px; box-shadow: var(--shadow);
  background: linear-gradient(110deg, var(--indigo-deep), #1d4f8c 55%, #0f766e);
}
.live-bg { display: none; }
.live-panel { position: relative; z-index: 1; padding: 18px 22px; color: #fff; }
.live-whisper {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: rgba(12, 22, 48, .55);
  color: #7ee7d8; font-size: 18px; font-weight: 800; letter-spacing: .08em; line-height: 1;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74,222,128,.18);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.35); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
}
.live-label { color: #e7eeff; font-size: 16px; font-weight: 800; }
.live-stat strong {
  font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1;
}

.topup { padding: 8px 0 28px; scroll-margin-top: 92px; }
#topup-form { scroll-margin-top: 92px; }
.topup-grid { display: block; }
.topup .phone-focus { justify-items: stretch; }
.topup-form { width: 100%; min-width: 0; }
.topup-number {
  margin: 0;
  color: var(--indigo-deep);
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.topup-sub { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
#topup-money {
  margin: 8px 0 0;
  color: var(--teal);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}
.topup-form label { display: block; margin: 16px 0 8px; color: var(--muted); font-size: 15px; }
.topup-form input {
  width: 100%; min-height: 52px; font: inherit; font-weight: 800; color: var(--indigo-deep);
  border: 1px solid rgba(30,58,138,.12); border-radius: 999px; padding: 0 22px; background: #fff;
}
.topup-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.topup-pack {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 52px; font: inherit; font-weight: 800; font-size: 16px; color: var(--indigo-deep); cursor: pointer;
  border: 1.5px solid rgba(30,58,138,.18); background: #fff; border-radius: 999px; padding: 0 16px;
}
.topup-pack.on { color: #fff; background: var(--indigo); border-color: var(--indigo); box-shadow: 0 12px 28px rgba(30,58,138,.22); }
.topup-custom { display: flex; align-items: center; gap: 10px; }
.topup-custom input { flex: 1; width: auto; min-width: 0; }
.topup-custom span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.promo-banner {
  margin: 0 0 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(13, 148, 136, .12);
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}
.topup-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.topup-form .btn { width: 100%; margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; }
.topup-form .btn:disabled { opacity: .55; cursor: not-allowed; }
#topup-money:empty, #topup-minutes:empty { display: none; }
#topup-gift { margin: 8px 0 0; color: var(--teal); font-size: 15px; font-weight: 700; }
.acct { margin-top: 22px; }
.acct .phone-kicker { margin-bottom: 4px; }
.acct-empty { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(23,43,105,.1);
}
.acct-row time { display: block; color: var(--muted); font-size: 13px; }
.acct-row span { color: var(--indigo-deep); font-weight: 800; }
.acct-row strong {
  color: var(--teal); font-size: 28px; font-weight: 900;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap;
}

.products { padding: 12px 0 56px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  overflow: hidden; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(23,43,105,.05);
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-en { margin: 0; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.card-body h2 { margin: 6px 0 8px; font-size: 28px; color: var(--indigo-deep); letter-spacing: -.03em; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

.steps { padding: 24px 0 64px; background: #fff; }
.steps-title { margin: 0 0 20px; text-align: center; font-size: clamp(28px, 4vw, 40px); color: var(--indigo-deep); }
.flow { margin: 0; }
.flow img { width: 100%; border-radius: 20px; }
.flow figcaption {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px; text-align: center; font-weight: 800; color: var(--indigo-deep);
}

.dial { color: #fff; background: var(--indigo-deep); }
.dial-inner {
  min-height: 168px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 0;
}
.dial-copy { min-width: 0; }
.dial-kicker {
  margin: 0 0 8px;
  color: #7ee7d8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}
.dial-num {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 64px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.dial-num:hover, .dial-num:focus-visible { color: #d7fff7; }
.dial-sub { margin: 10px 0 0; color: #b7c6ef; font-size: 14px; }

.site-footer { background: #101832; color: #98a5c3; font-size: 12px; }
.footer-inner {
  min-height: 72px; padding: 18px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a, .footer-account {
  color: #c5d0e8; font: inherit; font-weight: 700; font-size: 13px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-account:hover, .footer-account:focus-visible { color: #fff; }
.footer-nav a[aria-current="page"] { color: #7ee7d8; }
.footer-meta { margin: 0; color: #98a5c3; }

/* Legal / support pages */
.legal { padding: 36px 0 64px; }
.legal-wrap { max-width: 720px; }
.legal-kicker {
  margin: 0 0 8px; color: var(--teal);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.legal h1 {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px);
  color: var(--indigo-deep); letter-spacing: -.03em; line-height: 1.15;
}
.legal-lead { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.legal-updated { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.legal-body h2 {
  margin: 28px 0 10px; font-size: 20px; color: var(--indigo-deep); letter-spacing: -.02em;
}
.legal-body p, .legal-body li { color: var(--ink); font-size: 15px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 1.25em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover, .legal-body a:focus-visible { color: var(--teal); }

.contact-card {
  display: grid; gap: 10px; justify-items: start;
  margin: 8px 0 28px; padding: 22px 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30,58,138,.08), rgba(13,148,136,.10));
  border: 1px solid rgba(30,58,138,.12);
  box-shadow: var(--shadow);
}
.contact-label {
  margin: 0; color: var(--teal); font-size: 14px; font-weight: 800; letter-spacing: .04em;
}
.contact-phone {
  color: var(--indigo-deep);
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 900; font-variant-numeric: tabular-nums;
  letter-spacing: -.03em; line-height: 1;
}
.contact-phone:hover, .contact-phone:focus-visible { color: var(--indigo); }
.contact-dial { margin-top: 4px; }
.contact-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.paid-dialog {
  border: 0; border-radius: 24px; padding: 28px 24px 22px;
  width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow); text-align: center;
}
.paid-dialog::backdrop { background: rgba(16, 24, 50, .45); }
.paid-balance {
  margin: 12px 0 0; color: var(--teal);
  font-size: clamp(48px, 7vw, 76px); font-weight: 900;
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1;
}
.paid-line { margin: 8px 0 18px; color: var(--muted); font-size: 16px; font-weight: 700; }
.paid-dialog .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.error-title {
  margin: 4px 0 22px; color: var(--indigo-deep);
  font-size: clamp(28px, 4vw, 36px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.25;
}

.account-layer {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: start; justify-items: center;
  padding: 24px 16px; overflow: auto;
  background: rgba(16, 24, 50, .45);
}
.account-layer[hidden] { display: none; }
.account-card {
  width: min(480px, 100%); margin-top: 48px; padding: 22px 22px 24px;
  border-radius: 24px; background: #fff; box-shadow: var(--shadow);
}
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-head h2 { margin: 0; color: var(--indigo-deep); font-size: 28px; letter-spacing: -.03em; }
.account-x {
  width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(30, 58, 138, .08); color: var(--indigo-deep); font: inherit; font-size: 24px; line-height: 1;
}
.account-lead { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.account-alert {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #f3f6fb; color: var(--indigo-deep); font-size: 16px; font-weight: 700;
}
.account-alert[hidden] { display: none; }
.account-login label, .account-home label { display: block; margin: 16px 0 8px; color: var(--muted); font-size: 15px; }
.account-login input {
  width: 100%; min-height: 52px; font: inherit; font-weight: 800; color: var(--indigo-deep);
  border: 1px solid rgba(30,58,138,.12); border-radius: 999px; padding: 0 22px; background: #fff;
}
.account-login .btn, .account-home .btn {
  width: 100%; margin-top: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
}
.account-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.account-phone-line {
  margin: 8px 0 0; color: var(--indigo-deep);
  font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.account-home .paid-line { margin-bottom: 0; }
.account-home .acct { margin-top: 18px; }

@media (max-width: 767px) {
  body.has-sticky-dial { padding-bottom: 92px; }
  .legal { padding: 24px 0 48px; }
  .footer-inner { min-height: auto; align-items: flex-start; flex-direction: column; }
  .contact-dial { width: 100%; }
  .header-inner { min-height: 64px; flex-wrap: nowrap; }
  .brand { width: min(132px, 38vw); }
  .header-actions { gap: 8px; margin-left: auto; }
  .header-pay { min-height: 40px; padding: 6px 12px; font-size: 15px; }
  .header-call { display: none; }
  .hero { padding-top: 24px; }
  .topup-number { font-size: clamp(32px, 9vw, 44px); }
  .phone-focus { width: 100%; }
  .phone-number { font-size: clamp(36px, 11vw, 48px); }
  .phone-actions { width: 100%; }
  .phone-actions .btn { flex: 1; }
  .btn-primary { width: auto; }
  .live-bar { border-radius: 16px; }
  .live-stat strong { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .dial {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 28px rgba(16,24,50,.25);
  }
  .dial-inner { min-height: 84px; padding: 12px 0; gap: 12px; }
  .dial-kicker { font-size: 12px; margin-bottom: 4px; }
  .dial-num { font-size: 26px; }
  .dial-sub { display: none; }
  .btn-light { min-width: 108px; min-height: 46px; }
  .site-footer { padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  * { transition: none !important; }
}
