/* ============================================================
   LUCKY CAT COINS — Main Stylesheet
   Stack: Cloudflare Pages | Theme: Dark Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #000000;
  --bg-2:       #0d0d0d;
  --bg-3:       #161616;
  --card:       #1a1a1a;
  --card-hover: #202020;
  --border:     #272727;
  --border-2:   #353535;

  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #8b6914;
  --gold-pale:  #f0e4b0;
  --gold-glow:  rgba(201, 168, 76, 0.25);

  --red:        #c41e3a;
  --red-light:  #e82347;

  --text:       #f0f0f0;
  --text-2:     #aaaaaa;
  --text-3:     #666666;

  --nav-h:      72px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold:0 0 24px rgba(201,168,76,0.2);

  --t:          0.25s ease;

  /* Coin type accent colors */
  --c-gold:         #c9a84c;
  --c-silver:       #a8b0b8;
  --c-platinum:     #7090a8;
  --c-copper:       #b87333;
  --c-commemorative:#9b59b6;
  --c-ancient:      #a08040;
  --c-world:        #27ae60;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-light); }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.grid { display: grid; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-2); }
.text-center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.nav__logo svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--t);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t);
}

.nav__links a:hover,
.nav__links a.active { color: var(--gold); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 11px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #0a0a0a;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  color: #0a0a0a;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid var(--red);
  color: var(--red-light);
}
.btn-danger:hover { background: rgba(196, 30, 58, 0.3); }

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Section Titles ────────────────────────────────────────── */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(196,30,58,0.04) 0%, transparent 60%),
    var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.08;
}
.hero__title span {
  background: linear-gradient(90deg,
    var(--gold-dark)  0%,
    var(--gold-pale)  35%,
    var(--gold-light) 50%,
    var(--gold-pale)  65%,
    var(--gold-dark)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  animation: title-shimmer 5s linear infinite;
}

@keyframes title-shimmer {
  from { background-position: 100% center; }
  to   { background-position: -100% center; }
}

.hero__desc {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ── Typographic hero mark — coin-face medallion ─────────────── */
.hero__type-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 460px;
}

/* Radial inner glow — coin-face depth */
.hero__coin-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(201, 168, 76, 0.13) 0%,
    rgba(201, 168, 76, 0.05) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__type-composition {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* "LUCKY CAT" — large gold shimmer wordmark */
.hero__type-en {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  background: linear-gradient(
    120deg,
    var(--gold-dark)  0%,
    var(--gold-pale)  22%,
    var(--gold-light) 40%,
    #fffbe8           50%,
    var(--gold-light) 60%,
    var(--gold-pale)  78%,
    var(--gold-dark)  100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 7s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.35));
}

/* Decorative rule */
.hero__type-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  margin: 2px 0;
}

.hero__type-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.6), transparent);
}

.hero__type-rule em {
  font-style: normal;
  font-size: 0.45rem;
  color: var(--gold-light);
  opacity: 0.8;
  letter-spacing: 0;
}

/* "COINS" — second tier, wide tracked */
.hero__type-coins {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  color: var(--gold);
  opacity: 0.88;
  line-height: 1;
}

/* Sub-label */
.hero__type-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.75;
  margin-top: 4px;
}

/* ── Concentric rings ────────────────────────────────────────── */
.hero__neko-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -1;
}

.hero__neko-ring {
  position: absolute;
  border-radius: 50%;
}

/* Inner ring — tight halo */
.hero__neko-ring--1 {
  width: 248px;
  height: 248px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow:
    0 0 12px rgba(201, 168, 76, 0.10),
    inset 0 0 8px rgba(201, 168, 76, 0.06);
  animation: ring-pulse 5s ease-in-out infinite;
}

/* Mid ring */
.hero__neko-ring--2 {
  width: 336px;
  height: 336px;
  border: 1px solid rgba(201, 168, 76, 0.16);
  animation: ring-pulse 5s ease-in-out infinite 1.65s;
}

