/* ════════════════════════════════════════════════════════
   Store — Main stylesheet
   ════════════════════════════════════════════════════════ */
:root {
    --accent: #f59e0b;
    --accent-light: #fcd34d;
    --accent-rgb: 245, 158, 11;
    --accent-glow: rgba(var(--accent-rgb), 0.28);
    --on-accent: #111;
    --bg: #0a0a0f;
    --bg2: #101018;
    --surface: #16161f;
    --surface2: #1d1d29;
    --border: rgba(255, 255, 255, 0.08);
    --border2: rgba(255, 255, 255, 0.14);
    --text: #f0f0f5;
    --text2: #9090a8;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #a855f7;
    /* text & state colours (light theme overrides these) */
    --text-soft: #c8c8d6;
    --accent-ink: var(--accent);         /* accent used as text */
    --accent-ink2: var(--accent-light);
    --ok: #86efac;  --ok2: #4ade80;  --err: #fca5a5;  --warn: #fbbf24;  --warn2: #fdba74;
    --info: #93c5fd;  --violet: #c4b5fd;  --violet2: #d8b4fe;
    --header-bg: rgba(10, 10, 15, .82);  --header-bg2: rgba(10, 10, 15, .9);
    --glass: rgba(22, 22, 31, .78);  --glass-soft: rgba(22, 22, 31, .7);  --glass-hover: rgba(29, 29, 41, .85);
    --star-off: #3a3a4c;  --row-hover: rgba(255, 255, 255, .02);  --dots: rgba(255, 255, 255, .07);
    --font-head: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans', Arial, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans', Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-main { min-height: 60vh; }
.section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.eyebrow { display: inline-block; color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--text2); }
.amber { color: var(--accent-ink); }

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 8px 28px var(--accent-glow); transform: translateY(-2px); }
.btn-outline { border-color: var(--border2); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.loading { pointer-events: none; opacity: .7; }
.link-arrow { color: var(--accent-ink); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: var(--accent-ink2); }

/* ── Header ──────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.03em; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 0 22px var(--accent-glow); }
.logo-text b { color: var(--accent-ink); font-weight: 700; }
.nav-search { flex: 1; max-width: 580px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.nav-search svg { position: absolute; left: 14px; color: var(--text2); pointer-events: none; }
.nav-search input { width: 100%; padding: 10px 16px 10px 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); outline: none; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background .2s, color .2s; }
.nav-icon:hover { background: var(--surface); color: var(--accent-ink); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.nav-initials { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
/* ── Alerts ──────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; border: 1px solid; font-size: 15px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: var(--err); }
.alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: var(--ok); }
.alert-info { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .3); color: var(--accent-ink2); }
/* ── Hero ────────────────────────────────── */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
    background-image: radial-gradient(var(--dots) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-orb-1 { width: 520px; height: 520px; right: -80px; top: -140px; background: rgba(var(--accent-rgb), .22); animation: orb 14s ease-in-out infinite; }
.hero-orb-2 { width: 380px; height: 380px; left: -120px; bottom: -160px; background: rgba(168, 85, 247, .16); animation: orb 18s ease-in-out infinite reverse; }
@keyframes orb { 50% { transform: translate(-40px, 30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.22fr 1fr; gap: 48px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); font-size: 13px; color: var(--text); margin-bottom: 22px; font-weight: 500; }
.ht-spark { color: var(--accent-ink); font-size: 14px; animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 50% { transform: rotate(90deg) scale(1.25); opacity: .7; } }
.hero h1 { font-size: calc(clamp(36px, 5.5vw, 70px) * var(--h1-scale, 1)); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 20px;
    -webkit-text-stroke: var(--h1-stroke, .014em) currentColor; paint-order: stroke fill; }   /* size & thickness: Admin → Appearance → 3 */   /* the thin outline makes the heading a bit bolder */
.hero h1 .line2 { -webkit-text-stroke-color: rgba(var(--accent-rgb), .85); }
.hero h1 .line2 {
    display: block; padding-bottom: .06em;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 40%, #fff 50%, var(--accent-light) 60%, var(--accent) 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero-desc { color: var(--text2); font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero-btn { margin-bottom: 26px; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .25); }
.btn-whatsapp:hover { background: #1ebe5a; box-shadow: 0 12px 34px rgba(37, 211, 102, .4); transform: translateY(-2px); }
.hero-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.hero-feat { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.hf-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent-ink); background: rgba(var(--accent-rgb), .12); }
.hero-feat strong { display: block; font-size: 13px; line-height: 1.3; }
.hero-feat small { display: block; color: var(--text2); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.hero-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hp-label { color: var(--text2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text2); }
.hp-mark { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }

/* right side: bag illustration (see "Hero illustration" further down) or a photo */
.hero-visual { position: relative; padding: 10px; }
.hero-img-wrap { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.4; border: 1px solid var(--border2); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ── Products band + cards (6 per row on desktop, 2 on phones) ── */
.products-band { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0 56px; scroll-margin-top: 72px; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.product-grid.shop-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.product-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 22px var(--accent-glow); }
.product-img { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--surface2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-card.is-soldout .product-img img { opacity: .45; filter: grayscale(.6); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 7px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.badge-new { background: var(--blue); color: #fff; }
.badge-hot { background: var(--red); color: #fff; }
.badge-sale { background: var(--accent); color: var(--on-accent); }
.badge-soldout { background: var(--red); color: #fff; }
.badge-low { background: #f97316; color: #fff; }
.badge-wholesale { background: #7c3aed; color: #fff; }
.badge-new-stock { background: var(--green); color: #06260f; }
.badge-low-stock { background: #f97316; color: #fff; }
.badge-sold-out { background: var(--red); color: #fff; }
.price-from { display: block; font-size: 10.5px; line-height: 1.1; font-weight: 600; color: var(--text2); letter-spacing: .02em; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.product-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a:hover { color: var(--accent-ink); }
.stars { color: var(--accent-ink); letter-spacing: 2px; font-size: 14px; }
.product-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.price-now { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price-sub { display: flex; align-items: center; gap: 5px; }
.price-old { color: var(--text2); text-decoration: line-through; font-size: 11px; }
.off-pill { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(34, 197, 94, .15); color: var(--ok); }
.btn-buy { flex-shrink: 0; padding: 6px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-soldout { background: var(--surface2); color: var(--text2); cursor: not-allowed; padding: 6px 10px; font-size: 11.5px; }

/* fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
.product-card.fade-in.visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } * { animation: none !important; } .testi-stars span { opacity: 1; transform: none; } }

/* ── Testimonials ────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; perspective: 1200px; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.testi {
    --mx: 50%; --my: 0%; --hl: var(--border2);
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 22px;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(from var(--ang), var(--border2), var(--border2) 60%, var(--hl) 80%, var(--border2) 100%) border-box;
    transform-style: preserve-3d;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* spotlight that follows the mouse */
.testi::before {
    content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .13), transparent 60%);
}
.testi:hover { --hl: rgba(var(--accent-rgb), .9); box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 30px rgba(var(--accent-rgb), .12); animation: testiSpin 4s linear infinite; }
.testi:hover::before { opacity: 1; }
.testi.fade-in.visible { transition: opacity .8s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); transition-delay: calc(var(--i, 0) * 120ms), 0s, 0s; }
@keyframes testiSpin { to { --ang: 360deg; } }

.testi-quote {
    position: absolute; top: -6px; right: 22px; z-index: -1; font-family: Georgia, serif; font-size: 120px; line-height: 1;
    color: rgba(var(--accent-rgb), .16); animation: quoteFloat 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.6s);
    transition: color .4s, transform .4s var(--ease);
}
.testi:hover .testi-quote { color: rgba(var(--accent-rgb), .32); }
@keyframes quoteFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(8px) rotate(-6deg); } }

/* stars pop in one by one when the card appears */
.testi-stars { display: inline-flex; gap: 2px; font-size: 17px; }
.testi-stars span { display: inline-block; opacity: 0; transform: scale(.3) rotate(-40deg); }
.testi-stars .off { color: var(--star-off); }
.testi.visible .testi-stars span { animation: starPop .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 150ms + var(--s) * 110ms + 300ms); }
.testi:hover .testi-stars .on { animation: starPop .5s var(--ease) forwards, starGlow 1.6s ease-in-out infinite; animation-delay: 0s, calc(var(--s) * 120ms); }
@keyframes starPop { 60% { opacity: 1; transform: scale(1.35) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes starGlow { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 10px rgba(var(--accent-rgb), .9); } }

.testi p { margin: 0; color: var(--text-soft); font-size: 15.5px; flex: 1; }
.testi-user { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.avatar-initials { position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); transition: transform .4s var(--ease); }
.avatar-initials::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .5); opacity: 0; }
.testi:hover .avatar-initials { transform: scale(1.08); }
.testi:hover .avatar-initials::after { animation: ringPulse 1.4s ease-out infinite; }
@keyframes ringPulse { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.testi-user strong { display: block; font-size: 15px; }
.testi-user span { font-size: 13px; color: var(--text2); }
.testi-user .avatar-initials { color: var(--on-accent); font-size: 15px; }
.testi-user .testi-verified { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ok); background: rgba(34, 197, 94, .12); white-space: nowrap; }

/* ── Newsletter ──────────────────────────── */
.newsletter { background: var(--accent); color: var(--on-accent); padding: 80px 0; position: relative; overflow: hidden; }
.newsletter::before, .newsletter::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .08); }
.newsletter::before { width: 420px; height: 420px; left: -120px; top: -200px; }
.newsletter::after { width: 300px; height: 300px; right: -60px; bottom: -160px; }
.newsletter-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 12px; }
.newsletter p { margin: 0 0 30px; font-size: 17px; opacity: .78; }
.pill-form { display: flex; max-width: 520px; margin: 0 auto; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.pill-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 20px; color: #111111; font-size: 15px; }
.pill-form .btn { flex-shrink: 0; }
.newsletter-msg { margin-top: 16px; font-weight: 700; min-height: 24px; }

/* ── Footer ──────────────────────────────── */
.site-footer { position: relative; background: radial-gradient(70% 120% at 0% 0%, rgba(var(--accent-rgb), .07), transparent 55%), var(--bg2); border-top: 1px solid var(--border); padding-top: 38px; }
.site-footer::before { content: ''; position: absolute; left: 50%; top: -1px; width: min(640px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .7), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 32px; align-items: start; }
.footer-grid h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin: 4px 0 14px; }
.footer-brand .logo { font-size: 21px; }
.footer-brand .logo-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
.footer-brand p { color: var(--text2); font-size: 13.5px; line-height: 1.6; margin: 12px 0 14px; max-width: 290px; }
.f-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--border2); transition: border-color .2s, color .2s, transform .2s; }
.f-pill:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.f-pill.f-wa svg { color: #25d366; }
.f-hours { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text2); width: 100%; margin-top: 2px; }
.f-hours i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.f-links { display: grid; gap: 2px; }
.f-links a { position: relative; width: fit-content; color: var(--text2); font-size: 14px; padding: 4px 0; transition: color .2s, transform .2s; }
.f-links a::before { content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity .2s, transform .2s; }
.f-links a:hover { color: var(--text); transform: translateX(4px); }
.f-links a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.fpay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 320px; }
.fpay > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fpay { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; transition: border-color .2s; }
.fpay:hover { border-color: var(--border2); }
.fpay-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.fpay-icon.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-bottom { border-top: 1px solid var(--border); color: var(--text2); font-size: 12.5px; }
.fb-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.fb-right { display: inline-flex; align-items: center; gap: 12px; }
.fb-credit { font-weight: 600; color: var(--text-soft); }
a.fb-credit:hover { color: var(--accent-ink); }
.fb-top { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: var(--accent); transition: transform .2s, box-shadow .2s; }
.fb-top:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--accent-glow); }
/* uploaded payment logos (Admin → Payments) */
.has-logo { background: #fff !important; padding: 2px; }
.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Breadcrumb & page header ────────────── */
.page-head { padding-top: 36px; padding-bottom: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0; }
.page-head h1 small { font-size: .5em; color: var(--text2); font-weight: 500; letter-spacing: 0; }

/* ── Forms ───────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label, .label { display: block; font-size: 14px; font-weight: 500; color: var(--text-soft); margin-bottom: 7px; }
.form-group label .req { color: var(--accent-ink); }
.form-control {
    width: 100%; padding: 13px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border2); outline: none;
    font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control[readonly], .form-control:disabled { opacity: .6; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090a8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12.5px; color: var(--text2); margin-top: 6px; display: block; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }

/* ── Shop ────────────────────────────────── */
.shop-layout { padding-bottom: 88px; }
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.shop-top p { margin: 0; color: var(--text2); font-size: 14.5px; }
.shop-top p strong { color: var(--text); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent-ink2); font-size: 13px; }
.chip:hover { background: rgba(var(--accent-rgb), .2); }
.empty-state { text-align: center; padding: 80px 24px; background: var(--surface); border: 1px dashed var(--border2); border-radius: var(--radius-lg); }
.empty-state .es-icon { width: 96px; height: 96px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); color: var(--accent-ink); }
.empty-state h2 { font-size: 26px; }
.empty-state p { color: var(--text2); margin: 0 auto 26px; max-width: 420px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 15px; transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pagination .disabled { opacity: .35; }
/* shop on phones: products keep loading while scrolling, so the page numbers hide */
body.shop-endless .pagination { display: none; }
.shop-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0 8px; color: var(--text-soft); font-size: 14px; }
.shop-more[hidden] { display: none; }
.shop-more-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: shopSpin .8s linear infinite; }
@keyframes shopSpin { to { transform: rotate(360deg); } }

/* ── Product detail ──────────────────────── */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
.pd-img { position: sticky; top: 96px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border2); background: var(--surface); aspect-ratio: 1; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-img .badge { top: 20px; left: 20px; font-size: 13px; padding: 7px 14px; }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 10px 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.pd-price strong { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--accent-ink); letter-spacing: -.03em; }
.pd-price del { color: var(--text2); font-size: 19px; }
.pd-desc { color: var(--text-soft); font-size: 16.5px; margin-bottom: 26px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.pd-stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pd-stock.low::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pd-stock.out::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-perk { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.pd-perk span:first-child { font-size: 20px; }

/* ── Quantity controls ───────────────────── */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border2); border-radius: 999px; background: var(--bg); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--text2); transition: color .2s, background .2s; }
.qty button:hover { color: var(--accent-ink); background: var(--surface2); }
.qty input { width: 46px; height: 40px; border: 0; background: none; text-align: center; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg button { width: 46px; height: 52px; }
.qty-lg input { width: 54px; height: 52px; font-size: 17px; }

/* ── Order summary ───────────────────────── */
.summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.summary h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--text-soft); }
.sum-row.discount { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 700; }
.sum-total strong { color: var(--accent-ink); font-family: var(--font-head); font-size: 28px; letter-spacing: -.02em; }
.coupon-form { display: flex; gap: 8px; margin: 16px 0 20px; }
.co-qty { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: var(--text2); font-size: 14px; }
.coupon-form .form-control { padding: 11px 14px; font-size: 14px; text-transform: uppercase; }
.coupon-form .btn { padding: 10px 18px; }
.coupon-msg { font-size: 13px; margin: -10px 0 14px; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.err { color: var(--err); }
.secure-note { text-align: center; color: var(--text2); font-size: 13px; margin-top: 16px; }
/* ── Checkout ────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; padding-bottom: 88px; }
.co-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; }
.co-section h2 { display: flex; align-items: center; gap: 14px; font-size: 20px; margin-bottom: 24px; }
.step { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 18px var(--accent-glow); }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1.5px solid var(--border2); background: var(--bg); transition: border-color .2s, background .2s, box-shadow .2s; height: 100%; }
.pay-opt:hover .pay-card { border-color: var(--accent); }
.pay-opt input:checked + .pay-card { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); box-shadow: 0 0 0 3px var(--accent-glow); }
.pay-opt input:focus-visible + .pay-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-card .pc-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--surface2); font-weight: 800; font-size: 13px; }
.pay-card strong { display: block; font-size: 15px; }
.pay-card small { color: var(--text2); font-size: 12.5px; }
.pay-card .radio-dot { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border2); flex-shrink: 0; transition: all .2s; }
.pay-opt input:checked + .pay-card .radio-dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.pay-opt.disabled { cursor: not-allowed; opacity: .5; }
.pay-opt.disabled .pay-card { border-style: dashed; }
/* manual payment methods */
.pay-options-manual { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pay-options-manual .pay-card { padding: 12px 14px; gap: 10px; }
.pay-options-manual .pc-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 9px; }
.pay-options-manual .pay-card strong { font-size: 14px; }
.pay-account { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1.5px dashed rgba(var(--accent-rgb), .45); }
.pa-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--text2); font-size: 14px; }
.pa-amount strong { color: var(--accent-ink); font-family: var(--font-head); font-size: 22px; }
.pa-body { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pa-details { flex: 1; min-width: 200px; margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--text); }
.pa-qr { width: 150px; height: 150px; object-fit: contain; border-radius: 10px; background: #fff; padding: 6px; }
.pa-copy { margin-top: 12px; }
.proof-preview { margin-top: 4px; }
.proof-preview img { max-width: 220px; max-height: 260px; border-radius: 10px; border: 1px solid var(--border2); }
.delivery-box { margin-bottom: 18px; border-color: rgba(34, 197, 94, .4); background: linear-gradient(180deg, rgba(34, 197, 94, .07), transparent 70%), var(--surface); text-align: left; }
.db-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 17px; }
.db-details { margin: 0; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border2); white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.7; color: var(--text); }
.co-items { max-height: 320px; overflow-y: auto; margin-bottom: 12px; padding-right: 4px; }
.co-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.co-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.co-item .ci-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.co-item .ci-name small { display: block; color: var(--text2); font-weight: 400; }
.co-item .ci-sub { font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* ── Order success ───────────────────────── */
.success-wrap { max-width: 720px; margin: 0 auto; padding: 56px 0 96px; text-align: center; }
.success-icon { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; background: rgba(34, 197, 94, .12); border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-wrap h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.order-box { text-align: left; margin-top: 36px; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.order-meta small { display: block; color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.order-meta strong { font-size: 15px; word-break: break-all; }

/* ── Auth ────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 72px - 120px); display: grid; place-items: center; padding: 56px 24px; position: relative; }
.auth-wrap::before { content: ''; position: absolute; width: 520px; height: 520px; top: 0; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 65%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border2); border-radius: 22px; padding: 40px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text2); margin: 0 0 28px; }
.auth-foot { text-align: center; margin: 24px 0 0; color: var(--text2); font-size: 14.5px; }
.auth-foot a { color: var(--accent-ink); font-weight: 700; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row label { margin-bottom: 7px; }
.forgot-link { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.forgot-link:hover { text-decoration: underline; }
/* ── Account ─────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; padding-bottom: 88px; }
.acc-side { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acc-user { padding: 28px 22px; text-align: center; background: linear-gradient(160deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .02) 70%); border-bottom: 1px solid var(--border); }
.acc-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 28px; overflow: hidden; border: 3px solid rgba(var(--accent-rgb), .4); box-shadow: 0 0 28px var(--accent-glow); }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-user strong { display: block; font-size: 17px; }
.acc-user span { color: var(--text2); font-size: 13px; word-break: break-all; }
.acc-nav { padding: 12px; display: grid; gap: 4px; }
.acc-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; color: var(--text-soft); font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.acc-nav a:hover { background: var(--surface2); color: var(--text); }
.acc-nav a.active { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.acc-nav a.logout { color: var(--red); }
.acc-nav a.logout:hover { background: rgba(239, 68, 68, .1); }
/* "Browse Storefront" button at the bottom of the account menu */
.acc-store { padding: 0 12px 12px; }
.acc-store-btn { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap;
    background: rgba(var(--accent-rgb), .1); border: 1px dashed rgba(var(--accent-rgb), .45); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.acc-store-btn:hover { background: rgba(var(--accent-rgb), .18); border-style: solid; border-color: var(--accent); transform: translateY(-1px); }
.acc-store-btn svg { flex-shrink: 0; }
.acc-store-arrow { margin-left: auto; transition: transform .2s var(--ease); }
@media (min-width: 901px) and (max-width: 1500px) { .acc-store-arrow { display: none; } }
.acc-store-btn:hover .acc-store-arrow { transform: translateX(3px); }
.acc-content h2 { font-size: 26px; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; gap: 16px; align-items: center; }
.stat-card .si { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--accent-rgb), .1); flex-shrink: 0; }
.stat-card small { color: var(--text2); font-size: 13px; display: block; }
.stat-card strong { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; }
.table-wrap.scroll { max-height: 560px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { position: sticky; top: 0; text-align: left; padding: 14px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); font-weight: 600; background: var(--bg2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.status { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: rgba(var(--accent-rgb), .14); color: var(--accent-ink2); }
.status-processing { background: rgba(59, 130, 246, .15); color: var(--info); }
.status-delivered { background: rgba(34, 197, 94, .14); color: var(--ok); }
.status-cancelled { background: rgba(239, 68, 68, .14); color: var(--err); }
.status-paid { background: rgba(34, 197, 94, .14); color: var(--ok); }
.status-unpaid { background: rgba(144, 144, 168, .14); color: var(--text2); }
.status-refunded { background: rgba(168, 85, 247, .15); color: var(--violet2); }
.status-verifying { background: rgba(249, 115, 22, .15); color: var(--warn2); }
.status-rejected { background: rgba(239, 68, 68, .14); color: var(--err); }
.avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.avatar-row .acc-avatar { margin: 0; width: 76px; height: 76px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── Top bar ─────────────────────────────── */
.topbar { background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; }

/* ── Header search button ───────────────── */
.nav-search input { padding-right: 96px; }
.nav-search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .2s; }
.nav-search-btn:hover { background: var(--accent-light); }
/* live search dropdown */
.search-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 200; padding: 6px; max-height: min(70vh, 520px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--accent-rgb), .06);
    animation: sdIn .18s var(--ease); }
.search-drop[hidden] { display: none; }
@keyframes sdIn { from { opacity: 0; transform: translateY(-6px); } }
.search-drop.loading { opacity: .75; }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; transition: background .12s; }
.sd-item:hover, .sd-item.is-active { background: var(--surface2); }
.sd-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.sd-item.is-out img { opacity: .5; filter: grayscale(.6); }
.sd-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-name mark { background: none; color: var(--accent-ink); }
.sd-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.sd-meta strong { color: var(--accent-ink); font-family: var(--font-head); }
.sd-meta del { color: var(--text2); font-size: 12px; }
.sd-meta em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ok); }
.sd-meta small { font-size: 11px; font-weight: 700; color: var(--err); }
.sd-all { display: block; margin-top: 4px; padding: 11px 12px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.sd-all:hover { background: var(--surface2); }
.sd-empty { padding: 16px 12px; color: var(--text2); font-size: 14px; }

/* ── FAQ ─────────────────────────────────── */
.faq-section { padding: 72px 0; }
.faq-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.faq-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 10px; }
.faq-head p { color: var(--text2); margin: 0; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.faq-item[open] { border-color: rgba(var(--accent-rgb), .35); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface2); color: var(--text2); transition: transform .25s, color .2s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent-ink); }
.faq-a { padding: 0 20px 18px; color: var(--text2); font-size: 14.5px; line-height: 1.6; }

