/* ============================================================
   HAUF AN' A HAUF — Inverarity Morton
   Dark Theatre Design System
   Event: 2nd June · Leith Theatre, Edinburgh
   ============================================================ */

/* ── TT Modernoir Trial @font-face ──────────────────────────── */
@font-face {
  font-family: 'TT Modernoir';
  src: url('assets/fonts/TT_Modernoir_Trial_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Modernoir';
  src: url('assets/fonts/TT_Modernoir_Trial_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Modernoir';
  src: url('assets/fonts/TT_Modernoir_Trial_Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Modernoir';
  src: url('assets/fonts/TT_Modernoir_Trial_DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Modernoir';
  src: url('assets/fonts/TT_Modernoir_Trial_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand */
  --hh-gold:        #c8a84e;
  --hh-gold-lt:     #d4ba6a;
  --hh-gold-dk:     #a88634;
  --hh-black:       #0a0b0e;
  --hh-dark:        #0e1016;
  --hh-surface:     #161921;
  --hh-surface-lt:  #1e2230;
  --hh-border:      rgba(200,168,78,0.18);
  --hh-border-sub:  rgba(255,255,255,0.07);

  /* Legacy alias — used in shared staff styles */
  --im-dark:        #0e1016;
  --im-gold:        #c8a84e;
  --im-burgundy:    #c8a84e;
  --im-burgundy-lt: #d4ba6a;
  --im-burgundy-dk: #a88634;

  /* Neutrals */
  --cream:       #f2ede2;
  --warm-white:  rgba(242,237,226,0.07);
  --soft-gray:   rgba(255,255,255,0.12);
  --mid-gray:    rgba(242,237,226,0.4);
  --charcoal:    #1e2230;
  --text-main:   #f2ede2;
  --text-sub:    rgba(242,237,226,0.55);

  /* Feedback */
  --success:     #4ade80;
  --success-bg:  rgba(74,222,128,0.12);
  --error:       #f87171;
  --error-bg:    rgba(248,113,113,0.12);
  --warning-bg:  rgba(251,191,36,0.12);

  /* Reserved state */
  --reserved:    #4ade80;
  --reserved-bg: rgba(74,222,128,0.12);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);

  /* Header height */
  --header-h:  64px;
  --filter-h:  72px;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-main);
  background: var(--hh-black);
  min-height: 100dvh;
  overscroll-behavior: none;
}

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

button { cursor: pointer; font-family: inherit; border: none; background: none; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--hh-gold);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: 'TT Modernoir', 'DM Sans', system-ui, sans-serif; }

a { color: var(--hh-gold); }

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.optional { color: var(--mid-gray); font-size: 0.8rem; font-style: italic; }

/* ── Loading Screen ─────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--hh-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(200,168,78,0.2);
  border-top-color: var(--hh-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Screen ────────────────────────────────────────────── */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: var(--hh-black);
  background: url('assets/bg-auth.jpg') center center / cover no-repeat;
  position: relative;
}

.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.72);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-event-logo {
  width: min(320px, 85vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.7));
}

.auth-form {
  background: rgba(14,16,22,0.95);
  border: 1px solid var(--hh-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.auth-form h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.form-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: var(--space-lg);
}

/* Form Groups */
.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--hh-border-sub);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--hh-gold);
  background: rgba(200,168,78,0.05);
  outline: none;
}

.form-group input::placeholder { color: rgba(242,237,226,0.3); }

.form-group textarea { resize: vertical; min-height: 80px; }

/* Auth links */
.auth-links {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-sub);
}
.auth-sep { margin: 0 var(--space-sm); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  color: var(--text-sub);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hh-border-sub);
}

.link-btn {
  color: var(--hh-gold);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Auth feedback */
.auth-error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.auth-success {
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.5rem;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--hh-gold);
  color: var(--hh-black);
}
.btn-primary:hover { background: var(--hh-gold-lt); }

.btn-outline {
  background: transparent;
  color: var(--hh-gold);
  border: 1.5px solid var(--hh-gold);
}
.btn-outline:hover { background: rgba(200,168,78,0.1); }

.btn-full { width: 100%; margin-bottom: var(--space-sm); }

.btn-google {
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  border: 1.5px solid var(--hh-border-sub);
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: rgba(255,255,255,0.1); }

.btn-microsoft {
  background: rgba(0,120,215,0.1);
  color: var(--text-main);
  border: 1.5px solid rgba(0,120,215,0.35);
  box-shadow: var(--shadow-sm);
}
.btn-microsoft:hover { background: rgba(0,120,215,0.18); }

