/* =====================================================================
   KINGTV design system – storefront, auth, customer account
   Tokens derived from the brand logo: gold #F3C937 / #DF9707 / #F8F67F,
   silver #F5F5F7, brand black #000, LED blue accent #2F7BFF.
   ===================================================================== */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font-sans);
  --radius-xs: 6px; --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --container: 1280px; --container-narrow: 820px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: .18s;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
  --shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.6);
  --gold: #f3c937; --gold-2: #df9707; --gold-3: #f8f67f; --gold-deep: #b8860b;
  --gold-gradient: linear-gradient(135deg, var(--gold-3) 0%, var(--gold) 45%, var(--gold-2) 100%);
  --blue: #2f7bff;
  --success: #3ddc97; --danger: #ff6b6b; --warning: #ffb454; --info: #5aa9ff;
}

html[data-theme="dark"], :root {
  color-scheme: dark;
  --bg: #07070a; --bg-2: #0c0c11;
  --surface: #101016; --surface-2: #16161e; --surface-3: #1d1d27;
  --border: #23232e; --border-strong: #32323f;
  --text: #f5f5f7; --text-2: #c9c9d4; --muted: #9a9aab; --muted-2: #6c6c7d;
  --brand: var(--gold); --brand-contrast: #111111; --brand-soft: rgba(243,201,55,.12); --brand-ring: rgba(243,201,55,.28);
  --link: var(--gold);
  --header-bg: rgba(7,7,10,.72);
  --glass: rgba(16,16,22,.6);
  --success-soft: rgba(61,220,151,.14); --danger-soft: rgba(255,107,107,.14); --warning-soft: rgba(255,180,84,.14); --info-soft: rgba(90,169,255,.14);
  --logo-wrap-bg: transparent;
  --hero-glow: rgba(243,201,55,.16);
  --skeleton: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f8; --bg-2: #ffffff;
  --surface: #ffffff; --surface-2: #f2f2f6; --surface-3: #e9e9f0;
  --border: #e2e2ea; --border-strong: #cfcfda;
  --text: #111118; --text-2: #2c2c38; --muted: #5e5e70; --muted-2: #8a8a9a;
  --brand: #b7860a; --brand-contrast: #111111; --brand-soft: rgba(196,138,6,.12); --brand-ring: rgba(196,138,6,.28);
  --link: #9a6f00;
  --header-bg: rgba(255,255,255,.78);
  --glass: rgba(255,255,255,.65);
  --success: #178f5e; --danger: #d63c3c; --warning: #b86a00; --info: #1f66d1;
  --success-soft: rgba(23,143,94,.12); --danger-soft: rgba(214,60,60,.12); --warning-soft: rgba(184,106,0,.12); --info-soft: rgba(31,102,209,.12);
  --shadow: 0 10px 30px -12px rgba(20,20,40,.18); --shadow-lg: 0 30px 70px -25px rgba(20,20,40,.25); --shadow-sm: 0 1px 2px rgba(20,20,40,.08);
  --logo-wrap-bg: #000000;
  --hero-glow: rgba(243,201,55,.28);
  --skeleton: linear-gradient(90deg, #eeeef3 25%, #e2e2ea 50%, #eeeef3 75%);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
.site-main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; }
svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.h4 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
small { font-size: .85em; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: #111; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pt-0 { padding-top: 0 !important; } .pt-6 { padding-top: 32px !important; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; } .mt-8 { margin-top: 48px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.text-center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; align-content: start; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { display: grid; gap: 28px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.grid-1-2 { display: grid; gap: 28px; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); align-items: start; }
.hide-mobile { } .show-mobile { display: none !important; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.link { color: var(--link); font-weight: 600; }
.link:hover { text-decoration: underline; }
.btn-link { color: var(--link); font-weight: 600; }

.icon { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: -0.2em; }
.icon-xs { width: 14px; height: 14px; } .icon-sm { width: 18px; height: 18px; } .icon-lg { width: 40px; height: 40px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold-gradient); border-radius: 2px; }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head-row p { margin: 0; }
.section-more { text-align: center; margin-top: 36px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; line-height: 1; border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold-gradient); color: var(--brand-contrast); box-shadow: 0 10px 28px -10px rgba(243,201,55,.55); }
.btn-primary:hover { color: #000; box-shadow: 0 14px 34px -10px rgba(243,201,55,.7); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success-soft); color: var(--success); }
.btn-success:hover { background: var(--success); color: #062; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; border-radius: var(--radius); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; transform: none !important; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-sm); color: var(--text-2); transition: background var(--dur), color var(--dur); position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-gradient); color: #111; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------------ chips, badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: .8rem; font-weight: 600; transition: all var(--dur); }
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--radius-xs); font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.badge-sale { background: var(--gold-gradient); color: #111; }
.badge-featured { background: var(--blue); color: #fff; }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.card-accent { border-color: var(--brand-ring); background: linear-gradient(180deg, var(--brand-soft), var(--surface)); }
.card-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty-state .icon-lg { color: var(--brand); opacity: .8; }
.empty-state h3 { margin: 0; color: var(--text); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--brand-ring); flex-wrap: wrap; }
.cta-box h3 { margin-bottom: 4px; } .cta-box p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ alerts & toasts */
.flash-stack { padding-top: 20px; display: grid; gap: 10px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: .95rem; position: relative; }
.alert .icon { margin-top: 2px; }
.alert > div { flex: 1; }
.alert-close { color: inherit; opacity: .7; }
.alert-success { background: var(--success-soft); border-color: rgba(61,220,151,.35); color: var(--success); }
.alert-error { background: var(--danger-soft); border-color: rgba(255,107,107,.35); color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: rgba(255,180,84,.35); color: var(--warning); }
.alert-info { background: var(--info-soft); border-color: rgba(90,169,255,.35); color: var(--info); }
.toast-root { position: fixed; z-index: 1200; right: 16px; bottom: 16px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); font-size: .92rem; }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
.toast .icon { flex: none; }
.toast-success .icon { color: var(--success); } .toast-error .icon { color: var(--danger); } .toast-info .icon { color: var(--info); } .toast-warning .icon { color: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .req { color: var(--danger); } .field .opt { color: var(--muted-2); font-weight: 500; font-size: .78rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239a9aab' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin: 6px 0 0; font-weight: 600; }
.field-hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.input-password { position: relative; }
.input-password input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: var(--radius-xs); }
.pw-toggle .icon:last-child { display: none; }
.pw-toggle.on .icon:first-child { display: none; } .pw-toggle.on .icon:last-child { display: block; }
.check-inline { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check-inline input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.check-inline a { text-decoration: underline; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: all var(--dur); background: var(--surface); }
.radio-card:hover { border-color: var(--brand); }
.radio-card input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.radio-card.checked, .radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.radio-card strong { display: block; } .radio-card small { color: var(--muted); display: block; }
.radio-card .radio-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.qty button { width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty input { width: 52px; min-height: 44px; border: 0; text-align: center; padding: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ------------------------------------------------------------------ dropdown */
.dropdown { position: relative; }
.dropdown-toggle .dropdown-label { font-size: .75rem; font-weight: 800; margin-left: 4px; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--dur) var(--ease); }
.dropdown-menu-right { left: auto; right: 0; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .92rem; font-weight: 600; text-align: left; }
.dropdown-item:hover, .dropdown-item.active { background: var(--surface-2); color: var(--text); }
.dropdown-item .lang-code { font-size: .7rem; font-weight: 800; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; color: var(--brand); }
.dropdown-header { padding: 10px 12px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; }
.dropdown-header small { color: var(--muted); font-size: .78rem; }
.dropdown-menu form { display: contents; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--border); transition: box-shadow var(--dur); }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 58px; width: auto; border-radius: 10px; background: var(--logo-wrap-bg); padding: 0; transition: transform var(--dur) var(--ease); }
html[data-theme="light"] .brand-logo { padding: 4px 8px; }
.brand:hover .brand-logo { transform: scale(1.02); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: .95rem; position: relative; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold-gradient); }
.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.theme-toggle .theme-icon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-dark { display: inline-flex; }
html[data-theme="light"] .theme-toggle .theme-icon-light { display: inline-flex; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold-gradient); color: #111; font-weight: 800; letter-spacing: .02em; }
.avatar-xs { width: 30px; height: 30px; font-size: .75rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }

/* mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 200; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); animation: fade-in .2s; }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; animation: slide-in .25s var(--ease); overflow-y: auto; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mobile-nav-head .brand-logo { height: 40px; }
.mobile-nav-list { padding: 8px; flex: 1; }
.mobile-nav-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 700; font-size: 1.05rem; }
.mobile-nav-list a:hover, .mobile-nav-list a.active { background: var(--surface-2); color: var(--brand); }
.mobile-nav-foot { padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.segment { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.segment button { flex: 1; height: 38px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.segment button.active { background: var(--gold-gradient); color: #111; }
.lang-row { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 210; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); animation: fade-in .2s; }
.search-panel { position: relative; max-width: 720px; margin: min(12vh, 120px) auto 0; padding: 0 16px; animation: toast-in .25s var(--ease); }
.search-form { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lg); }
.search-form .search-icon { color: var(--brand); }
.search-form input { border: 0; background: transparent; min-height: 48px; font-size: 1.1rem; box-shadow: none !important; }
.search-results { margin-top: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-results:empty { display: none; }
.search-group { padding: 8px; }
.search-group + .search-group { border-top: 1px solid var(--border); }
.search-group-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 6px 10px; font-weight: 800; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--text); }
.search-item:hover, .search-item:focus { background: var(--surface-2); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.search-item strong { display: block; font-size: .95rem; } .search-item small { color: var(--muted); }
.search-item .price { margin-left: auto; font-weight: 800; color: var(--brand); white-space: nowrap; }
.search-empty { padding: 20px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; left: 50%; top: -30%; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--hero-glow), transparent 70%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: .25; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 20px; }
.hero-title br + * , .hero-title { }
.hero-title::after { content: ""; }
.hero-copy .hero-title { background: linear-gradient(180deg, var(--text) 55%, var(--muted) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hero-stats div { padding: 14px 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.hero-stats dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hero-stats dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 900; color: var(--brand); letter-spacing: -.02em; }
.hero-visual { position: relative; }
.hero-card { position: relative; border-radius: var(--radius-xl); background: #000; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(243,201,55,.1), 0 40px 120px -40px rgba(243,201,55,.35); overflow: visible; }
.hero-card img { width: 100%; border-radius: var(--radius-xl); }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-strong); font-size: .78rem; font-weight: 800; color: var(--text); box-shadow: var(--shadow); }
.hero-chip .icon { color: var(--brand); }
.hero-chip-1 { top: -14px; right: 24px; animation: float 6s ease-in-out infinite; }
.hero-chip-2 { bottom: -14px; left: 24px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ------------------------------------------------------------------ plans */
.plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 24px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.plan-card-featured { border-color: var(--brand-ring); background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 40%); box-shadow: 0 0 0 1px var(--brand-ring), var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--gold-gradient); color: #111; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan-name { font-size: 1.2rem; margin: 0 0 4px; }
.plan-name a { color: var(--text); }
.plan-duration { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-current { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.plan-card .price-current { color: var(--brand); }
.price-old { color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.price-discount { font-size: .75rem; font-weight: 800; color: var(--success); background: var(--success-soft); padding: 2px 8px; border-radius: var(--radius-xs); }
.plan-monthly { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.plan-features { display: grid; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text-2); }
.plan-features .icon { color: var(--brand); margin-top: 4px; }
.plan-actions { display: grid; gap: 10px; }
.plan-details { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.plan-details:hover { color: var(--brand); }

/* ------------------------------------------------------------------ products */
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #0b0b10; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.wish-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(16,16,22,.75); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: all var(--dur); }
.wish-btn:hover, .wish-btn.active { background: var(--danger); }
.wish-btn.active .icon { fill: currentColor; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 800; }
.product-title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--brand); }
.rating { display: flex; align-items: center; gap: 2px; }
.rating .star { color: var(--border-strong); display: inline-flex; }
.rating .star.on { color: var(--gold); } .rating .star.on .icon { fill: currentColor; }
.rating small { margin-left: 6px; color: var(--muted); font-size: .78rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.product-footer .price-current { font-size: 1.3rem; }
.stock-indicator { font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock-indicator::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.stock-indicator.ok { color: var(--success); } .stock-indicator.low { color: var(--warning); } .stock-indicator.out { color: var(--danger); }

/* ------------------------------------------------------------------ features / steps */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur) var(--ease), border-color var(--dur); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--brand-ring); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { position: absolute; top: -14px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-gradient); color: #111; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; box-shadow: 0 8px 20px -6px rgba(243,201,55,.6); }
.step-icon { display: inline-flex; color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ------------------------------------------------------------------ accordion */
.accordion { display: grid; gap: 10px; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color var(--dur); }
.accordion-item[open] { border-color: var(--brand-ring); }
.accordion-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .icon { color: var(--brand); transition: transform var(--dur) var(--ease); flex: none; }
.accordion-item[open] summary .icon { transform: rotate(180deg); }
.accordion-body { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }

/* ------------------------------------------------------------------ posts */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b10; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.post-title { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.post-title a { color: var(--text); } .post-title a:hover { color: var(--brand); }
.post-excerpt { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.post-header { margin-bottom: 28px; }
.post-header h1 { max-width: 20ch; }
.post-cover { margin: 0 0 32px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 18px; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1.05rem; line-height: 1.8; color: var(--text-2); }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; } .prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; } .prose ul, .prose ol { margin: 0 0 1.2em 1.4em; list-style: revert; } .prose li { margin: .35em 0; }
.prose a { text-decoration: underline; } .prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: var(--radius-sm); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; } .prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ------------------------------------------------------------------ page hero / breadcrumbs */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { margin-bottom: 10px; }
.breadcrumbs { margin-bottom: 18px; font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--text-2); font-weight: 600; }

/* ------------------------------------------------------------------ contact */
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { color: var(--brand); margin-top: 3px; }
.info-list span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.info-list address { font-style: normal; }

/* ------------------------------------------------------------------ pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: .9rem; }
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.active { background: var(--gold-gradient); color: #111; border-color: transparent; }
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ------------------------------------------------------------------ newsletter + footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-2); }
.newsletter-band { background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface); border-bottom: 1px solid var(--border); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px); }
.newsletter-band h2 { font-size: 1.6rem; margin-bottom: 6px; } .newsletter-band p { color: var(--muted); margin: 0; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; }
.newsletter-form .check-inline { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 32px) 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 16px 0; max-width: 34ch; }
.footer-brand .brand-logo { height: 56px; }
.social-row { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover, .footer-col a[aria-current] { color: var(--brand); }
.footer-bottom { display: grid; gap: 12px; padding: 20px clamp(16px, 4vw, 32px) 32px; border-top: 1px solid var(--border); text-align: center; }
.payment-icons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .78rem; font-weight: 700; color: var(--text-2); }
.pay-badge .icon { color: var(--brand); }
.footer-legal, .footer-copy { color: var(--muted-2); font-size: .8rem; margin: 0; }

/* ------------------------------------------------------------------ cookie banner */
.cookie-banner { position: fixed; z-index: 1100; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; animation: toast-in .3s var(--ease); }
.cookie-inner { width: 100%; max-width: 920px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px 22px; display: grid; gap: 14px; }
.cookie-text p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; } .cookie-text a { text-decoration: underline; }
.cookie-settings { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ------------------------------------------------------------------ auth */
.page-auth .site-main, .auth-main { position: relative; flex: 1 0 auto; display: flex; align-items: center; padding: clamp(32px, 6vw, 72px) 0; }
.auth-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 400px at 20% 0%, var(--hero-glow), transparent 70%); }
.auth-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.auth-card .flash-stack { padding: 0 0 16px; }
.auth-title { font-size: 1.9rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-switch a { font-weight: 700; }
.auth-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.auth-aside img { border-radius: var(--radius-xl); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: #000; }
.auth-perks { display: grid; gap: 12px; margin-top: 24px; }
.auth-perks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.auth-perks .icon { color: var(--brand); }

/* ------------------------------------------------------------------ account */
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); align-items: start; }
.account-sidebar { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.account-user strong { display: block; font-size: .95rem; line-height: 1.2; } .account-user small { color: var(--muted); font-size: .78rem; word-break: break-all; }
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: .93rem; width: 100%; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.active { background: var(--brand-soft); color: var(--brand); }
.account-nav .icon { color: currentColor; opacity: .85; }
.account-nav .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-gradient); color: #111; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.account-nav form { display: contents; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 4px; }
.account-head p { color: var(--muted); margin: 0; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat-card dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat-card dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.account-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-grid .span-2 { grid-column: span 2; }
.account-mobile-nav { display: none; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a.strong { font-weight: 700; color: var(--text); } .table a.strong:hover { color: var(--brand); }
.table .actions-cell { text-align: right; white-space: nowrap; }
.table-empty td { text-align: center; padding: 40px; color: var(--muted); }
@media (max-width: 720px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 16px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; text-align: left; }
  .table.responsive td.actions-cell { justify-content: flex-end; }
}

/* timeline */
.timeline { display: grid; gap: 0; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 18px 10px; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline-item strong { display: block; } .timeline-item small { color: var(--muted); } .timeline-item p { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }

/* definition lists */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: .93rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.summary-list { display: grid; gap: 10px; font-size: .95rem; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; }
.summary-list .total { border-top: 1px solid var(--border); padding-top: 12px; font-weight: 900; font-size: 1.15rem; }
.summary-list .total span:last-child { color: var(--brand); }
.summary-list .discount span:last-child { color: var(--success); }

/* address card */
.address-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.address-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 10px; position: relative; }
.address-card address { font-style: normal; color: var(--text-2); line-height: 1.6; }
.address-card .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.address-card .actions { display: flex; gap: 6px; }

/* progress ring / expiry */
.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold-gradient); border-radius: 4px; transition: width .5s var(--ease); }

