:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --card: rgba(10, 19, 36, 0.74);
  --card-strong: rgba(12, 24, 46, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eff5ff;
  --muted: #a8bad8;
  --gold: #ffd24d;
  --green: #39db74;
  --orange: #ff934f;
  --red: #ff5e6c;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(60, 124, 255, 0.35), transparent 36%),
    radial-gradient(circle at top right, rgba(255, 200, 77, 0.18), transparent 28%),
    linear-gradient(160deg, #06101d 0%, #0b1730 48%, #09192d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.screen {
  min-height: 100vh;
  padding: 24px;
}

.screen-shop {
  min-height: 100vh;
  overflow: auto;
  padding: 16px;
}

.shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-screen {
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.login-panel {
  padding: 34px;
}

.login-form-grid {
  grid-template-columns: 1fr;
}

.screen-shop .shell {
  min-height: calc(100vh - 32px);
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.hero-shop {
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.hero-copy,
.hero-stats,
.product-grid,
.stats-grid,
.admin-grid,
.history-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 28px;
}

.hero-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-shop .hero-copy {
  padding: 16px 20px;
}

.hero-copy-shop {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 24%, rgba(57, 219, 116, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 210, 77, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(10, 26, 52, 0.98), rgba(7, 17, 31, 0.98));
}

.store-marquee {
  display: flex;
  gap: 24px;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.54);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.76rem;
}

.store-marquee span {
  animation: storeScroll 18s linear infinite;
}

.store-title {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f7fbff;
  text-shadow:
    0 0 22px rgba(255, 210, 77, 0.28),
    0 0 38px rgba(51, 192, 255, 0.16);
  animation: titleGlow 3.2s ease-in-out infinite;
}

.store-spark-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
  font-weight: 700;
  font-size: 1rem;
}

.store-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd24d, #f59e0b);
  box-shadow: 0 0 18px rgba(255, 210, 77, 0.65);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero h1 {
  margin: 16px 0 10px;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pill:hover,
.pill.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.hero-stats-shop {
  padding: 14px;
  gap: 8px;
}

.stat-card,
.metric-card,
.product-card,
.admin-card,
.history-card,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--card-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card h3,
.metric-card h3,
.section-title,
.admin-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.value {
  margin-top: 10px;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.subvalue {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.screen-shop .stat-card,
.screen-shop .product-card {
  padding: 14px;
}

.screen-shop .value {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.screen-shop .subvalue {
  font-size: 0.82rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-product-grid {
  flex: 1;
  gap: 10px;
}

.shop-product-grid.products-4,
.shop-product-grid.products-5,
.shop-product-grid.products-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.shop-product-grid.products-1,
.shop-product-grid.products-2,
.shop-product-grid.products-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-shop .product-card {
  gap: 10px;
  min-height: 0;
  padding: 12px;
  position: relative;
  isolation: isolate;
  animation: cardFloat 7.2s ease-in-out infinite;
}

.screen-shop .product-card:nth-child(2n) {
  animation-delay: 0.8s;
}

.screen-shop .product-card:nth-child(3n) {
  animation-delay: 1.6s;
}

.product-visual {
  height: 220px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.screen-shop .product-visual {
  height: 128px;
}

.product-visual.photo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 242, 248, 0.92));
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%);
}

.product-visual.photo::before {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%);
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  z-index: 1;
}

.product-fallback {
  position: relative;
  z-index: 1;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.hot-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 141, 79, 0.95), rgba(255, 210, 77, 0.95));
  color: #281300;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 147, 79, 0.34);
}

.product-name {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
}

.product-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 66px;
}

