/* =================================================================
   Hurmi's Hop Log — Craft Pub Journal
   Dark amber theme · Playfair Display + DM Sans
   ================================================================= */

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

:root {
  /* Palette */
  --bg:            #0c0a07;
  --bg-card:       #141109;
  --bg-elevated:   #1a1610;
  --bg-input:      #1e1912;
  --border:        #2a2115;
  --border-warm:   #3a2e1c;
  --text:          #eddfc0;
  --text-muted:    #7a6a50;
  --text-dim:      #443826;

  /* Accents */
  --accent:        #e8910a;
  --accent-dark:   #b56e08;
  --accent-light:  #f5b03a;
  --accent-glow:   rgba(232, 145, 10, 0.18);
  --accent-glow2:  rgba(232, 145, 10, 0.06);

  /* Status */
  --danger:        #c0432a;
  --danger-soft:   rgba(192, 67, 42, 0.12);
  --success:       #5a9e5c;

  /* Shape */
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     5px;
  --radius-pill:   999px;

  /* Shadow */
  --shadow:        0 6px 32px rgba(0, 0, 0, 0.7);
  --shadow-warm:   0 6px 32px rgba(232, 145, 10, 0.1);
  --shadow-sm:     0 2px 12px rgba(0, 0, 0, 0.5);

  /* Nav */
  --sidebar-w:     220px;

  /* Typography */
  --font:          'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  /* Subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

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

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

.hidden { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 0.15em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(14, 11, 7, 0.97);
  border-right: 1px solid var(--border-warm);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.nav-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.nav-links {
  list-style: none;
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--accent-glow2);
}
.nav-links li.active a,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow2);
}

.nav-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 1rem 1rem 0.25rem;
  pointer-events: none;
}

.nav-user {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

#nav-username {
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-settings {
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.15s;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
}
.nav-settings:hover { color: var(--accent); }

/* ── Main / Views ───────────────────────────────────────────────── */
#app {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  padding: 0 2rem;
  box-sizing: border-box;
}

.view {
  width: 100%;
  padding: 2rem 0;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.view-header h2 { margin-bottom: 0; }


/* ── Forms ──────────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; text-align: left; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow2);
}
.field input::placeholder { color: var(--text-dim); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-elevated); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #0c0a07;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.375rem;
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(232, 145, 10, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.btn-danger:hover { background: #a8391e; }

.btn-full { width: 100%; }

.btn-sm  { padding: 0.3rem 0.75rem; font-size: 0.825rem; }
.btn-xs  { padding: 0.175rem 0.5rem; font-size: 0.75rem; }
.btn-back { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  margin-bottom: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-warm);
  box-shadow: var(--shadow-warm);
}

/* ── Error / Success ─────────────────────────────────────────────── */
.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--danger-soft);
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--danger);
}

.success-msg {
  color: var(--success);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(90, 158, 92, 0.1);
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--success);
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge-pro {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0c0a07;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.badge-basic {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.badge-private {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.badge-fass {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow2);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232,145,10,0.2);
}

/* ── Ad Slots ────────────────────────────────────────────────────── */
.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
  opacity: 0.6;
}

/* ── Utility ─────────────────────────────────────────────────────── */
.loading-msg {
  color: var(--text-muted);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

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

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 0.5rem; }
.empty-state p:first-child { font-size: 1.05rem; color: var(--text); }

/* ── Section Divider ─────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}


/* ── Mobile Top Bar ──────────────────────────────────────────────── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(12, 10, 7, 0.98);
  border-bottom: 1px solid var(--border-warm);
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  z-index: 120;           /* topbar: 120 — unter overlay (130) und nav (200) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-topbar-ham {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.mobile-topbar-ham:hover { background: var(--accent-glow2); }

.mobile-topbar-ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.15s;
  transform-origin: center;
}
.mobile-topbar-ham:hover span { background: var(--text); }

/* Hamburger → X animation */
.mobile-topbar-ham.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.mobile-topbar-ham.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-topbar-ham.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

.mobile-topbar-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.mobile-topbar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Hamburger / Mobile Overlay ──────────────────────────────────── */
.page-hamburger {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border-warm);
  color: var(--text);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

.nav-overlay.visible {
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet / Mobile: Sidebar ausblenden, Top Bar einblenden ───────── */
@media (max-width: 768px) {

  /* Nav Drawer */
  .nav {
    width: min(280px, 88vw);
    transform: translateX(-100%);
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  }
  .nav.open { transform: translateX(0); }

  /* Overlay liegt zwischen Topbar (120) und Nav (200) → deckt Topbar ab */
  .nav-overlay.visible {
    display: block;
    z-index: 130;
  }

  /* App-Inhalt: Standard ohne Top-Padding (Login-Seite) */
  #app {
    margin-left: 0;
    width: 100%;
    padding: 0 1.25rem 1rem;
  }
  /* Eingeloggt: Platz für die Top Bar */
  body.is-logged-in #app {
    padding-top: 64px;
  }

  /* Footer */
  .app-footer {
    margin-left: 0;
    padding: 0.875rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  /* Nav Drawer: kompaktes Logo + größere Tap-Targets */
  .nav-logo       { width: 80px; height: 80px; }
  .nav-brand      { padding: 1rem 1rem 0.875rem; justify-content: center; }
  .nav-links a    { padding: 0.7rem 1.1rem; font-size: 0.925rem; }
  .nav-group-label { padding: 0.75rem 1.1rem 0.25rem; font-size: 0.68rem; }
  .nav-user       { padding: 0.75rem 1.1rem 1rem; }
  .btn-logout     { flex: 1; text-align: center; }

  /* Top Bar einblenden, alten Hamburger verstecken */
  .mobile-topbar  { display: flex; }
  .page-hamburger { display: none !important; }

  /* Allgemeine Layout-Anpassungen */
  .view           { padding: 1.25rem 0; }
  .view-header    { flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
  h2              { font-size: 1.4rem; }
}

/* ── Mobil (≤ 600px) ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #app                    { padding: 0 1rem 1.5rem; }
  body.is-logged-in #app  { padding-top: 60px; }

  .auth-card    { padding: 2rem 1.25rem; }

  /* A-Z Filter */
  .az-filter { gap: 0.2rem; }
  .az-btn    { min-width: 1.7rem; height: 1.7rem; font-size: 0.74rem; }

  /* Glossar */
  .glossary-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-number { font-size: 1.75rem; }

  /* Heatmap */
  .heatmap-grid { grid-template-columns: repeat(53, 10px); }
  .hm-cell      { width: 10px; height: 10px; }

  /* Bar chart */
  .bar-row { grid-template-columns: 80px 1fr 2.25rem 2.5rem; }

  /* Wrapped */
  .wrapped-grid        { grid-template-columns: 1fr 1fr; }
  .wrapped-hero-number { font-size: 3.75rem; }
  .wrapped-hero        { padding: 2rem 1.25rem 1.75rem; }
  .wrapped-hero::before { font-size: 6rem; }
}