/* ── Info pages (policies, how it works, support) ── */
.info-page { padding: 8px 0 80px; background: radial-gradient(900px 400px at 50% -10%, rgba(var(--accent-rgb), .07), transparent 70%); }
.info-page .breadcrumb { margin: 26px 0 22px; }
.info-wrap { max-width: 1040px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.info-hero { padding: 38px 40px; margin-bottom: 30px; }
.info-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 18px 0 14px; }
.info-intro p { color: var(--text2); font-size: 16px; line-height: 1.75; max-width: 780px; margin: 0 0 10px; }
.info-intro strong, .info-body strong { color: var(--text); }
.info-updated { margin: 14px 0 0; font-size: 13.5px; color: var(--text2); }
.info-updated a, .info-body a { color: var(--accent-ink); font-weight: 600; }
.info-sec { padding: 28px 32px; margin-bottom: 20px; scroll-margin-top: 90px; }
.info-sec h2 { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.info-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--ic, var(--accent)); background: color-mix(in srgb, var(--ic, #f59e0b) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ic, #f59e0b) 25%, transparent); }
.info-body { color: var(--text2); font-size: 15.5px; line-height: 1.8; }
.info-body p { margin: 0 0 12px; }
.info-body p:last-child, .info-body ul:last-child { margin-bottom: 0; }
.info-body ul { margin: 4px 0 12px; padding-left: 22px; }
.info-body li { margin: 6px 0; }
.info-body li::marker { color: var(--accent-ink); }
.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.claim-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border2); transition: border-color .2s, transform .2s; }
.claim-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.claim-card span { color: var(--text2); font-size: 13.5px; }
.claim-card em { font-style: normal; color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-top: 6px; }

