/* =====================================================================
   DigiStore — tema default "Aurora"
   Mobile-first, terasa seperti aplikasi; lapang & elegan di desktop.
   Warna diatur via CSS variables (bisa diubah dari Admin > Tampilan).
   ===================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ds-primary: #4f46e5;
  --ds-secondary: #0ea5e9;
  --ds-accent: #f59e0b;
  --ds-success: #10b981;
  --ds-ink: #0f172a;
  --ds-surface: #f4f6fb;
  --ds-card: #ffffff;
  --ds-muted: #64748b;
  --ds-line: #e4e8f1;
  --ds-radius-lg: 22px;
  --ds-radius: 14px;
  --ds-radius-sm: 10px;
  --ds-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(30, 27, 75, .18);
  --ds-bottom-nav: 68px;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: var(--ds-primary);
  --bs-link-color: var(--ds-primary);
  --bs-link-hover-color: var(--ds-ink);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--ds-surface);
  color: var(--ds-ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--ds-bottom-nav) + env(safe-area-inset-bottom));
}
@media (min-width: 992px) { body { padding-bottom: 0; font-size: 16px; } }

h1, h2, h3, h4, h5, .display-font { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ds-primary) 55%, white); outline-offset: 2px; border-radius: 6px; }
.text-muted, .text-secondary { color: var(--ds-muted) !important; }
.container-xl { max-width: 1240px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 700; padding: .62rem 1.1rem; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { --bs-btn-bg: var(--ds-primary); --bs-btn-border-color: var(--ds-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--ds-primary) 85%, black); --bs-btn-hover-border-color: color-mix(in srgb, var(--ds-primary) 85%, black); --bs-btn-active-bg: color-mix(in srgb, var(--ds-primary) 75%, black); --bs-btn-disabled-bg: var(--ds-primary); --bs-btn-disabled-border-color: var(--ds-primary); box-shadow: 0 8px 20px -10px var(--ds-primary); }
.btn-success { --bs-btn-bg: var(--ds-success); --bs-btn-border-color: var(--ds-success); --bs-btn-hover-bg: color-mix(in srgb, var(--ds-success) 85%, black); --bs-btn-hover-border-color: color-mix(in srgb, var(--ds-success) 85%, black); }
.btn-accent { background: var(--ds-accent); color: #1c1305; border: 0; }
.btn-accent:hover { background: color-mix(in srgb, var(--ds-accent) 88%, black); color: #1c1305; }
.btn-soft { background: color-mix(in srgb, var(--ds-primary) 10%, white); color: var(--ds-primary); border: 0; }
.btn-soft:hover { background: color-mix(in srgb, var(--ds-primary) 18%, white); color: var(--ds-primary); }
.btn-outline-primary { --bs-btn-color: var(--ds-primary); --bs-btn-border-color: var(--ds-primary); --bs-btn-hover-bg: var(--ds-primary); --bs-btn-hover-border-color: var(--ds-primary); }
.btn-lg { padding: .85rem 1.4rem; border-radius: 14px; }
.text-primary { color: var(--ds-primary) !important; }
.bg-primary { background-color: var(--ds-primary) !important; }
.text-success { color: var(--ds-success) !important; }
.form-control, .form-select { border-radius: 12px; border-color: var(--ds-line); padding: .7rem .95rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-primary) 14%, transparent); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--ds-primary); border-color: var(--ds-primary); }

/* ---------- Announcement ---------- */
.announce { background: var(--ds-ink); color: #fff; font-size: .82rem; text-align: center; padding: .5rem 1rem; }
.announce a { color: var(--ds-accent); font-weight: 700; }

/* ---------- Header ---------- */
.app-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--ds-line); }
.app-header .bar { height: 60px; display: flex; align-items: center; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ds-ink); letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: conic-gradient(from 210deg, var(--ds-primary), var(--ds-secondary), var(--ds-success), var(--ds-primary)); box-shadow: 0 6px 16px -6px var(--ds-primary); }
.brand img { height: 34px; width: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ds-ink); background: transparent; border: 0; position: relative; font-size: 1.25rem; transition: background-color .2s; }
.icon-btn:hover { background: var(--ds-surface); color: var(--ds-primary); }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ds-accent); color: #1c1305; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.desk-nav .nav-link { font-weight: 600; color: #334155; padding: .5rem .85rem !important; border-radius: 10px; }
.desk-nav .nav-link:hover, .desk-nav .nav-link.active { color: var(--ds-primary); background: color-mix(in srgb, var(--ds-primary) 8%, white); }
.search-pill { position: relative; flex: 1; max-width: 420px; }
.search-pill input { border-radius: 999px; padding-left: 2.6rem; background: var(--ds-surface); border-color: transparent; }
.search-pill i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ds-muted); }

