/* Customer pages: the storefront (/, /s/{service}, /guide) and the key status page (/k/{token}) — linked after
   app.css by those two templates only (design system v2, Step 6). Tokens only; the pages follow the device's
   light / dark setting (<html data-theme="system">). No console.css here: what the console styles (tab bar,
   skeleton frame, breadcrumbs) is restated for these pages below. */

/* ════ Storefront ════ */
/* The sticky header's height (.st-top-row: 68 px at every width, + its 1 px border) + 16: a #target lands below it. */
html { scroll-padding-top: calc(var(--control-xl) + var(--space-6) + 1px + var(--space-4)); }
.st-body { min-height: 100vh; min-height: 100dvh; background: var(--surface); color: var(--ink); font-size: var(--text-md); }
/* A short page (login, an empty wallet …) never shows the footer in the middle of the screen (owner 2026-11-29): on a
   computer the footer sits at the bottom of the screen; below 1024 px (the tab bar's widths, where the footer is tall)
   the main part fills the first screen under the header, so the footer is only seen by scrolling. --st-head: the sticky
   header (.st-top-row + 1 px border). */
.st-page { --st-head: calc(var(--control-xl) + var(--space-6) + 1px); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.st-page > * { min-width: 0; }
.st-page > .st-main { flex: 1 0 auto; }
@media (max-width: 1023px) {
  .st-page > .st-main { min-height: calc(100vh - var(--st-head)); min-height: calc(100dvh - var(--st-head)); }
}
.st-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 640px) { .st-wrap { padding: 0 var(--space-6); } }
.st-main:focus, .st-results:focus, .st-group:focus { outline: none; }

/* ── Look (owner 2026-11-29, a marketplace reference): a white page, light gray rounded surfaces instead of borders, image-first
   service tiles, one bold price, a full-width Buy button. The shop keeps its own colour (--brand) and logos. ── */

/* ── Header: brand · Catalog · icon buttons with a label (Telegram, Favorites, Wallet, account) ── */
.st-top { position: sticky; top: 0; z-index: var(--z-header); background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.st-top-row { display: flex; align-items: center; gap: var(--space-3); min-height: calc(var(--control-xl) + var(--space-6)); }
.st-top-row > * { min-width: 0; }
.st-brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; min-height: var(--tap); color: var(--ink); font-weight: var(--weight-bold); }
.st-brand.st-brand-foot { display: inline-flex; max-width: 100%; }
.st-brand:hover { color: var(--ink); text-decoration: none; }
.st-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-lg); line-height: var(--leading-snug); }
.st-mark { display: inline-grid; place-items: center; flex: none; width: var(--control-md); height: var(--control-md); border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); font-size: var(--text-md); font-weight: var(--weight-bold); line-height: 1; }
img.st-mark, img.ks-logo, img.ks-bar-mark { object-fit: contain; padding: var(--space-1); background: var(--logo-tile); border: 1px solid var(--line); }
.st-actions { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.st-hbtn { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: var(--space-12); min-height: var(--control-xl); padding: 0 var(--space-1);
  border-radius: var(--radius); color: var(--ink); font-size: var(--text-xs); font-weight: var(--weight-normal); line-height: var(--leading-snug);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.st-hbtn .icon { width: var(--icon-lg); height: var(--icon-lg); }
.st-hbtn > span { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.st-hbtn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.st-hbtn[aria-current], .st-hbtn[aria-current] > span { color: var(--link); }
/* Phones: the tab bar has Wallet and Support has Telegram; the header keeps Catalog, Favorites and the account. */
@media (max-width: 1023px) { .st-hbtn-wide { display: none; } }

/* ── Catalog: every category and its services, from the header ── */
.st-catalog { position: relative; flex: none; }
.st-catalog > summary { list-style: none; }
.st-catalog > summary::-webkit-details-marker { display: none; }
.st-catalog-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-xl); padding: 0 var(--space-4);
  border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink); font-size: var(--text-base); font-weight: var(--weight-semibold);
  cursor: pointer; user-select: none; transition: background-color var(--dur-2) var(--ease); }
.st-catalog-btn:hover, .st-catalog[open] > .st-catalog-btn { background: var(--surface-3); }
.st-catalog-btn .icon { width: var(--icon-md); height: var(--icon-md); }
.st-catalog-panel { position: absolute; top: calc(100% + var(--space-2)); left: 0; z-index: var(--z-dropdown); width: min(720px, calc(100vw - var(--space-8)));
  max-height: 70vh; max-height: 70dvh; overflow: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg); }
.st-catalog-all { display: flex; align-items: center; justify-content: space-between; min-height: var(--control-lg); padding: 0 var(--space-3);
  border-radius: var(--radius); background: var(--surface-2); color: var(--ink); font-weight: var(--weight-semibold); }
.st-catalog-all:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.st-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-4) var(--space-6); margin-top: var(--space-4); }
.st-catalog-grid h2 { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.st-catalog-grid h2 a { color: var(--ink); }
.st-catalog-grid ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.st-catalog-panel a, .st-sort-menu a, .st-suggest a, .st-more { text-decoration: none; }
.st-catalog-grid li a { display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-lg); padding: 0 var(--space-2);
  border-radius: var(--radius); color: var(--ink-2); }