/* ------------------------------------------------------------------ cart & checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: #0b0b10; }
.cart-item-name { font-weight: 700; color: var(--text); display: block; } .cart-item-name:hover { color: var(--brand); }
.cart-item-meta { color: var(--muted); font-size: .82rem; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cart-item-total { text-align: right; font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.cart-item-remove { color: var(--muted); font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-weight: 700; font-size: .9rem; }
.free-shipping-note { font-size: .82rem; color: var(--muted); padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); display: flex; gap: 8px; align-items: center; }
.checkout-steps { display: flex; gap: 6px; margin-bottom: 28px; counter-reset: cs; }
.checkout-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .88rem; color: var(--muted); }
.checkout-steps li::before { counter-increment: cs; content: counter(cs); width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex: none; }
.checkout-steps li.active { color: var(--text); border-color: var(--brand-ring); background: var(--brand-soft); }
.checkout-steps li.active::before { background: var(--gold-gradient); color: #111; }
.checkout-steps li.done::before { content: "✓"; background: var(--success); color: #062; }
.checkout-section { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 20px; }
.checkout-section h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-section h2 .step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-gradient); color: #111; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.payment-options, .shipping-options { display: grid; gap: 10px; }
.payment-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); flex: none; }
.order-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .92rem; }
.order-line img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; background: #0b0b10; }
.order-line small { color: var(--muted); display: block; }
.order-line .num { font-weight: 800; white-space: nowrap; }
.trust-row { display: grid; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.trust-row div { display: flex; align-items: center; gap: 8px; } .trust-row .icon { color: var(--success); }

/* product detail */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.gallery-main { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #0b0b10; border: 1px solid var(--border); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.gallery-main.zoomed { cursor: zoom-out; } .gallery-main.zoomed img { transform: scale(1.8); }
.gallery-zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(16,16,22,.7); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 84px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: #0b0b10; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.product-info .price-current { font-size: 2.2rem; color: var(--brand); }
.product-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.buy-box { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); margin: 20px 0; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-options label { cursor: pointer; }
.variant-options input { position: absolute; opacity: 0; }
.variant-options span { display: inline-flex; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .9rem; }
.variant-options input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel[hidden] { display: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); } .spec-table td:first-child { color: var(--muted); width: 40%; font-weight: 600; }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-head strong { font-size: .95rem; } .review-head time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.review-reply { margin-top: 8px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: var(--radius-sm); font-size: .92rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: var(--border-strong); }
.star-input label .icon { width: 28px; height: 28px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:checked ~ label .icon, .star-input label:hover .icon, .star-input label:hover ~ label .icon { fill: currentColor; }

/* shop toolbar / filters */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 20px; }
.filter-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.filter-group ul { display: grid; gap: 6px; }
.filter-group li a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .92rem; }
.filter-group li a:hover, .filter-group li a.active { background: var(--brand-soft); color: var(--brand); }
.filter-group li a span { color: var(--muted); font-size: .8rem; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.toolbar select { min-height: 42px; width: auto; }
.filter-toggle { display: none; }

/* payment status pages */
.status-page { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 72px) 0; }
.status-icon { width: 84px; height: 84px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.status-icon .icon { width: 42px; height: 42px; }
.status-success { background: var(--success-soft); color: var(--success); } .status-pending { background: var(--warning-soft); color: var(--warning); } .status-failed { background: var(--danger-soft); color: var(--danger); }
.status-page .card { text-align: left; margin-top: 28px; }
.crypto-address { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--border-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; word-break: break-all; }
.crypto-address code { flex: 1; }
.qr-box { display: inline-block; padding: 12px; background: #fff; border-radius: var(--radius); }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--warning); animation: pulse 1.4s infinite; margin-right: 8px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,84,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,180,84,0); } }

/* skeleton */
.skeleton { background: var(--skeleton); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); animation: fade-in .2s; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; animation: toast-in .25s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal-dialog h3 { margin-bottom: 8px; } .modal-dialog p { color: var(--muted); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-lg .modal-dialog { max-width: 960px; }
.lightbox .modal-dialog { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: min(1100px, 95vw); }
.lightbox img { width: 100%; max-height: 85vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox .icon-btn { position: absolute; top: -48px; right: 0; color: #fff; }

/* ------------------------------------------------------------------ error pages */
.page-error { min-height: 100vh; }
.error-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; position: relative; overflow: hidden; }
.error-glow { position: absolute; left: 50%; top: 20%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--hero-glow), transparent 70%); pointer-events: none; }
.error-card { position: relative; text-align: center; max-width: 640px; width: 100%; display: grid; justify-items: center; gap: 8px; }
.error-card .brand-logo { height: 72px; margin-bottom: 16px; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; margin: 0; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.error-message { color: var(--muted); max-width: 46ch; }
.error-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.error-debug { width: 100%; text-align: left; margin-top: 32px; background: var(--surface); border: 1px solid var(--danger); border-radius: var(--radius); padding: 12px 16px; }
.error-debug summary { font-weight: 700; color: var(--danger); cursor: pointer; }
.error-debug pre { white-space: pre-wrap; word-break: break-word; font-size: .78rem; color: var(--text-2); max-height: 50vh; overflow: auto; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 10px 10px; font-size: .9rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .main-nav, .hide-mobile { display: none !important; }
  .show-mobile { display: inline-flex !important; }
  .brand-logo { height: 46px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .steps, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1, .grid-1-2, .auth-wrap, .cart-layout, .product-layout, .shop-layout, .newsletter-inner { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; display: none; }
  .account-mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
  .account-mobile-nav a { flex: none; }
  .gallery, .filters, .cart-summary { position: static; }
  .filters { display: none; } .filters.open { display: grid; } .filter-toggle { display: inline-flex; }
  .checkout-steps li span { display: none; }
  .checkout-steps li { justify-content: center; }
  .checkout-steps li.active span { display: inline; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .product-grid, .plan-grid, .plan-grid.cols-4, .plan-grid.cols-3, .feature-grid, .steps, .post-grid, .grid-2, .account-grid, .stat-grid { grid-template-columns: 1fr; }
  .account-grid .span-2 { grid-column: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:last-child { grid-column: span 2; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .newsletter-row { flex-direction: column; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item img { width: 72px; height: 56px; }
  .cart-item-total { grid-column: 2; text-align: left; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-actions .btn { flex: 1 1 45%; }
  .toast-root { left: 8px; right: 8px; max-width: none; }
  .btn-lg { min-height: 48px; }
  .hero-chip-1, .hero-chip-2 { display: none; }
  .table th, .table td { padding: 12px; }
  .buy-row .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .header-actions .icon-btn { width: 38px; }
  .hero-stats { grid-template-columns: 1fr; } .hero-stats div:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .toast-root, .account-sidebar, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
