/* ==========================================================================
   Storebez "App" storefront theme.
   Loaded only when the storefront theme is "app" (see layouts). Everything is
   scoped under body.theme-app so the Classic theme can never be affected.
   ========================================================================== */

body.theme-app, body.ax-auth {
    --ax-ground: #f5f5f7;
    --ax-card: #ffffff;
    --ax-ink: #1d1d1f;
    --ax-ink2: #6e6e73;
    --ax-ink3: #86868b;
    --ax-line: rgba(0, 0, 0, 0.08);
    --ax-glass: rgba(245, 245, 247, 0.78);
    --ax-brand: var(--ax-brand-raw, #5c4bc4);
    --ax-link: var(--ax-brand-ink, var(--ax-brand));
    --ax-brand-soft: color-mix(in srgb, var(--ax-brand) 11%, transparent);
    --ax-on-brand: var(--ax-on-brand-light, #ffffff);
    --ax-good: #1c9a72;
    --ax-good-ink: #0d7650;
    --ax-seg-text: #4a4a4f;
    --ax-danger: #c2362f;
    --ax-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 34px -14px rgba(0, 0, 0, 0.14);
    --ax-radius: 22px;
    --ax-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --ax-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;

    /* Re-point the legacy variables so every existing page picks up the new look.
       --primary-color follows the accessible brand token (lighter in dark mode), so older
       components that use it for text stay readable. */
    --primary-color: var(--ax-brand);
    --bg-primary: var(--ax-card);
    --bg-secondary: var(--ax-ground);
    --text-primary: var(--ax-ink);
    --text-secondary: var(--ax-ink2);
    --border-color: var(--ax-line);
    --border: 1px solid var(--ax-line);
    --box-shadow: var(--ax-shadow);

    background: var(--ax-ground);
    color: var(--ax-ink);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

[data-theme="dark"] body.theme-app, [data-theme="dark"] body.ax-auth {
    --ax-ground: #0b0b0e;
    --ax-card: #1c1c1e;
    --ax-ink: #f5f5f7;
    --ax-ink2: #a1a1a6;
    --ax-ink3: #8e8e93;
    --ax-line: rgba(255, 255, 255, 0.1);
    --ax-glass: rgba(11, 11, 14, 0.74);
    --ax-brand: var(--ax-brand-dark, #9a8cff);
    --ax-link: var(--ax-brand-dark, #9a8cff);
    --ax-on-brand: var(--ax-on-brand-dark, #111018);
    --ax-good: #35d6a0;
    --ax-good-ink: #35d6a0;
    --ax-seg-text: #d1d1d6;
    --ax-danger: #ff7a70;
    --ax-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
}

/* The site-wide stylesheets force one font on every element; this replaces it for the App theme only.
   Icon fonts keep working because the icon webfont sets its own font-family with !important. */
body.theme-app,
body.theme-app * { font-family: var(--ax-font); font-feature-settings: "cv11", "ss01", "calt"; }
body.theme-app h1, body.theme-app h2, body.theme-app h3, body.theme-app h4,
body.theme-app .ax-h1, body.theme-app .ax-brand, body.theme-app .ax-wallet__amount,
body.theme-app .ax-section__head h2, body.theme-app .ax-bn__copy strong,
body.theme-app .ax-profile__text strong, body.theme-app .ax-cta strong { font-family: var(--ax-display); letter-spacing: -0.02em; }
body.theme-app .ax-balance, body.theme-app .ax-tile > span:last-child, body.theme-app .ax-wallet__amount { font-variant-numeric: tabular-nums; }

:where(body.theme-app) a { color: inherit; }
body.theme-app .main-content { margin-left: 0; }
body.theme-app > .container,
body.theme-app .main-content > .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

/* ---------- header ---------- */
.ax-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--ax-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--ax-line);
}
.ax-header__row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.ax-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ax-ink); }
.ax-brand__logo { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.ax-brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ax-brand); color: var(--ax-on-brand); display: grid; place-items: center; font-size: 15px; }
.ax-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; }
.ax-links a { padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ax-ink2); white-space: nowrap; }
.ax-links a:hover { background: var(--ax-brand-soft); color: var(--ax-link); }
.ax-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ax-link-btn { font-weight: 600; font-size: 15px; color: var(--ax-link); padding: 6px 4px; }
.ax-pill-btn { height: 36px; padding: 0 16px; border-radius: 99px; background: var(--ax-brand); color: var(--ax-on-brand) !important; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; }
.ax-balance { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--ax-card); border: 1px solid var(--ax-line); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: var(--ax-shadow); }
.ax-balance i { color: var(--ax-link); font-size: 17px; }
.ax-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 1px solid var(--ax-line); display: block; flex-shrink: 0; }
.ax-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-actions .theme-toggle { position: relative; display: block; }
.ax-actions .theme-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.ax-actions .theme-toggle-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--ax-card); border: 1px solid var(--ax-line); display: grid; place-items: center; cursor: pointer; color: var(--ax-ink); font-size: 18px; }
.ax-actions .theme-icon { grid-area: 1 / 1; }
.ax-actions .theme-icon-sun { display: none; }
.ax-actions .theme-toggle-input:checked + .theme-toggle-btn .theme-icon-sun { display: block; }
.ax-actions .theme-toggle-input:checked + .theme-toggle-btn .theme-icon-moon { display: none; }

/* ---------- tab bar (phones and small tablets) ---------- */
.ax-tabbar { display: none; }
@media (max-width: 1023px) {
    .ax-links { display: none; }
    body.theme-app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .ax-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
        background: var(--ax-glass);
        backdrop-filter: saturate(180%) blur(22px);
        -webkit-backdrop-filter: saturate(180%) blur(22px);
        border-top: 1px solid var(--ax-line);
    }
    .ax-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ax-ink3); padding: 4px 0; }
    .ax-tab i { font-size: 23px; }
    .ax-tab.is-on { color: var(--ax-link); }
    .ax-header__row { padding: 10px 16px; }
    /* keep the WhatsApp button clear of the tab bar */
    body.theme-app .whatsapp-chat-float { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- footer ---------- */
.ax-footer { max-width: 1080px; margin: 24px auto 0; padding: 20px 16px 28px; text-align: center; color: var(--ax-ink3); font-size: 13px; }
.ax-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.ax-footer__links a { color: var(--ax-ink2); font-weight: 600; }
.ax-footer p { margin: 0; }

/* ---------- generic page pieces ---------- */
.ax-page { max-width: 640px; margin: 0 auto; }
.ax-h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 6px 0 6px; }
.ax-lede { color: var(--ax-ink2); font-size: 15.5px; margin: 0 0 18px; }
.ax-list { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--ax-shadow); }
.ax-list--single { margin-top: 18px; }
.ax-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--ax-line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: var(--ax-ink); cursor: pointer; }
.ax-list .ax-row:last-child { border-bottom: 0; }
.ax-row__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ax-brand-soft); color: var(--ax-link); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.ax-row__icon--dark { background: var(--ax-ink); color: var(--ax-card); }
.ax-row__text { flex: 1; min-width: 0; display: block; }
.ax-row__text strong { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ax-row__text small { display: block; color: var(--ax-ink2); font-size: 13px; }
.ax-row__chev { color: var(--ax-ink3); font-size: 18px; }
.ax-row--card { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); }
.ax-row--promo { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); margin-top: 6px; }
.ax-row--danger, .ax-row--danger .ax-row__icon { color: #d6453d; }
.ax-row--danger .ax-row__icon { background: rgba(214, 69, 61, 0.12); }
.ax-new { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--ax-brand-soft); color: var(--ax-link); }
.ax-empty { text-align: center; padding: 26px 16px; border-radius: var(--ax-radius); border: 1px dashed var(--ax-line); color: var(--ax-ink2); font-size: 14px; }
.ax-empty strong { display: block; color: var(--ax-ink); font-size: 16px; margin-bottom: 4px; }
.ax-profile { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); margin-bottom: 16px; }
.ax-profile__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ax-profile__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-profile__text strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.ax-profile__text small { color: var(--ax-ink2); font-size: 13.5px; }

.ax-btn { height: 48px; padding: 0 20px; border-radius: 16px; border: 0; font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.ax-btn--brand { background: var(--ax-brand); color: var(--ax-on-brand) !important; }
.ax-btn--light { background: #fff; color: #1d1d1f !important; }
.ax-btn--glass { background: rgba(255, 255, 255, 0.16); color: #fff !important; }

/* ---------- homepage ---------- */
.ax-home { max-width: 760px; margin: 0 auto; padding: 16px 16px 8px; }
.ax-intro h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 8px 0 8px; text-wrap: balance; }
.ax-intro p { color: var(--ax-ink2); font-size: 16px; margin: 0 0 18px; max-width: 520px; }
.ax-wallet { border-radius: 28px; padding: 20px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--ax-brand) 70%, transparent), transparent 60%), #17142e; box-shadow: var(--ax-shadow); margin-bottom: 16px; }
.ax-wallet__label { display: block; font-size: 13px; opacity: .7; }
.ax-wallet__amount { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.ax-wallet__actions { display: flex; gap: 10px; }
.ax-wallet__actions .ax-btn { flex: 1; height: 44px; font-size: 15px; }

.ax-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ax-trust div { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 12px 10px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ax-ink2); line-height: 1.25; }
.ax-trust i { display: block; margin: 0 auto 6px; color: var(--ax-link); font-size: 22px; }
.ax-chips { display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px; scrollbar-width: none; }
.ax-chips::-webkit-scrollbar { display: none; }
.ax-chips a { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--ax-card); border: 1px solid var(--ax-line); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.ax-chips i { color: var(--ax-link); font-size: 17px; }

