/* style.css - Brasserie Dupont GLN Portal Design System */
:root {
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --red-dupont: #be1622;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header & Hero */
header {
  background: #090e1a;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 44px;
  height: 52px;
  object-fit: contain;
}
.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.hero {
  text-align: center;
  padding: 40px 20px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Scanner Action Button */
.scanner-cta-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.btn-scanner-hero {
  background: linear-gradient(135deg, #d4af37, #b8972e);
  color: #0f172a;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-scanner-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Controls: Filters & Search */
.controls-container {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}
.search-box {
  margin-bottom: 20px;
}
.search-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}
.search-input:focus {
  border-color: var(--gold);
}
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: #0f172a;
  border-color: var(--gold);
  font-weight: 600;
}
.beers-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* Grid of Beers */
.beers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.beer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.beer-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.beer-img-wrap {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.beer-img-wrap img {
  max-height: 230px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}
.beer-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-abv { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.badge-vol { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.beer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.beer-gtin {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.btn-view-sheet {
  margin-top: auto;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.beer-card:hover .btn-view-sheet {
  background: var(--gold);
  color: #0f172a;
}

/* Scanner Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}
.scanner-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.viewport-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background: #000;
  overflow: hidden;
}
#scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-guide {
  position: absolute;
  inset: 40px;
  border: 2px dashed rgba(212, 175, 55, 0.8);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}
.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: scanLaser 2s infinite linear;
}
@keyframes scanLaser {
  0% { top: 10%; }
  50% { top: 90%; }
  100% { top: 10%; }
}
.scanner-body { padding: 20px; text-align: center; }
#scanner-status { font-size: 14px; margin-bottom: 16px; font-weight: 500; }
.manual-wrap {
  display: flex;
  gap: 8px;
}
.manual-input {
  flex: 1;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
}
.manual-btn {
  background: var(--gold);
  color: #0f172a;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Detail Modal */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}
.detail-header { display: flex; justify-content: flex-end; }
.detail-body { text-align: center; }
.detail-img { height: 260px; object-fit: contain; margin-bottom: 16px; }
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}
.detail-meta-item {
  background: #0f172a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.detail-meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.detail-meta-value { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-top: 2px; }
.btn-standalone {
  display: block;
  background: var(--gold);
  color: #0f172a;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 16px;
}

/* PWA Banner */
.pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 999;
}
.pwa-banner-text h4 { font-size: 15px; color: var(--gold); margin-bottom: 2px; }
.pwa-banner-text p { font-size: 12px; color: var(--text-muted); margin: 0; }
.pwa-banner-actions { display: flex; gap: 8px; }
.pwa-banner-btn {
  background: var(--gold);
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.pwa-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}


/* --- Theme Toggle & Lang Dialog Extensions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}
html.light-theme .theme-toggle-btn .sun-icon { display: none !important; }
html.light-theme .theme-toggle-btn .moon-icon { display: block !important; }
html:not(.light-theme) .theme-toggle-btn .sun-icon { display: block !important; }
html:not(.light-theme) .theme-toggle-btn .moon-icon { display: none !important; }

.flag-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.flag-picker-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.active-flag { font-size: 17px; line-height: 1; }
.active-lang-code { text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; font-weight: 700; }

/* Light Theme Overrides */
html.light-theme {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --gold: #b48512;
  --gold-glow: rgba(180, 133, 18, 0.25);
  --text-primary: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
}
html.light-theme header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e2e8f0;
}
html.light-theme .search-input {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}
html.light-theme .search-input:focus {
  border-color: #b48512;
}
html.light-theme .filter-btn {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}
html.light-theme .filter-btn:hover, html.light-theme .filter-btn.active {
  background: #b48512;
  color: #ffffff;
  border-color: #b48512;
}
html.light-theme .beer-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
html.light-theme .beer-card:hover {
  border-color: #b48512;
  box-shadow: 0 8px 24px rgba(180, 133, 18, 0.16);
}
html.light-theme .beer-img-wrap img {
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.12));
}
html.light-theme .badge-abv {
  background: rgba(180, 133, 18, 0.12);
  color: #926605;
}
html.light-theme .badge-vol {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}
html.light-theme .btn-view-sheet {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
html.light-theme .beer-card:hover .btn-view-sheet {
  background: #b48512;
  color: #ffffff;
}
html.light-theme footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

/* Modal Dialog Styles for 30-Lang Picker */
dialog#lang-dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  max-width: 680px;
  width: 92vw;
  margin: auto;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
dialog#lang-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.modal-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.modal-title-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: var(--gold);
  color: #0f172a;
  border-color: var(--gold);
}
.lang-modal-body {
  padding: 20px 22px;
  max-height: 70vh;
  overflow-y: auto;
}
.lang-section-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 10px;
}
.lang-section-header:first-child {
  margin-top: 0;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.grid-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}
.grid-lang-btn:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.grid-lang-btn.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.grid-lang-flag {
  font-size: 20px;
  line-height: 1;
}
.grid-lang-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Light theme overrides */
html.light-theme 

/* ==========================================================================
   Luxury Heritage Brewery Footer (Brasserie Dupont)
   ========================================================================== */
/* Col 1: Brand & Heritage */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .footer-brand-header {
    justify-content: center;
  }
}
.footer-logo-img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.footer-brand-tagline {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 18px;
  max-width: 380px;
}
@media (max-width: 640px) {
  .footer-desc {
    margin: 0 auto 18px;
  }
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .footer-social-row {
    justify-content: center;
  }
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon-btn:hover {
  background: var(--gold);
  color: #070b14;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}
.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Col 2: Flagship Beers Links */
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
@media (max-width: 640px) {
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links-list li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .footer-links-list li a:hover {
    transform: none;
  }
}

/* Col 3: Address & Official Site */
.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}
.footer-gln-pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  margin-top: 6px;
}
.footer-official-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-official-btn:hover {
  background: var(--gold);
  color: #070b14;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  margin: 32px 0 24px;
}

