/* ═══════════════════════════════════════════════════════════════════════════
   Swiftwing Lab - Weinkeller Design System
   Dark Glassmorphism, Cellar Aesthetics & Mobile-First PWA
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-root: radial-gradient(ellipse at top, #1a0b1c 0%, #0a040b 100%);
  --bg-solid: #09040a;
  --surface-glass: rgba(28, 14, 30, 0.68);
  --surface-glass-card: rgba(25, 12, 28, 0.62);
  --surface-hover: rgba(45, 20, 48, 0.75);
  --surface-input: rgba(12, 5, 14, 0.65);
  
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --border-glass: 1px solid rgba(255, 255, 255, 0.12);
  --border-accent: 1px solid rgba(225, 29, 72, 0.4);
  
  --accent: #e11d48;
  --accent-light: #fb7185;
  --accent-dark: #881337;
  --accent-rgb: 225, 29, 72;
  --accent-glow: 0 0 32px rgba(225, 29, 72, 0.22);
  
  --text-main: #ffffff;
  --text-muted: #a19ba6;
  --text-sub: #786f7e;

  /* Wine Type Badges */
  --type-rot: #f43f5e;
  --type-rot-bg: rgba(244, 63, 94, 0.15);
  --type-weiss: #eab308;
  --type-weiss-bg: rgba(234, 179, 8, 0.15);
  --type-rose: #f472b6;
  --type-rose-bg: rgba(244, 114, 182, 0.15);
  --type-schaum: #38bdf8;
  --type-schaum-bg: rgba(56, 189, 248, 0.15);
  --type-suess: #fb923c;
  --type-suess-bg: rgba(251, 146, 60, 0.15);
  --type-oxidiert: #d97706;
  --type-oxidiert-bg: rgba(217, 119, 6, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-solid);
  background-image: var(--bg-root);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px));
}

#app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  #app {
    padding: 0 24px;
  }
}

/* ── TOPBAR ─────────────────────────────────────────────────────────────────── */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: var(--border-subtle);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  #topbar {
    padding: 24px 16px 20px;
    margin-bottom: 26px;
  }
}

#topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fb7185, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#topbar-icon:active {
  transform: scale(0.92);
}

#topbar-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  cursor: pointer;
}

#topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  background: var(--surface-glass);
  border: var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 38px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.15s ease;
}

.topbar-btn:active {
  transform: scale(0.95);
  background: var(--surface-hover);
}

.topbar-btn.primary {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(136, 19, 55, 0.4));
  border-color: rgba(225, 29, 72, 0.5);
  color: #fff;
}

/* ── HERO BANNER ───────────────────────────────────────────────────────────── */
.hero-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-pill {
  background: rgba(0, 0, 0, 0.35);
  border: var(--border-subtle);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.stat-pill .num {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.stat-pill.rot { border-left: 3px solid var(--type-rot); }
.stat-pill.weiss { border-left: 3px solid var(--type-weiss); }
.stat-pill.rose { border-left: 3px solid var(--type-rose); }
.stat-pill.schaum { border-left: 3px solid var(--type-schaum); }
.stat-pill.suess { border-left: 3px solid var(--type-suess); }
.stat-pill.oxidiert { border-left: 3px solid var(--type-oxidiert); }

.hero-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn {
  min-height: 50px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  padding: 8px 14px;
  user-select: none;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-btn-title {
  white-space: nowrap;
}

.action-btn.btn-sommelier {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(168, 85, 247, 0.18));
  border-color: rgba(244, 63, 94, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.22);
}

.action-btn.btn-sommelier:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(168, 85, 247, 0.26));
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.3);
}

.action-btn.btn-sommelier .sommelier-icon {
  background: rgba(225, 29, 72, 0.3);
  color: #fecdd3;
}

.action-btn.btn-add-wine {
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.action-btn.btn-add-wine:hover {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.action-btn.btn-add-wine .add-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

@media (max-width: 480px) {
  .hero-actions-grid {
    gap: 8px;
  }
  .action-btn {
    font-size: 13px;
    padding: 6px 10px;
    gap: 7px;
    min-height: 48px;
  }
  .action-btn-icon-wrap {
    width: 28px;
    height: 28px;
  }
}

/* ── CONTROLS & SEARCH ─────────────────────────────────────────────────────── */
.controls-card {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-wrap {
  display: flex;
  gap: 10px;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-sub);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 42px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
  background: rgba(18, 8, 20, 0.85);
}

.search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}

/* Filter Trigger Button next to Search */
.btn-filter-trigger {
  min-height: 46px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-filter-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-filter-trigger:active {
  transform: scale(0.97);
}

.btn-filter-trigger.has-active-filter {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(225, 29, 72, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.3);
}

.filter-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  line-height: 1.2;
}

/* Active Filters Chips Bar */
.active-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-top: 2px;
}

