/* ============================================================
   JACKPOT SPIN — premium arcade wheel feature
   Jewel-tone palette: magenta / teal / purple / crimson / gold
   ============================================================ */

/* ---------- page ambience (lobby + machine) ---------- */
.jp-page {
  position: relative;
  background:
    radial-gradient(58% 34% at 50% 0%, rgba(133, 52, 214, .22), transparent 70%),
    radial-gradient(46% 30% at 12% 22%, rgba(236, 38, 118, .12), transparent 72%),
    radial-gradient(46% 30% at 88% 30%, rgba(23, 210, 189, .11), transparent 72%);
}
.jp-machine {
  background:
    radial-gradient(64% 38% at 50% 26%, rgba(136, 54, 226, .27), transparent 74%),
    radial-gradient(50% 28% at 8% 40%, rgba(236, 38, 118, .13), transparent 74%),
    radial-gradient(50% 28% at 92% 42%, rgba(23, 210, 189, .13), transparent 74%);
}

/* ---------- compact header (shared) ---------- */
.spk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.spk-back {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--card);
  border: 1px solid var(--stroke-strong);
  display: grid; place-items: center; color: var(--text);
  transition: transform .12s ease;
}
.spk-back svg { width: 15px; height: 15px; }
.spk-back:active { transform: scale(.94); }
.spk-head-title { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.spk-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.4px; color: var(--gold); text-shadow: 0 0 12px rgba(245,185,62,.55); }
.spk-name { font-size: 16px; font-weight: 800; color: var(--text); }
.spk-balance {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 6px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--stroke-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 12px rgba(245,185,62,.14);
  font-size: 12.5px; font-weight: 800; color: var(--gold);
}

/* ---------- floating sparkle dust ---------- */
.jp-sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.jp-spark {
  position: absolute; bottom: 6%; width: 4px; height: 4px; border-radius: 50%;
  opacity: 0;
}
.jp-spark.s0 { background: #FFE7A8; box-shadow: 0 0 8px rgba(255,231,168,1); animation: jpFloat 7s linear infinite; }
.jp-spark.s1 { background: #FF7BC9; box-shadow: 0 0 8px rgba(255,123,201,.95); animation: jpFloat 8.5s linear infinite; }
.jp-spark.s2 { background: #6BFFDF; box-shadow: 0 0 8px rgba(107,255,223,.95); animation: jpFloat 9.5s linear infinite; }
@keyframes jpFloat {
  0%   { transform: translateY(14px) scale(.6); opacity: 0; }
  18%  { opacity: .75; }
  55%  { opacity: .45; }
  100% { transform: translateY(-84px) scale(1); opacity: 0; }
}

/* ============================================================
   GAME PAGE — compact premium entry post
   ============================================================ */
.jp-post {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  margin-top: 14px; padding: 15px 15px 15px 17px;
  border-radius: 22px;
  color: var(--stage-text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 46%),
    linear-gradient(160deg, #38296E 0%, #251747 52%, #341850 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 130, .42),
    0 0 0 1px rgba(192, 82, 224, .46),
    0 14px 32px rgba(0,0,0,.45),
    0 0 36px rgba(184, 84, 235, .24);
  transition: transform .14s ease, box-shadow .2s ease;
  overflow: hidden;
}
.jp-post::before {
  /* faint neon horizon line across the card top */
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,246,222,.65), rgba(255,124,201,.7), transparent);
  pointer-events: none;
}
.jp-post:active {
  transform: scale(.977);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 120, .55),
    0 0 0 1px rgba(178, 72, 205, .48),
    0 8px 22px rgba(0,0,0,.5),
    0 0 40px rgba(168, 74, 216, .3);
}
.jp-post-art {
  position: relative; flex-shrink: 0;
  width: 86px; height: 86px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(136,54,226,.4), rgba(29,18,54,.24) 68%);
}
.jp-mini-wheel {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #3D2C7E, #251747) padding-box,
    conic-gradient(#FFF0BE, #FF7ED4, #7DF2E0, #C9B2FF, #FFF0BE) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 24px rgba(201,178,255,.55);
  animation: jpMiniSpin 14s linear infinite;
}
.jp-mini-wheel .wheel-face {
  position: absolute; inset: 5px; border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0,0,0,.4), inset 0 1px 3px rgba(255,255,255,.14);
}
.jp-mini-wheel .wheel-face::after { content: none; }   /* no vignette on the mini art */
.jp-mini-hub {
  position: relative; z-index: 2;
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF3C9, #F5B93E 62%, #C07E12);
  box-shadow: 0 0 11px rgba(255,214,120,.85), inset 0 -1px 2px rgba(120,60,0,.5);
}
@keyframes jpMiniSpin { to { transform: rotate(360deg); } }

