:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf4f6;
  --surface: rgb(255 255 255 / 78%);
  --surface-strong: #dfecef;
  --text: #071923;
  --muted: #627985;
  --link: #008eae;
  --button: #008eae;
  --button-text: #ffffff;
  --green: #0b9f73;
  --yellow: #d88a14;
  --red: #e84c5a;
  --violet: #586fd6;
  --mint-soft: rgb(11 159 115 / 9%);
  --blue-soft: rgb(0 142 174 / 9%);
  --coral-soft: rgb(232 76 90 / 9%);
  --yellow-soft: rgb(216 138 20 / 10%);
  --border: rgb(35 86 103 / 19%);
  --shadow: 0 16px 40px rgb(24 65 78 / 16%);
  --glass-card: linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(225 240 244 / 78%));
  --glass-control: rgb(239 248 250 / 72%);
  --glass-nav: rgb(245 251 252 / 88%);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06121a;
  --surface: rgb(10 27 37 / 76%);
  --surface-strong: #102b38;
  --text: #f1fbff;
  --muted: #8299a7;
  --link: #31d8f2;
  --button: #00bad6;
  --button-text: #ffffff;
  --green: #50e99d;
  --yellow: #ffc14a;
  --red: #ff6675;
  --violet: #8a9dff;
  --mint-soft: rgb(80 233 157 / 10%);
  --blue-soft: rgb(49 216 242 / 10%);
  --coral-soft: rgb(255 102 117 / 10%);
  --yellow-soft: rgb(255 193 74 / 11%);
  --border: rgb(123 205 226 / 24%);
  --shadow: 0 22px 54px rgb(0 0 0 / 48%);
  --glass-card: linear-gradient(145deg, rgb(18 47 60 / 82%), rgb(5 18 27 / 76%));
  --glass-control: rgb(5 18 27 / 42%);
  --glass-nav: rgb(10 29 40 / 82%);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
body { overscroll-behavior: none; }
:root[data-theme="dark"] body::before, :root[data-theme="dark"] body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; }
:root[data-theme="dark"] body::before { top: 0; bottom: 0; left: 0; width: 2px; background: rgb(49 216 242 / 36%); box-shadow: 18px 0 58px rgb(49 216 242 / 24%), 44px 0 120px rgb(49 216 242 / 10%); animation: edge-breathe 5.5s ease-in-out infinite; }
:root[data-theme="dark"] body::after { right: 0; bottom: 76px; left: 0; height: 2px; background: rgb(255 193 74 / 18%); box-shadow: 0 -16px 65px rgb(255 193 74 / 15%), 0 -34px 120px rgb(49 216 242 / 9%); animation: edge-breathe 7s ease-in-out infinite reverse; }
@keyframes edge-breathe { 50% { opacity: .62; filter: brightness(1.28); } }
@keyframes glass-breathe { 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), inset 0 0 70px rgb(49 216 242 / 9%), 0 0 34px rgb(49 216 242 / 17%), 0 24px 60px rgb(0 0 0 / 48%); } }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
.is-hidden { display: none !important; }