.auth-divider-staff {
  margin-top: 1.5rem;
}
.auth-divider-staff span {
  font-size: 0.75rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

/* Reserve button states */
.btn-reserve {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--hh-gold);
  color: var(--hh-black);
  transition: background 0.15s, transform 0.1s;
}
.btn-reserve:hover { background: var(--hh-gold-lt); }
.btn-reserve:active { transform: scale(0.98); }

.btn-reserve.is-reserved {
  background: var(--reserved-bg);
  color: var(--reserved);
  border: 1.5px solid rgba(74,222,128,0.3);
}
.btn-reserve.is-reserved:hover {
  background: rgba(74,222,128,0.18);
}

/* ── App Header ─────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hh-dark);
  height: var(--header-h);
  border-bottom: 1px solid var(--hh-border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-event-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(242,237,226,0.75);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: rgba(200,168,78,0.12);
  color: var(--hh-gold);
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--hh-gold);
  color: var(--hh-black);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* User dropdown */
.user-menu-wrap { position: relative; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
}

.user-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.user-email {
  font-size: 0.8rem;
  color: var(--text-sub);
  word-break: break-all;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--hh-border-sub);
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  transition: background 0.1s;
}
.dropdown-item:hover { background: rgba(200,168,78,0.1); color: var(--hh-gold); }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--hh-dark);
  border-bottom: 1px solid var(--hh-border);
  padding: var(--space-sm) var(--space-md);
}

.filter-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.list-toggle {
  display: flex;
  border: 1.5px solid var(--hh-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.list-toggle-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'TT Modernoir', 'DM Sans', system-ui, sans-serif;
  color: var(--hh-gold);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.list-toggle-btn + .list-toggle-btn {
  border-left: 1.5px solid var(--hh-gold);
}

.list-toggle-btn.active {
  background: var(--hh-gold);
  color: var(--hh-black);
}

.list-toggle-btn:not(.active):hover {
  background: rgba(200,168,78,0.12);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--hh-border-sub);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.filter-toggle-btn:hover { border-color: var(--hh-gold); color: var(--hh-gold); }
.filter-toggle-btn[aria-expanded="true"] { border-color: var(--hh-gold); color: var(--hh-gold); }
.filter-toggle-btn[aria-expanded="true"] .filter-toggle-chevron { transform: rotate(180deg); }
.filter-toggle-chevron { transition: transform 0.2s; }

.filter-collapsible {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.filter-collapsible.hidden { display: none; }
.filter-collapsible:not(.hidden) { padding-top: var(--space-sm); }

.filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (min-width: 900px) {
  .filter-selects { grid-template-columns: repeat(5, 1fr); flex: 1; min-width: 0; }
}

/* Beer-specific filter selects — 3 columns (brewery, style, sort) */
.filters-beer .filter-selects {
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .filters-beer .filter-selects { grid-template-columns: repeat(3, 1fr); }
}

.search-wrap {
  position: relative;
}

.search-always {
  max-width: 1200px;
  margin: var(--space-sm) auto 0;
}

@media (min-width: 640px) {
  .filter-bar-inner { flex-direction: row; align-items: center; }
  .search-wrap { flex: 1; min-width: 0; }
  .filter-selects { flex: 1; min-width: 0; }
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.6rem;
  border: 1.5px solid var(--hh-border-sub);
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--hh-gold); background: rgba(200,168,78,0.05); outline: none; }
.search-input::placeholder { color: var(--mid-gray); }

.filter-select {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--hh-border-sub);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a84e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--hh-gold); outline: none; }
.filter-select option { background: var(--hh-surface); color: var(--text-main); }

.results-bar {
  max-width: 1200px;
  margin: var(--space-xs) auto 0;
}

.results-count {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

/* ── Product Grid ────────────────────────────────────────────── */
.whisky-main {
  padding: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.ordering-closed-banner {
  background: var(--warning-bg);
  border: 1.5px solid rgba(251,191,36,0.3);
  border-radius: var(--radius-sm);
  color: rgba(251,191,36,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
}

.whisky-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .whisky-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .whisky-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1300px) {
  .whisky-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Product Card ────────────────────────────────────────────── */
.whisky-card {
  background: var(--hh-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 1.5px solid var(--hh-border-sub);
}
.whisky-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--hh-border);
}
.whisky-card.is-reserved {
  border-color: rgba(74,222,128,0.3);
}

.card-image {
  position: relative;
  width: 100%;
  height: 280px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--hh-border-sub);
}

.card-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--mid-gray);
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-image-placeholder svg {
  opacity: 0.35;
  color: var(--hh-gold);
}