/* support center */
.support-head { margin-bottom: 30px; }
.support-head h1 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; margin: 16px 0 10px; }
.support-head p { color: var(--text2); font-size: 17px; max-width: 640px; margin: 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 28px; align-items: start; }
.support-channels { padding: 28px; }
.support-channels h2 { font-size: 19px; margin: 0 0 22px; }
.channel { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.channel + .channel { border-top: 1px solid var(--border); }
.ch-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); background: rgba(var(--accent-rgb), .12); }
.ch-wa { color: #25d366; background: rgba(37, 211, 102, .12); }
.channel strong { display: block; font-size: 15px; }
.channel small { display: block; color: var(--text2); font-size: 13.5px; }
.channel em { display: block; font-style: normal; color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-top: 4px; word-break: break-all; }
a.channel:hover strong { color: var(--accent-ink); }
.support-guarantee { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; margin-top: 22px; background: linear-gradient(160deg, rgba(34, 197, 94, .09), var(--surface) 60%); border-color: rgba(34, 197, 94, .3); }
.sg-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--ok2); font-weight: 700; font-size: 14px; }
.support-guarantee strong { font-size: 17px; }
.support-guarantee > span:last-child { color: var(--text2); font-size: 14px; line-height: 1.6; }
.ticket-card { padding: 34px 38px; }
.ticket-card h2 { font-size: 24px; margin: 0 0 12px; }
.ticket-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ticket-done { text-align: center; padding: 30px 10px; }
.td-icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #fff; background: var(--green); box-shadow: 0 0 30px rgba(34, 197, 94, .4); }
.ticket-done p { color: var(--text2); max-width: 440px; margin: 0 auto 22px; }

/* how it works */
.hiw-head { text-align: center; max-width: 720px; margin: 10px auto 36px; scroll-margin-top: 90px; }
.hiw-head h1, .hiw-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 16px 0 12px; }
.hiw-head p { color: var(--text2); font-size: 16.5px; margin: 0; }
.hiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 72px; }
.hiw-step { padding: 24px; transition: transform .25s, border-color .25s; }
.hiw-step:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .4); }
.hs-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.hs-num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--surface2); -webkit-text-stroke: 1px var(--border2); }
.hiw-step h3 { font-size: 17px; margin: 0 0 8px; }
.hiw-step p { color: var(--text2); font-size: 14px; line-height: 1.65; margin: 0; }
.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 26px; }
.pay-cardx { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pcx-head { display: flex; align-items: center; gap: 12px; }
.pcx-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.pcx-head > span:nth-child(2) { flex: 1; min-width: 0; }
.pcx-head strong { display: block; font-size: 16px; }
.pcx-head small { color: var(--text2); font-size: 12px; }
.pcx-chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--ok2); background: rgba(34, 197, 94, .12); white-space: nowrap; }
.pay-cardx p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.6; flex: 1; }
.pcx-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text2); }
.pcx-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok2); font-weight: 700; }
.hiw-checkout { max-width: 980px; margin: 0 auto 30px; padding: 28px; }
.hiw-checkout h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 18px; color: var(--text); }
.hiw-checkout h3 svg { color: var(--accent-ink); }
.hc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hc-steps > div { padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.hc-step { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--on-accent); background: var(--accent); margin-bottom: 10px; }
.hc-steps strong { display: block; font-size: 15px; margin-bottom: 4px; }
.hc-steps p { margin: 0; color: var(--text2); font-size: 13.5px; line-height: 1.6; }
.hiw-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 0 auto 50px; }
.hiw-trust .info-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.hiw-trust strong { display: block; font-size: 15px; }
.hiw-trust small { color: var(--text2); font-size: 12.5px; }
.hiw-faq { max-width: 980px; margin: 0 auto 50px; padding: 34px; }
.hiw-faq h2 { text-align: center; font-size: 28px; margin: 0 0 26px; }
.hf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hf-item { padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.hf-item strong { display: block; font-size: 15.5px; margin-bottom: 8px; }
.hf-item p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.65; }
.hiw-cta { max-width: 980px; margin: 0 auto; padding: 44px 30px; border-radius: 24px; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(500px 220px at 50% 0%, rgba(var(--accent-rgb), .25), transparent 70%), linear-gradient(160deg, #1b1b27, #0f0f16); border: 1px solid rgba(var(--accent-rgb), .3); }
.hiw-cta h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.hiw-cta p { color: var(--text2); margin: 0 0 24px; }
.hc-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .hiw-steps { grid-template-columns: 1fr 1fr; }
    .pay-cards { grid-template-columns: 1fr 1fr; }
    .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .info-hero, .info-sec, .ticket-card, .support-channels, .hiw-faq, .hiw-checkout { padding: 22px 20px; }
    .info-sec h2 { font-size: 17px; gap: 12px; }
    .claim-grid, .ticket-row3, .hc-steps, .hiw-trust, .hf-grid, .pay-cards { grid-template-columns: 1fr; }
    .hiw-steps { grid-template-columns: 1fr; margin-bottom: 50px; }
    .hiw-cta { padding: 34px 20px; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .topbar-right { display: none; }
    .topbar-inner { justify-content: center; }
    .nav-wrap { gap: 16px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
    .footer-brand, .f-paycol { grid-column: 1 / -1; }
    .fpay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }

    .checkout-layout, .account-layout { grid-template-columns: 1fr; }
    .summary, .acc-side { position: static; }
    .pd-grid { grid-template-columns: 1fr; gap: 32px; }
    .pd-img { position: relative; top: 0; max-width: 600px; }
    .acc-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
    .topbar-left span:not(:first-child) { display: none; }
    .nav-search-btn { display: none; }
    .nav-search input { padding-right: 16px; }
    .site-header .logo-text { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    /* header is just logo + search + account now, so the search stays visible on phones */
    .nav-search { max-width: none; min-width: 0; }
    .hero { padding: 40px 0 64px; }
    .product-grid, .product-grid.shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .products-band { padding: 24px 0 40px; }
    .hero-feats { grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; }
    .hero-feat { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; }
    .hero-feat small { display: none; }
    .hero-feat strong { font-size: 12px; }
    .hero-btn { width: 100%; justify-content: center; }
    .hero { padding: 32px 0 36px; }
    .hero-visual { display: none; }  /* phones: get to the products faster */
    .site-footer { padding-top: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-bottom: 22px; }
    .footer-grid h4 { margin-bottom: 8px; }
    .f-links a { font-size: 13.5px; padding: 3px 0; }
    .fb-inner { justify-content: center; text-align: center; }
    .fpay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
    .form-row, .pay-options, .pd-perks, .stat-grid { grid-template-columns: 1fr; }
    .order-meta { grid-template-columns: 1fr 1fr; }
    .pill-form { flex-direction: column; border-radius: 20px; gap: 6px; }
    .pill-form input { padding: 14px 16px; }

    .auth-card { padding: 28px 22px; }
}

/* ═════════════════ Wallet ═════════════════ */
.nav-wallet { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent-ink); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s; }
.nav-wallet:hover { background: rgba(var(--accent-rgb), .18); border-color: var(--accent); }
@media (max-width: 560px) { .nav-wallet { padding: 0 10px; font-size: 13px; height: 34px; } .nav-wallet svg { display: none; } }

.stat-wallet { border-color: rgba(var(--accent-rgb), .35); transition: border-color .2s, transform .2s; }
.stat-wallet:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-wallet em { display: block; font-style: normal; font-size: 12.5px; color: var(--accent-ink); font-weight: 700; margin-top: 2px; }

/* payment picker: wallet option */
.pay-card .pc-wallet { background: rgba(var(--accent-rgb), .15); color: var(--accent-ink); }
.pay-opt-wallet .pay-card small { display: block; }
.pay-opt-wallet.is-disabled { cursor: not-allowed; opacity: .55; }
.pay-opt-wallet.is-disabled .pay-card { border-style: dashed; }
.pay-opt-wallet.is-login .pay-card { border-style: dashed; }
.pay-opt-wallet.is-login:hover .pay-card { border-color: var(--accent); }
.wallet-low { margin: 12px 0 0; font-size: 14px; color: var(--text2); }
.pay-account-wallet { border-style: solid; background: rgba(var(--accent-rgb), .05); }
.pw-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--text2); }
.pw-row strong { color: var(--text); }
.pw-after { border-top: 1px solid var(--border2); margin-top: 4px; padding-top: 11px; }
.pw-after strong { color: var(--accent-ink); font-family: var(--font-head); font-size: 19px; }
.pw-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ok); }

/* wallet page */

.wh-wait { display: inline-block; font-size: 13.5px; color: var(--warn2); background: rgba(249, 115, 22, .12); padding: 4px 10px; border-radius: 999px; }

.topup-input { position: relative; }
.topup-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--accent-ink); font-family: var(--font-head); font-size: 18px; pointer-events: none; }
.topup-input .form-control { padding-left: 46px; font-size: 22px; font-weight: 800; font-family: var(--font-head); height: 56px; }
.topup-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.topup-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border2); background: var(--bg); color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.topup-chip:hover, .topup-chip.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--accent-ink); }

.wl-amt { text-align: right; flex-shrink: 0; }
.wl-in { color: var(--ok); }
.wl-out { color: var(--err); }
.wallet-paid-note { padding: 12px 14px; border-radius: 12px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); font-size: 14px; margin: 0; }

/* ═════════════════ Validity & renewals ═════════════════ */
.validity-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--violet); background: rgba(167, 139, 250, .12); border: 1px solid rgba(167, 139, 250, .28); white-space: nowrap; }
.product-body .validity-chip { margin: -2px 0 8px; }
.pd-validity { border-color: rgba(167, 139, 250, .35) !important; }
.pd-validity strong { color: var(--violet); }

.vpanel { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border2); }
.vp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vp-top > div { display: grid; gap: 2px; }
.vp-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); }
.vp-top strong { font-size: 15.5px; }
.vp-link { font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.vp-bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; margin-top: 10px; }
.vp-bar span { display: block; height: 100%; border-radius: inherit; background: #22c55e; transition: width .6s ease; }
.vp-hint { display: block; margin-top: 8px; color: var(--text2); font-size: 13px; }
.vstate-active .vp-label { color: var(--ok); }
.vstate-soon { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .06); }
.vstate-soon .vp-label { color: var(--warn); }
.vstate-soon .vp-bar span { background: #f59e0b; }
.vstate-expired { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .05); }
.vstate-expired .vp-label { color: var(--err); }
.vstate-expired .vp-bar span { background: #ef4444; }
.vstate-lifetime .vp-top strong { color: var(--violet); }
.vpanel.is-compact { margin-top: 12px; padding: 12px 14px; }
.vpanel.is-compact .vp-top strong { font-size: 14px; }

.vtext { font-size: 12.5px; font-weight: 700; }
.vtext.vstate-active { color: var(--ok); } .vtext.vstate-soon { color: var(--warn); } .vtext.vstate-expired { color: var(--err); } .vtext.vstate-lifetime { color: var(--violet); }
.vtext.vstate-soon, .vtext.vstate-expired { background: none; border: 0; }

.sub-alert { font-size: 13px; font-weight: 700; color: var(--warn); background: rgba(245, 158, 11, .12); padding: 5px 12px; border-radius: 999px; }

.sub-card { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.sub-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sub-head img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.sub-head span { display: grid; gap: 2px; min-width: 0; }
.sub-head strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-head small { color: var(--text2); font-size: 12px; }
.sub-head:hover small { color: var(--accent-ink); }

.validity-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border2); font-size: 14px; }
.validity-line.vstate-soon { border-color: rgba(245, 158, 11, .5); }
.validity-line.vstate-expired { border-color: rgba(239, 68, 68, .45); }
.stat-card { padding: 18px; gap: 12px; }
.stat-card .si { width: 44px; height: 44px; font-size: 20px; }
.stat-card strong { white-space: nowrap; font-size: clamp(19px, 1.7vw, 24px); }

