/* ===================================================================
   THAI GASTRONOMY & MINIMALIST EDITORIAL DESIGN SYSTEM
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@500;700;800&display=swap');

:root {
  /* Color Palette - Warm Luxury & Culinary Earth */
  --bg-main: #0a0c0b;
  --bg-surface: #121513;
  --bg-surface-elevated: #1a1e1b;
  --bg-card: rgba(22, 26, 23, 0.75);
  --bg-glass: rgba(18, 22, 20, 0.65);
  
  --text-primary: #f5f3ec;
  --text-secondary: #a7b0a9;
  --text-muted: #6a746c;
  --text-inverse: #0d100e;

  /* Culinary Accent Colors */
  --accent-gold: #dcb356;
  --accent-gold-glow: rgba(220, 179, 86, 0.25);
  --accent-chili: #e24b2b;
  --accent-chili-glow: rgba(226, 75, 43, 0.25);
  --accent-lime: #7fc36d;
  --accent-tamarind: #b8623b;
  --accent-coconut: #f8f6f0;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(220, 179, 86, 0.4);
  --border-focus: #dcb356;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', sans-serif;

  /* Shadows & Blurs */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(220, 179, 86, 0.15);
  --blur-glass: blur(16px);

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  touch-action: pan-y;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 10% 20%, rgba(220, 179, 86, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(226, 75, 43, 0.03) 0%, transparent 40%),
              var(--bg-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================================
   NAVIGATION (GLASS HEADER)
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  background: rgba(10, 12, 11, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--trans-smooth);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--trans-smooth);
  margin-right: 1.8rem;
  flex-shrink: 0;
}

.logo-brand:hover .logo-emblem {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 22px rgba(220, 179, 86, 0.45);
}

.logo-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(220, 179, 86, 0.18) 0%, rgba(18, 22, 20, 0.85) 100%);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--accent-gold-glow);
  transition: var(--trans-spring);
  flex-shrink: 0;
}

.thai-lotus-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  justify-content: center;
}

.logo-top-tag {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0px;
}

.logo-title {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-title span {
  color: var(--accent-gold);
  font-weight: 600;
}

.logo-subtext {
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: var(--trans-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--trans-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ambient {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-smooth);
}

.btn-ambient.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-ambient .sound-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.btn-ambient .bar {
  width: 2px;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
  animation: wave 1.2s ease-in-out infinite;
}

.btn-ambient .bar:nth-child(2) { animation-delay: 0.2s; }
.btn-ambient .bar:nth-child(3) { animation-delay: 0.4s; }

.btn-ambient:not(.active) .bar {
  animation: none;
  height: 4px;
}

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.nav-mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(220, 179, 86, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, transparent 60%, var(--bg-main) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(220, 179, 86, 0.08);
  border: 1px solid var(--border-active);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-gold);
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-gold), #c99b38);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px var(--accent-gold-glow);
  transition: var(--trans-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 179, 86, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--trans-smooth);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Media Card */
.hero-media {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  background: var(--bg-surface);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1.2rem;
  background: rgba(18, 22, 20, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-badge-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.floating-badge-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.floating-spices {
  display: flex;
  gap: 0.3rem;
  font-size: 0.9rem;
}

/* ===================================================================
   SECTION HEADINGS & EDITORIAL TYPOGRAPHY
   =================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   THE 5 PILLARS OF FLAVOR (INTERACTIVE HARMONIZER)
   =================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  cursor: pointer;
  transition: var(--trans-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pillar-color, var(--accent-gold));
  opacity: 0.3;
  transition: var(--trans-fast);
}

.pillar-card:hover, .pillar-card.active {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

.pillar-card.active::before,
.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.pillar-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.pillar-thai {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Flavor Detail View */
.flavor-harmony-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.harmony-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.harmony-role {
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.harmony-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.harmony-sources {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-gold);
}

.harmony-sources span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.harmony-sources p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Radar Balance Visualizer */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.radar-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.radar-caption {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===================================================================
   DISHES CATALOG SECTION (FILTER & GRID)
   =================================================================== */
.catalog-controls {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--trans-fast);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-tab.active {
  background: var(--accent-gold);
  color: var(--text-inverse);
  border-color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-gold-glow);
}

.filter-aux {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  width: 240px;
}

.search-box input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.2rem;
  font-size: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  transition: var(--trans-fast);
}

.search-box input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-surface-elevated);
}