.st-catalog-grid li a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.st-catalog-logo { display: inline-grid; place-items: center; flex: none; width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand); font-size: var(--text-xs); font-weight: var(--weight-bold); object-fit: contain; }
img.st-catalog-logo { background: none; }
@media (max-width: 1023px) {
  .st-catalog { position: static; }
  .st-catalog-btn { min-height: var(--control-lg); padding: 0 var(--space-3); }
  .st-catalog-panel { position: fixed; top: calc(var(--st-head) + env(safe-area-inset-top, 0px)); left: var(--space-3); right: var(--space-3); width: auto; }
}
@media (max-width: 479px) { .st-catalog-btn > span { display: none; } }

/* ── Hero: the search as a large gray pill (the h1 is for screen readers and search engines), then the categories ── */
.st-hero { padding-top: var(--space-2); }
.st-hero-search { display: flex; align-items: center; gap: var(--space-3); min-height: calc(var(--control-xl) + var(--space-2)); margin: 0; padding: 0 var(--space-4);
  border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); transition: box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.st-hero-search:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--focus); }
.st-hero-search .icon { flex: none; width: var(--icon-md); height: var(--icon-md); }
.st-hero-search input { flex: 1 1 auto; min-width: 0; height: calc(var(--control-xl) + var(--space-2)); padding: 0; border: 0; background: transparent; box-shadow: none;
  color: var(--ink); font-size: var(--text-md); }
.st-hero-search input:focus { outline: none; box-shadow: none; }
/* the search's drop-down: the digital products, best-selling first (store.js) */
.st-hero-search { position: relative; }
.st-suggest { position: absolute; top: calc(100% + var(--space-2)); left: 0; right: 0; z-index: var(--z-dropdown); display: grid; max-height: 60vh; max-height: 60dvh;
  overflow: auto; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.st-suggest[hidden] { display: none; }
.st-sug-head { margin: 0; padding: var(--space-2) var(--space-3) var(--space-1); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--muted); }
.st-sug-none { margin: 0; padding: var(--space-3); color: var(--ink-2); }
.st-sug { display: flex; align-items: center; gap: var(--space-3); min-height: calc(var(--space-12) + var(--space-2)); padding: var(--space-2) var(--space-3); border-radius: var(--radius); color: var(--ink); }
.st-sug:hover, .st-sug[aria-selected="true"] { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.st-sug-logo { display: grid; place-items: center; flex: none; width: var(--control-lg); height: var(--control-lg); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand); font-weight: var(--weight-bold); object-fit: contain; }
img.st-sug-logo { background: none; }
.st-sug-text { display: grid; min-width: 0; flex: 1 1 auto; }
.st-sug-text b, .st-sug-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sug-text small { color: var(--muted); }
.st-sug-price { flex: none; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.st-cats { display: flex; gap: var(--space-2); margin-top: var(--space-4); overflow-x: auto; scrollbar-width: none; }
.st-cats::-webkit-scrollbar { display: none; }
.st-cat { display: inline-flex; align-items: center; flex: none; min-height: var(--control-lg); padding: 0 var(--space-4); border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--ink); font-size: var(--text-base); font-weight: var(--weight-semibold); white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.st-cat:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.st-cat[aria-current] { background: var(--ink); color: var(--surface); }
@media (max-width: 640px) { .st-cats { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); } }
.st-h1 { padding-block: .1em; font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); overflow-wrap: anywhere; }
@media (max-width: 640px) { .st-h1 { font-size: var(--text-2xl); } }

/* ── Catalogue: one tile per service — 2 on a phone, up to 6 on a computer ── */
.st-body-pad { padding-top: var(--space-6); padding-bottom: var(--space-12); }
@media (max-width: 640px) { .st-body-pad { padding-top: var(--space-5); padding-bottom: var(--space-10); } }
.st-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-5); }
.st-results-tools { display: flex; align-items: center; gap: var(--space-2); }
.st-sort { position: relative; }
.st-sort > summary { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-md); padding: 0 var(--space-3);
  border-radius: var(--radius); color: var(--ink); font-size: var(--text-base); font-weight: var(--weight-semibold); list-style: none; cursor: pointer; }
.st-sort > summary::-webkit-details-marker { display: none; }
.st-sort > summary:hover, .st-sort[open] > summary { background: var(--surface-2); }
.st-sort > summary .icon { width: var(--icon-sm); height: var(--icon-sm); }
.st-sort-menu { position: absolute; top: calc(100% + var(--space-1)); right: 0; z-index: var(--z-dropdown); display: grid; min-width: 12rem; padding: var(--space-1);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.st-sort-menu a { display: flex; align-items: center; min-height: var(--control-md); padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink); }
.st-sort-menu a:hover { background: var(--surface-2); text-decoration: none; }
.st-sort-menu a[aria-current] { color: var(--link); font-weight: var(--weight-semibold); }
.st-results-head h2 { display: inline-flex; align-items: center; gap: var(--space-2); padding-block: .1em; font-size: var(--text-2xl); font-weight: var(--weight-bold);
  line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }
@media (max-width: 640px) { .st-results-head h2 { font-size: var(--text-xl); } }
.st-query { margin: calc(-1 * var(--space-3)) 0 var(--space-4); font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }
.st-panel { border-radius: var(--radius-lg); background: var(--surface-2); }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
@media (min-width: 640px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-5); } }
@media (min-width: 900px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .st-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* The whole tile is the link (the name's ::after); "ဝယ်မည်" is only its look. */
.st-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.st-card-media { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: var(--space-3); overflow: hidden; border-radius: var(--radius-lg);
  background: var(--brand-50); transition: transform var(--dur-3) var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .st-card:hover .st-card-media { transform: translateY(-3px); } }
.st-card:has(.st-card-link:focus-visible) .st-card-media { box-shadow: 0 0 0 2px var(--focus); }
.st-card-logo { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand);
  font-size: var(--text-3xl); font-weight: var(--weight-bold); line-height: 1; box-shadow: var(--shadow-md); }
/* An uploaded logo fills the tile (owner 2026-11-30: it was too small): no white box, no shadow; the letter stays a square. */
img.st-card-logo { width: 80%; height: auto; object-fit: contain; padding: 0; border-radius: var(--radius-lg); background: none; box-shadow: var(--shadow-md); }
.st-card-cat { margin: 0; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--ink-2); }
.st-card-price { margin: var(--space-1) 0 0; line-height: var(--leading-tight); }
.st-from { font-size: var(--text-sm); color: var(--muted); }
.st-price { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-card h3 { margin: var(--space-1) 0 var(--space-3); font-size: var(--text-md); font-weight: var(--weight-normal); line-height: var(--leading-snug);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card-link { color: var(--ink); }
.st-card-link:hover { color: var(--ink); text-decoration: none; }
.st-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.st-card-link:focus-visible { outline: none; }
.st-card-buy { margin-top: auto; border-radius: var(--radius); }
.st-card-sales { margin: calc(-1 * var(--space-2)) 0 var(--space-3); font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
/* ♥ over the tile's corner — last in the tile, so it sits above the card's link layer */
.st-fav-form { position: absolute; top: var(--space-2); right: var(--space-2); margin: 0; }
.st-fav { position: absolute; top: var(--space-2); right: var(--space-2); display: grid; place-items: center; width: var(--control-md); height: var(--control-md);
  padding: 0; border: 0; border-radius: var(--radius-full); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-2);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease); }
.st-fav-form .st-fav { position: static; }
.st-fav .icon { width: var(--icon-md); height: var(--icon-md); }
.st-fav:hover { color: var(--danger); text-decoration: none; }
.st-fav[aria-pressed="true"] { color: var(--danger); }
.st-fav[aria-pressed="true"] svg { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .st-fav:active { transform: scale(.9); } }
/* "Show more" (infinite scroll pulls it in as it comes near) */
.st-more { display: flex; align-items: center; justify-content: center; min-height: calc(var(--control-xl) + var(--space-2)); margin-top: var(--space-8);
  border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink); font-weight: var(--weight-semibold); }
.st-more:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.st-more[aria-busy="true"] { color: var(--muted); }
/* "Recommended for you": one row of tiles near the bottom */
.st-reco { margin-top: var(--space-12); }
.st-reco h2 { margin: 0 0 var(--space-5); padding-block: .1em; font-size: var(--text-2xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); }
@media (max-width: 640px) { .st-reco h2 { font-size: var(--text-xl); } }
.st-reco-wrap { padding-bottom: var(--space-12); }
.st-reco-wrap .st-reco { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .st-card:active .st-card-media { transform: scale(.98); } }

/* ── Service page: a large tile + the name, then each package as a gray panel of white plan rows ── */
.st-svc { max-width: calc(var(--content-narrow) + var(--space-12)); }
.st-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 var(--space-4); padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted); }
.st-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.st-crumbs li + li::before { content: "/"; margin-inline: var(--space-2); color: var(--subtle); }
.st-crumbs li[aria-current] { color: var(--ink-2); font-weight: var(--weight-semibold); }
.st-crumbs a { color: var(--muted); font-weight: var(--weight-normal); text-decoration: none; }
.st-crumbs a:hover { color: var(--ink); }
@media (max-width: 640px) { .st-crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); margin-block: calc(-1 * var(--space-2)); } }
.st-svc-head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-6); }
.st-svc-head > div { min-width: 0; }
.st-svc-media { display: grid; place-items: center; flex: none; width: 112px; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--brand-50); }
.st-svc-media .st-card-logo { width: 56%; }
.st-svc-media img.st-card-logo { width: 84%; }
.st-svc-head h1 { padding-block: .1em; font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); overflow-wrap: anywhere; }
.st-svc-regions { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--ink-2); }
/* Outline VPN's device cards (owner 2026-12-01): 2 a row on a phone, 4 on a wide screen; a tap opens the price list.
   Each device and each data size has a colour of its own ("badge color လေးတွေထည့်"): tone-* = status tokens as decoration. */
