/* =====================================================================
   Sandeep Sports – B2B / B2C ordering portal (mockup)
   ===================================================================== */
:root {
  --ink: #0d0e11;
  --ink-2: #16181d;
  --ink-3: #22252c;
  --gold: #ffc72c;
  --gold-2: #ffb300;
  --gold-soft: #fff4d1;
  --paper: #f7f5f0;
  --card: #ffffff;
  --text: #16181d;
  --text-2: #4a4f58;
  --muted: #7b808a;
  --line: #e7e3da;
  --line-dark: #2b2f37;
  --good: #1f9d55;
  --warn: #c77700;
  --bad: #d64545;
  --info: #2f86c0;
  --series-wholesale: #a87200;
  --series-retail: #2f86c0;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 8px 28px rgba(16, 18, 22, .08);
  --shadow-lg: 0 30px 80px -20px rgba(16, 18, 22, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --surface: #ffffff;
  --surface-2: #fcfbf8;
  --unread: #fffbef;
  --portal-bg: #f3f1ec;
  --topbar-bg: rgba(243, 241, 236, .85);
  --hover: #e6e2d9;
  --grid: #ebe7de;
  --contrast: var(--ink);
  --contrast-fg: #ffffff;
  --tile: linear-gradient(145deg, #f3f0e8, #e9e4d8);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: auto; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--ink); }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .92; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.gold { color: var(--gold); }
.hl { background: linear-gradient(transparent 62%, var(--gold) 62%); padding: 0 .1em; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 12px 22px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 14px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; position: relative; overflow: hidden;
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.gold { --bg: var(--gold); --fg: var(--ink); }
.btn.gold:hover { box-shadow: 0 12px 28px -8px rgba(255, 179, 0, .6); }
.btn.ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { --bg: var(--surface); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { --bg: var(--bad); }
.btn.good { --bg: var(--good); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.xs { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center;
  position: relative; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(127, 127, 127, .14); }
.icon-btn .badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold);
  color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.icon-btn .badge.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 199, 44, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 199, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0); } }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 199, 44, .35); }
.input.sm { padding: 8px 10px; border-radius: 9px; font-size: 14px; }
textarea.input { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden;
}
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 56px; text-align: center; border: 0; outline: none; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 500; transition: all .2s; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfcac0; border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #ffffff; border-radius: 50%; transition: .25s var(--ease); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(18px); }