.app-shell { position: relative; z-index: 1; min-height: 100dvh; max-width: 760px; margin: 0 auto; padding-bottom: calc(118px + var(--safe-bottom)); }
.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 68px; padding: max(8px, env(safe-area-inset-top)) 14px 8px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(22px) saturate(125%); border-bottom: 1px solid var(--border); }
body.tg-fullscreen .topbar { min-height: 0; padding-top: max(108px, calc(var(--tg-content-safe-area-inset-top, 0px) + 4px)); padding-bottom: 6px; align-items: center; }
.brand-block { display: flex; gap: 10px; min-width: 0; align-items: center; }
.brand-block strong, .brand-block span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-block strong { font-size: 16px; }
.brand-block span:not(.brand-mark) { margin-top: 2px; color: var(--muted); font-size: 12px; }
.brand-mark { display: grid !important; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid color-mix(in srgb, var(--link) 50%, var(--border)); border-radius: 8px; background: var(--blue-soft); color: var(--link); font-weight: 900; box-shadow: 0 0 18px color-mix(in srgb, var(--link) 18%, transparent); }
.brand-mark.has-image { overflow: hidden; background: var(--surface-strong); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.icon-button { display: inline-grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.icon-button:active { background: var(--surface); transform: scale(.96); }
.icon-button svg { width: 21px; height: 21px; }

.content { padding: 20px 16px 28px; }
body[data-view="seller-home"] .topbar { display: none; }
body[data-view="seller-home"] .content { padding-top: max(20px, calc(var(--tg-content-safe-area-inset-top, 0px) + 14px), calc(env(safe-area-inset-top) + 14px)); }
body.tg-fullscreen[data-view="seller-home"] .content { padding-top: max(112px, calc(var(--tg-content-safe-area-inset-top, 0px) + 6px)); }
.splash { display: grid; min-height: 68dvh; place-content: center; text-align: center; }
.splash h1 { margin: 16px 0 4px; font-size: 30px; }
.splash p { margin: 0; color: var(--muted); }
.logo-pulse { display: grid; width: 76px; height: 76px; margin: auto; place-items: center; border: 1px solid var(--link); border-radius: 8px; background: var(--surface); color: var(--link); font-size: 38px; font-weight: 900; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 16px 38px rgb(20 114 230 / 34%); } }

.hero { padding: 6px 0 20px; }
.hero-kicker { margin: 0 0 6px; color: var(--link); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.12; }
.hero p { max-width: 580px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.terminal-intro { display: grid; grid-template-columns: minmax(0, 1fr) 42px; margin: 2px 4px 18px; align-items: center; gap: 10px; }
.terminal-brand { display: grid; min-width: 0; grid-template-columns: 30px minmax(0, 1fr); align-items: center; }
.terminal-brand h1 { margin: 0; font-size: 24px; line-height: 1.05; }
.terminal-brand p { display: flex; grid-column: 2; margin: 3px 0 0; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; }
.terminal-brand p svg { width: 12px; }
.terminal-signal { display: grid; grid-row: 1 / 3; width: 26px; height: 40px; align-items: center; color: var(--link); }
.terminal-signal svg { width: 25px; height: 25px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--link) 70%, transparent)); }
.sync-block { display: grid; justify-items: center; gap: 3px; }
.sync-block small { color: var(--muted); font-size: 8px; }
.sync-status { display: inline-flex; padding: 8px 11px; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--green) 56%, var(--border)); border-radius: 999px; background: var(--mint-soft); color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 0 20px color-mix(in srgb, var(--green) 15%, transparent); }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.terminal-settings { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 18px color-mix(in srgb, var(--link) 7%, transparent), 0 10px 26px rgb(0 0 0 / 24%); backdrop-filter: blur(24px) saturate(145%); }
.terminal-settings svg { width: 18px; }
.revenue-console { position: relative; overflow: hidden; padding: 20px 20px 14px; border: 1px solid color-mix(in srgb, var(--link) 52%, var(--border)); border-radius: 20px; background: var(--glass-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), inset 0 0 60px rgb(49 216 242 / 7%), 0 0 26px rgb(49 216 242 / 13%), var(--shadow); backdrop-filter: blur(30px) saturate(155%); animation: glass-breathe 6s ease-in-out infinite; }
.revenue-console::before { content: ""; position: absolute; top: 0; right: 13%; left: 13%; height: 1px; background: rgb(148 242 255 / 76%); box-shadow: 0 0 15px 3px rgb(49 216 242 / 38%); opacity: .65; }
.console-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.console-heading svg { width: 13px; }
.period-chip { display: inline-flex; max-width: 145px; padding: 8px 28px 8px 10px; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 12px; outline: none; background-color: var(--glass-control); color: var(--text); font-size: 11px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%); }
.payment-requisites { display: grid; gap: 8px; margin: 12px 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--link) 45%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--link) 8%, var(--surface)); }
.payment-requisites span { display: flex; align-items: center; gap: 6px; color: var(--link); font-size: 12px; }
.payment-requisites span svg { width: 16px; height: 16px; }
.payment-requisites b { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.payment-requisites small { color: var(--muted); font-size: 12px; }
.shipment-summary { display: grid; gap: 7px; margin: 12px 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--green) 40%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.shipment-summary span { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; }
.shipment-summary span svg { width: 16px; height: 16px; }
.shipment-summary small { color: var(--muted); }
.amount-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.amount-control .button { min-width: 112px; padding-inline: 12px; }
.revenue-console > strong { display: block; margin: 9px 0 8px; font-size: clamp(32px, 10vw, 48px); line-height: 1; text-shadow: 0 0 18px color-mix(in srgb, var(--text) 18%, transparent); }
.console-summary { display: flex; gap: 22px; color: var(--muted); font-size: 10px; }
.console-summary span { display: grid; gap: 2px; }
.console-summary b { color: var(--green); font-size: 13px; }
.sales-chart { position: relative; margin-top: 5px; }
.sales-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--border); stroke-width: .7; stroke-dasharray: 2 4; }
.chart-line-shadow, .chart-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-shadow { stroke: var(--link); stroke-width: 6; opacity: .13; filter: blur(3px); }
.chart-line { stroke: var(--link); stroke-width: 1.8; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--link) 70%, transparent)); }
.chart-point-glow { fill: var(--link); opacity: .18; }
.chart-point { fill: var(--bg); stroke: var(--link); stroke-width: 2; filter: drop-shadow(0 0 4px var(--link)); }
.chart-labels { display: flex; margin-top: -7px; justify-content: space-between; color: var(--muted); font-size: 8px; }
.terminal-metrics { display: flex; gap: 8px; margin-top: 14px; padding: 3px 2px 7px; }
.terminal-metrics::-webkit-scrollbar { display: none; }
.terminal-metric { position: relative; display: flex; overflow: hidden; flex: 1 1 0; min-width: 0; min-height: 112px; padding: 17px 12px 15px; align-items: center; justify-content: center; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 17px; background: var(--glass-card); text-align: center; backdrop-filter: blur(25px) saturate(145%); transition: transform .18s ease, filter .18s ease; }
.terminal-metric::before { content: ""; position: absolute; top: 15%; bottom: 15%; left: -2px; width: 1px; background: var(--metric-glow, var(--link)); box-shadow: 7px 0 24px 5px var(--metric-glow, var(--link)); opacity: .18; pointer-events: none; }
.terminal-metric:active { transform: scale(.975); filter: brightness(1.15); }
.terminal-metric.cyan { --metric-glow: var(--link); border-color: color-mix(in srgb, var(--link) 44%, var(--border)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 34px color-mix(in srgb, var(--link) 11%, transparent), 0 0 22px color-mix(in srgb, var(--link) 11%, transparent); }
.terminal-metric.amber { --metric-glow: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 44%, var(--border)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 34px color-mix(in srgb, var(--yellow) 11%, transparent), 0 0 22px color-mix(in srgb, var(--yellow) 9%, transparent); }
.terminal-metric.mint { --metric-glow: var(--green); border-color: color-mix(in srgb, var(--green) 44%, var(--border)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 34px color-mix(in srgb, var(--green) 11%, transparent), 0 0 22px color-mix(in srgb, var(--green) 9%, transparent); }
.terminal-metric-main { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; }
.terminal-metric-icon { display: grid; flex: 0 0 30px; width: 30px; height: 34px; place-items: center; color: var(--metric-glow, var(--link)); }
.terminal-metric-icon svg { width: 28px; height: 28px; filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 14px currentColor); }
.terminal-metric > svg { position: absolute; top: 50%; right: 7px; width: 12px; color: color-mix(in srgb, var(--metric-glow, var(--link)) 45%, var(--muted)); transform: translateY(-50%); opacity: .65; }
.terminal-metric b, .terminal-metric small { display: block; }
.terminal-metric b { color: color-mix(in srgb, var(--metric-glow, var(--link)) 76%, var(--text)); font-size: 26px; line-height: 1; text-shadow: 0 0 7px color-mix(in srgb, var(--metric-glow, var(--link)) 65%, transparent), 0 0 18px color-mix(in srgb, var(--metric-glow, var(--link)) 34%, transparent); }
.terminal-metric small { width: 100%; min-height: 15px; color: color-mix(in srgb, var(--metric-glow, var(--link)) 66%, var(--text)); font-size: 11px; font-weight: 750; line-height: 1.25; text-align: center; text-shadow: 0 0 8px color-mix(in srgb, var(--metric-glow, var(--link)) 45%, transparent); }
.text-action { display: inline-flex; padding: 5px 0; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.text-action svg { width: 14px; }
.terminal-orders { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(18px); }
.terminal-empty { display: flex; min-height: 92px; padding: 17px; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--border); border-radius: 17px; background: var(--glass-card); color: var(--muted); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 14px 38px rgb(0 0 0 / 20%); backdrop-filter: blur(24px) saturate(140%); }
.terminal-empty > svg { width: 30px; color: var(--link); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--link) 45%, transparent)); }
.terminal-empty b, .terminal-empty span { display: block; }
.terminal-empty b { color: var(--text); font-size: 13px; }
.terminal-empty span { margin-top: 4px; font-size: 10px; }
.order-side { display: grid; gap: 5px; justify-items: end; }
.order-side > b { font-size: 12px; }
.order-status { padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.order-status.new { border-color: color-mix(in srgb, var(--yellow) 55%, var(--border)); background: var(--yellow-soft); color: var(--yellow); }
.order-status.accepted { border-color: color-mix(in srgb, var(--link) 55%, var(--border)); background: var(--blue-soft); color: var(--link); }
.order-status.shipped { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); background: var(--mint-soft); color: var(--green); }
.today-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin: 4px 0 22px; align-items: end; }
.today-summary h1 { margin: 0; font-size: 27px; line-height: 1.1; }
.today-summary p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.today-state { display: flex; align-items: center; gap: 10px; color: var(--green); }
.today-state > svg { width: 35px; height: 35px; }
.today-state span, .today-state small { display: block; white-space: nowrap; }
.today-state b { font-size: 12px; }
.today-state small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading span { color: var(--muted); font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.metric { min-height: 96px; padding: 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; backdrop-filter: blur(18px); }
.metric:has(.metric-icon) { display: flex; align-items: center; gap: 12px; }
.metric.green { border-color: color-mix(in srgb, var(--green) 15%, var(--border)); background: var(--mint-soft); }
.metric.yellow { border-color: color-mix(in srgb, var(--yellow) 18%, var(--border)); background: var(--yellow-soft); }
.metric.violet { border-color: color-mix(in srgb, var(--red) 14%, var(--border)); background: var(--coral-soft); }
.metric-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link) !important; }
.metric.green .metric-icon { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green) !important; }
.metric.violet .metric-icon { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red) !important; }
.metric.yellow .metric-icon { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow) !important; }
.metric-icon svg { width: 23px; height: 23px; }
.metric b { display: block; max-width: 100%; margin-top: 5px; font-size: clamp(16px, 5.8vw, 24px); line-height: 1.08; overflow-wrap: anywhere; }
.metric span { color: var(--muted); font-size: 12px; }