/* Outer pulse ring */
.hero__neko-ring--3 {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(201, 168, 76, 0.09);
  animation: ring-pulse 5s ease-in-out infinite 3.3s;
}

/* Outermost — slowly rotating coin-edge ring */
.hero__neko-ring--spin {
  width: 450px;
  height: 450px;
  border: 1.5px dashed rgba(201, 168, 76, 0.18);
  animation: ring-spin 40s linear infinite;
}

@keyframes ring-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat-num {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Featured Section ──────────────────────────────────────── */
.featured {
  padding: 96px 0;
  background: var(--bg-2);
}

/* ── Coin Card (MTG-inspired) ──────────────────────────────── */
.coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.coin-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}

.coin-card:hover {
  /* 3D tilt is handled by animations.js — just update border and shadow */
  border-color: var(--card-accent, var(--gold-dark));
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(201,168,76,0.12);
}

/* Type-specific card border accent */
.coin-card[data-type="Gold"]         { --card-accent: var(--c-gold); }
.coin-card[data-type="Silver"]       { --card-accent: var(--c-silver); }
.coin-card[data-type="Platinum"]     { --card-accent: var(--c-platinum); }
.coin-card[data-type="Copper"]       { --card-accent: var(--c-copper); }
.coin-card[data-type="Commemorative"]{ --card-accent: var(--c-commemorative); }
.coin-card[data-type="Ancient"]      { --card-accent: var(--c-ancient); }
.coin-card[data-type="World"]        { --card-accent: var(--c-world); }

.coin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--gold));
}

/* Card header: name + year */
.coin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px 10px;
  background: rgba(0,0,0,0.3);
  gap: 8px;
}

.coin-card__name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.coin-card__year {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--card-accent, var(--gold));
  flex-shrink: 0;
  font-weight: 600;
}

/* Card art area */
.coin-card__art {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #181818 0%, #0e0e0e 55%, #080808 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle type-tinted glow layer behind the coin illustration */
.coin-card__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--art-glow, rgba(201,168,76,0.10)) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Keep coin SVG/img above the glow layer */
.coin-card__art > svg,
.coin-card__art > img { position: relative; z-index: 1; }

/* Ribbon stays on top */
.coin-card__ribbon { z-index: 2; }

/* Type-specific art area glow colours */
.coin-card[data-type="Gold"]          { --art-glow: rgba(201,168,76,0.14); }
.coin-card[data-type="Silver"]        { --art-glow: rgba(168,176,184,0.11); }
.coin-card[data-type="Platinum"]      { --art-glow: rgba(112,144,168,0.11); }
.coin-card[data-type="Copper"]        { --art-glow: rgba(184,115,51,0.13); }
.coin-card[data-type="Commemorative"] { --art-glow: rgba(155,89,182,0.13); }
.coin-card[data-type="Ancient"]       { --art-glow: rgba(160,128,64,0.13); }
.coin-card[data-type="World"]         { --art-glow: rgba(39,174,96,0.12); }

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

/* Featured ribbon */
.coin-card__ribbon {
  position: absolute;
  top: 10px;
  right: -28px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 36px;
  transform: rotate(45deg);
}

/* Type line */
.coin-card__type-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.coin-card__type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-accent, var(--gold));
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.coin-card__grade {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-2);
}

