*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root,
[data-theme="dark"] {
  /* Brand colors */
  --pokemon-color: #ff6b6b;
  --onepiece-color: #4ecdc4;
  --gold: #f5b94b;
  --gold-dim: rgba(245, 185, 75, 0.15);
  --gold-glow: rgba(245, 185, 75, 0.12);

  /* Misc */
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 180ms ease;
  --max-width: 1400px;

  /* Dark theme (default) */
  --bg: #0d0d0f;
  --bg-raised: #151518;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --gold-text: #f5c566;
  --text: #e8e8ec;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 185, 75, 0.3);
  --border-strong: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(13, 13, 15, 0.85);
  --modal-bg: #151518;
  --input-bg: rgba(255, 255, 255, 0.04);
  --placeholder-bg: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-raised: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-glass: rgba(0, 0, 0, 0.04);
  --gold-text: #b8860b;
  --text: #1a1a2e;
  --text-secondary: #5a5a6a;
  --text-muted: #8a8a9a;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(184, 134, 11, 0.35);
  --border-strong: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(245, 245, 247, 0.88);
  --modal-bg: #ffffff;
  --input-bg: rgba(0, 0, 0, 0.04);
  --placeholder-bg: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.06) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===================== NAV ===================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--gold-text);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.theme-icon {
  width: 16px;
  height: 16px;
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] .theme-icon.moon { display: none; }
[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="light"] .theme-icon.moon { display: block; }

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

/* ===================== HERO ===================== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  background: url('hero-bg.webp') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0.6) 0%,
    rgba(13, 13, 15, 0.78) 60%,
    var(--bg) 100%
  );
  z-index: 0;
}

[data-theme="light"] .hero::before {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 247, 0.55) 0%,
    rgba(245, 245, 247, 0.75) 60%,
    var(--bg) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 280px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero h1 .gold {
  color: var(--gold-text);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 540px;
  margin: 0.75rem auto 2rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0d0d0f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  box-shadow: 0 0 0 6px var(--gold-glow), 0 8px 24px rgba(245, 185, 75, 0.2);
  transform: translateY(-1px);
}

/* ===================== STATS BAR ===================== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

/* ===================== SECTIONS ===================== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* View toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.view-btn:first-child {
  border-right: 1px solid var(--border);
}

.view-btn:hover {
  color: var(--text);
  background: var(--bg-card);
}

.view-btn.active {
  color: var(--gold-text);
  background: var(--bg-card-hover);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* ===================== NEXT SHOW ===================== */
.show-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}

.show-flyer-link {
  display: block;
  width: 280px;
  flex-shrink: 0;
}

.show-flyer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.show-details {
  padding: 1.75rem 1.75rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.show-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.show-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.show-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.show-meta-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.show-meta-item strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.show-meta-item span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.show-address-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.show-address-link:hover {
  color: var(--gold-text);
}

.show-address-link:hover strong {
  color: var(--gold-text);
}

.show-address-link:hover span {
  color: var(--gold-text);
  text-decoration: underline;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 0.75rem;
  margin: 0.25rem 0;
}

.countdown-unit {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: 64px;
}

.countdown-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.show-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: #0d0d0f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
}

.show-link-btn:hover {
  box-shadow: 0 0 0 4px var(--gold-glow);
  transform: translateY(-1px);
}

/* ===================== TRUST ===================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.trust-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.trust-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.trust-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.trust-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================== SEARCH & FILTERS ===================== */
.controls {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 0.35rem;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--border-hover);
  color: var(--gold-text);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--gold-text);
  background: var(--gold-dim);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0f;
  font-weight: 700;
}

/* ===================== INVENTORY GRID ===================== */
.category {
  margin-bottom: 2.5rem;
}

.category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.item-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 4px var(--gold-glow);
  transform: translateY(-2px);
}

/* Featured items */
.item-card.featured {
  border-color: rgba(245, 185, 75, 0.2);
  background: rgba(245, 185, 75, 0.04);
}

.item-card.featured:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 6px var(--gold-glow);
}

/* Card image */
.item-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.item-card:hover .item-image {
  transform: scale(1.05);
}

.item-image-placeholder {
  background: var(--placeholder-bg);
}

/* PSA/BGS Slab frame around card image */
.slab-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.slab-label {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.55rem;
  padding: 0.3rem 0;
  flex-shrink: 0;
}