.tone-info { --tone: var(--info); --tone-50: var(--info-50); }
.tone-ok { --tone: var(--ok); --tone-50: var(--ok-50); }
.tone-warn { --tone: var(--warn); --tone-50: var(--warn-50); }
.tone-brand { --tone: var(--link); --tone-50: var(--brand-50); }
.badge.st-tone { color: var(--tone, var(--neutral)); background: var(--tone-50, var(--neutral-50)); }
.st-devices-wrap { margin-bottom: var(--space-6); }
.st-devices-wrap:focus, .st-prices:focus { outline: none; }
.st-devices-h { margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.st-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: var(--space-3); margin: 0;
  padding: 0; list-style: none; }
.st-device { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); height: 100%;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-xs); }
.st-device:hover { border-color: var(--tone, var(--brand)); color: var(--ink); text-decoration: none; }
.st-device-ico { display: inline-grid; place-items: center; flex: none; width: var(--control-lg); height: var(--control-lg);
  border-radius: var(--radius); color: var(--tone, var(--brand)); background: var(--tone-50, var(--brand-50)); }
.st-device-ico .icon { width: var(--icon-md); height: var(--icon-md); }
.st-device-ico.sm { width: var(--control-sm); height: var(--control-sm); }
.st-device-ico.sm .icon { width: var(--icon-sm); height: var(--icon-sm); }
.st-device-name { margin-top: var(--space-1); font-size: var(--text-lg); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.st-device-from { margin-top: auto; padding-top: var(--space-2); }
.st-device-from small { font-size: var(--text-sm); color: var(--muted); }
.st-device-from b { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--ink); }
.st-device > .icon { position: absolute; top: var(--space-4); right: var(--space-3); width: var(--icon-md); height: var(--icon-md); color: var(--muted); }
/* Under a device's price list: every device, the one shown marked — "Device Swap" from one place (owner 2026-12-01) */
.st-dsw-wrap { margin-top: var(--space-2); }
.st-dsw-h { margin: 0 0 var(--space-3); font-size: var(--text-md); font-weight: var(--weight-bold); }
.st-dsw { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: var(--space-2); margin: 0;
  padding: 0; list-style: none; }
.st-dsw-item { display: flex; align-items: center; gap: var(--space-2); height: 100%; min-height: var(--control-xl);
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--ink); }
.st-dsw-item:hover { border-color: var(--tone, var(--brand)); color: var(--ink); text-decoration: none; }
.st-dsw-item[aria-current="page"] { border-color: var(--tone, var(--brand)); background: var(--tone-50, var(--brand-50));
  box-shadow: inset 0 0 0 1px var(--tone, var(--brand)); }
.st-dsw-txt { display: grid; min-width: 0; line-height: var(--leading-snug); }
.st-dsw-txt b { font-size: var(--text-sm); overflow-wrap: anywhere; }
.st-dsw-txt small { font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-group { margin-bottom: var(--space-4); padding: var(--space-2); border-radius: var(--radius-lg); background: var(--surface-2); }
.st-group:target { box-shadow: var(--ring-soft); }
.st-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-3) var(--space-2); }
.st-group-head h2 { padding-block: .1em; font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.st-group-head .badge { margin-left: auto; }
.st-plans { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; list-style: none; }
.st-plan, .st-plans > li + li { padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius); background: var(--surface); }
.st-plan .rs-row-main > .badge { justify-self: start; }
.st-plan-price { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-plan .btn { flex: none; border-radius: var(--radius); }
.st-svc > .alert { margin-top: var(--space-6); }
@media (max-width: 640px) {
  .st-svc-head { gap: var(--space-4); }
  .st-svc-media { width: 80px; }
  .st-svc-head h1 { font-size: var(--text-2xl); }
  .st-plan { padding-inline: var(--space-3); }
}

/* ── App guide (/guide): the apps, four numbered steps ── */
.st-h1 { margin: 0 0 var(--space-6); }
.st-h2 { margin: var(--space-10) 0 var(--space-4); padding-block: .1em; font-size: var(--text-xl); line-height: var(--leading-snug); }
.st-app { display: grid; gap: var(--space-2); align-content: start; justify-items: start; padding: var(--space-6);
  border-radius: var(--radius-lg); background: var(--surface-2); }
.st-app p { margin: 0; color: var(--ink-2); line-height: var(--leading); }
.st-apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 768px) { .st-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-app { padding: var(--space-5); }
.st-app h3, .st-app-h { margin: 0; font-size: var(--text-md); line-height: var(--leading-snug); }
.st-app .btn { margin-top: var(--space-2); }
.st-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: 0; padding: 0; list-style: none; counter-reset: st-step; }
@media (min-width: 768px) { .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-steps li { counter-increment: st-step; display: flex; align-items: center; gap: var(--space-3); min-height: var(--space-12); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius); background: var(--surface-2); font-weight: var(--weight-normal); overflow-wrap: anywhere; }
.st-steps li::before { content: counter(st-step); display: grid; place-items: center; flex: none; width: var(--space-8); height: var(--space-8);
  border-radius: var(--radius-full); background: var(--surface); color: var(--link); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums; }