/* twinkling stars on the entry post artwork */
.jp-post-star { position: absolute; border-radius: 50%; background: #FFE9B8; opacity: .85; }
.jp-post-star.s1 {
  width: 5px; height: 5px; top: 6px; right: 12px;
  box-shadow: 0 0 7px rgba(255,233,184,.95);
  animation: jpTwinkle 2.6s ease-in-out infinite;
}
.jp-post-star.s2 {
  width: 3.5px; height: 3.5px; bottom: 9px; left: 8px;
  background: #5EEAD4; box-shadow: 0 0 6px rgba(94,234,212,.95);
  animation: jpTwinkle 3.4s ease-in-out .9s infinite;
}
@keyframes jpTwinkle { 0%,100% { transform: scale(.55); opacity: .35; } 50% { transform: scale(1.15); opacity: 1; } }

.jp-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jp-post-kicker {
  font-size: 9px; font-weight: 800; letter-spacing: 2.4px;
  color: #FFE3A1;
  text-shadow: 0 0 12px rgba(255,196,86,.55);
}
.jp-post-title {
  font-size: 21px; line-height: 1.04; font-weight: 800; letter-spacing: 2.6px;
  background: linear-gradient(92deg, #8FF2FF 4%, #BCA4FF 48%, #FF7ED4 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(146,124,255,.5));
}
.jp-post-sub { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: rgba(233,225,252,.78); }
.jp-post-cost {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  margin-top: 5px; padding: 4.5px 11px 4.5px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: #FFEBB0;
  background: rgba(104,72,14,.52);
  box-shadow: inset 0 0 0 1px rgba(255,214,120,.55), 0 2px 10px rgba(0,0,0,.35), 0 0 12px rgba(245,185,62,.15);
}
.jp-post-chev {
  flex-shrink: 0; align-self: center;
  font-size: 26px; font-weight: 700; line-height: 1;
  color: var(--stage-gold);
  text-shadow: 0 0 12px rgba(245,185,62,.5);
}

/* ============================================================
   DEDICATED SPIN PAGE — title
   ============================================================ */
.jp-title-wrap { text-align: center; margin: 12px 0 2px; position: relative; z-index: 2; }
.jp-title {
  font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: 8px;
  background: linear-gradient(92deg, #8FF2FF 6%, #BCA4FF 52%, #FF7ED4 94%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(146,124,255,.55));
}
.jp-tagline {
  margin-top: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 3.4px;
  color: #DCCFF5;
}
.jp-tagline::before, .jp-tagline::after {
  content: "✦"; font-size: 8px; vertical-align: 2px; color: var(--gold);
  margin: 0 8px; opacity: .9;
}

/* ============================================================
   THE WHEEL MACHINE
   ============================================================ */
.jp-wheel-zone {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  /* natural middle placement: breathes below the title without sinking
     toward the tab bar; adapts down on short screens */
  margin-top: 10vh;
  margin-top: clamp(18px, calc((100dvh - 640px) * .5), 84px);
}
.jp-wheel-stage { position: relative; width: 272px; height: 272px; }

/* restrained radial glow behind everything */
.jp-wheel-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(185,160,255,.28) 0%, rgba(236,38,118,.14) 44%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

/* decorative metallic rings around the wheel */
.jp-wheel-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; }
.jp-wheel-ring.outer {
  width: 298px; height: 298px;
  border: 1.5px solid rgba(255,216,120,.5);
  box-shadow:
    0 0 24px rgba(245,185,62,.24),
    0 0 44px rgba(185,160,255,.16),
    inset 0 0 18px rgba(245,185,62,.12);
}
.jp-wheel-ring.inner {
  width: 232px; height: 232px;
  border: 1px solid rgba(185,160,255,.42);
  box-shadow: inset 0 0 16px rgba(185,160,255,.18);
}

/* static frame — only .wheel-rot inside rotates */
.wheel { position: relative; border-radius: 50%; }
.jp-machine .wheel {
  background:
    conic-gradient(from 210deg, #FFE29A, #D9A03A 18%, #96681B 32%, #F0BE55 52%, #A5731D 71%, #FFE29A 88%, #D9A03A) border-box,
    #2A1F4D;
  border: 5px solid transparent;
  box-shadow:
    0 0 0 1.5px rgba(255,240,200,.65),
    0 0 0 4px rgba(112, 52, 150, .6),
    0 0 0 5.5px rgba(255,209,102,.38),
    0 22px 46px rgba(0,0,0,.55),
    0 0 54px rgba(168, 74, 216, .22);
}
.wheel-rot { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.wheel-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.wheel-face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, transparent 60%, rgba(0,0,0,.26) 100%),
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.14), transparent 48%);
}
.wheel-win-glow {
  position: absolute; inset: 0; border-radius: 50%;
  animation: jpWinPulse 1.5s ease-in-out infinite;
}
@keyframes jpWinPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* exact radial separators: a crisp gold wedge every 40deg starting at the
   segment origin (12 o'clock) — geometrically locked to conic boundaries */
.wheel-face::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(0,0,0,.16) 78%, transparent 100%),
    repeating-conic-gradient(from 0deg,
      rgba(255,249,228,1) 0deg .45deg,
      rgba(240,190,90,.75) .45deg 1.05deg,
      transparent 1.05deg 40deg);
}

/* upright stacked labels pinned mid-sector */
.wheel-label {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,.9);
}
.wheel-label .wl-ic { font-style: normal; font-size: 14px; line-height: 1; }
.wheel-label .wl-tx {
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px;
  line-height: 1.15; white-space: nowrap;
  opacity: .92;
}
.wheel-label .wl-strong { font-size: 10px; letter-spacing: .7px; opacity: 1; }

/* dimensional center hub — static, never rotates */
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 26%, #8A4EF5 0%, #5B2BC4 38%, #38156E 74%) padding-box,
    conic-gradient(from 220deg, #FFF3C9, #D9A03A 22%, #96681B 45%, #F0BE55 68%, #FFF3C9) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 10px 24px rgba(0,0,0,.6),
    0 0 24px rgba(245,185,62,.42),
    inset 0 2px 6px rgba(255,255,255,.28),
    inset 0 -4px 10px rgba(20,6,44,.55);
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.4px;
  color: #FFF3C9;
  text-shadow: 0 1px 3px rgba(30,8,60,.7), 0 0 14px rgba(255,233,184,.5);
  z-index: 4;
}

/* fixed jewel pointer at 12 o'clock */
.jp-pointer {
  position: absolute; left: 50%; top: -13px; transform: translateX(-50%);
  width: 26px; height: 36px; z-index: 6;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.55));
  pointer-events: none;
}
.jp-pointer::before {
  /* gold trim backing */
  content: ""; position: absolute; inset: -2.5px -2px;
  background: conic-gradient(from 200deg, #FFF3C9, #D9A03A 30%, #96681B 52%, #F0BE55 76%, #FFF3C9);
  clip-path: polygon(50% 0%, 100% 60%, 50% 100%, 0% 60%);
}
.jp-pointer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, #A9FFF3 6%, #35E8C0 46%, #0FA985 90%);
  clip-path: polygon(50% 0%, 100% 60%, 50% 100%, 0% 60%);
}
.jp-pointer-gem {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 34% 30%, #FFFFFF, #C4FFF4 55%, #35E8C0);
  box-shadow: 0 0 10px rgba(169,255,243,1);
}

.spk-status { min-height: 16px; margin: 72px 0 0; margin-top: clamp(56px, 9vh, 96px); font-size: 12px; text-align: center; color: var(--muted); }

/* fit smaller phones without clipping rings or pointer */
@media (max-width: 379px) {
  .jp-wheel-stage { transform: scale(.87); transform-origin: top center; }
  .jp-wheel-zone { margin-bottom: -30px; }
}
@media (max-width: 339px) {
  .jp-wheel-stage { transform: scale(.79); }
  .jp-wheel-zone { margin-bottom: -52px; }
}

/* ============================================================
   PRIMARY CTA — single spin button
   ============================================================ */