.search-box .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spice-filter-select {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
}

.spice-filter-select option {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* Dish Grid */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--trans-smooth);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.dish-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.dish-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-surface);
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card:hover .dish-img-wrap img {
  transform: scale(1.06);
}

.dish-badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(18, 22, 20, 0.85);
  backdrop-filter: var(--blur-glass);
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

.dish-spice-meter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(18, 22, 20, 0.85);
  backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.dish-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.dish-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dish-phonetic {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.dish-thai-native {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.dish-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Flavor mini bars */
.dish-flavor-bars {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.flavor-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flavor-bar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.flavor-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.flavor-progress-fill {
  height: 100%;
  border-radius: 2px;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.dish-meta-info {
  display: flex;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  cursor: pointer;
  transition: var(--trans-fast);
}

.btn-detail:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* ===================================================================
   INTERACTIVE SPICE & HERBS ATLAS
   =================================================================== */
.spices-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 50%, var(--bg-main) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spices-hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
  position: relative;
  aspect-ratio: 21/9;
}

.spices-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spices-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 11, 0.9) 0%, rgba(10, 12, 11, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.spices-banner-overlay h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.spices-banner-overlay p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 0.95rem;
}

.herbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.herb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--trans-smooth);
  position: relative;
}

.herb-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  background: var(--bg-surface-elevated);
}

.herb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.herb-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.herb-thai {
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.herb-role-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  background: rgba(220, 179, 86, 0.1);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
}

.herb-aroma-block {
  margin-bottom: 0.85rem;
}

.herb-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.herb-val {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.herb-magic {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-lime);
  margin-top: 1rem;
}

/* ===================================================================
   INTERACTIVE RECIPE BALANCE SIMULATOR
   =================================================================== */
.simulator-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: flex-start;
}

.sim-presets {
  margin-bottom: 2rem;
}

.sim-presets-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sim-preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sim-preset-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-fast);
}

.sim-preset-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.sim-preset-btn.active {
  background: var(--accent-gold);
  color: var(--text-inverse);
  font-weight: 600;
  border-color: var(--accent-gold);
}

.sim-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.sim-slider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.sim-slider-val {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.sim-range-input {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.sim-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px var(--accent-gold-glow);
  transition: var(--trans-fast);
}

.sim-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Simulator Output Result */
.sim-output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.sim-output-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.sim-output-verdict {
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.sim-recipe-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.breakdown-name {
  color: var(--text-secondary);
}

.breakdown-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.btn-sim-reset {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-fast);
}

.btn-sim-reset:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* ===================================================================
   STREET FOOD VS ROYAL CUISINE COMPARISON
   =================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: var(--trans-smooth);
}

.comp-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.comp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.comp-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.comp-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.comp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comp-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comp-features li span {
  color: var(--accent-gold);
}

/* ===================================================================
   MODAL DRAWER FOR RECIPES
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 7, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--trans-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.98);
  transition: var(--trans-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--trans-fast);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: var(--text-inverse);
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-content {
  padding: 2.5rem;
}

.modal-header-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
}

.modal-thai-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.modal-meta-item .meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.modal-meta-item .meta-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-story {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-gold);
}

.modal-chef-tip {
  background: rgba(220, 179, 86, 0.08);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.modal-chef-tip h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.modal-chef-tip p {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.modal-section-h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.modal-ingredients-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--trans-fast);
}

.ingredient-item:hover {
  border-color: var(--border-active);
}

.ingredient-item.checked {
  opacity: 0.5;
  text-decoration: line-through;
}

.ingredient-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.modal-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-row {
  display: flex;
  gap: 1.25rem;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--text-inverse);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 380px;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--trans-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ===================================================================
   HEADER ACTION BUTTONS (AUTH & INVITE)
   =================================================================== */
