/* =====================================================================
   KnightMobs Esports — Phase 2 page components
   Loaded after style.css. Inherits all tokens from the design system.
   ===================================================================== */

/* ----------------------------- Page hero ---------------------------- */
.page-hero {
  padding-top: 140px;
  padding-bottom: 20px;
}

.page-hero .h-display {
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 18px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* ------------------------- Mission/Vision panels -------------------- */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.panel {
  padding: 34px;
  border-radius: var(--r-lg);
}

.panel .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

/* ------------------------------ Timeline ---------------------------- */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.t-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.t-item:last-child {
  border-bottom: 0;
}

.t-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
}

.t-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.t-item p {
  color: var(--muted);
  max-width: 60ch;
}

/* ------------------------------- Forms ------------------------------ */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.field .hint {
  font-size: .78rem;
  color: var(--faint);
}

.field .err {
  font-size: .78rem;
  color: #ff6b6b;
  min-height: 1em;
}

.input,
textarea.input,
select.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .16);
  background: rgba(255, 255, 255, .06);
}

textarea.input {
  min-height: 130px;
  resize: vertical;
}

select.input {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select.input option {
  background: #000;
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

/* ------------------------------- Auth ------------------------------- */
.auth-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 60px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--r-lg);
}

.auth-card.wide {
  max-width: 620px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.auth-card .sub {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 26px;
}

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.oauth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

.auth-foot a {
  color: var(--blue);
}

/* Inline links inside running text need a non-color cue (WCAG 1.4.1). */
.checkbox a,
.auth-foot a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------- Search + toolbar ----------------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  min-width: 260px;
}

.search svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  flex: none;
}

.search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: .92rem;
}

.search input:focus {
  outline: none;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: .85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-chip.active {
  color: #06070c;
  background: var(--accent-grad);
  border-color: transparent;
  font-weight: 600;
}

/* ----------------------------- Pagination --------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .9rem;
  transition: all .2s var(--ease);
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.pagination .current {
  color: #06070c;
  background: var(--accent-grad);
  border-color: transparent;
}

/* ------------------------------- News grid -------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-grid .feature {
  grid-column: 1 / -1;
}

.news-grid .feature .news-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.news-grid .feature .media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

/* ----------------------------- Article prose ----------------------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}

.article .cover {
  aspect-ratio: 16/8;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 28px 0 36px;
}

.article .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 1.08rem;
  color: #cfd5e6;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin: 36px 0 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.article-meta .date {
  color: var(--blue);
}

/* ------------------------------- Shop ------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .media {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.product-card:hover .media img {
  transform: scale(1.07);
}

.product-card .stock {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-card .body {
  padding: 18px;
  display: grid;
  gap: 6px;
  flex: 1;
}

.product-card .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.product-card .price {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .price .money {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.product-card .price .coins {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--blue);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail .gallery {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.product-detail .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 8px 0 14px;
}

.product-detail .price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 20px 0;
}

.product-detail .price-row .money {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
}

.product-detail .actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ---------------------- Shop (jersey landing) ----------------------- */
/* Image hero — full-bleed jersey shot under a dark gradient, badge + title. */
.shop-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 140px 0 64px;
  overflow: hidden;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 45%, var(--bg) 100%);
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.shop-hero-inner .chip {
  margin-bottom: 18px;
}

.shop-hero-inner .h-display {
  margin-inline: auto;
}

.shop-hero-inner .lead {
  margin: 16px auto 0;
}

/* Gallery — show the full wide front+back render inside a glass panel. */
.product-detail .gallery {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}

.product-detail .gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail .gallery .stock {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info .eyebrow {
  margin-bottom: 6px;
}

/* Highlights — two-column checklist. */
.highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 22px 0 4px;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--muted);
}

.highlights svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.product-detail .price-row {
  flex-wrap: wrap;
}

.price-row .price-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

/* Reserve Your Size — dedicated centered conversion section. */
.reserve-section .container {
  display: flex;
  justify-content: center;
}

.reserve {
  width: 100%;
  max-width: 1180px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-lg);
}

.reserve-head .eyebrow {
  margin-bottom: 12px;
}

.reserve-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.reserve-sub {
  color: var(--faint);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 42ch;
}

.reserve-body {
  display: flex;
  flex-direction: column;
}

.reserve .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-bottom: 18px;
}

.reserve .field {
  width: 100%;
}

.reserve .checkbox {
  margin: 0 0 22px;
  width: 100%;
}

.reserve .form-note {
  margin-top: 14px;
  font-size: .9rem;
  color: #34f5a6;
}

.reserve .btn-block {
  width: 100%;
}

@media (max-width: 860px) {
  .reserve {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .reserve-sub { margin-inline: auto; }
  .reserve .checkbox { text-align: left; }
}

@media (max-width: 480px) {
  .reserve .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Lookbook — three compact portrait shots, centered. Box matches the
   images' native 4:5 ratio so the full jersey shows (no crop, no bars). */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  max-width: 980px;
  margin-inline: auto;
}

.lookbook-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lookbook-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease);
}

.lookbook-card:hover img {
  transform: scale(1.05);
}

.lookbook-card figcaption {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 768px) {
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }
}

@media (max-width: 480px) {
  .lookbook-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ Spin wheel -------------------------- */
/* Two-column card: wheel + controls on the left, reward odds on the right.
   The wheel keeps the conic-gradient + rotated-label markup that
   assets/js/spin.js drives, so the server-authoritative landing is intact. */
.spin-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
}

.spin-card .glow {
  position: absolute;
  z-index: 0;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.spin-card .glow.g1 {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(255, 106, 0, .20), transparent 70%);
}

.spin-card .glow.g2 {
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(204, 82, 0, .18), transparent 70%);
}

.spin-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

@media (min-width: 880px) {
  .spin-grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.spin-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spin-head {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.spin-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.spin-head p {
  margin-top: 8px;
  color: var(--faint);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wheel-wrap {
  position: relative;
  width: var(--wheel, min(360px, 80vw));
  aspect-ratio: 1;
}

.wheel-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  z-index: -1;
  transform: translateX(-50%);
  width: 72%;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 106, 0, .22);
  filter: blur(26px);
  pointer-events: none;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 8px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, .3), 0 0 60px -10px rgba(204, 82, 0, .6), inset 0 0 40px rgba(0, 0, 0, .5);
  transition: transform 4.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  background: conic-gradient(var(--accent) 0deg 60deg, #1b1b20 60deg 120deg,
      var(--accent-2) 120deg 180deg, #1b1b20 180deg 240deg,
      var(--accent-3) 240deg 300deg, #1b1b20 300deg 360deg);
}

.wheel .seg {
  position: absolute;
  left: 50%;
  top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  z-index: 3;
  background: var(--accent-grad);
  color: #1a0e00;
  border: 4px solid var(--bg-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  box-shadow: 0 0 24px rgba(255, 106, 0, .45);
}

.wheel-pointer {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bg-2);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid #fff;
}

.wheel-pointer svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---- Spin wheel v2 (studded bezel + tapered wedges, brand orange) ---- */
.v2-frame { position: absolute; inset: 0; z-index: 1; }
.v2-frame svg, .v2-disc svg { display: block; width: 100%; height: 100%; }
.v2-disc {
  position: absolute; inset: 7.5%; z-index: 2; border-radius: 50%;
  will-change: transform;
  filter: drop-shadow(0 10px 24px rgba(204, 82, 0, .4));
}
.v2-disc svg { border-radius: 50%; }
.v2-seg-text { font-family: var(--font-display); font-weight: 800; font-size: 13px; fill: #6b2a0a; }
.v2-gloss {
  position: absolute; inset: 7.5%; z-index: 3; border-radius: 50%; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 8%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%);
}
.v2-hub {
  position: absolute; top: 50%; left: 50%; width: 24%; height: 24%;
  transform: translate(-50%, -50%); z-index: 5; pointer-events: none;
}
.v2-hub svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(153, 47, 0, .5)); }
.wheel-wrap.is-spinning .v2-hub svg { animation: v2hub .7s ease-in-out infinite; }
@keyframes v2hub { 50% { filter: drop-shadow(0 0 16px rgba(255, 106, 0, .9)); } }
.v2-pointer {
  position: absolute; top: -2%; left: 50%; transform: translateX(-50%);
  z-index: 6; width: 9%; aspect-ratio: 38 / 46;
  filter: drop-shadow(0 4px 6px rgba(153, 47, 0, .45));
}

/* win popup + confetti */
.v2-overlay {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.v2-overlay.show { opacity: 1; pointer-events: auto; }
.v2-card {
  transform: scale(.7) translateY(20px); transition: transform .55s cubic-bezier(.2, 1.5, .4, 1);
  text-align: center; max-width: 90vw; padding: 42px 50px; border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(255, 106, 0, .3); box-shadow: 0 0 60px -10px rgba(204, 82, 0, .6);
}
.v2-overlay.show .v2-card { transform: scale(1) translateY(0); }
.v2-won {
  font-family: var(--font-display); font-size: .72rem; font-weight: 800;
  letter-spacing: .42em; text-transform: uppercase; color: var(--accent-2);
}
.v2-prize {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 900; margin: 12px 0 6px;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-card p { color: var(--muted); margin: 0 0 22px; }
.v2-confetti { position: fixed; inset: 0; z-index: 1300; pointer-events: none; }

.spin-result {
  min-height: 28px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-align: center;
}

.spin-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .1em;
}

.spin-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffb39c;
  background: rgba(204, 82, 0, .12);
  border: 1px solid rgba(255, 106, 0, .25);
}

.spin-lock svg {
  width: 14px;
  height: 14px;
}