.card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card-name {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

.card-meta-sep { color: var(--hh-border-sub); }

/* Region/Style badge — gold tint */
.card-region {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(200,168,78,0.12);
  color: var(--hh-gold);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,168,78,0.25);
}

/* Beer style badge — teal tint */
.card-style {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(56,189,248,0.1);
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56,189,248,0.2);
}

.card-supplier {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.card-flag {
  font-size: 1rem;
  line-height: 1;
  margin-right: 5px;
  vertical-align: middle;
}

.card-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hh-gold);
}
.card-price-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-sub);
}

/* Deal badge */
.card-deal-wrap {
  margin: 0.35rem 0 0.1rem;
}
.card-deal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hh-black);
  background: var(--hh-gold);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.card-deal-btn:hover { background: var(--hh-gold-lt); }
.card-deal-btn .deal-chevron { transition: transform 0.2s; flex-shrink: 0; }
.card-deal-detail {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--hh-gold);
  background: rgba(200,168,78,0.08);
  border: 1px solid rgba(200,168,78,0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
}

/* Image overlay attribute badges (vegan / vegetarian etc.) */
.card-img-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.card-attr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: opacity 0.15s;
}
.card-attr-badge:hover { opacity: 0.85; }
.badge-vegan {
  background: rgba(200,168,78,0.9);
  color: #0a0b0e;
}
.badge-vegetarian {
  background: rgba(200,168,78,0.9);
  color: #0a0b0e;
}

/* Detail wrap */
.card-detail-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card-description {
  font-size: 0.875rem;
  color: rgba(242,237,226,0.78);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-detail-wrap.expanded .card-description {
  display: block;
  overflow: visible;
}

.card-extra {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--hh-border-sub);
  margin-top: 2px;
}

.card-detail-wrap.expanded .card-extra {
  display: flex;
}

.card-extra-item {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.card-extra-label {
  font-weight: 600;
  color: var(--text-main);
}

.card-show-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--hh-gold);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  align-self: flex-start;
}
.card-show-more:hover { text-decoration: underline; }
.card-show-more svg { transition: transform 0.2s ease; }
.card-detail-wrap.expanded .card-show-more svg { transform: rotate(180deg); }

/* Card actions row */
.card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hh-border-sub);
}

/* Star rating inline on card */
.card-stars {
  display: flex;
  gap: 2px;
  flex: 1;
}

.card-star {
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(200,168,78,0.28);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  padding: 2px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.card-star:hover,
.card-star.active { color: var(--hh-gold); }
.card-star:active { transform: scale(1.2); }

.card-notes-btn {
  display: block;
  font-size: 0.8rem;
  color: var(--mid-gray);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: var(--space-xs) 0 0;
  transition: color 0.15s;
}
.card-notes-btn:hover { color: var(--hh-gold); }

/* Favourite button */
.fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(242,237,226,0.3);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.fav-btn:hover { background: rgba(200,168,78,0.1); color: var(--hh-gold); }
.fav-btn.is-faved { color: var(--hh-gold); }
.fav-btn.is-faved svg { fill: var(--hh-gold); }

/* Coming soon badge */
.card-coming-soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 4px;
  padding: 2px 7px;
}

/* Coming soon card border */
.whisky-card.is-coming-soon {
  border-color: rgba(167,139,250,0.3);
}

/* Interest button */
.btn-interest {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(167,139,250,0.4);
  background: rgba(167,139,250,0.1);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-interest:hover { background: rgba(167,139,250,0.18); border-color: rgba(167,139,250,0.6); }
.btn-interest:active { transform: scale(0.98); }
.btn-interest.is-interested {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.5);
  color: #c4b5fd;
}

/* Card footer */
.card-footer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  margin-top: auto;
}

/* ── Side Panel ─────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.side-panel {
  background: var(--hh-surface);
  width: min(420px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideLeft 0.25s ease;
  overflow: hidden;
  border-left: 1px solid var(--hh-border);
}

@keyframes slideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--hh-border-sub);
  background: var(--hh-dark);
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

/* Panel tabs */
.panel-tabs {
  display: flex;
  background: var(--hh-dark);
  border-bottom: 1px solid var(--hh-border-sub);
  flex-shrink: 0;
}

.panel-tab {
  flex: 1;
  padding: 0.75rem var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.panel-tab:hover { color: var(--text-main); }
.panel-tab.active { color: var(--hh-gold); border-bottom-color: var(--hh-gold); }

.panel-tab-badge {
  background: var(--hh-gold);
  color: var(--hh-black);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Panel items */
.panel-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--hh-border-sub);
  margin-bottom: var(--space-sm);
  background: var(--hh-dark);
}