.ax-section { margin-top: 26px; }
.ax-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ax-section__head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.ax-section__head a { font-size: 14px; font-weight: 600; color: var(--ax-link); }

.ax-rail { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ax-rail::-webkit-scrollbar { display: none; }
.ax-tile { flex: 0 0 148px; scroll-snap-align: start; display: block; }
.ax-tile__art { display: block; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--ax-brand-soft); box-shadow: var(--ax-shadow); }
.ax-tile__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-tile small { display: block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ax-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-tile strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.ax-tile > span:last-child { font-size: 13px; color: var(--ax-ink2); font-variant-numeric: tabular-nums; }

.ax-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.ax-quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; text-align: center; }
.ax-quick span { width: 58px; height: 58px; border-radius: 20px; background: var(--ax-card); border: 1px solid var(--ax-line); display: grid; place-items: center; color: var(--ax-link); font-size: 25px; box-shadow: var(--ax-shadow); }

.ax-cta { margin-top: 28px; padding: 18px; border-radius: 26px; background: var(--ax-card); border: 1px solid var(--ax-line); box-shadow: var(--ax-shadow); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ax-cta strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.ax-cta span { color: var(--ax-ink2); font-size: 13.5px; }

/* ---------- banners ---------- */
.ax-banners { margin-top: 6px; }
.ax-banners__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.ax-banners__track::-webkit-scrollbar { display: none; }
.ax-bn { container-type: inline-size; position: relative; flex: 0 0 88%; scroll-snap-align: center; border-radius: 28px; overflow: hidden; aspect-ratio: 2 / 1; color: #fff !important; isolation: isolate; box-shadow: var(--ax-shadow); display: block; }
@media (min-width: 700px) { .ax-bn { flex-basis: 62%; } }
.ax-bn__copy { position: absolute; left: 6cqw; top: 6cqw; bottom: 6cqw; width: 56%; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; }
.ax-bn__copy strong { display: block; font-size: clamp(22px, 8.2cqw, 44px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.ax-bn__copy em { display: block; margin-top: 8px; font-style: normal; font-size: clamp(12px, 3.7cqw, 17px); line-height: 1.35; opacity: .85; font-weight: 500; }
.ax-bn__cta { align-self: flex-start; background: rgba(255, 255, 255, 0.94); color: #1d1d1f; font-weight: 700; font-size: clamp(12px, 3.7cqw, 16px); padding: clamp(7px, 1.9cqw, 12px) clamp(14px, 4.2cqw, 24px); border-radius: 99px; }
.ax-bn__tag { position: absolute; top: 4cqw; right: 4cqw; z-index: 3; font-size: 2.8cqw; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1.1cqw 2.6cqw; border-radius: 99px; background: rgba(0, 0, 0, 0.38); color: #fff; backdrop-filter: blur(10px); }
.ax-bn--games { background: radial-gradient(90% 120% at 92% 0%, #8b6dff 0%, transparent 58%), radial-gradient(80% 100% at 0% 110%, #14b8a6 0%, transparent 52%), #0e0a26; }
.ax-bn--data { background: radial-gradient(70% 110% at 100% 100%, #8f7dff 0%, transparent 60%), linear-gradient(140deg, #5c4bc4, #2f2480); }
.ax-bn--boost { background: radial-gradient(80% 110% at 100% 0%, #ff6b9a 0%, transparent 56%), linear-gradient(140deg, #3a1d6e, #14102e); }
.ax-bn--reseller { background: radial-gradient(80% 110% at 100% 0%, #f5a524 0%, transparent 55%), radial-gradient(70% 100% at 0% 100%, #e5484d 0%, transparent 50%), #1a1030; }
.ax-bn--ad { background: linear-gradient(140deg, #26262b, #0f0f12); display: block; }
.ax-bn--ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-bn__art { position: absolute; inset: 0; z-index: 1; }
.ax-bn__art { left: auto; width: 54%; }
.ax-bn__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ax-gem { position: absolute; border-radius: 24%; background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.38); backdrop-filter: blur(8px); }
.ax-gem--1 { width: 22cqw; height: 22cqw; right: 9cqw; top: 9cqw; transform: rotate(14deg); }
.ax-gem--2 { width: 14cqw; height: 14cqw; right: 33cqw; top: 29cqw; transform: rotate(-12deg); background: linear-gradient(145deg, rgba(20, 184, 166, 0.9), rgba(20, 184, 166, 0.12)); }
.ax-gem--3 { width: 11cqw; height: 11cqw; right: 6cqw; bottom: 7cqw; transform: rotate(24deg); }
.ax-gem--4 { width: 13cqw; height: 13cqw; right: 33cqw; top: 36cqw; transform: rotate(-10deg); }
.ax-store { position: absolute; right: 7cqw; top: 9cqw; width: 30cqw; height: 34cqw; border-radius: 6cqw; background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08)); border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.35); transform: rotate(6deg); overflow: hidden; }
.ax-store b { position: absolute; left: 3cqw; right: 3cqw; height: 3cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.7); }
.ax-store b:nth-child(1) { top: 4cqw; width: 12cqw; right: auto; }
.ax-store b:nth-child(2) { top: 12cqw; height: 8cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.4); }
.ax-store b:nth-child(3) { top: 23cqw; height: 6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.28); }
.ax-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.ax-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--ax-line); transition: all .25s; }
.ax-dots i.is-on { width: 18px; background: var(--ax-ink2); }

/* ---------- ad zones in the App theme ---------- */
body.theme-app .hp-ad-wrap { padding: 16px 0 0; }
body.theme-app .hp-ad-inner { max-width: none; padding: 0; }
body.theme-app .hp-ad-box { border-radius: var(--ax-radius); background: var(--ax-card); border-color: var(--ax-line); }

/* ---------- existing pages, restyled ---------- */
body.theme-app .card,
body.theme-app .dash-panel,
body.theme-app .stat-card,
body.theme-app .action-card,
body.theme-app .info-card {
    border-radius: var(--ax-radius);
    border: 1px solid var(--ax-line);
    box-shadow: var(--ax-shadow);
    background: var(--ax-card);
}
body.theme-app .btn { border-radius: 14px; font-weight: 700; }
body.theme-app .btn-primary,
body.theme-app .product-detail-purchase-btn { background: var(--ax-brand); border-color: var(--ax-brand); color: var(--ax-on-brand); border-radius: 16px; }
body.theme-app .form-control,
body.theme-app input[type="text"],
body.theme-app input[type="email"],
body.theme-app input[type="password"],
body.theme-app input[type="number"],
body.theme-app input[type="tel"],
body.theme-app select,
body.theme-app textarea {
    border-radius: 14px;
    border: 1px solid var(--ax-line);
    background: var(--ax-card);
    color: var(--ax-ink);
}
body.theme-app .form-control:focus,
body.theme-app select:focus,
body.theme-app textarea:focus,
body.theme-app input:focus { outline: 2px solid var(--ax-brand); outline-offset: 1px; border-color: transparent; }
body.theme-app h1, body.theme-app h2, body.theme-app h3 { letter-spacing: -0.025em; }
body.theme-app .product-detail-page,
body.theme-app .page-hero { max-width: 1080px; margin-left: auto; margin-right: auto; }
body.theme-app table { border-radius: 14px; }
body.theme-app .container { padding-left: 16px; padding-right: 16px; }

@media (prefers-reduced-motion: reduce) {
    body.theme-app * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- extra components ---------- */
.ax-btn--line { background: transparent; border: 1px solid var(--ax-line); color: var(--ax-ink) !important; }
.ax-intro__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ax-page--wide { max-width: 1080px; }
.ax-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ax-banners { position: relative; }
.ax-arrow { display: none; }
.ax-search, .ax-subnav { display: none; }
.ax-search__results a[hidden], .ax-search__results p[hidden] { display: none; }

/* ==========================================================================
   Desktop (901px and up) is a different layout from the phone one: a two-row
   header with search and a service tab row, a wide hero beside a wallet or
   sign-up card, and multi-column grids instead of swipe rails.
   ========================================================================== */
@media (min-width: 1024px) {
    body.theme-app > .container,
    body.theme-app .main-content > .container { max-width: 1200px; padding: 28px 24px 40px; }

    /* header */
    .ax-header__row { max-width: 1200px; padding: 14px 24px; gap: 28px; }
    .ax-search { display: block; position: relative; flex: 0 1 440px; margin-left: 8px; }
    .ax-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ax-ink3); font-size: 18px; pointer-events: none; }
    .ax-search input { width: 100%; height: 44px; border-radius: 14px; border: 1px solid var(--ax-line); background: var(--ax-card); padding: 0 14px 0 42px; font-size: 15px; color: var(--ax-ink); }
    .ax-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; box-shadow: var(--ax-shadow); padding: 6px; z-index: 950; }
    .ax-search__results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
    .ax-search__results a:hover { background: var(--ax-brand-soft); }
    .ax-search__results a > i { width: 36px; height: 36px; border-radius: 10px; background: var(--ax-brand-soft); color: var(--ax-link); display: grid; place-items: center; font-size: 19px; }
    .ax-search__results strong { display: block; font-size: 14.5px; font-weight: 600; }
    .ax-search__results small { display: block; color: var(--ax-ink2); font-size: 12.5px; }
    .ax-search__none { margin: 0; padding: 14px 12px; color: var(--ax-ink2); font-size: 13.5px; }
    .ax-subnav { display: block; border-top: 1px solid var(--ax-line); }
    .ax-subnav__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .ax-subnav__inner::-webkit-scrollbar { display: none; }
    .ax-subnav a { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--ax-ink2); border-bottom: 2px solid transparent; white-space: nowrap; }
    .ax-subnav a:hover { color: var(--ax-ink); }
    .ax-subnav a.is-on { color: var(--ax-link); border-bottom-color: var(--ax-brand); }

    /* home */
    .ax-home { max-width: 1200px; padding: 28px 24px 16px; }
    .ax-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
    .ax-hero-main { order: 1; min-width: 0; }
    .ax-hero-side { order: 2; display: flex; }
    .ax-hero-side > * { flex: 1; }
    .ax-banners__track { margin: 0; padding: 0; scroll-padding: 0; }
    .ax-bn { flex: 0 0 100%; aspect-ratio: 2.6 / 1; border-radius: 30px; }
    .ax-bn__copy { width: 52%; }
    .ax-arrow { display: grid; place-items: center; position: absolute; top: calc(50% - 24px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(20, 20, 24, 0.45); color: #fff; backdrop-filter: blur(10px); cursor: pointer; z-index: 5; font-size: 20px; opacity: 0; transition: opacity .2s; }
    .ax-banners:hover .ax-arrow, .ax-arrow:focus-visible { opacity: 1; }
    .ax-arrow--prev { left: 14px; }
    .ax-arrow--next { right: 14px; }
    .ax-intro { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 30px; box-shadow: var(--ax-shadow); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
    .ax-intro h1 { font-size: 28px; margin-top: 0; }
    .ax-wallet { margin-bottom: 0; display: flex; flex-direction: column; justify-content: space-between; border-radius: 30px; padding: 26px; }
    .ax-wallet__amount { font-size: 42px; }
    .ax-trust { margin-top: 22px; gap: 14px; }
    .ax-trust div { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; padding: 16px; }
    .ax-trust i { display: inline; margin: 0; font-size: 22px; }
    .ax-chips { display: none; }
    .ax-section { margin-top: 44px; }
    .ax-section__head h2 { font-size: 26px; }
    .ax-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; margin: 0; padding: 0; overflow: visible; }
    .ax-tile { flex: none; transition: transform .2s; }
    .ax-tile:hover { transform: translateY(-3px); }
    .ax-quick { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .ax-quick a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); font-size: 15px; font-weight: 600; text-align: left; transition: transform .2s; }
    .ax-quick a:hover { transform: translateY(-2px); }
    .ax-quick span { width: 46px; height: 46px; border-radius: 14px; background: var(--ax-brand-soft); border: 0; box-shadow: none; font-size: 23px; flex-shrink: 0; }
    .ax-list--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; background: none; border: 0; box-shadow: none; overflow: visible; }
    .ax-list--grid .ax-row,
    .ax-list--grid .ax-row:last-child { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); padding: 18px; }
    .ax-cta { padding: 26px 30px; }

    /* hubs */
    .ax-account { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "p l" "s l" ". l"; grid-template-rows: auto auto 1fr; gap: 0 24px; align-items: start; max-width: 1080px; }
    .ax-account__profile { grid-area: p; }
    .ax-account__out { grid-area: s; margin-top: 0; }
    .ax-account__list { grid-area: l; }
    .ax-footer { max-width: 1200px; }

    /* single-form service pages read better as a centred card than a full-width one */
    body.theme-app .vtu-card { max-width: 640px; margin-left: auto; margin-right: auto; }
    body.theme-app .number-card,
    body.theme-app .smm-card { max-width: 820px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Homepage product showcases
   ========================================================================== */
.ax-tile__art { display: grid; place-items: center; position: relative; color: #fff; }
.ax-tile__art i { font-size: 56px; position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.ax-tile__art::after { content: ''; position: absolute; width: 90%; height: 90%; border-radius: 50%; right: -35%; top: -35%; background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 65%); }
.ax-art--ig { background: linear-gradient(135deg, #feda75, #fa7e1e 28%, #d62976 60%, #962fbf 85%, #4f5bd5); }
.ax-art--tt { background: radial-gradient(70% 70% at 15% 15%, #25f4ee66, transparent 60%), radial-gradient(70% 70% at 90% 90%, #fe2c5566, transparent 60%), #0c0c10; }
.ax-art--yt { background: linear-gradient(135deg, #ff6767, #c4000b); }
.ax-art--fb { background: linear-gradient(135deg, #4a98ff, #0b4fc4); }
.ax-art--x { background: linear-gradient(135deg, #3d3d44, #050506); }
.ax-art--wa { background: linear-gradient(135deg, #4be37c, #0b8a3f); }
.ax-art--tg { background: linear-gradient(135deg, #52c8ff, #1485c9); }
.ax-art--gg { background: linear-gradient(135deg, #ffffff, #e8eefc); }
.ax-art--gg i { color: #4285f4; filter: none; }
.ax-art--logs { background: linear-gradient(135deg, #8b72ff, #3a2d8a); }
.ax-art--logs img { position: relative; z-index: 1; width: 56%; height: 56%; object-fit: contain; }
.ax-tile em { font-style: normal; opacity: .7; font-size: 12px; }

.ax-nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ax-net { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); }
.ax-net__logo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); font-family: var(--ax-display); }
.ax-net--mtn { background: #ffcc00; color: #1a1400; }
.ax-net--airtel { background: #e4002b; color: #fff; }
.ax-net--glo { background: #007a36; color: #fff; }
.ax-net--nm { background: #0b6b3a; color: #fff; }
.ax-net__text strong { display: block; font-size: 15.5px; font-weight: 700; }
.ax-net__text small { color: var(--ax-ink2); font-size: 12.5px; }
.ax-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.ax-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; }
.ax-plan__text small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ax-ink3); }
.ax-plan__text strong { font-size: 15px; font-weight: 700; }
.ax-plan__price { font-weight: 800; color: var(--ax-link); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
    .ax-nets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .ax-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .ax-tile__art i { font-size: 62px; }
}

/* ==========================================================================
   Inner pages: the same design language as the homepage (and the mock-up):
   bare form on the page background, big title, soft tall inputs, pill controls.
   ========================================================================== */
.ax-back { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 16px; color: var(--ax-link) !important; margin: 0 0 6px -4px; padding: 4px; }
.ax-back i { font-size: 20px; }
@media (min-width: 1024px) { .ax-back { display: none; } }

body.theme-app .vtu-card,
body.theme-app .number-card,
body.theme-app .smm-card,
body.theme-app .social-logs-page,
body.theme-app .game-topups-page,
body.theme-app .gateway-card { background: transparent; border: 0; box-shadow: none; padding: 0 !important; }
body.theme-app .vtu-head { display: block; margin-bottom: 18px; }
body.theme-app .vtu-head .vtu-icon, body.theme-app .vtu-divider { display: none; }
body.theme-app .vtu-head h2,
body.theme-app h2.title,
body.theme-app .container-header .title { font-family: var(--ax-display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 6px; color: var(--ax-ink); }
body.theme-app .vtu-head p, body.theme-app .desc { font-size: 15.5px; color: var(--ax-ink2); margin: 0 0 16px; }

body.theme-app .form-label,
body.theme-app .vtu-label { font-size: 13px; font-weight: 600; color: var(--ax-ink2); margin: 0 0 8px 4px; display: block; }
body.theme-app .form-control,
body.theme-app select.form-control,
body.theme-app input[type="text"], body.theme-app input[type="email"], body.theme-app input[type="password"],
body.theme-app input[type="number"], body.theme-app input[type="tel"], body.theme-app input[type="search"], body.theme-app input[type="url"] {
    height: 56px; border-radius: 18px; font-size: 17px; font-weight: 600; padding: 0 16px; letter-spacing: -0.01em;
}
body.theme-app textarea.form-control, body.theme-app textarea { height: auto; padding: 14px 16px; font-size: 16px; }
body.theme-app .form-control::placeholder, body.theme-app input::placeholder { color: var(--ax-ink3); font-weight: 500; }
body.theme-app .form-group { margin-bottom: 18px; }
body.theme-app .btn, body.theme-app .btn-primary { min-height: 52px; border-radius: 16px; font-size: 16px; font-weight: 700; }
body.theme-app .btn-block { width: 100%; }

/* network tiles and tabs become a segmented control */
body.theme-app .vtu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; background: var(--ax-line); padding: 3px; border-radius: 14px; margin-bottom: 20px; }
body.theme-app .vtu-tile { border: 0; border-radius: 11px; background: transparent; color: var(--ax-ink2); font-weight: 600; font-size: 14px; padding: 11px 6px; box-shadow: none; transform: none; }
body.theme-app .vtu-tile:hover { transform: none; color: var(--ax-ink); }
body.theme-app .vtu-tile.active { background: var(--ax-card); color: var(--ax-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
body.theme-app .tab-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ax-line); padding: 3px; border-radius: 14px; border: 0; gap: 0; margin-bottom: 18px; }
body.theme-app .tab-btn { border: 0; background: transparent; border-radius: 11px; font-weight: 600; color: var(--ax-ink2); padding: 11px 6px; box-shadow: none; min-height: 0; }
body.theme-app .tab-btn.active { background: var(--ax-card); color: var(--ax-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
body.theme-app .vtu-quick { gap: 8px; margin-top: 12px; }
body.theme-app .vtu-quick button { border-radius: 99px; padding: 9px 16px; background: var(--ax-card); border: 1px solid var(--ax-line); font-size: 14px; font-weight: 600; }
body.theme-app .vtu-quick button:hover { border-color: var(--ax-brand); color: var(--ax-link); }

/* plan picker: the dropdown becomes a grid of option cards, always visible */
body.theme-app #select-plan .select-preview, body.theme-app #select-plan .select-search { display: none; }
body.theme-app #select-plan .select-dropdown { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; box-shadow: none; padding: 0; margin: 0; }
body.theme-app #select-plan .select-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: none; overflow: visible; }
body.theme-app #select-plan .select-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 0; padding: 14px; background: var(--ax-card); border: 1.5px solid var(--ax-line); border-radius: 18px; color: var(--ax-ink); }
body.theme-app #select-plan .select-item:hover { background: var(--ax-card); color: var(--ax-ink); border-color: var(--ax-brand); }
body.theme-app #select-plan .select-item.selected { border-color: var(--ax-brand); background: var(--ax-brand-soft); }
body.theme-app #select-plan .select-item-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
body.theme-app #select-plan .price { font-size: 13.5px; color: var(--ax-ink2); font-weight: 600; }
@media (min-width: 1024px) { body.theme-app #select-plan .select-list { grid-template-columns: repeat(3, 1fr); } }

/* pay bar (summary + buy button) */
body.theme-app .vtu-summary { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px 18px; margin-top: 8px; }
body.theme-app .vtu-summary .amount { font-family: var(--ax-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ax-paybar { display: block; }
.ax-paybar #buy-btn { margin-top: 14px; width: 100%; }
@media (max-width: 1023px) {
    body.theme-app:has(.ax-paybar) { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
    .ax-paybar { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 990; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ax-glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid var(--ax-line); }
    .ax-paybar .vtu-summary { flex: 1; display: block; background: none; border: 0; padding: 0; margin: 0; }
    .ax-paybar .vtu-summary .label { display: block; font-size: 12.5px; }
    .ax-paybar .vtu-summary .amount { font-size: 22px; }
    .ax-paybar #buy-btn { margin: 0; width: auto; flex: 0 0 auto; padding: 0 22px; }
}

/* orders, history and other table pages: cards instead of wide tables */
body.theme-app .card.mp-20 { background: transparent; border: 0; box-shadow: none; padding: 0 !important; }
body.theme-app .table-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.theme-app .logs-search-bar { border-radius: 14px; border: 1px solid var(--ax-line); background: var(--ax-card); }
body.theme-app table.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); overflow: hidden; box-shadow: var(--ax-shadow); }
body.theme-app table.table th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-ink3); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--ax-line); background: transparent; }
body.theme-app table.table td { padding: 14px 16px; border-bottom: 1px solid var(--ax-line); font-size: 14.5px; }
body.theme-app table.table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
    body.theme-app table.table, body.theme-app table.table tbody { display: block; background: none; border: 0; box-shadow: none; }
    body.theme-app table.table thead { display: none; }
    body.theme-app table.table tr { display: block; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 20px; padding: 6px 16px; margin-bottom: 12px; box-shadow: var(--ax-shadow); }
    body.theme-app table.table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ax-line); text-align: right; }
    body.theme-app table.table td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--ax-ink3); text-align: left; flex-shrink: 0; }
    body.theme-app table.table td:last-child { border-bottom: 0; }
}

/* product detail pages (game, steam, accounts) */
body.theme-app .product-detail-back { display: none; }
body.theme-app .product-detail-info.card, body.theme-app .product-detail-buy-card { background: var(--ax-card); border-radius: 26px; }
body.theme-app .product-detail-image-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--ax-shadow); }
body.theme-app .product-detail-title { font-family: var(--ax-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
body.theme-app .product-detail-price { font-family: var(--ax-display); font-weight: 800; color: var(--ax-link); }
body.theme-app .game-topups-header-icon, body.theme-app .social-logs-header-icon { display: none; }

/* ---------- fixes from the first full-page review ---------- */
/* the site stylesheet sets .container to 90% wide; the App theme manages its own gutters */
body.theme-app > .container,
body.theme-app .main-content > .container { width: 100%; }
body.theme-app .ax-search input { height: 44px; padding: 0 14px 0 42px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.ax-rail { scroll-padding: 0 16px; }
@media (min-width: 1024px) {
    .ax-rail--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ax-rail--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 14px; }
    .ax-rail--6 .ax-tile__art i { font-size: 52px; }
}
body.theme-app #select-plan .select-item:only-child,
body.theme-app #select-plan .select-item:not([data-value]) { grid-column: 1 / -1; }
body.theme-app #select-plan .select-item:not([data-value]) { border-style: dashed; color: var(--ax-ink2); background: transparent; }
body.theme-app:has(.ax-paybar) .whatsapp-chat-float { bottom: calc(170px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 1024px) { body.theme-app:has(.ax-paybar) .whatsapp-chat-float { bottom: 40px !important; } }

/* section titles inside forms stay modest; only the page title is large */
body.theme-app .gateway-card .title,
body.theme-app .gateway-card h2.title { font-size: 20px; margin: 18px 0 10px; }
body.theme-app .smm-card > h2.title, body.theme-app .number-card > h2.title { margin-bottom: 16px; }
body.theme-app .social-logs-header, body.theme-app .game-topups-header { display: block; }
body.theme-app .social-logs-header-text, body.theme-app .game-topups-header-text { margin: 0; padding: 0; }

/* ==========================================================================
   Product photos: show the uploaded image itself, no tinted background, with a
   border and a buffer of space around it so it never touches the frame.
   ========================================================================== */
.ax-tile__art--photo,
body.theme-app .game-topups-row-thumb,
body.theme-app .product-detail-image-wrap:not(.product-detail-image-placeholder),
body.theme-app .social-logs-row-thumb { background: var(--ax-card); border: 1px solid var(--ax-line); box-shadow: var(--ax-shadow); }
.ax-tile__art--photo { padding: 12px; }
.ax-tile__art--photo::after { display: none; }
.ax-tile__art--photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; display: block; position: relative; z-index: 1; }
body.theme-app .game-topups-row-thumb,
body.theme-app .social-logs-row-thumb { padding: 6px; border-radius: 16px; overflow: hidden; }
body.theme-app .game-topups-row-thumb img,
body.theme-app .social-logs-row-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; display: block; }
body.theme-app .product-detail-image-wrap:not(.product-detail-image-placeholder) { padding: 14px; }
body.theme-app .product-detail-image-wrap:not(.product-detail-image-placeholder) img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; display: block; }


/* ==========================================================================
   Compact homepage: smaller tiles, list sections, pill links
   ========================================================================== */
.ax-section { margin-top: 22px; }
.ax-section__head { margin-bottom: 10px; }
.ax-section__head h2 { font-size: 19px; }

/* small picture tiles */
.ax-rail { gap: 12px; }
.ax-tile { flex: 0 0 96px; }
.ax-tile__art { border-radius: 16px; }
.ax-tile__art i { font-size: 32px; }
.ax-tile__art--photo { padding: 8px; }
.ax-tile__art--photo img { border-radius: 10px; }
.ax-tile strong { font-size: 13px; margin-top: 7px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ax-tile > span:last-child { font-size: 12px; }
.ax-tile small { margin-top: 7px; font-size: 10px; }

/* list rows (icon or picture, text, chevron) */
.ax-lrows { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); overflow: hidden; box-shadow: var(--ax-shadow); }
.ax-lrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ax-line); min-width: 0; transition: background .15s; }
.ax-lrow:last-child { border-bottom: 0; }
.ax-lrow:hover { background: var(--ax-brand-soft); }
.ax-lrow__art { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; overflow: hidden; }
.ax-lrow__art i { font-size: 21px; }
.ax-lrow__art--photo { background: var(--ax-card); border: 1px solid var(--ax-line); padding: 4px; }
.ax-lrow__art--photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; }
.ax-lrow__text { flex: 1; min-width: 0; }
.ax-lrow__text strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-lrow__text small { display: block; color: var(--ax-ink2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ax-lrow__chev { color: var(--ax-ink3); font-size: 16px; }

/* pill links (airtime, data, cable, electricity) */
.ax-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ax-pills a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 99px; background: var(--ax-card); border: 1px solid var(--ax-line); font-weight: 600; font-size: 14px; }
.ax-pills a i { color: var(--ax-link); font-size: 17px; }
.ax-pills a:hover { border-color: var(--ax-brand); }

/* smaller network cards and plan rows */
.ax-nets { gap: 8px; margin-bottom: 8px; }
.ax-net { padding: 9px 12px; gap: 10px; border-radius: 16px; box-shadow: none; }
.ax-net__logo { width: 34px; height: 34px; font-size: 14px; }
.ax-net__text strong { font-size: 14px; }
.ax-net__text small { font-size: 12px; }
.ax-plans { gap: 8px; margin-bottom: 0; }
.ax-plan { padding: 10px 14px; border-radius: 14px; }
.ax-plan__text strong { font-size: 14px; }

@media (min-width: 1024px) {
    .ax-section { margin-top: 30px; }
    .ax-section__head h2 { font-size: 22px; }
    .ax-rail, .ax-rail--4, .ax-rail--6 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 14px; }
    .ax-tile { flex: none; }
    .ax-tile__art i { font-size: 38px; }
    .ax-tile strong { font-size: 13.5px; }
    .ax-lrows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ax-lrows--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ax-lrow { border-right: 1px solid var(--ax-line); }
    .ax-lrows .ax-lrow:nth-child(2n) { border-right: 0; }
    .ax-lrows--3 .ax-lrow:nth-child(2n) { border-right: 1px solid var(--ax-line); }
    .ax-lrows--3 .ax-lrow:nth-child(3n) { border-right: 0; }
    .ax-nets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .ax-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* keep the phone list short: the full set is one tap away under "See all" */
@media (max-width: 1023px) {
    .ax-lrows--3 .ax-lrow:nth-child(n+9) { display: none; }
}


/* ==========================================================================
   Dashboard shell: sidebar + top bar (desktop), compact header (phone)
   ========================================================================== */
.ax-sidebar { display: none; }
.ax-header__row { flex-wrap: wrap; gap: 12px 16px; }
.ax-header__brand { order: 1; }
.ax-actions { order: 2; margin-left: auto; }
.ax-search { display: block; position: relative; order: 3; flex: 1 1 100%; margin: 0; }
.ax-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ax-ink3); font-size: 18px; pointer-events: none; }
.ax-search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--ax-line); background: var(--ax-card); padding: 0 14px 0 42px; font-size: 15px; font-weight: 500; color: var(--ax-ink); }
.ax-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; box-shadow: var(--ax-shadow); padding: 6px; z-index: 950; max-height: 60vh; overflow: auto; }
.ax-search__results[hidden] { display: none; }
.ax-search__results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.ax-search__results a[hidden], .ax-search__none[hidden] { display: none; }
.ax-search__results a:hover { background: var(--ax-brand-soft); }
.ax-search__results a > i { width: 36px; height: 36px; border-radius: 10px; background: var(--ax-brand-soft); color: var(--ax-link); display: grid; place-items: center; font-size: 19px; }
.ax-search__results strong { display: block; font-size: 14.5px; font-weight: 600; }
.ax-search__results small { display: block; color: var(--ax-ink2); font-size: 12.5px; }
.ax-search__none { margin: 0; padding: 14px 12px; color: var(--ax-ink2); font-size: 13.5px; }
.ax-subnav { display: none !important; }

.ax-balance small { display: block; font-size: 11px; font-weight: 500; color: var(--ax-ink2); line-height: 1.1; }
.ax-balance { height: 44px; }
.ax-balance span { line-height: 1.2; }

.ax-user { position: relative; }
.ax-user__btn { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ax-ink); font: inherit; }
.ax-user .ax-avatar { width: 40px; height: 40px; }
.ax-user__name { font-weight: 600; font-size: 14px; }
.ax-user__caret { font-size: 15px; color: var(--ax-ink3); }
.ax-user__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; box-shadow: var(--ax-shadow); padding: 6px; z-index: 960; }
.ax-user__menu[hidden] { display: none; }
.ax-user__menu a, .ax-user__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; color: var(--ax-ink); text-align: left; }
.ax-user__menu a:hover, .ax-user__menu button:hover { background: var(--ax-brand-soft); }
.ax-user__menu i { font-size: 18px; color: var(--ax-ink2); }

@media (max-width: 1023px) {
    .ax-balance, .ax-user__name, .ax-user__caret { display: none; }
    .ax-header__row { padding: 10px 16px 12px; }
}

@media (min-width: 1024px) {
    body.theme-app { padding-left: 248px; }
    .ax-sidebar { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; padding: 18px 14px 16px; background: var(--ax-card); border-right: 1px solid var(--ax-line); z-index: 980; overflow-y: auto; }
    .ax-sidebar__brand { padding: 4px 8px 18px; }
    .ax-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
    .ax-sidebar__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ax-ink2); transition: background .15s, color .15s; }
    .ax-sidebar__nav a i { font-size: 20px; }
    .ax-sidebar__nav a:hover { background: var(--ax-brand-soft); color: var(--ax-link); }
    .ax-sidebar__nav a.is-on { background: var(--ax-brand-soft); color: var(--ax-link); }
    .ax-sidebar__help { margin-top: auto; border-radius: 18px; padding: 16px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.28), transparent 55%), linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 55%, #12084a), var(--ax-brand)); }
    .ax-sidebar__help strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
    .ax-sidebar__help p { font-size: 12.5px; opacity: .85; margin: 0 0 12px; line-height: 1.45; }
    .ax-sidebar__help .ax-btn { width: 100%; height: 40px; font-size: 13.5px; border-radius: 12px; }
    .ax-header__brand { display: none; }
    .ax-header__row { max-width: none; padding: 12px 28px; flex-wrap: nowrap; }
    .ax-search { order: 0; flex: 0 1 560px; }
    .ax-actions { order: 0; margin-left: auto; }
    .ax-header { border-bottom: 1px solid var(--ax-line); }
    body.theme-app > .container, body.theme-app .main-content > .container { max-width: 1180px; }
    .ax-home { max-width: 1180px; padding: 24px 28px 8px; }
    .ax-footer { max-width: 1180px; }
}

/* ==========================================================================
   Home sections matching the reference layout
   ========================================================================== */
.ax-bn--hero { background: radial-gradient(70% 120% at 100% 0%, #8a6bff 0%, transparent 60%), radial-gradient(60% 90% at 0% 100%, #4338ca 0%, transparent 60%), linear-gradient(140deg, #2a1d86, #4a2fd0 55%, #6a3ff0); }
.ax-bn__chip { display: inline-block; font-weight: 600; font-size: clamp(10px, 2.9cqw, 13px); padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); margin-bottom: clamp(6px, 2cqw, 12px); }
.ax-bn--hero .ax-bn__copy strong { font-size: clamp(20px, 7.4cqw, 40px); }

.ax-wallet { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 60%, #170a58), var(--ax-brand)); }
.ax-wallet__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ax-wallet__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.ax-wallet__amount { margin: 2px 0 0; font-size: 30px; }
.ax-wallet__actions .ax-btn { height: 44px; border-radius: 12px; font-size: 14.5px; }
.ax-btn--glass { background: transparent; border: 1px solid rgba(255,255,255,.5); }
.ax-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ax-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; transition: border-color .15s; }
.ax-mini:hover { border-color: var(--ax-brand); }
.ax-mini__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--ax-brand-soft); color: var(--ax-link); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.ax-mini strong { display: block; font-size: 14px; font-weight: 600; }
.ax-mini small { color: var(--ax-ink2); font-size: 12px; }

.ax-trust { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 2px 16px; }
.ax-trust::-webkit-scrollbar { display: none; }
.ax-trust > div { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; font-size: 12px; color: var(--ax-ink2); }
.ax-trust > div > span:last-child { display: block; line-height: 1.35; }
.ax-trust strong { display: block; color: var(--ax-ink); font-size: 13.5px; font-weight: 600; }
.ax-trust__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--ax-brand-soft); color: var(--ax-link); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.ax-trust .ax-trust__icon i { font-size: 19px; margin: 0; }

.ax-section__sub { color: var(--ax-ink2); font-size: 13px; margin: 2px 0 0; }
.ax-section__head > a { display: inline-flex; align-items: center; gap: 4px; }
.ax-section__head > a i { font-size: 15px; }

/* quick services */
.ax-qs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.ax-qs::-webkit-scrollbar { display: none; }
.ax-qs__item { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ax-qs__icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 27px; }
.ax-qs__text strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }
.ax-qs__text small { display: none; }
.ax-qs__icon--purple { background: rgba(106,76,240,.14); color: #6a4cf0; }
.ax-qs__icon--pink { background: rgba(239,75,119,.14); color: #ef4b77; }
.ax-qs__icon--blue { background: rgba(47,123,232,.14); color: #2f7be8; }
.ax-qs__icon--green { background: rgba(31,157,98,.14); color: #1f9d62; }
.ax-qs__icon--orange { background: rgba(240,154,42,.16); color: #e08a14; }

/* popular services: one grouped list on phones, cards on desktop */
.ax-svcs { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); overflow: hidden; box-shadow: var(--ax-shadow); }
.ax-svc { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--ax-line); min-width: 0; transition: background .15s; }
.ax-svc:last-child { border-bottom: 0; }
.ax-svc:hover { background: var(--ax-brand-soft); }
.ax-svc__art { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ax-svc__art i { font-size: 22px; }
.ax-svc__text { flex: 1; min-width: 0; }
.ax-svc__text strong { display: block; font-size: 14.5px; font-weight: 600; }
.ax-svc__text small { display: block; color: var(--ax-ink2); font-size: 12.5px; }
.ax-svc__chev { color: var(--ax-ink3); font-size: 16px; }
.ax-svcs .ax-svc:nth-child(n+5) { display: none; }

/* best-selling accounts */
.ax-accs { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); overflow: hidden; box-shadow: var(--ax-shadow); }
.ax-acc { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ax-line); min-width: 0; transition: background .15s; }
.ax-acc:last-child { border-bottom: 0; }
.ax-acc:hover { background: var(--ax-brand-soft); }
.ax-acc__art { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; background: var(--ax-card); border: 1px solid var(--ax-line); padding: 4px; color: #fff; }
.ax-acc__art img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; }
.ax-acc__art.ax-art--logs { border: 0; padding: 0; }
.ax-acc__art i { font-size: 21px; }
.ax-acc__text { flex: 1; min-width: 0; }
.ax-acc__text strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-acc__text small { display: block; color: var(--ax-ink2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ax-acc__chev { color: var(--ax-ink3); font-size: 16px; }
.ax-accs .ax-acc:nth-child(n+7) { display: none; }

/* operators */
.ax-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ax-op { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; cursor: pointer; text-align: left; font: inherit; color: var(--ax-ink); transition: border-color .15s, background .15s; }
.ax-op:hover { border-color: var(--ax-brand); }
.ax-op.is-on { border-color: var(--ax-brand); background: var(--ax-brand-soft); box-shadow: 0 0 0 1px var(--ax-brand) inset; }
.ax-op:focus-visible, .ax-pills a:focus-visible, .ax-qs__item:focus-visible { outline: 2px solid var(--ax-brand); outline-offset: 2px; }
.ax-op__text { flex: 1; min-width: 0; }
.ax-op__text strong { display: block; font-size: 14px; font-weight: 600; }
.ax-op__text small { display: block; font-size: 12px; color: var(--ax-ink2); }
.ax-op__chev { color: var(--ax-ink3); font-size: 16px; }
.ax-plan[hidden] { display: none; }
.ax-plans__none { color: var(--ax-ink2); font-size: 13.5px; margin: 8px 0 0; }
.ax-plans__none[hidden] { display: none; }
.ax-plans__none a { color: var(--ax-link); text-decoration: underline; text-underline-offset: 3px; }

/* marketplace promo */
.ax-promo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 14px 16px; background: var(--ax-brand-soft); border: 1px solid color-mix(in srgb, var(--ax-brand) 25%, transparent); border-radius: var(--ax-radius); }
.ax-promo__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--ax-card); color: var(--ax-link); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.ax-promo__text { flex: 1 1 220px; min-width: 0; }
.ax-promo__text strong { display: block; font-size: 15.5px; font-weight: 700; }
.ax-promo__text small { display: block; color: var(--ax-ink2); font-size: 13px; }
.ax-promo .ax-btn { height: 42px; font-size: 14px; }

@media (min-width: 1024px) {
    .ax-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; overflow: visible; }
    .ax-trust > div { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px 16px; }
    .ax-qs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
    .ax-qs__item { flex: none; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; padding: 18px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 20px; box-shadow: var(--ax-shadow); transition: transform .2s, border-color .2s; }
    .ax-qs__item:hover { transform: translateY(-2px); border-color: var(--ax-brand); }
    .ax-qs__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 26px; }
    .ax-qs__text strong { font-size: 14.5px; margin-bottom: 3px; }
    .ax-qs__text small { display: block; color: var(--ax-ink2); font-size: 12.5px; line-height: 1.4; }
    .ax-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: none; border: 0; box-shadow: none; overflow: visible; }
    .ax-svc { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px 16px; }
    .ax-svcs .ax-svc:nth-child(n+5) { display: flex; }
    .ax-svcs .ax-svc:nth-child(n+7) { display: none; }
    .ax-accs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; background: none; border: 0; box-shadow: none; overflow: visible; }
    .ax-acc { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; padding: 12px; }
    .ax-acc__chev { display: none; }
    .ax-accs .ax-acc:nth-child(n+7) { display: flex; }
    .ax-accs .ax-acc:nth-child(n+11) { display: none; }
    .ax-ops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- fixes from the first render of the new dashboard ---------- */
.ax-bn--hero { aspect-ratio: 1.55 / 1; }
.ax-bn--hero .ax-bn__copy strong { font-size: clamp(19px, 6.4cqw, 36px); }
.ax-bn--hero .ax-bn__copy em { font-size: clamp(11px, 3.2cqw, 15px); }
@media (min-width: 1024px) {
    .ax-hero-side { flex-direction: column; gap: 10px; }
    .ax-hero-side > * { flex: none; }
    .ax-hero-side > .ax-wallet, .ax-hero-side > .ax-intro { flex: 1; }
    .ax-bn--hero { aspect-ratio: 2.1 / 1; }
    .ax-bn--hero .ax-bn__copy { width: 56%; }
}

/* keep the hero copy clear of the illustration */
.ax-bn--hero .ax-bn__art { width: 46%; }
.ax-bn--hero .ax-bn__copy { width: 54%; }
@media (min-width: 1024px) {
    .ax-bn--hero .ax-bn__art { width: 48%; }
    .ax-bn--hero .ax-bn__copy { width: 50%; }
    .ax-bn--hero .ax-bn__copy strong { font-size: clamp(22px, 5.6cqw, 34px); }
}


/* Virtual numbers: small phone/OTP cards (one phone icon for all, brand glyph kept tiny) */
.ax-otps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ax-otp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; min-width: 0; transition: border-color .15s, background .15s; }
.ax-otp:hover { border-color: var(--ax-brand); background: var(--ax-brand-soft); }
.ax-otp__ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(47, 123, 232, .14); color: #2f7be8; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.ax-otp__text { flex: 1; min-width: 0; }
.ax-otp__text strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-otp__text small { display: block; font-size: 11.5px; color: var(--ax-ink2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-otp__brand { font-size: 16px; color: var(--ax-ink3); flex-shrink: 0; }
.ax-otp__brand--wa { color: #25d366; } .ax-otp__brand--tg { color: #27a7e7; } .ax-otp__brand--ig { color: #d62976; }
.ax-otp__brand--gg { color: #4285f4; } .ax-otp__brand--fb { color: #1877f2; } .ax-otp__brand--tt { color: var(--ax-ink); }
@media (min-width: 1024px) {
    .ax-otps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .ax-otp { padding: 12px 14px; }
}

/* ==========================================================================
   Ada, the AI shop assistant
   ========================================================================== */
.ax-qs__icon--teal { background: rgba(13,148,136,.14); color: #0d9488; }
@media (min-width: 1024px) { .ax-qs { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } }

.ax-ada-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--ax-brand) 35%, transparent); background: var(--ax-brand-soft); color: var(--ax-link); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s; }
.ax-ada-btn:hover { background: color-mix(in srgb, var(--ax-brand) 18%, transparent); }
.ax-ada-btn i { font-size: 18px; }
@media (max-width: 1023px) { .ax-ada-btn span { display: none; } .ax-ada-btn { width: 42px; padding: 0; justify-content: center; } }
.ax-sidebar__help--ada strong i { font-size: 16px; margin-right: 2px; }
.ax-sidebar__help .ax-btn { cursor: pointer; border: 0; }

.ax-ada { position: fixed; z-index: 2147483000; right: 24px; bottom: 24px; width: 392px; height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 24px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35); overflow: hidden; }
.ax-ada[hidden] { display: none; }
.ax-ada__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.25), transparent 55%), linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 55%, #12084a), var(--ax-brand)); }
.ax-ada__avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.ax-ada__who { flex: 1; min-width: 0; }
.ax-ada__who strong { display: block; font-size: 16px; font-weight: 700; }
.ax-ada__who small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.ax-ada__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.ax-ada__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.ax-ada__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ax-ground); }
.ax-ada__msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; }
.ax-ada__msg--user { align-self: flex-end; align-items: flex-end; }
.ax-ada__msg--ada { align-self: flex-start; }
.ax-ada__bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.ax-ada__msg--ada .ax-ada__bubble { background: var(--ax-card); border: 1px solid var(--ax-line); border-bottom-left-radius: 6px; color: var(--ax-ink); }
.ax-ada__msg--user .ax-ada__bubble { background: var(--ax-brand); color: var(--ax-on-brand); border-bottom-right-radius: 6px; }
.ax-ada__bubble a { color: var(--ax-link); text-decoration: underline; text-underline-offset: 2px; }
.ax-ada__li { display: block; padding-left: 14px; position: relative; }
.ax-ada__li::before { content: '•'; position: absolute; left: 2px; }
.ax-ada__cards { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ax-ada__card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 14px; transition: border-color .15s; }
.ax-ada__card:hover { border-color: var(--ax-brand); }
.ax-ada__card span { flex: 1; min-width: 0; }
.ax-ada__card strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-ada__card small { display: block; font-size: 12px; color: var(--ax-ink2); }
.ax-ada__card i { color: var(--ax-ink3); }
.ax-ada__contact { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 99px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 14px; }
.ax-ada__typing { display: flex; gap: 5px; padding: 14px 16px; }
.ax-ada__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ax-ink3); animation: ax-ada-bounce 1.2s infinite ease-in-out; }
.ax-ada__typing i:nth-child(2) { animation-delay: .15s; } .ax-ada__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ax-ada-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ax-ada__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px 0; background: var(--ax-ground); }
.ax-ada__chips[hidden] { display: none; }
.ax-ada__chips::-webkit-scrollbar { display: none; }
.ax-ada__chips button { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ax-ada__chips button:hover { border-color: var(--ax-brand); color: var(--ax-link); }
.ax-ada__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px 4px; background: var(--ax-ground); }
.ax-ada__form textarea { flex: 1; resize: none; max-height: 110px; min-height: 44px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); font: inherit; font-size: 15px; line-height: 1.4; }
.ax-ada__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ax-brand); color: var(--ax-on-brand); font-size: 20px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.ax-ada__send:hover { filter: brightness(1.1); }
.ax-ada__form textarea:focus-visible, .ax-ada__send:focus-visible, .ax-ada__close:focus-visible, .ax-ada__chips button:focus-visible, .ax-ada-btn:focus-visible { outline: 2px solid var(--ax-brand); outline-offset: 2px; }
.ax-ada__note { margin: 0; padding: 4px 14px 10px; font-size: 11.5px; color: var(--ax-ink3); text-align: center; background: var(--ax-ground); }
@media (max-width: 1023px) {
    /* A floating island that grows out of the bottom-left corner, not a full-screen takeover */
    .ax-ada { inset: auto; left: 12px; right: auto; bottom: calc(var(--ax-ada-kb, 0px) + 84px + env(safe-area-inset-bottom)); width: min(372px, calc(100vw - 24px)); height: min(540px, calc(100dvh - var(--ax-ada-kb, 0px) - 150px - env(safe-area-inset-bottom))); min-height: 320px; border-radius: 28px; border: 1px solid var(--ax-line); box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12); transform-origin: 0 100%; animation: ax-ada-island .28s cubic-bezier(.2, .9, .3, 1.15); }
    body.ax-ada-typing .ax-ada { bottom: calc(var(--ax-ada-kb, 0px) + 10px); height: min(420px, calc(100dvh - var(--ax-ada-kb, 0px) - 70px)); min-height: 0; }
    .ax-ada__head { padding: 12px 14px; }
    .ax-ada__form { padding-bottom: 6px; }
    .ax-ada__note { padding-bottom: 10px; }
}
@keyframes ax-ada-island { from { opacity: 0; transform: scale(.35, .2); border-radius: 40px; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ax-ada { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .ax-ada__typing i { animation: none; } }

/* Chat launcher: takes the place of the old WhatsApp/live-chat float while Ada is on */
.ax-ada-fab { position: fixed; z-index: 1250; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 99px; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; background: linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 60%, #12084a), var(--ax-brand)); box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--ax-brand) 70%, #000); transition: transform .2s, box-shadow .2s; }
.ax-ada-fab:hover { transform: translateY(-2px); }
.ax-ada-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ax-brand); }
.ax-ada-fab i { font-size: 26px; }
.ax-ada-fab__dot { position: absolute; top: 9px; left: 36px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid var(--ax-brand); }
body.ax-ada-open .ax-ada-fab { display: none; }
@media (max-width: 1023px) {
    .ax-ada-fab { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
    .ax-ada-fab__label { display: none; }
    body.theme-app:has(.ax-paybar) .ax-ada-fab { bottom: calc(176px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .ax-ada-fab { transition: none; } }

/* ==========================================================================
   Inner pages: consistent widths and form layouts
   ========================================================================== */
/* Social boosting: form on the left, order summary on the right */
body.theme-app .smm-card { max-width: 1020px; }
body.theme-app .smm-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
body.theme-app .smm-order-form .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.theme-app .smm-order-summary { position: sticky; top: 92px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); padding: 18px; }
body.theme-app .order-summary-title { font-family: var(--ax-display); font-size: 16px; }
@media (max-width: 1023px) { body.theme-app .smm-order-layout { grid-template-columns: minmax(0, 1fr); } body.theme-app .smm-order-summary { position: static; } }

/* Virtual numbers: stack the fields, full-width buy button */
body.theme-app .number-card { max-width: 720px; }
body.theme-app .number-card .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.theme-app .number-card #buy-btn, body.theme-app .number-card .btn-primary[type="button"] { width: 100%; }

/* Wallet and other single-card pages sit centred like the service forms */
body.theme-app .container:has(.gateway-card) { max-width: 760px; }
body.theme-app .gateway-card .title { margin-top: 20px; }

/* the tutorials accordion that sits above most pages */
body.theme-app .accordion-card, body.theme-app [class*="tutorial"] { border-radius: var(--ax-radius); }

/* number page: summary above a full-width buy button */
body.theme-app .number-card .form-footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
body.theme-app .number-card .form-footer .summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px 18px; }
body.theme-app .number-card .form-footer .summary br { display: none; }
body.theme-app .number-card .form-footer .summary strong { font-family: var(--ax-display); font-size: 20px; font-variant-numeric: tabular-nums; }
body.theme-app .number-card .form-footer .btn { width: 100%; }

/* links inside content boxes use the brand colour */
body.theme-app .contact-box a, body.theme-app .page-body a { color: var(--ax-link); text-decoration: underline; text-underline-offset: 3px; }
body.theme-app .contact-box { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow); }

/* ==========================================================================
   Sidebar for signed-in customers: wallet, grouped sections, sign out
   ========================================================================== */
@media (min-width: 1024px) {
    .ax-sidebar { padding-bottom: 14px; }
    .ax-sidebar__brand { padding-bottom: 12px; }
    .ax-sidebar__nav a { padding: 9px 14px; font-size: 14px; }
    .ax-sidebar__nav a i { font-size: 19px; }
    .ax-sidebar__label { margin: 16px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ax-ink3); }
    .ax-sidebar__wallet { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 14px; border-radius: 16px; color: #fff; background: radial-gradient(110% 130% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(145deg, color-mix(in srgb, var(--ax-brand) 60%, #170a58), var(--ax-brand)); }
    .ax-sidebar__wallet-label { font-size: 12px; opacity: .85; }
    .ax-sidebar__wallet strong { font-family: var(--ax-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
    .ax-sidebar__wallet .ax-btn { height: 38px; font-size: 13.5px; border-radius: 11px; background: #fff; color: #1d1d1f !important; }
    .ax-sidebar__join { margin: 14px 0 0; padding: 14px; border-radius: 16px; background: var(--ax-brand-soft); border: 1px solid color-mix(in srgb, var(--ax-brand) 22%, transparent); }
    .ax-sidebar__join strong { display: block; font-size: 15px; font-weight: 700; }
    .ax-sidebar__join p { font-size: 12.5px; color: var(--ax-ink2); margin: 4px 0 12px; line-height: 1.45; }
    .ax-sidebar__join .ax-btn { width: 100%; height: 40px; font-size: 14px; border-radius: 12px; }
    .ax-sidebar__signin { display: block; text-align: center; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ax-link); }
    .ax-sidebar__foot { margin-top: auto; padding-top: 16px; }
    .ax-sidebar__foot .ax-sidebar__help { margin-top: 0; padding: 14px; }
    .ax-sidebar__foot .ax-sidebar__help p { margin-bottom: 10px; }
    .ax-sidebar__signout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px; margin-top: 8px; border: 0; background: none; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ax-ink2); cursor: pointer; transition: background .15s, color .15s; }
    .ax-sidebar__signout button i { font-size: 19px; }
    .ax-sidebar__signout button:hover { background: rgba(214, 69, 61, .1); color: #d6453d; }
}

/* ==========================================================================
   Audit fixes: contrast, touch targets, mobile polish
   ========================================================================== */
/* muted text that carries meaning uses the readable grey, never the decorative one */
.ax-footer, .ax-footer__links a, .ax-sidebar__label, .ax-tile small, .ax-plan__text small, .ax-svc__text small, .ax-acc__text small { color: var(--ax-ink2); }
body.theme-app .hp-ad-label, body.theme-app .hp-ad-label i { color: var(--ax-ink2); }
body.theme-app .vtu-tile, body.theme-app .tab-btn { color: var(--ax-seg-text); }
body.theme-app .vtu-tile.active, body.theme-app .tab-btn.active { color: var(--ax-ink); }
body.theme-app .social-logs-row-stock.in, body.theme-app .product-detail-stock.in, body.theme-app .stat-pill { color: var(--ax-good-ink); }
body.theme-app .stat-pill--info, body.theme-app .endpoint-method { color: var(--ax-link); }
body.theme-app .ax-row--danger, body.theme-app .ax-row--danger .ax-row__icon { color: var(--ax-danger); }
.ax-sidebar__signout button:hover { color: var(--ax-danger); }

/* Chat launcher hides while you scroll down so it never sits on a button, and returns when you scroll up */
.ax-ada-fab { transition: transform .25s ease, opacity .25s ease; }
.ax-ada-fab.is-away { transform: translateY(90px); opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .ax-ada-fab.is-away { transform: none; opacity: 1; pointer-events: auto; } }

@media (max-width: 1023px) {
    /* tab bar labels stay readable */
    .ax-tab { font-size: 11px; }
    .ax-tab span { font-size: 11px; }
    /* every tappable control is at least 44px */
    .ax-header__brand { min-height: 44px; display: inline-flex; align-items: center; }
    .ax-user__btn { min-width: 44px; min-height: 44px; justify-content: center; }
    .ax-link-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
    .ax-pill-btn { height: 44px; padding: 0 18px; }
    .ax-back { min-height: 44px; display: inline-flex; align-items: center; }
    .ax-footer__links { gap: 0 6px; }
    .ax-footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
    body.theme-app .vtu-quick button, body.theme-app .btn-buy, body.theme-app .tab-btn, body.theme-app .mp-store-btn, body.theme-app .dash-panel-link, body.theme-app .dash-hero-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    body.theme-app .vtu-quick button { padding: 0 18px; }
    /* empty states in the card-style tables */
    body.theme-app table.table td[colspan] { display: block; text-align: center; padding: 22px 8px; }
    body.theme-app table.table td[colspan]::before { display: none; }
    /* the tutorials strip moves below the page so the task comes first */
    body.theme-app .container:has(> .accordion-card) { display: flex; flex-direction: column; }
    body.theme-app .container > .accordion-card { order: 99; margin-top: 24px; }
}

/* ==========================================================================
   Sign in, sign up and reset pages (own layout) matched to the theme
   ========================================================================== */
body.ax-auth {
    --brand: var(--ax-brand);
    --color-background-primary: var(--ax-card);
    --color-background-secondary: var(--ax-ground);
    --color-background-tertiary: var(--ax-line);
    --color-text-primary: var(--ax-ink);
    --color-text-secondary: var(--ax-ink2);
    --color-border-tertiary: var(--ax-line);
    font-family: var(--ax-font);
    background: var(--ax-ground);
    -webkit-font-smoothing: antialiased;
}
body.ax-auth, body.ax-auth * { font-family: var(--ax-font); }
body.ax-auth .au-title, body.ax-auth .au-brand-name { font-family: var(--ax-display); letter-spacing: -0.02em; }
body.ax-auth .au-card { border-radius: 26px; border: 1px solid var(--ax-line); box-shadow: var(--ax-shadow); background: var(--ax-card); }
body.ax-auth .au-title { font-size: 24px; }
body.ax-auth .au-sub { font-size: 14px; color: var(--ax-ink2); }
body.ax-auth .au-field-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ax-ink2); }
body.ax-auth .au-input { height: 52px; border-radius: 16px; font-size: 16px; border: 1px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); }
body.ax-auth .au-input::placeholder { color: var(--ax-ink3); }
body.ax-auth .au-input:focus { border-color: var(--ax-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ax-brand) 20%, transparent); }
body.ax-auth .au-input-icon, body.ax-auth .au-pw-toggle { color: var(--ax-ink3); }
body.ax-auth .au-pw-toggle { width: 44px; height: 44px; right: 4px; justify-content: center; }
body.ax-auth .au-btn { height: 52px; border-radius: 16px; background: var(--ax-brand); color: var(--ax-on-brand); font-size: 16px; }
body.ax-auth .au-forgot, body.ax-auth .au-terms a, body.ax-auth .au-footer a { color: var(--ax-link); }
body.ax-auth .au-forgot { font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; }
body.ax-auth .au-terms, body.ax-auth .au-optional, body.ax-auth .au-back, body.ax-auth .auth-footer-line { color: var(--ax-ink2); }
body.ax-auth .au-terms { font-size: 12px; }
body.ax-auth .au-back { font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; }
body.ax-auth .au-captcha-val, body.ax-auth .au-captcha-refresh { border-radius: 16px; height: 52px; border: 1px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); }