/* Card text box */
.coin-card__desc {
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.coin-card__footer {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coin-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coin-card__price {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.coin-card__stock {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stock-in    { color: #4ade80; }
.stock-low   { color: #fbbf24; }
.stock-out   { color: var(--text-3); }

/* ── Features Section ──────────────────────────────────────── */
.features { padding: 96px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--t);
}

.feature-card:hover {
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.feature-card__title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Testimonial / Quote Banner ─────────────────────────────── */
.quote-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(196,30,58,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}

.quote-banner__text {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.quote-banner__text span { color: var(--gold); }

/* ── Coins Page ─────────────────────────────────────────────── */
.page-header {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.page-header__sub { color: var(--text-2); }

.catalog {
  padding: 48px 0 96px;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filters sidebar */
.filters {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.filters__title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group { margin-bottom: 24px; }

.filter-group__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
  display: block;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t);
}
.filter-check:hover { color: var(--text); }

.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.filter-check__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
}
.price-range input:focus { outline: none; border-color: var(--gold); }

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 5px 0;
}

.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--border-2);
  border-radius: 100px;
  position: relative;
  transition: background var(--t);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all var(--t);
}
input:checked ~ .toggle-switch { background: var(--gold); }
input:checked ~ .toggle-switch::after { left: 21px; background: #0a0a0a; }

/* Catalog main */
.catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 14px;
  flex: 1;
  max-width: 380px;
  transition: border-color var(--t);
}
.search-box:focus-within { border-color: var(--gold); }
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.search-box input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  padding: 10px 0;
  width: 100%;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--text-3); }

.sort-select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color var(--t);
}
.sort-select:focus { outline: none; border-color: var(--gold); }

.results-count {
  font-size: 0.875rem;
  color: var(--text-3);
  white-space: nowrap;
}

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

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 700; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--card-hover) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── About Page ─────────────────────────────────────────────── */
.about-hero {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(201,168,76,0.04) 0%, transparent 60%),
    var(--bg-2);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero__title { font-family: 'Cinzel', serif; font-size: 2.8rem; letter-spacing: 0.03em; color: var(--gold); margin-bottom: 20px; }
.about-hero__sub { font-size: 1.1rem; color: var(--text-2); max-width: 580px; margin: 0 auto; line-height: 1.75; }

.about-story {
  padding: 96px 0;
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story__text h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.about-story__text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-visual {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.about-coin-art {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe066, #c9a84c 45%, #8b6914 75%, #5a4010);
  box-shadow: 0 0 60px rgba(201,168,76,0.3);
  position: relative;
}

.about-coin-art::after {
  content: '招財貓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
}

.values { padding: 96px 0; background: var(--bg-2); }

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

.value-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.value-card__num {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.value-card__title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.value-card__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Admin ──────────────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(201,168,76,0.05) 0%, transparent 60%),
    var(--bg);
}

.admin-login-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.admin-login-card__logo { margin-bottom: 32px; }
.admin-login-card__logo svg { width: 48px; height: 48px; margin: 0 auto 12px; }
.admin-login-card__logo h1 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.admin-login-card__logo p {
  font-size: 0.85rem;
  color: var(--text-3);
}

.form-group { margin-bottom: 20px; text-align: left; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  transition: border-color var(--t);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-group input::placeholder { color: var(--text-3); }

.form-error {
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 20px;
  display: none;
}
.form-error.visible { display: block; }

/* Admin layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-sidebar__brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar__brand span {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
}

.admin-nav { padding: 16px 0; flex: 1; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all var(--t);
  border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.05);
  border-left-color: var(--gold);
}

.admin-sidebar__footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.admin-main {
  background: var(--bg);
  overflow-x: hidden;
}

.admin-topbar {
  height: 64px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar__title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text);
}

.admin-content { padding: 32px; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.stat-card__value {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-card__sub {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* Admin table */
.admin-table-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.admin-table-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-2);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table td.name-col {
  color: var(--text);
  font-weight: 500;
  max-width: 200px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--t);
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 1;
}

.modal__header h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--text); }

.modal__close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t);
}
.modal__close:hover { color: var(--text); }

.modal__body { padding: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.modal__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 260px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
}