.panel-item.panel-item-confirmed {
  border-color: rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.04);
}

.panel-item-name {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.panel-item-name-link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--hh-gold);
  text-underline-offset: 2px;
}
.panel-item-name-link:hover { color: var(--hh-gold); }

.panel-item-meta {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.panel-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hh-gold);
}

.panel-item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.qty-label { font-size: 0.85rem; }

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--hh-border-sub);
  color: var(--text-main);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, border-color 0.1s;
}
.qty-btn:hover { background: rgba(200,168,78,0.1); border-color: var(--hh-gold); }

.qty-val {
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: var(--text-main);
}

.panel-item-remove {
  font-size: 0.8rem;
  color: var(--error);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.panel-item-remove:hover { opacity: 0.75; }

.panel-group-heading {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hh-gold);
  padding: var(--space-sm) 0 var(--space-xs);
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.panel-group-heading:first-child { margin-top: 0; border-top: none; }

.filter-reset-row {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-xs) 0 var(--space-sm);
}
.filter-reset-btn {
  background: none;
  border: none;
  color: var(--hh-gold);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filter-reset-btn:hover { opacity: 1; }

.panel-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

.panel-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--hh-border-sub);
  background: var(--hh-dark);
  flex-shrink: 0;
}

.panel-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--hh-border-sub);
}

.panel-subtotal-label {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.panel-subtotal-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hh-gold);
  font-family: 'TT Modernoir', system-ui, sans-serif;
}

.panel-confirm-note {
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: center;
  margin-top: var(--space-xs);
}

.panel-confirmed-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Modal Overlay ──────────────────────────────────────────── */
.modal-overlay {
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
}

.modal {
  background: var(--hh-surface);
  border: 1px solid var(--hh-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--hh-border-sub);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  padding-right: var(--space-md);
}

.close-btn {
  color: var(--text-sub);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.1s, background 0.1s;
  flex-shrink: 0;
}
.close-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.07); }

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--hh-border-sub);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
  background: var(--hh-dark);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Reserve qty modal */
.reserve-qty-row { margin-top: var(--space-sm); }

.qty-label { color: var(--text-sub); font-size: 0.9rem; }

.reserve-price-display {
  margin-top: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hh-gold);
  text-align: center;
  padding: var(--space-sm);
  background: rgba(200,168,78,0.08);
  border-radius: var(--radius-sm);
}

.rating-prompt {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* Star rating in modal */
.star-rating {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.star {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  padding: 4px;
}
.star:hover,
.star.hover,
.star.active { color: var(--hh-gold); }
.star:active { transform: scale(1.15); }

/* Checkout modal */
.checkout-modal { max-width: 520px; }

.checkout-intro {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: var(--space-md);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--hh-dark);
}

.checkout-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checkout-item-qty {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--hh-gold);
  white-space: nowrap;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--hh-border-sub);
  margin-bottom: var(--space-md);
}

.checkout-total-label { color: var(--text-sub); font-size: 0.9rem; }

.checkout-total-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hh-gold);
  font-family: 'TT Modernoir', system-ui, sans-serif;
}

.checkout-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--warning-bg);
  color: rgba(251,191,36,0.85);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkout-warning-stock {
  margin-top: 0.5rem;
  color: rgba(248,148,6,0.9);
  background: rgba(248,148,6,0.08);
}

/* T&C modal */
.tc-modal { max-width: 600px; }

.tc-body {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.tc-body h3 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-xs);
}

.tc-body p { margin-bottom: var(--space-sm); }
.tc-body a { color: var(--hh-gold); }

/* T&C checkbox */
.tc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0 0.4rem;
}

.tc-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--hh-gold);
  cursor: pointer;
}

.tc-label {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
}