.slab-label .slab-score {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.slab-body {
  flex: 1;
  border-left: 3px solid;
  border-right: 3px solid;
  border-color: inherit;
}

.slab-bottom {
  height: 3px;
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
}

/* PSA slab - red/white */
.slab-frame.psa {
  border-color: rgba(200, 16, 46, 0.7);
}

.slab-frame.psa .slab-label {
  background: rgba(200, 16, 46, 0.92);
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.slab-frame.psa .slab-body {
  border-color: rgba(200, 16, 46, 0.5);
}

.slab-frame.psa .slab-bottom {
  background: rgba(200, 16, 46, 0.92);
}

/* BGS slab - gold frame, black text */
.slab-frame.bgs {
  border-color: rgba(218, 165, 32, 0.8);
}

.slab-frame.bgs .slab-label {
  background: rgba(218, 165, 32, 0.92);
  color: #1a1a1a;
  border-radius: 8px 8px 0 0;
  font-weight: 900;
}

.slab-frame.bgs .slab-body {
  border-color: rgba(218, 165, 32, 0.55);
}

.slab-frame.bgs .slab-bottom {
  background: rgba(218, 165, 32, 0.92);
}

.item-brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.item-brand-dot.large {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.item-brand-dot.pokemon { background: var(--pokemon-color); }
.item-brand-dot.one-piece { background: var(--onepiece-color); }

/* Card body (below image) */
.item-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--text);
  line-height: 1.3;
}

.item-qty {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--gold);
  color: #0d0d0f;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.item-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.item-tag {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.item-tag.featured-tag {
  background: var(--gold-dim);
  color: var(--gold-text);
  border: 1px solid rgba(245, 185, 75, 0.25);
}

.item-tag.exclusive-tag {
  background: rgba(78, 205, 196, 0.12);
  color: #4ecdc4;
  border: 1px solid rgba(78, 205, 196, 0.25);
}

.item-details {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.item-price {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.item-card.featured .item-price {
  color: var(--gold-text);
}

.price-each {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  font-size: 0.9rem;
}

/* ===================== LIST VIEW ===================== */
.item-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 0.4rem;
}

.list-view .item-card {
  flex-direction: row;
  align-items: center;
  border-radius: var(--radius);
}

.list-view .item-image-wrap {
  width: 60px;
  height: 80px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.list-view .item-image {
  border-radius: var(--radius) 0 0 var(--radius);
}

.list-view .item-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  flex: 1;
  min-width: 0;
}

.list-view .item-info {
  min-width: 0;
}

.list-view .item-name {
  font-size: 0.85rem;
}

.list-view .item-details {
  font-size: 0.72rem;
}

.list-view .item-tags {
  margin-top: 0.1rem;
}

.list-view .item-price {
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.list-view .slab-frame {
  display: none;
}

.list-view .item-card:hover {
  transform: none;
}

.list-view .item-image-placeholder {
  width: 60px;
  height: 80px;
}

.list-view .item-brand-dot.large {
  width: 14px;
  height: 14px;
}

/* ===================== PAYMENT ===================== */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 500px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 700px;
}

.cash-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.cash-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.cash-icon {
  width: 48px;
  height: 48px;
  color: var(--gold-text);
  margin-bottom: 0.25rem;
}

.cash-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.qr-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.qr-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--gold-glow);
  transform: translateY(-2px);
}

.qr-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================== CONNECT ===================== */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 500px;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.connect-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.connect-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold-text);
}

.connect-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.connect-handle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold-text);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: modalIn 0.2s ease-out;
}

.modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
}

.modal-img {
  width: 100%;
  border-radius: 8px;
}

.modal-info {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.modal-details {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.modal-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-text);
  margin-top: 0.15rem;
}

/* ===================== RESPONSIVE ===================== */

/* Tablet+ (640px) */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-logo {
    width: 320px;
  }

  .hero {
    padding: 6rem 2rem 4rem;
  }

  .section {
    padding: 3rem 2rem;
  }

  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (960px) */
