/* Dbast.shop — design system. Solid colours only: no gradients anywhere. */

:root {
  --navy: #12315A;
  --navy-deep: #0D2545;
  /* Brand: matches the DBAST SHOP logo */
  --brand: #FFCC00;
  --brand-hover: #EDBD00;
  --brand-ink: #111111;
  --brand-tint: #FFF6D1;
  --blue: #2457C5;
  --blue-hover: #1C47A3;
  --blue-tint: #EAF0FB;
  --green: #159447;
  --green-tint: #E8F5EE;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #202938;
  --muted: #697586;
  --border: #E2E7EF;
  --border-strong: #CBD3DF;
  --success: #15803D;
  --success-tint: #E9F6EE;
  --error: #DC2626;
  --error-tint: #FDECEC;
  --warning: #D97706;
  --warning-tint: #FDF3E4;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(18, 49, 90, 0.06);
  --shadow-2: 0 1px 2px rgba(18, 49, 90, 0.06), 0 10px 28px rgba(18, 49, 90, 0.10);
  --container: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num, .ref, td.num { font-variant-numeric: tabular-nums; }
.ref { font-weight: 700; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.icon { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  font: inherit; font-weight: 700; font-size: .975rem; line-height: 1;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--border-strong); color: #fff; cursor: not-allowed; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-tint); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; }
.brand-mark span { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-tint); color: var(--success); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.balance-pill:hover { color: var(--success); background: #DCEFE4; }

.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border); cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .icon-close { display: none; }
.mobile-menu[open] .icon-open { display: none; }
.mobile-menu[open] .icon-close { display: block; }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2);
  padding: 8px var(--gutter) 20px;
}
.mobile-panel a.nav-link { display: block; padding: 13px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.mobile-panel .mobile-actions { display: grid; gap: 10px; margin-top: 16px; }

@media (max-width: 920px) {
  .main-nav, .header-actions { display: none; }
  .mobile-menu { display: block; }
}

/* ---------- Flash messages ---------- */
.flash-wrap { padding-top: 16px; }
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid; font-size: .95rem; margin-bottom: 12px;
}
.alert .icon { margin-top: 2px; }
.alert p { margin: 0; }
.alert-success { background: var(--success-tint); border-color: #B7E0C6; color: #0F5E2D; }
.alert-error { background: var(--error-tint); border-color: #F5BDBD; color: #9B1C1C; }
.alert-info { background: var(--blue-tint); border-color: #C4D4F2; color: var(--navy); }
.alert-warning { background: var(--warning-tint); border-color: #F2D3A6; color: #8A4B06; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 18px; }
.hero-lead { font-size: 1.15rem; color: #D5DEEC; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #C3CFE2; font-size: .925rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: #7FD3A2; }

/* Quick-buy panel: the one raised element on the page */
.quick-buy {
  background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 18px 40px rgba(5, 18, 38, .35);
}
.quick-buy h2 { font-size: 1.25rem; margin-bottom: 4px; }
.quick-buy .lede { color: var(--muted); font-size: .925rem; margin-bottom: 18px; }
.quick-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; margin: 4px 0 16px; border-top: 1px dashed var(--border-strong);
}
.quick-total strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

/* Network chooser (radio buttons styled as chips) */
.network-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.network-choice legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.network-option { position: relative; }
.network-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.network-option label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff;
}
.network-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.network-option input:checked + label { border-color: var(--brand-ink); background: var(--brand-tint); }
.network-option input:focus-visible + label { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.network-option input:disabled + label { opacity: .45; cursor: not-allowed; }
.network-option .soon { font-weight: 600; font-size: .72rem; color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .825rem; color: var(--muted); margin: 6px 0 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697586' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 20px;
}
.input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(255, 204, 0, .45); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .925rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-ink); flex: none; }
.input-group { position: relative; }
.input-group .prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none;
}
.input-group .input { padding-left: 58px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* Network strip under hero */
.network-strip { border-bottom: 1px solid var(--border); background: #fff; }
.network-strip .container { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.network-strip .title { font-weight: 700; color: var(--muted); font-size: .9rem; }
.network-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.network-tag .state { font-weight: 600; font-size: .8rem; color: var(--muted); }
.network-tag .state.on { color: var(--success); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.service-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 196px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--text);
}
.service-card .icon-box { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); color: var(--navy); }
.service-card.is-live .icon-box { background: var(--brand-tint); color: var(--brand-ink); }
.service-card h3 { margin: 4px 0 0; }
.service-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.service-card .status { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--muted); }
.service-card.is-live .status { color: var(--success); }
a.service-card.is-live:hover { border-color: var(--brand-ink); color: var(--text); }
@media (max-width: 1020px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-card { min-height: 0; } }

/* Packages */
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.package-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; text-decoration: none; color: var(--text);
}
.package-card:hover { border-color: var(--brand-ink); color: var(--text); }
.package-card .size { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.package-card .meta { color: var(--muted); font-size: .85rem; }
.package-card .price { margin-top: 8px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.net-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.net-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--border); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem;
}
.steps h3 { font-size: 1rem; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .925rem; }

/* Why choose us */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.reason .icon { width: 26px; height: 26px; color: var(--green); margin-bottom: 12px; }
.reason h3 { font-size: 1.02rem; margin-bottom: 6px; }
.reason p { color: var(--muted); font-size: .935rem; margin: 0; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 68ch; }