.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-metric { min-width: 0; text-align: center; }
.home-metric-icon { display: grid; width: 100%; height: 68px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--link); }
.home-metric.green .home-metric-icon { background: var(--mint-soft); color: var(--green); }
.home-metric.violet .home-metric-icon { background: color-mix(in srgb, var(--violet) 13%, var(--surface)); color: var(--violet); }
.home-metric.red .home-metric-icon { background: var(--coral-soft); color: var(--red); }
.home-metric-icon svg { width: 29px; height: 29px; }
.home-metric > span:not(.home-metric-icon) { display: block; min-height: 30px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.home-metric b { display: block; margin-top: 2px; font-size: 21px; line-height: 1.1; overflow-wrap: anywhere; }

.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.action-tile { display: flex; min-height: 96px; padding: 12px 6px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; backdrop-filter: blur(18px); }
.action-tile:nth-child(4n+2), .action-tile:nth-child(4n+3), .action-tile:nth-child(4n+4) { background: var(--surface); }
.action-tile svg { width: 24px; height: 24px; color: var(--green); }
.action-tile:nth-child(4n+2) svg { color: var(--link); }
.action-tile:nth-child(4n+3) svg { color: var(--red); }
.action-tile:nth-child(4n+4) svg { color: var(--yellow); }
.action-tile span { max-width: 100%; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.action-tile:active { transform: scale(.97); background: var(--surface-strong); }

.toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; top: 12px; left: 12px; width: 18px; color: var(--muted); }
.search input { width: 100%; height: 43px; padding: 0 12px 0 39px; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--surface); color: var(--text); backdrop-filter: blur(16px); }
.search input:focus { border-color: var(--link); }
.filter-toggle { flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); }
.filter-toggle.active { border-color: var(--link); background: var(--blue-soft); color: var(--link); box-shadow: 0 0 16px color-mix(in srgb, var(--link) 12%, transparent); }
.filter-row { display: flex; gap: 8px; margin: 0 -16px 16px; padding: 0 16px 3px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.product-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.product-filters .field { margin: 0; }
.product-filters .price-filter { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-filters > .button { grid-column: 1 / -1; }
.chip { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.chip.active { border-color: var(--link); background: var(--blue-soft); color: var(--link); box-shadow: inset 0 0 12px color-mix(in srgb, var(--link) 8%, transparent); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 7%, transparent); cursor: pointer; backdrop-filter: blur(16px); }
.product-card:active { transform: scale(.985); }
.product-media { display: grid; aspect-ratio: 1.15 / 1; place-items: center; background: var(--surface-strong); color: var(--muted); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 34px; height: 34px; }
.product-body { padding: 11px; }
.product-body h3 { min-height: 38px; margin: 0 0 7px; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.product-price { font-size: 16px; font-weight: 800; }
.product-meta { margin-top: 5px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; padding: 4px 7px; align-items: center; gap: 4px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); font-size: 11px; font-weight: 700; }
.badge.red { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.badge.yellow { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }

.list { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); backdrop-filter: blur(18px); }
.list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 58px; padding: 13px 14px; align-items: center; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; cursor: pointer; }
.list-item:last-child { border-bottom: 0; }
.list-item h3 { display: flex; margin: 0; align-items: center; gap: 8px; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.list-item h3 svg { flex: 0 0 19px; }
.list-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.list-item:disabled { cursor: default; opacity: .62; }
.list-item .value { min-width: 0; max-width: 48%; text-align: right; font-size: clamp(10px, 3.5vw, 13px); font-weight: 700; overflow-wrap: anywhere; }
.list-item svg { width: 19px; color: var(--muted); }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.cart-item-main { min-width: 0; }
.cart-item-main h3 { margin: 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.cart-item-main p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.cart-item-price { align-self: start; white-space: nowrap; font-size: 14px; }
.cart-quantity-row { display: grid; grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
.cart-quantity-row button, .cart-quantity-row select { height: 44px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); text-align: center; }
.cart-quantity-row button { font-size: 21px; }
.attention-heading { margin-top: 30px; }
.attention-list { border: 0; border-radius: 0; background: transparent; }
.attention-list .list-item { min-height: 58px; padding: 9px 0; background: transparent; }
.attention-copy { display: flex; min-width: 0; align-items: center; gap: 11px; }
.attention-value { display: flex; align-items: center; gap: 6px; color: var(--text); }
.attention-value svg { width: 15px; height: 15px; color: var(--muted); }
.attention-copy h3 { display: block; }
.attention-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--red); color: white; }
.attention-icon svg { width: 19px; height: 19px; color: white; }
.attention-icon.tone-2 { background: var(--yellow); }
.attention-icon.tone-3 { background: var(--link); }
.attention-icon.tone-4 { background: var(--green); }

.button { display: inline-flex; min-height: 43px; padding: 0 15px; align-items: center; justify-content: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--button) 75%, white); border-radius: 6px; background: var(--button); color: var(--button-text); font-weight: 750; cursor: pointer; box-shadow: 0 0 18px color-mix(in srgb, var(--button) 15%, transparent); }
.button svg { width: 18px; height: 18px; }
.button.secondary { border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: none; }
.button.danger { background: var(--red); color: white; }
.button.success { background: var(--green); color: #07140d; }
.button.full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-row { display: flex; gap: 8px; margin-top: 14px; }
.button-row > * { flex: 1; }
.store-share { display: inline-flex; min-height: 38px; margin-top: 13px; padding: 0 13px; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--link) 40%, var(--border)); border-radius: 18px; background: color-mix(in srgb, var(--surface) 65%, transparent); color: var(--link); font-size: 12px; font-weight: 750; backdrop-filter: blur(18px); }
.store-share svg { width: 16px; height: 16px; }
.share-store-banner { display: grid; width: 100%; margin: -2px 0 16px; padding: 12px 14px; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--link) 46%, var(--border)); border-radius: 17px; background: color-mix(in srgb, var(--link) 8%, var(--glass-nav)); color: var(--link); text-align: left; box-shadow: inset 0 0 30px color-mix(in srgb, var(--link) 7%, transparent), 0 0 22px color-mix(in srgb, var(--link) 10%, transparent); }
.share-store-banner > svg { width: 19px; height: 19px; }
.share-store-banner span { display: grid; gap: 2px; }
.share-store-banner b { color: var(--text); font-size: 13px; }
.share-store-banner small { color: var(--muted); font-size: 11px; }
.readiness-alert { display: grid; width: 100%; margin: 4px 0 16px; padding: 13px 14px; grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 1px solid color-mix(in srgb, var(--yellow) 48%, var(--border)); border-radius: 17px; background: color-mix(in srgb, var(--yellow) 9%, var(--glass-nav)); color: var(--yellow); text-align: left; box-shadow: inset 0 0 30px color-mix(in srgb, var(--yellow) 7%, transparent), 0 0 24px color-mix(in srgb, var(--yellow) 9%, transparent); }
.readiness-alert > svg { width: 20px; height: 20px; }
.readiness-alert span { display: grid; gap: 3px; }
.readiness-alert b { color: var(--text); font-size: 13px; }
.readiness-alert small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.fab { position: fixed; right: max(18px, calc((100vw - 760px) / 2 + 18px)); bottom: calc(84px + var(--safe-bottom)); z-index: 19; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--button-text); box-shadow: var(--shadow); }
.fab svg { width: 24px; }