.toast--success { border-left: 3px solid #4ade80; }
.toast--error   { border-left: 3px solid var(--red-light); }
.toast--info    { border-left: 3px solid var(--gold); }
.toast--warning { border-left: 3px solid #f59e0b; }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand { }

.footer__brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__layout { grid-template-columns: 240px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .hero__coin-stack { width: 260px; height: 260px; }
  .hero__coin--lg { width: 200px; height: 200px; }
  .hero__stats { gap: 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .about-story__grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .catalog__layout { grid-template-columns: 1fr; }
  .filters { position: static; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-content { padding: 20px 16px; }
  .admin-topbar { padding: 0 16px; }

  /* Sidebar collapses to a horizontal scrollable tab bar */
  .admin-sidebar {
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-sidebar__brand { display: none; }
  .admin-sidebar__footer { display: none; }
  .admin-nav {
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 0;
    flex: unset;
    white-space: nowrap;
  }
  .admin-nav a {
    padding: 14px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    gap: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .admin-nav a:hover,
  .admin-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile nav — opacity transition handled in animations.css via .nav__menu */
  .nav__links {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(9,9,9,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  /* Hide desktop underline indicator — replaced by left border on mobile */
  .nav__links a::after { display: none; }
  .nav__links a {
    display: block;
    padding: 13px 24px;
    border-left: 2px solid transparent;
    transition: color var(--t), border-color var(--t), background var(--t);
  }
  .nav__links a:hover,
  .nav__links a.active {
    border-left-color: var(--gold);
    background: rgba(201, 168, 76, 0.07);
  }
  .nav__menu-btn { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .page-btn { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 2.2rem; }
  .hero__type-mark { width: min(320px, 100%); min-height: 320px; height: auto; }
  .hero__stats { gap: 20px; margin-top: 32px; padding-top: 28px; }
  .hero__stat-num { font-size: 1.4rem; }
  .coins-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .catalog__toolbar { flex-direction: column; align-items: stretch; }
  .quote-banner { padding: 40px 0; }
  .quote-banner__text { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  /* Single-column coin cards — 172 px is too narrow for full card detail */
  .coins-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Stack modal footer buttons full-width */
  .modal-backdrop { padding: 12px; }
  .modal__footer { flex-direction: column-reverse; gap: 8px; }
  .modal__footer .btn { width: 100%; justify-content: center; }
}

/* ── Visual Polish Additions ───────────────────────────────── */

/* Frosted nav background on scroll (class toggled by JS or just always set) */
.nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Feature card hover lift */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 168, 76, 0.08);
}

/* Value card hover */
.value-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
}

/* Section title gold underline accent */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 1px;
  opacity: 0.7;
}

/* Hero eyebrow lines */
.hero__eyebrow span {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  vertical-align: middle;
}

/* Smoother btn interactions */
.btn {
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.3);
}

/* Coin card footer polish */
.coin-card__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Toast improvements */
.toast {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Selection colour */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--gold-pale);
}

/* Focus ring using gold */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* About hero improved layout — ensure enough clearance from sticky nav */
.about-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
}

/* About page neko container */
.about-neko {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Responsive hero mark sizing */
@media (max-width: 768px) {
  .hero__neko { width: 240px; height: 290px; }
  .hero__neko-ring--3 { display: none; }
  .hero__neko-ring--spin { display: none; }
  .hero__type-mark { width: min(340px, 100%); height: auto; min-height: 360px; }
  .hero__coin-glow { width: 240px; height: 240px; }
}

/* ── Coin card entrance animation ───────────────────────────── */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.card-enter {
  animation: card-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT / DARK THEME
   ══════════════════════════════════════════════════════════════ */

/* Light theme overrides — applied to <html data-theme="light"> */
/* White + orange brand colours */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-2:        #fff5ee;
  --bg-3:        #ffe8d4;
  --card:        #ffffff;
  --card-hover:  #fff8f2;
  --border:      #f0cfa8;
  --border-2:    #e8b07a;
  --text:        #180800;
  --text-2:      #4a2000;
  --text-3:      #9a5a30;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-gold: 0 0 24px rgba(224,95,0,0.18);
  /* Orange brand accent replaces gold */
  --gold:        #e05f00;
  --gold-light:  #f07828;
  --gold-dark:   #993f00;
  --gold-pale:   #ffe0c0;
  --gold-glow:   rgba(224,95,0,0.12);
}

/* Nav backdrop — light mode */
[data-theme="light"] .nav {
  background: rgba(255, 245, 238, 0.94);
  border-bottom-color: var(--border);
}

/* Mobile nav dropdown — light mode */
@media (max-width: 768px) {
  [data-theme="light"] .nav__links {
    background: rgba(255, 245, 238, 0.98);
    border-bottom-color: var(--border);
  }
}

/* Hero canvas — subdue in light mode */
[data-theme="light"] #hero-canvas { opacity: 0.07; }

/* Coin card footer separator */
[data-theme="light"] .coin-card__footer { border-top-color: rgba(0,0,0,0.06); }

/* Wishlist btn overlay — lighter bg */
[data-theme="light"] .wishlist-btn {
  background: rgba(255,255,255,0.75) !important;
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border-2); }

/* Text selection */
[data-theme="light"] ::selection {
  background: rgba(224, 95, 0, 0.20);
  color: var(--gold-dark);
}

/* Smooth theme transition on key properties */
html { transition: color 0.25s ease; }
body { transition: background-color 0.25s ease; }

/* ── Nav actions cluster ────────────────────────────────────── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Shared icon button — theme toggle and wishlist link */
.nav__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t), background var(--t);
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__icon-btn:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

/* Theme toggle — show sun in dark mode, moon in light mode */
.nav__theme-btn .icon-moon { display: none; }
.nav__theme-btn .icon-sun  { display: block; }
[data-theme="light"] .nav__theme-btn .icon-sun  { display: none; }
[data-theme="light"] .nav__theme-btn .icon-moon { display: block; }

/* Wishlist nav count badge */
.nav__wishlist-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  background: var(--red);
  color: #fff;
  border-radius: 100px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none;
}

/* Wishlist page */
.wishlist-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
}