/* ── Kleinstgeräte (≤ 420px) ────────────────────────────────────────── */
@media (max-width: 420px) {
  #app                   { padding: 0 0.875rem 1.25rem; }
  body.is-logged-in #app { padding-top: 56px; }

  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .field-row   { grid-template-columns: 1fr; }
  .bar-row     { grid-template-columns: 70px 1fr 2rem 2.25rem; }
  .wrapped-grid { grid-template-columns: 1fr 1fr; }
  .wrapped-hero-number { font-size: 3rem; }
}


/* ── Toast ─────────────────────────────────────────────────────────── */
.hop-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.hop-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── App Footer ──────────────────────────────────────────────── */
.app-footer {
  margin-left: var(--sidebar-w);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.app-footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.app-footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.app-footer-links a:hover { color: var(--accent); }

.app-footer-sep { opacity: 0.4; }


/* ── Mention Autocomplete ──────────────────────────────── */
.mention-dropdown {
  position: absolute; z-index: 200;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.35);
  min-width: 180px; overflow: hidden;
  top: 100%; left: 0;
}
.mention-item {
  padding: 0.55rem 0.85rem; cursor: pointer; font-size: 0.875rem;
}
.mention-item:hover, .mention-item.active { background: var(--bg-card); }
.mention-item-name { color: var(--accent); }
.mention-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.mention-link:hover { text-decoration: underline; }

/* ── Comment Threads ──────────────────────────────────── */

.comment-tree { margin-bottom: 0.75rem; }

/* Root comment node */
.cn-node {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.cn-node:last-child { border-bottom: none; }

/* Indented reply */
.cn-indent {
  margin-left: 1rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--border);
  border-bottom: none;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.cn-body-row { display: block; }

.cn-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.cn-username {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.cn-username:hover { color: var(--accent); text-decoration: underline; }
.cn-time { font-size: 0.75rem; color: var(--text-muted); }

.cn-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.cn-deleted { font-size: 0.8rem; font-style: italic; color: var(--text-dim); }

.cn-actions {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

/* Toggle button for replies */
.cn-replies-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0.2rem 0;
  margin-bottom: 0.2rem;
  transition: color 0.15s;
}
.cn-replies-toggle:hover { color: var(--accent); }
.cn-replies-toggle-icon {
  font-size: 0.6rem;
  transition: transform 0.15s;
}

/* Collapsed replies */
.cn-replies { margin-top: 0.4rem; }
.cn-replies.hidden { display: none; }

/* Inline reply composer */
.cn-reply-form { margin-top: 0.35rem; }
.cn-reply-composer { display: block; }
.cn-reply-input {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 48px;
  margin-bottom: 0.35rem;
}
.cn-reply-btns { display: flex; gap: 0.5rem; }

/* Main comment input at bottom */
.comment-input-wrap { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.75rem; }
.comment-input-wrap .comment-input { flex: 1; resize: vertical; min-height: 40px; }

/* Username links (feed cards, etc.) */
.username-link { color: var(--text); text-decoration: none; }
.username-link:hover { color: var(--accent); text-decoration: underline; }

/* ── Blind Tasting ─────────────────────────────────────── */
.blind-tasting-badge {
  background: var(--bg-elevated); border: 1px solid var(--border-warm);
  border-radius: var(--radius); padding: 0.6rem 1rem;
  font-size: 0.875rem; color: var(--accent); margin-bottom: 1rem;
}
.blind-reveal-screen { text-align: center; padding: 2.5rem 1rem; }
.blind-reveal-name { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 1rem 0 0.25rem; }
.blind-reveal-brewery { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── COOKIE BANNER ─────────────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: rgba(20, 16, 9, 0.97);
    border-top: 1px solid rgba(232, 145, 10, 0.3);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; margin: 0; font-size: 0.83rem; color: var(--text-muted); min-width: 200px; }
.cookie-banner-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.45rem 1.1rem; border-radius: 8px; font-size: 0.83rem;
    font-family: inherit; cursor: pointer; border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.cookie-btn-accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-btn-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cookie-btn-decline { background: transparent; color: var(--text-muted); border-color: rgba(255,255,255,0.12); }
.cookie-btn-decline:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }
