:root {
  --bg: #060912;
  --bg2: #0a0e18;
  --surface: #0f1424;
  --surface2: #151c30;
  --text: #f0f3ff;
  --muted: #7a849e;
  --accent: #6c5cff;
  --accent-glow: rgba(108, 92, 255, 0.45);
  --accent2: #3b82f6;
  --price: #c8ff47;
  --ok: #4ade80;
  --err: #ff6b9d;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 112px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  padding-bottom: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(108, 92, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.08), transparent 45%),
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  background-position: 0 0, 0 0, 0 0;
  overflow-x: hidden;
}

.fx-orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: fx-drift 14s ease-in-out infinite;
}

.fx-orb-a {
  width: 220px;
  height: 220px;
  top: -40px;
  left: -30px;
  background: rgba(108, 92, 255, 0.55);
}

.fx-orb-b {
  width: 180px;
  height: 180px;
  top: 35%;
  right: -50px;
  background: rgba(59, 130, 246, 0.45);
  animation-delay: -4s;
}

.fx-orb-c {
  width: 260px;
  height: 260px;
  bottom: 10%;
  left: 20%;
  background: rgba(200, 255, 71, 0.12);
  animation-delay: -8s;
}

@keyframes fx-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}

.view {
  min-height: 100%;
  padding-bottom: calc(var(--tabbar-h) + 28px + var(--safe-b));
}

#viewCatalog .main {
  padding-bottom: calc(var(--tabbar-h) + 36px + var(--safe-b));
}

.catalog-end-spacer {
  height: calc(var(--tabbar-h) + var(--safe-b));
  pointer-events: none;
}

.meeting-hint {
  margin: 0;
  line-height: 1.45;
  font-size: 0.88rem;
}

.hidden { display: none !important; }


.header {
  padding: 10px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shop-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

.shop-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-top: 2px;
  font-weight: 600;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.spec-chip {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.spec-chip-accent {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.card-no-spec {
  font-style: italic;
  opacity: 0.85;
}

.product-disclaimer {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 9, 18, 0.55);
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--muted);
}

.product-disclaimer p {
  margin: 0;
}

.product-disclaimer--page {
  flex-shrink: 0;
  margin: 0 16px 28px;
  padding: 10px 12px;
  font-size: 0.65rem;
}

.shop-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2px;
  background: linear-gradient(120deg, #fff 0%, #c8ff47 45%, #93c5fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shine 6s ease-in-out infinite;
}

@keyframes title-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.icon-round {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(108, 92, 255, 0.35);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-round-3d {
  background: linear-gradient(145deg, #1a2240, #0f1424);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 0 #080b14,
    0 8px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-round-3d:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 1px 0 #080b14,
    0 4px 8px rgba(0, 0, 0, 0.3);
}

.icon-cart-3d {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
  transform: translateY(-1px);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.search-wrap { margin-top: 10px; position: relative; }

.search-wrap input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 255, 0.25);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

.search-wrap input::placeholder { color: var(--muted); }

.cats {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cat-chip.active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 16px var(--accent-glow), inset 0 0 20px rgba(108, 92, 255, 0.12);
}

.promo-strip {
  display: flex;
  gap: 10px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.promo-card {
  flex-shrink: 0;
  width: 200px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.2), var(--surface));
  border: 1px solid rgba(108, 92, 255, 0.3);
}

.promo-card.alt {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), var(--surface));
  border-color: rgba(59, 130, 246, 0.35);
}

.promo-card p { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; }
.promo-card h3 { font-size: 1rem; margin-top: 4px; }

.promo-code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface2);
  font-size: 0.75rem;
  font-weight: 700;
}

.main {
  padding: 0 16px 28px;
}