/* ═════════════════ Front page polish & motion ═════════════════ */
/* scroll progress line under the header */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-light), #fff8); box-shadow: 0 0 12px var(--accent-glow); pointer-events: none; z-index: 2; }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { background: var(--header-bg2); }
.nav-wrap { transition: height .3s var(--ease); }
.site-header.scrolled .nav-wrap { height: 62px; }
.logo-mark { transition: transform .5s var(--ease), box-shadow .3s; }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); box-shadow: 0 0 30px var(--accent-glow); }
.nav-search input:focus { animation: searchGlow 2.4s ease-in-out infinite; }
@keyframes searchGlow { 50% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18), 0 0 26px rgba(var(--accent-rgb), .25); } }
.nav-search-btn { overflow: hidden; }
.nav-search-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: btnShine 5s ease-in-out infinite 2s; }
@keyframes btnShine { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.nav-wallet, .nav-icon { transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s; }
.nav-wallet:hover, .nav-icon:hover { transform: translateY(-1px); }

/* top bar: on phones the messages take turns */
@media (max-width: 768px) {
    .topbar-left { position: relative; display: block; height: 34px; width: 100%; overflow: hidden; }
    .topbar-left span, .topbar-left span:not(:first-child) { display: flex !important; position: absolute; inset: 0; justify-content: center; align-items: center; opacity: 0; animation: tbCycle 9s infinite; }
    .topbar-left span:nth-child(2) { animation-delay: 3s; }
    .topbar-left span:nth-child(3) { animation-delay: 6s; }
    .topbar-left span:only-child { opacity: 1; animation: none; }
}
@keyframes tbCycle { 0% { opacity: 0; transform: translateY(8px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-8px); } }

/* hero: text slides in on load */
.ha { animation: haUp .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes haUp { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
.h-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h-line > span { display: inline-block; animation: lineUp 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 60ms); }
.hero h1 .h-line > .line2 { display: inline-block; animation: lineUp 1s var(--ease) both, shine 6s linear infinite 1.2s; animation-delay: calc(var(--d, 0) * 120ms + 60ms), 1.2s; }
@keyframes lineUp { from { transform: translateY(105%); opacity: 0; } }
.ha-right { animation: haRight 1.1s var(--ease) both .35s; }
@keyframes haRight { from { opacity: 0; transform: translateX(40px) scale(.97); } }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--bg2)); }
.hero-tag { position: relative; overflow: hidden; }
.hero-tag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(var(--accent-rgb), .25) 50%, transparent 65%); transform: translateX(-120%); animation: btnShine 6s ease-in-out infinite 1.5s; }
/* WhatsApp button: soft ring that keeps inviting a tap */
.hero-btn { position: relative; isolation: isolate; }
.hero-btn.btn-whatsapp::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #25d366; animation: waRing 2.6s ease-out infinite 1.5s; }
@keyframes waRing { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
.hero-btn svg { transition: transform .3s var(--ease); }
.hero-btn:hover svg { transform: rotate(-12deg) scale(1.15); }
.hero-feat { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.hero-feat:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .4); background: var(--glass-hover); }
.hero-feat:hover .hf-icon { box-shadow: 0 0 18px var(--accent-glow); }
.hf-icon { transition: box-shadow .3s; }
/* pay chips: normal on desktop, endless sliding row on phones */
.hp-viewport { display: contents; }
.hp-track { display: contents; }
.hp-dup { display: none !important; }
.hp-chip { transition: border-color .2s, color .2s, transform .2s; }
.hp-chip:hover { border-color: var(--border2); color: var(--text); transform: translateY(-1px); }
@media (max-width: 768px) {
    .hero-pay { flex-wrap: nowrap; }
    .hp-viewport { display: block; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
    .hp-track { display: flex; gap: 8px; width: max-content; animation: payMarquee 22s linear infinite; }
    .hp-dup { display: inline-flex !important; }
    .hp-chip { flex-shrink: 0; }
}
@keyframes payMarquee { to { transform: translateX(calc(-50% - 4px)); } }

/* products: heading + livelier cards */
.products-band { position: relative; padding-top: 34px; }
.pb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pb-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 0; letter-spacing: -.03em; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: liveDot 2s ease-out infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }
.pb-perks { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-perks span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text2); }
.product-card { position: relative; isolation: isolate; }
.product-card::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .13), transparent 60%); }
.product-card:hover::after { opacity: 1; }
.product-card::before { content: ''; position: absolute; inset: -1px; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), var(--accent), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.product-card:hover::before { opacity: 1; }
.product-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-130%); transition: transform .9s var(--ease); pointer-events: none; }
.product-card:hover .product-img::after { transform: translateX(130%); }
.btn-buy { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.product-card:hover .btn-buy:not(.btn-soldout) { box-shadow: 0 6px 18px var(--accent-glow); }
.btn-buy:not(.btn-soldout):active { transform: scale(.94); }
.product-grid > .product-card.fade-in { transform: translateY(26px) scale(.97); }
.product-grid > .product-card.fade-in.visible { transform: none; }
.product-grid > .product-card.fade-in.visible:hover { transform: translateY(-5px); }
@media (max-width: 480px) {
    .price-sub { flex-wrap: wrap; }
    .product-foot { gap: 6px; }
    .pb-perks { display: none; }
}

/* FAQ: two columns on computers, smooth opening */
.faq-section { position: relative; overflow: hidden; }
.faq-section::before { content: ''; position: absolute; width: 520px; height: 520px; left: -220px; top: 10%; border-radius: 50%; background: rgba(var(--accent-rgb), .08); filter: blur(90px); pointer-events: none; }
.faq-wrap { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 48px; align-items: center; max-width: 1120px; margin: 0 auto; }
.faq-wrap .faq-head { text-align: left; margin: 0; }
.faq-wrap .faq-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.faq-help { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; margin-top: 26px; padding: 18px; border-radius: 18px; background: linear-gradient(140deg, rgba(var(--accent-rgb), .12), transparent 70%), var(--surface); border: 1px solid rgba(var(--accent-rgb), .25); }
.fh-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(var(--accent-rgb), .15); animation: float 5s ease-in-out infinite; }
.faq-help strong { display: block; font-size: 15px; }
.faq-help small { color: var(--text2); font-size: 13px; }
.fh-btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.faq-wrap .faq-list { max-width: none; margin: 0; }
.faq-section .faq-item { position: relative; overflow: hidden; transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--ease); }
.faq-section .faq-item:hover { border-color: var(--border2); }
.faq-section .faq-item[open] { background: linear-gradient(135deg, rgba(var(--accent-rgb), .07), transparent 60%), var(--surface); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.faq-section .faq-item::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease); }
.faq-section .faq-item[open]::before { transform: scaleY(1); }
.faq-section .faq-item summary { justify-content: flex-start; gap: 14px; }
.faq-num { flex-shrink: 0; font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--text2); width: 26px; transition: color .3s; }
.faq-item[open] .faq-num { color: var(--accent-ink); }
.faq-q { flex: 1; }
.faq-section .faq-chev { transition: transform .35s var(--ease), color .2s, background .2s; }
.faq-section .faq-item[open] .faq-chev { transform: rotate(135deg); color: var(--on-accent); background: var(--accent); }
.faq-section .faq-a { padding: 0; overflow: hidden; }
.faq-a-in { padding: 0 20px 18px 60px; }
@media (max-width: 900px) {
    .faq-wrap { grid-template-columns: 1fr; gap: 26px; }
    .faq-wrap .faq-head { position: static; text-align: center; }
    .faq-help { text-align: left; max-width: 460px; margin: 22px auto 0; }
}
@media (max-width: 480px) { .faq-a-in { padding-left: 20px; } .faq-section .faq-item summary { padding: 16px; font-size: 14.5px; } }

/* footer */
.fpay { transition: border-color .2s, transform .2s var(--ease); }
.fpay:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .45); }

@media (prefers-reduced-motion: reduce) {
    .ha, .ha-right, .h-line > span { animation: none !important; opacity: 1; transform: none; filter: none; }
    .hp-track { animation: none !important; }
    .scroll-progress { display: none; }
}
.hero-grid > * { min-width: 0; }
.hero-pay { max-width: 100%; }

/* ═════════════════ Compact checkout & product page ═════════════════ */
.container.compact-page { max-width: 1140px; }
.page-head.compact-page { padding-top: 24px; padding-bottom: 18px; }
.page-head.compact-page h1 { font-size: clamp(24px, 2.6vw, 30px); }
.page-head.compact-page p { font-size: 14px; }
.compact-page .form-group { margin-bottom: 14px; }
.compact-page .form-group label { font-size: 13px; margin-bottom: 5px; }
.compact-page .form-control { padding: 10px 13px; font-size: 14px; border-radius: 10px; }
.compact-page textarea.form-control { min-height: 64px; }
.compact-page .form-hint { font-size: 12px; }
/* checkout */
.checkout-layout.compact-page { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding-bottom: 64px; }
.compact-page .co-section { padding: 20px 22px; margin-bottom: 16px; border-radius: 16px; }
.compact-page .co-section h2 { font-size: 16.5px; gap: 10px; margin-bottom: 16px; }
.compact-page .step { width: 26px; height: 26px; font-size: 13px; }
.compact-page .co-section > .muted, .compact-page .co-section p.muted { font-size: 13.5px !important; line-height: 1.55; }
.compact-page .pay-options-manual { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.compact-page .pay-options-manual .pay-card { padding: 9px 11px; }
.compact-page .pay-options-manual .pc-icon { width: 28px; height: 28px; font-size: 13px; }
.compact-page .pay-options-manual .pay-card strong { font-size: 13px; }
.compact-page .pay-card small { font-size: 11.5px; }
.compact-page .pay-card .radio-dot { width: 16px; height: 16px; }
.compact-page .pay-account { padding: 14px 16px; margin-top: 12px; }
.compact-page .pa-amount { font-size: 13px; margin-bottom: 8px; }
.compact-page .pa-amount strong { font-size: 18px; }
.compact-page .pa-details { font-size: 13.5px; }
.compact-page .pa-qr { width: 120px; height: 120px; }
.compact-page .pw-row { font-size: 14px; padding: 5px 0; }
.compact-page .pw-after strong { font-size: 17px; }
.compact-page .summary { padding: 20px; border-radius: 16px; }
.compact-page .summary h3 { font-size: 16.5px; margin-bottom: 12px; gap: 10px; }
.compact-page .co-item { padding: 10px 0; gap: 12px; }
.compact-page .co-item img { width: 44px; height: 44px; }
.compact-page .co-item .ci-name, .compact-page .co-item .ci-sub { font-size: 13.5px; }
.compact-page .sum-row { font-size: 14px; padding: 7px 0; }
.compact-page .sum-total { font-size: 16px; padding-top: 14px; }
.compact-page .sum-total strong { font-size: 22px; }
.compact-page #placeOrderBtn { padding: 13px 18px; font-size: 15px; margin-top: 16px !important; }
.compact-page .secure-note { font-size: 12px; }
.compact-page .coupon-form .form-control { padding: 9px 12px; font-size: 13px; }
/* product page */
.pd-grid.compact-page { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.compact-page .pd-img { border-radius: 18px; top: 90px; }
.compact-page .pd-img .badge { top: 14px; left: 14px; font-size: 11px; padding: 5px 10px; }
.compact-page .pd-info h1 { font-size: clamp(24px, 2.4vw, 30px); margin: 4px 0 10px; }
.compact-page .pd-price { padding: 14px 0; margin-bottom: 16px; gap: 10px; }
.compact-page .pd-price strong { font-size: 30px; }
.compact-page .pd-price del { font-size: 15px; }
.compact-page .pd-desc { font-size: 14.5px; margin-bottom: 16px; }
.compact-page .pd-stock { font-size: 13px; margin-bottom: 16px; }
.compact-page .pd-actions { gap: 10px; margin-bottom: 20px; }
.compact-page .pd-actions .btn-lg { padding: 12px 26px; font-size: 15px; }
.compact-page .pd-perks { gap: 8px; }
.compact-page .pd-perk { padding: 10px 12px; font-size: 13px; gap: 10px; border-radius: 10px; }
.compact-page .pd-perk span:first-child { font-size: 17px; }
.related-section .section-head h2 { font-size: 22px; }
.related-section .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 210px)); }
@media (max-width: 1024px) {
    .checkout-layout.compact-page, .pd-grid.compact-page { grid-template-columns: 1fr; }
    .pd-grid.compact-page .pd-img { max-width: 440px; }
}
@media (max-width: 480px) {
    .related-section .product-grid { grid-template-columns: repeat(2, 1fr); }
    .compact-page .pay-options-manual { grid-template-columns: 1fr 1fr; }
}
.compact-page .pd-actions .qty button, .compact-page .pd-actions .qty input { height: 44px; }

/* Product detail page: 13% zoom-out on desktop so the whole page fits on screen */
@media (min-width: 1025px) {
    .pd-zoom { zoom: 0.87; }
}

/* Product page: Buy Now + Chat on WhatsApp side by side */
.pd-actions .btn-lg { flex: 1 1 180px; justify-content: center; }
.pd-actions .qty { flex: 0 0 auto; }
.pd-actions .pd-wa { gap: 8px; }
@media (max-width: 480px) {
    .pd-actions .btn-lg { flex-basis: 100%; }
}