.st-guide-note { max-width: 72ch; margin: var(--space-4) 0 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted); }
/* App လမ်းညွှန် (owner 2026-11-30): a button per service with a guide; a guide's own page has the service's logo by its h1 */
.st-guide-lede { margin: calc(-1 * var(--space-3)) 0 var(--space-5); color: var(--ink-2); }
.st-guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.st-guide-item { display: flex; align-items: center; gap: var(--space-3); min-height: var(--space-16); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.st-guide-item:hover { border-color: var(--brand); color: var(--ink); text-decoration: none; }
.st-guide-item > .icon { flex: none; width: var(--icon-md); height: var(--icon-md); margin-left: auto; color: var(--muted); }
.st-guide-logo { display: grid; place-items: center; flex: none; width: var(--space-12); height: var(--space-12); border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); font-weight: var(--weight-bold); object-fit: cover; }
.st-guide-name { display: grid; gap: 2px; min-width: 0; }
.st-guide-name b { overflow-wrap: anywhere; }
.st-guide-name small { font-size: var(--text-sm); color: var(--muted); }
.st-guide-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.st-guide-head .st-h1 { margin: 0; }
.st-guide-more { margin-top: var(--space-8); }

/* ── Support: a button at the bottom right of every page; the contacts open above it ── */
.st-support { position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: var(--z-dropdown); }
@media (max-width: 1023px) { .st-support { right: var(--space-3); bottom: calc(var(--tabbar-h) + var(--space-3) + env(safe-area-inset-bottom)); } }
.st-support > summary { list-style: none; }
.st-support > summary::-webkit-details-marker { display: none; }
.st-support-btn { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: var(--space-16); min-height: var(--space-16);
  padding: var(--space-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); cursor: pointer; user-select: none; }
.st-support-btn .icon { width: var(--icon-lg); height: var(--icon-lg); }
.st-support[open] > .st-support-btn { background: var(--surface-2); }
.st-support-panel { position: absolute; right: 0; bottom: calc(100% + var(--space-2)); display: grid; gap: var(--space-2); width: min(18rem, calc(100vw - var(--space-6)));
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.st-support-panel p { margin: 0 0 var(--space-1); font-weight: var(--weight-semibold); color: var(--ink); }
.st-support-panel .btn { justify-content: flex-start; }
/* the tab bar hides while typing; so does the support button */
.st-body:has(input:not([type=checkbox], [type=radio], [type=hidden]):focus) .st-support { display: none; }

/* ── Privacy policy ── */
.st-legal { max-width: calc(72ch + var(--space-12)); }
.st-legal h2 { margin: var(--space-8) 0 var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.st-legal p, .st-legal li { color: var(--ink-2); line-height: var(--leading-relaxed); }
.st-legal ul { padding-left: var(--space-5); }
.st-legal li + li { margin-top: var(--space-1); }
.st-legal-date { margin-top: calc(-1 * var(--space-4)); font-size: var(--text-sm); color: var(--muted); }
.st-legal-contacts { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ── Footer: light gray, dark text ── */
.st-foot { margin-top: var(--space-6); background: var(--surface-2); color: var(--ink); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .st-foot { padding-bottom: 0; } }
/* Phone / tablet: the shop's name on its own row, the link groups side by side (2 on a phone, 3 from 480 px) — compact. */
.st-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-5) var(--space-6);
  padding-top: var(--space-8); padding-bottom: var(--space-6); }
.st-foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .st-foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .st-foot-grid > :first-child { grid-column: auto; }
}
.st-foot-grid > * { min-width: 0; }
.st-foot h2 { margin: 0 0 var(--space-1); font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--ink); }
.st-foot-grid a:not(.st-brand) { display: flex; align-items: center; min-height: var(--tap); font-size: var(--text-sm); color: var(--ink); overflow-wrap: anywhere; }
.st-foot-grid a:not(.st-brand):hover { color: var(--link); text-decoration: none; }
.st-foot-grid nav span { display: block; font-size: var(--text-sm); color: var(--ink-2); }
.st-foot p { max-width: 320px; margin: var(--space-3) 0 0; font-size: var(--text-sm); line-height: var(--leading); color: var(--ink-2); }
.st-brand.st-brand-foot { color: var(--ink); }
.st-brand.st-brand-foot .st-brand-name { color: var(--ink); font-size: var(--text-md); }
.st-foot-base { border-top: 1px solid var(--line); }
.st-foot-base .st-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.st-foot-base span, .st-foot-base a { font-size: var(--text-xs); color: var(--ink-2); }
.st-foot-base a { text-decoration: underline; text-underline-offset: 2px; }
.st-foot-base a:hover { color: var(--ink); }

/* ── Phone tab bar (below 1024: the shared .tabbar look) — hidden while typing ── */
.st-tabbar { display: none; }
@media (max-width: 1023px) {
  .st-tabbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-tabbar); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); }
  .st-tabbar > a { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: var(--tabbar-h); padding: var(--space-1);
    color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-normal); line-height: var(--leading-snug); transition: color var(--dur-2) var(--ease); }
  .st-tabbar > a:hover { color: var(--ink); text-decoration: none; }
  .st-tabbar > a:focus-visible { outline-offset: -2px; }
  .st-tabbar > a[aria-current] { color: var(--link); font-weight: var(--weight-semibold); }
  .st-tabbar .nav-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .st-body:has(input:not([type=checkbox], [type=radio], [type=hidden]):focus) .st-tabbar { display: none; }
}

