/* ==========================================================================
   Wijnlijst — Unified Figma Design System (iPhone 18 Pro - 4 Aesthetic)
   Colors: Deep Wine (#660033), M3 Surface-Container-High (#ECE6F0),
           Gold Accents (#FCEFCF -> #D4AF37 -> #8F6A15), Crisp White Cards
   Typography: Cormorant Garamond (Italic Serifs) & Roboto (Material 3 Sans)
   ========================================================================== */

:root {
  --bg: #660033;
  --surface: #ECE6F0;
  --surface-hover: #F5EFF7;
  --surface-card: #FFFFFF;
  --border: #ECE6F0;
  --border-pill: #ECE6F0;
  --text-primary: #1D1B20;
  --text-secondary: #49454F;
  --text-muted: #79747E;
  --caret-blue: #660033;

  /* Figma Brand & Material 3 Palette */
  --figma-bg: #660033;
  --figma-m3-surface: #ECE6F0;
  --figma-m3-on-surface: #1D1B20;
  --figma-m3-on-surface-variant: #49454F;
  --figma-gold: #D4AF37;
  --figma-gold-light: #FCEFCF;
  --figma-gold-dark: #8F6A15;
  --figma-gold-gradient: linear-gradient(135deg, #FCEFCF 0%, #D4AF37 50%, #8F6A15 100%);
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-m3: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Subtle wine & value accents */
  --wine-red: #660033;
  --wine-red-bg: #FBEBF1;
  --wine-white: #854d0e;
  --wine-white-bg: #FEF9EE;
  --wine-rose: #9d174d;
  --wine-rose-bg: #FDF2F8;
  --wine-sparkling: #1e40af;
  --wine-sparkling-bg: #EFF6FF;
  --wine-dessert: #92400e;
  --wine-dessert-bg: #FFFBEB;

  --value-great-text: #065f46;
  --value-great-bg: #ecfdf5;
  --value-great-border: #a7f3d0;

  --value-fair-text: #3f3f46;
  --value-fair-bg: #f4f4f5;
  --value-fair-border: #d4d4d8;

  --value-high-text: #991b1b;
  --value-high-bg: #fef2f2;
  --value-high-border: #fecaca;

  --match-text: #15080E;
  --match-bg: #FCEFCF;

  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: #660033;
  background-image:
    radial-gradient(ellipse at 50% 12%, rgba(139, 30, 63, 0.45) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='34' y='-14' width='28' height='28' rx='7' transform='rotate(45 48 0)' fill='%23ffffff' fill-opacity='0.08'/%3E%3Crect x='-14' y='34' width='28' height='28' rx='7' transform='rotate(45 0 48)' fill='%23ffffff' fill-opacity='0.08'/%3E%3Crect x='82' y='34' width='28' height='28' rx='7' transform='rotate(45 96 48)' fill='%23ffffff' fill-opacity='0.08'/%3E%3Crect x='34' y='82' width='28' height='28' rx='7' transform='rotate(45 48 96)' fill='%23ffffff' fill-opacity='0.08'/%3E%3Crect x='34' y='34' width='28' height='28' rx='7' transform='rotate(45 48 48)' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto, 96px 96px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-m3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

button,
input,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ==========================================================================
   HOME VIEW — Exact Figma Styling (iPhone 18 Pro - 4)
   ========================================================================== */

.home-view {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 16px 24px;
  background: transparent;
  position: relative;
}

.home-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: clamp(16px, 4.5vh, 44px);
}

/* Frame 1 (370px x 254px) */
.hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 370px;
  gap: 14px;
}

/* svg-gb-2 (190px x 190px) */
.hero-logo-svg {
  width: 190px;
  height: 190px;
  flex: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* Wijn menu */
.brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 14vw, 57px);
  line-height: 64px;
  letter-spacing: -0.25px;
  color: #FFFFFF;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  margin: 0;
}

/* Search bar section */
.search-section {
  width: 100%;
  max-width: 370px;
  position: relative;
}

.search-bar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

/* Material 3 surface-container-high search bar */
.search-pill {
  width: 100%;
  max-width: 720px;
  height: 56px;
  background: #ECE6F0;
  border-radius: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px 8px 4px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}

.search-pill:focus-within {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38), 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.search-content {
  flex: 1;
  display: flex;
  align-items: center;
  height: 48px;
  min-width: 0;
}

.search-input {
  width: 100%;
  height: 24px;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: #1D1B20;
  background: transparent;
  border: none;
  outline: none;
}

.search-input::placeholder {
  color: #49454F;
}

.search-trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.search-trailing-icon-btn,
.clear-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #49454F;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-trailing-icon-btn:hover,
.clear-circle-btn:hover {
  background-color: rgba(73, 69, 79, 0.12);
  color: #1D1B20;
}

.clear-circle-btn svg {
  width: 18px;
  height: 18px;
}

.search-trailing-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   INSTANT AUTOCOMPLETE SUGGESTIONS
   ========================================================================== */

.suggestions-container {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 100;
  animation: fade-slide 0.15s ease-out;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestions-meta {
  padding: 12px 18px 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #660033;
  border-bottom: 1px solid #ECE6F0;
  background: #FAF7FB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestions-list {
  list-style: none;
  max-height: min(56vh, 430px);
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #ECE6F0;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #F5EFF7;
}

.suggestion-main {
  min-width: 0;
  flex: 1;
}

.suggestion-name {
  font-family: 'Roboto', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  color: #1D1B20;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-name mark {
  background: transparent;
  color: #660033;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.suggestion-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: #49454F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.suggestion-badge.has-list {
  background: #660033;
  color: #FFFFFF;
}

.suggestion-badge.has-list::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
}

