/* ============================================================
   Phygitals — card detail page + claw pack page styles
   ============================================================ */

/* ---------- CARD DETAIL PAGE ---------- */
.card-topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #a3a3a3;
  transition: color .2s ease;
}
.back-btn:hover { color: #fff; }
.back-btn svg { width: 16px; height: 16px; }

.card-main-grid {
  margin-top: 16px;
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  .card-main-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* --- viewer --- */
.card-viewer { width: 100%; overflow: hidden; border-radius: 16px; }
.viewer-stage {
  position: relative;
  background: var(--card);
  padding: 16px 16px 24px;
  perspective: 1200px;
  border-radius: 16px;
  overflow: hidden;
}
.viewer-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  opacity: .35;
  filter: blur(48px) saturate(2);
  pointer-events: none;
}
.viewer-bg-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(23,23,23,.4), rgba(23,23,23,.2) 50%, rgba(23,23,23,.4));
  pointer-events: none;
}
.viewer-card-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 450px;
  transform-style: preserve-3d;
  transition: transform .7s ease-in-out;
  will-change: transform;
}
@media (min-width: 768px) { .viewer-card-wrap { min-height: 560px; } }
.viewer-card-wrap.zoomed { z-index: 5; }
.viewer-card {
  max-height: 450px;
  max-width: 245px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  cursor: zoom-in;
  backface-visibility: hidden;
  transition: transform .7s ease-out;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.45));
}
@media (min-width: 768px) { .viewer-card { max-height: 560px; } }
.viewer-card-wrap.zoomed .viewer-card { cursor: zoom-out; }

.viewer-toolbar {
  position: relative; z-index: 6;
  margin: -20px auto 0;
  width: fit-content;
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px;
  border-radius: 999px;
  overflow: hidden;
}
.viewer-toolbar::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.4), inset 0 -.5px 0 rgba(0,0,0,.15), inset 0 0 8px rgba(255,255,255,.06);
  border: .5px solid rgba(255,255,255,.2);
}
.vt-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  transition: color .2s ease, transform .2s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.vt-btn:first-child { padding: 0 10px; }
.vt-btn:hover { color: #fff; transform: scale(1.08); }
.vt-btn:active { transform: scale(.96); }
.vt-btn svg { width: 15px; height: 15px; }
.vt-btn span { font-size: 12px; font-weight: 500; }
.vt-divider { width: 1px; height: 16px; background: rgba(255,255,255,.15); margin: 0 4px; }

.hud-overlay {
  position: absolute; left: 16px; right: 16px; bottom: 80px;
  z-index: 7;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.65);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: hud-in .25s ease both;
}
@keyframes hud-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hud-overlay div { display: flex; flex-direction: column; gap: 2px; }
.hud-overlay span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); }
.hud-overlay strong { font-size: 14px; color: #fff; }

/* --- right info column --- */
.card-info { display: flex; flex-direction: column; }
.card-info-top { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; }
.card-page-title {
  font-family: var(--font-nekst);
  font-size: 24px; font-weight: 900; letter-spacing: -.02em;
  line-height: 1.15; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer;
}
@media (min-width: 640px) { .card-page-title { font-size: 30px; } }
@media (min-width: 1024px) { .card-page-title { font-size: 32px; } }
.card-owner-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #a3a3a3; }
.co-avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.co-avatar img { width: 100%; height: 100%; object-fit: cover; }
.co-name { font-weight: 500; color: #fff; }
.co-name:hover { text-decoration: underline; }

.card-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .card-stats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .card-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.card-stat {
  display: flex; align-items: center; gap: 8px;
  min-height: 68px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.cs-icon { color: var(--neutral-400); flex-shrink: 0; }
.cs-icon svg { width: 18px; height: 18px; }
.cs-label { font-size: 10px; font-weight: 500; color: var(--neutral-400); }
.cs-value { font-size: 14px; font-weight: 600; color: #fff; }

/* --- panels --- */
.card-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding: 16px;
}
.cp-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; }
.cp-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--neutral-400); }
.cp-title svg { width: 14px; height: 14px; }
.cp-link { font-size: 10px; font-weight: 500; color: #737373; transition: color .2s ease; }
.cp-link:hover { color: #fff; }

.similar-packs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spack-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  height: 112px;
  padding: 10px 8px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  overflow: hidden;
  transition: transform .3s ease;
}
@media (min-width: 640px) { .spack-card { height: 144px; padding-top: 12px; } }
.spack-card:hover { transform: scale(1.04); }
.spack-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  opacity: .8;
  filter: blur(16px) saturate(2.5);
  pointer-events: none;
}
.spack-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 60%, rgba(0,0,0,.3));
  pointer-events: none;
}
.spack-meta { position: relative; z-index: 2; display: flex; flex-direction: column; line-height: 1.25; }
.spack-name { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
@media (min-width: 640px) { .spack-name { font-size: 10px; } }
.spack-price {
  font-family: var(--font-nekst);
  font-size: 18px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
@media (min-width: 640px) { .spack-price { font-size: 20px; } }
.spack-img {
  position: absolute; left: 0; right: 0; bottom: -48px;
  z-index: 2;
  margin: 0 auto;
  height: 85%; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.5));
  transition: transform .5s ease-out;
}
@media (min-width: 640px) { .spack-img { bottom: -40px; height: 82%; } }
.spack-card:hover .spack-img { transform: translateY(-4px) scale(1.05); }