.active-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.active-filter-chip-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.active-filter-chip-remove:hover {
  color: #fff;
}

.btn-clear-filters-mini {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.btn-clear-filters-mini:hover {
  color: #fff;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  background: var(--surface-glass);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  transition: all 0.15s ease;
}

.filter-tab:active {
  transform: scale(0.96);
}

.filter-tab.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}

.filter-tab .badge {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
}
.filter-tab.active .badge {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

.filter-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.toggle-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--text-muted);
}

.toggle-stock input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.sort-select {
  background: var(--surface-input);
  border: var(--border-glass);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  min-height: 38px;
}

/* ── WINE CARDS GRID ───────────────────────────────────────────────────────── */
.wines-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 680px) {
  .wines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wine-card {
  background: var(--surface-glass-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 640px) {
  .wine-card {
    padding: 15px 18px 13px;
    gap: 10px;
  }
}

.wine-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.wine-card:active {
  transform: scale(0.99);
}

.wine-card.out-of-stock {
  opacity: 0.65;
  filter: grayscale(30%);
}

.wine-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  width: 100%;
}

.wine-card-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.type-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.type-pill.rot { color: var(--type-rot); background: var(--type-rot-bg); }
.type-pill.weiss { color: var(--type-weiss); background: var(--type-weiss-bg); }
.type-pill.rose { color: var(--type-rose); background: var(--type-rose-bg); }
.type-pill.schaum,
.type-pill.sub-schaum { color: var(--type-schaum); background: var(--type-schaum-bg); }
.type-pill.suess,
.type-pill.sub-suess { color: var(--type-suess); background: var(--type-suess-bg); }
.type-pill.oxidiert,
.type-pill.sub-oxidiert { color: var(--type-oxidiert); background: var(--type-oxidiert-bg); }

.vintage-pill,
.bottle-size-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bottle-size-pill.mixed {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.3);
  color: #fecdd3;
}

.wine-card-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.stock-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stock-badge b {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.stock-badge.out {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
}

.stock-badge.out b {
  color: var(--text-sub);
}

.btn-food-advice-mini {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-food-advice-mini:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  color: #fff;
  transform: scale(1.06);
}

.btn-food-advice-mini:active {
  transform: scale(0.92);
}

.trink-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  line-height: 1.3;
  max-width: 100%;
}

.trink-badge .trink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* 🟢 Trinkreif */
.trink-badge.trink-ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.trink-badge.trink-ready .trink-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* 🟠 Bald geniessen (Höhepunkt / Fenster schliesst bald) */
.trink-badge.trink-peak {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}
.trink-badge.trink-peak .trink-dot {
  background: #f97316;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
}

/* 🟡 Noch lagern (Zu jung) */
.trink-badge.trink-young {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  color: #facc15;
}
.trink-badge.trink-young .trink-dot {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

/* ⚪ Höhepunkt überschritten */
.trink-badge.trink-past {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}
.trink-badge.trink-past .trink-dot {
  background: #94a3b8;
}

.card-actions-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-card-action {
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.wine-card-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}

.wine-card-thumb-wrap {
  position: relative;
  flex: 0 0 64px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.wine-card-thumb-wrap:hover {
  transform: scale(1.04);
  border-color: rgba(225, 29, 72, 0.5);
}

.wine-card-thumb-wrap:active {
  transform: scale(0.97);
}

.wine-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-zoom-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 4px;
  line-height: 1.1;
  pointer-events: none;
}

.wine-card-info {
  flex: 1;
  min-width: 0;
}

.wine-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.wine-producer {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wine-card-origin-line {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: -2px;
  margin-bottom: 8px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.wine-tasting-note {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(168, 85, 247, 0.08));
  border-left: 3px solid #e11d48;
  border-radius: 0 10px 10px 0;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.42;
  color: #e2e8f0;
  font-style: italic;
  display: flex;
  gap: 6px;
}

.note-quote-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--accent-light);
  font-weight: 800;
  font-style: normal;
  user-select: none;
}

.wine-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 0;
}