/* ── Slim checkout: everything fits on one screen on desktop ── */
.co-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-top: 18px !important; padding-bottom: 12px !important; }
.co-head h1 { font-size: 22px !important; margin: 0; }
.co-head p { margin: 0; font-size: 13px; }
.co-slim { padding-bottom: 40px !important; }
.co-slim .co-section { padding: 16px 18px; margin-bottom: 12px; }
.co-slim .co-section h2 { font-size: 15.5px; margin-bottom: 12px; }
.co-slim .step { width: 24px; height: 24px; font-size: 12px; }
.co-slim .form-group { margin-bottom: 0; }
.co-slim .form-group label { font-size: 12.5px; margin-bottom: 4px; }
.co-slim .form-control { padding: 9px 12px; font-size: 13.5px; }
.co-fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; }
.co-toggle { margin-top: 10px; }
.co-toggle summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink); list-style: none; width: max-content; }
.co-toggle summary::-webkit-details-marker { display: none; }
.co-toggle[open] summary { margin-bottom: 8px; }
.co-toggle textarea.form-control { min-height: 54px; }

/* payment methods + "send to" box */
.co-slim .pay-options-manual { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.co-slim .pay-account { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 12px 14px; margin-top: 10px; }
.co-slim .pa-amount { flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding-right: 18px; border-right: 1px solid var(--border2); font-size: 12px; }
.co-slim .pa-amount strong { font-size: 22px; line-height: 1.25; }
.co-slim .pa-body { gap: 12px; align-items: center; flex-wrap: nowrap; }
.co-slim .pa-details { min-width: 0; font-size: 13px; line-height: 1.5; }
.co-slim .pa-qr { width: 84px; height: 84px; padding: 4px; }
.co-slim .pa-copy { margin: 0; }
.co-slim .pay-account-wallet { display: block; }
.co-slim .pay-account[hidden], .co-slim [hidden] { display: none !important; }
.co-slim .pay-proof .form-row { margin-top: 10px !important; gap: 10px; }
.co-slim .pay-proof .form-hint { font-size: 11.5px; }
.co-slim .proof-preview img { max-width: 140px; max-height: 140px; }
.co-slim .wallet-low { font-size: 13px; margin: 8px 0 0; }
.co-instr { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text2); }

/* order summary */
.co-slim .summary { padding: 16px 18px; top: 84px; }
.co-slim .summary h3 { font-size: 15.5px; margin-bottom: 8px; }
.co-slim .co-item { padding: 8px 0; }
.co-slim .co-qty { padding: 6px 0; font-size: 13px; }
.co-slim .co-coupon { margin: 4px 0 8px; }
.co-slim .coupon-form { margin: 0; }
.co-slim .sum-row { padding: 5px 0; font-size: 13.5px; }
.co-slim .sum-total { padding-top: 10px; }
.co-slim #placeOrderBtn { margin-top: 12px !important; padding: 12px 16px; }
.co-slim .secure-note { margin: 8px 0 0; font-size: 11.5px; }

@media (max-width: 760px) {
    .co-fields { grid-template-columns: 1fr; }
    .co-slim .pay-account { grid-template-columns: 1fr; }
    .co-slim .pa-amount { border-right: 0; padding-right: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px; }
    .co-slim .pa-copy { justify-self: start; }
    .co-slim .pay-options-manual { grid-template-columns: 1fr 1fr; }
    .co-slim .pay-opt-wallet { grid-column: 1 / -1; }
}

/* ── Hero fits on one screen (desktop/laptop): sizes follow the screen height ── */
@media (min-width: 1025px) {
    .hero { padding: clamp(18px, 3.6vh, 52px) 0 clamp(22px, 4.2vh, 60px); }
    .hero-grid { gap: clamp(28px, 4vw, 56px); }
    .hero-tag { margin-bottom: clamp(10px, 2vh, 22px); padding: 6px 14px 6px 10px; font-size: 12.5px; }
    .hero h1 { font-size: calc(clamp(37px, min(4.95vw, 8.2vh), 70px) * var(--h1-scale, 1)); margin-bottom: clamp(10px, 1.8vh, 20px); }
    .hero-desc { font-size: clamp(14.5px, 2vh, 17px); line-height: 1.55; margin-bottom: clamp(14px, 2.6vh, 28px); }
    .hero-btn.btn-lg { padding: clamp(11px, 1.7vh, 16px) 28px; font-size: 15.5px; margin-bottom: clamp(14px, 2.4vh, 26px); }
    .hero-feat { padding: clamp(8px, 1.2vh, 12px) 10px; }
    .hero-pay { margin-top: clamp(12px, 2vh, 22px); }

    /* payment chips: one sliding line instead of wrapping onto two */
    .hero-pay { flex-wrap: nowrap; }
    .hp-viewport { display: block; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
    .hp-track { display: flex; gap: 8px; width: max-content; animation: payMarquee 22s linear infinite; }
    .hp-dup { display: inline-flex !important; }
    .hp-chip { flex-shrink: 0; }

    /* the bag picture never gets taller than the screen allows */
    .hero-art { width: min(100%, 520px, 62vh); }
}

/* Hero size on desktop (1 = normal; was 1.04 — made ~4% smaller so it fits the screen) */
@media (min-width: 1025px) {
    .hero-grid { zoom: .98; }
}

/* Order success: "set a password" card for guests */
.acc-box { margin-top: 28px; border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), transparent 70%), var(--surface); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .06); }
.acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-head strong { display: block; font-size: 18px; font-family: var(--font-head); }
.acc-head small { color: var(--text2); font-size: 13px; }
.acc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(var(--accent-rgb), .15); flex-shrink: 0; }
.acc-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--border2); font-size: 14px; line-height: 1.55; color: var(--text2); }
.acc-note strong { color: var(--text); }
.acc-form .form-group { margin-bottom: 12px; }
.acc-email .form-control { opacity: .75; cursor: not-allowed; }

/* ── Checkout v2: whole page fits one laptop screen, no scrolling ── */
.co-head { padding-top: 12px !important; padding-bottom: 8px !important; }
.co-head h1 { font-size: 20px !important; }
.co-slim { padding-bottom: 24px !important; gap: 18px !important; }
.co-slim .co-section { position: relative; padding: 12px 16px 14px; margin-bottom: 10px; }
.co-slim .co-section h2 { font-size: 15px; margin-bottom: 9px; }
.co-slim .step { width: 22px; height: 22px; font-size: 11.5px; box-shadow: 0 0 10px var(--accent-glow); }
.co-slim .form-group label { font-size: 12px; margin-bottom: 3px; }
.co-slim .form-control { padding: 7px 11px; font-size: 13.5px; }
.co-slim input[type="file"].form-control { padding: 5px 8px; font-size: 12.5px; }
/* "+ Add a note" sits in the section title row; the box opens under the fields */
.co-note { margin-top: 0; }
.co-note summary { position: absolute; top: 14px; right: 16px; font-size: 12.5px; }
.co-note[open] summary { margin-bottom: 0; }
.co-note textarea.form-control { margin-top: 8px; min-height: 44px; }

/* payment method chips: shorter, 4 per row */
.co-slim .pay-options-manual { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.co-slim .pay-options-manual .pay-card { padding: 6px 10px; gap: 9px; border-radius: 11px; min-height: 42px; }
.co-slim .pay-options-manual .pc-icon { width: 26px; height: 26px; font-size: 12.5px; border-radius: 7px; }
.co-slim .pay-options-manual .pc-icon svg { width: 16px; height: 16px; }
.co-slim .pay-options-manual .pay-card strong { font-size: 13px; line-height: 1.2; }
.co-slim .pay-card small { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.co-slim .pay-card .radio-dot { width: 15px; height: 15px; }
.co-slim .wallet-low { display: none; }
.co-slim .pay-opt-wallet.is-disabled { opacity: 1; }
.co-slim .pay-opt-wallet.is-disabled .pc-icon, .co-slim .pay-opt-wallet.is-disabled strong, .co-slim .pay-opt-wallet.is-disabled .radio-dot { opacity: .5; }
.pw-topup { font-weight: 700; }
.pw-topup:hover { text-decoration: underline; }

/* "send to" box: one compact row */
.co-slim .pay-account { padding: 9px 14px; margin-top: 9px; gap: 6px 16px; }
.co-slim .pa-amount { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 4px; padding-right: 16px; font-size: 11.5px; line-height: 1.3; }
.co-slim .pa-amount > span:last-child { grid-row: 1; grid-column: 2; }
.co-slim .pa-amount strong { grid-column: 1 / -1; font-size: 20px; line-height: 1.2; }
.co-slim .pa-details { font-size: 13px; line-height: 1.45; }
.co-slim .pa-qr { width: 64px; height: 64px; padding: 3px; }
.co-slim .pa-copy { padding: 7px 14px; font-size: 12.5px; }
.co-slim .pw-row { padding: 3px 0; font-size: 13px; }
.co-slim .pw-note { margin: 4px 0 0; font-size: 12px; }
.co-slim .pay-proof .form-row { margin-top: 9px !important; }
.proof-hint { font-weight: 400; font-size: 11px; }
.co-slim .proof-preview { margin-top: 8px; }
.co-slim .proof-preview img { max-width: 110px; max-height: 80px; }

/* order review column */
.co-slim .summary { padding: 13px 16px; }
.co-slim .summary h3 { font-size: 15px; margin-bottom: 4px; }
.co-slim .co-items { margin-bottom: 4px; }
.co-slim .co-item { padding: 7px 0; }
.co-slim .co-item img { width: 38px; height: 38px; }
.co-slim .co-qty { padding: 6px 0 2px; }
.co-slim .co-qty .qty button, .co-slim .co-qty .qty input { height: 34px; }
.co-slim .co-coupon { margin: 6px 0 4px; }
.co-slim .sum-row { padding: 4px 0; font-size: 13px; }
.co-slim .sum-total { padding-top: 8px; margin-top: 4px; font-size: 15px; }
.co-slim .sum-total strong { font-size: 21px; }
.co-slim #placeOrderBtn { margin-top: 10px !important; padding: 11px 16px; font-size: 14.5px; }
.co-slim .co-instr { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; }
.co-slim .secure-note { margin: 7px 0 0; font-size: 11px; line-height: 1.4; }

@media (max-width: 760px) {
    .co-note summary { position: static; margin-top: 10px; }
    .co-slim .pay-options-manual { grid-template-columns: 1fr 1fr; }
    .co-slim .pa-amount { display: flex; padding-right: 0; }
    .co-slim .pay-card small { white-space: normal; }
}

/* Header: "Admin Panel" button (admins + super admins only) */
.nav-admin { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .25s var(--ease), background .2s, box-shadow .2s; }
.nav-admin:hover { background: var(--accent-light); box-shadow: 0 6px 18px var(--accent-glow); transform: translateY(-1px); }
@media (max-width: 768px) { .nav-admin { width: 38px; padding: 0; justify-content: center; } .nav-admin span { display: none; } }
@media (max-width: 560px) { .nav-admin { width: 34px; height: 34px; } }

/* Amount boxes (e.g. wallet top-up): no up/down arrows — just type the number */
input[type="number"].form-control { -moz-appearance: textfield; appearance: textfield; }
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ══ My Wallet v2: fits one screen — balance + actions on the left, activity on the right ══ */
.wv-head { padding-top: 14px !important; padding-bottom: 12px !important; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.wv-head .breadcrumb { order: 2; margin: 0; font-size: 13px; }
.wv-head h1 { font-size: 22px !important; margin: 0; }
.wv-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
/* compact customer menu on this page */
.wv-layout .acc-side { top: 84px; border-radius: 16px; }
.wv-layout .acc-user { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 11px; align-items: center; text-align: left; padding: 14px; }
.wv-layout .acc-avatar { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 16px; border-width: 2px; box-shadow: none; }
.wv-layout .acc-user strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-layout .acc-user span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.wv-layout .acc-nav { padding: 8px; gap: 2px; }
.wv-layout .acc-nav a { padding: 9px 12px; font-size: 14px; }

.wv { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.wv-left { display: grid; gap: 14px; }

/* balance card */
.wv-balance { position: relative; overflow: hidden; padding: 18px 20px 14px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .28);
    background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), .2), transparent 60%), linear-gradient(160deg, var(--surface2), var(--surface)); }
.wvb-top { display: flex; justify-content: space-between; align-items: center; }
.wvb-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.wvb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.wvb-eye { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border2); background: var(--bg); color: var(--text2); cursor: pointer; transition: color .2s, border-color .2s; }
.wvb-eye:hover { color: var(--accent-ink); border-color: var(--accent); }
.wvb-eye.is-off { color: var(--accent-ink); }
.wvb-amount { display: block; margin: 8px 0 6px; font-family: var(--font-head); font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--accent-ink); }
.wv-hidden .wvb-amount, .wv-hidden .wv-stat strong, .wv-hidden .wva-list .wl-amt { filter: blur(8px); user-select: none; }
.wv-balance .wh-wait { font-size: 12px; padding: 3px 9px; }
.wvb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 13px; }
.wvb-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; }
.wvb-name svg { color: var(--accent-ink); flex-shrink: 0; }