.ax-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-style: normal; font-weight: 700; background: var(--ax-brand-soft); color: var(--ax-link); vertical-align: middle; }

/* ---- final mobile + colour pass ---- */
/* Legacy components that fill with the brand colour take the matching on-brand text, so they stay readable in dark mode. */
body.theme-app .mp-category-chips a.active,
body.theme-app .mp-search-bar .btn,
body.theme-app .mp-public-hero .btn-primary,
body.theme-app .mp-filter-selects .btn-primary,
body.theme-app .btn-primary, body.theme-app .btn-primary i { color: var(--ax-on-brand); }
body.theme-app .stat-pill--info { background: var(--ax-brand-soft); }
body.theme-app .stat-pill { background: color-mix(in srgb, var(--ax-good-ink) 12%, transparent); }

/* Reseller programme page: its cards used white fallbacks, which broke dark mode. */
body.theme-app { --card-bg: var(--ax-card); }
body.theme-app .rp-pricing-list li i { color: var(--ax-good-ink); }

@media (max-width: 1023px) {
    body.theme-app .ax-section__head > a { min-height: 44px; padding: 0 4px; align-items: center; }
    body.theme-app .ax-section__head { align-items: center; }
    body.theme-app .ax-btn { min-height: 44px; }
    body.theme-app .profile-image-btn { height: 44px; }
}