.wishlist-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  margin-bottom: 12px;
}

.wishlist-hero__sub {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.wishlist-grid-section { padding: 0 0 96px; }

/* ── Status / Feedback Colours ──────────────────────────────── */
:root {
  --success:      #4ade80;
  --success-bg:   rgba(74, 222, 128, 0.10);
  --success-bdr:  rgba(74, 222, 128, 0.30);
  --error:        #f87171;
  --error-bg:     rgba(248, 113, 113, 0.08);
  --error-bdr:    rgba(248, 113, 113, 0.30);
  --warn:         #fbbf24;
}

/* Stock colours now use variables */
.stock-in  { color: var(--success); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--text-3); }

/* ── Page Eyebrow (centered rule + label) ───────────────────── */
.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.page-eyebrow::before,
.page-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ── Info Section (2-col content layout) ────────────────────── */
.info-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.info-section--plain {
  padding: 80px 0;
  background: var(--bg);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Info Icon ───────────────────────────────────────────────── */
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.06);
  transition: box-shadow var(--t), background var(--t);
}
.info-icon:hover {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.12);
}
.info-icon--sm { width: 40px; height: 40px; }
.info-icon--lg { width: 48px; height: 48px; }

/* ── Info Block (icon + copy) ───────────────────────────────── */
.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-blocks { display: flex; flex-direction: column; gap: 28px; }

.info-block__content { flex: 1; }

.info-block__title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}
.info-block__sub  { color: var(--text-2); font-size: 0.95rem; }
.info-block__note { color: var(--text-3); font-size: 0.8rem; margin-top: 4px; }

/* ── Callout Box ─────────────────────────────────────────────── */
.callout-box {
  padding: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.callout-box--gold {
  background: linear-gradient(135deg, rgba(201,168,76,0.07), rgba(201,168,76,0.03));
  border-color: rgba(201,168,76,0.2);
  border-left-width: 3px;
  border-left-color: rgba(201,168,76,0.55);
}
.callout-box__title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Check List ──────────────────────────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}
.check-list li svg { flex-shrink: 0; margin-top: 2px; }

/* ── Benefit Cards ───────────────────────────────────────────── */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.3);
}
.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.benefit-card__title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}
.benefit-card__desc { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; }

