/* ============================================================
   EVO EMPIRE SR — Premium look (Brand Kit v1.1)
   Charcoal #141414 · Champagne #D8B56A · Ivory #F5EAD2 · Emerald #0C7055
   Display: Cinzel · Body: Inter (Arial fallback)
   ============================================================ */

:root {
  --charcoal: #141414;
  --charcoal-2: #1c1b17;
  --charcoal-3: #242219;
  --champagne: #d8b56a;
  --champagne-soft: #e9d5a3;
  --gold-deep: #a5813e;
  --ivory: #f5ead2;
  --emerald: #0c7055;
  --emerald-bright: #12996f;
  --line: rgba(216, 181, 106, 0.28);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", "DejaVu Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--champagne); color: var(--charcoal); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }

/* --- gold text treatment --- */
.gold-text, .hero h1 {
  background: linear-gradient(120deg, var(--champagne-soft) 0%, var(--champagne) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- announcement ---------- */
.announce {
  background: linear-gradient(90deg, #0a5a45, var(--emerald), #0a5a45);
  color: #fff;
  text-align: center;
  padding: 0.45rem 5vw;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 5vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.brand-name em { font-style: normal; color: var(--emerald-bright); }
.site-head nav { display: flex; align-items: center; }
.site-head nav a {
  color: var(--ivory);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.site-head nav a:hover, .site-head nav a:focus-visible { border-bottom-color: var(--champagne); color: var(--champagne-soft); }
.cart-count {
  display: inline-block;
  min-width: 1.35em;
  text-align: center;
  background: var(--emerald);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.08em 0.4em;
  margin-left: 0.3rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 4.5rem 5vw 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}
.hero-glow {
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(216, 181, 106, 0.22) 0%, rgba(216, 181, 106, 0.07) 45%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; animation: fadeUp 0.7s ease both; }
.hero-kicker {
  color: var(--emerald-bright);
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
}
.hero-sub { max-width: 31rem; margin: 0 0 1.75rem; opacity: 0.92; font-size: 1.02rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-logo-wrap { position: relative; flex-shrink: 0; animation: fadeUp 0.7s 0.15s ease both; }
.hero-logo {
  width: min(310px, 38vw);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(216, 181, 106, 0.28), 0 20px 50px rgba(0, 0, 0, 0.55);
  display: block;
  transition: transform 0.4s ease;
}
.hero-logo-wrap:hover .hero-logo { transform: scale(1.02) rotate(-0.5deg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-logo-wrap { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  padding: 0.9rem 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--charcoal-2);
  font-size: 0.88rem;
  color: var(--champagne-soft);
  letter-spacing: 0.02em;
}

/* ---------- sections ---------- */
.section-head { text-align: center; margin: 3rem 0 1.75rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--champagne);
  margin: 0 0 0.4rem;
  position: relative;
  display: inline-block;
  padding: 0 1.2rem;
}
.section-head h2::before, .section-head h2::after {
  content: "";
  position: absolute;
  top: 55%;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne));
}
.section-head h2::before { right: 100%; }
.section-head h2::after { left: 100%; transform: scaleX(-1); }
.section-head p { margin: 0; opacity: 0.85; font-size: 0.95rem; }

/* ---------- catalog ---------- */
.catalog { padding: 0 5vw 3.5rem; max-width: 1200px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; justify-content: center; }
.chip {
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 1rem;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.chip.on, .chip:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: linear-gradient(170deg, var(--charcoal-3), var(--charcoal-2) 55%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 181, 106, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(216, 181, 106, 0.12);
}
.card > img, .card-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.35s ease; }
.card:hover > img, .card:hover .card-link img { transform: scale(1.04); }
.card-link { overflow: hidden; }
.card-noimg {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(216,181,106,0.14), transparent 60%), linear-gradient(160deg, #26231b, var(--charcoal-2));
}
.card-noimg img { width: 44%; opacity: 0.92; border-radius: 50%; border: 1px solid var(--line); }
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card h3 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.meta { margin: 0; color: var(--champagne); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.desc { margin: 0; font-size: 0.87rem; opacity: 0.82; }
.price { margin: 0.35rem 0 0.5rem; color: var(--champagne-soft); font-size: 1.08rem; font-weight: 600; }
.card-actions { margin-top: auto; display: flex; align-items: center; gap: 0.6rem; }
.added { color: var(--emerald-bright); font-size: 0.9rem; }

/* ---------- how it works ---------- */
.how { padding: 0 5vw 4.5rem; max-width: 1100px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.how-step {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  text-align: center;
}
.how-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.how-step h3 { margin: 0.2rem 0 0.4rem; font-size: 1.02rem; color: var(--champagne-soft); }
.how-step p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--emerald-bright); transform: translateY(-1px); }
.btn.gold {
  background: linear-gradient(120deg, var(--champagne-soft), var(--champagne) 60%, var(--gold-deep));
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(216, 181, 106, 0.25);
}
.btn.gold:hover, .btn.gold:focus-visible { box-shadow: 0 6px 24px rgba(216, 181, 106, 0.4); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--champagne-soft); }
.btn.ghost:hover { border-color: var(--champagne); background: rgba(216, 181, 106, 0.08); }
.btn.small { padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.btn.danger { background: #7a2b23; }
.btn.danger:hover { background: #96362c; }

.empty { opacity: 0.85; text-align: center; padding: 1.5rem 0; }
.empty a { color: var(--champagne); }

/* ---------- about / cart / forms ---------- */
.about { padding: 2.75rem 5vw 4rem; max-width: 780px; margin: 0 auto; }
.about.wide { max-width: 1100px; }
.about h1 { color: var(--champagne); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: 2.5rem; }
.about h1:first-child { margin-top: 0; }
.about h2 { color: var(--champagne); font-size: 1.2rem; }
.about a { color: var(--champagne); }

.admin-form { display: flex; flex-direction: column; gap: 0.8rem; margin: 1rem 0 2rem; max-width: 480px; }
.admin-form label { display: flex; flex-direction: column; gap: 0.28rem; font-size: 0.92rem; color: var(--champagne-soft); }
.admin-form input, .admin-form select, .admin-form textarea {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ivory);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none;
  border-color: var(--champagne);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th {
  text-align: left;
  padding: 0.55rem 0.6rem;
  color: var(--champagne);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--champagne);
}
.admin-table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid rgba(216,181,106,0.16); vertical-align: top; }
.admin-table a { color: var(--champagne); }
.inline { display: inline-block; margin-right: 0.35rem; }
tr.muted { opacity: 0.5; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.25rem 5vw 2rem;
  background: var(--charcoal-2);
  font-size: 0.92rem;
}
.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}
.foot-brand p { margin: 0.4rem 0 0; opacity: 0.9; }
.foot-logo { width: 54px; border-radius: 50%; border: 1px solid var(--line); }
.foot-links p { margin: 0.3rem 0; }
.foot-links a { color: var(--ivory); text-decoration: none; opacity: 0.85; }
.foot-links a:hover { color: var(--champagne); opacity: 1; }
.foot-small {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.76rem;
  opacity: 0.6;
  border-top: 1px solid rgba(216,181,106,0.14);
  padding-top: 1rem;
}

/* ---------- announcement + admin dashboard ---------- */
.admin-body { background: var(--charcoal); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 225px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--charcoal-2);
}
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a.on, .admin-nav a:hover { background: var(--charcoal-3); color: var(--champagne); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; }
.admin-side-foot a { color: var(--champagne); text-decoration: none; }
.admin-main { flex: 1; padding: 2rem 3vw 4rem; min-width: 0; }
.admin-main h1 { color: var(--champagne); font-size: 1.45rem; margin: 2rem 0 1rem; }
.admin-main h1:first-child { margin-top: 0; }
.admin-main h2 { color: var(--champagne); font-size: 1.1rem; }

.flash {
  background: var(--emerald);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.75rem; }
.stat {
  background: linear-gradient(170deg, var(--charcoal-3), var(--charcoal-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 155px;
}
.stat-n { color: var(--champagne); font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.stat span:last-child { font-size: 0.83rem; opacity: 0.85; }

.thumb { width: 46px; height: 34px; object-fit: cover; border-radius: 4px; }
.wide-form { max-width: 640px; }

.login-box {
  max-width: 360px;
  margin: 10vh auto;
  padding: 2rem 5vw;
  text-align: center;
}
.login-logo { width: 116px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 46px rgba(216,181,106,0.25); margin-bottom: 0.6rem; }
.login-box h1 { color: var(--champagne); font-size: 1.35rem; }
.login-box .admin-form { text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero { flex-direction: column-reverse; padding-top: 2.25rem; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-logo { width: min(240px, 62vw); }
  .hero-glow { right: 50%; transform: translate(50%, -55%); width: 340px; height: 340px; }
  .site-head { flex-wrap: wrap; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { margin-top: 0; flex-direction: row; align-items: center; }
}

/* live exchange rate badge */
.rate-badge {
  color: var(--champagne);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  background: rgba(216, 181, 106, 0.08);
}

/* ===== product detail page + card database ===== */
.card-link, .card-title-link { text-decoration: none; color: inherit; display: block; }
.card-title-link:hover { color: var(--champagne-soft); }

.detail {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding: 3rem 5vw 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.detail-media { flex: 0 1 460px; }
.detail-media img, .detail-media .card-noimg {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5);
}
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { color: var(--champagne); font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0.3rem 0 0.8rem; }
.price.big { font-size: 1.45rem; }

.tcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.7rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tcg-card {
  margin: 0;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.tcg-card:hover { transform: translateY(-4px); border-color: rgba(216,181,106,0.55); }
.tcg-card img { width: 100%; border-radius: 6px; display: block; margin-bottom: 0.5rem; }
.tcg-card figcaption { font-size: 0.72rem; line-height: 1.4; }
.tcg-card figcaption span { opacity: 0.75; font-size: 0.66rem; }

/* admin card picker */
.tcg-picker, .tcg-chosen { display: flex; flex-direction: column; gap: 0.5rem; max-width: 480px; margin: 0.25rem 0 1rem; }
.tcg-pick {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}
.tcg-pick img { width: 44px; border-radius: 4px; }
.tcg-pick span { flex: 1; line-height: 1.35; }
.tcg-pick small { opacity: 0.7; }

@media (max-width: 760px) {
  .detail { flex-direction: column; gap: 1.5rem; }
  .detail-media { flex-basis: auto; width: 100%; }
}

/* ===== card price guide (Collectr-style) ===== */
.px-block {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(216,181,106,0.18);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.px-row { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; font-size: 0.78rem; flex-wrap: wrap; }
.px-var { opacity: 0.65; }
.px-val { color: var(--champagne-soft); font-weight: 600; }
.px-up { color: #35c98e; font-size: 0.72rem; }
.px-down { color: #e06a5a; font-size: 0.72rem; }

/* ===== v10 professional polish ===== */
.search-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.search-form input[type="search"] {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: min(340px, 70vw);
  transition: border-color 0.2s;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--champagne); }

.card { position: relative; }
.new-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  background: linear-gradient(120deg, var(--champagne-soft), var(--champagne));
  color: var(--charcoal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.15s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,0.4); }

/* ===== hero background video ===== */
.hero { overflow: hidden; }
.hero.has-video { padding-top: 5.5rem; padding-bottom: 4.5rem; }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.72) 45%, rgba(20,20,20,0.45) 100%),
    linear-gradient(0deg, rgba(20,20,20,0.9) 0%, transparent 30%, transparent 75%, rgba(20,20,20,0.85) 100%);
}
.hero.has-video .hero-text,
.hero.has-video .hero-logo-wrap { position: relative; z-index: 1; }
.hero.has-video .hero-sub { opacity: 1; }
@media (max-width: 760px) {
  .hero-video-shade {
    background:
      linear-gradient(0deg, rgba(20,20,20,0.94) 0%, rgba(20,20,20,0.68) 50%, rgba(20,20,20,0.9) 100%);
  }
}

/* ===== glow removal when video plays ===== */
.hero.has-video .hero-glow { display: none; }

/* ===== admin: organized panels ===== */
.panel {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem 1.4rem;
  margin: 0 0 1.4rem;
}
fieldset.panel { max-width: 640px; display: flex; flex-direction: column; gap: 0.8rem; }
fieldset.panel legend {
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 1.02rem;
  padding: 0 0.6rem;
  letter-spacing: 0.04em;
}
.admin-form.panel { padding-top: 1.4rem; }

.picker-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: rgba(216,181,106,0.04);
}
.picker-details[open] { padding-bottom: 0.9rem; }
.picker-details summary {
  cursor: pointer;
  color: var(--champagne-soft);
  font-size: 0.92rem;
  user-select: none;
}
.picker-details summary:hover { color: var(--champagne); }
.picker-details label { margin-top: 0.7rem; }

.admin-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.admin-main h1 { border-bottom: 1px solid var(--line); padding-bottom: 0.45rem; }

/* ===== stock indicators ===== */
.low-stock { margin: 0 0 0.4rem; color: #e0a15a; font-size: 0.85rem; font-weight: 600; }
.sold-badge { background: linear-gradient(120deg, #8a3a30, #7a2b23); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ===== digital pack opener ===== */
.rip-page { text-align: center; }
.rip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
}
.rip-card { perspective: 900px; cursor: pointer; }
.rip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 63 / 88;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.2,.7,.3,1.1);
}
.rip-card.flipped .rip-inner { transform: rotateY(180deg); }
.rip-back, .rip-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}
.rip-back {
  background:
    radial-gradient(circle at 50% 42%, rgba(216,181,106,0.25), transparent 60%),
    linear-gradient(160deg, #26231b, var(--charcoal-2));
  border: 2px solid var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.rip-back img { width: 55%; border-radius: 50%; opacity: 0.95; }
.rip-card:hover .rip-back { box-shadow: 0 8px 26px rgba(216,181,106,0.3); }
.rip-front {
  transform: rotateY(180deg);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.rip-front img { width: 100%; flex: 1; object-fit: contain; background: #0d0d0d; }
.rip-front figcaption { font-size: 0.72rem; padding: 0.35rem 0.3rem; line-height: 1.35; }
.rip-front figcaption span { opacity: 0.75; }
.rip-result { margin-top: 1.5rem; }

/* ===== real pack-ripping experience ===== */
#pack-stage { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.pack-wrap {
  width: min(250px, 62vw);
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.55));
  transition: transform 0.2s;
}
.pack-wrap:hover { transform: scale(1.03) rotate(-0.5deg); }
.pack-top {
  height: 34px;
  background: linear-gradient(120deg, var(--gold-deep), var(--champagne) 45%, var(--champagne-soft) 55%, var(--gold-deep));
  border-radius: 10px 10px 0 0;
  border-bottom: 2px dashed rgba(20,20,20,0.65);
  transition: transform 0.55s ease, opacity 0.5s ease;
}
.pack-body {
  aspect-ratio: 63 / 88;
  background:
    radial-gradient(circle at 50% 36%, rgba(216,181,106,0.3), transparent 55%),
    linear-gradient(155deg, #2b2820, var(--charcoal-2) 60%, #211f18);
  border: 2px solid var(--champagne);
  border-top: none;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  transition: transform 0.6s ease, opacity 0.55s ease;
}
.pack-body img { width: 52%; border-radius: 50%; }
.pack-name { font-family: var(--font-display); color: var(--champagne); font-size: 1.05rem; text-align: center; letter-spacing: 0.05em; }
.pack-hint { font-size: 0.8rem; opacity: 0.7; }
.pack-wrap.torn { cursor: default; }
.pack-wrap.torn .pack-top { transform: translateY(-46px) rotate(-9deg); opacity: 0; }
.pack-wrap.torn .pack-body { transform: translateY(26px) scale(0.96); opacity: 0; }

#card-stage { text-align: center; }
.rip-progress { font-size: 0.9rem; opacity: 0.8; margin: 0 0 1rem; }
.stack-area {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 63 / 88;
  margin: 0 auto 1.25rem;
}
.stack-card {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  cursor: pointer;
  transform: rotate(var(--j, 0deg)) translateY(calc(var(--d, 0) * -1.5px));
  transition: transform 0.42s ease, opacity 0.42s ease;
}
.stack-card .rip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1.08);
}
.stack-card.flipped .rip-inner { transform: rotateY(180deg); }
.stack-card.fly { transform: translateX(120%) rotate(14deg); opacity: 0; }
.stack-card .rip-front figcaption { font-size: 0.8rem; padding: 0.4rem; }
.stack-card.top:not(.flipped):hover .rip-inner { transform: rotateY(12deg); }

.opened-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 1000px;
  margin: 0 auto 1.25rem;
}
.opened-row img {
  width: min(150px, 30vw);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  animation: popIn 0.3s ease;
  transition: transform 0.2s;
}
.opened-row img:hover { transform: scale(1.6); z-index: 5; position: relative; box-shadow: 0 12px 30px rgba(0,0,0,0.6); }
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== irresistible pack-opener button ===== */
.rip-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gold-deep), var(--champagne) 50%, var(--gold-deep));
  color: var(--charcoal);
  font-weight: 700;
  border: 1px solid var(--champagne-soft);
  animation: ripPulse 2.2s ease-in-out infinite;
}
.rip-cta::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: rotate(18deg);
  animation: ripShine 2.8s ease-in-out infinite;
}
.rip-cta-icon { display: inline-block; animation: ripWiggle 2.2s ease-in-out infinite; }
.rip-cta:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(216, 181, 106, 0.6);
}
@keyframes ripPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 181, 106, 0.55), 0 4px 18px rgba(216, 181, 106, 0.25); }
  50% { box-shadow: 0 0 0 9px rgba(216, 181, 106, 0), 0 4px 26px rgba(216, 181, 106, 0.45); }
}
@keyframes ripShine {
  0%, 55% { left: -80%; }
  85%, 100% { left: 160%; }
}
@keyframes ripWiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-12deg) scale(1.15); }
  92% { transform: rotate(10deg) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .rip-cta, .rip-cta::after, .rip-cta-icon { animation: none; }
}