.suggestion-badge.external-list {
  background: #ECE6F0;
  color: #49454F;
}

.suggestion-empty {
  padding: 24px 18px;
  text-align: center;
  color: #49454F;
  font-size: 14px;
}

.suggestion-footer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #F8F5FA;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #660033;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.suggestion-footer-item:hover {
  background: #ECE6F0;
}

.suggestion-arrow {
  color: #D4AF37;
  font-size: 14px;
  font-weight: bold;
}

.suggestions-browse-all-link {
  background: none;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #660033;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
}

.suggestions-browse-all-link:hover {
  color: #000000;
}

/* Featured / Quick Restaurants on Home View */
.home-featured-section {
  width: 100%;
  max-width: 370px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== SMART CITY & AREA SELECTOR ==================== */
.smart-city-section {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 2px;
}

.smart-city-bar {
  display: flex;
  align-items: center;
  background: rgba(30, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.smart-city-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 10px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.smart-city-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.smart-city-btn.active {
  background: #ECE6F0;
  color: #660033;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.city-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.city-btn-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  transition: all 0.2s ease;
}

.smart-city-btn.active .city-btn-count {
  background: rgba(102, 0, 51, 0.15);
  color: #660033;
}

/* Horizontal scrolling smart sub-filters (wijken en thema's) */
.smart-subfilter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.smart-subfilter-scroll::-webkit-scrollbar {
  display: none;
}

.subfilter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.subfilter-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.subfilter-chip.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  color: #FCEFCF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Interactive city switch badge inside the search pill */
.search-city-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #660033;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 11px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.search-city-badge-btn:hover {
  background: #4D0026;
  border-color: #D4AF37;
  transform: translateY(-1px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  display: inline-block;
}

.badge-caret {
  transition: transform 0.15s ease;
  stroke: #FCEFCF;
}

.home-city-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.home-city-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-city-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.home-city-pill.active {
  background: #ECE6F0;
  color: #660033;
  border-color: #ECE6F0;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.city-tag-inline {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.city-tag-inline.amsterdam {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.city-tag-inline.arnhem {
  background: rgba(212, 175, 55, 0.2);
  color: #FCEFCF;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.dir-city-tag {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.dir-city-tag.amsterdam {
  background: #FEE2E2;
  color: #991B1B;
}

.dir-city-tag.arnhem {
  background: #FEF3C7;
  color: #92400E;
}

.home-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.home-featured-title {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.75);
}

.home-browse-all-link {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #FCEFCF;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-browse-all-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.home-featured-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-restaurant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  color: #FFFFFF;
}

.home-restaurant-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.home-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}

.home-card-meta {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-badge {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.2);
  color: #FCEFCF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Whisper-quiet footer on Home screen */
.home-subtle-footer {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.subtle-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.subtle-link-btn:hover {
  color: #FCEFCF;
  text-decoration-color: #D4AF37;
  background: rgba(255, 255, 255, 0.08);
}

.subtle-dot {
  color: rgba(255, 255, 255, 0.35);
}

.admin-footer-link {
  color: #FCEFCF !important;
  font-weight: 600;
}

/* ==========================================================================
   GLOBAL DETAIL VIEW LAYOUT & TOP NAVIGATION
   ========================================================================== */

.detail-view {
  min-height: 100dvh;
  padding: 24px 16px 80px;
  display: flex;
  justify-content: center;
  background: transparent;
}

.detail-container {
  width: 100%;
  max-width: 800px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pill-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 28px;
  border: none;
  background: #ECE6F0;
  color: #1D1B20;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}

.pill-nav-btn:hover {
  background: #F5EFF7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.pill-nav-btn svg {
  width: 18px;
  height: 18px;
  color: #49454F;
}

.accent-pill-btn {
  background: linear-gradient(135deg, #FCEFCF 0%, #D4AF37 50%, #8F6A15 100%);
  color: #15080E;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.accent-pill-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* ==========================================================================
   RESTAURANT WINE LIST VIEW
   ========================================================================== */

/* Restaurant Header Card */
.restaurant-header {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 26px 28px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rest-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rest-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #660033;
  margin: 0;
}

.rest-meta-line {
  margin-top: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #49454F;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rest-meta-line strong {
  color: #1D1B20;
  font-weight: 600;
}

.rest-actions-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1D1B20;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 24px;
  border: none;
  background: #ECE6F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-link-pill:hover {
  background: #F5EFF7;
  color: #660033;
  transform: translateY(-1px);
}

.summary-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 24px;
}

/* Taste Profile Panel */
.taste-panel {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.taste-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.taste-panel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  color: #660033;
  line-height: 1.2;
}

.taste-panel-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  color: #49454F;
  margin-top: 4px;
}

.text-reset-btn {
  background: #ECE6F0;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #660033;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.text-reset-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.taste-group {
  margin-top: 16px;
}

.taste-group-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #660033;
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scrollable-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.scrollable-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 28px;
  border: none;
  background: #ECE6F0;
  color: #49454F;
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #e2dbe8;
  color: #1D1B20;
}

.chip.active {
  background: #660033;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 0, 51, 0.35);
}

.sliders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin-top: 18px;
}

@media (max-width: 580px) {
  .sliders-grid {
    grid-template-columns: 1fr;
  }
}

.slider-item {
  background: #ECE6F0;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #49454F;
  margin-bottom: 8px;
}

.slider-labels strong {
  color: #660033;
  font-weight: 700;
  font-size: 13px;
}

input[type="range"] {
  width: 100%;
  accent-color: #660033;
  cursor: pointer;
}

/* Personalized Spotlight Recommendations Card */
.menu-recommendations {
  margin-bottom: 22px;
  padding: 22px 26px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.spotlight-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: #660033;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.2px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.spotlight-card {
  background: #ECE6F0;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spotlight-card:hover {
  background: #FFFFFF;
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

/* Menu Filter & Sort Controls */
.menu-controls {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secondary-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.format-toggle,
.view-switcher {
  display: inline-flex;
  background: #ECE6F0;
  padding: 4px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.format-btn {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #49454F;
  cursor: pointer;
  transition: all 0.14s ease;
}

.format-btn.active {
  background: #660033;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 0, 51, 0.35);
}

.sort-select {
  height: 42px;
  padding: 0 18px;
  border-radius: 28px;
  border: none;
  background: #ECE6F0;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1D1B20;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  outline: none;
  transition: all 0.15s ease;
}

.sort-select:focus {
  box-shadow: 0 0 0 2px #660033;
}

/* Wine List Content & Separate Category Cards */
.wine-list-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wine-section {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  margin-bottom: 0;
  overflow: hidden;
}

.wine-section-title {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 500;
  color: #3F3F46;
  padding: 18px 20px 4px 20px;
  margin: 0;
  border-bottom: none;
  display: block;
}

.wine-section-rows {
  display: flex;
  flex-direction: column;
}

.wine-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px 20px 20px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #E4E4E7;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* Wine Bottle Photo Thumbnails */
.wine-thumb-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF8F2;
  border: none;
  border-radius: 12px;
  padding: 6px 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

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

.wine-thumb-real-photo {
  mix-blend-mode: multiply;
}

.wine-thumb-overview {
  width: 92px;
  height: 148px;
  border-radius: 12px;
}

.wine-row:hover .wine-thumb-overview {
  transform: translateY(-2px);
}

.spotlight-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-card-content {
  flex: 1;
  min-width: 0;
}

.wine-thumb-spotlight {
  width: 48px;
  height: 80px;
  border-radius: 9px;
}

.modal-wine-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

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

.wine-thumb-modal {
  width: 82px;
  height: 136px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(24, 18, 16, 0.09);
}

.wine-thumb-mini {
  width: 38px;
  height: 64px;
  border-radius: 8px;
}

.wine-row:last-child {
  border-bottom: none;
}

.wine-row:hover {
  background: #FAFAFA;
  border-color: #E4E4E7;
  box-shadow: none;
  transform: none;
}

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

.wine-top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.wine-style-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.style-Wit { background: var(--wine-white-bg); color: var(--wine-white); }
.style-Rood { background: var(--wine-red-bg); color: var(--wine-red); }
.style-Rosé { background: var(--wine-rose-bg); color: var(--wine-rose); }
.style-Mousserend { background: var(--wine-sparkling-bg); color: var(--wine-sparkling); }
.style-Dessert { background: var(--wine-dessert-bg); color: var(--wine-dessert); }

.match-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FCEFCF 0%, #D4AF37 50%, #8F6A15 100%);
  color: #15080E;
}

.value-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
}

.value-great {
  background: var(--value-great-bg);
  color: var(--value-great-text);
  border-color: var(--value-great-border);
}

.value-fair {
  background: var(--value-fair-bg);
  color: var(--value-fair-text);
  border-color: var(--value-fair-border);
}

.value-high {
  background: var(--value-high-bg);
  color: var(--value-high-text);
  border-color: var(--value-high-border);
}

.wine-tag-chip.custom-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #ecfdf5;
  color: #065f46;
}

.wine-brand,
.wine-name {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19.5px;
  font-weight: 700;
  color: #5C0628;
  line-height: 1.22;
  margin: 0;
}

.wine-subname {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #5C0628;
  line-height: 1.32;
  margin-top: 3px;
}

.wine-origin {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #27272A;
  line-height: 1.35;
  margin-top: 8px;
}

.wine-notes-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 10px 0 0 0;
  font-size: 16.5px;
  font-weight: 400;
  color: #27272A;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pairing-tag {
  background: #ECE6F0;
  color: #49454F;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
}