.jp-cta {
  position: relative; z-index: 2;
  width: 100%; margin-top: 22px; margin-top: clamp(20px, 3.5vh, 34px); padding: 13px 14px 12px;
  border-radius: 21px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 44%),
    linear-gradient(135deg, #9350FF 0%, #6A30F5 42%, #C42A85 100%);
  border: 1.5px solid rgba(255,214,120,.78);
  box-shadow:
    0 14px 32px rgba(106, 48, 245, .46),
    0 0 26px rgba(196, 42, 133, .32),
    inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .12s ease, opacity .16s ease, box-shadow .2s ease;
}
.jp-cta::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,233,184,.75), transparent);
}
.jp-cta:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 8px 20px rgba(90, 43, 217, .38), inset 0 1px 0 rgba(255,255,255,.2);
}
.jp-cta[disabled] { opacity: .45; filter: saturate(.55); box-shadow: none; }
.jp-cta.loading { pointer-events: none; animation: ctaPulse 1.1s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
.jp-cta-main {
  display: flex; align-items: center; gap: 8px;
  font-size: 16.5px; font-weight: 800; letter-spacing: 3px; color: #fff;
  text-shadow: 0 1px 4px rgba(36, 10, 70, .6), 0 0 16px rgba(255,255,255,.38);
}
.jp-cta-main svg { width: 17px; height: 17px; color: #FFE9B8; }
.jp-cta-cost {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: #FFEBB0;
}

/* ============================================================
   REWARD REVEAL
   ============================================================ */
.jp-res { padding-top: 4px; }
.jp-res-pop { text-align: center; animation: popReveal .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.jp-won {
  font-size: 13px; font-weight: 800; letter-spacing: 4.5px; color: var(--gold);
  text-shadow: 0 0 14px rgba(245,185,62,.45);
  margin-bottom: 14px;
}
.jp-coin-win {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 46px; font-weight: 800; color: var(--gold);
  text-shadow: 0 4px 18px rgba(245,185,62,.4);
  margin: 6px 0 2px;
}
.jp-coin-win .sp-coin { width: 36px; height: 36px; }
.jp-coin-label { margin-top: 2px; letter-spacing: 6px; font-size: 14px; font-weight: 800; color: var(--text); }

.spk-char-frame {
  position: relative; width: 216px; max-width: 66vw; margin: 0 auto; aspect-ratio: 3 / 3.6;
  border-radius: 18px; overflow: hidden;
  border: 2px solid var(--rc, var(--stroke-strong));
  box-shadow: 0 0 0 4px rgba(0,0,0,.22), 0 14px 34px rgba(0,0,0,.5),
              0 0 26px color-mix(in srgb, var(--rc, #9691AE) 34%, transparent);
  background: var(--card);
}
.spk-char-frame .new-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; color: #1A1608;
  background: linear-gradient(180deg, #FFD98C, var(--gold));
}
.sp-char-img, .spk-char-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spk-char-name { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--text); }

/* premium coin dot (shared across spin UI) */
.sp-coin {
  display: inline-block; width: var(--sz, 14px); height: var(--sz, 14px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF3C9, #F7BE45 68%, #D0901A);
  box-shadow: inset 0 -1px 2px rgba(120,60,0,.4), 0 0 8px rgba(255,214,120,.5);
  flex-shrink: 0;
}

/* legacy reel styles (unused by Lucky Spin, kept for older deep links) */
.reel-window {
  position: relative;
  height: 168px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(var(--accent-rgb),.25);
}
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-item { height: 140px; margin: 14px 0; display: grid; place-items: center; }
.reel-item img {
  height: 128px; width: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--rc, var(--stroke-strong));
  opacity: .92;
}
.reel-center-line {
  position: absolute; left: 8px; right: 8px; top: 50%;
  height: 148px; transform: translateY(-50%);
  border-radius: 18px;
  border: 2px solid rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 26px rgba(var(--accent-rgb),.28), inset 0 0 26px rgba(var(--accent-b-rgb),.12);
  pointer-events: none;
}
.reel-side { position: absolute; left: 0; right: 0; height: 56px; z-index: 3; pointer-events: none; }
.reel-side.top { top: 0; background: linear-gradient(180deg, var(--card), transparent); }
.reel-side.bot { bottom: 0; background: linear-gradient(0deg, var(--card), transparent); }

.spin-result-pop { text-align: center; animation: popReveal .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popReveal { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spin-result-img {
  width: min(64vw, 250px);
  aspect-ratio: 3/3.7;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--rc, var(--stroke-strong));
  box-shadow: 0 0 44px color-mix(in srgb, var(--rc, transparent) 45%, transparent), 0 18px 46px rgba(0,0,0,.5);
  margin: 4px auto 16px;
}
.new-badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--on-accent);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: .6px;
}

.odds-row {
  display: flex; justify-content: space-between;
  padding: 9px 2px;
  font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--stroke);
}
.odds-row:last-child { border-bottom: none; }

/* ===== AUCTION LIST ===== */
.auc-list { display: flex; flex-direction: column; gap: 12px; }
.auc-row {
  display: flex; gap: 13px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 17px;
  padding: 11px;
  transition: transform .15s ease;
}
.auc-row:active { transform: scale(.98); }
.auc-thumb {
  width: 86px; height: 104px;
  border-radius: 13px; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--rc, var(--stroke-strong));
}
.auc-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.auc-row .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auc-row .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bidbar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.bn-flag {
  font-size: 9.5px; font-weight: 800; color: var(--cyan);
  border: 1px solid rgba(var(--accent-rgb),.35);
  border-radius: 99px; padding: 1.5px 7px;
  margin-left: 7px;
}

.status-pill { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.st-active { color: var(--success); background: rgba(70,170,120,.1); }
.st-sold, .st-completed { color: var(--cyan); background: rgba(var(--accent-rgb),.1); }
.st-ended_unsold { color: var(--muted); background: var(--chip-bg); }
.st-cancelled { color: var(--danger); background: rgba(var(--danger-rgb),.08); }

.fab {
  position: fixed;
  right: max(16px, calc(50vw - 260px + 16px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
  width: 54px; height: 54px;
  border-radius: 18px;
  background: var(--gradient);
  color: var(--on-accent);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(var(--accent-b-rgb), .45);
  z-index: 40;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.9); }
.fab svg { width: 24px; height: 24px; }

/* ===== AUCTION DETAIL ===== */
.cd-timer { display: flex; gap: 8px; justify-content: center; margin: 4px 0 2px; }
.cd-seg {
  min-width: 58px;
  background: var(--card-2);
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 8px 6px;
  text-align: center;
}
.cd-seg b { display: block; font-size: 19px; font-weight: 800; }
.cd-seg span { font-size: 9.5px; color: var(--muted); font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.cd-timer.urgent .cd-seg { border-color: rgba(var(--danger-rgb),.4); }
.cd-timer.urgent .cd-seg b { color: var(--danger); }


.bid-history { display: flex; flex-direction: column; }
.bh-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--stroke);
  font-size: 13px;
}
.bh-row:last-child { border-bottom: none; }
.bh-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--stroke-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.bh-top { color: var(--gold); font-weight: 800; }

/* ===== FORMS ===== */
.form-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 14px 2px 7px; text-transform: uppercase; letter-spacing: .5px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.input-affix { position: relative; }
.input-affix input { padding-right: 74px; }
.input-affix .affix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 5px;
  color: var(--gold); font-weight: 800; font-size: 13px;
}
.input-affix .affix::before { content:''; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #FFE7A8, #F5B93E 70%); }

.duration-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dur-btn {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 11px 2px;
  font-size: 12.5px; font-weight: 800; color: var(--muted);
  transition: all .15s ease;
}
.dur-btn.active {
  background: rgba(var(--accent-rgb),.16);
  border-color: rgba(var(--accent-rgb), .55);
  color: var(--text);
}

.review-box { background: var(--card-2); border: 1px dashed var(--stroke-strong); border-radius: 16px; padding: 15px; }
.rv-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.rv-row b { font-weight: 800; }

/* ===== Auction marketplace (two-column collectible grid) ===== */
.auc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 330px) {
  .auc-grid { grid-template-columns: 1fr; }
}

.auc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  animation: cardIn .22s ease both;
  display: flex;
  flex-direction: column;
}
.auc-card:active { transform: scale(.975); }

.auc-card .ac-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--surface-2);
}
.auc-card .ac-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.auc-card .ac-body { padding: 10px 11px 11px; min-width: 0; }
.ac-name {
  font-size: 13.5px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-sub { margin-top: 3px; font-size: 10.5px; color: var(--text-muted); font-weight: 600;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-label { font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase;
            color: var(--text-muted); font-weight: 800; margin-top: 8px; }
.ac-price { display: flex; align-items: center; gap: 5px; margin-top: 3px;
            font-size: 14px; font-weight: 800; color: var(--gold); }
.ac-foot { display: flex; align-items: center; justify-content: space-between;
           margin-top: 7px; font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.ac-flag { font-size: 9px; font-weight: 800; color: var(--accent);
           border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 99px;
           padding: 1px 6px; }
.your-listing { font-size: 10px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* ===== Theme segmented control ===== */
.theme-seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 4px; gap: 4px;
}
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 0; border-radius: 10px;
  font-size: 13.5px; font-weight: 800; color: var(--text-muted);
  transition: all .16s ease;
}
.seg-btn.active { background: var(--surface); color: var(--accent);
                  box-shadow: var(--shadow-soft); }

.auc-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