.screen-shop .product-copy {
  min-height: 40px;
  font-size: 0.84rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screen-shop .product-name {
  font-size: 1.06rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge.high {
  background: rgba(57, 219, 116, 0.16);
  color: #7ef0a7;
}

.badge.medium {
  background: rgba(255, 194, 77, 0.16);
  color: #ffd875;
}

.badge.low,
.badge.critical {
  background: rgba(255, 94, 108, 0.16);
  color: #ff98a2;
}

.badge.sold-out {
  background: rgba(255, 255, 255, 0.1);
  color: #cad5e4;
}

.price-row,
.stock-row,
.support-row,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.price {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.screen-shop .price {
  font-size: 1.65rem;
}

.price-note {
  color: var(--gold);
  font-size: 0.92rem;
}

.screen-shop .price-note,
.screen-shop .muted,
.screen-shop .badge {
  font-size: 0.78rem;
}

.muted {
  color: var(--muted);
}

.market-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 210, 77, 0.12);
  border: 1px solid rgba(255, 210, 77, 0.16);
  color: #ffe7a4;
}

.shop-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shop-banner-wrap {
  padding-bottom: 6px;
}

.screen-shop .market-banner {
  padding: 10px 12px;
  font-size: 0.88rem;
}

.shop-live-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.live-pill,
.shop-live-copy {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.live-pill {
  display: grid;
  place-items: center;
  min-width: 108px;
  padding: 12px 14px;
  font-weight: 800;
  color: #d7ffad;
  background: linear-gradient(135deg, rgba(57, 219, 116, 0.16), rgba(154, 240, 92, 0.2));
}

.live-pulse {
  position: relative;
  overflow: hidden;
}

.live-pulse::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: sweep 3.8s linear infinite;
}

.shop-live-copy {
  padding: 10px 14px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.shop-live-copy strong {
  font-size: 0.95rem;
}

.shop-live-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.align-right {
  text-align: right;
}

.product-card-hot {
  border-color: rgba(255, 210, 77, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 77, 0.08),
    0 0 0 1px rgba(255, 210, 77, 0.05),
    0 20px 46px rgba(0, 0, 0, 0.26);
}

.product-card-hot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 210, 77, 0.16), transparent 36%);
  z-index: -1;
  animation: hotGlow 2.8s ease-in-out infinite;
}