/* ---- readable small text + toast close target ---- */
@media (max-width: 1023px) {
    body.theme-app .ax-tab, body.theme-app .ax-tab span { font-size: 12px; }
    body.theme-app .ax-tile small { font-size: 11px; }
    body.theme-app .iziToast > .iziToast-close { width: 44px; height: 44px; background-size: 12px; }
}
body.theme-app .hp-ad-label { font-size: 11px; }
body.ax-auth .au-optional { font-size: 11px; }

/* Marketplace classifieds hero sits on the brand colour, so its text follows the on-brand token (readable in dark mode too). */
body.theme-app .mp-classifieds-hero { background: var(--ax-brand); color: var(--ax-on-brand); }
body.theme-app .mp-classifieds-hero-icon { color: var(--ax-on-brand); border-color: color-mix(in srgb, var(--ax-on-brand) 55%, transparent); }
body.theme-app .mp-classifieds-hero-chips a { color: var(--ax-on-brand); background: color-mix(in srgb, var(--ax-on-brand) 18%, transparent); min-height: 44px; font-size: 13px; }
body.theme-app .mp-classifieds-hero-chips i { opacity: 1; }
body.theme-app .logs-search-submit, body.theme-app .logs-search-submit span, body.theme-app .logs-search-submit i { color: var(--ax-on-brand); }
body.theme-app .logs-search-submit { background: var(--ax-brand); }