/* ---------------------------------------------------------------- pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--text-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.pill.s-placed, .pill.s-pending_approval { background: #fff4d6; color: #8a5a00; }
.pill.s-confirmed { background: #e3f0fa; color: #1d6694; }
.pill.s-packed { background: #ece8fb; color: #5a3fb8; }
.pill.s-dispatched { background: #e2f4f6; color: #0f6f7a; }
.pill.s-delivered, .pill.good { background: #e3f5ea; color: #16723d; }
.pill.s-cancelled, .pill.bad { background: #fbe7e7; color: #a12f2f; }
.pill.warn { background: #fff1dc; color: #8f5200; }
.pill.dark { background: var(--ink); color: var(--gold); }
.tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tier.silver { background: linear-gradient(135deg, #eef1f5, #c8ced8); color: #39414d; }
.tier.gold { background: linear-gradient(135deg, #ffe38a, #ffb300); color: #4a3200; }
.tier.platinum { background: linear-gradient(135deg, #d9fbf7, #8fd3cc); color: #0d4c47; }

/* ---------------------------------------------------------------- header */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 200; }
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100; color: #fff; transition: transform .45s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.site-header.solid { background: rgba(13, 14, 17, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header.hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--display); font-size: 26px; letter-spacing: .04em; line-height: 1; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(255, 199, 44, .3)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-20deg) scale(1.06); }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: .85; transition: all .2s; position: relative; }
.nav a:hover, .nav a.active { opacity: 1; background: rgba(255, 255, 255, .1); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.search-pill {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12); width: 200px; transition: width .35s var(--ease), background .2s;
}
.search-pill:focus-within { width: 320px; background: rgba(255, 255, 255, .16); }
.search-pill input { border: 0; outline: 0; background: transparent; color: #fff; width: 100%; font-size: 14px; }
.search-pill input::placeholder { color: rgba(255, 255, 255, .6); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; border: 0; color: inherit; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.menu-toggle { display: none; }
.acting-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; border-radius: 999px;
  padding: 8px 8px 8px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .5s var(--ease);
}
.acting-bar b { color: var(--gold); }

/* dropdown */
.dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 260px; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: all .22s var(--ease); z-index: 150; transform-origin: top right; }
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button.item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; width: 100%; background: none; border: 0; text-align: left; }
.dropdown a:hover, .dropdown button.item:hover { background: var(--paper); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.rel { position: relative; }
.notif-panel { width: 380px; max-height: 480px; overflow: auto; padding: 0; }
.notif-panel header { position: sticky; top: 0; background: var(--surface); padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; z-index: 1; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.notif:hover { background: var(--paper); }
.notif.unread { background: var(--unread); }
.notif.unread .n-title::after { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold-2); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.n-ico { width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; }
.n-title { font-weight: 600; font-size: 14px; }
.n-body { font-size: 13px; color: var(--text-2); }
.n-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- page transitions */
#app { min-height: 100vh; }
.page { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 20px); } }
.page-top { padding-top: calc(var(--header-h) + 36px); }
.page-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 50px) 0 50px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 199, 44, .35), transparent 65%); filter: blur(10px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); }
.crumbs { font-size: 13px; opacity: .7; display: flex; gap: 8px; margin-bottom: 12px; }
.crumbs a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; background: var(--ink); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: -10% 0 0; background: url("../img/store-banner.jpg") center/cover no-repeat; opacity: .28; filter: saturate(1.1) contrast(1.1); will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 600px at 80% 20%, rgba(255, 199, 44, .22), transparent 60%), linear-gradient(180deg, rgba(13, 14, 17, .3) 0%, rgba(13, 14, 17, .7) 60%, var(--ink) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; padding-top: var(--header-h); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(64px, 10.5vw, 168px); margin: 18px 0 20px; }
.hero h1 .stroke { -webkit-text-stroke: 2px #fff; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; color: rgba(255, 255, 255, .78); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-ball { position: relative; aspect-ratio: 1; width: min(460px, 100%); justify-self: center; }
.hero-ball .ball {
  position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff7c2 0%, #ffd84d 22%, #ffb300 58%, #b37400 100%);
  box-shadow: inset -30px -40px 80px rgba(120, 70, 0, .55), 0 40px 120px -20px rgba(255, 179, 0, .55); animation: float 6s ease-in-out infinite;
}
.hero-ball .ball { overflow: hidden; }
.hero-ball .ball::before, .hero-ball .ball::after { content: ""; position: absolute; top: -12%; bottom: -12%; width: 100%; border-radius: 50%; border: 7px solid rgba(255, 250, 225, .55); box-shadow: 0 0 0 2px rgba(150, 90, 0, .15); }
.hero-ball .ball::before { left: -68%; }
.hero-ball .ball::after { right: -68%; }
.hero-ball .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 199, 44, .35); animation: spin 30s linear infinite; }
.hero-ball .orbit.o2 { inset: -8%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 50s; animation-direction: reverse; }
.hero-ball .orbit i { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.hero-ball .streak { position: absolute; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--gold)); left: -10%; animation: streak 2.8s ease-in-out infinite; }
.hero-ball .streak:nth-child(3) { top: 30%; width: 38%; }
.hero-ball .streak:nth-child(4) { top: 44%; width: 26%; animation-delay: .4s; }
.hero-ball .streak:nth-child(5) { top: 66%; width: 32%; animation-delay: .8s; }
.float-card { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: 12px 16px; font-size: 13px; display: flex; gap: 10px; align-items: center; animation: float 7s ease-in-out infinite; }
.float-card b { display: block; font-size: 15px; color: var(--gold); }
.float-card.fc1 { right: -4%; top: 10%; animation-delay: -2s; }
.float-card.fc2 { left: -8%; bottom: 14%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes streak { 0%, 100% { opacity: 0; transform: translateX(-20px); } 40%, 60% { opacity: 1; transform: translateX(0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.scroll-cue span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 3px; background: var(--gold); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* marquee */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -20px -10px 0; position: relative; z-index: 4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.marquee.dark { background: var(--ink); color: #fff; transform: rotate(1deg); margin-top: -30px; z-index: 3; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-size: 34px; letter-spacing: .04em; }
.marquee.dark .marquee-track { animation-direction: reverse; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; font-size: 20px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 120px 0; position: relative; }
.section.dark { background: var(--ink); color: #fff; }
.section.tight { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(44px, 6vw, 84px); margin: 12px 0 0; }
.section-head p { max-width: 440px; color: var(--text-2); margin: 0; }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--display); font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.stat .n sup { font-size: .45em; color: var(--gold-2); vertical-align: top; margin-left: 4px; }
.stat .l { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* bento categories */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 18px; }
.bento .tile { position: relative; border-radius: 24px; overflow: hidden; background: var(--ink-2); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; cursor: pointer; }
.bento .tile:first-child { grid-row: span 2; }
.bento .tile:nth-child(4) { grid-column: span 2; }
.bento .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.7) saturate(1.05); }
.bento .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(13, 14, 17, .88)); }
.bento .tile:hover img { transform: scale(1.08); filter: brightness(.85); }
.bento .tile h3 { font-family: var(--display); font-weight: 400; font-size: 48px; margin: 0; line-height: .95; }
.bento .tile .meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.bento .tile .go { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transform: rotate(-45deg); transition: transform .5s var(--ease); flex: none; }
.bento .tile:hover .go { transform: rotate(0); }
.bento .tile .count { font-size: 13px; opacity: .75; }
.bento .tile .emoji-bg { position: absolute; right: -20px; top: -30px; font-size: 220px; opacity: .22; z-index: -2; transition: transform 1s var(--ease); filter: saturate(0) brightness(2); }
.bento .tile:hover .emoji-bg { transform: rotate(-12deg) scale(1.1); }

/* split: retail vs wholesale */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way { border-radius: 28px; padding: 44px; position: relative; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; }
.way.retail { background: var(--surface); box-shadow: var(--shadow); }
.way.wholesale { background: var(--ink); color: #fff; }
.way.wholesale::after { content: ""; position: absolute; width: 400px; height: 400px; right: -120px; bottom: -160px; background: radial-gradient(circle, rgba(255, 199, 44, .4), transparent 65%); }
.way h3 { font-family: var(--display); font-weight: 400; font-size: 60px; }
.way ul { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 12px; }
.way li { display: flex; gap: 12px; align-items: flex-start; }
.way li svg { color: var(--gold-2); margin-top: 2px; }
.way .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.way .big-num { position: absolute; right: 30px; top: 20px; font-family: var(--display); font-size: 160px; line-height: 1; opacity: .06; }

/* steps (sticky) */
.steps-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.steps-sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.steps-sticky h2 { font-size: clamp(48px, 6vw, 88px); }
.progress-rail { height: 4px; border-radius: 4px; background: var(--line-dark); margin-top: 30px; overflow: hidden; }
.progress-rail i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s linear; }
.step-list { display: grid; gap: 22px; }
.step { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 70px 1fr; gap: 20px; transition: border-color .4s, transform .4s var(--ease), background .4s; }
.step.active { border-color: var(--gold); transform: translateX(-8px); background: #1b1d23; }
.step .k { font-family: var(--display); font-size: 64px; line-height: .9; color: var(--gold); }
.step h4 { font-size: 22px; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .7); margin: 0; }
.step .mock { margin-top: 18px; background: #0f1014; border-radius: 14px; padding: 14px; font-size: 13px; border: 1px solid var(--line-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #cfd3da; }

/* product cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.p-card { background: var(--card); border-radius: 20px; overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); box-shadow: 0 1px 0 var(--line); transform-style: preserve-3d; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(145deg, #f3f0e8, #e9e4d8); overflow: hidden; cursor: pointer; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .8s var(--ease), opacity .5s; mix-blend-mode: multiply; }
.p-media img.alt { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-media img.main { transform: scale(1.06); }
.p-card:hover .p-media img.alt { opacity: 1; }
.p-card:hover .p-media:has(img.alt) img.main { opacity: 0; }
.p-media .emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: 96px; transition: transform .8s var(--ease); }
.p-card:hover .p-media .emoji { transform: scale(1.12) rotate(-8deg); }
.p-media.e-sports { background: linear-gradient(145deg, #fff3cf, #ffd980); }
.p-media.e-toys { background: linear-gradient(145deg, #e5f3ff, #b9dcfb); }
.p-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.p-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--gold); }
.p-tag.new { background: var(--gold); color: var(--ink); }
.p-tag.offer { background: var(--bad); color: #fff; }
.p-tag.out { background: var(--surface); color: var(--bad); }
.p-actions { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.p-actions button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); transform: translateX(60px); opacity: 0; transition: all .4s var(--ease); }
.p-actions button:nth-child(2) { transition-delay: .06s; }
.p-card:hover .p-actions button, .p-actions button.on { transform: none; opacity: 1; }
.p-actions button.on { color: var(--bad); }
.p-actions button.on svg { fill: currentColor; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p-name { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.7em; cursor: pointer; }
.p-name:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.p-foot { margin-top: auto; padding-top: 6px; }
.p-foot .price-wrap { min-height: 46px; }
.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.p-price .push { margin-left: auto; }
.p-price .now { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.p-price .off { color: var(--good); font-size: 12px; font-weight: 700; }
.p-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.p-add { margin-top: 10px; display: flex; gap: 8px; }
.p-add .btn { flex: 1; }
.est { display: block; font-size: 11px; color: var(--warn); font-weight: 600; margin-top: 2px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.rating svg { width: 13px; height: 13px; fill: var(--gold-2); stroke: none; }

/* horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; display: grid; place-items: center; transition: all .2s; }
.rail-nav button:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }

/* story timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; top: 34px; left: 0; right: 0; height: 2px; background: var(--line-dark); }
.timeline .tl-fill { position: absolute; top: 34px; left: 0; height: 2px; background: var(--gold); width: 0; transition: width 2s var(--ease); }
.timeline.in .tl-fill { width: 100%; }
.tl { position: relative; padding-top: 70px; }
.tl::before { content: ""; position: absolute; top: 26px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.tl .y { font-family: var(--display); font-size: 56px; color: var(--gold); line-height: 1; }
.tl p { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 17px; line-height: 1.55; margin: 0; }
.quote .who { display: flex; gap: 12px; align-items: center; margin-top: auto; font-size: 14px; }
.quote .stars { color: var(--gold-2); letter-spacing: 3px; }

/* CTA band */
.cta-band { border-radius: 32px; background: var(--gold); color: var(--ink); padding: 70px 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(48px, 6vw, 90px); margin: 0; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(13, 14, 17, .07); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 90px 0 30px; font-size: 14px; }
.site-footer .big { font-family: var(--display); font-size: clamp(60px, 12vw, 190px); line-height: .85; color: #fff; opacity: .95; letter-spacing: .01em; margin-bottom: 50px; }
.site-footer .big span { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h5 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { display: block; padding: 4px 0; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.wa-fab:hover { transform: scale(1.1) rotate(-8deg); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- shop */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.filters h6 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 20px 0 10px; color: var(--muted); }
.filters h6:first-child { margin-top: 0; }
.cat-link { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; transition: background .15s; }
.cat-link:hover { background: var(--paper); }
.cat-link.active { background: var(--ink); color: #fff; }
.cat-link.sub { padding-left: 22px; font-size: 13px; }
.cat-link .c { color: var(--muted); font-size: 12px; }
.cat-link.active .c { color: var(--gold); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.view-toggle { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.view-toggle button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; display: grid; place-items: center; }
.view-toggle button.on { background: var(--ink); color: #fff; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big-emoji { font-size: 64px; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* product detail */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery .main { aspect-ratio: 1; background: linear-gradient(145deg, #f3f0e8, #e6e0d2); border-radius: 28px; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; mix-blend-mode: multiply; transition: transform .3s; }
.gallery .main .emoji { font-size: 200px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 80px; height: 80px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); padding: 6px; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd h1 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.02em; }
.price-box { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); margin: 22px 0; }
.price-box .now { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.slab-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.slab-table th, .slab-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.slab-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.slab-table tr.on td { background: var(--gold-soft); font-weight: 700; }
.slab-table .r, .slab-table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.slab-table td:first-child, .slab-table th:first-child { padding-left: 12px; }
.slab-table td:last-child, .slab-table th:last-child { padding-right: 12px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.spec { background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.spec b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.stock-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.stock-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31, 157, 85, .15); }
.stock-dot.low::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(199, 119, 0, .15); }
.stock-dot.out::before { background: var(--bad); box-shadow: 0 0 0 4px rgba(214, 69, 69, .15); }

/* ---------------------------------------------------------------- cards / panels */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card.flat { box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.kpi .d { font-size: 12px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .v { font-variant-numeric: tabular-nums; }
.kpi .d.up { color: var(--good); }
.kpi .d.down { color: var(--bad); }
.kpi.dark { background: var(--ink); color: #fff; }
.kpi.dark .l { color: rgba(255, 255, 255, .6); }
.kpi.accent { background: var(--gold); }
.kpi.accent .l { color: rgba(0, 0, 0, .6); }
.meter { height: 10px; border-radius: 10px; background: var(--paper); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; border-radius: 10px; background: var(--ink); width: 0; transition: width 1.4s var(--ease); }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--bad); }
.kpi.dark .meter { background: var(--ink-3); }
.kpi.dark .meter i { background: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 14px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t th.right, table.t td.right { text-align: right; }
table.t th.center, table.t td.center { text-align: center; }
table.t td .cell-prod .nm, table.t td.wrap { white-space: normal; }
.mini-line b, .mini-line .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.t tbody tr { transition: background .15s; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tbody tr.clickable { cursor: pointer; }
table.t tr.flash td { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: var(--gold-soft); } 100% { background: transparent; } }
.thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); object-fit: contain; padding: 3px; flex: none; display: grid; place-items: center; font-size: 22px; }
.cell-prod { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.cell-prod .nm { font-weight: 600; line-height: 1.3; }
.cell-prod .sk { font-size: 12px; color: var(--muted); }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 800; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .thumb { width: 90px; height: 90px; border-radius: 16px; font-size: 44px; padding: 8px; }
.cart-line.removing { animation: out .4s var(--ease) forwards; }
@keyframes out { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); font-size: 14px; align-items: flex-start; }
.notice.info { background: #e8f2fa; }
.notice.bad { background: #fbe7e7; }
.notice.good { background: #e3f5ea; }
.notice.dark { background: var(--ink); color: #fff; }

/* steps indicator (checkout) */
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.stepper div { flex: 1; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.stepper div.on::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: grow .6s var(--ease); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: all .2s; background: var(--surface); }
.pay-opt:hover { border-color: var(--ink); }
.pay-opt.on { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 199, 44, .35); }
.pay-opt input { accent-color: var(--ink); }

/* order tracking */
.track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 30px 0 10px; }
.track::before { content: ""; position: absolute; top: 20px; left: 10%; right: 10%; height: 3px; background: var(--line); }
.track .fill { position: absolute; top: 20px; left: 10%; height: 3px; background: var(--ink); width: 0; transition: width 1.4s var(--ease); }
.track .st { text-align: center; position: relative; font-size: 13px; }
.track .dot { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; transition: all .4s var(--ease); color: var(--muted); }
.track .st.done .dot { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.track .st.current .dot { background: var(--gold); border-color: var(--ink); color: var(--ink); animation: pulse 1.8s infinite; }
.track .st small { display: block; color: var(--muted); font-size: 11px; }
.hist { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 20px; }
.hist div { position: relative; padding-bottom: 16px; font-size: 14px; }
.hist div::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--ink); }

/* ---------------------------------------------------------------- portal (account / admin) */
.portal { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--portal-bg); }
.side { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .brand { color: #fff; padding: 4px 8px 22px; font-size: 22px; }
.side .brand img { width: 40px; height: 40px; }
.side a.nv { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: all .2s; position: relative; }
.side a.nv:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nv.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.side a.nv .cnt { margin-left: auto; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .14); padding: 2px 8px; border-radius: 10px; }
.side a.nv.active .cnt { background: var(--ink); color: var(--gold); }
.side .grp { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .38); padding: 18px 14px 6px; font-weight: 700; }
.side .me { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--ink-2); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.side .me b { color: #fff; display: block; }
.main { padding: 0 34px 60px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 16px 0; background: var(--topbar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-bottom: 10px; }
.topbar h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.topbar .sub { font-size: 13px; color: var(--muted); }
.topbar .icon-btn:hover { background: var(--hover); }
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
.welcome { background: var(--ink); color: #fff; border-radius: 24px; padding: 30px 34px; position: relative; overflow: hidden; display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.welcome::after { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 199, 44, .45), transparent 60%); }
.welcome h2 { font-size: 30px; letter-spacing: -.02em; }
.welcome > * { position: relative; z-index: 1; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.qa { background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), box-shadow .3s; cursor: pointer; }
.qa:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.qa .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.qa b { font-size: 15px; }
.qa span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #fff; }
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters-row .input { width: auto; }
.search-in { position: relative; }
.search-in svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-in .input { padding-left: 38px; min-width: 260px; }

/* charts */
.chart { position: relative; width: 100%; color: var(--text); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; z-index: 5; box-shadow: var(--shadow-lg); }
.chart .tip b { color: var(--gold); }
.chart .tip.on { opacity: 1; }
.chart path.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.hbar { display: grid; gap: 12px; }
.hbar .r { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.hbar .r b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .bar { height: 12px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.hbar .bar i { display: block; height: 100%; background: var(--ink); border-radius: 0 4px 4px 0; width: 0; transition: width 1.2s var(--ease); }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: var(--ink-3); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .lbl i { font-style: normal; font-size: .6em; margin-left: 1px; vertical-align: .35em; opacity: .8; }
.ring .lbl small { display: block; font-size: 9px; font-weight: 700; opacity: .6; letter-spacing: .12em; }
.ring.sm .lbl { font-size: 17px; }

/* quick order */
.qo-table td { padding: 8px 10px; }
.qo-table .input.sm { min-width: 90px; }
.ac { position: relative; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 380px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 30; max-height: 320px; overflow: auto; padding: 6px; }
.ac-list div { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.ac-list div:hover, .ac-list div.on { background: var(--paper); }
.dropzone { border: 2px dashed var(--line); border-radius: 18px; padding: 30px; text-align: center; transition: all .2s; cursor: pointer; background: var(--surface); }
.dropzone.over { border-color: var(--ink); background: var(--gold-soft); }
.sticky-bar { position: sticky; bottom: 16px; z-index: 40; background: var(--ink); color: #fff; border-radius: 20px; padding: 14px 16px 14px 24px; display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow-lg); margin-top: 20px; flex-wrap: wrap; }
.sticky-bar .tot { font-size: 22px; font-weight: 800; color: var(--gold); }

/* ---------------------------------------------------------------- invoice */
.invoice-wrap { background: #e9e6df; padding: 40px 20px 80px; min-height: 100vh; }
.invoice-tools { width: min(900px, 100%); margin: 0 auto 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.invoice { width: min(900px, 100%); margin: 0 auto; background: #ffffff; box-shadow: var(--shadow-lg); padding: 44px 48px; font-size: 13px; color: #1b1d22; position: relative; }
.invoice::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 8px; background: linear-gradient(90deg, var(--ink) 0 70%, var(--gold) 70%); }
.inv-head { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.inv-head .brand { color: var(--ink); font-size: 30px; }
.inv-head .brand img { width: 64px; height: 64px; }
.inv-title { text-align: right; }
.inv-title h2 { font-family: var(--display); font-weight: 400; font-size: 44px; margin: 0; letter-spacing: .03em; }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.inv-meta h6 { margin: 0 0 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.inv-table th { background: var(--ink); color: #fff; padding: 9px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-align: left; font-weight: 600; }
.inv-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table .r, .inv-table th.r { text-align: right; }
.inv-foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-top: 20px; }
.inv-totals .sum-row { padding: 5px 0; font-size: 13px; }
.inv-totals .sum-row.total { font-size: 18px; background: var(--gold); padding: 10px 12px; border-radius: 8px; border: 0; margin-top: 8px; }
.stamp { display: inline-block; border: 3px solid var(--good); color: var(--good); font-weight: 800; letter-spacing: .2em; padding: 6px 16px; border-radius: 8px; transform: rotate(-8deg); font-size: 18px; opacity: .85; }
.stamp.unpaid { border-color: var(--bad); color: var(--bad); }
.stamp.proforma { border-color: var(--info); color: var(--info); }
.sign { margin-top: 50px; text-align: right; font-size: 12px; }
.sign .line { border-top: 1px solid var(--ink); width: 200px; margin: 40px 0 6px auto; }

/* ---------------------------------------------------------------- modal / drawer / toast */
.overlay { position: fixed; inset: 0; background: rgba(13, 14, 17, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 300; opacity: 0; transition: opacity .3s; display: grid; place-items: center; padding: 20px; }
.overlay.open { opacity: 1; }
.modal { background: var(--surface); border-radius: 26px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; transform: translateY(30px) scale(.97); transition: transform .4s var(--ease); position: relative; }
.modal.wide { width: min(980px, 100%); }
.overlay.open .modal { transform: none; }
.modal .x { position: absolute; top: 14px; right: 14px; }
.drawer-ov { place-items: stretch end; padding: 0; }
.drawer { background: var(--surface); width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.overlay.open .drawer { transform: none; }
.drawer header { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer .body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.mini-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
.mini-line .thumb { width: 64px; height: 64px; font-size: 30px; }
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 400; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; min-width: 300px; max-width: 380px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease); position: relative; overflow: hidden; cursor: pointer; }
.toast.leave { animation: toastOut .35s var(--ease) forwards; }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.toast.good .ti { background: #2fbf71; color: #fff; }
.toast.bad .ti { background: var(--bad); color: #fff; }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); animation: bar linear forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-40px); } }
@keyframes bar { from { width: 100%; } to { width: 0; } }
.social-proof { position: fixed; left: 20px; bottom: 20px; z-index: 80; background: var(--surface); border-radius: 16px; padding: 12px 16px 12px 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 340px; animation: spIn .6s var(--ease); }
.social-proof.leave { animation: spOut .5s var(--ease) forwards; }
.social-proof .thumb { width: 50px; height: 50px; }
@keyframes spIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes spOut { to { opacity: 0; transform: translateY(30px); } }
.fly { position: fixed; z-index: 500; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); pointer-events: none; transition: transform .8s cubic-bezier(.5, -0.3, .7, 1), opacity .8s; display: grid; place-items: center; font-size: 28px; }
.fly img { width: 100%; height: 100%; object-fit: contain; }
.confetti { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 600; pointer-events: none; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); } }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink); color: #fff; padding: 60px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .hero-ball { position: absolute; width: 520px; right: -140px; top: 50%; transform: translateY(-50%); opacity: .9; }
.auth-art h2 { font-size: clamp(56px, 6vw, 96px); position: relative; z-index: 1; max-width: 520px; }
.auth-form { display: grid; place-items: center; padding: 40px; }
.auth-form form { width: min(420px, 100%); }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.demo-acc { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; background: var(--surface); transition: all .2s; display: flex; gap: 10px; align-items: center; }
.demo-acc:hover { border-color: var(--ink); transform: translateY(-2px); }
.demo-acc .avatar { width: 34px; height: 34px; }
.demo-acc b { display: block; font-size: 13px; }
.demo-acc span { font-size: 11px; color: var(--muted); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 22px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }


/* ---------------------------------------------------------------- motion extras */
.cursor { position: fixed; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid rgba(224, 168, 0, .85); pointer-events: none; z-index: 900; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, opacity .3s; }
.cursor.hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255, 199, 44, .16); border-color: rgba(255, 199, 44, .9); }
.cursor.text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--gold); }
.cursor.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor.gone { opacity: 0; }
.curtain { position: fixed; inset: 0; z-index: 800; pointer-events: none; display: grid; place-items: center; background: var(--gold); transform: translateY(101%); }
.curtain img { width: 110px; opacity: 0; transform: scale(.8) rotate(-20deg); transition: all .35s var(--ease); }
.curtain.cover { transform: translateY(0); transition: transform .38s cubic-bezier(.7, 0, .3, 1); pointer-events: auto; }
.curtain.cover img { opacity: 1; transform: none; }
.curtain.lift { transform: translateY(-101%); transition: transform .55s cubic-bezier(.7, 0, .3, 1); }
.marquee-track > span { transform: skewX(calc(var(--skew, 0deg) * -2)); transition: transform .1s linear; }
.skew-scroll { transform: skewY(var(--skew, 0deg)); transition: transform .15s linear; }
.reveal.wipe { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round 24px); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.reveal.wipe.in { clip-path: inset(0 0 0 0 round 24px); }
.reveal.wipe img { transform: scale(1.25); transition: transform 1.6s var(--ease), filter .6s; }
.reveal.wipe.in img { transform: scale(1); }
.bento .tile.reveal.wipe.in:hover img { transform: scale(1.08); }
.reveal.blur { filter: blur(12px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.blur.in { filter: none; }
[data-speed] { will-change: transform; }
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-track { display: flex; gap: 22px; will-change: transform; padding: 0 max(20px, calc((100vw - 1240px) / 2)); }
.hscroll-track .p-card { flex: 0 0 290px; }
.hscroll-progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 28px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 0; background: var(--ink); }
.page-portal { animation: portalIn .55s var(--ease) both; }
@keyframes portalIn { from { opacity: 0; transform: translateY(18px) scale(.995); } }
table.t tbody tr { animation: rowIn .55s var(--ease) both; }
table.t tbody tr:nth-child(1) { animation-delay: 0.03s; }
table.t tbody tr:nth-child(2) { animation-delay: 0.06s; }
table.t tbody tr:nth-child(3) { animation-delay: 0.09s; }
table.t tbody tr:nth-child(4) { animation-delay: 0.12s; }
table.t tbody tr:nth-child(5) { animation-delay: 0.15s; }
table.t tbody tr:nth-child(6) { animation-delay: 0.18s; }
table.t tbody tr:nth-child(7) { animation-delay: 0.21s; }
table.t tbody tr:nth-child(8) { animation-delay: 0.24s; }
table.t tbody tr:nth-child(9) { animation-delay: 0.27s; }
table.t tbody tr:nth-child(10) { animation-delay: 0.30s; }
table.t tbody tr:nth-child(11) { animation-delay: 0.33s; }
table.t tbody tr:nth-child(12) { animation-delay: 0.36s; }
table.t tbody tr:nth-child(13) { animation-delay: 0.39s; }
table.t tbody tr:nth-child(14) { animation-delay: 0.42s; }
table.t tbody tr:nth-child(15) { animation-delay: 0.45s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.kpi { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.side a.nv { transition: all .25s var(--ease); }
.side a.nv:hover { transform: translateX(4px); }
.welcome::after { animation: glow 8s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-120px, 60px) scale(1.2); } }
.page-hero::after { animation: glow 10s ease-in-out infinite alternate; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; font-size: 12px; padding: 0; }

/* ---------------------------------------------------------------- CRUD */
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.row-actions .icon-btn { width: 34px; height: 34px; }
.row-actions .icon-btn:hover { background: var(--paper); }
.row-actions .icon-btn.del:hover { background: #fbe7e7; color: var(--bad); }
.form-section { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.modal-actions { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.img-preview img { width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 10px; padding: 4px; }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px; margin-bottom: 12px; animation: portalIn .3s var(--ease); }
.cat-tree { display: grid; gap: 14px; }
.cat-node { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.cat-node > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-2); }
.cat-sub { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 44px; border-top: 1px solid var(--line); font-size: 14px; }
.addr { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); transition: border-color .2s; }
.addr.on { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 199, 44, .3); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.edit-lines td { vertical-align: middle; }

body:has(.portal) .toasts { left: 284px; }
.f-toggle { display: none; }
@media (max-width: 860px) {
  .f-toggle { display: flex; }
  .filters { padding: 12px; }
  .filters:not(.open) > :not(.f-toggle) { display: none; }
  .filters.open .f-toggle { margin-bottom: 12px; }
}
@media (max-width: 860px) { body:has(.portal) .toasts { left: 16px; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1480px) {
  .search-pill { width: 44px; padding: 0 12px; }
  .search-pill input { width: 0; }
  .search-pill:focus-within { width: 240px; }
  .search-pill:focus-within input { width: 100%; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .search-pill { width: 180px; }
  .search-pill:focus-within { width: 220px; }
  .menu-toggle { display: inline-grid; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-ball { width: 300px; order: -1; margin-top: 30px; }
  .float-card { display: none; }
  .kpis, .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .steps-sticky { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 200; width: 270px; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { padding: 0 16px 60px; }
  .shop-layout, .cart-layout, .pd, .ways, .auth, .cta-band, .inv-foot { grid-template-columns: 1fr; }
  .filters { position: relative; top: 0; max-height: none; }
  .gallery { position: relative; top: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
  .bento .tile:first-child { grid-row: span 1; grid-column: span 2; }
  .stats, .quotes, .timeline { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .auth-art { display: none; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 60px; }
  .search-pill { display: none; }
  .inv-meta { grid-template-columns: 1fr; }
  .invoice { padding: 28px 20px; }
  .track { grid-template-columns: repeat(5, 1fr); font-size: 11px; }
  .track .st span { display: none; }
  .section { padding: 80px 0; }
  .way { padding: 30px; min-height: auto; }
  .cta-band { padding: 44px 28px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .kpis, .quick-actions, .quotes, .foot-grid, .demo-accounts { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-body { padding: 12px; }
  .p-add { flex-direction: column; }
  .notif-panel { width: calc(100vw - 30px); }
  .brand span.txt { display: none; }
}

html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.reduce-motion .reveal, html.reduce-motion .split-line > span { opacity: 1; transform: none; clip-path: none; }
html.reduce-motion .cursor, html.reduce-motion .curtain { display: none; }


/* ---------------------------------------------------------------- dark theme */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1115;
  --card: #171a20;
  --surface: #171a20;
  --surface-2: #1d2128;
  --unread: #231f12;
  --portal-bg: #0f1115;
  --topbar-bg: rgba(15, 17, 21, .85);
  --hover: #262a32;
  --grid: #272b33;
  --text: #eceef2;
  --text-2: #b6bbc4;
  --muted: #8b919b;
  --line: #2a2f37;
  --gold-soft: rgba(255, 199, 44, .14);
  --contrast: #eceef2;
  --contrast-fg: #0d0e11;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --series-wholesale: #c28400;
  --series-retail: #3b9fd6;
}
:where(html[data-theme="dark"]) .btn { --bg: var(--contrast); --fg: var(--contrast-fg); }
html[data-theme="dark"] .chip.active, html[data-theme="dark"] .cat-link.active, html[data-theme="dark"] .tabs button.on, html[data-theme="dark"] .view-toggle button.on { background: var(--contrast); color: var(--contrast-fg); border-color: var(--contrast); }
html[data-theme="dark"] .cat-link.active .c { color: #8a5a00; }
html[data-theme="dark"] .chip:hover, html[data-theme="dark"] .pay-opt:hover, html[data-theme="dark"] .pay-opt.on, html[data-theme="dark"] .addr.on, html[data-theme="dark"] .demo-acc:hover, html[data-theme="dark"] .thumbs button.on, html[data-theme="dark"] .dropzone.over { border-color: var(--text); }
html[data-theme="dark"] .input:focus { border-color: var(--gold); }
html[data-theme="dark"] .meter i, html[data-theme="dark"] .hbar .bar i { background: var(--text); }
html[data-theme="dark"] .meter.warn i { background: var(--warn); }
html[data-theme="dark"] .meter.bad i { background: var(--bad); }
html[data-theme="dark"] .track .fill { background: var(--gold); }
html[data-theme="dark"] .track .st.done .dot { background: var(--surface-2); border-color: var(--gold); }
html[data-theme="dark"] .hist div::before { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
html[data-theme="dark"] .rail-nav button:hover { background: var(--contrast); color: var(--contrast-fg); border-color: var(--contrast); }
html[data-theme="dark"] .qty button:hover, html[data-theme="dark"] .dropdown a:hover, html[data-theme="dark"] .dropdown button.item:hover, html[data-theme="dark"] .cat-link:hover { background: var(--hover); }
html[data-theme="dark"] .welcome, html[data-theme="dark"] .kpi.dark, html[data-theme="dark"] .notice.dark, html[data-theme="dark"] .way.wholesale, html[data-theme="dark"] .sticky-bar, html[data-theme="dark"] .bulk-bar, html[data-theme="dark"] .acting-bar, html[data-theme="dark"] .toast, html[data-theme="dark"] .chart .tip { background: #1b1f26; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
html[data-theme="dark"] .kpi.dark .meter { background: #2a2f37; }
html[data-theme="dark"] .kpi.accent { color: #0d0e11; }
html[data-theme="dark"] .section.dark { background: #08090b; }
html[data-theme="dark"] .step { background: #12151a; }
html[data-theme="dark"] .side { border-right: 1px solid var(--line); background: #0b0c0f; }
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); background: #08090b; }
html[data-theme="dark"] .switch span { background: #3a3f48; }
html[data-theme="dark"] .p-media, html[data-theme="dark"] .gallery .main { background: linear-gradient(145deg, #ebe7de, #d8d2c4); }
html[data-theme="dark"] .thumb, html[data-theme="dark"] .img-preview img, html[data-theme="dark"] .thumbs button { background: #ece8df; color: #0d0e11; }
html[data-theme="dark"] .p-actions button { color: var(--text); }
html[data-theme="dark"] .p-tag.out { background: #fff; }
html[data-theme="dark"] .pill { background: #22262d; color: var(--text-2); }
html[data-theme="dark"] .pill.s-placed, html[data-theme="dark"] .pill.s-pending_approval, html[data-theme="dark"] .pill.warn { background: rgba(255, 179, 0, .14); color: #ffc75a; }
html[data-theme="dark"] .pill.s-confirmed { background: rgba(59, 159, 214, .16); color: #7cc4ef; }
html[data-theme="dark"] .pill.s-packed { background: rgba(140, 110, 240, .18); color: #b9a7ff; }
html[data-theme="dark"] .pill.s-dispatched { background: rgba(30, 170, 185, .16); color: #6fd6e0; }
html[data-theme="dark"] .pill.s-delivered, html[data-theme="dark"] .pill.good { background: rgba(47, 191, 113, .15); color: #6ee7a0; }
html[data-theme="dark"] .pill.s-cancelled, html[data-theme="dark"] .pill.bad { background: rgba(214, 69, 69, .16); color: #ff9b9b; }
html[data-theme="dark"] .pill.dark { background: #0d0e11; color: var(--gold); }
html[data-theme="dark"] .notice.info { background: rgba(59, 159, 214, .12); }
html[data-theme="dark"] .notice.bad { background: rgba(214, 69, 69, .14); }
html[data-theme="dark"] .notice.good { background: rgba(47, 191, 113, .12); }
html[data-theme="dark"] .row-actions .icon-btn:hover { background: var(--hover); }
html[data-theme="dark"] .row-actions .icon-btn.del:hover { background: rgba(214, 69, 69, .16); }
html[data-theme="dark"] .n-ico { background: #0d0e11; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #22262d 25%, #2a2f37 50%, #22262d 75%); background-size: 200% 100%; }
html[data-theme="dark"] .overlay { background: rgba(0, 0, 0, .65); }
html[data-theme="dark"] .p-name:hover { text-decoration-color: var(--gold); }
html[data-theme="dark"] .est { color: #ffb347; }
html[data-theme="dark"] .quote .stars, html[data-theme="dark"] .rating svg { color: var(--gold); fill: var(--gold); }
html[data-theme="dark"] .p-price .off, html[data-theme="dark"] .kpi .d.up { color: #6ee7a0; }
html[data-theme="dark"] .btn.light { --fg: var(--text); }
html[data-theme="dark"] .user-chip.light-chip { background: var(--surface) !important; color: var(--text); }
/* documents always print-light */
.invoice-wrap { --paper: #f7f5f0; --surface: #ffffff; --surface-2: #fcfbf8; --text: #16181d; --text-2: #4a4f58; --muted: #7b808a; --line: #e7e3da; --contrast: #0d0e11; --contrast-fg: #fff; color-scheme: light; color: var(--text); }
html[data-theme="dark"] .invoice-wrap { background: #1a1d23; }
html[data-theme="dark"] .invoice-wrap .invoice-tools .btn.light { --bg: #2a2f37; --fg: #eceef2; }
html[data-theme="dark"] .invoice-wrap .invoice-tools .btn:not(.light) { --bg: var(--gold); --fg: #0d0e11; }

@media print {
  body { background: #fff; }
  .no-print, .site-header, .site-footer, .toasts, .wa-fab, .invoice-tools, .social-proof, .acting-bar, .scroll-progress { display: none !important; }
  .invoice-wrap { padding: 0; background: #fff; }
  .invoice { box-shadow: none; width: 100%; padding: 0; }
  .invoice::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-table th, .inv-totals .sum-row.total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