.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 13px; outline: none; background: var(--surface); color: var(--text); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--link); }
.date-time-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 9px; }
.store-avatar-editor { display: flex; align-items: center; gap: 12px; }
.store-list-item { grid-template-columns: 44px minmax(0, 1fr) 18px; }
.store-list-avatar { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--link) 40%, var(--border)); border-radius: 13px; object-fit: cover; box-shadow: 0 0 15px color-mix(in srgb, var(--link) 12%, transparent); }
.store-list-avatar.fallback { display: grid; place-items: center; background: var(--blue-soft); color: var(--link); font-size: 18px; font-weight: 800; }
.store-avatar-preview { width: 72px; height: 72px; flex: 0 0 72px; border: 1px solid color-mix(in srgb, var(--link) 48%, var(--border)); border-radius: 14px; object-fit: cover; box-shadow: 0 0 20px color-mix(in srgb, var(--link) 15%, transparent); }
.store-avatar-action { width: auto; min-height: 42px; padding: 9px 14px; }
.field label.store-avatar-action { border-color: color-mix(in srgb, var(--button) 76%, white); background: var(--button); color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / 28%); }
.field label.store-avatar-action span, .field label.store-avatar-action svg { color: #fff; }
.store-avatar-action svg { width: 18px; height: 18px; }
.visually-hidden-file { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 !important; opacity: 0; }
.product-photo-preview { display: grid; min-height: 74px; padding: 7px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.product-photo-preview img { width: 100%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--link) 35%, var(--border)); border-radius: 10px; object-fit: cover; box-shadow: 0 0 14px color-mix(in srgb, var(--link) 10%, transparent); }
.product-photo-preview.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.product-photo-preview.empty span { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.product-photo-preview.empty svg { width: 19px; height: 19px; color: var(--link); }
.product-photo-caption { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; }
.product-photo-caption b { color: var(--link); font-size: 12px; text-shadow: 0 0 10px color-mix(in srgb, var(--link) 42%, transparent); }
.product-photo-caption small { color: var(--muted); font-size: 10px; text-align: right; }
.field .product-photo-action { align-self: start; margin-top: 1px; color: var(--button-text); font-size: 13px; font-weight: 750; }
.switch-row { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-strong); transition: .18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: .18s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; margin-bottom: 12px; }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.empty p { margin: 0 0 16px; font-size: 13px; }