/* ---- phase 2: reseller storefronts and the Child Panel ---- */
/* A reseller's hero uses their own brand colour, not the platform purple */
.ax-bn--brand { background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--ax-brand-raw) 55%, #fff) 0%, transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--ax-brand-raw) 55%, #000), var(--ax-brand-raw)); color: var(--ax-on-brand-light, #fff); }
.ax-bn--brand .ax-bn__copy, .ax-bn--brand .ax-bn__copy strong, .ax-bn--brand .ax-bn__copy em { color: #fff; }
/* The WhatsApp button resellers set up sits above the tab bar and steps aside while scrolling, like the chat button */
body.theme-app .whatsapp-chat-float { transition: transform .2s, opacity .2s; }
body.theme-app .whatsapp-chat-float.is-away { transform: translateY(90px); opacity: 0; pointer-events: none; }
@media (max-width: 1023px) {
    body.theme-app .whatsapp-chat-float { width: 52px; height: 52px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1250; }
    body.theme-app .whatsapp-chat-float svg { width: 28px; height: 28px; }
    /* Panel stat cards: two compact columns instead of seven tall cards */
    body.theme-app .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
    body.theme-app .stat-card { padding: 14px; gap: 10px; border-radius: 18px; }
    body.theme-app .stat-icon { width: 36px; height: 36px; font-size: 19px; border-radius: 11px; }
    body.theme-app .stat-card-body .value { font-size: 19px; overflow-wrap: anywhere; }
    body.theme-app .stat-card-body .label { font-size: 12.5px; }
    body.theme-app .stat-card-header { gap: 6px; }
    body.theme-app .stat-pill { font-size: 11px; padding: 3px 8px; white-space: nowrap; }
}
@media (min-width: 1024px) { body.theme-app .whatsapp-chat-float.is-away { transform: none; opacity: 1; pointer-events: auto; } }
@media (max-width: 479px) { .ax-otps { grid-template-columns: 1fr; } } /* full-width rows on phones so names are never cut off */

/* File pickers: same pill look as every other button instead of the browser default */
body.theme-app input[type="file"].form-control { padding: 8px 10px; height: auto; min-height: 52px; font-size: 14px; color: var(--ax-ink2); display: flex; align-items: center; }
body.theme-app input[type="file"]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ax-brand-soft); color: var(--ax-link); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