.cp-price-row { padding: 12px 0 4px; }
.cp-price { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.cp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.cp-btn:active { transform: scale(.96); }
.cp-btn.ghost { background: rgba(255,255,255,.06); color: #e5e5e5; border: 1px solid transparent; }
.cp-btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.cp-btn.solid { background: #fff; color: #0a0a0a; }
.cp-btn.solid:hover { background: rgba(255,255,255,.9); }

/* --- lower panels --- */
.card-lower-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .card-lower-grid { grid-template-columns: 1fr 1fr; } }
.cp-empty {
  padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px;
}
.cp-empty svg { width: 30px; height: 30px; color: #404040; margin-bottom: 8px; }
.cp-empty-strong { font-size: 15px; font-weight: 600; color: #d4d4d4; }
.cp-empty-sub { font-size: 12.5px; color: var(--neutral-400); }

/* --- activity --- */
.activity-panel { margin-top: 16px; }
.activity-list { margin-top: 8px; display: flex; flex-direction: column; }
.activity-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.activity-row:last-child { border-bottom: none; }
.act-type {
  flex-shrink: 0;
  width: 44px;
  padding: 3px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
}
.act-type.claw { background: rgba(52,211,153,.15); color: var(--emerald-light); }
.act-type.buy { background: rgba(59,130,246,.15); color: #60a5fa; }
.act-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #e5e5e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-src { flex-shrink: 0; font-size: 12px; color: var(--neutral-400); }
.act-user { flex-shrink: 0; font-size: 12px; color: #d4d4d4; }
.act-price { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #fff; }
.act-time { flex-shrink: 0; font-size: 11px; color: #737373; }
@media (max-width: 767px) {
  .act-src, .act-user { display: none; }
}

/* --- tabs --- */
.tabs-panel { margin-top: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); }
.tab {
  padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--neutral-400);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.tab:hover { color: #e5e5e5; }
.tab.active { color: #fff; border-bottom-color: #fff; }
.tab-content { display: none; padding-top: 8px; }
.tab-content.active { display: block; }
.tab-cta { margin-top: 12px; display: flex; justify-content: flex-end; }

/* --- details table --- */
.details-panel { margin-top: 16px; }
.details-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.details-table tr { border-bottom: 1px solid var(--border-soft); }
.details-table tr:last-child { border-bottom: none; }
.details-table td { padding: 10px 4px; font-size: 13px; vertical-align: top; }
.dt-key { width: 160px; color: var(--neutral-400); font-weight: 500; }
.dt-val { color: #fff; word-break: break-all; }

/* --- similar items --- */
.similar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .similar-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.similar-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #404040;
  background: var(--card2);
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, transform .3s ease;
}
.similar-card:hover { border-color: #6b6b6b; transform: translateY(-2px); }
.sim-img { aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom right, #292929, #171717); }
.sim-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.sim-body { padding: 12px 14px 14px; }
.sim-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-price { margin-top: 4px; font-size: 12px; color: var(--neutral-400); }

/* --- external item modal --- */
.ext-warn-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(245,158,11,.15);
  color: #fbbf24;
  margin-bottom: 14px;
}
.ext-warn-icon svg { width: 22px; height: 22px; }
.ext-vault {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
}
.ext-vault-label { font-size: 11px; color: var(--neutral-400); }
.ext-vault strong { font-size: 14px; color: #fff; }
.modal-text.small { font-size: 12.5px; }
.ext-actions { margin-top: 20px; display: flex; gap: 8px; justify-content: flex-end; }

/* ============================================================
   CLAW (PACK OPENING) PAGE
   ============================================================ */
.claw-page { padding-top: 12px; }

/* mobile block */
.claw-mobile { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .claw-mobile { display: none; } }
.claw-m-cat { position: relative; }
.claw-cat-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px; font-weight: 500;
  transition: background-color .2s ease;
}
.claw-cat-btn:hover { background: rgba(255,255,255,.1); }
.claw-cat-btn img { width: 20px; height: 20px; object-fit: contain; }
.claw-cat-btn svg { width: 16px; height: 16px; color: var(--neutral-400); margin-left: auto; flex-shrink: 0; }
.claw-cat-btn img + span { flex: 1; text-align: left; }
.claw-m-cat-grid, .claw-cat-grid {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 30;
  grid-template-columns: repeat(2, 1fr); gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.claw-m-cat-grid.open, .claw-cat-grid.open { display: grid; }
.claw-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 12px; font-weight: 500;
  transition: background-color .2s ease;
}
.claw-cat-item:hover { background: rgba(255,255,255,.1); }
.claw-cat-item.active { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.claw-cat-item img { width: 20px; height: 20px; object-fit: contain; }
.claw-m-cover {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
@media (min-width: 640px) { .claw-m-cover { height: 480px; } }
.claw-m-cover img { width: 100%; height: 100%; object-fit: cover; }
.demo-spin-btn {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #34d399, #22c55e 50%, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(16,185,129,.5);
  transition: filter .2s ease, transform .15s ease;
  overflow: hidden;
}
.demo-spin-btn:hover { filter: brightness(1.1); }
.demo-spin-btn:active { transform: scale(.96); }
.ds-ping { position: absolute; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.4); animation: promo-pulse 1.6s cubic-bezier(0,0,.2,1) infinite; }
.ds-dot {
  position: relative;
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.ds-dot svg { width: 14px; height: 14px; }
.ds-label { flex: 1; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.demo-spin-btn > svg:last-child { width: 15px; height: 15px; opacity: .85; }

/* desktop layout */
.claw-layout { display: none; }
@media (min-width: 1024px) {
  .claw-layout { display: flex; align-items: flex-start; gap: 24px; }
  .claw-cover-col { flex: 1; min-width: 0; }
  .claw-side-col { width: 440px; flex-shrink: 0; }
}
.claw-cover {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.claw-cover-img { width: 100%; height: 100%; object-fit: cover; }
.demo-spin-btn.cover-spin { left: 24px; right: auto; bottom: 24px; padding-right: 20px; }
.claw-sections { margin-top: 32px; }
.claw-section-head { margin-bottom: 20px; }
.claw-section-sub { margin-top: 8px; font-size: 14px; color: var(--neutral-400); }

/* top hits grid */
.top-hits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .top-hits-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .top-hits-grid { grid-template-columns: repeat(4, 1fr); } }
.top-hit { display: block; }
.top-hit .th-img {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.top-hit .th-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.th-hover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.top-hit:hover .th-hover-shade { opacity: 1; }
.th-title {
  margin-top: 10px;
  font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.th-est { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--emerald-light); }

/* sidebar */
.claw-side {
  position: sticky; top: 16px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 128px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.claw-side-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.claw-pack-title {
  font-family: var(--font-nekst);
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.8) 55%, rgba(255,255,255,.3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.claw-buyback-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.15);
  color: var(--emerald-light);
  font-size: 11px; font-weight: 600;
}
.claw-side-body {
  min-height: 0; flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 12px 20px 20px;
}
.claw-cat-select { position: relative; }
.claw-cat-grid { grid-template-columns: repeat(2, 1fr); }

/* tiers */
.claw-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.claw-tier {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  text-align: center;
  transition: background-color .2s ease;
}
.claw-tier:hover { background: rgba(255,255,255,.1); }
.claw-tier.active { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.claw-tier img { height: 32px; width: auto; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.ct-name { font-size: 10px; font-weight: 500; color: var(--neutral-400); line-height: 1.3; }
.ct-price { margin-top: 2px; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* expected value + odds */
.claw-ev {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.04);
  padding: 12px 14px;
}
.claw-ev-row { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
.cev-label { font-size: 13px; color: var(--neutral-400); }
.cev-right { display: flex; align-items: center; gap: 6px; }
.cev-right strong { font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cev-per { font-size: 13px; color: #737373; }
.cev-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 9px; font-weight: 700; color: var(--neutral-400);
}
.claw-ev-divider { height: 1px; background: rgba(255,255,255,.1); margin: 10px 0; }
.claw-odds { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.odds-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.odds-cell span { font-size: 10px; color: var(--neutral-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds-cell strong { font-size: 14px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* buy panel */
.claw-buy { display: flex; flex-direction: column; gap: 8px; }
.claw-qty {
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--neutral-400);
  transition: background-color .2s ease, color .2s ease;
}
.qty-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.qty-btn svg { width: 16px; height: 16px; }
.qty-label { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: #fff; }
.qty-max {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: #d4d4d4;
  transition: background-color .2s ease;
}
.qty-max:hover { background: rgba(255,255,255,.1); }
.open-pack-btn {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, #34d399, #22c55e 50%, #10b981);
  color: #fff;
  overflow: hidden;
  transition: filter .2s ease, transform .15s ease;
}
.open-pack-btn:hover { filter: brightness(1.1); }
.open-pack-btn:active { transform: scale(.96); }
.op-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.15), transparent);
  animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.op-left { position: relative; display: flex; align-items: baseline; gap: 8px; }
.op-left strong { font-size: 15px; font-weight: 700; }
.op-pts { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.6); }
.op-price { position: relative; font-size: 18px; font-weight: 700; margin-left: auto; margin-right: 8px; }
.open-pack-btn svg { position: relative; width: 16px; height: 16px; }

/* buy modal */
.buy-summary {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
}
.buy-summary img { height: 56px; width: auto; object-fit: contain; }
.buy-summary-meta { flex: 1; min-width: 0; }
.buy-summary-meta p { font-size: 14px; font-weight: 600; color: #fff; }
.buy-summary-meta p + p { margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--neutral-400); }
.buy-summary-price { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.buy-summary-price strong { font-size: 18px; color: #fff; }
.buy-summary-price span { font-size: 11px; color: var(--emerald-light); }
.buy-prepare { margin-top: 10px; font-size: 12px; color: var(--neutral-400); text-align: center; }
.buy-methods { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-method {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
  color: #d4d4d4;
  font-size: 13px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.buy-method svg { width: 16px; height: 16px; }
.buy-method:hover { background: rgba(255,255,255,.08); }
.buy-method.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.buy-currency { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.currency-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
  color: #d4d4d4;
  font-size: 13px; font-weight: 500;
  transition: background-color .2s ease;
}
.currency-row img { width: 20px; height: 20px; }
.currency-row strong { margin-left: auto; color: #fff; }
.currency-row:hover { background: rgba(255,255,255,.08); }
.currency-row.active { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); color: #fff; }
.pay-btn { margin-top: 20px; }
.pay-btn:disabled { opacity: .6; cursor: wait; }

/* reveal modal (demo spin) */
.reveal-card { text-align: center; }
.reveal-eyebrow {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .3em; color: var(--emerald-light);
  margin-bottom: 14px;
}
.reveal-flip { perspective: 1000px; width: 180px; height: 240px; margin: 0 auto; }
.reveal-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-flip.flipped .reveal-inner { transform: rotateY(180deg); }
.reveal-back, .reveal-front {
  position: absolute; inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom right, #292929, #171717);
  border: 1px solid #404040;
}
.reveal-back img { width: 70%; height: auto; object-fit: contain; }
.reveal-front { transform: rotateY(180deg); }
.reveal-front img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
#reveal-title { margin-top: 18px; font-size: 16px; }
#reveal-sub { margin-top: 6px; }
#reveal-again { margin-top: 20px; }

/* ---------- AUTH PAGES (login / signup) ---------- */
.auth-header { border-bottom: 1px solid var(--border-soft); }
.auth-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #d4d4d4;
  transition: background-color .2s ease, color .2s ease;
}
.auth-back-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.auth-back-link svg { width: 16px; height: 16px; }

.auth-page {
  min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 16px 72px;
}
.auth-card {
  width: 100%; max-width: 420px;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom right, #202020, #1a1a1a);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  animation: auth-in .4s cubic-bezier(.16,1,.3,1);
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.auth-eyebrow {
  margin-bottom: 10px;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .3em; color: var(--emerald-light);
}
.auth-title {
  font-family: var(--font-nekst);
  font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.8) 55%, rgba(255,255,255,.3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.auth-sub { font-size: 14px; color: var(--neutral-400); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12.5px; font-weight: 500; color: var(--txt-60); }
.auth-field input {
  height: 44px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--txt); font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.auth-field input::placeholder { color: var(--txt-25); }
.auth-field input:focus {
  border-color: rgba(16,185,129,.55);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.auth-field.invalid input { border-color: rgba(239,68,68,.6); }
.auth-error { display: none; font-size: 12px; color: #f87171; }
.auth-field.invalid .auth-error { display: block; }
.auth-row-between { display: flex; align-items: center; justify-content: space-between; }
.auth-remember {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--txt-60); cursor: pointer;
}
.auth-remember input { accent-color: var(--emerald); width: 15px; height: 15px; }
.auth-forgot { font-size: 13px; color: var(--emerald-light); transition: color .2s ease; }
.auth-forgot:hover { color: #fff; }
.auth-terms { font-size: 12px; line-height: 1.5; color: var(--txt-45); }
.auth-submit {
  height: 46px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(to bottom right, #34d399, #22c55e 50%, #10b981);
  box-shadow: 0 4px 16px rgba(16,185,129,.25);
  transition: filter .2s ease, transform .15s ease, opacity .2s ease;
}
.auth-submit:hover { filter: brightness(1.1); }
.auth-submit:active { transform: scale(.97); }
.auth-submit:disabled { opacity: .7; cursor: default; }
.auth-note {
  display: none;
  margin-top: 16px; padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(16,185,129,.35);
  background: rgba(16,185,129,.1);
  color: var(--emerald-light);
}
.auth-note.show { display: block; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--txt-60); }
.auth-alt a { color: var(--emerald-light); font-weight: 500; transition: color .2s ease; }
.auth-alt a:hover { color: #fff; }