.bottom-nav { position: fixed; z-index: 18; right: 20px; bottom: calc(14px + var(--safe-bottom)); left: 20px; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 720px; min-height: 66px; margin: 0 auto; padding: 7px 6px; border: 1px solid color-mix(in srgb, var(--border) 78%, transparent); border-radius: 28px; background: color-mix(in srgb, var(--glass-nav) 76%, transparent); backdrop-filter: blur(38px) saturate(175%); -webkit-backdrop-filter: blur(38px) saturate(175%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), inset 0 0 38px rgb(49 216 242 / 6%), 0 0 36px rgb(49 216 242 / 13%), 0 18px 48px rgb(0 0 0 / 48%); }
.nav-item { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { border: 1px solid color-mix(in srgb, var(--link) 48%, var(--border)); border-radius: 15px; background: var(--blue-soft); color: var(--link); text-shadow: 0 0 14px color-mix(in srgb, var(--link) 60%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 22px color-mix(in srgb, var(--link) 12%, transparent), 0 0 24px color-mix(in srgb, var(--link) 18%, transparent); }
.nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sheet-backdrop { position: fixed; z-index: 40; inset: 0; background: rgb(0 0 0 / 52%); }
.sheet { position: fixed; z-index: 41; right: 0; bottom: 0; left: 0; max-width: 760px; max-height: 90dvh; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--bg) 91%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(26px) saturate(130%); animation: sheet-in .2s ease-out; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .7; } }
.sheet-handle { width: 38px; height: 4px; margin: 8px auto 2px; border-radius: 4px; background: var(--border); }
.sheet-header { display: flex; min-height: 54px; padding: 4px 10px 4px 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.sheet-header h2 { margin: 0; font-size: 17px; }
.sheet-content { max-height: calc(90dvh - 64px); padding: 16px 16px calc(22px + var(--safe-bottom)); overflow-y: auto; }
.product-gallery { display: grid; grid-auto-columns: 100%; grid-auto-flow: column; gap: 10px; margin-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-gallery::-webkit-scrollbar { display: none; }
.detail-image { width: 100%; height: min(42dvh, 430px); object-fit: contain; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); scroll-snap-align: center; }
.gallery-hint { margin: 0 0 15px; color: var(--muted); font-size: 12px; text-align: center; }
.detail-price { max-width: 100%; margin: 8px 0; font-size: clamp(22px, 8vw, 32px); font-weight: 850; line-height: 1.08; overflow-wrap: anywhere; }
.detail-description { color: var(--muted); white-space: pre-wrap; line-height: 1.5; }
.qty-control { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; margin: 14px 0; align-items: center; }
.qty-control button { height: 44px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 21px; }
.qty-control input, .qty-control select { height: 44px; min-width: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); text-align: center; }