.wine-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  flex-shrink: 0;
  min-width: 88px;
}

.price-main {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #5C0628;
  line-height: 1.28;
}

.price-sub {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #49454F;
  line-height: 1.32;
  margin-top: 5px;
}

.price-multiplier-badge {
  margin-top: 14px;
  padding: 7px 16px;
  min-width: 72px;
  text-align: center;
  background: #EDFDF3;
  border: 1px solid #C6D8CE;
  border-radius: 10px;
  color: #266041;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
}

.price-multiplier-badge.tier-great {
  background: #EDFDF3;
  border-color: #9AE6B4;
  color: #166534;
}

.price-multiplier-badge.tier-fair {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: #3F3F46;
}

.price-multiplier-badge.tier-high {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.price-retail {
  font-size: 11.5px;
  color: #71717a;
  margin-top: 4px;
}

/* Empty / Pending Wine List Card */
.pending-list-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  margin-top: 12px;
}

.pending-list-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  color: #660033;
  margin-bottom: 10px;
}

.pending-list-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  color: #49454F;
  max-width: 500px;
  margin: 0 auto 22px;
  line-height: 1.5;
}

.pending-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   GLOBAL WINE DISCOVERY & DIRECTORY VIEW
   ========================================================================== */

.section-intro {
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 6.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  margin: 0;
}

.section-desc {
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #FCEFCF;
  line-height: 1.5;
  opacity: 0.95;
}

.global-filter-bar {
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ECE6F0;
  border-radius: 28px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.budget-label {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  color: #1D1B20;
  white-space: nowrap;
}

.budget-label strong {
  color: #660033;
  font-weight: 700;
}

.directory-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.dir-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-card:hover {
  border-color: #D4AF37;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.25);
}

.dir-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  color: #660033;
}

.dir-card-meta {
  font-size: 13px;
  color: #49454F;
  margin-top: 4px;
}

.dir-card-status {
  margin-top: 12px;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: #ECE6F0;
  color: #1D1B20;
}

/* ==========================================================================
   MODALS (Wine Detail, PDF Dropzone, Login, Edit Wine)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 0, 15, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.small-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ECE6F0;
  color: #49454F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.small-circle-btn:hover {
  background: #F5EFF7;
  color: #1D1B20;
}

.modal-heading,
.modal-wine-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  color: #660033;
  line-height: 1.25;
}

.modal-origin {
  font-size: 14px;
  color: #49454F;
  margin-top: 4px;
}

.price-compare-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ECE6F0;
  border: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.compare-col span {
  display: block;
  font-size: 11.5px;
  color: #49454F;
}

.compare-col strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  color: #660033;
  font-weight: 700;
}

.flavor-bars {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flavor-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.flavor-bar-label {
  width: 76px;
  color: #49454F;
  font-weight: 500;
}

.flavor-track {
  flex: 1;
  height: 8px;
  background: #ECE6F0;
  border-radius: 9999px;
  overflow: hidden;
}

.flavor-fill {
  height: 100%;
  background: #660033;
  border-radius: 9999px;
}

/* Modal Tabs & Dropzone */
.modal-tabs {
  display: flex;
  gap: 6px;
  background: #ECE6F0;
  padding: 4px;
  border-radius: 28px;
  margin-bottom: 20px;
}

.modal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #49454F;
  border: none;
  background: transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab-btn:hover {
  color: #1D1B20;
}

.modal-tab-btn.active {
  background: #660033;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 0, 51, 0.35);
}

.modal-tab-btn .tab-icon {
  width: 16px;
  height: 16px;
}

.modal-pane {
  display: flex;
  flex-direction: column;
}

.pdf-dropzone {
  border: 2px dashed rgba(102, 0, 51, 0.35);
  border-radius: 24px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  background: #FAF7FB;
  transition: all 0.2s ease;
  position: relative;
}

.pdf-dropzone:hover,
.pdf-dropzone.dragover {
  border-color: #660033;
  background: #F3EAF3;
}

.hidden-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECE6F0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #660033;
  box-shadow: 0 4px 12px rgba(102, 0, 51, 0.15);
}

.dropzone-icon svg {
  width: 26px;
  height: 26px;
}

.dropzone-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: #660033;
  margin-bottom: 6px;
}

.dropzone-subtitle {
  font-size: 13.5px;
  color: #49454F;
  margin-bottom: 12px;
}

.dropzone-subtitle strong {
  color: #660033;
  font-weight: 600;
}

.dropzone-tip {
  display: inline-block;
  font-size: 11.5px;
  color: #79747E;
  max-width: 360px;
  line-height: 1.35;
}

.pdf-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: #ECE6F0;
  border-radius: 20px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1D1B20;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #D4AF37;
  border-top-color: #660033;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.pdf-preview-container {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}

.pdf-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ECE6F0;
  margin-bottom: 12px;
}

.pdf-preview-header strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #660033;
}

.pdf-preview-sub {
  font-size: 12px;
  color: #49454F;
  margin-top: 2px;
}

.compact-submit {
  width: auto !important;
  padding: 9px 18px !important;
  font-size: 13.5px !important;
  margin: 0 !important;
}

.pdf-preview-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.pdf-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #FAF7FB;
  border: 1px solid #ECE6F0;
  border-radius: 16px;
  font-size: 13.5px;
}

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

.pdf-wine-title {
  font-weight: 600;
  color: #1D1B20;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-wine-meta {
  font-size: 11.5px;
  color: #49454F;
  margin-top: 2px;
}

.pdf-wine-prices {
  text-align: right;
  flex-shrink: 0;
}

.pdf-price-bottle {
  font-weight: 700;
  color: #660033;
  font-size: 14px;
}

.pdf-price-glass {
  font-size: 11.5px;
  color: #49454F;
}

.remove-parsed-wine-btn {
  background: transparent;
  border: none;
  color: #79747E;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.remove-parsed-wine-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.remove-parsed-wine-btn svg {
  width: 14px;
  height: 14px;
}

/* Forms in Modals */
.add-wine-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: #49454F;
}

.form-row input,
.form-row select {
  height: 46px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: #ECE6F0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #1D1B20;
  outline: none;
  transition: all 0.15s ease;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #660033;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.primary-submit-btn {
  margin-top: 8px;
  height: 48px;
  border-radius: 28px;
  border: none;
  background: #660033;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(102, 0, 51, 0.35);
  transition: all 0.15s ease;
}

.primary-submit-btn:hover {
  background: #7d003e;
  transform: translateY(-1px);
}

.small-modal-card {
  max-width: 440px !important;
}

.modal-subtext {
  font-size: 14px;
  color: #49454F;
  line-height: 1.45;
  margin-bottom: 14px;
}

.login-error {
  padding: 10px 14px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
}

.modal-actions-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.danger-text {
  color: #dc2626 !important;
}

.danger-text:hover {
  background: #fee2e2 !important;
}

/* ==========================================================================
   ADMIN DASHBOARD & MANAGEMENT STYLES
   ========================================================================== */

/* Top Sticky Admin Indicator Bar */
.admin-indicator-bar {
  background: #3D001E;
  color: #FFFFFF;
  padding: 10px 18px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-indicator-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.admin-help-text {
  color: #FCEFCF;
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .admin-help-text {
    display: none;
  }
}

.admin-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-pill-btn {
  background: #ECE6F0;
  color: #1D1B20;
  border: none;
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-pill-btn:hover {
  background: #F5EFF7;
  color: #660033;
}

.admin-pill-btn.text-btn {
  background: transparent;
  border-color: transparent;
  color: #FCEFCF;
}

.admin-pill-btn.text-btn:hover {
  color: #FFFFFF;
}

/* Header & Badges */
.admin-header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 28px;
  background: linear-gradient(135deg, #FCEFCF 0%, #D4AF37 50%, #8F6A15 100%);
  color: #15080E;
}

.admin-logout-btn {
  background: #ECE6F0;
  border: none;
  padding: 7px 16px;
  border-radius: 28px;
  font-size: 12.5px;
  font-weight: 600;
  color: #49454F;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-logout-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* Pending Uploads Card */
.admin-pending-card {
  background: #FFFFFF;
  border: 2px solid #D4AF37;
  border-radius: 28px;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

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

.admin-pending-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pending-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffedd5;
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.admin-pending-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: #660033;
  margin: 0;
}

.admin-pending-subtitle {
  font-size: 13.5px;
  color: #49454F;
  margin: 3px 0 0 0;
}

.warning-pill {
  background: #ffedd5 !important;
  color: #c2410c !important;
  font-weight: 700 !important;
  border-radius: 20px;
}

.admin-pending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-pending-item {
  background: #FDFBF7;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-pending-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-pending-rest-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: #660033;
}

.admin-pending-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #79747E;
}

.admin-pending-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 28px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.admin-btn-approve:hover {
  background: #059669;
  transform: translateY(-1px);
}

.admin-btn-delete-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 28px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn-delete-upload:hover {
  background: #fca5a5;
  color: #991b1b;
}

.admin-btn-preview-toggle {
  background: #ECE6F0;
  border: none;
  border-radius: 28px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  color: #1D1B20;
}

.admin-btn-preview-toggle:hover {
  background: #F5EFF7;
}

.admin-pending-wines-preview {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #fed7aa;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-pending-wine-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #FFFFFF;
  border-radius: 12px;
  font-size: 12.5px;
}

.admin-pending-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f97316;
  color: #FFFFFF;
  border: none;
  border-radius: 28px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.admin-pending-alert-badge:hover {
  background: #ea580c;
  transform: scale(1.03);
}

.admin-delete-all-custom-btn {
  margin-left: auto;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-delete-all-custom-btn:hover {
  background: #fca5a5;
  color: #7f1d1d;
}

/* Restaurant Selector Card */
.admin-selector-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.admin-select-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.admin-select {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  border: none;
  background: #ECE6F0;
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  color: #1D1B20;
  outline: none;
  transition: all 0.15s ease;
}

.admin-select:focus {
  box-shadow: 0 0 0 2px #660033;
}

.admin-stats-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ECE6F0;
  font-size: 13px;
  color: #49454F;
}

.admin-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #ECE6F0;
  font-size: 12px;
  color: #1D1B20;
}

.admin-stat-chip.accent {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

/* Admin Action Toolbar */
.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 28px;
  border: none;
  background: #ECE6F0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1D1B20;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.15s ease;
}

.admin-tool-btn:hover {
  background: #F5EFF7;
  transform: translateY(-1px);
}

.admin-tool-btn.primary {
  background: #660033;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(102, 0, 51, 0.35);
}

.admin-tool-btn.primary:hover {
  background: #7d003e;
}

.admin-tool-btn.danger {
  color: #dc2626;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.admin-tool-btn.danger:hover {
  background: #fee2e2;
}

.admin-tool-btn svg {
  width: 17px;
  height: 17px;
}

/* Admin Filter Bar */
.admin-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-search-input {
  flex: 1;
  min-width: 220px;
  height: 44px;
  padding: 0 18px;
  border-radius: 24px;
  border: none;
  background: #ECE6F0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.15s ease;
}

.admin-search-input:focus {
  box-shadow: 0 0 0 2px #660033;
}

/* Admin Wine Table Card */
.admin-wine-table-card {
  background: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ECE6F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: #660033;
}

.admin-count-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #ECE6F0;
  color: #49454F;
}

.admin-wines-container {
  display: flex;
  flex-direction: column;
}

.admin-wine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #ECE6F0;
  gap: 16px;
  transition: background-color 0.12s ease;
}

.admin-wine-row:last-child {
  border-bottom: none;
}

.admin-wine-row:hover {
  background: #F5EFF7;
}

.admin-wine-row.is-custom {
  background: #f0fdf4;
}

.admin-wine-main {
  flex: 1;
  min-width: 0;
}

.admin-wine-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1D1B20;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-wine-sub {
  font-size: 12px;
  color: #79747E;
  margin-top: 3px;
}

.admin-wine-prices {
  text-align: right;
  flex-shrink: 0;
}

.admin-wine-bottle {
  font-size: 14.5px;
  font-weight: 700;
  color: #660033;
}

.admin-wine-glass {
  font-size: 12px;
  color: #49454F;
}

.admin-wine-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-row-btn {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: #ECE6F0;
  color: #1D1B20;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-row-btn:hover {
  background: #F5EFF7;
  color: #660033;
}

.admin-row-btn.delete {
  color: #dc2626;
  background: #fee2e2;
}

.admin-row-btn.delete:hover {
  background: #fca5a5;
}

/* Public Wine Card Admin Overlay Actions */
.admin-public-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #ECE6F0;
  justify-content: flex-end;
}

.admin-public-del-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.admin-public-del-btn:hover {
  background: #fca5a5;
}

.admin-public-edit-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #1D1B20;
  background: #ECE6F0;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.admin-public-edit-btn:hover {
  background: #F5EFF7;
  color: #660033;
}

/* ==========================================================================
   Admin Security & Password Settings Card
   ========================================================================== */
.admin-security-card {
  margin-top: 24px;
}

.admin-security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.security-bubble,
.scraper-bubble {
  background: #ECE6F0 !important;
  color: #660033 !important;
}

.admin-scraper-card {
  margin-bottom: 22px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
}

.scraper-active-pill {
  background: #EDFDF3 !important;
  color: #166534 !important;
  border: 1px solid #9AE6B4 !important;
  font-weight: 600 !important;
}

.scraper-paused-pill {
  background: #F4F4F5 !important;
  color: #52525B !important;
  border: 1px solid #D4D4D8 !important;
}

.scraper-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.scraper-metric-box {
  background: #FAF8FB;
  border: 1px solid #E6E0E9;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scraper-metric-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #79747E;
}

.scraper-metric-val {
  font-size: 15px;
  font-weight: 600;
  color: #1D1B20;
}

.scraper-metric-sub {
  font-size: 12px;
  color: #49454F;
}

.scraper-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.scraper-time-select {
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #CAC4D0;
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  color: #660033;
  cursor: pointer;
}

.scraper-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scraper-left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scraper-toggle-on {
  background: #EDFDF3 !important;
  color: #166534 !important;
  border: 1px solid #9AE6B4 !important;
  box-shadow: none !important;
}

.scraper-toggle-off {
  background: #F4F4F5 !important;
  color: #52525B !important;
  border: 1px solid #D4D4D8 !important;
  box-shadow: none !important;
}

.scraper-feedback-text {
  font-size: 13px;
  font-weight: 500;
  color: #166534;
}

.scraper-log-details {
  margin-top: 14px;
}

.scraper-log-list {
  margin-top: 10px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #E6E0E9;
  border-radius: 14px;
  background: #FFFFFF;
}

.scraper-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #ECE6F0;
  font-size: 13px;
}

.scraper-log-row:last-child {
  border-bottom: none;
}

.scraper-log-info {
  min-width: 0;
  flex: 1;
}

.scraper-log-title {
  font-weight: 600;
  color: #1D1B20;
}

.scraper-log-url {
  font-size: 12px;
  color: #660033;
  text-decoration: none;
  margin-left: 6px;
}

.scraper-log-url:hover {
  text-decoration: underline;
}

.scraper-log-sub {
  font-size: 12px;
  color: #52525B;
  margin-top: 2px;
}

.admin-password-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-pass-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.admin-pass-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.admin-pass-msg {
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-pass-msg.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.admin-pass-msg.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   ADMIN URL WINE LIST IMPORT STYLES
   ========================================================================== */

.admin-tool-btn.highlight {
  background: linear-gradient(135deg, #660033 0%, #3e001f 100%) !important;
  color: #FCEFCF !important;
  border: 1.5px solid #D4AF37 !important;
  box-shadow: 0 6px 18px rgba(102, 0, 51, 0.35), 0 0 10px rgba(212, 175, 55, 0.25) !important;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.admin-tool-btn.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 0, 51, 0.45), 0 0 16px rgba(212, 175, 55, 0.4) !important;
  border-color: #f7d566 !important;
}

.admin-tool-btn.highlight svg {
  stroke: #D4AF37 !important;
}

.admin-highlight-pill {
  background: rgba(102, 0, 51, 0.08) !important;
  color: #660033 !important;
  border: 1px solid #D4AF37 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.admin-highlight-pill:hover {
  background: #660033 !important;
  color: #FCEFCF !important;
}

.url-input-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #FAF8F5;
  border: 1px solid #E6E0E9;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
}

.url-select-styled {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #CAC4D0;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  color: #1D1B20;
  outline: none;
  transition: border-color 0.2s ease;
}

.url-select-styled:focus {
  border-color: #660033;
}

.url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.url-input-wrapper input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: 14px;
  border: 1.5px solid #CAC4D0;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  color: #1D1B20;
  outline: none;
  transition: all 0.2s ease;
}

.url-input-wrapper input:focus {
  border-color: #660033;
  box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.12);
}

.tiny-circle-btn {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ECE6F0;
  color: #49454F;
  border: none;
  cursor: pointer;
}

.tiny-circle-btn:hover {
  background: #CAC4D0;
  color: #1D1B20;
}

.url-quick-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-preset-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #79747E;
}

.url-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.url-preset-chip {
  background: #FFFFFF;
  border: 1px solid #D4AF37;
  color: #660033;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.url-preset-chip:hover {
  background: #FCEFCF;
  border-color: #660033;
  transform: translateY(-1px);
}

.url-scan-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #660033 0%, #4a0024 100%);
  color: #FCEFCF;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(102, 0, 51, 0.25);
  transition: all 0.2s ease;
}

.url-scan-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 0, 51, 0.35);
}

.url-scan-submit svg {
  width: 18px;
  height: 18px;
  stroke: #D4AF37;
}

.url-fallback-details {
  border-top: 1px dashed #CAC4D0;
  padding-top: 12px;
  margin-top: 4px;
}

.url-fallback-summary {
  font-size: 13px;
  color: #660033;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.url-fallback-summary:hover {
  text-decoration: underline;
}

.url-fallback-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.url-fallback-body textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #CAC4D0;
  font-family: inherit;
  font-size: 13px;
  color: #1D1B20;
  resize: vertical;
}

.highlight-publish {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3) !important;
}

.highlight-publish:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.4) !important;
}

/* ==========================================================================
   DESKTOP OPTIMIZATIONS & ADVANCED ALIGNMENT (TABLET & DESKTOP SCREENS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLET & COMPACT DESKTOP (>= 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  /* Home View Container Expansion */
  .home-view {
    padding: clamp(36px, 6vh, 64px) 28px 36px;
  }

  .home-container {
    max-width: 860px;
    gap: 32px;
    padding-top: clamp(18px, 4vh, 36px);
  }

  .hero-frame {
    max-width: 680px;
    gap: 16px;
  }

  .hero-logo-svg {
    width: 204px;
    height: 204px;
  }

  .brand-title {
    font-size: 60px;
    line-height: 68px;
    letter-spacing: -0.5px;
  }

  /* Smart City Selector Bar Alignment */
  .smart-city-section {
    max-width: 680px;
    gap: 10px;
  }

  .smart-city-bar {
    padding: 5px;
    gap: 6px;
  }

  .smart-city-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .smart-subfilter-scroll {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
    padding: 4px 0 8px;
  }

  /* Search Section & Pill Alignment */
  .search-section {
    max-width: 680px;
  }

  .search-pill {
    height: 60px;
    padding: 4px 12px 4px 22px;
    border-radius: 30px;
  }

  .search-input {
    font-size: 16.5px;
  }

  .search-city-badge-btn {
    padding: 6px 12px;
    font-size: 12.5px;
    gap: 6px;
  }

  /* Autocomplete Suggestions on Tablet/Desktop */
  .suggestions-container {
    border-radius: 26px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  }

  .suggestions-meta {
    padding: 14px 22px 10px;
    font-size: 12px;
  }

  .suggestion-item {
    padding: 15px 22px;
    gap: 16px;
  }

  .suggestion-name {
    font-size: 16.5px;
  }

  .suggestion-sub {
    font-size: 13px;
    margin-top: 3px;
  }

  .suggestion-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Home Featured Restaurants Grid */
  .home-featured-section {
    max-width: 860px;
    margin-top: 14px;
    gap: 14px;
  }

  .home-featured-header {
    margin-bottom: 2px;
  }

  .home-featured-title {
    font-size: 16px;
    letter-spacing: 0.2px;
  }

  .home-browse-all-link {
    font-size: 13px;
    padding: 4px 8px;
  }

  .home-featured-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-restaurant-card {
    padding: 16px 18px;
    border-radius: 20px;
  }

  .home-card-name {
    font-size: 20px;
  }

  .home-card-meta {
    font-size: 12.5px;
  }

  /* Restaurant & Detail Views on Tablet */
  .detail-view {
    padding: 32px 24px 80px;
  }

  .detail-container {
    max-width: 880px;
  }

  .top-nav {
    margin-bottom: 26px;
  }

  .pill-nav-btn {
    height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }

  .restaurant-header {
    padding: 30px 32px;
    border-radius: 30px;
    margin-bottom: 24px;
  }

  .rest-title {
    font-size: 38px;
  }

  .rest-meta-line {
    font-size: 14px;
    margin-top: 6px;
  }

  .rest-actions-row {
    margin-top: 18px;
    gap: 10px;
  }

  .mini-link-pill {
    padding: 7px 16px;
    font-size: 13px;
  }

  /* Taste Panel & Sliders */
  .taste-panel {
    padding: 28px 30px;
    border-radius: 28px;
    margin-bottom: 24px;
  }

  .taste-panel-title {
    font-size: 26px;
  }

  /* Wine Content List & Rows */
  .wine-list-content {
    padding: 0;
    border-radius: 0;
    gap: 22px;
  }

  .wine-section {
    border-radius: 5px;
  }

  .wine-section-title {
    font-size: 25px;
    padding: 20px 24px 6px 24px;
    margin: 0;
  }

  .wine-row {
    padding: 18px 24px 20px 24px;
    gap: 20px;
    border-radius: 0;
  }

  .wine-name {
    font-size: 17.5px;
  }

  .wine-origin {
    font-size: 15px;
  }

  .wine-notes-line {
    font-size: 14.5px;
    margin-top: 10px;
  }

  .wine-pricing {
    min-width: 96px;
  }

  .price-main {
    font-size: 17.5px;
  }

  .price-sub {
    font-size: 16px;
  }

  /* Modals on Tablet/Desktop */
  .modal-card {
    max-width: 700px;
    padding: 30px 34px;
    border-radius: 28px;
  }

  .modal-heading {
    font-size: 25px;
  }

  .pdf-dropzone {
    padding: 36px 24px;
    border-radius: 22px;
  }
}