/* ── Loading: boost.js dims .st-main, then shows the page skeleton (loading.js) in it ── */
.st-main > [data-skeleton] { max-width: 1240px; margin: 0 auto; padding: var(--space-8) var(--space-6); }
.st-main [data-skeleton] .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: var(--space-4); margin: var(--space-4) 0 var(--space-6); }
.st-main [data-skeleton] .panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.st-main [data-skeleton] .panel-head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.st-main [data-skeleton] .panel-body { padding: var(--space-5); }
@media (max-width: 640px) { .st-main > [data-skeleton] { padding: var(--space-6) var(--space-4); } .st-main [data-skeleton] .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ════ Key status /k/{token}: one card, centred on larger screens ════ */
.ks-page { background: var(--canvas); color: var(--ink); font-size: var(--text-md); }
.ks-wrap { min-height: 100vh; min-height: 100dvh; }
.ks-shell { display: flex; flex-direction: column; width: 100%; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--canvas); }
@media (min-width: 480px) {
  .ks-wrap { display: grid; place-items: center; padding: var(--space-8) var(--space-4); }
  .ks-shell { min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
}
.ks-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--brand); color: var(--on-brand); }
.ks-bar-mark { display: grid; place-items: center; flex: none; width: var(--control-md); height: var(--control-md); border-radius: var(--radius-sm);
  background: var(--brand-hover); background: color-mix(in srgb, var(--on-brand) 20%, transparent); color: var(--on-brand); font-weight: var(--weight-bold); line-height: 1; }
.ks-bar-text { min-width: 0; }
.ks-bar-shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-md); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
.ks-bar-sub { font-size: var(--text-xs); line-height: var(--leading-snug); }
.ks-main { flex: 1 1 auto; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-4); }
.ks-main:focus { outline: none; }
.ks-main > .alert, .ks-body > .alert { margin: 0; }
.ks-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-1) 0; }
.ks-logo { display: grid; place-items: center; flex: none; width: var(--control-lg); height: var(--control-lg); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand); font-weight: var(--weight-bold); line-height: 1; }
.ks-title-text { flex: 1 1 160px; min-width: 0; }
.ks-title h1 { padding-block: .1em; font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: 0; overflow-wrap: anywhere; }
.ks-sub { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.ks-tile { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.ks-data-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); color: var(--muted);
  font-variant-numeric: tabular-nums; }
.ks-left { margin-top: var(--space-1); font-size: var(--text-3xl); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums; }
.ks-meter { display: block; width: 100%; height: 8px; margin-top: var(--space-3); border: 0; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
.ks-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: var(--radius-full); background: var(--surface-2); }
.ks-meter::-webkit-meter-optimum-value { border-radius: var(--radius-full); background: var(--ok-solid); }
.ks-meter::-webkit-meter-suboptimum-value { border-radius: var(--radius-full); background: var(--warn-solid); }
.ks-meter::-webkit-meter-even-less-good-value { border-radius: var(--radius-full); background: var(--danger-solid); }
.ks-meter::-moz-meter-bar { border-radius: var(--radius-full); background: var(--ok-solid); }
.ks-meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--warn-solid); }
.ks-meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--danger-solid); }
.ks-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.ks-small-tile { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3) var(--space-4); }
.ks-small-tile dt { font-size: var(--text-sm); color: var(--muted); }
.ks-small-tile dd { margin: 0; font-size: var(--text-md); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ks-reseller p { margin: 0 0 var(--space-3); }
.ks-contacts { display: grid; gap: var(--space-2); }
.alert .ks-contacts { margin-top: var(--space-3); }
.ks-contacts .btn { white-space: normal; overflow-wrap: anywhere; }
.ks-contact-text { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.alert .alert-actions .ks-renew { flex: 1 1 auto; }
.ks-updated { margin: 0; text-align: center; font-size: var(--text-sm); color: var(--muted); }
.ks-state { padding: var(--space-10) var(--space-4); }
.ks-state h1.empty-title { font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: 0; }
.ks-foot { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line);
  background: var(--surface); font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--muted); text-align: center; }
.ks-foot .icon { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2; }
/* The shop's own customer's key status in the customer website (custKeyStatusPage, owner 2026-11-30): the same tiles in
   the website's column, the shop's other services below. */
.ks-body { display: grid; gap: var(--space-3); align-content: start; }
.ks-note { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: 0; font-size: var(--text-xs);
  line-height: var(--leading-snug); color: var(--muted); text-align: center; }
.ks-note .icon { flex: none; width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2; }
.ks-main > .alert > div, .ks-body > .alert > div { flex: 1 1 auto; min-width: 0; }
.ks-main > .alert .alert-actions, .ks-body > .alert .alert-actions { margin-top: var(--space-3); }
@media (max-width: 400px) { .ks-small-tile { padding-inline: var(--space-3); } .ks-small-tile dd { font-size: var(--text-base); } }
.ks-small-tile dd > span { white-space: nowrap; } /* "2026-11-30" and "16:27" never split */