.tc-link {
  color: var(--hh-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
  font-weight: 500;
}

/* Preview modal */
.whisky-preview-modal { max-width: 520px; }

.preview-image {
  margin-bottom: var(--space-md);
  max-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--hh-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image img {
  max-height: 260px;
  width: 100%;
  object-fit: contain;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.preview-detail {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: var(--space-xs);
}

.preview-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-top: var(--space-sm);
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2230;
  border: 1px solid var(--hh-border);
  color: var(--text-main);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9000;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: fadeIn 0.2s ease;
}
.toast.toast-success { background: #2a2310; color: var(--hh-gold-lt); border-color: rgba(200,168,78,0.7); }
.toast.toast-error   { background: var(--error-bg);   color: var(--error);   border-color: rgba(248,113,113,0.3); }

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-sub);
}
.empty-state p { margin-bottom: var(--space-md); font-size: 0.95rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.app-footer {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: rgba(242,237,226,0.25);
  font-size: 0.8rem;
  border-top: 1px solid var(--hh-border-sub);
}

/* ── Welcome Overlay ────────────────────────────────────────── */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--hh-black);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.welcome-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.welcome-strip {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-screen {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.w-hero {
  background: var(--hh-dark);
  border-bottom: 1px solid var(--hh-border);
  padding: 52px 28px 44px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.w-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,168,78,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.w-logo {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.w-logo img {
  height: 44px;
  width: auto;
}

.w-logo-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-gold);
}

.w-heading {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.w-sub {
  font-size: 1rem;
  color: var(--text-sub);
  position: relative;
  z-index: 1;
}

.w-ai-hero {
  height: 42%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--hh-dark);
  border-bottom: 1px solid var(--hh-border);
}
.w-ai-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.w-ai-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(10,11,14,0.92) 40%);
  text-align: center;
}
.w-ai-caption-title {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.w-ai-caption-sub {
  font-size: 0.9rem;
  color: var(--hh-gold-lt);
  line-height: 1.4;
}
.w-ai-intro {
  font-size: 0.88rem;
  color: var(--text-sub);
  text-align: center;
  margin: 0;
}
.w-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.w-ai-pill {
  background: rgba(200,168,78,0.1);
  border: 1px solid rgba(200,168,78,0.35);
  color: var(--hh-gold-lt);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.w-body {
  flex: 1;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
}

.w-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.w-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.w-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hh-gold);
  color: var(--hh-black);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.w-step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.w-step-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.55;
}

.w-feature {
  border: 1px solid var(--hh-border-sub);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--hh-surface);
}

.w-feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.w-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200,168,78,0.15);
  color: var(--hh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.w-feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.w-feature-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.w-pill {
  display: inline-block;
  background: rgba(200,168,78,0.12);
  color: var(--hh-gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.w-feature-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.55;
}

.w-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.w-stat {
  text-align: center;
  padding: var(--space-md);
  border: 1px solid var(--hh-border-sub);
  border-radius: var(--radius-md);
  background: var(--hh-surface);
}

.w-stat-val {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hh-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.w-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.w-countdown {
  margin-top: var(--space-md);
  text-align: center;
  padding: var(--space-md);
  border: 1px solid var(--hh-border-sub);
  border-radius: var(--radius-md);
  background: var(--hh-surface);
}

.w-countdown-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.w-countdown-timer {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hh-gold);
  letter-spacing: 0.04em;
  line-height: 1;
}

.w-countdown-live {
  color: #6dc889;
  font-size: 1.1rem;
}

.w-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: auto;
  padding-top: var(--space-md);
}

.w-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hh-border-sub);
  transition: background 0.2s, transform 0.2s;
}
.w-dot.active {
  background: var(--hh-gold);
  transform: scale(1.2);
}

.w-footer {
  padding: var(--space-md) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hh-border-sub);
  background: var(--hh-dark);
  flex-shrink: 0;
}

.w-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--hh-gold);
  color: var(--hh-black);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'TT Modernoir', system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}
.w-btn:hover { background: var(--hh-gold-lt); }

.w-btn-outline {
  background: transparent;
  color: var(--hh-gold);
  border: 1.5px solid var(--hh-gold);
}
.w-btn-outline:hover { background: rgba(200,168,78,0.1); }

.w-welcome-name {
  font-family: 'TT Modernoir', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--hh-gold);
}

/* ── AI Guide FAB & overlay ────────────────────────────── */
.ai-guide-fab {
  position: fixed;
  bottom: 24px;
  right: 18px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  background: var(--hh-gold);
  color: var(--hh-black);
  border: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: background 0.15s, transform 0.1s;
}
.ai-guide-fab:hover  { background: var(--hh-gold-lt); }
.ai-guide-fab:active { transform: scale(0.97); }

.ai-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #000;
}
.ai-guide-overlay.hidden { display: none; }

.ai-guide-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--hh-black);
  border-bottom: 1px solid rgba(200,168,78,0.25);
  flex-shrink: 0;
}
.ai-guide-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid var(--hh-gold);
  color: var(--hh-gold);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.ai-guide-back:hover { background: rgba(200,168,78,0.12); }
.ai-guide-bar-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-guide-frame {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  display: block;
}
/* Local emergency build removals */
#login-google-btn,#signup-google-btn,#login-microsoft-btn,#signup-microsoft-btn,.auth-divider-staff{display:none!important;}


/* Lazy AI guide mobile note */
.ai-guide-fab small {
  display:block;
  font-size:0.62rem;
  line-height:1;
  opacity:0.8;
  font-weight:500;
}