/* --------------------------------------------------------------------------
   2. FULL DESKTOP & WIDE SCREENS (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Home View Desktop Master Layout */
  .home-view {
    padding: clamp(40px, 7vh, 72px) 36px 44px;
  }

  .home-container {
    max-width: 1160px;
    gap: 36px;
  }

  .hero-frame {
    max-width: 740px;
    gap: 18px;
  }

  .hero-logo-svg {
    width: 220px;
    height: 220px;
  }

  .brand-title {
    font-size: 66px;
    line-height: 74px;
    letter-spacing: -0.75px;
  }

  /* Desktop Smart City Selector */
  .smart-city-section {
    max-width: 720px;
    gap: 12px;
  }

  .smart-city-bar {
    padding: 6px;
    gap: 8px;
    border-radius: 120px;
  }

  .smart-city-btn {
    padding: 11px 24px;
    font-size: 14.5px;
    border-radius: 100px;
  }

  .city-btn-count {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  /* Desktop Search Pill & Bar */
  .search-section {
    max-width: 720px;
  }

  .search-pill {
    height: 62px;
    padding: 4px 12px 4px 26px;
    border-radius: 32px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }

  .search-pill:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.3);
  }

  .search-input {
    font-size: 17px;
    letter-spacing: 0.3px;
  }

  .search-city-badge-btn {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 20px;
  }

  /* Featured Restaurants 4-Column Responsive Grid on Desktop */
  .home-featured-section {
    max-width: 1160px;
    margin-top: 18px;
    gap: 16px;
  }

  .home-featured-title {
    font-size: 17px;
    font-weight: 600;
  }

  .home-featured-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .home-restaurant-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px;
    min-height: 124px;
    gap: 14px;
    border-radius: 22px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .home-restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 18px rgba(212, 175, 55, 0.32);
    border-color: rgba(212, 175, 55, 0.85);
    background: rgba(255, 255, 255, 0.16);
  }

  .home-card-main {
    gap: 4px;
    width: 100%;
  }

  .home-card-name {
    font-size: 21px;
    line-height: 1.25;
  }

  .home-card-meta {
    font-size: 13px;
    opacity: 0.85;
  }

  .home-card-badge {
    align-self: flex-start;
    font-size: 11.5px;
    padding: 5px 12px;
  }

  /* Desktop Detail Views (Restaurant, Discover & Admin) */
  .detail-view {
    padding: 40px 32px 90px;
  }

  .detail-container {
    max-width: 1160px;
  }

  .top-nav {
    margin-bottom: 28px;
  }

  .pill-nav-btn {
    height: 48px;
    padding: 0 22px;
    font-size: 14.5px;
    border-radius: 32px;
  }

  /* Restaurant Header on Wide Desktop */
  .restaurant-header {
    padding: 34px 40px;
    border-radius: 32px;
    margin-bottom: 28px;
  }

  .rest-title {
    font-size: 44px;
    line-height: 1.15;
  }

  .rest-meta-line {
    font-size: 15px;
    margin-top: 8px;
    gap: 8px;
  }

  .rest-actions-row {
    margin-top: 22px;
    gap: 12px;
  }

  .mini-link-pill {
    padding: 9px 20px;
    font-size: 13.5px;
    border-radius: 24px;
  }

  /* Taste Panel Desktop 4-Column Sliders */
  .taste-panel {
    padding: 32px 38px;
    border-radius: 32px;
    margin-bottom: 28px;
  }

  .sliders-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
  }

  .slider-item {
    padding: 16px 18px;
    border-radius: 22px;
  }

  .slider-labels strong {
    font-size: 13px;
  }

  /* Desktop Menu Controls (Horizontal Layout) */
  .menu-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
  }

  #category-tabs {
    flex-wrap: wrap;
    flex: 1;
    overflow-x: visible;
  }

  .secondary-filters {
    flex-shrink: 0;
    gap: 14px;
  }

  /* Desktop Wine List Content Card & Rows */
  .wine-list-content {
    padding: 0;
    border-radius: 0;
    gap: 24px;
  }

  .wine-section {
    border-radius: 6px;
  }

  .wine-section-title {
    font-size: 26px;
    padding: 22px 28px 6px 28px;
    margin: 0;
  }

  .wine-row {
    padding: 20px 28px 22px 28px;
    gap: 20px;
    border-radius: 0;
    align-items: flex-start;
  }

  .wine-thumb-overview {
    width: 104px;
    height: 164px;
    border-radius: 14px;
  }

  .wine-thumb-spotlight {
    width: 58px;
    height: 94px;
  }

  .wine-thumb-modal {
    width: 96px;
    height: 158px;
  }

  .wine-thumb-mini {
    width: 42px;
    height: 70px;
  }

  .wine-brand,
  .wine-name {
    font-size: 21px;
    line-height: 1.22;
  }

  .wine-subname {
    font-size: 15.5px;
    line-height: 1.32;
    margin-top: 3px;
  }

  .wine-origin {
    font-size: 18px;
    margin-top: 8px;
  }

  .wine-notes-line {
    font-size: 17.5px;
    margin-top: 10px;
  }

  .wine-pricing {
    min-width: 110px;
    text-align: right;
  }

  .price-main {
    font-size: 21px;
    font-weight: 700;
  }

  .price-sub {
    font-size: 19px;
    font-weight: 600;
    margin-top: 5px;
  }

  /* Discover Directory Grid on Full Desktop */
  .directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
  }

  .dir-card {
    padding: 22px 24px;
    border-radius: 26px;
  }

  .dir-card-title {
    font-size: 23px;
  }

  /* Admin Dashboard Desktop Alignment */
  .admin-selector-card {
    padding: 26px 32px;
    border-radius: 28px;
    margin-bottom: 22px;
  }

  .admin-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
  }

  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
  }

  .admin-tool-btn {
    padding: 13px 22px;
    font-size: 14px;
  }

  .admin-wine-table-card {
    border-radius: 28px;
  }

  .admin-table-header {
    padding: 22px 32px;
  }

  .admin-wine-row {
    padding: 16px 32px;
    gap: 20px;
  }

  .admin-wine-title {
    font-size: 16px;
    font-weight: 600;
  }

  /* Modals on Full Desktop */
  .modal-card {
    max-width: 780px;
    padding: 34px 40px;
    border-radius: 32px;
  }

  .modal-heading {
    font-size: 27px;
  }

  .url-input-card {
    padding: 26px 30px;
    border-radius: 24px;
    gap: 18px;
  }

  .url-scan-submit {
    padding: 16px 28px;
    font-size: 15.5px;
    border-radius: 16px;
  }

  .pdf-preview-header {
    padding: 16px 20px;
    border-radius: 18px;
  }

  .pdf-preview-item {
    padding: 14px 18px;
    border-radius: 18px;
  }
}