.mega { width: min(640px, 92vw); padding: 1rem; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: 0 24px 60px -20px rgba(30, 27, 75, .35); }
.mega .cat-link { display: flex; gap: .75rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; color: var(--ds-ink); }
.mega .cat-link:hover { background: var(--ds-surface); }
.dropdown-menu { border-radius: var(--ds-radius); border-color: var(--ds-line); box-shadow: 0 20px 50px -20px rgba(30, 27, 75, .3); padding: .4rem; }
.dropdown-item { border-radius: 10px; padding: .5rem .8rem; font-weight: 500; }
.dropdown-item:active { background: var(--ds-primary); }
.dropdown-menu.show { animation: dd .16s ease-out; }
@keyframes dd { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.tone-0 { background: #eef2ff; color: #4338ca; } .tone-1 { background: #ecfdf5; color: #047857; }
.tone-2 { background: #fff7ed; color: #c2410c; } .tone-3 { background: #fdf2f8; color: #be185d; }
.tone-4 { background: #f0f9ff; color: #0369a1; } .tone-5 { background: #fefce8; color: #a16207; }
.tone-6 { background: #f5f3ff; color: #6d28d9; }

/* ---------- Bottom navigation (mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; height: calc(var(--ds-bottom-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--ds-line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: #94a3b8; position: relative; padding-top: 4px; }
.bottom-nav a i { font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.bottom-nav a.active { color: var(--ds-primary); }
.bottom-nav a.active i { transform: translateY(-1px); }
.bottom-nav a.active::before { content: ""; position: absolute; top: -9px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ds-primary); }
.bottom-nav .fab { width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; background: var(--ds-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -8px var(--ds-primary); border: 4px solid #fff; }
.bottom-nav .fab i { font-size: 1.35rem; }
.bottom-nav .fab .count-badge { top: -6px; right: -6px; }
.bottom-nav a.cart-tab::before { display: none; }

/* ---------- Drawer ---------- */
.offcanvas { border: 0 !important; }
.offcanvas-start { width: 300px; border-top-right-radius: 24px; border-bottom-right-radius: 24px; }
.drawer-head { background: linear-gradient(140deg, var(--ds-ink), color-mix(in srgb, var(--ds-primary) 70%, var(--ds-ink))); color: #fff; padding: 1.5rem 1.25rem 1.25rem; }
.drawer-link { display: flex; gap: .8rem; align-items: center; padding: .75rem 1rem; border-radius: 12px; color: var(--ds-ink); font-weight: 600; }
.drawer-link:hover, .drawer-link.active { background: var(--ds-surface); color: var(--ds-primary); }
.drawer-link i { font-size: 1.15rem; color: var(--ds-muted); width: 22px; text-align: center; }

/* ---------- Hero slider ---------- */
.hero { padding-top: 1rem; }
.hero .carousel { border-radius: var(--ds-radius-lg); overflow: hidden; box-shadow: var(--ds-shadow); }
.hero-slide { position: relative; min-height: 220px; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: #fff; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .35) 55%, rgba(15, 23, 42, 0) 100%); }
.hero-slide .inner { position: relative; z-index: 1; padding: 1.5rem; max-width: 640px; }
.hero-slide h2 { font-size: clamp(1.45rem, 4.8vw, 2.9rem); color: #fff; margin-bottom: .5rem; text-wrap: balance; }
.hero-slide p { opacity: .9; margin-bottom: 1rem; font-size: clamp(.9rem, 2vw, 1.1rem); max-width: 48ch; }
@media (min-width: 768px) { .hero-slide { min-height: 380px; align-items: center; } .hero-slide .inner { padding: 3rem 3.5rem; } }
.carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 4px; border: 0; }
.carousel-indicators .active { width: 34px; background: var(--ds-accent); }

.trust-strip { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 1rem 0 .25rem; }
.trust-strip::-webkit-scrollbar { display: none; }
.trust { flex: none; display: inline-flex; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--ds-line); padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #334155; }
.trust i { color: var(--ds-success); }

/* ---------- Section ---------- */
.section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
@media (min-width: 992px) { .section { padding-top: 2.75rem; padding-bottom: 2.75rem; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); margin: 0; }
.section-head .link-more { font-weight: 700; font-size: .9rem; white-space: nowrap; }

.chips { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; scroll-snap-type: x mandatory; }
.chips::-webkit-scrollbar { display: none; }
.chip-cat { scroll-snap-align: start; flex: none; display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 84px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--ds-ink); }
.chip-cat .cat-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 1.45rem; transition: transform .2s; }
.chip-cat:hover .cat-icon { transform: translateY(-3px); }
@media (min-width: 992px) { .chips { flex-wrap: wrap; overflow: visible; } .chip-cat { width: 104px; font-size: .85rem; } }

/* ---------- Product card ---------- */
.p-card { background: var(--ds-card); border-radius: var(--ds-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--ds-line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; position: relative; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(30, 27, 75, .45); border-color: transparent; }
.p-card .thumb { aspect-ratio: 4 / 3; background: var(--ds-surface); overflow: hidden; display: block; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .thumb img { transform: scale(1.05); }
.p-card .body { padding: .8rem .85rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.p-card .cat { font-size: .72rem; font-weight: 700; color: var(--ds-primary); }
.p-card .title { font-weight: 700; font-size: .92rem; line-height: 1.35; color: var(--ds-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.p-card .title:hover { color: var(--ds-primary); }
.p-card .price { white-space: nowrap; font-weight: 800; font-size: 1rem; color: var(--ds-ink); }
.p-card .old { white-space: nowrap; display: inline-block; font-size: .78rem; color: var(--ds-muted); text-decoration: line-through; margin-left: .35rem; font-weight: 500; }
.p-card .meta { font-size: .74rem; color: var(--ds-muted); display: flex; gap: .75rem; margin-top: auto; padding-top: .35rem; }
.tag-sale { position: absolute; top: .6rem; left: .6rem; z-index: 2; background: var(--ds-accent); color: #1c1305; font-weight: 800; font-size: .7rem; padding: .25rem .55rem; border-radius: 8px; }
.tag-feat { position: absolute; top: .6rem; right: .6rem; z-index: 2; background: rgba(15, 23, 42, .72); color: #fff; font-size: .7rem; padding: .25rem .5rem; border-radius: 8px; backdrop-filter: blur(6px); }
@media (min-width: 992px) { .p-card .body { padding: 1rem 1.1rem 1.15rem; } .p-card .title { font-size: 1rem; } .p-card .price { font-size: 1.1rem; } }

.promo-tile { border-radius: var(--ds-radius-lg); min-height: 150px; padding: 1.4rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.promo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 23, 42, .7), rgba(15, 23, 42, 0) 70%); }
.promo-tile > * { position: relative; z-index: 1; }
.promo-tile h3 { color: #fff; font-size: 1.2rem; margin-bottom: .2rem; }

/* Flash sale strip — the one bold element on the homepage */
.flash { background: linear-gradient(120deg, var(--ds-ink) 0%, color-mix(in srgb, var(--ds-primary) 60%, var(--ds-ink)) 100%); border-radius: var(--ds-radius-lg); padding: 1.25rem; color: #fff; position: relative; overflow: hidden; }
.flash::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ds-accent) 65%, transparent), transparent 70%); }
.flash h2 { color: #fff; }
.countdown { display: inline-flex; gap: .35rem; }
.countdown span { background: var(--ds-accent); color: #1c1305; font-weight: 800; border-radius: 8px; min-width: 38px; text-align: center; padding: .25rem .35rem; font-variant-numeric: tabular-nums; }
@media (min-width: 992px) { .flash { padding: 2rem; } }

/* ---------- Detail produk ---------- */
.pd-media { border-radius: var(--ds-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--ds-line); }
.pd-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pd-title { font-size: clamp(1.4rem, 3.6vw, 2.2rem); }
.pd-price { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--ds-ink); }
.buy-box { background: #fff; border-radius: var(--ds-radius-lg); border: 1px solid var(--ds-line); padding: 1.25rem; }
@media (min-width: 992px) { .buy-box { position: sticky; top: 84px; padding: 1.6rem; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.feature-list i { color: var(--ds-success); margin-top: .1rem; }
.secure-note { display: flex; gap: .75rem; align-items: flex-start; background: color-mix(in srgb, var(--ds-success) 8%, white); border-radius: 12px; padding: .8rem .9rem; font-size: .82rem; color: #065f46; }
.secure-note i { font-size: 1.2rem; }
.content-prose { font-size: 1rem; line-height: 1.75; max-width: 72ch; }
.content-prose h2 { font-size: 1.4rem; margin: 1.8rem 0 .7rem; }
.content-prose h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.content-prose img { border-radius: var(--ds-radius); height: auto; }
.content-prose blockquote { border-left: 4px solid var(--ds-primary); padding: .25rem 0 .25rem 1rem; color: #334155; }
.content-prose ul li::marker { color: var(--ds-primary); }
.tabs-line { border-bottom: 1px solid var(--ds-line); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs-line .nav-link { border: 0; color: var(--ds-muted); font-weight: 700; padding: .75rem .9rem; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
.tabs-line .nav-link.active { color: var(--ds-primary); border-bottom-color: var(--ds-primary); background: none; }
.version-row { border-left: 3px solid var(--ds-line); padding: 0 0 1rem 1rem; position: relative; }
.version-row::before { content: ""; position: absolute; left: -7px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--ds-line); }
.version-row.current::before { border-color: var(--ds-success); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--ds-bottom-nav) + env(safe-area-inset-bottom)); z-index: 1035; background: #fff; border-top: 1px solid var(--ds-line); padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 -10px 30px -18px rgba(30, 27, 75, .4); }
@media (min-width: 992px) { .sticky-buy { display: none; } }
.has-sticky-buy footer.site-footer { padding-bottom: 5rem; }

/* ---------- Panels / generic cards ---------- */
.panel { background: #fff; border-radius: var(--ds-radius-lg); border: 1px solid var(--ds-line); padding: 1.15rem; }
@media (min-width: 992px) { .panel { padding: 1.5rem; } }
.panel-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.page-head { padding: 1.25rem 0 .5rem; }
.page-head h1 { font-size: clamp(1.4rem, 3.6vw, 2.25rem); margin: 0; }
.crumbs { font-size: .8rem; color: var(--ds-muted); margin-bottom: .35rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs a { color: var(--ds-muted); }
.crumbs a:hover { color: var(--ds-primary); }
.crumbs span.sep { opacity: .5; }

.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px dashed var(--ds-line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }

.line-item { display: flex; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--ds-line); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }

.pay-option { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; border: 1.5px solid var(--ds-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; margin-bottom: .6rem; }
.pay-option:hover { border-color: color-mix(in srgb, var(--ds-primary) 40%, white); }
.pay-option input { margin: 0; }
.pay-option:has(input:checked) { border-color: var(--ds-primary); background: color-mix(in srgb, var(--ds-primary) 5%, white); }
.pay-option .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; }

/* Order status */
.status-hero { text-align: center; padding: 2rem 1rem; }
.status-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2.2rem; }
.status-ring.wait { background: color-mix(in srgb, var(--ds-accent) 16%, white); color: #b45309; animation: pulse 1.8s ease-in-out infinite; }
.status-ring.ok { background: color-mix(in srgb, var(--ds-success) 16%, white); color: var(--ds-success); animation: pop .5s ease; }
.status-ring.bad { background: #fee2e2; color: #dc2626; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-accent) 40%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Dashboard akun */
.acc-nav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .5rem; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--ds-line); font-weight: 600; font-size: .86rem; color: #334155; }
.acc-nav a.active { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }
@media (min-width: 992px) {
  .acc-nav { flex-direction: column; overflow: visible; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); padding: .6rem; }
  .acc-nav a { border: 0; border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; }
  .acc-nav a.active { background: color-mix(in srgb, var(--ds-primary) 10%, white); color: var(--ds-primary); }
}
.stat { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 1rem; height: 100%; }
.stat .v { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: .78rem; color: var(--ds-muted); font-weight: 600; }
.stat i { font-size: 1.2rem; }
.welcome-card { border-radius: var(--ds-radius-lg); padding: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--ds-primary), color-mix(in srgb, var(--ds-secondary) 80%, var(--ds-primary))); }
.license-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--ds-surface); border: 1px dashed color-mix(in srgb, var(--ds-primary) 35%, white); border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; letter-spacing: .04em; word-break: break-all; }
.dl-card { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dl-card img { width: 88px; height: 66px; border-radius: 12px; object-fit: cover; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; border: 1px solid var(--ds-line); padding: 1.75rem; box-shadow: var(--ds-shadow); }
.auth-card .brand-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; }
.pw-meter { height: 5px; border-radius: 5px; background: var(--ds-line); overflow: hidden; margin-top: .4rem; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .3s, background-color .3s; }

/* Blog */
.post-card { background: #fff; border-radius: var(--ds-radius); overflow: hidden; border: 1px solid var(--ds-line); height: 100%; display: flex; flex-direction: column; }
.post-card img { height: auto; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 1rem 1.1rem 1.2rem; }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-card h3 a { color: var(--ds-ink); }
.post-card h3 a:hover { color: var(--ds-primary); }
.post-hero img { height: auto; border-radius: var(--ds-radius-lg); aspect-ratio: 1200/630; object-fit: cover; width: 100%; }

/* Footer */
.site-footer { background: var(--ds-ink); color: #cbd5e1; padding: 2.5rem 0 1.5rem; margin-top: 2rem; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); margin-right: .35rem; }
.site-footer .social a:hover { background: var(--ds-primary); }
.pay-logos span { display: inline-block; font-size: .72rem; font-weight: 700; padding: .3rem .55rem; border-radius: 6px; background: rgba(255, 255, 255, .08); margin: 0 .25rem .35rem 0; }

/* Pagination */
.pager { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ds-line); font-weight: 700; color: var(--ds-ink); }
.pager span.current { background: var(--ds-primary); border-color: var(--ds-primary); color: #fff; }

/* Toast */
.toast-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 1090; width: min(94vw, 440px); display: grid; gap: .5rem; }
.ds-toast { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: .85rem 1rem; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .45); border-left: 4px solid var(--ds-primary); font-size: .9rem; animation: toastIn .35s cubic-bezier(.2, .8, .2, 1); }
.ds-toast.success { border-color: var(--ds-success); } .ds-toast.success i { color: var(--ds-success); }
.ds-toast.error { border-color: #ef4444; } .ds-toast.error i { color: #ef4444; }
.ds-toast.warning { border-color: var(--ds-accent); } .ds-toast.warning i { color: #d97706; }
.ds-toast.hide { opacity: 0; transform: translateY(-8px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 3rem 1rem; }
.empty > i { font-size: 3rem; color: color-mix(in srgb, var(--ds-primary) 45%, white); }

.table-clean { --bs-table-bg: transparent; font-size: .9rem; }
.table-clean th { font-size: .78rem; color: var(--ds-muted); font-weight: 700; border-bottom-width: 1px; }
.badge { font-weight: 700; border-radius: 8px; padding: .4em .65em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Product detail grid: mobile = image → buy box → description; desktop = 2 columns with a sticky buy box */
.pd-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "tabs"; }
.pd-area-media { grid-area: media; } .pd-area-buy { grid-area: buy; } .pd-area-tabs { grid-area: tabs; }
@media (min-width: 992px) { .pd-grid { gap: 1.5rem 2rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "media buy" "tabs buy"; align-items: start; } }

/* ---------- Floating action button + back to top ---------- */
.float-stack { position: fixed; z-index: 1036; bottom: calc(var(--ds-bottom-nav) + env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; pointer-events: none; }
.float-stack > * { pointer-events: auto; }
.fstack-right { right: 14px; } .fstack-left { left: 14px; align-items: flex-start; }
.has-sticky-buy .float-stack { bottom: calc(var(--ds-bottom-nav) + env(safe-area-inset-bottom) + 78px); }
@media (min-width: 992px) { .float-stack, .has-sticky-buy .float-stack { bottom: 24px; } .fstack-right { right: 24px; } .fstack-left { left: 24px; } }
.back-to-top { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink); display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ds-primary); color: #fff; border-color: var(--ds-primary); }
.fab { position: relative; display: flex; flex-direction: column; align-items: inherit; }
.fab-main { --fab-c: var(--ds-primary); height: 56px; min-width: 56px; padding: 0 1rem; border-radius: 999px; border: 0; background: var(--fab-c); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.45rem; font-weight: 700; box-shadow: 0 14px 30px -12px var(--fab-c); transition: transform .2s; }
.fab-main:hover { color: #fff; transform: translateY(-2px); }
.fab-main .fab-label { font-size: .9rem; }
.fab-main .fab-close { display: none; font-size: 1.2rem; }
.fab.open .fab-main .fab-open { display: none; } .fab.open .fab-main .fab-close { display: inline; }
.fab-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; align-items: inherit; }
.fab-list li { opacity: 0; transform: translateY(12px) scale(.8); visibility: hidden; transition: all .22s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 25ms); }
.fab.open .fab-list li { opacity: 1; transform: none; visibility: visible; }
.fab-list a { --fab-c: #64748b; width: 48px; height: 48px; border-radius: 50%; background: var(--fab-c); color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 10px 22px -10px var(--fab-c); position: relative; }
.fab-list a:hover { color: #fff; filter: brightness(1.08); }
.fab-tip { position: absolute; right: calc(100% + 10px); white-space: nowrap; background: var(--ds-ink); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 8px; pointer-events: none; }
.fstack-left .fab-tip { right: auto; left: calc(100% + 10px); }
.btn-google { background: #fff; border: 1px solid var(--ds-line); color: var(--ds-ink); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; }
.btn-google:hover { background: var(--ds-surface); color: var(--ds-ink); border-color: #cbd5e1; }
.or-divider { display: flex; align-items: center; gap: .75rem; color: var(--ds-muted); font-size: .8rem; margin: 1.1rem 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--ds-line); }