/* ===== holographic final card ===== */
.stack-card.holo .rip-back {
  border-color: transparent;
  background:
    radial-gradient(circle at 50% 42%, rgba(216,181,106,0.35), transparent 60%),
    linear-gradient(160deg, #26231b, var(--charcoal-2));
  animation: holoBackPulse 1.6s ease-in-out infinite;
}
@keyframes holoBackPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(216,181,106,0.4), inset 0 0 0 2px var(--champagne); }
  50% { box-shadow: 0 0 34px rgba(216,181,106,0.85), 0 0 60px rgba(18,153,111,0.35), inset 0 0 0 2px var(--champagne-soft); }
}
.holo-label {
  position: absolute;
  top: -1.9rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--champagne);
  text-shadow: 0 0 12px rgba(216,181,106,0.8);
  animation: holoLabelBlink 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holoLabelBlink { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.stack-card.holo .rip-front { overflow: hidden; }
.stack-card.holo .rip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 20%,
    rgba(255, 80, 80, 0.16) 32%,
    rgba(255, 220, 90, 0.20) 40%,
    rgba(90, 255, 140, 0.16) 48%,
    rgba(90, 200, 255, 0.20) 56%,
    rgba(200, 110, 255, 0.16) 64%,
    transparent 78%);
  background-size: 300% 300%;
  mix-blend-mode: screen;
  animation: holoSheen 2.6s linear infinite;
  pointer-events: none;
}
@keyframes holoSheen {
  0% { background-position: 120% 120%; }
  100% { background-position: -60% -60%; }
}
.stack-card.holo.flipped .rip-inner { box-shadow: 0 0 44px rgba(216,181,106,0.5); border-radius: 10px; }