.meta-tag {
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-subtle);
  border-radius: 7px;
  padding: 3px 8px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-tag.location {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

.wine-card-note-wrap {
  margin-top: 2px;
}

.stock-count-display {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.stock-count-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stock-count-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-subtle);
  border-radius: 10px;
  padding: 2px;
}

.btn-stepper {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-stepper:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.2);
}

.btn-stepper.plus {
  background: rgba(225, 29, 72, 0.25);
  color: #fb7185;
}

.btn-food-advice-compact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  height: 32px;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-food-advice-compact:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  color: #fff;
}

.btn-food-advice-compact:active {
  transform: scale(0.95);
}

/* ── MODAL STEPPER BUTTONS (+ / -) ────────────────────────────────────────── */
.form-stepper-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-form-stepper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-form-stepper:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-form-stepper:active {
  transform: scale(0.92);
}

.btn-form-stepper.plus {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.45);
  color: #fb7185;
}

.btn-form-stepper.plus:hover {
  background: rgba(225, 29, 72, 0.35);
  border-color: rgba(225, 29, 72, 0.6);
}

.form-stepper-input {
  height: 44px !important;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  padding: 0 8px;
  width: 60px;
}

/* ── COLLAPSIBLE SOMMELIER NOTE ───────────────────────────────────────────── */
.btn-toggle-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 3px 8px;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 0 0;
  transition: all 0.15s ease;
  width: auto;
}

.btn-toggle-note:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-toggle-note.active {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.35);
  color: #fb7185;
}

.btn-toggle-note .note-chevron {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-toggle-note.active .note-chevron {
  transform: rotate(180deg);
}

/* ── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface-glass);
  border: var(--border-subtle);
  border-radius: 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ── MODALS & SHEETS ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

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

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #130716;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px 24px 0 0;
  padding: 22px 20px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6), var(--accent-glow);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: 22px;
    animation: scaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 17px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ── FORM ELEMENTS ─────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(20, 8, 22, 0.9);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.form-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 38px 11px 14px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a19ba6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-select:focus {
  border-color: var(--accent);
  background-color: rgba(20, 8, 22, 0.95);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.form-select option {
  background: #1a0b1c;
  color: #fff;
  padding: 8px;
}

.bottle-size-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottle-size-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.form-row {
  display: flex;
  gap: 12px;
}

/* ── WEINART 3-SEGMENT-CONTROL & SUBTYPE-CHIPS ───────────────────────────── */
.wine-type-segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.segment-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.segment-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.segment-btn:active {
  transform: scale(0.97);
}

.segment-btn.selected {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.segment-btn[data-val="rot"].selected {
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.2);
  color: #fff;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.2);
}

.segment-btn[data-val="weiss"].selected {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.18);
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.segment-btn[data-val="rose"].selected {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.2);
}

.subtype-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.subtype-chips-label {
  font-size: 11.5px;
  color: var(--text-sub);
}

.subtype-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.subtype-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  min-height: 32px;
  user-select: none;
}

.subtype-chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.subtype-chip:active {
  transform: scale(0.96);
}

.subtype-chip.selected {
  color: #fff;
}

.subtype-chip[data-val="schaum"].selected {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.subtype-chip[data-val="suess"].selected {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.2);
}

.subtype-chip[data-val="oxidiert"].selected {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.45);
  color: #fcd34d;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-primary {
  flex: 1;
  min-height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.12s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-glass);
  border-radius: 14px;
  color: var(--text-main);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.14);
}


/* ── SOMMELIER PAIRING VIEW ───────────────────────────────────────────────── */
.sommelier-input-wrap {
  margin-bottom: 18px;
}

.sommelier-dish-input {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  resize: vertical;
  outline: none;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.sommelier-dish-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.quick-chips-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.06);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.3);
  color: #fff;
}

.sommelier-loading {
  text-align: center;
  padding: 30px 10px;
  display: none;
}

.sommelier-loading.active {
  display: block;
}

.sommelier-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(225, 29, 72, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s infinite linear;
}

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

.sommelier-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.sommelier-intro-box {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(136, 19, 55, 0.15));
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #ffe4e6;
  line-height: 1.5;
}

