/* ===========================================================================
   Nimets site UI — adapted from the PadLink design system, re-themed to the
   Nimets purple brand (#833891). Self-contained: no Bootstrap, no jQuery.
   Bilingual: html[data-lang="en|km"] toggles .lang-en / .lang-km blocks.
   =========================================================================== */

@font-face {
  font-family: "Khmer OS Battambang";
  src: url("../fonts/KhmerOSbattambang.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Nimets brand palette */
  --magenta:   #833891;   /* primary brand (buttons, links, accents) */
  --teal:      #c45bb0;   /* secondary accent (orchid) */
  --navy:      #2b2350;   /* footer / deep text */
  --lavender:  #b07cc9;
  --soft-teal: #d9b8e6;
  --white:     #ffffff;

  /* Themed tokens — light defaults (overridden by [data-theme="dark"] below) */
  --ink:       #221a33;
  --ink-soft:  #5d5872;
  --heading:   var(--navy);
  --bg:        #f7f5fb;
  --bg-card:   #ffffff;
  --alt-bg:    linear-gradient(180deg, #fff, #f3f0f8);
  --nav-bg:    rgba(247, 245, 251, 0.85);
  --code-bg:   rgba(43, 35, 80, 0.07);
  --border:    rgba(43, 35, 80, 0.12);
  --shadow:    0 10px 30px rgba(43, 35, 80, 0.10);

  --grad: linear-gradient(120deg, var(--magenta) 0%, var(--lavender) 45%, var(--teal) 100%);

  --radius:    16px;
  --maxw:      1080px;

  --font: "Rubik", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Arial, "Khmer OS Battambang", sans-serif;
}

:root[data-theme="dark"] {
  --ink:       #ECEBF6;
  --ink-soft:  #B0A8C6;
  --heading:   #F4F1FB;
  --bg:        #141026;
  --bg-card:   #211a3a;
  --alt-bg:    linear-gradient(180deg, #1c1636, #15102a);
  --nav-bg:    rgba(20, 16, 38, 0.85);
  --code-bg:   rgba(255, 255, 255, 0.10);
  --border:    rgba(255, 255, 255, 0.12);
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
/* Sticky footer: main grows to fill leftover height so short pages don't leave
   the footer floating mid-viewport; footer still sits right after content on
   tall pages. */
body > main { flex: 1 0 auto; }
body > .footer { flex: none; }

/* Bilingual show/hide — JS sets data-lang on <html> */
html[data-lang="en"] .lang-km { display: none !important; }
html[data-lang="km"] .lang-en { display: none !important; }
.lang-km { font-family: "Khmer OS Battambang", "Rubik", sans-serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; padding: .7em 1.3em;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--lg { font-size: 1.05rem; padding: .85em 1.7em; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--magenta); color: var(--white); box-shadow: 0 6px 18px rgba(131,56,145,0.35); }
.btn--primary:hover { background: #6d2e79; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--heading); background: rgba(127,127,160,0.08); }
.btn img { height: 20px; width: auto; display: block; }

/* ------------------------------- Nav ------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: .55em; margin-right: auto; }
.nav__brand:hover { text-decoration: none; }
.nav__logo { height: 34px; width: auto; display: block; }
.nav__word { font-weight: 800; font-size: 1.25rem; color: var(--heading); letter-spacing: -0.01em; }
.nav__links { order: 1; display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { color: var(--ink-soft); font-weight: 600; }
.nav__links a:hover { color: var(--heading); text-decoration: none; }

/* Icon-only toggle buttons (theme + language) */
.icon-toggle {
  order: 2; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--ink-soft);
  cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-toggle:hover { color: var(--heading); border-color: var(--heading); background: rgba(127,127,160,0.08); }
.icon-toggle svg { width: 20px; height: 20px; display: block; }

.nav__toggle {
  order: 3; display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(176,124,201,0.20), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(131,56,145,0.16), transparent 55%);
  padding: 72px 0 64px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 12px;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero__art { display: flex; justify-content: center; }
.hero__logo { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 16px 40px rgba(43,35,80,0.18)); }

/* ----------------------------- Sections --------------------------------- */
.section { padding: 72px 0; }
.section--alt { background: var(--alt-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); text-align: center; }
.section__lead { text-align: center; color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; margin: 0 auto 40px; }

/* ------------------------------ Cards ----------------------------------- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--services { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------- Product cards ----------------------------- */
.product { text-align: center; display: flex; flex-direction: column; }
.product__logo { height: 76px; width: auto; margin: 0 auto 16px; object-fit: contain; }
.product h3 { font-size: 1.3rem; }
.product p { color: var(--ink-soft); margin: 0 0 22px; }
.product .btn { margin-top: auto; align-self: center; }

/* ------------------------- Download / store CTA ------------------------- */
.cta { text-align: center; }
.cta__logo { height: 84px; width: auto; margin: 0 auto 14px; }
.store-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
.cta__req { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 0; }
.cta__privacy { margin: 18px 0 0; }
.cta__privacy a {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .95rem; font-weight: 600;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55em 1.2em;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cta__privacy a:hover {
  color: var(--magenta); border-color: var(--magenta);
  background: rgba(131, 56, 145, 0.06);
  text-decoration: none;
}

/* ------------------------------ Contact --------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
/* Homepage variant: two matching cards (reach us / business details) instead of a bare
   list beside a bordered block. Scoped as a modifier — logicstore.html keeps the base grid. */
.contact__grid--cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact__card h3 { font-size: 1.15rem; margin: 0 0 18px; }
/* Social icons ride the phone row, pinned to the card's right edge — `auto` eats
   the free space so no row of its own is needed. */
.contact__list li .social { margin-left: auto; }
/* Business-details rows run to 2–3 lines, so top-align the icon instead of letting
   it float in the vertical middle of the wrapped block. */
.contact__list--meta li { align-items: flex-start; }
.contact__list--meta svg { margin-top: 2px; }
.contact__list--meta strong { color: var(--ink); }
/* The identity card also appears inside .legal, whose `ul`/`li` rules (0,1,1) would
   otherwise beat .contact__list's own reset (0,1,0) and indent/space the rows. */
.legal .contact__list { padding-left: 0; }
.legal .contact__list li { margin-bottom: 0; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: .7em; color: var(--ink-soft); }
.contact__list svg { width: 20px; height: 20px; flex: none; color: var(--magenta); }
.contact__list a { color: var(--ink); }
.social { display: flex; gap: 14px; justify-content: flex-start; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--heading);
  box-shadow: var(--shadow);
}
.social a:hover { color: var(--magenta); border-color: var(--magenta); }
.social svg { width: 22px; height: 22px; }

/* ----------------------------- Footer ----------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .5em; color: #fff; font-weight: 800; }
.footer__brand:hover { text-decoration: none; }
.footer__logo { height: 26px; width: auto; display: block; }
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin: 0; font-size: .85rem; opacity: .7; }

/* ---------------------------- Legal / long-form ------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 64px; }
.legal h1 { font-size: 2rem; margin-bottom: .25rem; color: var(--heading); }
.legal .legal__updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; color: var(--heading); }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.8; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--magenta); }
.legal__note { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: .9rem; margin-top: 2.5rem; }
.idcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; font-size: .95rem; }
.idcard div { margin: .15em 0; color: var(--ink); }
.policy-links { display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.policy-links a { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--heading); font-weight: 600; }
.policy-links a:hover { border-color: var(--magenta); }
.policy-links small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .88rem; margin-top: .2em; }

/* --------------------- Product split sections (main page) --------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split__logo { height: 64px; width: auto; margin-bottom: 14px; display: block; }
.split__copy h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split__copy p { color: var(--ink-soft); font-size: 1.08rem; }
.split__media img { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 16px 40px rgba(43,35,80,0.14)); }
.split__list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.split__list li { color: var(--ink); padding-left: 1.6em; position: relative; }
.split__list li::before { content: "✓"; position: absolute; left: 0; color: var(--magenta); font-weight: 800; }
.split__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.split--reverse .split__media { order: 2; }

/* ------------------------------ Steps ----------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); margin: 0; }
.feature__icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ----------------------------- Pricing ---------------------------------- */
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price { display: flex; flex-direction: column; position: relative; }
.price--pop { border-color: var(--magenta); box-shadow: 0 14px 40px rgba(131,56,145,0.18); }
.price__badge { position: absolute; top: -12px; right: 24px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .9em; border-radius: 999px; }
.price__name { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.price__amount { margin: 4px 0 14px; }
.price__big { font-size: 2.4rem; font-weight: 800; color: var(--heading); }
.price__per { color: var(--ink-soft); font-weight: 600; margin-left: .35em; }
.price__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.price__list li { color: var(--ink); }
.price__list li del { color: var(--ink-soft); }
.price .btn { margin-top: auto; }

/* ------------------------------ Gallery --------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ------------------------------ Top-up ---------------------------------- */
.topup-page .container { max-width: 640px; }
.topup-page h1 { text-align: center; }
.topup__game-badge {
  display: flex; width: fit-content; align-items: center; gap: .6em; margin: 10px auto 20px;
  padding: .5em 1em .5em .5em; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow);
  font-size: .92rem; color: var(--ink-soft);
}
.topup__game-badge img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.topup__game-badge strong { color: var(--heading); }
.topup__game-badge small { color: var(--ink-soft); }
.topup__step { margin-bottom: 20px; }
.topup__label { display: block; font-weight: 700; font-size: .92rem; color: var(--heading); margin-bottom: 10px; }
.topup__input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: .8em 1em; outline: none; transition: border-color .15s ease;
}
.topup__input:focus { border-color: var(--magenta); }

.topup__results { margin-top: 10px; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.topup__result-item {
  display: flex; align-items: center; gap: .8em; width: 100%; text-align: left;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  padding: .6em .8em; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.topup__result-item:hover { border-color: var(--magenta); background: rgba(131,56,145,0.06); }
.topup__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--code-bg); border: 1px solid var(--border);
}
.topup__result-name { font-weight: 600; }
.topup__result-level { color: var(--ink-soft); font-size: .85rem; }
.topup__empty { color: var(--ink-soft); font-size: .92rem; padding: .4em 0; }

.topup__selected {
  display: flex; align-items: center; gap: .9em; margin-top: 14px;
  border: 1px solid var(--border); border-radius: 12px; padding: .7em .9em;
  background: rgba(131,56,145,0.06);
}
.topup__selected .topup__avatar { width: 48px; height: 48px; }
.topup__selected-info { flex: 1; }
.topup__selected-name { font-weight: 700; color: var(--heading); }
.topup__selected-level { color: var(--ink-soft); font-size: .88rem; }

.topup__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.topup__tab {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink-soft);
  cursor: pointer; padding: .5em 1.5em; border-radius: 999px;
  border: 2px solid var(--border); background: transparent;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.topup__tab:hover { border-color: var(--magenta); color: var(--heading); }
.topup__tab.is-active { border-color: var(--magenta); background: var(--magenta); color: #fff; }
.topup__tab-icon { width: 22px; height: 22px; display: block; object-fit: contain; }

.topup__packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 4px; }
.topup__package {
  text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 12px;
  padding: 16px; transition: border-color .15s ease, transform .12s ease;
}
.topup__package:hover { transform: translateY(-2px); }
.topup__package.is-selected { border-color: var(--magenta); box-shadow: 0 6px 18px rgba(131,56,145,0.20); }
.topup__package-value { display: flex; align-items: center; gap: .45em; font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.topup__package-icon { width: 26px; height: 26px; display: block; object-fit: contain; }
.topup__package-price { color: var(--ink-soft); margin-top: 4px; }

.topup__error { color: #c0392b; font-size: .92rem; margin-top: 10px; }

.topup__qr-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 12, 38, 0.72); padding: 24px;
}
.topup__qr-card {
  position: relative; text-align: center; width: 100%; max-width: 420px;
  max-height: calc(100vh - 48px); display: flex; flex-direction: column;
}
/* The close button sits outside this and stays put; only the card's own content scrolls
   underneath it when it's taller than the viewport allows. */
.topup__qr-scroll { overflow-y: auto; min-height: 0; }
.topup__qr-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--ink-soft);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease;
}
.topup__qr-close:hover { border-color: var(--magenta); color: var(--heading); }
/* ABA's returned image is already a self-contained branded card (logo, amount, QR) — just let
   it render at its own aspect ratio instead of forcing a fixed square, which was distorting it. */
.topup__qr { width: 100%; max-width: 260px; height: auto; margin: 0 auto; display: block; border-radius: 12px; }
.topup__qr-amount { font-size: 1.3rem; font-weight: 800; color: var(--heading); margin: 16px 0 4px; }
.topup__share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.topup__qr-success { padding: 20px 0; text-align: center; }
.topup__qr-success svg { width: 72px; height: 72px; margin: 0 auto; display: block; }
.topup__qr-success-countdown { color: var(--ink-soft); font-size: .9rem; margin: 16px 0 0; }
.topup__share-btn svg { width: 18px; height: 18px; }
.topup__share-btn-icon { width: 18px; height: 18px; border-radius: 50%; display: block; }
.topup__qr-expiry { color: var(--ink-soft); font-size: .9rem; }
.topup__status { margin-top: 18px; font-weight: 700; }
/* Sits above .topup__qr-scroll, alongside the close button — not part of the scrollable area. */
.topup__status--title { margin: 0 36px 16px; font-size: 1.05rem; }
.topup__status--pending { color: var(--ink-soft); }
.topup__status--approved { color: #1f9254; }
.topup__status--failed, .topup__status--expired { color: #c0392b; }

.spinner {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: spin .7s linear infinite; vertical-align: -0.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------- Responsive -------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split__logo { margin-left: auto; margin-right: auto; }
  .split__media { order: -1; }
  .split--reverse .split__media { order: -1; }
  .split__list { justify-self: center; text-align: left; }
  .split__cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .grid--pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { max-width: none; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .hero__logo { max-width: 260px; }
  .contact__grid { grid-template-columns: 1fr; }
  .social { justify-content: center; }
  .contact__list li { justify-content: center; }
  /* Stacked card is too narrow to share the phone row — wrap the icons onto their
     own centred line so they match the other centred rows. */
  .contact__list li { flex-wrap: wrap; }
  .contact__list li .social { margin-left: 0; width: 100%; justify-content: center; padding-top: 4px; }
  .topup__packages { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .grid--features { grid-template-columns: 1fr; }
  .grid--services { grid-template-columns: 1fr; }
}