/* quick action buttons */
.wv-actions { display: flex; gap: 26px; padding-left: 6px; }
.wv-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wv-act > span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border2); color: var(--accent-ink); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.wv-act:hover > span { transform: translateY(-2px); border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.wv-act.is-main > span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 6px 18px var(--accent-glow); }

/* totals */
.wv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wv-stat { padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.wv-stat small { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--text2); font-size: 11.5px; font-weight: 600; }
.wv-stat small svg { color: var(--accent-ink); }
.wv-stat strong { display: block; margin-top: 3px; font-family: var(--font-head); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* activity */
.wv-activity { display: flex; flex-direction: column; min-height: 0; height: max(380px, calc(100vh - 200px)); max-height: 640px; padding: 16px 0 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.wva-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 18px 12px; border-bottom: 1px solid var(--border); }
.wva-head h2 { font-size: 17px !important; margin: 0 0 8px !important; }
.wva-tabs { display: flex; gap: 6px; }
.wva-tabs button { position: relative; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border2); background: none; color: var(--text2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.wva-tabs button span { opacity: .7; margin-left: 2px; }
.wva-tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wva-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #fb923c; border: 2px solid var(--surface); }
.wva-search { position: relative; display: flex; align-items: center; flex: 0 1 240px; }
.wva-search svg { position: absolute; left: 12px; color: var(--text2); pointer-events: none; }
.wva-search input { width: 100%; padding: 8px 12px 8px 34px; border-radius: 999px; border: 1px solid var(--border2); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; outline: none; }
.wva-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.wva-list { list-style: none; margin: 0; padding: 4px 10px 4px 18px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.wva-list li { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 0; border-bottom: 1px solid var(--border); }
.wva-list li:last-child { border-bottom: 0; }
.wva-list li[hidden] { display: none; }
.wva-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
.wva-topup { color: var(--ok); background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .25); }
.wva-refund { color: var(--violet2); background: rgba(168, 85, 247, .1); border-color: rgba(168, 85, 247, .25); }
.wva-purchase { color: var(--accent-ink); background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .22); }
.wva-adjustment.is-out { color: var(--err); }
.wva-main { flex: 1; min-width: 0; }
.wva-main strong { display: block; font-size: 14px; }
.wva-main strong a { font-size: 12px; margin-left: 4px; }
.wva-main small { display: block; color: var(--text2); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wva-main .wl-note { color: var(--text-soft); font-style: italic; }
.wva-list .wl-amt strong { font-size: 14.5px; font-family: var(--font-head); }
.wva-list .wl-amt small { display: block; color: var(--text2); font-size: 11.5px; margin-top: 2px; }
.wva-list .wl-amt .status { margin-top: 3px; font-size: 11px; }
.wva-empty { justify-content: center; color: var(--text2); font-size: 14px; padding: 40px 0 !important; text-align: center; }
.wva-none { margin: 0; padding: 20px; text-align: center; color: var(--text2); font-size: 13.5px; }

/* Top-up / Refund panels */
.wv-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border-radius: 18px; border: 1px solid var(--border2); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto; }

.wv-modal::backdrop { background: rgba(5, 5, 10, .72); backdrop-filter: blur(4px); }
.wv-modal[open] { animation: wvIn .25s var(--ease); }
@keyframes wvIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wv-modal form { padding: 18px 20px 16px; }

.wvm-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border2); background: var(--bg); color: var(--text2); cursor: pointer; font-size: 13px; }
.wvm-x:hover { color: var(--text); border-color: var(--accent); }
.wv-modal .alert { margin: 0 0 14px; }
.wv-modal .alert ul { margin: 6px 0 0; padding-left: 18px; }

.wv-modal .co-slim .form-group { margin-bottom: 12px; }
.wv-modal .co-slim .pay-options-manual { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wv-modal .topup-input .form-control { height: 48px; font-size: 20px; padding-left: 46px; }
.wv-modal .topup-chips { margin: 8px 0 4px; }
.wv-modal .topup-chip { padding: 5px 12px; font-size: 13px; }
@media (max-width: 560px) { .wv-modal .co-slim .pay-options-manual { grid-template-columns: 1fr 1fr; } }
.wv-modal select.form-control { cursor: pointer; }
body.wv-locked { overflow: hidden; }

@media (max-width: 1180px) {
    .wv { grid-template-columns: 1fr; }
    .wv-activity { height: auto; max-height: 560px; }
}
@media (max-width: 1024px) {
    .wv-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wv-stats { grid-template-columns: 1fr 1fr; }
    .wv-stat:last-child { grid-column: 1 / -1; }
    .wva-search { flex-basis: 100%; }
    .wv-act > span { width: 44px; height: 44px; }
}

/* ══ My Account (Dashboard / Orders / Profile / Password): fits one screen like My Wallet.
      Only long lists (many orders / subscriptions) scroll — inside their own box. ══ */
.ma { min-width: 0; }
.ma-panel { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.ma-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.ma-panel-head h2 { font-size: 17px !important; margin: 0 !important; }
.ma-panel-head h2 small { font-size: 13px; font-weight: 500; }
.ma-panel-head .link-arrow { font-size: 13px; }
.ma-panel-head .sub-alert { font-size: 12px; padding: 3px 10px; }
.ma-panel-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.ma-panel-body > .table-wrap, .ma-panel-body > .table-wrap.scroll { max-height: none; height: 100%; border: 0; border-radius: 0; background: none; }
.ma .data-table { font-size: 13.5px; }
.ma .data-table th { padding: 10px 14px; font-size: 11px; }
.ma .data-table td { padding: 10px 14px; }
.ma .data-table tr[hidden] { display: none; }
.ma-empty { padding: 34px 20px !important; border: 0 !important; background: none !important; }
.ma-empty h2 { font-size: 18px !important; margin-bottom: 6px; }
.ma-empty p { margin-bottom: 16px !important; font-size: 14px; }

/* dashboard: stats on top, recent orders + subscriptions side by side */
.ma-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ma-stats .stat-card { padding: 12px 14px; gap: 10px; border-radius: 16px; }
.ma-stats .stat-card .si { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.ma-stats .stat-card small { font-size: 12px; }
.ma-stats .stat-card strong { font-size: clamp(16px, 1.45vw, 20px); }
.ma-stats .stat-wallet em { font-size: 11.5px; margin-top: 0; }
.ma-dash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 14px; height: max(320px, calc(100vh - 302px)); max-height: 560px; }
.ma-dash .data-table th, .ma-dash .data-table td { padding-left: 12px; padding-right: 12px; }
.ma-dash .data-table .mono { font-size: 12px; }
.ma-dash.no-subs { grid-template-columns: 1fr; }
.ma-subs { padding: 10px; display: grid; gap: 8px; align-content: start; }
.ma-subs .sub-card { padding: 11px 12px; border-radius: 14px; background: var(--bg2); }
.ma-subs .sub-head img { width: 36px; height: 36px; border-radius: 9px; }
.ma-subs .sub-head strong { font-size: 13.5px; }
.ma-subs .sub-head small { font-size: 11.5px; }
.ma-subs .vpanel.is-compact { margin-top: 8px; padding: 9px 11px; }
.ma-subs .vp-label { font-size: 11px; }
.ma-subs .vp-bar { margin-top: 7px; height: 5px; }

/* all orders: one box as tall as the screen, the list scrolls inside it */
.ma-full { height: max(380px, calc(100vh - 200px)); max-height: 760px; }
.ma-full .wva-search { flex: 0 1 240px; }

/* profile / password forms */
.ma-form { padding: 0 18px 18px; }
.ma-form .ma-panel-head { margin: 0 -18px 16px; }
.ma-narrow { max-width: 640px; }
.ma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ma-form .form-group { margin-bottom: 14px; }
.ma-form .form-group label { font-size: 13px; margin-bottom: 5px; }
.ma-form .form-group label .muted { font-weight: 400; font-size: 12px; }
.ma-form .form-control { padding: 10px 13px; font-size: 14px; }
.ma-form .avatar-row { gap: 16px; margin-bottom: 16px; padding-bottom: 16px; }
.ma-form .avatar-row .acc-avatar { width: 62px; height: 62px; font-size: 22px; }
.ma-form .btn-primary { padding: 11px 26px; align-self: flex-start; }

@media (max-width: 1180px) {
    .ma-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ma-dash { grid-template-columns: 1fr; height: auto; max-height: none; }
    .ma-dash .ma-panel { max-height: 480px; }
}
@media (max-width: 1024px) { .ma-full { height: auto; max-height: 620px; } }
@media (max-width: 560px) {
    .ma-grid { grid-template-columns: 1fr; }
    .ma-stats .stat-card { padding: 10px 12px; }
}

/* ══ Wallet top-up: side drawer with 3 steps (Method → Amount → Transfer) ══ */
.wv-modal.td-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0; border: 0; border-left: 1px solid var(--border2); overflow: hidden; }
.wv-modal.td-drawer[open] { display: flex; animation: tdIn .32s var(--ease); }
@keyframes tdIn { from { transform: translateX(100%); } }
.td-form { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 !important; }
.td-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.td-head h2 { font-size: 19px !important; margin: 0 !important; }
.td-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 16px 22px 4px; }
.td-steps li { display: grid; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text2); }
.td-steps li:nth-child(2) { text-align: center; } .td-steps li:nth-child(3) { text-align: right; }
.td-steps li span { height: 4px; border-radius: 999px; background: var(--surface2); transition: background .3s; }
.td-steps li.done, .td-steps li.active { color: var(--accent-ink); }
.td-steps li.done { cursor: pointer; }
.td-steps li.done span, .td-steps li.active span { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.td-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 22px 22px; scrollbar-width: thin; }
.td-body > .alert { margin: 0 0 14px; }
.td-body > .alert ul { margin: 6px 0 0; padding-left: 18px; }
.td-pane[hidden] { display: none; }

/* step 1 — method list */
.td-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.td-sub strong { font-size: 15px; }
.td-sub span { font-size: 12.5px; }
.td-methods { display: grid; gap: 10px; }
.td-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border2); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.td-method:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); transform: translateX(-2px); }
.td-method input { position: absolute; opacity: 0; pointer-events: none; }
.td-method:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.td-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.td-mark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; overflow: hidden; }
.td-mark.has-logo { background: #fff; padding: 4px; }
.td-mark img { width: 100%; height: 100%; object-fit: contain; }
.td-mname { flex: 1; min-width: 0; display: grid; gap: 1px; }
.td-mname strong { font-size: 15px; }
.td-mname small { color: var(--text2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-arrow { color: var(--text2); flex-shrink: 0; transition: color .2s, transform .2s; }
.td-method:hover .td-arrow { color: var(--accent-ink); transform: translateX(3px); }

/* step 2 — amount */
.td-chosen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border2); font-size: 14px; }
.td-link { margin-left: auto; background: none; border: 0; color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.td-drawer .form-group { margin-bottom: 14px; }
.td-drawer .form-group label { font-size: 13px; margin-bottom: 6px; }
.td-drawer .topup-input .form-control { height: 54px; font-size: 22px; padding-left: 48px; }
.td-drawer .topup-chips { margin: 10px 0 6px; }
.td-drawer .form-hint.td-err { color: var(--err); }
.td-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }
.td-nav .btn { padding: 12px 18px; font-size: 14.5px; justify-content: center; }

/* step 3 — transfer */
.td-account { margin: 0 0 12px; padding: 14px 16px; }
.td-account .pa-amount strong { font-size: 22px; }
.td-account .pa-details { font-size: 15px; }
.td-account .pa-qr { width: 110px; height: 110px; }
.td-instr { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.td-drawer .proof-preview { margin: -6px 0 12px; }
.td-drawer .proof-preview img { max-width: 140px; max-height: 120px; }
.td-drawer .form-control.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.td-drawer .secure-note { margin-top: 12px; font-size: 12px; }

@media (max-width: 520px) {
    .td-head, .td-steps, .td-body { padding-left: 16px; padding-right: 16px; }
}

/* ════════ Hero illustration: shopping bag with the logo letter + floating labels ════════
   Layers move a little with the mouse (--mx / --my set by main.js, depth per layer). */
.hero-art { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1; margin: 0 auto; --mx: 0; --my: 0; }
.ha-layer { position: absolute; inset: 0; transform: translate3d(calc(var(--mx) * var(--depth, 20) * 1px), calc(var(--my) * var(--depth, 20) * 1px), 0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ha-layer[data-depth="18"] { --depth: 18; }
.ha-layer[data-depth="38"] { --depth: 38; }
.ha-layer[data-depth="60"] { --depth: 60; }

/* soft light behind + slowly turning rings */
.ha-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .38), rgba(var(--accent-rgb), .08) 60%, transparent); filter: blur(10px); animation: haBreath 5s ease-in-out infinite; }
@keyframes haBreath { 50% { transform: scale(1.08); opacity: .75; } }
.ha-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(var(--accent-rgb), .28); animation: haSpin 38s linear infinite; }
.ha-ring-1 { inset: 9%; }
.ha-ring-2 { inset: 22%; border-style: solid; border-color: rgba(255, 255, 255, .06); animation-duration: 26s; animation-direction: reverse; }
.ha-ring i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent), 0 0 30px rgba(var(--accent-rgb), .6); }
.ha-ring-2 i:nth-child(2) { top: auto; bottom: -4px; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .8); }
@keyframes haSpin { to { transform: rotate(360deg); } }
.ha-spark { position: absolute; color: var(--accent-ink2); font-size: 16px; animation: haTwinkle 3.2s ease-in-out infinite; text-shadow: 0 0 12px rgba(var(--accent-rgb), .9); }
.ha-spark.s1 { top: 14%; left: 30%; }
.ha-spark.s2 { top: 26%; right: 12%; font-size: 11px; animation-delay: -1s; }
.ha-spark.s3 { bottom: 20%; left: 14%; font-size: 12px; animation-delay: -2s; }
.ha-spark.s4 { bottom: 12%; right: 30%; font-size: 20px; animation-delay: -.5s; }
@keyframes haTwinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