.toast { position: fixed; z-index: 60; right: 16px; bottom: calc(84px + var(--safe-bottom)); left: 16px; max-width: 520px; margin: auto; padding: 12px 14px; border-radius: 6px; background: #e9f8ef; color: #0b4e2b; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; }
.toast.error { background: #ffe9ec; color: #7c1621; }
.loader-overlay { position: fixed; z-index: 70; inset: 0; display: grid; place-content: center; background: rgb(8 12 17 / 76%); text-align: center; backdrop-filter: blur(5px); }
.loader-ring { width: 42px; height: 42px; margin: auto; border: 4px solid rgb(255 255 255 / 18%); border-top-color: var(--link); border-radius: 50%; animation: spin .8s linear infinite; }
.loader-overlay p { margin: 13px 0 0; color: white; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-line { display: flex; padding: 10px 0; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.status-line span { color: var(--muted); font-size: 13px; }
.status-line b { text-align: right; font-size: 13px; }
.installment-detail { margin: 14px 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--yellow) 6%, var(--surface)); }
.installment-title { display: flex; margin-bottom: 4px; align-items: center; justify-content: space-between; gap: 12px; }
.installment-title span { display: flex; align-items: center; gap: 7px; color: var(--yellow); font-weight: 800; }
.installment-title svg { width: 18px; height: 18px; }
.installment-title > b { color: var(--yellow); font-size: 12px; text-align: right; }
.installment-detail > p { margin: 11px 0; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.installment-schedule { display: grid; margin: 12px 0 4px; gap: 7px; }
.installment-schedule > div { display: grid; padding: 9px 10px; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--glass-control); }
.installment-schedule span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.installment-schedule span b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--yellow-soft); color: var(--yellow); }
.installment-schedule strong { font-size: clamp(11px, 3.6vw, 14px); overflow-wrap: anywhere; }
.installment-schedule small { grid-column: 2; color: var(--muted); font-size: 10px; text-align: right; }
.installment-schedule small.paid { color: var(--green); }
.installment-schedule small.partial { color: var(--yellow); }
.notice { padding: 12px; border-left: 3px solid var(--yellow); border-radius: 4px; background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); color: var(--text); font-size: 13px; line-height: 1.45; }
.theme-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.theme-option { display: flex; min-width: 0; min-height: 70px; padding: 9px 6px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-option svg { width: 21px; height: 21px; }
.theme-option span { max-width: 100%; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.theme-option.active { border-color: var(--link); background: var(--blue-soft); color: var(--link); box-shadow: inset 0 0 14px color-mix(in srgb, var(--link) 10%, transparent); }
.report-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.setup-list { display: grid; gap: 8px; margin: 16px 0; }
.setup-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 10px; min-height: 56px; padding: 8px 10px; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; }
.setup-step > span { display: grid; place-items: center; color: var(--link); }
.setup-step.done { color: var(--muted); }
.setup-step.done > span { color: var(--green); }

/* Buyer Glass Terminal */
body[data-mode="buyer"] .topbar { margin: 0 8px; border: 1px solid color-mix(in srgb, var(--link) 30%, var(--border)); border-top: 0; border-radius: 0 0 24px 24px; background: color-mix(in srgb, var(--glass-nav) 82%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 14px 38px rgb(0 0 0 / 24%), 0 0 28px color-mix(in srgb, var(--link) 9%, transparent); backdrop-filter: blur(34px) saturate(155%); -webkit-backdrop-filter: blur(34px) saturate(155%); }
body[data-mode="buyer"] .brand-mark { border-radius: 13px; box-shadow: inset 0 0 16px color-mix(in srgb, var(--link) 9%, transparent), 0 0 18px color-mix(in srgb, var(--link) 22%, transparent); }
body[data-mode="buyer"] .icon-button { border-radius: 14px; }
body[data-mode="buyer"] .content { position: relative; }
body[data-mode="buyer"] .content::before { content: ""; position: fixed; z-index: -1; top: 28%; right: max(0px, calc((100vw - 760px) / 2)); width: 1px; height: 38dvh; background: color-mix(in srgb, var(--green) 48%, transparent); box-shadow: -18px 0 70px color-mix(in srgb, var(--green) 18%, transparent), -52px 0 130px color-mix(in srgb, var(--link) 10%, transparent); pointer-events: none; animation: buyer-edge-glow 6s ease-in-out infinite; }
@keyframes buyer-edge-glow { 50% { opacity: .48; transform: translateY(16px); } }

body[data-mode="buyer"] .buyer-hero { position: relative; overflow: hidden; min-height: 154px; margin: 0 0 22px; padding: 22px 72px 21px 20px; border: 1px solid color-mix(in srgb, var(--link) 42%, var(--border)); border-radius: 24px; background: var(--glass-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), inset 0 0 54px color-mix(in srgb, var(--link) 8%, transparent), 0 0 30px color-mix(in srgb, var(--link) 12%, transparent), 0 20px 48px rgb(0 0 0 / 22%); backdrop-filter: blur(28px) saturate(150%); }
body[data-mode="buyer"] .buyer-hero::before { content: ""; position: absolute; top: 0; right: 15%; left: 15%; height: 1px; background: color-mix(in srgb, var(--link) 75%, white); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--link) 38%, transparent); animation: glass-breathe 6s ease-in-out infinite; }
body[data-mode="buyer"] .buyer-hero h1 { max-width: 100%; font-size: clamp(28px, 8vw, 38px); overflow-wrap: anywhere; text-shadow: 0 0 22px color-mix(in srgb, var(--text) 14%, transparent); }
body[data-mode="buyer"] .buyer-hero p:not(.hero-kicker) { max-width: 440px; }
body[data-mode="buyer"] .buyer-hero-icon { position: absolute; top: 22px; right: 20px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid color-mix(in srgb, var(--link) 48%, var(--border)); border-radius: 15px; background: var(--blue-soft); color: var(--link); box-shadow: inset 0 0 18px color-mix(in srgb, var(--link) 12%, transparent), 0 0 22px color-mix(in srgb, var(--link) 22%, transparent); }
body[data-mode="buyer"] .buyer-hero-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 0 7px currentColor); }
body[data-mode="buyer"] .catalog-hero { padding-bottom: 22px; }
body[data-mode="buyer"] .store-share { border-radius: 15px; background: color-mix(in srgb, var(--link) 9%, var(--glass-control)); box-shadow: inset 0 0 16px color-mix(in srgb, var(--link) 8%, transparent), 0 0 18px color-mix(in srgb, var(--link) 12%, transparent); }