@media (min-width: 960px) {
  .hero h1 {
    font-size: 4.2rem;
  }

  .item-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .stats-inner {
    padding: 1.5rem 2rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .item-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

/* XL desktop (1440px+) */
@media (min-width: 1440px) {
  .item-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Mobile adjustments */
/* ===== MOBILE — feels native, not a shrunken website ===== */
@media (max-width: 639px) {

  /* Nav — app-style top bar */
  .top-nav {
    padding: 0 0.75rem;
  }

  .nav-inner {
    height: 48px;
  }

  .nav-brand {
    font-size: 0;
    gap: 0;
  }

  .nav-logo {
    height: 32px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0;
  }

  .nav-right {
    gap: 0.15rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-icon {
    width: 14px;
    height: 14px;
  }

  /* Hero — immersive, nearly full screen */
  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin: 0.6rem auto 1.5rem;
  }

  .hero-cta {
    font-size: 0.88rem;
    padding: 0.75rem 2rem;
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  /* Stats — horizontal scroll strip */
  .stats-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-inner {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 0;
    padding: 0;
    min-width: max-content;
  }

  .stat {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--border);
    white-space: nowrap;
  }

  .stat:last-child {
    border-right: none;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  /* Sections — full bleed feel */
  .section {
    padding: 1.75rem 1rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .section-divider {
    margin: 0;
  }

  /* Search — full width, prominent */
  .search-input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }

  /* Filters — swipeable pill row */
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    flex-wrap: nowrap;
    gap: 0.3rem;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    flex-shrink: 0;
  }

  .sort-select {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.45rem 1.5rem 0.45rem 0.75rem;
  }

  /* Inventory — SINGLE column, large cards like an app feed */
  .item-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .item-card {
    border-radius: var(--radius);
  }

  .item-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .item-body {
    padding: 0.75rem 0.85rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .item-name {
    font-size: 0.9rem;
    gap: 0.35rem;
  }

  .item-qty {
    font-size: 0.6rem;
  }

  .item-details {
    font-size: 0.75rem;
  }

  .item-tags {
    margin-top: 0.15rem;
  }

  .item-tag {
    font-size: 0.55rem;
  }

  .item-price {
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .price-each {
    font-size: 0.6rem;
  }

  .category-header {
    margin-bottom: 0.75rem;
  }

  .category-title {
    font-size: 1.15rem;
  }

  .category-count {
    font-size: 0.7rem;
  }

  /* Slab frames — scale for larger mobile cards */
  .slab-label {
    font-size: 0.55rem;
    padding: 0.3rem 0;
  }

  .slab-label .slab-score {
    font-size: 0.7rem;
  }

  /* Show card — full bleed, stacked */
  .show-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .show-flyer-link {
    width: 100%;
    max-height: none;
  }

  .show-flyer {
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: top;
  }

  .show-details {
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .show-name {
    font-size: 1.3rem;
  }

  .show-meta {
    gap: 0.85rem;
  }

  .show-meta-item {
    font-size: 0.88rem;
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown-unit {
    min-width: 0;
    flex: 1;
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
  }

  .countdown-num {
    font-size: 1.4rem;
  }

  .countdown-label {
    font-size: 0.55rem;
  }

  .show-link-btn {
    font-size: 0.88rem;
    padding: 0.75rem 1.5rem;
    align-self: stretch;
    justify-content: center;
    border-radius: var(--radius);
  }

  /* Payment — large tap targets */
  .payment-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 0.75rem;
  }

  .cash-card {
    grid-column: 1 / -1;
    padding: 1.25rem;
  }

  .qr-card {
    padding: 1rem;
    border-radius: var(--radius);
  }

  .qr-label {
    font-size: 0.8rem;
  }

  .cash-icon {
    width: 40px;
    height: 40px;
  }

  /* Connect — full width tap targets */
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .connect-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
  }

  .connect-icon {
    width: 26px;
    height: 26px;
  }

  .connect-label {
    font-size: 0.9rem;
  }

  .connect-handle {
    font-size: 0.78rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  /* Modal — near full screen */
  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
  }

  .modal-content {
    max-width: 100%;
    padding: 1rem;
    border-radius: var(--radius);
  }

  .modal-img {
    max-height: 60vh;
  }

  .modal-label {
    font-size: 0.95rem;
  }

  .modal-details {
    font-size: 0.82rem;
  }

  .modal-price {
    font-size: 1.1rem;
  }

  .no-results {
    padding: 2rem 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