.recommendation-card {
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-score-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.rec-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.rec-producer-vintage {
  font-size: 13px;
  color: var(--text-muted);
}

.rec-location-tag {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

.rec-rationale {
  font-size: 13px;
  line-height: 1.5;
  color: #f1f5f9;
}

.rec-serving-tip {
  font-size: 12px;
  color: #fca5a5;
  background: rgba(225, 29, 72, 0.1);
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.btn-take-bottle {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-take-bottle:active {
  transform: scale(0.97);
}

/* ── REVERSE DISH RECOMMENDATIONS ─────────────────────────────────────────── */
.dish-rec-item {
  background: rgba(0, 0, 0, 0.35);
  border: var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.dish-rec-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.dish-rec-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dish-rec-rationale {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── KI-ETIKETTEN-SCAN & VIVINO-STYLE STYLES ──────────────────────────────── */
.label-scan-sheet {
  max-width: 460px;
}

.label-preview-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 240px;
  margin: 14px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #060207;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.label-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.label-scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ec4899, #a855f7, transparent);
  box-shadow: 0 0 14px #d946ef, 0 0 28px #a855f7;
  animation: labelLaserScan 2s ease-in-out infinite alternate;
}

@keyframes labelLaserScan {
  0% { top: 6%; }
  100% { top: 92%; }
}

.label-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #d946ef;
  border-style: solid;
  pointer-events: none;
}
.label-corner.tl { top: 10px; left: 10px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.label-corner.tr { top: 10px; right: 10px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.label-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.label-corner.br { bottom: 10px; right: 10px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }

.label-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-top: 14px;
}

.label-status-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.label-status-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.4;
}

/* ── UNIFIED PHOTO & AI SCAN ZONE (MODAL) ────────────────────────────────── */
.wine-photo-upload-group {
  margin-bottom: 18px;
}

.wine-photo-picker-wrap {
  width: 100%;
}

.wine-photo-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wine-photo-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.wine-photo-lead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wine-photo-icon-glow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #fda4af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wine-photo-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wine-photo-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wine-photo-hint {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.35;
}

.wine-photo-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-photo-pick {
  min-height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-photo-pick.primary {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.18);
}

.btn-photo-pick.primary:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(168, 85, 247, 0.25));
  border-color: rgba(244, 63, 94, 0.5);
}

.btn-photo-pick.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.btn-photo-pick.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-photo-pick:active {
  transform: scale(0.97);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wine-photo-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
}

.wine-photo-preview-img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.wine-photo-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.photo-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  width: fit-content;
}

.wine-photo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-photo-action {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: all 0.15s ease;
}

.btn-photo-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-photo-action.danger {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-photo-action.danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.detected-info-card {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.detected-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 6px;
}

.detected-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.18);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.detected-origin {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.detected-row {
  font-size: 12.5px;
  color: #e2e8f0;
  margin-top: 3px;
}

.detected-charakter {
  margin-top: 5px;
  font-style: italic;
  color: #e9d5ff;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5px;
  font-size: 12px;
}

/* ── DESCRIPTION & AI SPARKLE BUTTON ──────────────────────────────────────── */
.form-label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.btn-ai-sparkle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ai-sparkle:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(217, 70, 239, 0.32));
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.btn-ai-sparkle:active {
  transform: scale(0.96);
}

.btn-ai-sparkle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-input);
  border: var(--border-subtle);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

/* ── LIGHTBOX MODAL ───────────────────────────────────────────────────────── */
.lightbox-sheet {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 6, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.lightbox-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.lightbox-img {
  max-width: 82vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* ── TOAST & ALERTS ────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 20px));
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(18, 9, 20, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  text-align: center;
  max-width: 90vw;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MULTI-VINTAGE & CELLAR PROFILE EXTENSIONS ────────────────────────────── */

/* Vintage Chips Row on Wine Card */
.wine-card-vintages-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vintage-chip {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vintage-chip .vchip-size {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.95;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.1;
}

.vintage-chip b {
  color: #fb7185;
  font-weight: 700;
}

.vintage-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-wine-profile-open {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
}

.btn-wine-profile-open:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-wine-profile-open:active {
  transform: scale(0.96);
}

/* Duplicate Wine Alert Banner */
.duplicate-alert-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(202, 138, 4, 0.22));
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.duplicate-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.duplicate-banner-content {
  flex: 1;
}

.duplicate-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
}

.duplicate-banner-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  line-height: 1.3;
}

.btn-duplicate-action {
  background: #eab308;
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.btn-duplicate-action:active {
  transform: scale(0.95);
}

/* Purchase Section in Wine Form */
.form-purchase-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 14px 6px;
  margin-bottom: 16px;
}