body[data-mode="buyer"] .section-heading { position: relative; padding-left: 12px; }
body[data-mode="buyer"] .section-heading::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 2px; border-radius: 4px; background: var(--link); box-shadow: 0 0 10px var(--link); }
body[data-mode="buyer"] .section-heading h2 { font-size: 18px; text-shadow: 0 0 14px color-mix(in srgb, var(--link) 16%, transparent); }
body[data-mode="buyer"] .store-list { overflow: visible; gap: 11px; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
body[data-mode="buyer"] .store-list-item { min-height: 82px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--link) 34%, var(--border)); border-radius: 20px; background: var(--glass-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 32px color-mix(in srgb, var(--link) 6%, transparent), 0 12px 30px rgb(0 0 0 / 18%), 0 0 20px color-mix(in srgb, var(--link) 7%, transparent); backdrop-filter: blur(24px) saturate(145%); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
body[data-mode="buyer"] .store-list-item:active { transform: scale(.98); border-color: var(--link); box-shadow: inset 0 0 38px color-mix(in srgb, var(--link) 11%, transparent), 0 0 26px color-mix(in srgb, var(--link) 18%, transparent); }
body[data-mode="buyer"] .store-list-avatar { width: 54px; height: 54px; border-radius: 17px; box-shadow: 0 0 19px color-mix(in srgb, var(--link) 22%, transparent); }
body[data-mode="buyer"] .store-list-item h3 { font-size: 15px; }

body[data-mode="buyer"] .search input { height: 50px; padding-left: 44px; border-color: color-mix(in srgb, var(--link) 34%, var(--border)); border-radius: 17px; background: var(--glass-control); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), inset 0 0 24px color-mix(in srgb, var(--link) 5%, transparent); backdrop-filter: blur(24px); }
body[data-mode="buyer"] .search svg { top: 15px; left: 15px; color: var(--link); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--link) 60%, transparent)); }
body[data-mode="buyer"] .search input:focus { box-shadow: inset 0 0 26px color-mix(in srgb, var(--link) 8%, transparent), 0 0 24px color-mix(in srgb, var(--link) 16%, transparent); }
body[data-mode="buyer"] .filter-row .chip { display: inline-flex; min-height: 39px; padding: 8px 14px; align-items: center; gap: 7px; border-radius: 15px; background: color-mix(in srgb, var(--glass-control) 76%, transparent); backdrop-filter: blur(16px); }
body[data-mode="buyer"] .filter-row .chip svg { width: 15px; height: 15px; }
body[data-mode="buyer"] .filter-row .chip.active { box-shadow: inset 0 0 18px color-mix(in srgb, var(--link) 12%, transparent), 0 0 18px color-mix(in srgb, var(--link) 16%, transparent); }