/* ── Buy List ────────────────────────────────────────────────── */
.buy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.buy-list__item { display: flex; gap: 12px; align-items: flex-start; }
.buy-list__item svg { flex-shrink: 0; margin-top: 3px; }
.buy-list__title { font-size: 0.9rem; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.buy-list__desc  { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; }

/* ── Steps List ──────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps-list__item { display: flex; gap: 12px; align-items: flex-start; }
.steps-list__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.steps-list__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  padding-top: 2px;
}

/* ── Form Card ───────────────────────────────────────────────── */
.form-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-card__title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.form-card__sub { color: var(--text-3); font-size: 0.875rem; margin-bottom: 28px; }

/* ── Form Feedback ───────────────────────────────────────────── */
.form-feedback {
  margin-top: 16px;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.6;
  display: none;
}
.form-feedback.visible { display: block; }
.form-feedback--success {
  background: var(--success-bg);
  border: 1px solid var(--success-bdr);
  color: var(--success);
}
.form-feedback--error {
  background: var(--error-bg);
  border: 1px solid var(--error-bdr);
  color: var(--error);
}

/* ── Content-page Section Headings ──────────────────────────── */
.content-h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 32px;
}
.content-h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Map Card ────────────────────────────────────────────────── */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color var(--t), box-shadow var(--t);
}
.map-card:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 6px 28px rgba(201,168,76,0.10);
}
.map-card__caption {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.map-card__name    { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.map-card__address { color: var(--text-3); font-size: 0.82rem; margin-top: 4px; }
.map-card__link {
  color: var(--gold);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--t);
}
.map-card__link:hover { color: var(--gold-light); }

/* ── Location Page ───────────────────────────────────────────── */
.location-section { padding: 80px 0; background: var(--bg); }

.location-block { margin-bottom: 48px; }
.location-block:last-child { margin-bottom: 0; }
.location-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.location-block__title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text);
}
.location-block__body { padding-left: 52px; }

.hours-table { border-collapse: collapse; width: 100%; max-width: 320px; }
.hours-table td {
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child { color: var(--text-2); }
.hours-table td:last-child  { color: var(--text); text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-note { color: var(--text-3); font-size: 0.82rem; margin-top: 14px; line-height: 1.6; }

.location-address { color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.location-access  { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }

/* ── Responsive additions ────────────────────────────────────── */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefit-cards { grid-template-columns: 1fr; gap: 16px; }
  .form-card { padding: 24px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — INNER PAGES (location, about, sell, contact)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Hero: tighten gap at tablet width */
  .hero__inner { gap: 40px; }
  /* About story: reduce the very large gap */
  .about-story__grid { gap: 56px; }
}

@media (max-width: 768px) {
  /* Inner page hero header */
  .about-hero { padding: calc(var(--nav-h) + 40px) 0 52px; }
  .about-hero__title { font-size: 2.2rem; }
  .about-hero__sub   { font-size: 1rem; }

  /* Location page content */
  .location-section  { padding: 52px 0; }
  .location-block    { margin-bottom: 36px; }
  /* Remove icon indent — on narrow screens content flows under icon naturally */
  .location-block__body { padding-left: 0; }
  /* Map responsive height */
  .map-card iframe { height: 260px; }

  /* About story section */
  .about-story { padding: 60px 0; }

  /* Info/sell sections */
  .info-section,
  .info-section--plain { padding: 52px 0; }

  /* Section-title size reduction */
  .section-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  /* Inner page hero */
  .about-hero { padding: calc(var(--nav-h) + 24px) 0 40px; }
  .about-hero__title { font-size: 1.75rem; }

  /* Location */
  .location-section { padding: 36px 0; }
  .map-card iframe  { height: 220px; }

  /* Hours table stays readable */
  .hours-table td { font-size: 0.88rem; }

  /* Section padding reductions */
  .about-story { padding: 44px 0; }
  .info-section,
  .info-section--plain { padding: 40px 0; }

  /* Tighten up page eyebrow lines on small screens */
  .page-eyebrow::before,
  .page-eyebrow::after { width: 24px; }
}