.product-footer-banner {
  min-height: 52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.history-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.sales-list {
  display: grid;
  gap: 12px;
}

.sale-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sale-entry:last-child {
  border-bottom: 0;
}

.sale-entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.chart-fill {
  height: 100%;
  border-radius: 999px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.catalog-grid,
.inventory-grid,
.quick-grid {
  display: grid;
  gap: 12px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-button,
.small-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.catalog-button:hover,
.small-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.catalog-button {
  text-align: left;
  padding: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-button strong {
  display: block;
  font-size: 1rem;
}

.catalog-button span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  padding: 16px 20px;
  color: #07111f;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd24d, #ffb347);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.logout-button {
  padding: 12px 16px;
  flex-shrink: 0;
}

.small-button {
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.cart-list,
.inventory-list {
  display: grid;
  gap: 12px;
}

.cart-row,
.inventory-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.cash-box {
  display: grid;
  gap: 12px;
}

.cash-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.1rem;
}

.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  gap: 16px;
  margin-top: 6px;
}

.wheel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.wheel-title {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
}

.wheel-odds-note {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6e1f4;
  font-weight: 700;
  white-space: nowrap;
}

.wheel-rings {
  position: absolute;
  width: min(520px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 210, 77, 0.16) 0 48%, transparent 49%),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 62%, transparent 63%);
  animation: wheelPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.wheel-landing-beam {
  position: absolute;
  top: 6px;
  width: 118px;
  height: 248px;
  background: linear-gradient(180deg, rgba(255, 236, 161, 0.24), rgba(255, 236, 161, 0));
  clip-path: polygon(50% 0%, 90% 100%, 10% 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.wheel-landing-beam.active {
  opacity: 1;
  transform: translateY(0);
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid #ffe082;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
  z-index: 3;
}

.wheel {
  width: min(450px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36), inset 0 0 36px rgba(255, 255, 255, 0.1);
  position: relative;
  outline: 6px solid rgba(255, 255, 255, 0.05);
  will-change: transform;
}

.wheel-center-cap {
  position: absolute;
  inset: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-weight: 700;
  background: rgba(5, 10, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.wheel-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-chip strong {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 15, 0.84);
  backdrop-filter: blur(12px);
  z-index: 100;
  overflow-y: auto;
}

.overlay.open {
  display: grid;
}

.overlay-card {
  width: min(980px, 100%);
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 210, 77, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(17, 30, 56, 0.98), rgba(9, 19, 39, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.wheel-auto-close {
  font-size: 0.96rem;
  font-weight: 700;
}

.wheel-result-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 56px;
}

.result-banner {
  min-height: 58px;
  display: grid;
  place-items: center;
}

.spin-status-card {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
  font-weight: 800;
}

.wheel-prize-card {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wheel-prize-card.loss {
  grid-template-columns: 96px 1fr;
}

.wheel-prize-visual {
  height: 196px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.wheel-prize-visual.photo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 242, 248, 0.92));
}

.wheel-prize-name {
  margin-top: 8px;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}

.wheel-emoji {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 3rem;
}

.modal-card {
  max-width: 980px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-grid,
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.modal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

.modal-actions {
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.color-swatch-button {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.color-swatch-button.selected {
  border-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.locked-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-area {
  min-height: 116px;
  resize: vertical;
}

.preview-card {
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  min-height: 200px;
  max-height: 240px;
  display: grid;
  place-items: center;
}

.preview-image {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.action-card {
  background:
    radial-gradient(circle at top right, rgba(57, 219, 116, 0.16), transparent 32%),
    var(--card-strong);
}

.action-buttons {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.sale-button {
  min-height: 72px;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #53e17f, #9af05c);
}

.product-sale-button {
  width: 100%;
  min-height: 58px;
  font-size: 1rem;
  background: linear-gradient(135deg, #53e17f, #9af05c);
}

.file-input {
  padding: 12px;
}

.delete-button {
  width: 100%;
  background: rgba(255, 94, 108, 0.12);
  color: #ffb6bd;
}

.result-banner {
  padding: 14px 16px;
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.result-banner.win {
  background: rgba(57, 219, 116, 0.12);
  color: #a1ffc0;
}

.result-banner.loss {
  background: rgba(255, 94, 108, 0.14);
  color: #ffb6bd;
}

.product-svg {
  width: 76%;
  height: 76%;
  max-width: 220px;
  max-height: 220px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.24));
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  filter: none;
}

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

@keyframes hotGlow {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes titleGlow {
  0%,
  100% {
    transform: translateY(0);
    text-shadow:
      0 0 18px rgba(255, 210, 77, 0.22),
      0 0 28px rgba(51, 192, 255, 0.14);
  }
  50% {
    transform: translateY(-2px);
    text-shadow:
      0 0 26px rgba(255, 210, 77, 0.34),
      0 0 40px rgba(51, 192, 255, 0.2);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes storeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes wheelPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-120%) rotate(6deg);
  }
  100% {
    transform: translateX(120%) rotate(6deg);
  }
}

@media (max-width: 1180px) {
  .hero,
  .history-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .stats-grid,
  .catalog-grid,
  .inventory-grid,
  .modal-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-live-strip {
    grid-template-columns: 1fr;
  }

  .align-right {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .screen {
    padding: 16px;
  }

  .hero-stats,
  .product-grid,
  .stats-grid,
  .catalog-grid,
  .inventory-grid,
  .quick-grid,
  .modal-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .wheel-header {
    flex-direction: column;
  }

  .wheel-odds-note {
    white-space: normal;
  }

  .wheel-prize-card,
  .wheel-prize-card.loss {
    grid-template-columns: 1fr;
  }

  .wheel-prize-visual {
    height: 148px;
  }
}