/* Support block */
.support-box { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.contact-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.contact-list .icon { color: var(--brand-ink); }
@media (max-width: 700px) { .support-box { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C6DA; padding: 48px 0 28px; font-size: .925rem; }
.site-footer a { color: #E3EAF5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand .brand-mark { background: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth pages ---------- */
.auth-wrap { background: var(--bg-alt); padding: 48px 0 72px; min-height: calc(100vh - 66px); }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 6px; }
.auth-card .lede { color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: .95rem; color: var(--muted); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: .85rem; font-weight: 600; }
@media (max-width: 520px) { .auth-card { padding: 24px 18px; border-radius: var(--r-md); } .auth-wrap { padding-top: 20px; } }

/* ---------- Content pages ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 40px 0 32px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.prose { max-width: 720px; padding: 40px 0 72px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }
.notice-box { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; text-align: center; max-width: 560px; margin: 48px auto 72px; }
.notice-box .icon { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--muted); }

/* ---------- Account area ---------- */
.account-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 66px); }
.account-side { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 24px 14px; }
.account-side nav { display: grid; gap: 2px; position: sticky; top: 90px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; width: 100%; text-align: left;
}
.side-link:hover { background: #fff; color: var(--text); }
.side-link[aria-current="page"] { background: #fff; color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand); }
.side-link .icon { color: var(--muted); }
.side-link[aria-current="page"] .icon { color: var(--brand-ink); }
.side-sep { height: 1px; background: var(--border); margin: 10px 12px; }
.account-main { padding: 28px 32px 64px; min-width: 0; }
.account-main > .container { padding: 0; max-width: 1000px; margin: 0; }
.account-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-title h1 { font-size: 1.6rem; margin: 0; }
.account-title p { margin: 4px 0 0; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; background: #fff; }
.stat .k { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat.wallet { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat.wallet .k { color: #C3CFE2; }
.stat.wallet .v { color: #fff; }

.panel { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 18px; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mobile-account-nav { display: none; }
@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-side { display: none; }
  .mobile-account-nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); border-bottom: 1px solid var(--border); background: var(--bg-alt);
    scrollbar-width: none;
  }
  .mobile-account-nav::-webkit-scrollbar { display: none; }
  .mobile-account-nav a {
    flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
  }
  .mobile-account-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .account-main { padding: 20px var(--gutter) 56px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat.wallet { grid-column: 1 / -1; }
}

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { white-space: nowrap; }

/* Mobile list version of order rows */
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.order-list li:last-child { border-bottom: 0; }
.order-list .amount { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-success { background: var(--success-tint); color: var(--success); }
.badge-error { background: var(--error-tint); color: var(--error); }
.badge-warning { background: var(--warning-tint); color: #9A5404; }
.badge-info { background: var(--blue-tint); color: var(--blue); }
.badge-neutral { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.filter-tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { text-align: center; padding: 40px 20px; }
.empty .icon { width: 32px; height: 32px; margin: 0 auto 12px; color: var(--muted); }
.empty h3 { margin-bottom: 4px; }
.empty p { color: var(--muted); max-width: 42ch; margin: 0 auto 16px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); font-size: .9rem; }

.only-desktop { display: block; }
.only-mobile { display: none; }
@media (max-width: 700px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}

/* ---------- Responsive hero ---------- */
@media (max-width: 920px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: 16ch; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .quick-buy { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.mobile-balance { margin: 12px 0 4px; }
.h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.net-group { margin-bottom: 36px; }
h2.net-label { font-size: 1.15rem; margin-bottom: 14px; }
h2.net-label .net-swatch { width: 14px; height: 14px; }
.underline { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.alert form { margin-top: 4px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.center { text-align: center; }

/* ---------- Standalone sign-in pages ---------- */
.auth-page { background: var(--bg-alt); }
.auth-shell { max-width: 440px; margin: 0 auto; padding: 36px var(--gutter) 40px; min-height: 100vh; display: flex; flex-direction: column; }
.auth-brand { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; align-self: center; }
.brand-mark-lg { width: 44px; height: 44px; border-radius: 12px; }
.brand-mark-lg span { width: 18px; height: 18px; border-radius: 4px; }
.auth-brand-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.auth-tagline { text-align: center; color: var(--muted); margin: 8px 0 24px; }
.auth-flash .alert { margin-bottom: 16px; }

.guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; margin-bottom: 16px; border-radius: var(--r-lg);
  background: var(--green-tint); border: 1.5px solid #A8DDBD; color: #0F5E2D; text-decoration: none;
}
.guest-banner:hover { background: #DCEFE4; color: #0F5E2D; }
.guest-banner strong { display: block; font-size: 1.02rem; }
.guest-banner span span { font-size: .92rem; }
.guest-banner .icon { width: 22px; height: 22px; flex: none; }

.signin-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px 26px; box-shadow: var(--shadow-1); }
.signin-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.signin-card .lede { color: var(--muted); margin-bottom: 22px; }
.signin-art { width: 200px; height: auto; margin: 0 auto 18px; }

.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; min-height: 52px; background: var(--bg-alt); border-color: var(--border); }
.input-icon .input:focus { background: #fff; }
.input-icon.has-toggle .input { padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: var(--r-sm); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--brand-ink); }
.signin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: .925rem; }
.signin-row a { font-weight: 600; }
.btn-lg { min-height: 52px; font-size: 1.02rem; }
.signin-card .auth-foot { margin-bottom: 0; }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 28px; font-size: .85rem; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--text); text-decoration: underline; }

.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.whatsapp-fab:hover { background: #1EBE5A; color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; }
@media (max-width: 480px) { .signin-card { padding: 22px 18px; } .auth-shell { padding-top: 24px; } }
.auth-shell { padding-bottom: 96px; }

/* ---------- Logo ---------- */
.logo { display: block; height: 26px; width: auto; }
.logo-lg { height: 40px; }
.site-footer .logo { height: 24px; margin-bottom: 12px; }
.brand { gap: 0; }
/* Buttons inside dark areas keep dark text on yellow */
.btn .icon { color: inherit; }
.logo-lg { max-width: 100%; height: auto; width: 320px; }
/* Dark surfaces follow the logo: black instead of navy */
.stat.wallet { background: var(--brand-ink); border-color: var(--brand-ink); }
.stat.wallet .v { color: var(--brand); }
.stat.wallet .k { color: #C9C9C9; }
.site-footer { background: var(--brand-ink); color: #B5B5B5; }
.site-footer a { color: #EDEDED; }
.filter-tabs a[aria-current="page"],
.mobile-account-nav a[aria-current="page"] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

/* =========================================================
   App-style customer area (compact, mobile-first)
   ========================================================= */
.app-body { background: var(--bg-alt); font-size: 14.5px; }
.app-body h1 { font-size: 1.35rem; }
.app-body h2 { font-size: 1.02rem; letter-spacing: -0.01em; }
.app-body .btn { min-height: 40px; font-size: .9rem; }

.app-bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 16px; background: #FFFBEA; border-bottom: 1px solid #F3E7B3;
}
.app-bar-logo .logo { height: 20px; }
.app-bar-actions { display: flex; align-items: center; gap: 10px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--brand-ink); font-weight: 700; font-size: .85rem; text-decoration: none;
}
.app-chip .icon { width: 17px; height: 17px; }
.app-menu { position: relative; }
.app-menu summary {
  list-style: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; cursor: pointer;
}
.app-menu summary::-webkit-details-marker { display: none; }
.app-menu .icon-close { display: none; }
.app-menu[open] .icon-open { display: none; }
.app-menu[open] .icon-close { display: block; }
.app-menu-panel {
  position: absolute; right: 0; top: 50px; width: 250px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-2); padding: 8px;
}
.app-menu-user { display: grid; gap: 2px; padding: 10px 10px 12px; margin: 0 0 6px; border-bottom: 1px solid var(--border); font-size: .85rem; }
.app-menu-user span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.app-menu-panel nav a, .app-menu-signout {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 8px; border: 0; background: none;
  color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; text-align: left;
}
.app-menu-panel nav a:hover, .app-menu-signout:hover { background: var(--brand-tint); }
.app-menu-panel nav a[aria-current="page"] { background: var(--brand-tint); }
.app-menu-panel .icon { width: 18px; height: 18px; color: var(--muted); }

.app-body .account-shell { min-height: calc(100vh - 60px); }
.app-body .account-main { padding: 16px 16px 48px; max-width: 760px; }
.app-body .account-side nav { top: 76px; }
.app-body .account-title h1 { font-size: 1.3rem; }
@media (min-width: 901px) { .app-menu { display: none; } .app-body .account-main { padding: 24px 28px 56px; } }

/* Hero */
.dash-alert { font-size: .85rem; }
.dash-hero { background: var(--brand); color: var(--brand-ink); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.dash-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-hero h1 { color: var(--brand-ink); font-size: 1.3rem; line-height: 1.25; margin: 0 0 4px; letter-spacing: -0.02em; }
.dash-hero p { margin: 0; font-size: .875rem; color: #3D3300; }
.dash-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand-ink); }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--brand-ink); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none;
}
.pill:hover { background: #2A2A2A; color: #fff; }
.pill .icon { width: 17px; height: 17px; }
.pill-green { background: var(--green); }
.pill-green:hover { background: #12803D; }
.pill-soft { background: rgba(17, 17, 17, .12); color: var(--brand-ink); height: 32px; font-size: .8rem; border-radius: 999px; }
.pill-soft:hover { background: rgba(17, 17, 17, .2); color: var(--brand-ink); }
.dash-hero-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 12px; border-top: 1px solid rgba(17, 17, 17, .12); font-size: .78rem; font-weight: 600; }
.dash-hero-foot span { display: inline-flex; align-items: center; gap: 5px; }
.dash-hero-foot span .icon { width: 15px; height: 15px; }
.dash-hero-foot .pill-soft { margin-left: auto; }

/* Cards */
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.dash-accent { border-top: 4px solid var(--brand); }
.dash-card h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.count-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand-tint); font-size: .75rem; }
.view-all { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); text-decoration: none; }

/* Network tiles */
.net-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.net-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px;
  border: 1px solid var(--border); border-radius: 14px; background: #FFFDF3; text-decoration: none; color: var(--text); font-weight: 600; font-size: .82rem;
}
a.net-tile:hover { border-color: var(--brand-ink); color: var(--text); }
.net-tile.is-off { opacity: .5; background: var(--bg-alt); }
.net-tile-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.net-tile-badge.sm { width: 40px; height: 40px; border-radius: 10px; font-size: .65rem; flex: none; }
.net-tile-soon { position: absolute; top: 6px; right: 6px; font-size: .62rem; font-weight: 700; color: var(--muted); }
@media (max-width: 380px) { .net-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Stats (solid yellow block) */
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; background: var(--brand); border-radius: 20px; padding: 18px 12px; margin-bottom: 14px; }
.dash-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.dash-stat-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.dash-stat-icon .icon { width: 20px; height: 20px; }
.dash-stat-k { font-size: .8rem; color: #3D3300; }
.dash-stat-v { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }

/* Recent orders */
.mini-orders { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-orders li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); }
.mini-main { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; flex: 1; min-width: 0; font-size: .85rem; }
.mini-size { color: var(--muted); font-size: .8rem; align-self: center; }
.mini-meta { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-meta .badge { font-size: .68rem; padding: 2px 8px; }
.mini-amount { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.dash-empty { color: var(--muted); font-size: .85rem; margin: 6px 0 2px; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 14px;
  background: #FFFBEA; color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; text-align: center;
}
.quick:hover { background: var(--brand-tint); color: var(--text); }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; }
.quick-icon.is-yellow { background: var(--brand); color: var(--brand-ink); }
.quick-icon.is-green { background: var(--green); color: #fff; }
.quick-icon .icon { width: 20px; height: 20px; }
@media (max-width: 360px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
.app-chip { white-space: nowrap; height: 34px; padding: 0 10px; font-size: .8rem; }
.app-bar-logo .logo { height: 17px; }
@media (max-width: 360px) { .app-bar-logo .logo { height: 14px; } }
.net-tiles { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.net-tile-soon { position: static; margin-top: -4px; font-size: .66rem; }
.net-tiles { grid-template-columns: repeat(auto-fit, minmax(76px, 150px)); }

/* Wallet */
.wallet-hero { display: flex; flex-direction: column; gap: 2px; background: var(--brand-ink); color: #fff; border-radius: 20px; padding: 20px; margin-bottom: 14px; }
.wallet-hero-k { font-size: .8rem; color: #C9C9C9; }
.wallet-hero-v { font-size: 1.9rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.wallet-hero-note { font-size: .8rem; color: #BDBDBD; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.amount-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--text); }
.amount-chip:hover, .amount-chip[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand-ink); }
.pill-sm { height: 30px; padding: 0 14px; font-size: .78rem; margin-top: 6px; border-radius: 999px; }
.quick-icon.sm { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.quick-icon.sm .icon { width: 18px; height: 18px; }
.mini-amount.is-in { color: var(--success); }
.mini-amount.is-out { color: var(--text); }

/* WhatsApp community */
.community-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px;
  border-radius: 16px; background: #E9F8EF; border: 1.5px solid #A8DDBD; color: #0F5E2D; text-decoration: none;
}
.community-banner:hover { background: #DCF3E5; color: #0F5E2D; }
.community-banner > span:nth-child(2) { display: grid; gap: 1px; flex: 1; font-size: .82rem; font-weight: 500; }
.community-banner strong { font-size: .92rem; }
.community-icon { width: 40px; height: 40px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.community-icon .icon { width: 22px; height: 22px; }
.community-arrow { transform: rotate(-90deg); flex: none; }
.auth-shell .community-banner { margin: 16px 0 0; }
.mini-orders li { min-width: 0; }
.mini-main > * { min-width: 0; }
.mini-size { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body .hint { font-size: .8rem; color: var(--muted); }
.mini-amount { flex: none; }

/* ---------- Slide-in drawer menu (phones) ---------- */
.app-menu summary .icon { width: 22px; height: 22px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .45); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(86vw, 380px);
  background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  overflow-y: auto; overscroll-behavior: contain;
}
.app-menu[open] .drawer { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .app-menu[open] .drawer { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-head .logo { height: 18px; }
.drawer-close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg-alt); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.drawer-user { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-user > span:last-child { display: grid; gap: 2px; min-width: 0; }
.drawer-user strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-avatar { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.drawer-balance { color: var(--success); font-weight: 800; font-size: .95rem; }
.drawer-nav { padding: 6px 12px 28px; }

/* ---------- Menu items (drawer and sidebar) ---------- */
.menu-group { margin: 16px 8px 6px; font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border-radius: 14px;
  color: var(--text); text-decoration: none; font: inherit; text-align: left; background: none; border: 0; cursor: pointer;
}
.menu-item:hover { background: var(--bg-alt); color: var(--text); }
.menu-item.is-current { background: var(--brand-tint); }
.menu-item.is-off { opacity: .5; cursor: default; }
.menu-item.is-off:hover { background: none; }
.menu-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.menu-icon .icon { width: 20px; height: 20px; }
.tone-blue { background: #EAF0FB; color: var(--blue); }
.tone-green { background: #E9F8EF; color: var(--success); }
.tone-purple { background: #F1EDFB; color: #6D4AC9; }
.tone-grey { background: var(--bg-alt); color: var(--text); }
.tone-red { background: var(--error-tint); color: var(--error); }
.tone-plain { background: #FFFBEA; }
.menu-net { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .58rem; font-weight: 800; }
.menu-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.menu-text strong { font-size: .92rem; }
.menu-text span { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-chev { width: 18px; height: 18px; color: #A6AFBD; transform: rotate(-90deg); flex: none; }
.menu-sep { height: 1px; background: var(--border); margin: 14px 8px; }
.menu-logout strong { color: var(--error); }
.menu-item.is-current .menu-text strong { color: var(--brand-ink); }

/* Desktop sidebar uses the same items, a little tighter */
.side-menu { position: sticky; top: 76px; }
.side-menu .menu-group:first-child { margin-top: 4px; }
.side-menu .menu-icon { width: 38px; height: 38px; border-radius: 10px; }
.side-menu .menu-item { padding: 7px 8px; }
.side-menu .menu-chev { display: none; }
.app-body .account-side { width: 260px; padding: 16px 10px; }
.app-body .account-shell { grid-template-columns: 260px 1fr; }
@media (max-width: 900px) { .app-body .account-shell { grid-template-columns: 1fr; } }
.side-menu .tone-grey, .side-menu .tone-plain { background: #fff; border: 1px solid var(--border); }
.tone-yellow { background: var(--brand-tint); color: var(--brand-ink); }
.mini-amount.is-void { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.mini-meta.ref { font-size: .7rem; letter-spacing: .02em; }
.quick-icon.is-muted { background: var(--border); color: var(--muted); }

/* ---------- Buying data ---------- */
.buy-wrap { max-width: 640px; }
.site-header ~ main .buy-wrap { margin: 0 auto; padding: 24px var(--gutter) 64px; }
.net-tile.is-selected { border: 2px solid var(--brand-ink); background: var(--brand-tint); }
.bundle-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 330px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .bundle { padding: 12px 4px; } .bundle-size { font-size: 1.05rem; } .bundle-price { font-size: .78rem; } }
.bundle { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border: 1.5px solid var(--border); border-radius: 14px; background: #FFFDF3; cursor: pointer; text-align: center; }
.bundle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bundle-size { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.bundle-meta { font-size: .72rem; color: var(--muted); }
.bundle-price { font-size: .85rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.bundle:has(input:checked) { border: 2px solid var(--brand-ink); background: var(--brand); }
.bundle:has(input:focus-visible) { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.buy-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 -4px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 -6px 20px rgba(17,17,17,.08); }
.buy-bar-sum { display: grid; font-size: .82rem; }
.buy-bar-sum strong { font-size: 1.15rem; }
.buy-bar .btn { min-width: 140px; }

.receipt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.receipt-row span:first-child { color: var(--muted); }
.receipt-row strong { text-align: right; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.receipt-total strong { font-size: 1.4rem; }
.pay-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.pay-option:hover { border-color: var(--brand-ink); background: var(--brand-tint); }
.pay-option:disabled { opacity: .5; cursor: not-allowed; background: var(--bg-alt); border-color: var(--border); }

.order-hero { text-align: center; padding: 22px 18px; border-radius: 20px; margin-bottom: 14px; background: var(--bg-alt); }
.order-hero h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.order-hero p { margin: 0 auto; max-width: 42ch; font-size: .88rem; color: #3D4652; }
.order-hero-icon { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; }
.order-hero-icon .icon { width: 26px; height: 26px; }
.order-hero.tone-success { background: var(--success-tint); } .order-hero.tone-success .order-hero-icon { color: var(--success); }
.order-hero.tone-error { background: var(--error-tint); } .order-hero.tone-error .order-hero-icon { color: var(--error); }
.order-hero.tone-warning { background: var(--warning-tint); } .order-hero.tone-warning .order-hero-icon { color: var(--warning); }
.order-hero.tone-info { background: var(--brand-tint); }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.order-actions .btn { flex: 1; }

@media print {
  .app-bar, .account-side, .site-header, .site-footer, .order-actions, .whatsapp-fab, .skip-link, .flash-wrap, .alert { display: none !important; }
  .app-body, body { background: #fff; }
  .account-shell { display: block; }
  .dash-card { border: 1px solid #999; }
}
.mini-orders li.is-link { padding: 0; position: relative; }
.mini-orders li > a.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; width: 100%; color: var(--text); text-decoration: none; font-weight: 400; border-radius: 12px; }
.mini-orders li > a.mini-row:hover { background: var(--brand-tint); }
.mini-orders li, .order-list li { position: relative; }
a.stretched { color: inherit; text-decoration: none; }
a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.mini-orders li:has(a.stretched):hover, .order-list li:has(a.stretched):hover { background: var(--brand-tint); }

/* ---------- Admin ---------- */
.admin-stats .dash-stat-v { font-size: 1.15rem; }
.admin-stats .dash-stat { gap: 0; }
.admin-counts { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .admin-counts { grid-template-columns: repeat(3, 1fr); } }
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search .input { min-height: 42px; }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: .9rem; max-width: 120px; }
.bundle-table td, .bundle-table th { padding: 8px 10px; }
.bundle-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand-ink); }
.add-bundle { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.add-bundle .field { margin: 0; }
@media (max-width: 700px) { .add-bundle { grid-template-columns: 1fr 1fr; } }
.net-setting { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.net-setting-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.net-setting-fields label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.speed-card { background: #FFFBEA; border: 1.5px solid #F7E7A1; border-radius: 16px; padding: 14px 14px 12px; margin-bottom: 16px; }
.speed-head { margin: 0 0 6px; font-weight: 700; font-size: 14.5px; line-height: 1.45; color: #9A5B13; }
.speed-head .speed-sub { display: block; }
.speed-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: #9AA3AE; }
.speed-dot.is-active, .speed-dot.is-processing { background: #16A34A; } .speed-dot.is-waiting { background: #F59E0B; }
.speed-link { display: inline-block; font-weight: 700; font-size: 12.5px; color: #1D4ED8; text-decoration: underline; margin-bottom: 6px; }
.speed-stats { margin: -4px 0 10px; font-size: 12px; font-weight: 600; color: #374151; }
.speed-note { margin: 0 0 8px; font-size: 12px; color: #6B7280; }
.speed-list { list-style: none; margin: 0; padding: 0; border: 1px solid #E8E8E8; border-radius: 12px; overflow: hidden; }
.speed-list li { padding: 9px 12px; }
.speed-list li + li { border-top: 1px solid #EDEDED; }
.speed-list .is-fast { background: #EFF9F1; color: #2F6E4A; }
.speed-list .is-slow { background: #FFFDF6; color: #1E40AF; }
.speed-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.speed-row strong { font-weight: 700; }
.speed-ref { font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 7px; }
.is-fast .speed-ref { background: #D9F2E1; } .is-slow .speed-ref { background: #DBE6FB; }
.speed-times { font-size: 11px; margin-top: 3px; }
.is-fast .speed-times { color: #3E8E5E; } .is-slow .speed-times { color: #3B5FD9; }
.check-form { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 380px) { .check-form { grid-template-columns: 1fr; } }
.net-tile-soon.is-oos { color: #B91C1C; font-weight: 700; }
.net-setting { grid-template-columns: auto 1fr auto auto; }
.voucher h2 { margin-bottom: 8px; }
.voucher-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed #E8C547; border-radius: 10px; background: #FFFBEA; margin-bottom: 8px; }
.voucher-row span { color: var(--muted); font-size: 13px; }
.voucher-row strong { font-size: 17px; letter-spacing: .04em; word-break: break-all; text-align: right; }
.bundle.is-off { opacity: .6; cursor: not-allowed; }
.bundle-meta.oos { color: #B91C1C; font-weight: 700; }
.checker-tiles .net-tile-badge { font-size: 11px; }
.install-strip { display: flex; align-items: center; gap: 10px; background: #111111; color: #fff; padding: 8px 12px; position: relative; z-index: 30; }
.install-strip[hidden], .install-strip .btn[hidden] { display: none; }
.install-strip img { border-radius: 7px; flex: none; }
.install-text { display: grid; flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.install-text span { color: #C9CDD3; font-size: 11.5px; }
.install-strip .btn-sm { flex: none; padding: 7px 14px; font-size: 13px; }
.install-close { border: 0; background: none; color: #C9CDD3; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; flex: none; }
.install-sheet { border: 0; border-radius: 18px; padding: 20px; width: min(420px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.install-sheet::backdrop { background: rgba(17,17,17,.55); }
.install-sheet h2 { font-size: 17px; margin: 0 0 12px; }
.install-sheet ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.install-sheet ol[hidden], .install-sheet p[hidden] { display: none; }
.install-sheet .hint { font-size: 12.5px; margin: 0 0 14px; }
.guide-ios { display: grid; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.guide-ios[hidden] { display: none; }
.guide-ios p { margin: 0; }
.share-glyph { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.menu-install { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.menu-install[hidden] { display: none; }
.bundle-was { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.agent-list { list-style: none; margin: 0 0 12px; padding: 0; }
.agent-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.agent-who { display: grid; gap: 2px; font-size: 13px; }
.agent-actions { display: flex; gap: 6px; }
.agent-add { grid-template-columns: 1fr auto; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.net-logo { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.net-logo.sm { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.net-logo .brand-text { font-size: 11px; }
.net-switch { margin-bottom: 14px; }
.net-switch .net-tile { padding: 10px 6px; }
.pkg-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pkg-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 12px; height: 46px; color: var(--muted); }
.pkg-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; background: transparent; min-width: 0; color: var(--text); }
.pkg-views { display: flex; gap: 4px; flex: none; }
.pkg-view { width: 44px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.pkg-view.is-on { background: #111; color: #fff; border-color: #111; }
.agent-note { margin: -4px 0 10px; font-size: 13px; }
.pkg-list { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bcard { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.bcard[hidden] { display: none; }
.bcard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bcard-logo { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.35); display: grid; place-items: center; padding: 4px; }
.bcard-logo:has(img) { padding: 0; background: #fff; }
.bcard-logo .brand-logo, .net-logo .brand-logo { border-radius: inherit; }
.bcard-main { display: grid; gap: 2px; min-width: 0; }
.bcard-size { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bcard-meta { font-size: 12px; opacity: .75; }
.bcard-price { font-size: 17px; font-weight: 800; text-align: right; display: grid; }
.bcard-buy { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.1); font-weight: 700; font-size: 13px; }
.bcard-buy .icon { width: 16px; height: 16px; }
.bcard:has(input:checked) { outline: 3px solid #111; outline-offset: 1px; }
.bcard:has(input:focus-visible) { outline: 3px solid #111; outline-offset: 2px; }
.pkg-list.is-grid { grid-template-columns: repeat(2, 1fr); }
.pkg-list.is-grid .bcard { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 14px 8px; }
.pkg-list.is-grid .bcard-price { text-align: center; }
.buy-sheet { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.buy-sheet h2 { font-size: 16px; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 6px; }
.sheet-actions [data-sheet-close] { display: none; }
dialog.buy-sheet-dlg { border: 0; padding: 0; background: transparent; width: min(480px, calc(100% - 24px)); margin: auto auto 12px; }
dialog.buy-sheet-dlg::backdrop { background: rgba(17,17,17,.55); }
dialog.buy-sheet-dlg .buy-sheet { box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.buy-sheet-dlg [data-sheet-close] { display: block; }
.announce { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #14211f; }
.announce p { margin: 0; overflow-wrap: anywhere; }
.announce strong { font-weight: 800; }
.announce a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.announce-info { background: #EEF3FD; color: #1B3A8A; }
.announce-warning { background: #FFF8E1; color: #7A4B00; }
.announce-success { background: #EDF8F1; color: #14663A; }
.announce-error { background: #FDEEEE; color: #B42318; }
.auth-shell .announce { width: 100%; max-width: 440px; }
.cust-filters { margin: 12px 0 8px; flex-wrap: wrap; }
.export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.export-row .pill .icon { width: 15px; height: 15px; margin-right: 4px; }
.cust-list li { padding: 0; }
.cust-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; width: 100%; color: inherit; text-decoration: none; }
.cust-row .badge { margin-left: 4px; vertical-align: middle; }
.cust-bal { font-size: 14px; }
.cust-row .drawer-avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; flex: none; }
.cust-row .agent-who { font-size: 13px; line-height: 1.35; min-width: 0; }
.cust-row .agent-who strong { font-size: 14px; }
.cust-row .agent-who .num { word-break: break-all; }
.cust-row .muted.small { font-size: 12px; font-weight: 500; }
.cust-joined { font-size: 16px; }
.nowrap { white-space: nowrap; }
.adj-modes { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; }
.ref-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ref-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-link .input { font-size: 13px; min-width: 0; }
.ref-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-whatsapp { background: #1FAF54; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.ref-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.fee-line { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #8A5A00; background: #FFF8E1; border: 1px solid #F0D98A; border-radius: 10px; padding: 8px 10px; }
.agent-hero { background: var(--brand); color: #111; border-radius: 22px; padding: 22px 18px; margin-bottom: 16px; position: relative; overflow: hidden; }
.agent-hero.is-agent { background: #111; color: #fff; }
.agent-hero h1 { color: inherit; }
.agent-hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.1); }
.agent-hero.is-agent .agent-hero-badge { background: rgba(255,204,0,.18); color: var(--brand); }
.agent-hero-badge .icon { width: 14px; height: 14px; }
.agent-hero h1 { font-size: 24px; margin: 12px 0 6px; letter-spacing: -.02em; }
.agent-hero p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; opacity: .85; }
.agent-hero-stat { display: inline-grid; gap: 2px; background: rgba(255,255,255,.55); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.agent-hero.is-agent .agent-hero-stat { background: rgba(255,255,255,.08); }
.agent-hero-stat strong { font-size: 20px; }
.agent-hero-stat span { font-size: 12px; opacity: .8; }
.agent-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-hero-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.agent-hero-actions .btn .icon { width: 17px; height: 17px; }
.btn-dark { background: #111; color: #fff; border-color: #111; }
.agent-hero.is-agent .btn-dark { background: #fff; color: #111; border-color: #fff; }
.agent-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.agent-perk { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; font-size: 13px; }
.agent-perk .quick-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; }
.agent-perk strong { font-size: 15px; align-self: end; }
.agent-perk span:last-child { align-self: start; }
.agent-perk span:last-child { color: var(--muted); }
.agent-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.agent-track li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; opacity: .5; }
.agent-track li.is-done, .agent-track li.is-now { opacity: 1; }
.agent-track li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #EEF0F3; }
.agent-track li.is-done > span { background: #16A34A; color: #fff; }
.agent-track li.is-now > span { background: var(--brand); }
.agent-track .icon { width: 18px; height: 18px; }
.agent-track small { display: block; color: var(--muted); font-size: 12px; }
.ap-group + .ap-group { margin-top: 14px; }
.ap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.ap-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ap-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; font-size: 14px; }
.ap-list li + li { border-top: 1px solid var(--border); }
.ap-name { font-weight: 700; }
.ap-was { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.ap-now { font-size: 15px; }
.ap-save { font-size: 11px; font-weight: 700; color: #166534; background: #DCF3E3; border-radius: 999px; padding: 3px 8px; }
.kf-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.net-setting:last-of-type { margin-bottom: 14px; }
.resolve-form .order-actions .btn { flex: 1; }
.dash-card h2 .menu-net { display: inline-grid; vertical-align: middle; }
.net-tiles { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); max-width: 480px; }

/* Agent upgrade popup */
.up-dialog { border: 0; padding: 0; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); border-radius: 24px; overflow: auto; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.up-dialog::backdrop { background: rgba(10,12,16,.6); }
.up-head { position: relative; text-align: center; padding: 30px 20px 26px; color: #fff; background: #111; overflow: hidden; }
.up-head::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,204,0,.12); top: -110px; right: -70px; }
.up-head > * { position: relative; }
.up-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.up-close .icon { width: 18px; height: 18px; }
.up-rocket { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand); color: #111; margin-bottom: 12px; transform: rotate(-8deg); }
.up-rocket .icon { width: 34px; height: 34px; }
.up-head h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.up-head p { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.up-body { padding: 20px; }
.up-fee { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #FFF8D6; border: 1px solid #F5DC6B; margin-bottom: 16px; }
.up-fee small { display: block; font-size: 13px; color: #6b5a00; }
.up-fee strong { font-size: 28px; letter-spacing: -.02em; color: #111; }
.up-fee .icon { width: 30px; height: 30px; color: #b38f00; flex: none; }
.up-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.up-perks li { display: flex; align-items: center; gap: 12px; }
.up-perks .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: #E7F6EC; color: #16A34A; flex: none; }
.up-actions { display: grid; gap: 8px; }
.up-actions .btn { width: 100%; justify-content: center; }
.up-go { background: #16A34A; border-color: #16A34A; color: #fff; }
.up-go:hover { background: #12873d; color: #fff; }
.up-note { margin: -2px 0 4px; text-align: center; font-size: 12px; color: var(--muted); }
.up-later { color: var(--muted); }

/* Admin SMS */
.sms-count { margin: 0 0 12px; font-size: 14px; }
.sms-count strong { font-size: 18px; }
.sms-samples { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sms-samples li { display: grid; gap: 4px; }
.sms-to { font-size: 12px; color: var(--muted); }
.sms-bubble { display: block; background: #EEF0F3; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; max-width: 92%; overflow-wrap: anywhere; }
.sms-confirm, .sms-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sms-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sms-history li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sms-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.sms-h-top { display: flex; justify-content: space-between; gap: 8px; }
.sms-h-msg { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.link-btn[data-sms-insert] { color: var(--text); font-weight: 700; text-decoration: underline; }
.sms-history li { position: relative; }
.sms-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.sms-stat { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); text-align: center; }
.sms-stat strong { font-size: 20px; }
.sms-stat span { font-size: 11px; color: var(--muted); }
.sms-stat.is-ok strong { color: #16A34A; }
.sms-stat.is-bad strong { color: var(--error); }
.sms-stat.is-on { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.sms-recips { list-style: none; margin: 0; padding: 0; display: grid; }
.sms-recips li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sms-recips li:last-child { border-bottom: 0; }
.sms-recips li > .mini-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sms-err { color: var(--error); overflow-wrap: anywhere; }

/* Bulk buy */
.bulk-text { font-size: 15px; line-height: 1.6; min-height: 190px; }
.bulk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.bulk-sum > div { display: grid; gap: 2px; text-align: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: 14px; }
.bulk-sum strong { font-size: 18px; }
.bulk-sum span { font-size: 11px; color: var(--muted); }
.bulk-sum .is-bad strong { color: var(--error); }
.bulk-sum .is-ok strong { color: #16A34A; }
.bulk-lines, .bulk-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.bulk-lines li, .bulk-hist li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bulk-lines li:last-child, .bulk-hist li:last-child { border-bottom: 0; }
.bulk-lines li > .mini-main, .bulk-hist li > .mini-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bulk-lines li.is-bad { background: var(--error-tint); margin: 0 -10px; padding: 10px; border-radius: 10px; border-bottom-color: transparent; }
.bulk-n { width: 24px; flex: none; font-size: 12px; color: var(--muted); text-align: right; }
.bulk-err { color: var(--error); }

/* Instant network check on the phone field */
.net-hint { margin: 6px 0 0; font-size: 13px; font-weight: 600; min-height: 0; }
.net-hint:empty { display: none; }
.net-hint.is-ok { color: #16A34A; }
.net-hint.is-bad { color: var(--error); }
.net-hint.is-warn { color: #9A5404; background: var(--warning-tint); border-radius: 10px; padding: 8px 10px; font-weight: 500; }
.net-hint.is-warn a { font-weight: 700; color: inherit; display: inline-block; margin-top: 2px; }
.net-ported { margin-top: 8px; font-size: 13px; }
.net-ported[hidden] { display: none !important; }
.net-ported span { font-weight: 500; }

/* Notifications */
.app-bell { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--brand-ink); background: #fff; border: 1px solid var(--border); text-decoration: none; flex: none; }
.app-bell .icon { width: 19px; height: 19px; }
.app-bell.is-on { border-color: #111; }
.bell-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E11D48; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #FFFBEA; }
.bell-count[hidden] { display: none; }
.app-bell.ring .icon { animation: bell-ring .8s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .app-bell.ring .icon { animation: none; } }
@media (max-width: 400px) { .app-bar-actions { gap: 6px; } .app-bell { width: 34px; height: 34px; } }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; }
.notif-list li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 12px; }
.notif-list li:last-child { border-bottom: 0; }
.notif-list li.is-new { background: #FFF8D6; border-bottom-color: transparent; margin-bottom: 2px; }
.notif-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.notif-main strong { font-size: 15px; }
.notif-body { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.notif-time { font-size: 12px; color: var(--muted); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: #E11D48; flex: none; margin-top: 6px; }
.quick-icon.is-red { background: var(--error-tint); color: var(--error); }
.quick-icon.is-muted { background: var(--bg-alt); color: var(--muted); }
.notif-list .quick-icon { width: 38px; height: 38px; flex: none; }
.notif-list .quick-icon .icon { width: 18px; height: 18px; }

/* Notifications panel (opened from the bell) */
.notif-lock, .notif-lock body { overflow: hidden; }
.notif-panel { position: fixed; inset: 0; z-index: 90; }
.notif-panel[hidden] { display: none; }
.notif-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.5); animation: nf-fade .15s ease-out; }
.notif-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.2); animation: nf-in .2s ease-out; }
.notif-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); padding-top: max(14px, env(safe-area-inset-top)); }
.notif-head-icon { width: 44px; height: 44px; border-radius: 14px; background: #FFF4CC; color: #B38600; display: grid; place-items: center; flex: none; }
.notif-head-icon .icon { width: 22px; height: 22px; }
.notif-head-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.notif-head-text strong { font-size: 19px; }
.notif-head-text span { font-size: 13px; color: var(--muted); }
.notif-x { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--bg-alt); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.notif-x .icon { width: 22px; height: 22px; }
.notif-x:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.notif-scroll { flex: 1; overflow-y: auto; padding: 8px 10px; -webkit-overflow-scrolling: touch; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; border-radius: 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.notif-row:last-child { border-bottom: 0; }
a.notif-row:hover { background: var(--bg-alt); }
.notif-row.is-new { background: #FFF8D6; border-bottom-color: transparent; margin-bottom: 2px; }
.notif-row .quick-icon { width: 38px; height: 38px; flex: none; }
.notif-row .quick-icon .icon { width: 18px; height: 18px; }
.notif-empty { color: var(--muted); text-align: center; padding: 40px 16px; margin: 0; }
.notif-all { display: block; text-align: center; padding: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-weight: 700; color: var(--text); }
@keyframes nf-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes nf-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .notif-sheet, .notif-backdrop { animation: none; } }

/* Airtime and AFA */
.air-amount { font-size: 22px; font-weight: 700; }
.air-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.air-chip { border: 1px solid var(--border-strong); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.air-chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
[data-air-total] { font-weight: 700; color: var(--text); }
.afa-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.afa-price small { display: block; color: var(--muted); font-size: 13px; }
.afa-price strong { font-size: 26px; }
.afa-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); max-width: 300px; }
.afa-note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.afa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .afa-grid { grid-template-columns: 1fr; } }
.net-logo.is-checker { background: #4CC261; color: #fff; }
.net-logo.is-checker .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.net-tiles.order-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.order-tiles .net-tile { padding: 12px 4px; min-width: 0; }
.order-tiles .net-logo { width: 48px; height: 48px; border-radius: 12px; }
.order-tiles .net-tile-name { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.order-tiles .net-tile-soon { font-size: .6rem; }
@media (max-width: 340px) { .order-tiles .net-logo { width: 40px; height: 40px; } }

/* Pop-up announcement */
.popup-dlg { border: 0; padding: 0; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 48px); border-radius: 22px; overflow: auto; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.popup-dlg::backdrop { background: rgba(10,12,16,.65); }
.popup-dlg[open] { animation: popup-in .22s ease-out; }
.popup-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(17,17,17,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.popup-x .icon { width: 20px; height: 20px; }
.popup-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.popup-img { display: block; width: 100%; height: auto; }
.popup-body { padding: 18px; display: grid; gap: 10px; }
.popup-body h2 { margin: 0; font-size: 21px; }
.popup-body p { margin: 0; color: var(--text); line-height: 1.5; }
.popup-dlg:not(:has(.popup-img)) .popup-body { padding-top: 52px; }
/* Image fills the pop-up; the text sits over its lower part */
.popup-over { position: relative; width: min(360px, calc(100% - 32px)); overflow: hidden; background: #14211f; color: #fff; }
.popup-over .popup-img { width: 100%; aspect-ratio: 2 / 3; max-height: calc(100vh - 48px); object-fit: cover; }
.popup-over > a[data-popup-go] { display: block; }
.popup-over .popup-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 22px 22px; background: linear-gradient(to top, #14211f 62%, rgba(20,33,31,0)); }
.popup-over .popup-body h2 { color: #fff; font-size: 24px; line-height: 1.15; }
.popup-over .popup-body p { color: #d3dedb; }
.popup-over .popup-body .btn { background: #ffc933; border-color: #ffc933; color: #14211f; font-weight: 800; }
.popup-admin-img { display: block; max-width: 220px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; }
@keyframes popup-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .popup-dlg[open] { animation: none; } }

/* Daily spin */
.spin-card { text-align: center; }
.spin-stage { position: relative; width: min(300px, 82vw); aspect-ratio: 1; margin: 14px auto 18px; }
.spin-wheel { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #111; box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 0 0 3px rgba(255,255,255,.6); overflow: hidden; }
.spin-label { position: absolute; left: 50%; top: 50%; width: 46%; text-align: center; font-weight: 800; font-size: 13px; color: #111; transform-origin: 50% 50%; white-space: nowrap; pointer-events: none; }
.spin-label { transform-origin: center; }
.spin-label.is-light { color: #fff; }
.spin-pointer { position: absolute; left: 50%; top: -8px; z-index: 3; width: 0; height: 0; transform: translateX(-50%); border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #E11D48; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.spin-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; border: 4px solid #111; display: grid; place-items: center; color: #111; }
.spin-hub .icon { width: 26px; height: 26px; }
.spin-result { font-weight: 700; font-size: 16px; min-height: 24px; margin: 0 0 14px; }
.spin-result.is-win { color: #16A34A; font-size: 19px; }
.spin-card .btn + .btn { margin-top: 8px; }
.spin-teaser { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 18px; background: #111; color: #fff; text-decoration: none; }
.spin-teaser:hover { color: #fff; }
.spin-teaser-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #111; display: grid; place-items: center; flex: none; }
.spin-teaser > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; font-size: 13px; color: rgba(255,255,255,.75); }
.spin-teaser strong { color: #fff; font-size: 16px; }
.spin-admin-rows { display: grid; gap: 6px; margin: 10px 0 16px; }
.spin-admin-head, .spin-admin-row { display: grid; grid-template-columns: 1.6fr 1fr .8fr .6fr; gap: 6px; align-items: center; }
.spin-admin-head { font-size: 12px; color: var(--muted); font-weight: 700; }
.spin-stage { container-type: size; }
.spin-label { width: auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }

/* Delivery tracker in DataMart's style (dark card, coloured headline, lane rows) */
.dm-card { background: #1A1D22; border: 1.5px solid #3A3F47; border-radius: 22px; padding: 18px 16px 16px; color: #E5E7EB; }
.dm-card.is-fast { background: #0F2320; border-color: #1E4A3A; }
.dm-card.is-wait { background: #231F1E; border-color: #5B4630; }
.dm-head { margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.4; color: #CBD5E1; }
.dm-card.is-fast .dm-head { color: #86E3A6; }
.dm-card.is-wait .dm-head { color: #F7D24A; }
.dm-link { display: inline-block; color: #9CC0FF; font-weight: 700; font-size: 14px; text-decoration: underline; margin-bottom: 10px; }
.dm-link:hover { color: #C3D8FF; }
.dm-note { margin: 0 0 12px; font-size: 13px; color: #8B9099; }
.dm-list { list-style: none; margin: 0; padding: 0; border: 1px solid #343A44; border-radius: 14px; overflow: hidden; }
.dm-list li { padding: 12px 14px; }
.dm-list li + li { border-top: 1px solid #343A44; }
.dm-list .dm-fast { background: #1C3329; color: #86E3A6; }
.dm-list .dm-std { background: #1F232B; color: #A9C1FF; }
.dm-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.dm-row strong { font-weight: 700; }
.dm-ref { font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.dm-fast .dm-ref { background: #1F4D36; color: #A7F0C2; }
.dm-std .dm-ref { background: #26336B; color: #DCE5FF; }
.dm-times { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.dm-fast .dm-times { color: #5FBF84; }
.dm-std .dm-times { color: #7F9CE8; }
/* Tracker: compact size */
.dm-card { border-radius: 16px; padding: 12px 12px 10px; border-width: 1px; }
.dm-head { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.dm-link { font-size: 12.5px; margin-bottom: 4px; }
.dm-note { font-size: 11.5px; margin-bottom: 8px; }
.dm-list { border-radius: 11px; }
.dm-list li { padding: 8px 10px; }
.dm-row { font-size: 13px; }
.dm-ref { font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.dm-times { font-size: 11px; margin-top: 2px; }

/* Send & Claim */
.momo-step { margin: 18px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5b6b68); }
.inline-form { display: flex; gap: 6px; }

/* Support chat */
.sc-fab { position: fixed; right: 14px; bottom: 14px; z-index: 40; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: #111; color: #ffcc00; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.sc-fab .icon { width: 22px; height: 22px; }
.sc-panel { position: fixed; right: 14px; bottom: 74px; z-index: 41; width: min(380px, calc(100% - 28px)); height: min(520px, calc(100% - 100px)); background: #fff; color: var(--text); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.sc-panel[hidden] { display: none; }
.sc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #111; color: #fff; }
.sc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-brand img { width: 44px; height: 44px; border-radius: 12px; background: #111; border: 2px solid #ffcc00; object-fit: cover; flex: none; }
.sc-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.sc-brand small { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .9; }
.sc-online { width: 9px; height: 9px; border-radius: 50%; background: #4cd081; display: inline-block; }
.sc-x { width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sc-x .icon { width: 20px; height: 20px; }
.sc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f5f6fa; }
.sc-msg { margin: 0; padding: 10px 12px; border-radius: 14px; max-width: 86%; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-bot { background: #fff; align-self: flex-start; border: 1px solid var(--border); }
.sc-me { background: #ffcc00; color: #111; align-self: flex-end; font-weight: 600; }
.sc-wait { color: #5b6b68; }
.sc-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.sc-form .input { flex: 1; min-width: 0; }
.sc-form .btn { min-height: 44px; }
.sc-dot { position: absolute; top: 6px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: #e11d48; border: 2px solid #111; }
.sc-fab { position: fixed; }
.lc-admin-log { height: min(60vh, 440px); border-radius: 14px; }
.lc-admin .sc-form { padding: 10px 0 0; border-top: 0; background: transparent; }

/* Sign in with a code */
.signin-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted, #6b7280); font-size: 14px; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.signin-or span { order: 1; } .signin-or::after { order: 2; } .signin-or::before { order: 0; }

/* Sell a gift card */
.gc-list h2 { margin-bottom: 4px; }
.gc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.gc-row:last-of-type { border-bottom: 0; }
.gc-logo { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.gc-logo .brand-logo, .gc-logo .brand-text { width: 100%; height: 100%; object-fit: cover; border-radius: 0; font-size: 12px; display: grid; place-items: center; }
.gc-name { flex: 1; font-weight: 600; font-size: 1.05rem; }
.gc-rate { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.gc-rate small { color: var(--muted, #6b7280); font-size: .8rem; }
.gc-go { color: var(--muted, #6b7280); display: grid; }
.gc-go .icon { width: 18px; height: 18px; }
.gc-settle { padding: 8px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.gc-settle > span { color: var(--muted, #6b7280); }
.gc-settle strong { font-size: 2.2rem; line-height: 1.1; }
.gc-settle small { color: var(--muted, #6b7280); }
.gc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gc-chosen { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border: 1px solid var(--border); border-radius: 14px; font-weight: 600; background: #fff; }
.gc-chosen .gc-logo { width: 32px; height: 32px; }
.seg { display: flex; gap: 10px; }
.seg-opt { flex: 1; max-width: 170px; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: grid; place-items: center; height: 48px; border-radius: 14px; background: #f1f1f1; font-weight: 500; }
.seg-opt input:checked + span { background: #1c1f23; color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--brand, #ffcc00); outline-offset: 2px; }
.gc-uploads { display: flex; gap: 12px; flex-wrap: wrap; }
.upload-tile { width: 84px; height: 100px; border-radius: 14px; background: #f1f1f1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; }
.upload-tile .icon { width: 26px; height: 26px; }
.upload-tile small { color: var(--muted, #6b7280); }
.upload-tile.is-set { background: #e6f6ec; }
.upload-tile.is-set small { color: #12803D; font-weight: 600; }
.upload-tile:focus-within { outline: 3px solid var(--brand, #ffcc00); outline-offset: 2px; }
.gc-payto { margin: 8px 0 14px; border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px 2px; background: #fff; }
.gc-payto summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.gc-sell { border-radius: 999px; background: #1c1f23; color: #fff; }
.gc-sell:hover { background: #000; color: #fff; }
.gc-status.gc-paid { color: #12803D; }
.gc-status.gc-rejected { color: #c0362c; }
.back-link { display: inline-block; margin: 0 0 12px; color: var(--muted, #6b7280); text-decoration: none; }
.field .upload-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0; font-weight: 500; }
.field .seg-opt { margin: 0; }

/* Gift card extras */
a.gc-req { color: inherit; text-decoration: none; }
a.gc-req:hover { background: rgba(0,0,0,.03); }
.gc-status.gc-cancelled { color: var(--muted, #6b7280); }
.gc-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.gc-how details { border-top: 1px solid var(--border); padding: 10px 0; }
.gc-how summary { cursor: pointer; font-weight: 600; }
.gc-how details p { margin: 8px 0 0; }
.gc-timeline { list-style: none; margin: 0; padding: 0; }
.gc-timeline li { position: relative; padding: 0 0 18px 30px; display: flex; flex-direction: column; }
.gc-timeline li:last-child { padding-bottom: 0; }
.gc-timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #d4d7dd; }
.gc-timeline li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: 2px; width: 2px; background: #e5e7eb; }
.gc-timeline li:last-child::after { display: none; }
.gc-timeline small { color: var(--muted, #6b7280); }
.gc-timeline .gc-t-done::before { background: #12803D; }
.gc-timeline .gc-t-now::before { background: var(--brand, #ffcc00); box-shadow: 0 0 0 4px rgba(255,204,0,.3); }
.gc-timeline .gc-t-stop::before { background: #c0362c; }

/* Delivery progress card */
.delivery{margin-bottom:1rem}
.delivery h2{display:flex;align-items:center;gap:.5rem;font-size:1.05rem;margin:0 0 .75rem}
.delivery h2 .icon{width:1.1em;height:1.1em}
.delivery-net{margin-left:auto;font-size:.8rem;font-weight:600;color:var(--muted,#667)}
.delivery-status,.delivery-last{display:flex;gap:.75rem;align-items:flex-start;padding:.75rem .9rem;border-radius:12px;background:rgba(127,127,127,.08)}
.delivery-status p,.delivery-last p{margin:.2rem 0 0;font-size:.88rem;color:var(--muted,#667)}
.delivery-dot{flex:none;width:.7rem;height:.7rem;margin-top:.35rem;border-radius:50%;background:#98a2b3}
.delivery-ok .delivery-dot{background:#12b76a;box-shadow:0 0 0 4px rgba(18,183,106,.18)}
.delivery-slow .delivery-dot{background:#f79009;box-shadow:0 0 0 4px rgba(247,144,9,.18)}
.delivery-bad .delivery-dot{background:#f04438;box-shadow:0 0 0 4px rgba(240,68,56,.18)}
.delivery-last{margin-top:.6rem}
.delivery-last .icon{flex:none;width:1.2em;height:1.2em;color:#12b76a;margin-top:.1rem}

/* Bitcoin */
.btc{max-width:640px;margin-inline:auto}
.btc-hero{background:linear-gradient(160deg,#0d1b2e,#14294a);color:#fff;border-radius:20px;padding:20px 20px 16px;margin-bottom:12px;box-shadow:0 6px 24px rgba(13,27,46,.22)}
.btc-head{display:flex;align-items:center;gap:12px}
.btc-head small{display:block;color:rgba(255,255,255,.65);font-size:.8rem}
.btc-coin{width:42px;height:42px;border-radius:50%;background:#f7931a;color:#fff;display:grid;place-items:center;font-size:1.5rem;font-weight:800}
.btc-live{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;background:rgba(18,183,106,.16);color:#4ade80;padding:5px 10px;border-radius:999px}
.btc-live i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:btcpulse 1.6s infinite}
.btc-live.is-off{background:rgba(247,144,9,.18);color:#fdb022}
.btc-live.is-off i{animation:none}
@keyframes btcpulse{50%{opacity:.25}}
.btc-price{font-size:2rem;font-weight:800;letter-spacing:-.02em;margin:14px 0 4px}
.btc-sub{display:flex;align-items:center;gap:8px;font-size:.9rem}
.btc-chg{font-weight:700;padding:3px 9px;border-radius:999px}
.btc-chg.is-up{background:rgba(18,183,106,.18);color:#4ade80}
.btc-chg.is-down{background:rgba(240,68,56,.2);color:#ff8b82}
.btc-24{color:rgba(255,255,255,.6)}
.btc-spark{display:block;width:100%;height:64px;margin-top:14px}
.btc-spark path{stroke:#f7b84a}
.btc-range{text-align:right;font-size:.72rem;color:rgba(255,255,255,.5);margin-top:2px}
.btc-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.btc-stats small{display:block;color:rgba(255,255,255,.6);font-size:.75rem}
.btc-stats strong{font-size:.95rem}
.btc-rates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.btc-rate{background:var(--bg,#fff);border:1px solid var(--border,#e2e7ef);border-radius:16px;padding:14px}
.btc-rate small{display:block;color:var(--muted,#697586);font-size:.8rem;font-weight:600}
.btc-rate strong{display:block;font-size:1rem;margin:4px 0 2px;white-space:nowrap}
.btc-rate span{font-size:.75rem;color:var(--muted,#697586)}
.btc-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--bg-alt,#f5f7fa);padding:4px;border-radius:12px;margin-bottom:14px}
.btc-tabs button{border:0;background:transparent;padding:10px;border-radius:9px;font:inherit;font-weight:700;color:var(--muted,#697586);cursor:pointer}
.btc-tabs button.is-on{background:#fff;color:var(--text,#202938);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.btc-calc label{display:block;font-weight:600;margin-bottom:6px}
.btc-calc .input{font-size:1.2rem}
.btc-result{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;padding:12px 14px;background:var(--bg-alt,#f5f7fa);border-radius:12px}
.btc-result strong{font-size:1.05rem}
.btc-calc .btn-block,.kyc .btn-block{width:100%;margin-top:6px}
.btc-calc .btn[disabled]{opacity:.55;cursor:not-allowed}
.btc-steps h2{margin-bottom:12px}
.btc-steps ol{list-style:none;margin:0;padding:0}
.btc-steps li{display:flex;gap:12px;padding:12px 0;position:relative;opacity:.6}
.btc-steps li.is-now,.btc-steps li.is-done{opacity:1}
.btc-steps li:not(:last-child)::after{content:"";position:absolute;left:15px;top:46px;bottom:-4px;width:2px;background:var(--border,#e2e7ef)}
.btc-n{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--bg-alt,#f5f7fa);color:var(--muted,#697586)}
.is-now .btc-n{background:var(--brand,#fc0);color:#111}
.is-done .btc-n{background:#12b76a;color:#fff}
.btc-steps p{margin:.25rem 0 0;color:var(--muted,#697586);font-size:.9rem}
.btc-bad{color:var(--error,#dc2626)!important}
.btc-note{font-size:.78rem;color:var(--muted,#697586);text-align:center;margin:10px 8px 24px}
/* ID verification */
.kyc{max-width:640px;margin-inline:auto}
.kyc-h{font-size:1rem;margin:4px 0 12px}
.kyc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.kyc-item{min-width:0;display:flex;flex-direction:column;gap:2px}
.kyc-drop{position:relative;display:grid;place-items:center;aspect-ratio:4/5;border:2px dashed var(--border-strong,#cbd3df);border-radius:14px;background:var(--bg-alt,#f5f7fa);cursor:pointer;overflow:hidden;margin:0 0 6px}
.kyc-drop:focus-within{outline:3px solid var(--brand,#fc0);outline-offset:2px}
.kyc-drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.kyc-empty{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted,#697586);font-size:.8rem}
.kyc-empty .icon{width:26px;height:26px}
.kyc-drop.is-set{border-style:solid;border-color:#12b76a}
.kyc-drop.is-set .kyc-empty{display:none}
.kyc-label{font-size:.85rem}
.kyc-item small{color:var(--muted,#697586);font-size:.75rem;line-height:1.3}
.kyc-tips{margin:16px 0 8px;padding-left:18px;color:var(--muted,#697586);font-size:.85rem}
.kyc-privacy{display:flex;gap:8px;align-items:center;font-size:.8rem;color:var(--muted,#697586);margin:8px 0 14px}
.kyc-privacy .icon{width:16px;height:16px;flex:none}
@media(max-width:420px){.btc-price{font-size:1.65rem}.kyc-grid{gap:8px}}

.btc-rate.is-buy strong{color:#c2610a}
.btc-rate.is-sell strong{color:#c0392b}

.btc-closed{margin:8px 0;font-size:.85rem;color:var(--muted,#697586)}
.btc-closed:empty{display:none}
.btc-addr{word-break:break-all;background:var(--bg-alt,#f5f7fa);padding:10px 12px;border-radius:10px;font-size:.9rem}
.receipt-row strong.wrap{word-break:break-all;text-align:right}

/* Dashboard Bitcoin card */
.btc-mini{background:linear-gradient(160deg,#0d1b2e,#14294a);color:#fff;border-radius:18px;padding:16px;margin:0 0 16px;box-shadow:0 6px 20px rgba(13,27,46,.2)}
.btc-mini-top{display:flex;align-items:center;gap:12px}
.btc-mini-name{min-width:0}
.btc-mini-name strong{display:block}
.btc-mini-name small{color:rgba(255,255,255,.65);font-size:.78rem}
.btc-mini-price{margin-left:auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.btc-mini-price strong{font-size:1.15rem}
.btc-mini-price .btc-chg{font-size:.75rem;padding:2px 8px}
.btc-mini-rates{display:flex;justify-content:space-between;gap:8px;margin:14px 0;padding:10px 12px;background:rgba(255,255,255,.07);border-radius:12px;font-size:.82rem;color:rgba(255,255,255,.7)}
.btc-mini-rates strong{display:block;color:#fff;font-size:.95rem;margin-top:2px}
.btc-mini-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btc-mini .btn{text-align:center;border:0;font-weight:700;color:#fff}
.btc-mini .btc-buy{background:linear-gradient(110deg,#ee7d2e,#f5c84a)}
.btc-mini .btc-sell{background:#e05243}
.btc-mini .btn.is-out{opacity:.5;filter:saturate(.6);cursor:not-allowed}
.btc-tabs small{display:block;font-size:.65rem;font-weight:600;opacity:.7}

/* Bitcoin trade form (v2) */
.btc-trade{padding:18px 16px}
.btc-line{margin:0 0 14px;font-size:.95rem;color:var(--muted,#697586)}
.btc-line strong{color:var(--text,#202938)}
.btc-tag{display:inline-block;margin-left:4px;font-size:.72rem;font-weight:700;color:#b45309;background:#fef3c7;padding:2px 8px;border-radius:999px;vertical-align:middle}
.btc-field{display:flex;gap:12px;align-items:flex-end;margin-bottom:14px}
.btc-field>div{flex:1;min-width:0}
.btc-field label{display:block;font-size:.82rem;font-weight:600;color:var(--muted,#697586);margin-bottom:4px}
.btc-flag{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800;background:#e8f0fe;color:#1d4ed8}
.btc-flag.is-gh{background:#fef3c7;color:#92400e;font-size:.78rem}
.btc-trade .btc-field .input{font-size:1.1rem}
.btc-get,.btc-total,.btc-paywith{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--bg-alt,#f5f7fa);margin-bottom:14px}
.btc-get strong{color:#c2610a}
.btc-total{background:#fff8e1;border:1px solid #fde68a}
.btc-total strong{font-size:1.15rem}
.btc-paywith{font-size:.88rem}
.btc-paywith a{font-weight:700;margin-left:auto}
.btc-agree{margin:6px 0 10px;font-size:.9rem}
.btc-go{font-size:1.02rem;padding:14px}
.btc-orders-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.btc-orders-head h2{margin:0;font-size:1.05rem}
.btc-orders-head .input{max-width:170px;padding:8px 12px}
.btc-order{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border,#e2e7ef);text-decoration:none;color:inherit}
.btc-order[hidden]{display:none}
.btc-order-main{flex:1;min-width:0}
.btc-order-main strong{display:block;font-size:.92rem}
.btc-order-main small{display:block;color:var(--muted,#697586);font-size:.78rem}
.btc-coin-sm{width:38px;height:38px;font-size:1.25rem;flex:none}
.btc-coin-lg{width:84px;height:84px;font-size:3rem;margin:0 auto 12px;box-shadow:0 8px 24px rgba(247,147,26,.4)}
.btc-status{display:inline-block;font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:999px;background:#e5e7eb;color:#374151}
.btc-status.is-completed{background:#dcfce7;color:#15803d}
.btc-status.is-pending{background:#fef3c7;color:#b45309}
.btc-status.is-rejected,.btc-status.is-cancelled{background:#fee2e2;color:#b91c1c}
.btc-result-card{text-align:center;border-radius:22px;padding:26px 18px 24px;margin-bottom:14px;background:linear-gradient(160deg,#fff7e6,#fde9c0);color:#1f2937;box-shadow:0 6px 24px rgba(247,147,26,.18)}
.btc-result-card.is-rejected,.btc-result-card.is-cancelled{background:linear-gradient(160deg,#fff1f1,#fde0e0)}
.btc-result-card h1{font-size:1.25rem;margin:12px 0 4px}
.btc-ref{margin:0 0 8px;font-size:1.3rem;font-weight:800;letter-spacing:.02em}
.btc-big{margin:0 0 14px;color:#6b7280}
.btc-why{margin:8px 0 0;font-size:.9rem}
.btc-chain{background:linear-gradient(90deg,#3b4aa8,#4f9bdc);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:700;display:inline-block;text-decoration:none}
.btc-sum{cursor:pointer;font-weight:700;padding:10px 0}
.btc-sum+.receipt{margin-bottom:6px}

/* Bitcoin rating */
.btc-stars{display:flex;flex-direction:row-reverse;justify-content:center;gap:4px;margin:6px 0 14px}
.btc-stars input{position:absolute;opacity:0;pointer-events:none}
.btc-stars label{font-size:2.4rem;line-height:1;color:#cfd6e2;cursor:pointer;transition:color .12s}
.btc-stars input:checked~label,.btc-stars label:hover,.btc-stars label:hover~label{color:#f7b84a}
.btc-stars input:focus-visible+label{outline:3px solid var(--brand,#fc0);border-radius:6px}
.btc-stars-done{font-size:1.8rem;color:#f7b84a;margin:4px 0}
.btc-stars-done span{color:#cfd6e2}

.momo-send{margin:16px 0 6px;font-weight:700}
.momo-num{font-size:1.15rem;font-weight:700}
