@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-300.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0d0f0e;
  --surface: #151816;
  --surface-raised: #1c201d;
  --surface-soft: #232722;
  --ink: #f5f5ef;
  --muted: #9da19a;
  --dim: #6f756e;
  --line: rgba(255, 255, 255, .085);
  --gold: #f2c811;
  --gold-bright: #ffda2f;
  --gold-ink: #191a13;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --app-width: min(100% - 40px, 1080px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "Vazirmatn", system-ui, sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: 100; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { width: var(--app-width); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-header { position: sticky; top: 0; z-index: 30; height: calc(72px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: rgba(13, 15, 14, .84); backdrop-filter: blur(22px) saturate(1.3); }
.app-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.app-brand { display: inline-flex; align-items: center; transition: opacity .2s ease, transform .2s ease; }
.app-brand:active { opacity: .65; transform: scale(.96); }
.app-brand img { width: 112px; height: auto; }
.app-header__label { color: var(--dim); font-size: .72rem; font-weight: 500; }
.native-app .app-header { display: none; }
.native-app .ar-experience { min-height: 100dvh; }

.catalogue { padding: 38px 0 max(88px, env(safe-area-inset-bottom)); }
.catalogue-intro { max-width: 610px; margin-bottom: 28px; animation: page-enter .55s var(--ease-out) both; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .71rem; font-weight: 700; }
.section-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(242, 200, 17, .1); }
.catalogue-intro h1 { margin: 8px 0 4px; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.35; letter-spacing: -.04em; font-weight: 700; }
.catalogue-intro p { margin: 0; color: var(--muted); font-size: .85rem; }