.view-scroll-pad {
  padding-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.section-bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  box-shadow: 0 0 8px var(--accent-glow);
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(108, 92, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
  transform: scale(0.98);
  box-shadow:
    inset 0 0 0 1px rgba(108, 92, 255, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, var(--surface2), #0c1020);
  background-size: 12px 12px, 100% 100%;
}

.card-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}

.card-badge.badge-sale { background: linear-gradient(135deg, #f97316, #ec4899); }

.card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(6, 9, 18, 0.55);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.card-fav.on { color: #ff6b9d; }

.card-body { padding: 10px 10px 12px; }

.card-body h3 {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta { font-size: 0.65rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.stock-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.15);
  color: var(--ok);
}

.stock-pill.low {
  background: rgba(255, 107, 157, 0.15);
  color: var(--err);
}

.card-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price { font-weight: 800; font-size: 1rem; color: var(--price); }

.card-add {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #5b9dff, var(--accent));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 3px 0 #3d2fb8,
    0 6px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card-add:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 1px 0 #3d2fb8,
    0 3px 8px rgba(59, 130, 246, 0.35);
}

.old-price { font-size: 0.75rem; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 32px; }

.page-title { padding: 16px 16px 8px; font-size: 1.4rem; font-weight: 800; }

#viewProduct {
  overflow-y: auto;
  max-height: calc(100dvh - 72px);
  -webkit-overflow-scrolling: touch;
}

.product-scroll {
  min-height: min(100%, calc(100dvh - 72px));
  display: flex;
  flex-direction: column;
}

.product-scroll-spacer {
  flex: 1 1 auto;
  min-height: 50vh;
}

.product-hero {
  padding: 32px;
  text-align: center;
  background: var(--surface2);
}

.product-emoji { font-size: 4rem; }

.product-body { padding: 16px; }

.product-body h2 { font-size: 1.35rem; }

.desc { margin-top: 10px; color: var(--muted); line-height: 1.45; }

.price-lg { font-size: 1.5rem; font-weight: 800; color: var(--price); margin: 12px 0; }

.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.variant {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(108, 92, 255, 0.25);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.variant.active {
  border-color: var(--accent);
  background: rgba(108, 92, 255, 0.18);
  box-shadow: 0 0 12px var(--accent-glow);
}

.cart-list { list-style: none; padding: 0 16px; }

.cart-empty-state {
  text-align: center;
  padding: 48px 24px 32px;
}

.empty-spark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(108, 92, 255, 0.4) 40%, transparent 70%);
  box-shadow: 0 0 40px rgba(108, 92, 255, 0.35);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cart-empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cart-empty-state p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; margin-bottom: 16px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-title { font-weight: 600; }
.cart-meta { font-size: 0.8rem; color: var(--muted); }

.qty { display: flex; align-items: center; gap: 8px; }

.qty button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}

.block { padding: 12px 16px; }
.block-title { font-size: 0.95rem; margin-bottom: 10px; }

.field span { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }

.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 255, 0.2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.row-input { display: flex; gap: 8px; }
.row-input input { flex: 1; }

.hint { font-size: 0.75rem; margin-top: 6px; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--err); }

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); font-size: 0.78rem; }

.summary .sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--muted);
}

.summary .total {
  color: var(--text);
  font-size: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  padding-top: 10px;
}

.btn-primary, .btn-secondary {
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  display: block;
  width: calc(100% - 32px);
  margin: 8px 16px 16px;
  padding: 14px;
  background: linear-gradient(145deg, #5b9dff 0%, var(--accent) 55%, #5b21b6 100%);
  color: #fff;
  font-size: 1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 0 #4338ca,
    0 10px 28px rgba(108, 92, 255, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 0 #4338ca,
    0 5px 16px rgba(108, 92, 255, 0.35);
}

.btn-secondary {
  padding: 10px 14px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(108, 92, 255, 0.25);
}

.age-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 16px 24px;
}

.profile-card {
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.muted { color: var(--muted); font-size: 0.85rem; }

.ref-box { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

.ref-box code {
  flex: 1;
  font-size: 0.65rem;
  word-break: break-all;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface2);
}

.orders { list-style: none; padding: 0; }

.orders li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.orders li small { grid-column: 1 / -1; color: var(--muted); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.75), rgba(10, 14, 24, 0.95));
  border-top: 1px solid rgba(108, 92, 255, 0.22);
  box-shadow: 0 -8px 32px rgba(108, 92, 255, 0.12);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tab.active {
  color: var(--text);
}

.tab.active .tab-label {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.tab-icon-3d {
  --ic1: #8b7cff;
  --ic2: #4f46e5;
  --ic-shadow: #312e81;
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  transform: perspective(240px) rotateX(16deg) rotateY(-14deg);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.tab-icon-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%),
    linear-gradient(135deg, var(--ic1), var(--ic2));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -2px 0 rgba(0, 0, 0, 0.35) inset,
    0 5px 0 var(--ic-shadow),
    0 9px 14px rgba(0, 0, 0, 0.45);
}

.tab-icon-3d::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}