/* the bag */
.ha-bag { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1 / 1.08; transform: translate(-50%, -46%); animation: haBag 6s ease-in-out infinite; }
@keyframes haBag { 0%, 100% { transform: translate(-50%, -46%) rotate(-3deg); } 50% { transform: translate(-50%, -52%) rotate(2deg); } }
.ha-handle { position: absolute; left: 22%; right: 22%; top: -16%; height: 34%; border: clamp(7px, 1.6vw, 11px) solid var(--accent-light); border-bottom: 0; border-radius: 999px 999px 0 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.ha-body {
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 22% 22% 18% 18% / 16% 16% 14% 14%;
    background: linear-gradient(150deg, var(--accent-light) 0%, var(--accent) 50%);
    background: linear-gradient(150deg, var(--accent-light) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 68%, #000) 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -18px 30px rgba(0, 0, 0, .18), 0 30px 60px rgba(var(--accent-rgb), .35), 0 18px 40px rgba(0, 0, 0, .45);
}
.ha-body::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 18%, transparent 82%, rgba(0, 0, 0, .14)); }
.ha-body::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: haShine 5.5s ease-in-out infinite 1.2s; }
@keyframes haShine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.ha-stitch { position: absolute; left: 7%; right: 7%; top: 7%; height: 12%; border-bottom: 2px dashed rgba(255, 255, 255, .35); }
.ha-letter { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 900; font-size: clamp(54px, 9vw, 120px); line-height: 1; color: #fff; letter-spacing: -.04em; text-shadow: 0 3px 0 rgba(0, 0, 0, .12), 0 10px 24px rgba(0, 0, 0, .25); transform: translateY(6%); }
.ha-shadow { position: absolute; left: 50%; bottom: 13%; width: 34%; height: 5%; margin-left: -17%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: haShadow 6s ease-in-out infinite; }
@keyframes haShadow { 50% { transform: scale(.82); opacity: .7; } }

/* price tag hanging on the bag */
.ha-tag { position: absolute; right: -16%; top: 4%; transform-origin: 12% 0; animation: haSwing 3.6s ease-in-out infinite; }
.ha-tag::before { content: ''; position: absolute; left: 10%; top: -26px; width: 2px; height: 30px; background: rgba(255, 255, 255, .55); transform: rotate(-18deg); transform-origin: bottom; }
.ha-tag-in { display: block; padding: 7px 14px 7px 18px; border-radius: 8px 999px 999px 8px; background: #fff; color: #111; font-family: var(--font-head); font-weight: 800; font-size: clamp(11px, 1.1vw, 14px); white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); position: relative; }
.ha-tag-in::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
@keyframes haSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }

/* floating glass labels */
.ha-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px;
    background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: haChipIn .8s cubic-bezier(.2, .8, .2, 1) both, haFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--d) * 160ms + 600ms), calc(var(--d) * -1.5s);
    transition: border-color .3s, box-shadow .3s; white-space: nowrap; pointer-events: auto;
}
.ha-chip:hover { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(var(--accent-rgb), .35); }
.ha-chip-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; background: rgba(var(--accent-rgb), .16); border: 1px solid rgba(var(--accent-rgb), .3); flex-shrink: 0; }
.ha-chip strong { display: block; font-family: var(--font-head); font-size: 14px; line-height: 1.2; color: var(--text); }
.ha-chip small { display: block; font-size: 11.5px; color: var(--text2); margin-top: 1px; }
.ha-chip-1 { left: 0; top: 13%; rotate: -5deg; }
.ha-chip-2 { right: -2%; top: 6%; rotate: 4deg; }
.ha-chip-3 { right: -4%; bottom: 20%; rotate: -3deg; }
.ha-chip-4 { left: 2%; bottom: 10%; rotate: 3deg; }
@keyframes haChipIn { from { opacity: 0; transform: translateY(16px) scale(.85); } }
@keyframes haFloat { 50% { translate: 0 -10px; } }