.btn-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: var(--blur-glass);
  transition: var(--trans-smooth);
}

.btn-auth-trigger .icon-lock {
  width: 14px;
  height: 14px;
  color: var(--accent-gold);
}

.btn-auth-trigger:hover {
  background: rgba(220, 179, 86, 0.12);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-invite-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #ffe28a 0%, #dcb356 50%, #b88d2a 100%);
  border: none;
  border-radius: var(--radius-full);
  color: #0b0f0d;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 179, 86, 0.25);
  transition: var(--trans-smooth);
}

.btn-invite-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 179, 86, 0.4);
}

/* ===================================================================
   MASTERCLASSES SECTION
   =================================================================== */
.masterclasses-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(220, 179, 86, 0.05) 0%, transparent 60%),
              var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.access-notice-banner {
  margin: 2.5rem auto 0;
  max-width: 820px;
  padding: 1.25rem 1.75rem;
  background: rgba(22, 26, 23, 0.85);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.notice-badge-icon {
  font-size: 1.75rem;
  padding: 0.75rem;
  background: rgba(220, 179, 86, 0.1);
  border: 1px solid rgba(220, 179, 86, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.notice-text-group strong {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.notice-text-group span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.notice-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-primary-gold {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #ffe28a 0%, #dcb356 100%);
  color: #0b0f0d;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.btn-primary-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(220, 179, 86, 0.35);
}

.btn-outline-glass {
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.btn-outline-glass:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.masterclasses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.masterclass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--blur-glass);
  transition: var(--trans-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.masterclass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 179, 86, 0.12);
}

.mc-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.mc-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masterclass-card:hover .mc-thumb {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.mc-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 12, 11, 0.8);
  border: 1px solid var(--border-active);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.mc-lock-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 18, 16, 0.85);
  border: 1px solid rgba(226, 75, 43, 0.35);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #ff9d85;
  backdrop-filter: blur(6px);
}

.mc-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.mc-level {
  color: var(--accent-gold);
  font-weight: 600;
}

.mc-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.mc-thai {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.mc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.mc-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mc-chef {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mc-unlock-btn {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--accent-gold);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.mc-unlock-btn:hover {
  background: var(--accent-gold);
  color: var(--text-inverse);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* ===================================================================
   AUTH & INVITE MODAL DIALOGS (DESKTOP & MOBILE SCALE OPTIMIZED)
   =================================================================== */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-modal-overlay.active {
  display: grid;
  opacity: 1;
}

.auth-modal-card {
  background: linear-gradient(180deg, #171c18 0%, #101311 100%);
  border: 1px solid rgba(220, 179, 86, 0.28);
  border-radius: 16px;
  width: 100%;
  max-width: 390px;
  padding: 1.85rem 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(220, 179, 86, 0.12);
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans-fast);
}

.auth-modal-close:hover {
  background: rgba(226, 75, 43, 0.25);
  color: #fff;
  border-color: var(--accent-chili);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.auth-icon-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.65rem;
  background: rgba(220, 179, 86, 0.1);
  border: 1px solid rgba(220, 179, 86, 0.25);
  border-radius: 12px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(220, 179, 86, 0.15);
}

.auth-modal-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.auth-modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.auth-input,
.auth-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #0b0e0c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: var(--trans-fast);
}

.auth-input:focus,
.auth-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(220, 179, 86, 0.18);
  background: #101412;
}

.auth-select {
  cursor: pointer;
}

.auth-select option {
  background: #101412;
  color: var(--text-primary);
}

.btn-auth-submit {
  padding: 0.72rem 1.25rem;
  background: linear-gradient(135deg, #ffe28a 0%, #dcb356 50%, #b88d2a 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #0b0f0d;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(220, 179, 86, 0.25);
  transition: var(--trans-smooth);
  margin-top: 0.35rem;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 179, 86, 0.35);
}

.btn-auth-submit .btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-auth-submit:hover .btn-arrow {
  transform: translateX(3px);
}

.auth-error-box {
  display: none;
  background: rgba(226, 75, 43, 0.12);
  border: 1px solid rgba(226, 75, 43, 0.35);
  color: #ff9d85;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.35;
  gap: 0.45rem;
  align-items: flex-start;
}

.invite-success-box {
  display: none;
  background: rgba(127, 195, 109, 0.12);
  border: 1px solid rgba(127, 195, 109, 0.35);
  color: #a8f097;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.35;
  gap: 0.45rem;
  align-items: flex-start;
}

.auth-modal-footer {
  margin-top: 1.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: var(--trans-fast);
}

.link-btn:hover {
  text-decoration: underline;
  color: #fff;
}

/* ===================================================================
   AMBIENT ATMOSPHERE TOAST NOTIFICATION
   =================================================================== */
.ambient-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(14, 18, 15, 0.94);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 22px rgba(220, 179, 86, 0.2);
  z-index: 10000;
  transform: translateY(35px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 340px;
}

.ambient-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ambient-toast-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ambient-toast-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ambient-toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}

.ambient-toast-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}