.catalogue-controls { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: center; margin-bottom: 18px; animation: page-enter .55s .08s var(--ease-out) both; }
.category-tabs { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-tabs::-webkit-scrollbar, .related-rail::-webkit-scrollbar { display: none; }
.category-tab { position: relative; flex: 0 0 auto; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #c8cbc5; font-size: .76rem; font-weight: 600; scroll-snap-align: start; transition: color .28s ease, border-color .28s ease, background .28s ease, transform .18s ease, box-shadow .28s ease; }
.category-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform: scale(.72); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s ease; }
.category-tab span { position: relative; z-index: 1; }
.category-tab:hover { border-color: rgba(242, 200, 17, .45); }
.category-tab:active { transform: scale(.95); }
.category-tab.active { color: var(--gold-ink); border-color: var(--gold); background: var(--gold); box-shadow: 0 8px 24px rgba(242, 200, 17, .14); }
.category-tab.active::after { transform: scale(1); opacity: 1; }
.search-field { height: 45px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.search-field:focus-within { border-color: rgba(242, 200, 17, .55); background: var(--surface-raised); box-shadow: 0 0 0 4px rgba(242, 200, 17, .06); }
.search-field svg { flex: 0 0 auto; width: 19px; color: var(--dim); transition: color .25s ease; }
.search-field:focus-within svg { color: var(--gold); }
.search-submit { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .2s ease, transform .18s ease; }
.search-submit:hover { background: rgba(242, 200, 17, .09); }
.search-submit:active { transform: scale(.9); }
.search-submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .76rem; }
.search-field input::placeholder { color: var(--dim); }
.search-field input::-webkit-search-cancel-button { display: none; appearance: none; }
.search-clear { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .055); color: #8f938d; cursor: pointer; opacity: 1; transform: scale(1); transition: color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease; }
.search-clear[hidden] { display: grid; visibility: hidden; pointer-events: none; opacity: 0; transform: scale(.72); }
.search-clear svg { width: 13px; height: 13px; }
.search-clear svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search-clear:hover { background: rgba(255, 255, 255, .1); color: #d6d9d3; }
.search-clear:active { transform: scale(.88); }
.search-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.catalogue-status { height: 34px; display: flex; align-items: baseline; gap: 5px; color: var(--dim); font-size: .7rem; }
.catalogue-status strong { color: #c5c8c2; font-size: .75rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.product-card { min-width: 0; opacity: 1; transform: none; transition: opacity .55s calc(var(--reveal-order, 0) * 45ms) ease, transform .6s calc(var(--reveal-order, 0) * 45ms) var(--ease-out); }
.reveal-ready .product-card { opacity: 0; transform: translateY(18px); }
.product-card.is-visible { opacity: 1; transform: none; }
.product-card__link { display: block; border: 1px solid transparent; border-radius: var(--radius); transition: background .3s ease, border-color .3s ease, transform .22s ease, box-shadow .3s ease; }
.product-card__link:hover { border-color: var(--line); background: rgba(255, 255, 255, .018); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); transform: translateY(-3px); }
.product-card__link:active { transform: scale(.975); }
.product-card__visual { position: relative; display: block; aspect-ratio: 1.2; overflow: hidden; border-radius: calc(var(--radius) - 1px); background: #e6e3da; }
.product-card__visual::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .12)); pointer-events: none; }
.product-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease-out), filter .4s ease; }
.product-card__link:hover img { transform: scale(1.055); filter: saturate(1.05); }
.product-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(13, 15, 14, .8); backdrop-filter: blur(8px); color: var(--gold); font-size: .61rem; font-weight: 700; }
.model-indicator { position: absolute; bottom: 10px; left: 10px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(13, 15, 14, .75); backdrop-filter: blur(10px); color: var(--gold); transition: transform .3s var(--ease-out), background .3s ease; }
.model-indicator svg { width: 19px; }
.product-card__link:hover .model-indicator { transform: rotate(-8deg) scale(1.08); background: var(--gold); color: var(--gold-ink); }
.product-card__body { display: block; padding: 12px 6px 10px; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dim); font-size: .63rem; }
.product-card__meta b { color: #8f938c; font: 600 .65rem/1.5 system-ui, sans-serif; letter-spacing: .05em; }
.product-card__name { display: block; min-height: 30px; margin-top: 3px; color: var(--ink); font-size: .91rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__action { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; color: #8e928b; font-size: .66rem; transition: color .25s ease; }
.product-card__action svg { width: 17px; transform: rotate(180deg); transition: transform .3s var(--ease-out); }
.product-card__link:hover .product-card__action { color: var(--gold); }
.product-card__link:hover .product-card__action svg { transform: rotate(180deg) translateX(4px); }
.empty-state { display: grid; justify-items: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state svg { width: 38px; color: var(--gold); }
.empty-state h2 { margin: 15px 0 2px; color: var(--ink); font-size: 1rem; }
.empty-state p { margin: 0; font-size: .75rem; }

.page-back { width: fit-content; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .73rem; transition: color .2s ease, transform .2s ease; }
.page-back svg { width: 18px; }
.page-back:hover { color: var(--gold); transform: translateX(3px); }
.product-detail { padding: 26px 0 50px; animation: page-enter .48s var(--ease-out) both; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 38px; align-items: center; }
.model-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, #30342f, #181b19 58%, #111311); box-shadow: 0 30px 90px rgba(0, 0, 0, .25); view-transition-name: product-model; }
.model-card__topline { position: absolute; z-index: 4; top: 17px; inset-inline: 18px; display: flex; align-items: center; gap: 7px; color: #aeb2aa; font-size: .66rem; pointer-events: none; }
.model-card__topline b { margin-right: auto; font: 600 .65rem/1.4 system-ui; letter-spacing: .08em; color: #8f948c; }
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 200, 17, .11); animation: pulse 2s ease-in-out infinite; }
.model-card model-viewer { width: 100%; height: min(62vw, 600px); min-height: 460px; --poster-color: transparent; }
.model-loading { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; }
.model-loading::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 35%, rgba(13, 15, 14, .38)); }
.model-loading img { width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: saturate(.85); }
.model-loading__status { position: absolute; z-index: 2; bottom: 58px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(13, 15, 14, .72); backdrop-filter: blur(10px); color: #d5d7d1; font-size: .66rem; }
.model-progress { position: absolute; bottom: 0; right: 0; height: 2px; width: 100%; transform-origin: right; background: var(--gold); }
.model-gestures { position: absolute; z-index: 3; bottom: 17px; right: 50%; transform: translateX(50%); display: flex; gap: 7px; pointer-events: none; }
.model-gestures span { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(13, 15, 14, .65); backdrop-filter: blur(8px); color: #aeb2aa; font-size: .59rem; }
.model-gestures svg { width: 14px; color: var(--gold); }
.detail-info { padding: 10px 0; }
.detail-category { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid rgba(242, 200, 17, .22); border-radius: 999px; background: rgba(242, 200, 17, .065); color: var(--gold); font-size: .67rem; font-weight: 600; }
.detail-info h1 { margin: 14px 0 8px; font-size: clamp(2rem, 4.4vw, 3.55rem); line-height: 1.3; letter-spacing: -.055em; font-weight: 700; }
.detail-info > p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 2; }
.product-specs { margin: 24px 0; border-block: 1px solid var(--line); }
.product-specs div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.product-specs div:last-child { border: 0; }
.product-specs dt { color: var(--dim); font-size: .68rem; }
.product-specs dd { margin: 0; color: #d4d6d1; font-size: .73rem; font-weight: 500; }
.primary-action { position: relative; min-height: 68px; display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 12px; padding: 9px 14px; overflow: hidden; border-radius: 18px; background: var(--gold); color: var(--gold-ink); box-shadow: 0 18px 42px rgba(242, 200, 17, .13); transition: transform .2s ease, background .25s ease, box-shadow .25s ease; }
.primary-action::before { content: ""; position: absolute; top: -80%; right: -20%; width: 45%; height: 250%; background: rgba(255, 255, 255, .24); transform: rotate(20deg) translateX(250%); transition: transform .7s var(--ease-out); }
.primary-action:hover::before { transform: rotate(20deg) translateX(-400%); }
.primary-action:hover { background: var(--gold-bright); box-shadow: 0 22px 50px rgba(242, 200, 17, .2); transform: translateY(-2px); }
.primary-action:active { transform: scale(.975); }
.primary-action__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(13, 15, 14, .11); }
.primary-action__icon svg { width: 23px; }
.primary-action > span:nth-child(2) { display: grid; line-height: 1.5; }
.primary-action strong { font-size: .85rem; }
.primary-action small { opacity: .68; font-size: .61rem; font-weight: 500; }
.primary-action__arrow { width: 20px; transform: rotate(180deg); }

.related-section { padding: 28px 0 max(70px, env(safe-area-inset-bottom)); }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.related-heading h2 { margin: 7px 0 0; font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.4; }
.swipe-hint { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: .62rem; }
.swipe-hint svg { width: 18px; }
.related-rail { width: calc(100% + (100vw - 100%) / 2); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 28%); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; padding: 2px max(20px, calc((100vw - 1080px) / 2)) 12px 2px; touch-action: pan-x; }
.related-card { min-width: 0; opacity: 1; transform: none; transition: opacity .5s ease, transform .55s var(--ease-out); scroll-snap-align: start; }
.reveal-ready .related-card { opacity: 0; transform: translateX(16px); }
.related-card.is-visible { opacity: 1; transform: none; }
.related-card a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .22s ease, border-color .25s ease, background .25s ease; }
.related-card a:hover { transform: translateY(-3px); border-color: rgba(242, 200, 17, .25); background: var(--surface-raised); }
.related-card a:active { transform: scale(.975); }
.related-card__image { display: block; aspect-ratio: 1.35; overflow: hidden; background: #e5e2d9; }
.related-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.related-card a:hover img { transform: scale(1.05); }
.related-card__copy { display: grid; padding: 10px 12px 12px; }
.related-card__copy small { color: var(--dim); font: 600 .61rem/1.5 system-ui; letter-spacing: .06em; }
.related-card__copy strong { margin-top: 2px; overflow: hidden; color: #e7e8e3; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.ar-experience { min-height: calc(100dvh - 72px); background: #0b0d0c; animation: page-enter .45s var(--ease-out) both; }
.ar-experience__stage { position: relative; height: min(72dvh, 720px); min-height: 520px; background: radial-gradient(circle at 50% 43%, #343833, #181b19 55%, #0d0f0e 80%); }
.ar-experience__stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.ar-close { position: absolute; top: max(17px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 8; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: rgba(13, 15, 14, .7); backdrop-filter: blur(12px); transition: background .2s ease, transform .2s ease; }
.ar-close:hover { background: var(--surface-raised); transform: rotate(8deg); }
.ar-close:active { transform: scale(.92); }
.ar-close svg { width: 20px; }
.ar-titlebar { position: absolute; z-index: 6; top: max(25px, env(safe-area-inset-top)); right: 50%; transform: translateX(50%); display: flex; align-items: center; gap: 8px; color: #c2c5bf; font-size: .66rem; pointer-events: none; }
.ar-launch-button { position: absolute; z-index: 6; bottom: 22px; right: 50%; transform: translateX(50%); width: min(360px, calc(100% - 32px)); min-height: 64px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; padding: 9px 18px; border: 0; border-radius: 18px; background: var(--gold); color: var(--gold-ink); box-shadow: 0 18px 52px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ar-launch-button:hover { transform: translateX(50%) translateY(-2px); background: var(--gold-bright); }
.ar-launch-button:active { transform: translateX(50%) scale(.975); }
.ar-launch-button svg { width: 27px; }
.ar-launch-button span { display: grid; text-align: right; line-height: 1.5; }
.ar-launch-button strong { font-size: .82rem; }
.ar-launch-button small { opacity: .66; font-size: .59rem; }
.ar-sheet { position: relative; z-index: 7; margin-top: -1px; padding-top: 20px; padding-bottom: 30px; }
.ar-sheet__handle { display: none; }
.ar-sheet__heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ar-sheet__heading small { color: var(--gold); font: 600 .65rem/1.5 system-ui; letter-spacing: .07em; }
.ar-sheet__heading h1 { margin: 3px 0 0; font-size: 1.45rem; line-height: 1.4; }
.ar-sheet__heading > span { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .64rem; }
.ar-steps { display: flex; gap: 10px; margin-top: 17px; }
.ar-steps span { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: #b9bcb6; font-size: .65rem; }
.ar-steps b { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 200, 17, .12); color: var(--gold); font-size: .63rem; }
.ar-support-note { margin: 13px 0 0; color: var(--dim); font-size: .6rem; }

turbo-frame[busy] { opacity: .58; transition: opacity .18s ease; }
.turbo-progress-bar { height: 2px; background: var(--gold); }

@keyframes page-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(242, 200, 17, .09); } 50% { box-shadow: 0 0 0 8px rgba(242, 200, 17, .02); } }

@media (max-width: 800px) {
  :root { --app-width: min(100% - 32px, 680px); }
  .catalogue-controls { grid-template-columns: 1fr; }
  .category-tabs { order: 1; width: 100vw; margin-inline: calc((100vw - var(--app-width)) / -2); padding-inline: calc((100vw - var(--app-width)) / 2); }
  .search-form { order: 2; }
  .search-field input { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; gap: 25px; }
  .model-card model-viewer { height: min(80vw, 560px); }
  .detail-info { max-width: 620px; }
  .related-rail { grid-auto-columns: minmax(210px, 46%); }
}

@media (max-width: 520px) {
  :root { --app-width: calc(100% - 28px); --radius: 17px; --radius-lg: 22px; }
  .app-header { height: calc(62px + env(safe-area-inset-top)); }
  .app-brand img { width: 98px; }
  .app-header__label { font-size: .62rem; }
  .catalogue { padding-top: 25px; }
  .catalogue-intro { margin-bottom: 21px; }
  .catalogue-intro h1 { font-size: 1.62rem; }
  .catalogue-intro p { max-width: 330px; font-size: .73rem; }
  .category-tab { min-height: 40px; padding-inline: 15px; font-size: .7rem; }
  .search-field { height: 43px; }
  .product-grid { gap: 20px 10px; }
  .product-card__visual { aspect-ratio: 1.05; }
  .product-badge { top: 7px; right: 7px; padding: 3px 7px; font-size: .55rem; }
  .model-indicator { left: 7px; bottom: 7px; width: 31px; height: 31px; }
  .model-indicator svg { width: 17px; }
  .product-card__body { padding: 9px 3px 6px; }
  .product-card__meta { font-size: .56rem; }
  .product-card__meta b { font-size: .57rem; }
  .product-card__name { min-height: 25px; font-size: .76rem; }
  .product-card__action { margin-top: 3px; font-size: .58rem; }
  .product-card__action svg { width: 14px; }
  .product-detail { padding-top: 15px; }
  .page-back { margin-bottom: 10px; }
  .model-card model-viewer { height: 105vw; min-height: 390px; max-height: 510px; }
  .model-card__topline { top: 13px; inset-inline: 14px; }
  .model-loading__status { bottom: 49px; }
  .model-gestures { bottom: 12px; }
  .detail-info h1 { margin-top: 11px; font-size: 1.8rem; }
  .detail-info > p { font-size: .75rem; }
  .product-specs { margin-block: 19px; }
  .primary-action { min-height: 64px; border-radius: 16px; }
  .related-section { padding-top: 21px; }
  .related-heading { align-items: center; }
  .related-heading h2 { font-size: 1.1rem; }
  .related-rail { width: calc(100% + 14px); grid-auto-columns: 72%; padding-right: 0; padding-left: 14px; }
  .ar-experience { min-height: calc(100dvh - 62px); }
  .native-app .ar-experience { min-height: 100dvh; }
  .ar-experience__stage { height: 64dvh; min-height: 440px; border-radius: 0 0 27px 27px; overflow: hidden; }
  .ar-titlebar { top: max(22px, env(safe-area-inset-top)); }
  .ar-sheet { width: 100%; padding: 18px 15px max(22px, env(safe-area-inset-bottom)); }
  .ar-sheet__handle { width: 36px; height: 4px; display: block; margin: -9px auto 14px; border-radius: 9px; background: var(--line); }
  .ar-sheet__heading h1 { font-size: 1.13rem; }
  .ar-steps { flex-direction: column; gap: 7px; }
  .ar-steps span { padding: 8px 10px; }
}

@media (hover: none) {
  .product-card__link:hover, .related-card a:hover { transform: none; }
}

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

.turbo-session-ready .catalogue-intro,
.turbo-session-ready .catalogue-controls,
.turbo-session-ready .product-detail,
.turbo-session-ready .ar-experience,
.turbo-session-ready .product-viewer { animation: none; }

/* Product viewer: a single-screen, app-like 3D workspace. */
.viewer-body { overflow: hidden; }
.viewer-body .app-header { display: none; }
.product-viewer { height: calc(100dvh - 72px); min-height: 520px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); overflow: hidden; animation: viewer-enter .48s var(--ease-out) both; }
.viewer-body .product-viewer { height: 100dvh; }
.native-app .product-viewer { height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.native-app .viewer-bar { display: none; }
.viewer-bar { min-height: 48px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.viewer-back { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: #d5d7d1; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.viewer-back svg { width: 19px; }
.viewer-back:hover { color: var(--gold); border-color: rgba(242, 200, 17, .32); background: var(--surface-raised); }
.viewer-back:active { transform: scale(.92); }
.viewer-identity { min-width: 0; display: grid; line-height: 1.45; }
.viewer-identity span { color: var(--gold); font-size: .6rem; font-weight: 600; }
.viewer-identity h1 { margin: 0; overflow: hidden; color: var(--ink); font-size: .9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.viewer-code { color: var(--dim); font: 600 .65rem/1.4 system-ui, sans-serif; letter-spacing: .06em; }

.viewer-stage { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 43%, #343833, #181b19 58%, #111311); box-shadow: 0 24px 75px rgba(0, 0, 0, .24); transition: border-radius .4s var(--ease-out); view-transition-name: product-model; }
.viewer-stage model-viewer { width: 100%; height: 100%; min-height: 280px; --poster-color: transparent; }
.viewer-status { position: absolute; z-index: 4; top: 14px; right: 16px; display: flex; align-items: center; gap: 8px; color: #c1c4bd; font-size: .62rem; pointer-events: none; }
.viewer-hint { position: absolute; z-index: 4; top: 14px; left: 16px; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: .58rem; pointer-events: none; }
.viewer-hint svg { width: 15px; color: var(--gold); }
.viewer-actions { position: absolute; z-index: 5; bottom: 14px; right: 50%; transform: translateX(50%); width: min(460px, calc(100% - 28px)); display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.viewer-ar, .viewer-info-button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; font-size: .71rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.viewer-ar { border: 0; background: var(--gold); color: var(--gold-ink); box-shadow: 0 12px 34px rgba(242, 200, 17, .16); }
.viewer-ar:hover { background: var(--gold-bright); box-shadow: 0 15px 40px rgba(242, 200, 17, .22); transform: translateY(-2px); }
.viewer-ar.is-launching { pointer-events: none; filter: saturate(.7); animation: ar-button-pulse .65s ease infinite alternate; }
.viewer-ar.is-unavailable { background: #d9d9d2; font-size: .58rem; }
.viewer-info-button { border: 1px solid rgba(255, 255, 255, .14); background: rgba(17, 19, 17, .78); backdrop-filter: blur(14px); color: #e2e4de; }
.viewer-info-button:hover { border-color: rgba(242, 200, 17, .35); background: var(--surface-raised); color: var(--gold); transform: translateY(-2px); }
.viewer-ar:active, .viewer-info-button:active { transform: scale(.97); }
.viewer-ar svg, .viewer-info-button svg { width: 20px; }

.related-dock { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .35s ease, background .35s ease, box-shadow .35s ease; }
.related-dock.is-open { border-color: rgba(242, 200, 17, .22); background: var(--surface-raised); box-shadow: 0 -14px 44px rgba(0, 0, 0, .18); }
.related-dock__toggle { width: 100%; min-height: 58px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 7px 11px; border: 0; background: transparent; text-align: right; cursor: pointer; }
.related-dock__toggle:active { background: rgba(255, 255, 255, .025); }
.related-dock__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(242, 200, 17, .1); color: var(--gold); transition: transform .4s var(--ease-out), background .3s ease; }
.related-dock.is-open .related-dock__icon { transform: rotate(-8deg) scale(1.05); background: rgba(242, 200, 17, .16); }
.related-dock__icon svg { width: 19px; }
.related-dock__label { min-width: 0; display: grid; line-height: 1.5; }
.related-dock__label strong { color: #e7e9e3; font-size: .72rem; }
.related-dock__label small { color: var(--dim); font-size: .57rem; }
.related-dock__chevron { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: transform .42s var(--ease-out), color .25s ease, background .25s ease; }
.related-dock__chevron svg { width: 18px; }
.related-dock.is-open .related-dock__chevron { transform: rotate(180deg); color: var(--gold); background: rgba(242, 200, 17, .08); }
.related-dock__panel { height: 0; overflow: hidden; visibility: hidden; contain: layout paint; will-change: height; }
.related-dock.is-open .related-dock__panel { visibility: visible; }
.related-dock__panel-inner { overflow: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .4s var(--ease-out); will-change: opacity, transform; }
.related-dock.is-open .related-dock__panel-inner { opacity: 1; transform: none; transition-delay: .04s; }
.viewer-related-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 19%); gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding: 3px 11px 11px; scrollbar-width: none; touch-action: pan-x; }
.viewer-related-rail::-webkit-scrollbar { display: none; }
.viewer-related-rail .related-card { scroll-snap-align: start; }
.viewer-related-rail .related-card a { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; min-height: 70px; border-radius: 13px; background: #121512; }
.viewer-related-rail .related-card__image { width: 70px; height: 70px; aspect-ratio: 1; }
.viewer-related-rail .related-card__copy { min-width: 0; padding: 7px 8px; }
.viewer-related-rail .related-card__copy strong { font-size: .63rem; }
.viewer-related-rail .related-card__copy small { font-size: .54rem; }

.product-info-dialog { width: min(440px, calc(100% - 28px)); max-width: none; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--ink); opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .26s ease, transform .32s var(--ease-out), overlay .26s allow-discrete, display .26s allow-discrete; }
.product-info-dialog.is-open { opacity: 1; transform: none; }
.product-info-dialog::backdrop { background: rgba(2, 4, 3, 0); backdrop-filter: blur(0); transition: background .3s ease, backdrop-filter .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
.product-info-dialog.is-open::backdrop { background: rgba(2, 4, 3, .68); backdrop-filter: blur(7px); }
.product-info-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, .11); border-radius: inherit; background: #1a1e1b; box-shadow: 0 30px 100px rgba(0, 0, 0, .5); }
.product-info-card header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 18px 13px; border-bottom: 1px solid var(--line); }
.product-info-card header span { color: var(--gold); font-size: .58rem; font-weight: 600; }
.product-info-card h2 { margin: 2px 0 0; font-size: 1.05rem; }
.product-info-card header button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: color .2s ease, transform .2s ease; }
.product-info-card header button:hover { color: var(--gold); transform: rotate(8deg); }
.product-info-card header button svg { width: 17px; }
.product-info-card > p { margin: 0; padding: 16px 18px 12px; color: var(--muted); font-size: .73rem; line-height: 2; }
.product-info-card dl { margin: 0 18px; border-block: 1px solid var(--line); }
.product-info-card dl div { min-height: 41px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.product-info-card dl div:last-child { border: 0; }
.product-info-card dt { color: var(--dim); font-size: .64rem; }
.product-info-card dd { margin: 0; color: #d8dad4; font-size: .68rem; }
.product-info-card__done { width: calc(100% - 36px); min-height: 46px; margin: 15px 18px 18px; border: 0; border-radius: 13px; background: var(--gold); color: var(--gold-ink); font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.product-info-card__done:hover { background: var(--gold-bright); }
.product-info-card__done:active { transform: scale(.98); }

@keyframes viewer-enter { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ar-button-pulse { to { box-shadow: 0 0 0 8px rgba(242, 200, 17, .08); } }

/* Admin workspace */
.admin-body { min-height: 100dvh; background: #0b0d0c; }
.admin-sidebar { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: 244px; display: flex; flex-direction: column; padding: 25px 16px 18px; border-left: 1px solid var(--line); background: #111411; }
.admin-brand { display: grid; justify-items: start; gap: 4px; padding: 0 9px 24px; border-bottom: 1px solid var(--line); }
.admin-brand img { width: 105px; }
.admin-brand span { color: var(--dim); font-size: .62rem; }
.admin-sidebar nav { display: grid; gap: 6px; padding-top: 20px; }
.admin-sidebar nav a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; color: #aeb2aa; font-size: .74rem; font-weight: 600; transition: .2s ease; }
.admin-sidebar nav a:hover { background: var(--surface-raised); color: var(--ink); }
.admin-sidebar nav a.active { background: rgba(242, 200, 17, .11); color: var(--gold); }
.admin-sidebar form { margin-top: auto; }
.admin-logout { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: #9fa39c; cursor: pointer; }
.admin-main { min-height: 100dvh; margin-right: 244px; padding: 38px clamp(24px, 4vw, 60px) 70px; }
.admin-main--login { margin: 0; display: grid; place-items: center; padding: 20px; }
.admin-page-head { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-page-head span, .admin-form-card header span, .admin-panel header span { color: var(--gold); font-size: .63rem; font-weight: 700; }
.admin-page-head h1 { margin: 3px 0 1px; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.4; }
.admin-page-head p { margin: 0; color: var(--dim); font-size: .7rem; }
.admin-primary, .admin-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 13px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.admin-primary { background: var(--gold); color: var(--gold-ink); }
.admin-form input[type=submit].admin-primary { border: 0; background: var(--gold); color: var(--gold-ink); }
.admin-secondary { border: 1px solid var(--line); background: var(--surface); color: #d7d9d3; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stats article { min-height: 135px; display: grid; align-content: center; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-stats span { color: var(--muted); font-size: .68rem; }
.admin-stats strong { margin-top: 3px; font-size: 2rem; line-height: 1.2; }
.admin-stats small { color: rgba(13,15,14,.66); font-size: .6rem; }
.admin-stats .is-gold { border-color: transparent; background: var(--gold); color: var(--gold-ink); }
.admin-stats .is-gold span { color: rgba(13,15,14,.66); }
.admin-report-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.admin-panel, .admin-table-card, .admin-form-card, .admin-category-grid article { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-panel { min-width: 0; padding: 19px; }
.admin-panel h2, .admin-form-card h2 { margin: 2px 0 0; font-size: 1rem; }
.admin-ranking, .admin-events { display: grid; margin-top: 15px; }
.admin-ranking > div, .admin-events > div { min-height: 54px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.admin-ranking b { width: 26px; color: var(--dim); }
.admin-ranking span, .admin-events span { min-width: 0; display: grid; }
.admin-ranking strong, .admin-events strong { font-size: .69rem; font-weight: 600; }
.admin-ranking small, .admin-events small { color: var(--dim); font-size: .57rem; }
.admin-ranking em { margin-right: auto; color: var(--gold); font-size: .58rem; font-style: normal; }
.admin-events i { width: 8px; height: 8px; border-radius: 50%; background: #737972; }
.admin-events i.ar_launch { background: var(--gold); box-shadow: 0 0 0 5px rgba(242,200,17,.08); }
.admin-events time { margin-right: auto; color: var(--dim); font-size: .54rem; }
.admin-empty { color: var(--dim); font-size: .68rem; }
.admin-table-card { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .66rem; }
.admin-table th { padding: 14px; color: var(--dim); font-weight: 500; text-align: right; background: #121512; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: #c7cac3; }
.admin-product-cell { display: flex; align-items: center; gap: 10px; }
.admin-product-cell img { width: 48px; height: 42px; object-fit: cover; border-radius: 9px; background: #ddd; }
.admin-product-cell strong { color: var(--ink); font-size: .68rem; }
.admin-status { display: inline-flex; padding: 3px 8px; border-radius: 99px; background: rgba(68,190,111,.1); color: #66d68c; font-size: .56rem; }
.admin-status.off { background: rgba(255,255,255,.06); color: var(--dim); }
.admin-row-actions { display: flex; align-items: center; gap: 10px; }
.admin-row-actions a { color: var(--gold); }
.admin-row-actions button, .admin-category-grid footer button { padding: 0; border: 0; background: transparent; color: #e87979; font-size: inherit; cursor: pointer; }
.admin-login-card { width: min(420px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.admin-login-card > img { width: 120px; }
.admin-login-card > span { display: block; margin-top: 7px; color: var(--gold); font-size: .62rem; }
.admin-login-card h1 { margin: 20px 0 3px; }
.admin-login-card p { margin: 0 0 20px; color: var(--muted); font-size: .68rem; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 6px; color: #c7cac3; font-size: .65rem; }
.admin-form input:not([type=checkbox]):not([type=file]), .admin-form textarea, .admin-form select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #0e110f; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: rgba(242,200,17,.55); box-shadow: 0 0 0 4px rgba(242,200,17,.05); }
.admin-editor-form { max-width: 950px; }
.admin-form-card { padding: 22px; }
.admin-form-card header { margin-bottom: 18px; }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-checks { display: flex; gap: 22px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-checks label { display: flex; align-items: center; }
.admin-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.admin-upload-grid--models { grid-template-columns: repeat(3, minmax(0,1fr)); }
.admin-upload { min-height: 145px; align-content: center; padding: 17px; border: 1px dashed rgba(255,255,255,.15); border-radius: 15px; background: #111411; }
.admin-upload strong { color: var(--ink); font-size: .73rem; }
.admin-upload small, .admin-upload span { color: var(--dim); font-size: .57rem; }
.admin-upload input[type=file] { max-width: 100%; color: var(--muted); font-size: .58rem; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.admin-errors, .admin-flash { padding: 12px 15px; border: 1px solid rgba(232,121,121,.25); border-radius: 12px; background: rgba(232,121,121,.07); color: #f0a1a1; font-size: .65rem; }
.admin-flash { position: relative; margin-bottom: 16px; border-color: rgba(242,200,17,.2); background: rgba(242,200,17,.06); color: var(--gold); }
.admin-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.admin-category-grid article { padding: 18px; }
.admin-category-grid article > div, .admin-category-grid footer { display: flex; justify-content: space-between; align-items: center; }
.admin-category-grid h2 { margin: 18px 0 0; font-size: 1rem; }
.admin-category-grid p, .admin-category-grid small { margin: 0; color: var(--dim); font-size: .6rem; }
.admin-category-grid footer { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .65rem; }
.admin-category-grid footer a { color: var(--gold); }
.admin-model-files { display: inline-grid; grid-template-columns: auto 7px auto 7px; align-items: center; gap: 5px; direction: ltr; }
.admin-model-files b { color: var(--dim); font: 600 .52rem/1.4 system-ui, sans-serif; }
.admin-model-files i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #3d423e; }
.admin-model-files i.ready { background: #66d68c; box-shadow: 0 0 0 4px rgba(102,214,140,.07); }

/* Analytics dashboard */
.admin-dashboard-head { margin-bottom: 20px; }
.admin-date-chip { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #b9bdb5; font: 600 .62rem/1.5 system-ui, sans-serif; direction: ltr; }
.admin-stats article { position: relative; overflow: hidden; }
.admin-stats article::after { content: ""; position: absolute; width: 70px; height: 70px; left: -28px; bottom: -32px; border: 1px solid rgba(255,255,255,.04); border-radius: 50%; }
.admin-stats strong small { color: var(--dim); font-size: .78rem; font-weight: 500; }
.admin-stats em { margin-top: 9px; color: var(--dim); font-size: .58rem; font-style: normal; }
.admin-stats em.is-positive { color: #66d68c; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-panel-heading h2 { margin: 2px 0 0; }
.admin-panel-heading p { margin: 2px 0 0; color: var(--dim); font-size: .59rem; }
.admin-panel-heading > a { color: var(--gold); font-size: .58rem; }
.admin-trend-panel { margin-bottom: 14px; padding-bottom: 15px; }
.admin-chart-legend { display: flex; gap: 13px; padding-top: 5px; }
.admin-chart-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .57rem; }
.admin-chart-legend i { width: 8px; height: 8px; border-radius: 3px; }
.admin-chart-legend i.views { background: #747b74; }
.admin-chart-legend i.ar { background: var(--gold); }
.admin-bar-chart { height: 240px; display: grid; grid-template-columns: repeat(14, minmax(22px, 1fr)); gap: clamp(5px, 1vw, 13px); align-items: stretch; margin-top: 22px; padding: 12px 6px 0; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); }
.admin-bar-group { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 25px; align-items: end; }
.admin-bars { height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }
.admin-bars > i { position: relative; width: min(12px, 38%); height: max(3px, var(--bar-height)); display: block; border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: admin-bar-enter .7s var(--ease-out) both; }
.admin-bars > i.views { background: linear-gradient(#8a9289, #4f554f); }
.admin-bars > i.ar { background: linear-gradient(var(--gold-bright), #cda900); box-shadow: 0 0 18px rgba(242,200,17,.08); }
.admin-bars b { position: absolute; right: 50%; bottom: calc(100% + 3px); transform: translateX(50%); color: #aeb2ab; font-size: .48rem; font-style: normal; font-weight: 500; }
.admin-bar-group time { align-self: center; color: var(--dim); font: 500 .51rem/1.2 system-ui, sans-serif; text-align: center; }
.admin-insight-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-bottom: 14px; }
.admin-funnel { display: grid; gap: 15px; margin-top: 24px; }
.admin-funnel > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-bottom: 9px; }
.admin-funnel span { display: flex; align-items: center; gap: 8px; color: #c9ccc5; font-size: .64rem; }
.admin-funnel span b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(242,200,17,.1); color: var(--gold); font-size: .55rem; }
.admin-funnel strong { font: 700 .7rem/1.5 system-ui, sans-serif; }
.admin-funnel i { position: absolute; right: 0; bottom: 0; width: var(--funnel-width); height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #75630e); transition: width .6s var(--ease-out); }
.admin-funnel > div:first-child i { background: linear-gradient(90deg, #727972, #363b37); }
.admin-conversion-callout { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 13px; border: 1px solid rgba(242,200,17,.15); border-radius: 14px; background: rgba(242,200,17,.055); }
.admin-conversion-callout > strong { color: var(--gold); font: 800 1.35rem/1.2 system-ui, sans-serif; }
.admin-conversion-callout span { display: grid; color: #dcdfd8; font-size: .63rem; }
.admin-conversion-callout small { color: var(--dim); font-size: .53rem; }
.admin-device-chart { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 44px); min-height: 205px; }
.admin-donut { width: 126px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) 0 var(--mobile-share), #3b403b var(--mobile-share) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.admin-donut::before { content: ""; grid-area: 1/1; width: 82px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.admin-donut span { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }
.admin-donut strong { font: 800 1.1rem/1.3 system-ui, sans-serif; }
.admin-donut small { color: var(--dim); font-size: .54rem; }
.admin-device-chart dl { min-width: 110px; margin: 0; }
.admin-device-chart dl > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.admin-device-chart dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .59rem; }
.admin-device-chart dt i { width: 8px; height: 8px; border-radius: 3px; }
.admin-device-chart dt i.mobile { background: var(--gold); }
.admin-device-chart dt i.desktop { background: #4d534e; }
.admin-device-chart dd { margin: 0; font: 700 .68rem/1.5 system-ui, sans-serif; }
.admin-geo-panel { margin-bottom: 14px; }
.admin-geo-coverage { flex: 0 0 auto; display: grid; justify-items: end; }
.admin-geo-coverage strong { color: var(--gold); font: 800 1.2rem/1.2 system-ui, sans-serif; }
.admin-geo-coverage span { color: var(--dim); font-size: .52rem; }
.admin-geo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 23px; }
.admin-geo-list h3 { margin: 0 0 5px; color: #d9dcd5; font-size: .68rem; }
.admin-geo-row { min-height: 48px; display: grid; grid-template-columns: minmax(85px, .7fr) minmax(90px, 1fr) 30px; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.admin-geo-row span { min-width: 0; display: grid; }
.admin-geo-row strong { overflow: hidden; color: #cfd2cb; font-size: .64rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-geo-row small { color: var(--dim); font: 500 .49rem/1.4 system-ui, sans-serif; }
.admin-geo-row > i { position: relative; height: 5px; overflow: hidden; border-radius: 99px; background: #292e2a; }
.admin-geo-row > i::after { content: ""; position: absolute; inset: 0; width: var(--geo-width); border-radius: inherit; background: linear-gradient(90deg, var(--gold), #75630e); transform-origin: right; animation: geo-bar-enter .65s var(--ease-out) both; }
.admin-geo-row > b { color: #e1e3dd; font: 700 .62rem/1.2 system-ui, sans-serif; text-align: left; }
.admin-ranking-row { display: grid !important; grid-template-columns: 25px minmax(0, 1fr) 42px 34px; }
.admin-ranking-row > span > i { position: relative; width: 100%; height: 3px; display: block; margin-top: 4px; border-radius: 10px; background: #2a2e2a; overflow: hidden; }
.admin-ranking-row > span > i::after { content: ""; position: absolute; inset: 0; width: var(--rank-width); border-radius: inherit; background: linear-gradient(90deg, var(--gold), #74620e); }
.admin-ranking-row > em { margin: 0; display: grid; justify-items: end; line-height: 1.2; }
.admin-ranking-row > em strong { color: #dfe1db; font: 700 .65rem/1.2 system-ui, sans-serif; }
.admin-ranking-row > em small { color: var(--dim); font-size: .48rem; }
@keyframes admin-bar-enter { from { transform: scaleY(0); opacity: .25; } to { transform: scaleY(1); opacity: 1; } }
@keyframes geo-bar-enter { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: 1; } }

@media (max-width: 900px) {
  .admin-sidebar { position: sticky; width: 100%; height: auto; padding: 10px 14px; flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { display: none; }
  .admin-sidebar nav { flex: 1; display: flex; overflow-x: auto; padding: 0; }
  .admin-sidebar nav a { flex: 0 0 auto; min-height: 40px; }
  .admin-sidebar form { margin: 0; }
  .admin-logout { width: 56px; }
  .admin-main { margin: 0; padding: 25px 16px 55px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-report-grid { grid-template-columns: 1fr; }
  .admin-insight-grid { grid-template-columns: 1fr; }
  .admin-geo-grid { gap: 18px; }
  .admin-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .admin-page-head { align-items: flex-end; }
  .admin-stats { gap: 8px; }
  .admin-stats article { min-height: 112px; padding: 14px; }
  .admin-stats strong { font-size: 1.65rem; }
  .admin-field-grid, .admin-upload-grid, .admin-category-grid { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .admin-form-card { padding: 17px; }
  .admin-date-chip { display: none; }
  .admin-chart-legend { display: none; }
  .admin-bar-chart { height: 205px; gap: 4px; margin-inline: -8px; }
  .admin-bars > i { width: min(8px, 42%); }
  .admin-bars b { display: none; }
  .admin-device-chart { flex-direction: column; gap: 10px; padding-top: 20px; }
  .admin-device-chart dl { width: 100%; }
  .admin-geo-grid { grid-template-columns: 1fr; }
  .admin-geo-coverage { display: none; }
}

@media (max-width: 800px) {
  .product-viewer { height: calc(100dvh - 62px); }
  .native-app .product-viewer { height: 100dvh; }
  .viewer-related-rail { grid-auto-columns: 52%; }
}

@media (max-width: 520px) {
  .product-viewer { width: calc(100% - 20px); gap: 7px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .viewer-bar { min-height: 43px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .viewer-back { width: 36px; height: 36px; border-radius: 11px; }
  .viewer-identity h1 { font-size: .78rem; }
  .viewer-identity span { font-size: .54rem; }
  .viewer-code { font-size: .57rem; }
  .viewer-stage { border-radius: 20px; }
  .viewer-stage model-viewer { min-height: 220px; }
  .viewer-status { top: 11px; right: 12px; }
  .viewer-hint { top: 11px; left: 12px; }
  .viewer-actions { bottom: 10px; width: calc(100% - 20px); }
  .viewer-ar, .viewer-info-button { min-height: 46px; border-radius: 13px; font-size: .64rem; }
  .related-dock { border-radius: 15px; }
  .related-dock__toggle { min-height: 54px; }
  .viewer-related-rail { grid-auto-columns: 68%; padding-bottom: 9px; }
  .viewer-related-rail .related-card a { min-height: 62px; grid-template-columns: 62px minmax(0, 1fr); }
  .viewer-related-rail .related-card__image { width: 62px; height: 62px; }
  .product-info-dialog { width: 100%; max-height: calc(100dvh - 18px); margin: auto 0 0; border-radius: 25px 25px 0 0; transform: translateY(100%); }
  .product-info-dialog.is-open { transform: none; }
}