.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── WINE DETAIL PROFILE SHEET ────────────────────────────────────────────── */
.wine-detail-sheet {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.detail-hero-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-wine-thumb-box {
  position: relative;
  width: 76px;
  height: 106px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-wine-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-info {
  flex: 1;
  min-width: 0;
}

.detail-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-badge.rot { color: var(--type-rot); background: var(--type-rot-bg); }
.detail-badge.weiss { color: var(--type-weiss); background: var(--type-weiss-bg); }
.detail-badge.rose { color: var(--type-rose); background: var(--type-rose-bg); }
.detail-badge.schaum,
.detail-badge.sub-schaum { color: var(--type-schaum); background: var(--type-schaum-bg); }
.detail-badge.suess,
.detail-badge.sub-suess { color: var(--type-suess); background: var(--type-suess-bg); }
.detail-badge.oxidiert,
.detail-badge.sub-oxidiert { color: var(--type-oxidiert); background: var(--type-oxidiert-bg); }
.detail-badge.stock.in-stock { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.detail-badge.stock.empty { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.detail-meta-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.detail-wine-description {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

/* Vintage Tabs Navigation */
.vintage-nav-section {
  margin-bottom: 16px;
}

.vintage-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
}

.btn-add-vintage-pill {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 32px;
}

.btn-add-vintage-pill:active {
  transform: scale(0.95);
}

.vintage-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.vintage-tab-btn {
  background: var(--surface-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 40px;
}

.vintage-tab-btn.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.35), rgba(136, 19, 55, 0.5));
  border-color: rgba(225, 29, 72, 0.6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.vintage-tab-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.vintage-tab-btn.active .vintage-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Active Vintage Detail Card */
.active-vintage-card {
  background: rgba(18, 9, 20, 0.7);
  border: var(--border-glass);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vintage-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vintage-year-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.vintage-trink-status {
  margin-top: 4px;
}

.vintage-actions-quick {
  display: flex;
  gap: 6px;
}

.vintage-stock-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 16px;
}

.stock-badge-large {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stock-num-hero {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stock-unit-hero {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.vintage-location-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.vintage-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vintage-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

@media (max-width: 480px) {
  .vintage-action-buttons {
    grid-template-columns: 1fr;
  }
}

.btn-action-trinken {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}

.btn-action-kauf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}

/* ── CELLAR CHRONOLOGY & TIMELINE ─────────────────────────────────────────── */
.chronik-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 8px;
}

.chronik-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chronik-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chronik-count-badge {
  font-size: 11px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.chronik-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.chronik-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 17px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.timeline-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.timeline-badge.konsum {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(190, 18, 60, 0.4));
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.timeline-badge.kauf {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.4));
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
}

.timeline-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-qty {
  font-size: 12px;
  font-weight: 800;
}

.timeline-qty.konsum {
  color: #f87171;
}

.timeline-qty.kauf {
  color: #34d399;
}

.timeline-details-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.timeline-meta-chip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
}

.timeline-stars {
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: 1px;
}

.timeline-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.4;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.empty-chronik {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-sub);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ── STAR RATING WIDGET ───────────────────────────────────────────────────── */
.star-rating-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-btn.active {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.star-btn:active {
  transform: scale(1.2);
}

.btn-clear-rating {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 14px;
  padding: 8px;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}

/* Compact quick chips */
.quick-chips-row.compact {
  margin-top: 6px;
  gap: 6px;
}

.quick-chips-row.compact .quick-chip {
  font-size: 11px;
  padding: 4px 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTER MODAL SHEET & ADVANCED CONTROLS
   ═══════════════════════════════════════════════════════════════════════════ */
.filter-sheet {
  max-width: 500px;
}

.filter-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 0;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.filter-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-pill-opt:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.filter-pill-opt:active {
  transform: scale(0.96);
}

.filter-pill-opt.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}

.filter-pill-opt .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.filter-pill-opt .pill-dot.dot-ready { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.filter-pill-opt .pill-dot.dot-peak  { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.6); }
.filter-pill-opt .pill-dot.dot-young { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.6); }
.filter-pill-opt .pill-dot.dot-past  { background: #94a3b8; }
.filter-pill-opt .pill-dot.dot-unknown { background: #64748b; }

.filter-select {
  width: 100%;
  min-height: 44px;
  background: var(--surface-input);
  border: var(--border-glass);
  border-radius: 12px;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.filter-actions-footer {
  margin-top: 10px;
}

.btn-card-action.btn-danger-action:hover {
  background: rgba(225, 29, 72, 0.2);
  color: #f43f5e;
  border-color: rgba(225, 29, 72, 0.4);
}