.daily-link { color: var(--champagne-soft) !important; }

@media (prefers-reduced-motion: reduce) {
  .stack-card.holo .rip-back, .holo-label, .stack-card.holo .rip-front::after { animation: none; }
}

/* ===== user profile ===== */
.profile-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.profile-head h1 { margin: 0; }
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne-soft), var(--gold-deep));
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(216,181,106,0.35);
  flex-shrink: 0;
}
.profile-logout { margin-left: auto; }

.pull-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.pull-day {
  position: relative;
  display: flex;
  gap: 0.9rem;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  align-items: center;
}
.pull-day img { width: 84px; border-radius: 6px; flex-shrink: 0; }
.pull-info { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; min-width: 0; }
.pull-info span { opacity: 0.85; font-size: 0.82rem; }
.pull-day.week-best {
  border-color: var(--champagne);
  box-shadow: 0 0 22px rgba(216,181,106,0.28);
}
.wb-badge {
  position: absolute;
  top: -0.65rem;
  left: 0.9rem;
  background: linear-gradient(120deg, var(--champagne-soft), var(--champagne));
  color: var(--charcoal);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* admin winner row */
tr.winner-row td { background: rgba(216,181,106,0.08); }
tr.winner-row .px-val { font-size: 1.05rem; }

/* ===== profile v2: full pull history + best card showcases ===== */
.best-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.best-card {
  flex: 1;
  min-width: 210px;
  max-width: 290px;
  background: linear-gradient(170deg, var(--charcoal-3), var(--charcoal-2));
  border: 1px solid var(--champagne);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 26px rgba(216,181,106,0.16);
}
.best-title {
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.best-card img {
  width: min(170px, 55vw);
  border-radius: 8px;
  margin: 0.4rem 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}
.big-val { font-size: 1.15rem; }

.pull-day-block {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1rem;
}
.pull-day-block.week-best {
  border-color: var(--champagne);
  box-shadow: 0 0 22px rgba(216,181,106,0.25);
}
.pull-day-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.pull-day-head strong { color: var(--champagne-soft); }
.pull-day-head span { font-size: 0.83rem; opacity: 0.8; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 0.55rem;
}
.mini-card { margin: 0; text-align: center; }
.mini-card img {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--line);
  transition: transform 0.18s;
}
.mini-card img:hover { transform: scale(1.9); position: relative; z-index: 6; box-shadow: 0 10px 26px rgba(0,0,0,0.6); }
.mini-card figcaption { font-size: 0.62rem; line-height: 1.3; margin-top: 0.25rem; opacity: 0.85; }
.mini-card figcaption span { color: var(--champagne-soft); }
.mini-card.mini-best img { border-color: var(--champagne); box-shadow: 0 0 12px rgba(216,181,106,0.5); }

/* Google sign-in button */
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  max-width: 480px;
}
.google-btn:hover { background: #f1f1f1; transform: translateY(-1px); }

/* ============================================================
   MOBILE POLISH — most customers shop on their phone
   ============================================================ */

/* tables scroll sideways instead of breaking the page */
table.admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  /* header: compact, nav scrolls if needed */
  .site-head { padding: 0.55rem 4vw; gap: 0.5rem; flex-wrap: nowrap; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 0.98rem; letter-spacing: 0.05em; }
  .site-head nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 60vw;
  }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { margin-left: 0.9rem; font-size: 0.85rem; }

  /* hero tighter */
  .hero { padding: 1.9rem 5vw 2rem; gap: 1.25rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta .btn { padding: 0.65rem 1.2rem; }
  .trust-strip { gap: 0.4rem 1.4rem; font-size: 0.8rem; padding: 0.7rem 4vw; }

  /* catalog: two columns feels right on phones */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .card-body { padding: 0.7rem 0.75rem 0.85rem; }
  .card h3 { font-size: 0.92rem; }
  .price { font-size: 0.98rem; }
  .btn { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
  .section-head { margin: 2.2rem 0 1.2rem; }

  /* set gallery: 3 small cards per row */
  .tcg-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  /* product detail */
  .detail { padding: 1.75rem 5vw 1rem; gap: 1.25rem; }
  .price.big { font-size: 1.25rem; }

  /* profile */
  .best-row { flex-direction: column; }
  .best-card { max-width: none; }
  .stat-row { gap: 0.6rem; }
  .stat { min-width: calc(50% - 0.6rem); padding: 0.85rem 1rem; flex: 1; }
  .stat-n { font-size: 1.3rem; }
  .mini-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .profile-avatar { width: 52px; height: 52px; font-size: 1.4rem; }

  /* pack opener */
  .stack-area { width: min(240px, 78vw); }
  .opened-row img { width: min(104px, 30vw); }
  .opened-row img:hover { transform: none; }

  /* footer + forms */
  .foot-cols { gap: 1.25rem 2.5rem; }
  .about { padding: 1.75rem 5vw 3rem; }
  .admin-form { max-width: none; }
  .search-form input[type="search"] { width: min(240px, 62vw); }

  /* floating WhatsApp a bit smaller, clear of thumbs */
  .wa-float { width: 48px; height: 48px; right: 0.85rem; bottom: 0.85rem; }
}

/* comfortable tap targets everywhere on touch screens */
@media (pointer: coarse) {
  .btn.small { padding: 0.42rem 0.85rem; }
  .chip { padding: 0.42rem 1.05rem; }
  .site-head nav a { padding-bottom: 6px; }
}