.tab-icon-3d--catalog { --ic1: #a78bfa; --ic2: #6d28d9; --ic-shadow: #4c1d95; }
.tab-icon-3d--preorder { --ic1: #67e8f9; --ic2: #0891b2; --ic-shadow: #155e75; }
.tab-icon-3d--cart { --ic1: #bef264; --ic2: #65a30d; --ic-shadow: #3f6212; }
.tab-icon-3d--profile { --ic1: #f9a8d4; --ic2: #db2777; --ic-shadow: #9d174d; }
.tab-icon-3d--admin { --ic1: #fdba74; --ic2: #ea580c; --ic-shadow: #9a3412; }

.tab .tab-icon-3d {
  opacity: 0.72;
  filter: saturate(0.85);
}

.tab.active .tab-icon-3d {
  opacity: 1;
  filter: saturate(1.1) drop-shadow(0 0 10px var(--accent-glow));
  transform: perspective(240px) rotateX(10deg) rotateY(-8deg) translateY(-2px) scale(1.06);
  animation: tab-icon-float 2.4s ease-in-out infinite;
}

@keyframes tab-icon-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

.admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}

.admin-list { list-style: none; margin-top: 16px; padding: 0; }

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-row > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.admin-emoji { font-size: 1.5rem; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  max-width: 52%;
  justify-content: flex-end;
}

.admin-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-add-row .btn-primary,
.admin-add-row .btn-secondary {
  flex: 1;
  min-width: 140px;
  margin: 0;
  width: auto;
}

.btn-danger {
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 107, 157, 0.2);
  color: var(--err);
  cursor: pointer;
}

.admin-form .field { margin-bottom: 10px; }

.admin-listing-check {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(108, 92, 255, 0.08);
  border: 1px solid rgba(108, 92, 255, 0.15);
}

.admin-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 255, 0.2);
  background: var(--surface);
  color: var(--text);
}

.form-actions { display: flex; gap: 10px; margin-top: 16px; }

.form-actions .btn-primary {
  width: auto;
  margin: 0;
  flex: 1;
}

.admin-save-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-b));
  z-index: 28;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.72), rgba(6, 9, 18, 0.96));
  border-top: 1px solid rgba(108, 92, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.admin-save-bar .form-actions {
  margin-top: 0;
}

.admin-save-bar .hint {
  margin-bottom: 8px;
  min-height: 1.1em;
}

body.admin-form-open {
  padding-bottom: calc(var(--tabbar-h) + 72px + var(--safe-b));
}

body.admin-form-open .admin-form {
  padding-bottom: 8px;
}

.card-img img,
.product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-hero-img {
  max-height: 280px;
  padding: 16px;
  background: var(--surface2);
}

.product-emoji-inline { font-size: 2.6rem; }

.flavors-block {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(108, 92, 255, 0.08);
  border: 1px solid rgba(108, 92, 255, 0.12);
}

.flavors-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.flavors-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flavors-list li {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(6, 9, 18, 0.45);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.variant-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-image-preview {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface2);
}

.admin-image-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.consent-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 18, 0.92);
  backdrop-filter: blur(8px);
}

.consent-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(108, 92, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.consent-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 8px 0;
}

.consent-lead { margin-bottom: 16px; font-size: 0.9rem; }

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent-check.compact {
  margin-bottom: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(108, 92, 255, 0.06);
}

.consent-card .btn-primary { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .fx-orb,
  .shop-title,
  .tab.active .tab-icon-3d {
    animation: none;
  }

  .tab-icon-3d,
  .card,
  .btn-primary,
  .card-add,
  .icon-round-3d {
    transition: none;
  }
}