/* ===================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
    display: block;
    width: 100%;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flavor-harmony-box {
    grid-template-columns: 1fr;
  }

  .sim-grid {
    grid-template-columns: 1fr;
  }

  .sim-output-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-header {
    height: 3.7rem;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  .nav-wrap {
    height: 3.7rem;
    width: 100%;
    max-width: 100%;
    gap: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-brand {
    margin-right: 0;
    gap: 0.45rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-emblem {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .thai-lotus-icon {
    width: 20px;
    height: 20px;
  }

  .logo-top-tag {
    font-size: 0.48rem;
    letter-spacing: 0.14em;
  }

  .logo-title {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .logo-subtext {
    font-size: 0.44rem;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
  }

  .btn-ambient {
    padding: 0.32rem 0.6rem;
    font-size: 0.72rem;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-full);
  }

  .btn-ambient .sound-wave {
    height: 9px;
    gap: 1.5px;
  }

  .btn-ambient .bar {
    width: 2px;
  }

  .hero-section {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding-top: 5.2rem;
    padding-bottom: 2.5rem;
    overflow: hidden;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 0.4rem 0.95rem;
    margin-bottom: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    text-align: center;
    border-radius: var(--radius-full);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-top: 2rem;
    padding: 1.25rem 0.5rem;
    background: rgba(22, 26, 23, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    text-align: center;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-item .stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.35rem;
  }

  .stat-item .stat-label {
    font-size: 0.66rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
  }

  .hero-image-card {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .hero-floating-badge {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.65rem 0.85rem;
  }

  .floating-badge-title {
    font-size: 0.88rem;
  }

  .floating-badge-sub {
    font-size: 0.68rem;
  }

  .section {
    padding: 3.75rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .section-header {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  }

  .section-desc {
    font-size: 0.88rem;
    width: 100%;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .pillar-card {
    padding: 1.2rem 1rem;
    width: 100%;
  }

  .flavor-harmony-box {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
    gap: 1.5rem;
    width: 100%;
  }

  .harmony-info h3 {
    font-size: 1.35rem;
  }

  .harmony-role {
    font-size: 0.92rem;
  }

  .harmony-text {
    font-size: 0.85rem;
  }

  .harmony-sources {
    padding: 0.75rem 0.85rem;
    width: 100%;
  }

  .radar-svg {
    max-width: 220px;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
    padding-bottom: 0.4rem;
  }

  .filter-aux {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .search-box {
    width: 100%;
  }

  .spice-filter-select {
    width: 100%;
  }

  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .dish-card {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .dish-body {
    padding: 1.15rem 1rem;
    width: 100%;
  }

  .dish-title {
    font-size: 1.25rem;
  }

  .dish-desc {
    font-size: 0.82rem;
  }

  .dish-flavor-bars {
    padding: 0.5rem;
    gap: 0.35rem;
    width: 100%;
  }

  .spices-hero-banner {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    width: 100%;
  }

  .spices-banner-overlay {
    padding: 1rem 0.85rem;
    width: 100%;
  }

  .spices-banner-overlay h3 {
    font-size: 1.25rem;
  }

  .spices-banner-overlay p {
    font-size: 0.8rem;
  }

  .herbs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

  .herb-card {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .simulator-wrap {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .sim-presets-title {
    font-size: 0.75rem;
  }

  .sim-preset-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .sim-output-card {
    padding: 1.25rem 0.85rem;
    width: 100%;
  }

  .sim-output-title {
    font-size: 1.35rem;
  }

  .sim-output-verdict {
    font-size: 0.85rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .comp-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .comp-title {
    font-size: 1.4rem;
  }

  .comp-desc {
    font-size: 0.85rem;
  }

  .comp-features li {
    font-size: 0.82rem;
  }

  .masterclasses-section {
    padding: 3.5rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .masterclasses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
  }

  .access-notice-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .notice-badge-icon {
    font-size: 1.35rem;
    padding: 0.5rem;
    margin: 0 auto;
  }

  .notice-text-group strong {
    font-size: 0.88rem;
  }

  .notice-text-group span {
    font-size: 0.78rem;
  }

  .notice-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .notice-btn-group .btn-primary-gold,
  .notice-btn-group .btn-outline-glass {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .masterclass-card {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .mc-body {
    padding: 1.15rem 1rem;
    width: 100%;
  }

  .mc-title {
    font-size: 1.2rem;
  }

  .mc-desc {
    font-size: 0.82rem;
  }

  .mc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .mc-unlock-btn {
    width: 100%;
    text-align: center;
  }

  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-container {
    max-height: 94vh;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .modal-hero-img {
    height: 180px;
    width: 100%;
  }

  .modal-content {
    padding: 1.15rem 0.85rem;
    width: 100%;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    width: 100%;
  }

  .modal-meta-item .meta-label {
    font-size: 0.65rem;
  }

  .modal-meta-item .meta-val {
    font-size: 0.85rem;
  }

  .modal-story {
    font-size: 0.88rem;
    padding-left: 0.85rem;
    width: 100%;
  }

  .modal-chef-tip {
    padding: 1rem;
    width: 100%;
  }

  .modal-chef-tip h4 {
    font-size: 0.8rem;
  }

  .modal-chef-tip p {
    font-size: 0.82rem;
  }

  .modal-section-h3 {
    font-size: 1.3rem;
  }

  .ingredient-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    width: 100%;
  }

  .modal-ingredients-list {
    grid-template-columns: 1fr;
  }

  .step-row {
    gap: 0.75rem;
    width: 100%;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .step-text {
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 3rem 0 1.5rem 0;
    margin-top: 3.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
    font-size: 0.75rem;
  }

  .auth-modal-card {
    padding: 1.25rem 0.85rem;
    border-radius: 12px;
    width: 100%;
  }

  .auth-modal-title {
    font-size: 1.22rem;
  }

  .auth-modal-desc {
    font-size: 0.75rem;
  }

  .ambient-toast {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 360px) {
  .logo-title {
    font-size: 0.76rem;
  }

  .logo-brand {
    gap: 0.35rem;
  }

  .logo-emblem {
    width: 26px;
    height: 26px;
  }

  .thai-lotus-icon {
    width: 16px;
    height: 16px;
  }

  .btn-ambient {
    padding: 0.28rem 0.45rem;
    font-size: 0.66rem;
  }

  .btn-ambient .sound-wave {
    display: none;
  }
}