/* ── The customer's own pages (customerweb.templ, owner 2026-11-29): login, checkout, orders, wallet, ကျွန်ုပ်၏ ── */
.cw { display: grid; gap: var(--space-4); max-width: 760px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-12); }
.cw-narrow { max-width: 520px; }
.cw-live { display: grid; gap: var(--space-4); } /* a live region holding several cards (the order and its key) */
.cw-title { margin: 0; font-size: var(--text-2xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--ink); }
.cw-lead { margin: calc(-1 * var(--space-2)) 0 0; color: var(--ink-2); }
.cw-h2 { margin: var(--space-4) 0 0; font-size: var(--text-lg); color: var(--ink); }
.cw-h3 { margin: 0 0 var(--space-2); font-size: var(--text-md); color: var(--ink); }
.cw-card { display: grid; gap: var(--space-3); padding: var(--space-5); }
.cw-card > .field { margin: 0; }
.cw-card > .alert, .cw-card .alert { margin: 0; }
.cw-center { text-align: center; justify-content: center; }
.cw-alt { margin: 0; text-align: center; color: var(--ink-2); }
.cw-or { display: flex; align-items: center; gap: var(--space-3); margin: 0; color: var(--muted); font-size: var(--text-sm); }
.cw-or::before, .cw-or::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--line); }
.cw-tg { display: grid; gap: var(--space-2); margin: 0; }
.cw-tg .hint { margin: 0; }
.cw-tg-btn { background: var(--info-solid); border-color: var(--info-solid); color: var(--on-solid); }
@media (hover: hover) { .cw-tg-btn:hover { filter: brightness(0.95); } }
.cw-tgwait { text-align: center; }
.cw-tgwait p { margin: 0; }
.cw-ascii-warn { margin: var(--space-1) 0 0; color: var(--warn); font-weight: var(--weight-semibold); }
/* Sign-up password rules: grey until met, then green with a tick (custweb.js). */
.cw-pw-rules { display: grid; gap: var(--space-1); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted); }
.cw-pw-rules li { display: flex; align-items: center; gap: var(--space-2); }
.cw-pw-rules .icon { flex: none; width: var(--icon-sm); height: var(--icon-sm); opacity: 0.3; }
.cw-pw-rules li[data-ok] { color: var(--ok); }
.cw-pw-rules li[data-ok] .icon { opacity: 1; }
.cw-code { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: 0.3em; font-variant-numeric: tabular-nums; color: var(--ink); }
/* Telegram login waiting page: the shop stays open, Telegram opens over it (tg://) or on the phone (QR). */
.cw-tgflow { display: grid; gap: var(--space-4); }
.cw-tg-ended { display: grid; gap: var(--space-3); }
.cw-tg-ways { display: flex; flex-direction: column; gap: var(--space-3); }
.cw-tg-way { display: grid; gap: var(--space-2); justify-items: center; }
.cw-tg-way > .btn { justify-self: stretch; }
.cw-tg-noapp a { font-weight: var(--weight-semibold); }
.cw-qr { display: block; width: 200px; height: 200px; max-width: 100%; padding: var(--space-2); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--qr-tile); image-rendering: pixelated; }
/* A computer: the QR first (Telegram is usually on the phone); a phone: its own Telegram app first. */
@media (pointer: fine) and (min-width: 641px) { .cw-tg-qr { order: -2; } .cw-tg-or { order: -1; } }
@media (max-width: 640px) { .cw-qr { width: 168px; height: 168px; } }
.cw-tg-status { color: var(--ink-2); font-size: var(--text-sm); text-align: center; }
.cw-tg-dot { display: inline-block; vertical-align: middle; width: var(--space-2); height: var(--space-2); margin-inline-end: var(--space-2);
  border-radius: var(--radius-full); background: var(--info-solid);
  animation: cw-pulse var(--dur-shimmer) ease-in-out infinite; }
@keyframes cw-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cw-tg-dot { animation: none; } }
.cw-me-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.cw-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--brand-50);
  color: var(--brand); font-weight: var(--weight-bold); font-size: var(--text-lg); }
