/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-hover: #1e2a4a;
  --accent: #e6a817;
  --accent-light: #f0c040;
  --accent-dark: #c48a0a;
  --gold: #d4a05a;
  --text: #f5f5f5;
  --text-muted: #aaa;
  --text-dim: #777;
  --border: #2a2a4a;
  --success: #2ecc71;
  --danger: #e74c3c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --transition: .3s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title h2 span { color: var(--accent); }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,13,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.cart-icon {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text); font-size: 1.1rem;
}
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--accent); color: var(--bg-primary);
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none; background: none; border: none; padding: 4px;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 50%, #0f3460 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,168,23,.08) 0%, transparent 70%);
}
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 span { color: var(--accent); display: block; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 500px; }
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.card-scene-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== CLUB CARD 3D ===== */
.card-scene {
  perspective: 800px;
  width: 340px; height: 460px;
}

.club-card {
  width: 100%; height: 100%;
  border-radius: 20px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
  will-change: transform;
  cursor: grab;
  background:
    linear-gradient(165deg,
      #0a0a1a 0%,
      #111128 20%,
      #1a1a3e 40%,
      #12122a 60%,
      #0d0d20 100%);
  border: 1px solid rgba(230,168,23,.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,.6),
    0 0 40px rgba(230,168,23,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.club-card:active { cursor: grabbing; }

/* Glare overlay */
.card-glare {
  position: absolute; inset: 0; z-index: 3;
  border-radius: 20px;
  background: radial-gradient(
    circle 300px at 50% 50%,
    rgba(255,255,255,.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Holographic shimmer */
.card-holo {
  position: absolute; inset: 0; z-index: 2;
  border-radius: 20px;
  background:
    linear-gradient(
      125deg,
      transparent 0%,
      rgba(230,168,23,.05) 20%,
      rgba(240,192,64,.1) 40%,
      rgba(212,160,90,.05) 60%,
      transparent 80%
    );
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.club-card:hover .card-holo { opacity: 1; }

/* Content */
.card-content {
  position: relative; z-index: 1;
  padding: 32px 28px;
  height: 100%;
  display: flex; flex-direction: column;
}

.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.card-badge {
  font-size: .65rem; font-weight: 700;
  letter-spacing: 2px; color: var(--gold);
  padding: 4px 12px;
  border: 1px solid rgba(230,168,23,.3);
  border-radius: 20px;
  text-transform: uppercase;
}
.card-badge-vip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-primary);
  border: none;
  font-size: .7rem;
  letter-spacing: 3px;
}

.card-logo {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.card-logo-icon {
  width: 64px; height: 64px;
  background: rgba(230,168,23,.1);
  border: 1px solid rgba(230,168,23,.25);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.card-logo-text { display: flex; flex-direction: column; }
.card-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 800;
  color: #fff;
  line-height: 1;
}
.card-brand em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-sub {
  font-size: .75rem; font-weight: 700;
  letter-spacing: 6px; color: var(--gold);
  margin-top: 4px;
}

.card-divider {
  height: 1px; margin: 8px 0 20px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(230,168,23,.4) 20%,
    rgba(230,168,23,.4) 80%,
    transparent 100%);
}

.card-details { margin-bottom: auto; }
.card-label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: 3px; color: var(--text-dim);
  margin-bottom: 6px;
}
.card-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-bottom {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.card-member, .card-since {
  font-size: .6rem; font-weight: 600;
  letter-spacing: 1.5px; color: var(--text-dim);
}

/* Subtle corner accent */
.club-card::before {
  content: '';
  position: absolute; top: -1px; right: -1px;
  width: 80px; height: 80px;
  background: linear-gradient(225deg, rgba(230,168,23,.15) 0%, transparent 60%);
  border-radius: 0 20px 0 0;
  z-index: 1;
}
.club-card::after {
  content: '';
  position: absolute; bottom: -1px; left: -1px;
  width: 80px; height: 80px;
  background: linear-gradient(45deg, rgba(230,168,23,.1) 0%, transparent 60%);
  border-radius: 0 0 0 20px;
  z-index: 1;
}

@media (max-width: 768px) {
  .card-scene { width: 280px; height: 380px; }
  .card-content { padding: 24px 20px; }
  .card-brand { font-size: 1.4rem; }
  .card-number { font-size: 1.3rem; }
  .card-logo-icon { width: 50px; height: 50px; font-size: 1.6rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  border: none; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,168,23,.3);
  color: var(--bg-primary);
}
.btn-secondary {
  background: transparent; border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent); color: var(--bg-primary);
}
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

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

/* ===== BEER CARDS ===== */
.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.beer-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.beer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.beer-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.beer-card-img .beer-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.beer-card-body { padding: 20px; }
.beer-card-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.beer-card-body .brewery { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.beer-card-body .description { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; line-height: 1.5; }

.beer-meta {
  display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.beer-meta .tag {
  padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
  background: rgba(230,168,23,.1); color: var(--accent); border: 1px solid rgba(230,168,23,.2);
}

.beer-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.beer-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.beer-price small { font-size: .8rem; color: var(--text-muted); font-weight: 400; }

.add-to-cart {
  background: var(--accent); color: var(--bg-primary);
  border: none; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .85rem;
  transition: all var(--transition);
}
.add-to-cart:hover { background: var(--accent-light); transform: scale(1.05); }

/* ===== GRADIENT BEER IMAGES ===== */
.grad-ipa { background: linear-gradient(135deg, #c87000 0%, #f5a623 50%, #e8d5a3 100%); }
.grad-stout { background: linear-gradient(135deg, #1a0a00 0%, #3d1c02 50%, #6b3a1f 100%); }
.grad-lager { background: linear-gradient(135deg, #f5d76e 0%, #f0c040 50%, #e6a817 100%); }
.grad-wheat { background: linear-gradient(135deg, #f5e6c8 0%, #e8c547 50%, #d4a05a 100%); }
.grad-sour { background: linear-gradient(135deg, #e74c7d 0%, #c94277 50%, #a83279 100%); }
.grad-porter { background: linear-gradient(135deg, #2c1810 0%, #4a2520 50%, #6b3530 100%); }
.grad-amber { background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%); }
.grad-pale { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); }
.grad-saison { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%); }
.grad-dipa { background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%); }
.grad-barleywine { background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%); }
.grad-hazy { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%); }
.grad-red { background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%); }
.grad-brown { background: linear-gradient(135deg, #3b1a08 0%, #5c2d10 50%, #7c3a12 100%); }
.grad-gose { background: linear-gradient(135deg, #f0abfc 0%, #d946ef 50%, #a855f7 100%); }
.grad-berliner { background: linear-gradient(135deg, #fca5a5 0%, #f87171 50%, #ef4444 100%); }
.grad-tripel { background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #fde047 100%); }
.grad-dubbel { background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #92400e 100%); }
.grad-witbier { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%); }
.grad-kolsch { background: linear-gradient(135deg, #fef9c3 0%, #fde68a 50%, #fbbf24 100%); }
.grad-schwarzbier { background: linear-gradient(135deg, #0c0a09 0%, #1c1917 50%, #292524 100%); }
.grad-bock { background: linear-gradient(135deg, #431407 0%, #7c2d12 50%, #9a3412 100%); }

/* ===== FEATURES / INFO SECTIONS ===== */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.feature-card {
  text-align: center; padding: 40px 24px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(230,168,23,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-secondary); }

/* ===== CATEGORY PAGE ===== */
.category-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}
.category-hero h1 { margin-bottom: 12px; }
.category-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 24px; }

.category-info {
  padding: 60px 0;
  background: var(--bg-secondary);
}
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.info-visual {
  height: 300px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.info-text h2 { margin-bottom: 16px; }
.info-text p { color: var(--text-muted); margin-bottom: 12px; }

.style-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.style-tag {
  padding: 8px 16px; border-radius: 20px; font-size: .85rem;
  background: rgba(230,168,23,.1); color: var(--accent);
  border: 1px solid rgba(230,168,23,.2);
}

/* ===== CATALOG FILTERS ===== */
.catalog-header {
  padding: 120px 0 40px;
}
.filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 20px 0;
}
.filter-btn {
  padding: 10px 20px; border-radius: 24px;
  background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: var(--bg-primary);
  border-color: var(--accent);
}

/* ===== QUIZ ===== */
.quiz-section { padding: 120px 0 80px; }
.quiz-container {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 48px; border: 1px solid var(--border);
}
.quiz-progress {
  display: flex; gap: 6px; margin-bottom: 32px;
}
.quiz-progress .step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}
.quiz-progress .step.active { background: var(--accent); }
.quiz-progress .step.done { background: var(--success); }

.quiz-question { margin-bottom: 32px; }
.quiz-question h2 { margin-bottom: 8px; }
.quiz-question p { color: var(--text-muted); }

.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  padding: 18px 24px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 14px;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.selected { border-color: var(--accent); background: rgba(230,168,23,.08); }
.quiz-option .icon { font-size: 1.5rem; }
.quiz-option .label { font-weight: 500; }
.quiz-option .desc { font-size: .85rem; color: var(--text-muted); }

.quiz-nav {
  display: flex; justify-content: space-between; margin-top: 32px;
}
.quiz-result { display: none; text-align: center; }
.quiz-result h2 { margin-bottom: 16px; }
.quiz-result .recommended-beers { margin-top: 32px; }
.quiz-result-intro { color: var(--text-muted); margin-bottom: 24px; }
.quiz-result-category { margin-bottom: 32px; }
.quiz-result-category h3 { color: var(--accent); margin-bottom: 16px; font-size: 1.3rem; }
.quiz-beer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; text-align: left;
}
.quiz-beer-card {
  background: var(--bg-secondary); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition);
}
.quiz-beer-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.quiz-beer-img {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.quiz-beer-info { padding: 16px; }
.quiz-beer-info h4 { margin-bottom: 4px; font-size: 1rem; }
.quiz-beer-brewery { color: var(--text-muted); font-size: .8rem; margin-bottom: 4px; }
.quiz-beer-style { color: var(--accent); font-size: .8rem; margin-bottom: 8px; }
.quiz-beer-price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.quiz-add-to-cart {
  width: 100%; padding: 10px; border: none;
  background: var(--accent); color: var(--bg-primary);
  font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: background var(--transition);
}
.quiz-add-to-cart:hover { background: var(--accent-light); }
.quiz-btn {
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; border: none;
  cursor: pointer; transition: all var(--transition);
}
.quiz-btn:disabled { opacity: .4; cursor: not-allowed; }
.quiz-btn-back {
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
}
.quiz-btn-back:hover { background: var(--accent); color: var(--bg-primary); }
.quiz-btn-next, .quiz-btn-finish {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-primary);
}
.quiz-btn-next:hover:not(:disabled), .quiz-btn-finish:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,168,23,.3);
}
.quiz-btn-restart {
  margin-top: 32px; background: transparent;
  border: 2px solid var(--accent); color: var(--accent);
}
.quiz-btn-restart:hover { background: var(--accent); color: var(--bg-primary); }
.quiz-no-beers { color: var(--text-muted); padding: 20px; }

/* Beer card image */
.beer-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== CART ===== */
.cart-section { padding: 120px 0 80px; }
.cart-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 40px;
}
.cart-items { min-height: 200px; }
.cart-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty .icon { font-size: 4rem; margin-bottom: 16px; }

.cart-item {
  display: flex; gap: 20px; padding: 20px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 16px;
  transition: all var(--transition);
}
.cart-item:hover { border-color: var(--accent); }
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: 4px; }
.cart-item-info .brewery { color: var(--text-muted); font-size: .85rem; }
.cart-item-actions {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-value { font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-price {
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
}
.remove-item {
  background: none; border: none; color: var(--text-dim);
  font-size: .85rem; transition: color var(--transition);
}
.remove-item:hover { color: var(--danger); }

/* Cart summary */
.cart-summary {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  position: sticky; top: 90px;
}
.cart-summary h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-row {
  display: flex; justify-content: space-between; margin-bottom: 12px;
  font-size: .95rem;
}
.summary-row.total {
  font-size: 1.2rem; font-weight: 700; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.summary-row.total .amount { color: var(--accent); }

/* Checkout form */
.checkout-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.checkout-form h4 { margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .85rem; color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .95rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#card-element {
  padding: 14px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
#card-element.StripeElement--focus { border-color: var(--accent); }
#card-errors { color: var(--danger); font-size: .85rem; margin-top: 8px; }

.pay-btn {
  margin-top: 20px;
}

/* Success overlay */
.success-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); z-index: 9999;
  align-items: center; justify-content: center;
}
.success-overlay.show { display: flex; }
.success-box {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 48px; text-align: center; max-width: 450px;
  border: 1px solid var(--success);
}
.success-box .check { font-size: 4rem; margin-bottom: 16px; }
.success-box h2 { color: var(--success); margin-bottom: 12px; }
.success-box p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #16213e 50%, #0f3460 100%);
}
.about-content { max-width: 800px; margin: 0 auto; }

.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
  display: flex; margin-bottom: 40px; position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%; padding: 24px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.timeline-content h3 { color: var(--accent); margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); font-size: .9rem; }
.timeline-dot {
  position: absolute; left: 50%; top: 24px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
  border: 3px solid var(--bg-primary);
}

.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.fact-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.fact-number {
  font-size: 2.5rem; font-weight: 700; color: var(--accent);
  font-family: 'Playfair Display', serif;
}
.fact-label { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }

/* ===== PAY IFRAME ===== */
.pay-iframe-body {
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
}
.pay-iframe-container {
  max-width: 420px; width: 100%;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
}
.pay-iframe-container h3 { text-align: center; margin-bottom: 24px; }
.pay-amount {
  text-align: center; font-size: 2rem; font-weight: 700;
  color: var(--accent); margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-about p { color: var(--text-muted); margin-top: 12px; font-size: .9rem; }
.footer-col h4 { margin-bottom: 16px; color: var(--accent); font-size: .95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: .85rem;
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 24px;
  display: none; align-items: center; gap: 12px;
  box-shadow: var(--shadow); z-index: 9999;
  transform: translateX(120%); transition: transform .4s ease;
}
.toast.show { display: flex; transform: translateX(0); }
.toast .toast-icon { font-size: 1.5rem; }
.toast .toast-text { font-size: .9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg-primary); flex-direction: column;
    padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }

  .hero .container { flex-direction: column; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-visual { order: -1; }
  .hero-beer { width: 200px; height: 280px; }
  .btn-group { justify-content: center; }

  .info-grid { grid-template-columns: 1fr; }
  .info-visual { height: 200px; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }
}

@media (max-width: 480px) {
  .beer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quiz-container { padding: 24px; }
}

/* ===== AI SOMMELIER CHAT ===== */
.chat-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.chat-container {
  max-width: 700px;
  width: 100%;
  margin: 70px auto 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  position: relative;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.chat-avatar-lg {
  width: 48px; height: 48px;
  background: rgba(230,168,23,.15);
  border: 1px solid rgba(230,168,23,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.chat-header-bar h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}
.chat-status {
  font-size: .8rem;
  color: var(--success);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Chat bubbles */
.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: chatFadeIn .3s ease;
}
.chat-bubble.bot {
  align-self: flex-start;
}
.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-avatar {
  width: 36px; height: 36px;
  background: rgba(230,168,23,.12);
  border: 1px solid rgba(230,168,23,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-bubble-content {
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: .95rem;
}
.chat-bubble.bot .chat-bubble-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-bubble.user .chat-bubble-content {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-bottom-right-radius: 4px;
  color: var(--bg-primary);
  font-weight: 500;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}
.chat-typing span {
  width: 8px; height: 8px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick reply option buttons */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  animation: chatFadeIn .3s ease;
}
.chat-option-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 24px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.chat-option-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,168,23,.25);
}

/* Input area */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.chat-input-area input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-area input:focus {
  border-color: var(--accent);
}
.chat-input-area input::placeholder {
  color: var(--text-dim);
}
.chat-input-area input:disabled {
  opacity: .5;
}

#chat-send {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: 50%;
  color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
#chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(230,168,23,.3);
}

/* ===== PAYWALL PLANS ===== */
.paywall-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 0;
  animation: chatFadeIn .4s ease;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(230,168,23,.06) 0%, var(--bg-card) 100%);
}
.plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(230,168,23,.15);
}

.plan-popular-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-primary);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}
.plan-features li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: .75rem;
}

.plan-select-btn {
  font-size: .85rem;
  padding: 10px 16px;
}

/* Stripe inline form */
.stripe-form-inline {
  grid-column: 1 / -1;
  animation: chatFadeIn .3s ease;
}
.stripe-form-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}
.stripe-form-inline .form-group {
  margin-bottom: 16px;
}
.stripe-form-inline label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stripe-form-inline input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--transition);
}
.stripe-form-inline input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

#card-element-sommelier {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
#card-element-sommelier.StripeElement--focus {
  border-color: var(--accent);
}
#card-errors-sommelier {
  color: var(--danger);
  font-size: .85rem;
  margin-top: 8px;
  min-height: 20px;
}

.stripe-pay-btn {
  margin-top: 8px;
}
.stripe-secure {
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Recommendation card */
.rec-card {
  background: linear-gradient(135deg, rgba(230,168,23,.08) 0%, rgba(230,168,23,.02) 100%);
  border: 1px solid rgba(230,168,23,.25);
  border-radius: var(--radius);
  padding: 20px;
}
.rec-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--accent);
}
.rec-beer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.rec-brewery {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.rec-note {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.rec-section {
  font-size: .88rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.rec-section strong {
  color: var(--text);
}

/* ===== CHAT RESPONSIVE ===== */
@media (max-width: 768px) {
  .chat-container {
    margin-top: 70px;
  }
  .paywall-plans {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .plan-card.popular {
    order: -1;
  }
  .chat-bubble {
    max-width: 92%;
  }
}

@media (max-width: 480px) {
  .chat-header-bar {
    padding: 14px 16px;
  }
  .chat-messages {
    padding: 16px 12px;
  }
  .chat-input-area {
    padding: 12px;
  }
  .chat-input-area input {
    padding: 12px 14px;
  }
  .stripe-form-inner {
    padding: 18px 14px;
  }
  .plan-card {
    padding: 20px 14px;
  }
}