body[data-mode="buyer"] .product-grid { gap: 13px; }
body[data-mode="buyer"] .product-card { border-color: color-mix(in srgb, var(--link) 38%, var(--border)); border-radius: 23px; background: var(--glass-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 0 34px color-mix(in srgb, var(--link) 6%, transparent), 0 14px 34px rgb(0 0 0 / 24%), 0 0 20px color-mix(in srgb, var(--link) 8%, transparent); backdrop-filter: blur(24px) saturate(145%); transition: transform .18s ease, filter .18s ease; }
body[data-mode="buyer"] .product-card:nth-child(3n+2) { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 0 34px color-mix(in srgb, var(--green) 6%, transparent), 0 14px 34px rgb(0 0 0 / 24%), 0 0 20px color-mix(in srgb, var(--green) 8%, transparent); }
body[data-mode="buyer"] .product-card:nth-child(3n) { border-color: color-mix(in srgb, var(--yellow) 36%, var(--border)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 0 34px color-mix(in srgb, var(--yellow) 5%, transparent), 0 14px 34px rgb(0 0 0 / 24%), 0 0 20px color-mix(in srgb, var(--yellow) 7%, transparent); }
body[data-mode="buyer"] .product-card:active { transform: scale(.975); filter: brightness(1.1); }
body[data-mode="buyer"] .product-media { overflow: hidden; border-radius: 22px 22px 8px 8px; }
body[data-mode="buyer"] .product-body { padding: 13px 14px 15px; }
body[data-mode="buyer"] .product-body h3 { min-height: 40px; font-size: 14px; }
body[data-mode="buyer"] .product-price { color: var(--text); font-size: clamp(15px, 4.7vw, 19px); text-shadow: 0 0 14px color-mix(in srgb, var(--link) 22%, transparent); overflow-wrap: anywhere; }

body[data-mode="buyer"] .content > .list:not(.store-list), body[data-mode="buyer"] .cart-item { border-color: color-mix(in srgb, var(--link) 32%, var(--border)); border-radius: 21px; background: var(--glass-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 0 34px color-mix(in srgb, var(--link) 5%, transparent), 0 13px 34px rgb(0 0 0 / 19%); backdrop-filter: blur(24px) saturate(145%); }
body[data-mode="buyer"] .cart-quantity-row button, body[data-mode="buyer"] .cart-quantity-row select { border-radius: 14px; background: var(--glass-control); }
body[data-mode="buyer"] .button { border-radius: 15px; }
body[data-mode="buyer"] .empty { margin: 8px 0 20px; padding: 42px 20px; border: 1px solid color-mix(in srgb, var(--link) 25%, var(--border)); border-radius: 23px; background: var(--surface); box-shadow: inset 0 0 42px color-mix(in srgb, var(--link) 5%, transparent), 0 14px 36px rgb(0 0 0 / 16%); backdrop-filter: blur(22px); }
body[data-mode="buyer"] .empty > svg { color: var(--link); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--link) 45%, transparent)); }

@media (min-width: 480px) {
  .topbar { padding-right: 14px; }
}

@media (min-width: 640px) {
  .content { padding-right: 24px; padding-left: 24px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 370px) {
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-summary { grid-template-columns: 1fr; align-items: start; }
  .today-state { justify-content: flex-start; }
  .terminal-intro { align-items: flex-start; }
  .sync-status { max-width: 112px; white-space: normal; }
}

@media (max-width: 460px) {
  .product-filters { grid-template-columns: 1fr; }
  .product-filters .price-filter, .product-filters > .button { grid-column: 1; }
}

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