.cw-me-who { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.cw-me-who b, .cw-me-who small { overflow-wrap: anywhere; }
.cw-me-who small { color: var(--muted); }
.cw-bal-line { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.cw-bal-line b { margin-left: auto; }
@media (hover: hover) { .cw-bal-line:hover { border-color: var(--line-strong); } }
.cw-key-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.cw-key-head > div { display: grid; gap: 2px; min-width: 0; }
.cw-key-head small { color: var(--muted); }
.cw-key-exp { margin: 0; color: var(--ink-2); }
.cw-key .linkbox { width: 100%; }
.cw-key-actions { gap: var(--space-2); }
.cw-orders { overflow: hidden; }
.cw-orders .rs-row { text-decoration: none; }
.cw-order-end { display: grid; justify-items: end; gap: var(--space-1); }
.cw-plus { color: var(--ok); }
.cw-sum-plan { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cw-sum-plan > div { display: grid; gap: 2px; min-width: 0; }
.cw-sum-plan small { color: var(--muted); }
.cw-price { font-size: var(--text-xl); color: var(--ink); white-space: nowrap; }
.cw-sum-key { margin: 0; color: var(--ink-2); }
.cw-plan-pick { display: grid; gap: var(--space-2); }
.cw-plan-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.cw-plan-opt[aria-current] { border-color: var(--brand); background: var(--brand-50); }
.cw-pay, .cw-methods { margin: 0; border: 0; min-width: 0; }
.cw-pay { border: 1px solid var(--line); }
.cw-pay legend, .cw-methods legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2); font-weight: var(--weight-semibold); color: var(--ink); }
.cw-pay legend + *, .cw-methods legend + * { clear: both; }
.cw-methods { display: grid; gap: var(--space-2); padding: 0; }
.cw-pick { display: flex; align-items: flex-start; gap: var(--space-3); }
.cw-pick input { margin-top: var(--space-1); }
.cw-pick-text { display: grid; gap: 2px; min-width: 0; }
.cw-pick-text > b { display: inline-flex; align-items: center; gap: var(--space-2); }
.cw-pick-text > b .icon { flex: none; width: var(--icon-md); height: var(--icon-md); }
.cw-pick-text small { color: var(--muted); }
/* an option that is off is dimmed — its own action (the wallet's "Wallet ဖြည့်မည်") is not (owner 2026-11-30) */
.cw-pick:has(input:disabled) { cursor: not-allowed; }
.cw-pick:has(input:disabled) > input, .cw-pick:has(input:disabled) .cw-pick-text > :not(a) { opacity: 0.6; }
.cw-topup-btn { justify-self: start; margin-top: var(--space-2); cursor: pointer; }
/* the transfer accounts: only the chosen one shows its number (copy) and name */
.cw-method-detail { display: none; }
.cw-method:has(input:checked) .cw-method-detail { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.cw-method-detail .cw-acct { flex-wrap: wrap; font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.cw-acct { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-md); color: var(--ink); }
/* Pay from the wallet: the transfer box is not needed. */
.cw-checkout { display: grid; gap: var(--space-4); }
.cw-checkout:has(input[name="pay"][value="wallet"]:checked) .cw-direct { display: none; }
.cw-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.cw-facts dt { color: var(--muted); }
.cw-facts dd { margin: 0; overflow-wrap: anywhere; }
.cw-bal { text-align: center; }
.cw-bal small { color: var(--muted); }
.cw-bal p { margin: 0; }
.cw-bal-amount { font-size: var(--text-3xl); line-height: var(--leading-tight); color: var(--ink); }
.cw-amounts { gap: var(--space-2); margin-top: var(--space-2); }
.cw-logout { margin: var(--space-2) 0 0; }
.cw-alt a { display: inline-flex; align-items: center; gap: var(--space-2); }
.cw-alt a .icon { flex: none; width: var(--icon-md); height: var(--icon-md); }
/* ကျွန်ုပ်၏: what was bought, one group per digital service (owner 2026-11-30) */
.cw-svc { display: grid; gap: var(--space-3); }
.cw-svc-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.cw-svc-head h3 { margin: 0; min-width: 0; font-size: var(--text-lg); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
.cw-svc-more { margin-left: auto; flex: none; }
.cw-svc-logo { display: inline-grid; place-items: center; flex: none; width: var(--control-lg); height: var(--control-lg); border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); font-weight: var(--weight-bold); object-fit: contain; }
img.cw-svc-logo { background: none; }
.cw-svc-logo-sm { width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-sm); font-size: var(--text-xs); }
.cw-order-line { gap: var(--space-3); }
.cw-svc + .cw-svc { margin-top: var(--space-3); }
/* The customer's pages in the storefront's look (owner 2026-11-29): gray panels without borders, white boxes inside, rounder buttons. */
.st-body .btn { border-radius: var(--radius); }
.cw-bal-line, .cw-plan-opt { border-color: transparent; background: var(--surface); }
.cw-plan-opt[aria-current] { border-color: var(--brand); background: var(--surface); }
.cw-pay { border: 0; }
.cw-title { font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); }

/* ── Touch sizes and the Support button's corner (owner 2026-11-30: "responsive ui ကိုသေချာလုပ်ပါ") ──
   The floating Support button sits over the page's bottom-right corner: the footer's last row (© · Privacy Policy) keeps
   clear of it at every width. Below 1024 px the website is the phone / tablet layout (the tab bar), so every control is
   a finger's size there — app.css does it for buttons below 640 px only: 44 px buttons, 40 px small buttons and icon
   controls (♥ with a 44 px touch area), the password eye the field's full height, standalone text links one tap tall. */
.st-foot-base .st-wrap { align-items: center; padding-right: calc(var(--space-16) + var(--space-8)); }
@media (max-width: 1023px) {
  .st-page .btn { min-height: var(--control-xl); }
  .st-page .btn.sm { min-height: var(--control-lg); }
  .st-sort > summary, .st-sort-menu a { min-height: var(--control-xl); }
  .st-fav { width: var(--control-lg); height: var(--control-lg); }
  .st-fav::after { content: ""; position: absolute; inset: calc((var(--control-lg) - var(--control-xl)) / 2); border-radius: var(--radius-full); }
  .st-page .pw-field > input { padding-right: calc(var(--control-xl) + var(--space-1)); }
  .st-page .pw-eye { right: 0; width: var(--control-xl); height: var(--control-xl); }
  .cw-alt a, .cw-pick-text a:not(.btn), .st-crumbs a, .st-foot-base a { display: inline-flex; align-items: center; min-height: var(--control-xl); }
  .cw-pick-text a:not(.btn) { justify-self: start; }
}