/* Discreet Responsible Drinking Banner */
.footer-warning-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 24px;
  text-align: center;
}
.warning-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.warning-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 850px;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
.footer-tech-tag {
  color: #475569;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

/* Light Theme Styling */
html.light-theme 

/* ==========================================================================
   Luxury Heritage Brewery Footer (Brasserie Dupont)
   ========================================================================== */
footer.portal-footer {
  margin-top: 80px;
  background: #070b14;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  color: #94a3b8;
  padding: 60px 24px 36px;
  position: relative;
  text-align: left;
}
footer.portal-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

/* Col 1: Brand & Heritage */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .footer-brand-header {
    justify-content: center;
  }
}
.footer-logo-img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.footer-brand-tagline {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 18px;
  max-width: 380px;
}
@media (max-width: 640px) {
  .footer-desc {
    margin: 0 auto 18px;
  }
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .footer-social-row {
    justify-content: center;
  }
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon-btn:hover {
  background: var(--gold);
  color: #070b14;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}
.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Col 2: Flagship Beers Links */
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
@media (max-width: 640px) {
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links-list li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .footer-links-list li a:hover {
    transform: none;
  }
}

/* Col 3: Address & Official Site */
.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}
.footer-gln-pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  margin-top: 6px;
}
.footer-official-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-official-btn:hover {
  background: var(--gold);
  color: #070b14;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  margin: 32px 0 24px;
}

/* Discreet Responsible Drinking Banner */
.footer-warning-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 24px;
  text-align: center;
}
.warning-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.warning-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 850px;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
.footer-tech-tag {
  color: #475569;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

/* Light Theme Styling */
html.light-theme footer.portal-footer {
  background: #f8fafc;
  border-top-color: rgba(180, 133, 18, 0.3);
  color: #475569;
}
html.light-theme footer.portal-footer::before {
  background: linear-gradient(90deg, transparent, #b48512, transparent);
}
html.light-theme .footer-brand-name {
  color: #b48512;
}
html.light-theme .footer-brand-tagline {
  color: #334155;
}
html.light-theme .footer-desc {
  color: #64748b;
}
html.light-theme .social-icon-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #b48512;
}
html.light-theme .social-icon-btn:hover {
  background: #b48512;
  color: #ffffff;
}
html.light-theme .footer-col-title {
  color: #0f172a;
}
html.light-theme .footer-col-title::after {
  background: #b48512;
}
html.light-theme .footer-links-list li a {
  color: #475569;
}
html.light-theme .footer-links-list li a:hover {
  color: #b48512;
}
html.light-theme .footer-address {
  color: #475569;
}
html.light-theme .footer-gln-pill {
  background: rgba(180, 133, 18, 0.1);
  border-color: rgba(180, 133, 18, 0.3);
  color: #b48512;
}
html.light-theme .footer-official-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #b48512;
}
html.light-theme .footer-official-btn:hover {
  background: #b48512;
  color: #ffffff;
}
html.light-theme .footer-warning-strip {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html.light-theme .warning-text {
  color: #475569;
}
html.light-theme .footer-bottom-bar {
  color: #64748b;
}












/* --- PWA Offline Header Button & Dialog --- */
.pwa-offline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.pwa-offline-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}
.pwa-offline-btn.ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.pwa-offline-btn.ready:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.pwa-offline-btn .pwa-icon {
  font-size: 1.05rem;
}

/* Accessible Native Dialog Modal */
dialog.offline-dialog {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: #090e1a;
  color: #f8fafc;
  max-width: 540px;
  width: 92vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.15);
  margin: auto;
}
dialog.offline-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.offline-dialog-card {
  padding: 28px;
}
.offline-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.offline-title {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 1.45rem;
  color: #d4af37;
  margin: 0 0 6px 0;
  font-weight: 700;
  line-height: 1.2;
}
.offline-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}
.offline-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.offline-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #e2e8f0;
}
.offline-status-banner.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.offline-status-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.offline-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .offline-features-grid {
    grid-template-columns: 1fr;
  }
}
.offline-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.feat-icon {
  font-size: 1.5rem;
}
.feat-text strong {
  display: block;
  font-size: 0.85rem;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.feat-text span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
}

/* Progress Section */
.offline-progress-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}
.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}
.progress-pct {
  font-size: 0.95rem;
  font-weight: 700;
  color: #d4af37;
  font-family: ui-monospace, monospace;
}
.progress-bar-wrap {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f59e0b);
  border-radius: 5px;
  transition: width 0.15s ease-out;
}
.progress-detail {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-start-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #d4af37, #b48512);
  color: #090e1a;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.btn-start-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}
.btn-start-download:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Launch PWA Button */
.btn-launch-pwa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-launch-pwa:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
}

/* Secondary Update Button */
.btn-update-pack {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 9999px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.btn-update-pack:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

/* Floating Offline Toast */
.offline-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.offline-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.offline-cache-info {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* Light Theme Overrides */
html.light-theme dialog.offline-dialog {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}
html.light-theme .offline-title {
  color: #b48512;
}
html.light-theme .offline-subtitle {
  color: #64748b;
}
html.light-theme .offline-status-banner {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html.light-theme .offline-feature-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html.light-theme .feat-text strong {
  color: #0f172a;
}
html.light-theme .offline-progress-section {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html.light-theme .progress-label {
  color: #0f172a;
}
html.light-theme .btn-update-pack {
  border-color: #cbd5e1;
  color: #64748b;
}
html.light-theme .btn-update-pack:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html.light-theme .offline-toast {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: #10b981;
}