/* Child Panel + store details found in the phase 2 audit */
body.theme-app .reseller-announcement { background: var(--ax-brand); color: var(--ax-on-brand); }
body.theme-app .reseller-announcement-close { color: var(--ax-on-brand); min-width: 44px; min-height: 44px; }
body.theme-app .dash-hero-btn.primary { background: #fff; color: var(--ax-brand-ink, #111); }
@media (max-width: 1023px) {
    body.theme-app .color-preset-chip { width: 44px; height: 44px; }
    body.theme-app .settings-nav-link { min-height: 44px; display: inline-flex; align-items: center; }
    body.theme-app td a, body.theme-app .ax-back, body.theme-app a[href*="reseller/customers"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Child Panel customers: the name and email stack as the card's title, and the forms use the full width on phones */
@media (max-width: 1023px) {
    body.theme-app #cust-table td:first-child { display: block; text-align: left; padding-bottom: 10px; }
    body.theme-app #cust-table td:first-child::before { display: none; }
    body.theme-app #cust-table td:first-child small { display: block; margin-top: 2px; overflow-wrap: anywhere; }
    body.theme-app #cust-table td:last-child { display: block; }
    body.theme-app #cust-table td:last-child::before { display: none; }
    body.theme-app #cust-table td:last-child .btn { width: 100%; }
    body.theme-app .form-grid > form { flex-direction: column; align-items: stretch !important; }
    body.theme-app .form-grid > form .form-group { min-width: 0 !important; width: 100%; }
    body.theme-app .form-grid > form .btn { width: 100%; }
}