/* Reward odds panel (mirrors api/spin.php weights) */
.reward-odds {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px);
}

.reward-odds h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.reward-odds h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

.odds-list {
  display: grid;
  gap: 10px;
}

.odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.odds-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateX(3px);
}

.odds-row .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.odds-row .ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 106, 0, .10);
  border: 1px solid rgba(255, 106, 0, .22);
  color: var(--accent);
}

.odds-row .ic svg {
  width: 18px;
  height: 18px;
}

.odds-row .name {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-row .pct {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .8rem;
  color: var(--accent);
  background: rgba(255, 106, 0, .10);
  border: 1px solid rgba(255, 106, 0, .22);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.odds-row.miss .ic,
.odds-row.miss .pct {
  color: var(--faint);
  background: var(--surface-strong);
  border-color: var(--border);
}

.odds-foot {
  margin-top: 16px;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--faint);
}

/* Active-giveaway hero (alternate branch) */
.give-active {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}

.give-active .banner {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.give-active .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}

.countdown .unit {
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 70px;
}

.countdown .unit .n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.8rem;
}

.countdown .unit .l {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------- Dashboard / Admin ------------------------ */
.dash {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  padding-top: 110px;
  align-items: start;
  min-height: 100dvh;
}

.dash-side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border-radius: var(--r-lg);
  display: grid;
  gap: 4px;
}

.dash-side .me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dash-side .me .av {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #06070c;
  font-family: var(--font-display);
  font-weight: 700;
}

.dash-side .me .nm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}

.dash-side .me .rl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.dash-side a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .92rem;
  transition: all .2s var(--ease);
}

.dash-side a:hover {
  color: var(--text);
  background: var(--surface);
}

.dash-side a.active {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: inset 2px 0 0 var(--blue);
}

.dash-side a .i {
  width: 18px;
  text-align: center;
  color: var(--blue);
}

.dash-main {
  display: grid;
  gap: 24px;
  padding-bottom: 60px;
}

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kpi {
  padding: 22px;
  border-radius: var(--r);
}

.kpi .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.kpi .n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  margin-top: 8px;
}

.kpi .n .suffix {
  color: var(--blue);
}

.panel-block {
  padding: 24px;
  border-radius: var(--r-lg);
}

.panel-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

table.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}

table.tbl tr:last-child td {
  border-bottom: 0;
}

table.tbl tr:hover td {
  background: rgba(255, 255, 255, .015);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge.green {
  background: rgba(52, 245, 166, .12);
  color: #34f5a6;
}

.badge.blue {
  background: rgba(255, 106, 0, .12);
  color: var(--blue);
}

.badge.red {
  background: rgba(255, 107, 107, .12);
  color: #ff6b6b;
}

.badge.grey {
  background: var(--surface-strong);
  color: var(--muted);
}

.t-actions {
  display: flex;
  gap: 8px;
}

.t-actions button,
.t-actions a {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s var(--ease);
}

.t-actions button:hover,
.t-actions a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.t-actions .danger:hover {
  color: #ff6b6b;
  border-color: #ff6b6b;
}

/* Simple CSS bar chart for analytics */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding-top: 10px;
}

.bars .bar {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 8px;
  text-align: center;
}

.bars .bar .fill {
  border-radius: 8px 8px 0 0;
  background: var(--accent-grad);
  min-height: 4px;
}

.bars .bar .cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

/* ----------------------- Phase 2 responsive ------------------------ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .dash-side {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .dash-side .me {
    display: none;
  }

  .dash-side a {
    white-space: nowrap;
  }

  .dash-side a.active {
    box-shadow: inset 0 -2px 0 var(--blue);
  }
}

@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

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

  .news-grid,
  .news-grid .feature .news-card {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .give-active {
    grid-template-columns: 1fr;
  }

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

  .t-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .countdown .unit {
    min-width: 58px;
    padding: 10px 12px;
  }
}

/* --------------------------- Legal / Policy --------------------------- */
/* Shared by privacy.php & terms.php. Long-form readable prose on glass. */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sticky in-page nav (desktop) */
.legal-toc {
  position: sticky;
  top: 110px;
  padding: 22px;
}
.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.legal-toc a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}

/* Article surface */
.legal-doc {
  padding: 38px 42px;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--faint);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.legal-doc section + section {
  margin-top: 14px;
}
.legal-doc h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 38px 0 14px;
  scroll-margin-top: 100px;
}
.legal-doc section:first-of-type h2 { margin-top: 0; }
.legal-doc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 10px;
}
.legal-doc p {
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 16px;
  font-size: 15px;
}
.legal-doc ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.legal-doc li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.legal-doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.legal-doc a {
  color: var(--accent);
  text-decoration: none;
}
.legal-doc a:hover { text-decoration: underline; }
.legal-doc strong { color: var(--text); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; display: none; }
  .legal-doc { padding: 28px 22px; }
}