/* SpaceMartX — light theme */
:root {
  --bg: #ffffff;
  --soft: #f7f8fc;
  --tint: #eef0ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8f0;
  --brand: #4f46e5;
  --brand-2: #4338ca;
  --accent: #06b6d4;
  --success: #059669;
  --warning: #b45309;
  --error: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 4px 6px -2px rgba(15, 23, 42, .05), 0 12px 24px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 48px -12px rgba(79, 70, 229, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header-h: 109px;
  --bottom-nav-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --g-software: linear-gradient(135deg, #eef0ff 0%, #c7d2fe 100%);
  --g-subscription: linear-gradient(135deg, #ecfeff 0%, #a5f3fc 100%);
  --g-api: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b));
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; word-break: break-all; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 480px; }
.narrow-lg { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7cbe0; background: var(--soft); }
.btn-soft { background: var(--tint); color: var(--brand); }
.btn-soft:hover { background: #e0e4ff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--tint); }
.btn-sm { padding: 8px 12px; font-size: .875rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav-search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.nav-search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.nav-search .icon { color: var(--muted); flex-shrink: 0; }
.site-header .nav-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: .95rem; color: var(--ink); padding: 6px 0; }
.nav-row { border-top: 1px solid var(--line); }
.nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.nav-ai .icon { color: var(--brand); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.logo-mark { display: inline-flex; }
.logo-word { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo-word b { color: var(--brand); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav > a { white-space: nowrap; }
.main-nav > a { color: var(--ink-2); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.main-nav > a:hover { background: var(--soft); color: var(--ink); }
.main-nav > a.active { color: var(--brand); background: var(--tint); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
  radial-gradient(600px 300px at 85% 10%, rgba(6, 182, 212, .12), transparent 70%),
  radial-gradient(700px 400px at 10% 0%, rgba(79, 70, 229, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--tint); color: var(--brand); border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.08; margin-bottom: 18px; }
.grad-text { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-ticks .icon { color: var(--success); }

.hero-art { position: relative; height: 400px; }
.planet { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #a5b4fc 0%, #6366f1 45%, #4338ca 75%, #312e81 100%);
  box-shadow: inset -18px -22px 40px rgba(15, 23, 42, .35), 0 30px 60px -20px rgba(79, 70, 229, .55); }
.planet-ring { position: absolute; left: 50%; top: 50%; width: 300px; height: 70px; margin: -35px 0 0 -150px; border-radius: 50%;
  border: 6px solid rgba(6, 182, 212, .85); border-top-color: transparent; transform: rotate(-20deg); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1.5px dashed #c7d2fe; border-radius: 50%; }
.orbit-1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: spin 40s linear infinite; }
.orbit-2 { width: 400px; height: 400px; margin: -200px 0 0 -200px; border-color: #bae6fd; animation: spin 60s linear infinite reverse; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.float-card small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.float-card code { border: 0; background: none; padding: 0; font-size: .82rem; color: var(--ink); white-space: nowrap; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--ink); }
.fc-1 { left: 0; top: 18%; animation: float 6s ease-in-out infinite; }
.fc-2 { right: 0; bottom: 14%; animation: float 7s ease-in-out infinite -2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Home: promo banner, trust strip, category row ---------- */
.section-promo { padding: 20px 0 0; }
.promo { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border-radius: 20px; color: #fff;
  background: radial-gradient(420px 260px at 88% 20%, rgba(6, 182, 212, .55), transparent 70%), linear-gradient(120deg, #4f46e5 0%, #4338ca 60%, #3730a3 100%); box-shadow: var(--shadow-lg); }
.promo-copy { position: relative; z-index: 1; max-width: 560px; }
.promo h1 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); margin-bottom: 6px; }
.promo p { color: #e0e7ff; margin-bottom: 18px; }
.eyebrow-light { background: rgba(255, 255, 255, .16); color: #fff; margin-bottom: 12px; }
.promo-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 14px; max-width: 480px; }
.promo-search .icon { color: var(--muted); flex-shrink: 0; }
.promo .promo-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; font: inherit; color: var(--ink); background: transparent; padding: 6px 0; }
.promo-art { position: relative; width: 260px; height: 180px; flex-shrink: 0; }
.promo-art .planet { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.promo-art .planet-ring { width: 210px; height: 50px; margin: -25px 0 0 -105px; border-width: 5px; }

.trust-strip { padding: 14px 0 0; }
.trust-strip ul { list-style: none; margin: 0; padding: 12px 16px; display: flex; justify-content: space-around; gap: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.trust-strip ul::-webkit-scrollbar { display: none; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: .88rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.trust-strip .icon { color: var(--brand); flex-shrink: 0; }

.section-compact { padding: 22px 0; }
.section-compact .section-head { align-items: center; margin-bottom: 14px; }
.section-compact .section-head h2 { margin: 0; font-size: 1.3rem; }
.cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-chip { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.cat-chip:hover { border-color: #c7cbe0; box-shadow: var(--shadow-sm); }
.cat-chip .cat-icon { width: 44px; height: 44px; border-radius: 10px; }
.cat-icon-all { background: var(--soft); color: var(--ink-2); }
.help-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 1px dashed #c7cbe0; border-radius: 12px; background: var(--soft); font-weight: 700; color: var(--ink-2); }
.help-band span { display: inline-flex; align-items: center; gap: 8px; }
.help-band .icon { color: var(--brand); }

.promo-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }

/* ---------- AI assistant ---------- */
.ai { padding: 20px 0 16px; }
.ai-wrap { max-width: 880px; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - var(--safe-b) - 36px); }
.ai-intro { text-align: center; padding: 28px 0 20px; margin: auto 0; }
.ai-intro h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 14px 0 6px; }
.ai-intro p { max-width: 46ch; margin: 0 auto 20px; }
.ai-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; color: #fff; font-size: .9rem; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.ai-avatar-lg { width: 64px; height: 64px; box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .55); }
.ai-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
button.chip { font: inherit; font-size: .88rem; cursor: pointer; }
.ai-thread { list-style: none; margin: 0; padding: 8px 0 16px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.ai-thread:empty { display: none; }
.msg { display: flex; gap: 10px; align-items: flex-start; scroll-margin-bottom: 120px; }
.msg-user { justify-content: flex-end; }
.msg-body { min-width: 0; max-width: 100%; }
.msg-user .msg-body { max-width: 82%; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-user .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai .bubble { background: var(--soft); border: 1px solid var(--line); color: var(--ink); border-top-left-radius: 4px; display: inline-block; }
.bubble-error { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.ai-cards { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.msg-ai .msg-body { flex: 1; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ai-composer { position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 12px); z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .25); }
.ai-composer:focus-within { border-color: var(--brand); }
.ai .ai-composer input[type=text] { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 10px 6px; font-size: 1rem; }
.ai-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0; }
.ai-icon-btn[hidden] { display: none; }
.ai-send { background: var(--brand); color: #fff; }
.ai-send:hover { background: var(--brand-2); }
.ai-composer.is-busy .ai-send { opacity: .5; pointer-events: none; }
.ai-mic { background: var(--tint); color: var(--brand); }
.ai-mic.is-listening { background: var(--error); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 100% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); } }
.ai-foot { text-align: center; margin: 10px 0 0; }
.ai-foot .link-btn { margin-left: 8px; }
.ai-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.ai-legal a { color: var(--muted); }
.ai-legal a:hover { color: var(--brand); }
.ai-legal span { flex-basis: 100%; text-align: center; }

/* Product page: collapsible details */
.panel-flush { padding: 4px 22px; }
.details-body p { margin: 0 0 12px; color: var(--ink-2); }
.details-body { padding-bottom: 4px; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; transition: box-shadow .2s, border-color .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--shadow); border-color: #d4d8f0; transform: translateY(-2px); }
.cat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.cat-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cat-text small { color: var(--muted); }
.cat-arrow { color: var(--muted); flex-shrink: 0; }

/* ---------- Thumbnails ---------- */
.thumb-software { background: var(--g-software); color: #4338ca; }
.thumb-subscription { background: var(--g-subscription); color: #0e7490; }
.thumb-api { background: var(--g-api); color: #047857; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4d8f0; }
.card-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.is-oos .card-thumb img { opacity: .8; filter: grayscale(.35); }
.card-tagline { font-size: .82rem; color: var(--muted); margin: -2px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plans { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.plan { font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; line-height: 1.2; }
.plan:hover { border-color: #c7cbe0; }
.plan.is-on { border-color: var(--brand); background: var(--tint); color: var(--brand); }
.plan.is-oos:not(.is-on) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, .5); }
.thumb-giftcard { background: linear-gradient(135deg, #ffedd5 0%, #fbcfe8 100%); color: #be185d; }
.promo-gift { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; opacity: .9; transform: rotate(-8deg); }
.cat-icon-ai, .thumb-ai { background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%); color: #6d28d9; }
.card-thumb .icon { opacity: .9; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--error); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.oos-overlay { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .02em; }
.card.is-oos .card-thumb .icon { opacity: .4; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-cat { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 1rem; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card-desc { font-size: .87rem; color: var(--muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.price-lg { font-size: 2rem; letter-spacing: -.02em; }
.mrp { color: var(--muted); font-size: .88rem; }
.card-billing { font-size: .8rem; color: var(--muted); }
.card-delivery { font-size: .8rem; font-weight: 600; color: var(--warning); margin: 4px 0 12px; }
.card-delivery.is-instant { color: var(--success); }
.card-buy { position: relative; z-index: 1; }

/* ---------- Steps / trust / CTA ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { padding: 4px; }
.trust p { color: var(--muted); margin: 0; font-size: .94rem; }
.trust-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 20px; color: #fff;
  background: radial-gradient(400px 200px at 90% 0%, rgba(6, 182, 212, .5), transparent 70%), linear-gradient(120deg, #4f46e5, #4338ca); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #e0e7ff; }

/* ---------- Listing page ---------- */
.page-head { padding: 28px 0 8px; background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 4px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.filters { margin-top: 18px; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow-sm); max-width: 640px; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.search-box .icon { color: var(--muted); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; padding: 6px 0; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none !important; }
.chip:hover { border-color: #c7cbe0; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort select { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 32px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.result-bar p { margin: 0; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--soft); }
.empty-sm { padding: 28px 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--brand); margin-bottom: 12px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.pdp-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pdp-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 6; border-radius: 18px; }
.pdp-thumb .ribbon, .pdp-thumb .badge { top: 16px; font-size: .8rem; }
.pdp-thumb .ribbon { left: 16px; }
.pdp-thumb .badge { right: 16px; }
.pdp-title h1 { margin: 6px 0 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.delivery-line { font-weight: 600; color: var(--warning); }
.delivery-line.is-instant { color: var(--success); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.faq-lg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-top: 8px; }

.buybox { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.buybox-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.save { color: var(--success); font-weight: 700; margin: 4px 0 8px; }
.validity { font-size: .9rem; color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0 16px; }
.assure { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-size: .88rem; color: var(--ink-2); }
.assure li { display: flex; gap: 10px; align-items: flex-start; }
.assure .icon { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.buybar { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=search]:not(.search-box input), textarea, .field input {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
input[readonly] { background: var(--soft); color: var(--ink-2); }
textarea { resize: vertical; min-height: 90px; }
.hint { color: var(--muted); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.verified { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; color: var(--success); background: #d1fae5; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin: 0 0 14px; border: 1px solid; }
.notice-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- Auth ---------- */
.auth-wrap { background: radial-gradient(600px 300px at 50% 0%, rgba(79, 70, 229, .08), transparent 70%); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint); color: var(--brand); margin-bottom: 16px; }
.code-input { font-family: var(--mono) !important; font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; padding: 14px !important; }
.sent-to { margin: 0; font-size: .95rem; color: var(--ink-2); word-break: break-all; }

/* ---------- Account / order ---------- */
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { margin-bottom: 2px; }
.account-head p { margin: 0; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-actions form { margin: 0; }
.account-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: #d1fae5; color: #065f46; }
.pill-warn { background: #fef3c7; color: #92400e; }
.pill-err { background: #fee2e2; color: #991b1b; }
.pill-muted { background: #f1f5f9; color: #475569; }
.order-hero { text-align: center; padding: 16px 0 24px; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #d1fae5; color: var(--success); margin-bottom: 14px; }
.narrow-lg > .panel, .narrow-lg > .notice { margin-bottom: 18px; }
.details { margin: 0; display: grid; gap: 0; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); flex-shrink: 0; }
.details dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; word-break: break-word; }
.key-box { display: flex; align-items: center; gap: 12px; background: var(--tint); border: 1px dashed #a5b4fc; border-radius: 12px; padding: 14px 16px; }
.key-box code { flex: 1; background: none; border: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 0; }
.help-panel { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); }
.help-panel .icon { color: var(--brand); flex-shrink: 0; }
.help-panel p { margin: 0; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat strong { font-size: 1.6rem; font-weight: 800; }
.stat-warn { border-color: #fde68a; background: #fffbeb; }
#stock, #orders, #messages { margin-bottom: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.stock-list { display: grid; gap: 12px; }
.stock-row { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.stock-row.is-low { border-color: #fde68a; background: #fffbeb; }
.stock-info { display: grid; gap: 6px; justify-items: start; }
.stock-row textarea { min-height: 70px; font-family: var(--mono); font-size: .85rem; }
.deliver-form { display: flex; gap: 6px; min-width: 260px; }
.deliver-form input { padding: 7px 10px !important; font-size: .85rem; }
.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.messages li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.messages p { margin: 8px 0 0; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Prose / legal ---------- */
.prose h2 { margin-top: 1.6em; }
.prose > h1 + .lead, .prose > h1 + .updated { margin-top: -.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: var(--ink-2); }
.panel.prose h2:first-child, .panel.prose h2 { margin-top: 0; }
.legal h2 { font-size: 1.2rem; }
.updated { color: var(--muted); font-size: .9rem; }
.biz-block { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; margin-bottom: 1em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0 !important; display: grid; gap: 16px; margin: 20px 0 !important; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.contact-list div { display: flex; flex-direction: column; }
.planet-sm { position: relative; left: auto; top: auto; margin: 0 auto 24px; width: 110px; height: 110px; }
.planet-sm .planet-ring { width: 180px; height: 44px; margin: -22px 0 0 -90px; border-width: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 48px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 12px 0 16px; font-size: .92rem; max-width: 40ch; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-links .link-btn { color: var(--ink-2); font-weight: 500; font-size: .94rem; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--brand); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon { color: var(--muted); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--ink-2); }
.footer-gst { font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.pay-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badges li { font-size: .74rem; font-weight: 800; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; letter-spacing: .02em; }

/* ---------- Bottom nav, cookie banner, toast ---------- */
.bottom-nav { display: none; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--bottom-nav-h) + var(--safe-b)); z-index: 60; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 760px; width: 100%; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .25); }
.cookie-inner p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bottom-nav-h) + var(--safe-b)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.toast.is-error { background: var(--error); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 320px; max-width: 460px; width: 100%; margin: 0 auto; }
  .pdp { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .stock-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 112px; --bottom-nav-h: 64px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 8px 12px; }
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-row { border-top: 0; }
  .menu-toggle { display: inline-grid; }
  .header-account { display: none; }
  .main-nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; height: auto; max-width: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px calc(24px + var(--bottom-nav-h)); background: #fff; border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-mobile-cta { display: block; margin-top: 16px; }
  body.nav-open { overflow: hidden; }

  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: calc(var(--bottom-nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav a.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--brand); }
  /* Raised centre AI button */
  .bottom-nav .bn-ai { justify-content: flex-end; padding-bottom: 8px; color: var(--ink-2); }
  .bottom-nav .bn-ai.active { color: var(--brand); }
  .bottom-nav .bn-ai.active::before { display: none; }
  .bn-ai-btn { position: absolute; top: -20px; left: 50%; margin-left: -28px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent)); border: 4px solid #fff; box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .6); }
  .bottom-nav .bn-ai.active .bn-ai-btn { box-shadow: 0 0 0 3px rgba(79, 70, 229, .25), 0 8px 20px -6px rgba(79, 70, 229, .6); }

  .section { padding: 40px 0; }
  .section-tight { padding: 20px 0 40px; }
  .hero { padding: 36px 0 28px; }
  .cat-tiles { grid-template-columns: 1fr; gap: 10px; }
  .promo { padding: 24px 20px; }
  .promo-art { display: none; }
  .trust-strip ul { justify-content: flex-start; gap: 20px; }
  .cat-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 84px; flex-direction: column; gap: 6px; padding: 10px 4px; font-size: .76rem; text-align: center; }
  .section-compact { padding: 18px 0; }
  .steps { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Mobile buy bar sits above the bottom nav */
  body.has-buybar { padding-bottom: calc(var(--bottom-nav-h) + 72px + var(--safe-b)); }
  .buybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + var(--safe-b)); z-index: 54; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, .2); }
  .buybar-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
  .buybar-price small { color: var(--muted); width: 100%; font-size: .75rem; }
  .buybar .btn { flex-shrink: 0; min-width: 132px; }
  body.has-buybar .cookie-banner { bottom: calc(16px + var(--bottom-nav-h) + 72px + var(--safe-b)); }
  body.has-buybar .toast { bottom: calc(24px + var(--bottom-nav-h) + 72px + var(--safe-b)); }

  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-desc, .card-cat, .card-tagline { display: none; }
  .card-title { font-size: .9rem; margin-top: 0; }
  .price { font-size: 1.05rem; }
  .price-lg { font-size: 1.8rem; }
  .mrp { font-size: .8rem; }
  .ribbon, .badge { font-size: .65rem; top: 8px; padding: 2px 6px; }
  .ribbon { left: 8px; }
  .badge { right: 8px; }
  .card-delivery { font-size: .74rem; margin: 4px 0 10px; }
  .card-thumb .icon { width: 34px; height: 34px; }
  .hero-cta .btn { flex: 1; }
  .hero-art { height: 260px; }
  .planet { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .planet-ring { width: 220px; height: 52px; margin: -26px 0 0 -110px; border-width: 5px; }
  .orbit-1 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .orbit-2 { width: 290px; height: 290px; margin: -145px 0 0 -145px; }
  .float-card { padding: 8px 10px; }
  .float-card code { font-size: .74rem; }
  .fc-icon { width: 30px; height: 30px; }
  .trust { grid-template-columns: 1fr; gap: 16px; }
  .cta-band { padding: 24px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .sort select { width: 100%; }
  .search-box .btn { padding: 8px 10px; }
  .auth-card { padding: 22px; }
  .panel { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .key-box { flex-direction: column; align-items: stretch; }

  /* Stacked tables on phones */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; }
  .table td:last-child { border-bottom: 0; }
  .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; flex-shrink: 0; }
  .deliver-form { min-width: 0; flex: 1; }
}

@media (max-width: 380px) {
  .grid { gap: 10px; }
  .logo-word { font-size: 1.1rem; }
  .bottom-nav a { font-size: .66rem; }
  .buybar .btn { min-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