/* little emoji bubbles */
.ha-bub { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; animation: haFloat 5s ease-in-out infinite; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.ha-bub.b1 { left: 22%; bottom: 26%; background: var(--accent); rotate: -10deg; animation-delay: -1s; }
.ha-bub.b2 { right: 13%; top: 48%; width: 38px; height: 38px; font-size: 17px; border-radius: 50%; background: var(--glass); border: 1px solid rgba(255, 255, 255, .1); animation-delay: -2.4s; }
.ha-bub.b3 { right: 26%; bottom: 6%; width: 40px; height: 40px; font-size: 18px; border-radius: 50%; background: rgba(var(--accent-rgb), .18); border: 1px solid rgba(var(--accent-rgb), .35); animation-delay: -3.6s; }

@media (max-width: 1024px) { .hero-art { width: min(100%, 460px); } }
@media (prefers-reduced-motion: reduce) {
    .hero-art *, .hero-art *::before, .hero-art *::after { animation: none !important; }
    .ha-layer { transform: none; }
}

/* ════════════════════════════════════════════════════════
   Light theme — html[data-theme="light"]
   Set before the page shows (script in <head>), switched by the ☀️/🌙 button in the header.
   Dark stays the default look; only the colours change, never the layout.
   ════════════════════════════════════════════════════════ */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f6f9;
    --bg2: #ffffff;
    --surface: #ffffff;
    --surface2: #eef1f5;
    --border: rgba(15, 23, 42, .09);
    --border2: rgba(15, 23, 42, .16);
    --text: #0f172a;
    --text2: #5b6476;
    --text-soft: #334155;
    --accent-ink: color-mix(in srgb, var(--accent) 62%, #0f172a);
    --accent-ink2: color-mix(in srgb, var(--accent) 55%, #0f172a);
    --accent-glow: rgba(var(--accent-rgb), .22);
    --ok: #15803d;  --ok2: #16a34a;  --err: #b91c1c;  --warn: #b45309;  --warn2: #c2410c;
    --info: #1d4ed8;  --violet: #6d28d9;  --violet2: #7e22ce;
    --header-bg: rgba(255, 255, 255, .82);  --header-bg2: rgba(255, 255, 255, .94);
    --glass: rgba(255, 255, 255, .86);  --glass-soft: rgba(255, 255, 255, .78);  --glass-hover: #ffffff;
    --star-off: #cbd5e1;  --row-hover: rgba(15, 23, 42, .03);  --dots: rgba(15, 23, 42, .09);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] ::selection { background: rgba(var(--accent-rgb), .3); color: var(--text); }

/* softer shadows: black shadows look dirty on white */
html[data-theme="light"] .site-header.scrolled { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .info-card,
html[data-theme="light"] .auth-card { box-shadow: 0 14px 34px rgba(15, 23, 42, .09); }
html[data-theme="light"] .product-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
html[data-theme="light"] .hero-img-wrap { box-shadow: 0 30px 60px rgba(15, 23, 42, .16); }
html[data-theme="light"] .btn-dark { background: #0f172a; color: #fff; }
html[data-theme="light"] .btn-dark:hover { background: #1e293b; }

/* hero: brighter background glow, readable gradient heading */
html[data-theme="light"] .hero-orb-1 { background: rgba(var(--accent-rgb), .28); }
html[data-theme="light"] .hero-orb-2 { background: rgba(168, 85, 247, .12); }
html[data-theme="light"] .hero::after { background: linear-gradient(transparent, var(--bg2)); }
html[data-theme="light"] .hero h1 .line2 {
    background-image: linear-gradient(90deg, var(--accent-ink) 0%, var(--accent) 40%, color-mix(in srgb, var(--accent) 40%, #fff) 50%, var(--accent) 60%, var(--accent-ink) 100%);
    background-size: 220% 100%;
}
html[data-theme="light"] .hero-feat { box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
html[data-theme="light"] .hero-feat:hover { background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
html[data-theme="light"] .hero-tag { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .45); }

/* hero bag picture */
html[data-theme="light"] .ha-glow { background: radial-gradient(closest-side, rgba(var(--accent-rgb), .32), rgba(var(--accent-rgb), .08) 60%, transparent); }
html[data-theme="light"] .ha-ring { border-color: rgba(var(--accent-rgb), .45); }
html[data-theme="light"] .ha-ring-2 { border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .ha-ring-2 i:nth-child(2) { background: var(--accent-ink); box-shadow: none; }
html[data-theme="light"] .ha-spark { color: var(--accent-ink); text-shadow: none; }
html[data-theme="light"] .ha-shadow { background: radial-gradient(closest-side, rgba(15, 23, 42, .28), transparent); }
html[data-theme="light"] .ha-body { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -18px 30px rgba(0, 0, 0, .12), 0 26px 50px rgba(var(--accent-rgb), .35), 0 14px 30px rgba(15, 23, 42, .14); }
html[data-theme="light"] .ha-tag::before { background: rgba(15, 23, 42, .35); }
html[data-theme="light"] .ha-tag-in { box-shadow: 0 8px 20px rgba(15, 23, 42, .16); border: 1px solid rgba(15, 23, 42, .06); }
html[data-theme="light"] .ha-chip { border-color: rgba(15, 23, 42, .07); box-shadow: 0 16px 34px rgba(15, 23, 42, .12), inset 0 1px 0 #fff; }
html[data-theme="light"] .ha-chip:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, .12), 0 0 0 3px rgba(var(--accent-rgb), .25); }
html[data-theme="light"] .ha-chip-ic { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .35); }
html[data-theme="light"] .ha-bub { box-shadow: 0 12px 26px rgba(15, 23, 42, .14); }
html[data-theme="light"] .ha-bub.b2 { border-color: rgba(15, 23, 42, .08); }

/* status pills / chips: a little more colour behind the darker text */
html[data-theme="light"] .status-pending { background: rgba(var(--accent-rgb), .18); }
html[data-theme="light"] .info-icon { color: color-mix(in srgb, var(--ic, var(--accent)) 72%, #0f172a); }
html[data-theme="light"] .testi-stars .on, html[data-theme="light"] .stars { color: #f59e0b; }
html[data-theme="light"] .pill-form { box-shadow: 0 12px 30px rgba(15, 23, 42, .14); }

/* pop-ups, search suggestions, dialogs */
html[data-theme="light"] .wv-modal::backdrop { background: rgba(15, 23, 42, .45); }

/* the select arrow and other inline SVG greys stay readable */
html[data-theme="light"] select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6476' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* smooth fade when the visitor switches theme (class added for a moment by main.js) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, fill .35s ease !important;
}

/* ── ☀️ / 🌙 button in the header ── */
.theme-toggle { position: relative; overflow: hidden; border: 1px solid var(--border2); background: var(--surface); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: rgba(var(--accent-rgb), .6); }
.theme-toggle svg { position: absolute; inset: 0; margin: auto; transition: transform .5s var(--ease), opacity .35s; }
.theme-toggle .tt-sun  { color: #f59e0b; }
.theme-toggle .tt-moon { color: var(--text); }
/* dark theme shows the sun (= switch to light), light theme shows the moon (= switch to dark) */
html:not([data-theme="light"]) .theme-toggle .tt-moon { opacity: 0; transform: translateY(120%) rotate(-90deg); }
html[data-theme="light"] .theme-toggle .tt-sun { opacity: 0; transform: translateY(-120%) rotate(90deg); }
.theme-toggle:hover .tt-sun { transform: rotate(45deg); }
.theme-toggle:hover .tt-moon { transform: rotate(-18deg); }
.nav-actions .theme-toggle { width: 38px; height: 38px; }
@media (max-width: 560px) { .nav-actions .theme-toggle { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: none; } html.theme-anim * { transition: none !important; } }

/* ── AI screenshot reader: note under the Transaction ID box ── */
.ai-note { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: var(--text2); }
.ai-note.is-ok { color: var(--ok); }
.ai-note.is-warn { color: var(--warn); }
.ai-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .3); border-top-color: var(--accent); animation: aiSpin .8s linear infinite; flex-shrink: 0; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.form-control.ai-filled { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); transition: box-shadow .3s, border-color .3s; }

/* ════════════════════════════════════════════════════════
   🔔 Notifications (bell + page) and the alert banner
   ════════════════════════════════════════════════════════ */
.nt-wrap { position: relative; }
.nt-bell { border: 0; background: transparent; cursor: pointer; }
.nt-bell:hover { background: var(--surface2); }
.nt-badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red, #ef4444); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--bg); }
.nt-panel { position: absolute; right: -8px; top: calc(100% + 10px); z-index: 300; width: 370px; max-height: min(70vh, 520px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; animation: sdIn .18s var(--ease); }
.nt-panel[hidden] { display: none; }
.nt-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.nt-head strong { font-size: 15px; }
.nt-head a { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.nt-list { overflow-y: auto; padding: 6px; }
.nt-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; color: var(--text); position: relative; }
a.nt-item:hover { background: var(--surface2); }
.nt-item.is-unread { background: rgba(var(--accent-rgb), .08); }
.nt-item.is-unread::after { content: ''; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nt-ic { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--surface2); font-size: 18px; }
.nt-item.is-announce .nt-ic { background: rgba(var(--accent-rgb), .16); }
.nt-txt { min-width: 0; flex: 1; padding-right: 12px; }
.nt-txt strong { display: block; font-size: 13.8px; line-height: 1.35; }
.nt-txt small { display: block; font-size: 12.8px; color: var(--text-soft); margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.nt-txt em { display: block; font-style: normal; font-size: 11.5px; color: var(--text2); margin-top: 5px; }
.nt-empty { text-align: center; padding: 30px 18px; color: var(--text2); font-size: 22px; line-height: 1.6; }
.nt-empty small, .nt-empty strong { font-size: 13px; }
.nt-empty strong { color: var(--text); font-size: 16px; }
@media (max-width: 560px) {
    .nt-panel { position: fixed; left: 10px; right: 10px; top: 70px; width: auto; }
}
.nt-page { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.nt-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.nt-page-head h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
.nt-page-head p { margin: 0; }
.nt-page-list { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; }
.nt-page-list .nt-item { padding: 14px; }
.nt-page-list .nt-item + .nt-item { margin-top: 2px; }
.nt-empty-big { font-size: 34px; padding: 50px 20px; }
.nt-pager { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.site-alert { position: relative; z-index: 60; font-size: 14px; font-weight: 600; }
.sa-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.sa-text a { text-decoration: underline; font-weight: 800; color: inherit; white-space: nowrap; }
.sa-close { flex-shrink: 0; margin-left: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .14); color: inherit; cursor: pointer; font-size: 13px; }
.sa-close:hover { background: rgba(0, 0, 0, .25); }
.sa-accent  { background: var(--accent); color: var(--on-accent); }
.sa-info    { background: #2563eb; color: #fff; }
.sa-success { background: #16a34a; color: #fff; }
.sa-warning { background: #f59e0b; color: #1a1205; }
.sa-danger  { background: #dc2626; color: #fff; }
@media (max-width: 560px) { .site-alert { font-size: 13px; } .sa-inner { justify-content: flex-start; text-align: left; } }

/* Phones: typing boxes at least 16px, otherwise iPhone zooms the whole page in when you tap them */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: 16px !important; }
}
/* payment chips: when they all fit, no sliding and no repeated chips (main.js adds .hp-fit) */
.hp-viewport.hp-fit { -webkit-mask-image: none !important; mask-image: none !important; }
.hp-viewport.hp-fit .hp-track { animation: none !important; transform: none !important; }
.hp-viewport.hp-fit .hp-dup { display: none !important; }
/* product page on tablets / phones: picture sits normally above the details (not pushed down over the title) */
@media (max-width: 1024px) {
    .pd-img, .compact-page .pd-img, .pd-grid.compact-page .pd-img { position: relative; top: 0; }
}
/* very small phones (≤ 400px): a little tighter header so search, bell, wallet and account all fit */
@media (max-width: 400px) {
    .nav-wrap { gap: 8px; }
    .nav-actions { gap: 4px; }
    .nav-actions .nav-icon { width: 36px; height: 36px; }
    .nav-wallet { padding-left: 9px !important; padding-right: 9px !important; font-size: 13px; }
    .nav-wallet svg { display: none; }
}

/* Light mode: "Ready to Get Started?" box on How It Works — light card instead of the dark one */
html[data-theme="light"] .hiw-cta {
    background: radial-gradient(500px 220px at 50% 0%, rgba(var(--accent-rgb), .18), transparent 70%), linear-gradient(160deg, #ffffff, #f3f5f9);
    border-color: rgba(var(--accent-rgb), .35);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

/* ── Product options (variations) on the product page ── */
.pd-variants { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pd-variants legend { font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; padding: 0; }
.pv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pv-opt { position: relative; cursor: pointer; display: block; }
.pv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pv-box { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border2); transition: border-color .2s, background .2s, box-shadow .2s; }
.pv-opt:hover .pv-box { border-color: rgba(var(--accent-rgb), .5); }
.pv-opt input:checked + .pv-box { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.pv-opt input:focus-visible + .pv-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.pv-valid { font-size: 12px; color: var(--text2); }
.pv-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--accent-ink); margin-top: 2px; }
.pv-price del { font-family: inherit; font-weight: 500; font-size: 12px; color: var(--text2); margin-left: 4px; }
.pv-tag { position: absolute; top: -8px; right: 8px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: var(--red); color: #fff; }
.pv-tag.out { background: var(--surface2); color: var(--text2); border: 1px solid var(--border2); }
.pv-opt.is-out { cursor: not-allowed; }
.pv-opt.is-out .pv-box { opacity: .55; }
.pv-opt.is-out .pv-price { text-decoration: line-through; }
.pd-buy .pd-stock { display: flex; }
.pd-actions[hidden], .pd-perk[hidden] { display: none; }
.compact-page .pv-box { padding: 10px 12px; }
.compact-page .pv-name { font-size: 13.5px; }
.compact-page .pv-price { font-size: 15px; }
@media (max-width: 480px) { .pv-list { grid-template-columns: 1fr 1fr; } }
.ci-variant { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); vertical-align: middle; }

/* ── Currency switch in the header (PKR / RMB) ── */
.cur-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 38px; border-radius: 999px; border: 1px solid var(--border2); background: var(--surface); flex-shrink: 0; }
.cur-switch button { height: 100%; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--text2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.cur-switch button:hover { color: var(--text); }
.cur-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); cursor: default; }
.cur-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cur-switch .cs-sym { font-weight: 800; }
@media (max-width: 640px) { .cur-switch { height: 34px; } .cur-switch button { padding: 0 10px; font-size: 13px; } .cur-switch .cs-name { display: none; } }

/* ── Delete notifications ── */
.nt-row { position: relative; transition: opacity .2s; }
.nt-row.is-going { opacity: .35; pointer-events: none; }
.nt-row .nt-item { padding-right: 40px; }
.nt-row .nt-item.is-unread::after { right: 34px; }
.nt-del-f { position: absolute; top: 8px; right: 6px; margin: 0; }
.nt-del { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text2); font-size: 19px; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.nt-row:hover .nt-del, .nt-del:focus-visible { opacity: 1; }
.nt-del:hover { background: rgba(239, 68, 68, .12); color: #ef4444; opacity: 1; }
@media (hover: none) { .nt-del { opacity: .8; } }
.nt-head-links { display: inline-flex; align-items: center; gap: 12px; }
.nt-head-links form { margin: 0; }
.nt-head-links form[hidden] { display: none; }
.nt-clear { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; }
.nt-clear:hover { color: #ef4444; }
.nt-page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nt-page-actions form { margin: 0; }
.nt-page-list .nt-row + .nt-row { margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   Phones (≤ 760px): clean header — name, 🔍, 🔔, profile button —
   profile menu (currency, dark mode, account) and a bar at the bottom.
   Computers keep the full header above.
   ════════════════════════════════════════════════════════ */
.m-search-btn, .m-prof-btn, .m-menu, .m-dim, .m-tabs, .m-search-cancel { display: none; }
@media (max-width: 760px) {
    .d-only { display: none !important; }
    .nav-wrap { gap: 6px; position: relative; }
    .nav-wrap .logo { flex: 1; min-width: 0; }
    .site-header .logo-text { display: inline !important; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-actions { gap: 4px; }
    .nav-actions .nav-icon { width: 42px; height: 42px; }
    .m-search-btn { display: grid; border: 0; background: transparent; cursor: pointer; }

    /* 🔍 → search across the whole header, with Cancel (suggestions still drop down under it) */
    .nav-search { display: none; }
    .site-header.m-search-open .nav-search { display: flex; position: absolute; inset: 0; z-index: 5; margin: 0; max-width: none; gap: 8px;
        padding: 0 16px; background: var(--bg); align-items: center; }
    .site-header.m-search-open .nav-search > svg { left: 30px; }
    .site-header.m-search-open .nav-search input { flex: 1; height: 44px; font-size: 16px; padding-right: 14px; }
    .site-header.m-search-open .nav-search-btn { display: none; }
    .site-header.m-search-open .m-search-cancel { display: block; border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--text2); padding: 10px 2px 10px 6px; cursor: pointer; }

    /* profile button */
    .m-prof-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border2); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; flex-shrink: 0; }
    .m-prof-btn.is-user { border: 0; background: transparent; }
    .m-prof-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35); }
    .mm-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; font-family: var(--font-head); }
    .mm-av img { width: 100%; height: 100%; object-fit: cover; }

    /* profile menu */
    .m-menu:not([hidden]) { display: block; position: absolute; top: calc(100% + 6px); right: 12px; width: min(340px, calc(100vw - 24px)); z-index: 10;
        max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); overflow-y: auto; overscroll-behavior: contain;
        background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: sdIn .18s var(--ease); }
    .m-dim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); }
    .mm-top { display: flex; gap: 12px; align-items: center; padding: 16px 16px 14px; min-width: 0; }
    .mm-top > div { min-width: 0; }
    .mm-top strong { display: block; font-size: 15.5px; line-height: 1.3; }
    .mm-top small { display: block; color: var(--text2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mm-av-lg { width: 46px; height: 46px; font-size: 16px; flex-shrink: 0; }
    .mm-guest { background: var(--surface2); color: var(--text2); }
    .mm-sign { margin: 0 16px 14px; display: flex; justify-content: center; align-items: center; gap: 8px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
    .mm-bal { margin: 0 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--text); }
    .mm-bal small { display: block; font-size: 12.5px; color: var(--text2); }
    .mm-bal b { font-size: 17px; color: var(--accent-ink); font-family: var(--font-head); }
    .mm-bal em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--accent-ink); white-space: nowrap; }
    .mm-set { margin: 0 10px 6px; padding: 2px 6px; border-radius: 14px; background: var(--surface2); }
    .mm-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 8px; font-weight: 600; font-size: 15px; color: var(--text); }
    .mm-ic { width: 22px; display: grid; place-items: center; color: var(--text2); flex-shrink: 0; }
    .mm-chev { margin-left: auto; color: var(--text2); display: grid; }
    .mm-row .cur-switch { margin-left: auto; height: 36px; }
    .mm-row .cur-switch button { padding: 0 11px; font-size: 13px; }
    .mm-list { padding: 2px 10px 10px; }
    .mm-list .mm-row + .mm-row { border-top: 1px solid var(--border); }
    .mm-list a.mm-row:active { background: var(--surface2); }
    .mm-admin, .mm-admin .mm-ic { color: var(--accent-ink); }
    .mm-out, .mm-out .mm-ic { color: #ef4444; }
    /* dark-mode switch (on = dark) */
    .mm-switch { margin-left: auto; width: 48px; height: 28px; border-radius: 999px; border: 0; padding: 3px; background: var(--border2); cursor: pointer; transition: background .2s; flex-shrink: 0; }
    .mm-switch span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
    .mm-switch[aria-checked="true"] { background: var(--accent); }
    .mm-switch[aria-checked="true"] span { transform: translateX(20px); }

    /* bar at the bottom */
    .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
    .m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 0; font-size: 11.5px; font-weight: 600; color: var(--text2); }
    .m-tabs a.on { color: var(--accent-ink); }
    .m-tabs a.on svg { stroke-width: 2.4; }
    body.has-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    body.has-tabs .td-drawer { z-index: 120; }
}
