/* ========== CSS VARIABLES: LUXURY EDITORIAL ========== */
:root {
  --bg: #F3EDE5;
  --bg-card: #FEFCF9;
  --bg-card-hover: #FAF6F1;
  --text-primary: #1A1814;
  --text-secondary: #6B6359;
  --text-tertiary: #A9A29A;
  --border: #DDD6CC;
  --border-subtle: #EBE5DC;
  --shadow-xs: 0 1px 2px rgba(90, 70, 40, 0.04);
  --shadow: 0 2px 12px rgba(90, 70, 40, 0.06), 0 1px 3px rgba(90, 70, 40, 0.04);
  --shadow-lg: 0 8px 30px rgba(90, 70, 40, 0.08), 0 2px 8px rgba(90, 70, 40, 0.04);
  --shadow-xl: 0 20px 60px rgba(90, 70, 40, 0.1), 0 4px 14px rgba(90, 70, 40, 0.05);
  --radius-xl: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 50px;
  /* Sixtine dark hero */
  --hero-bg: linear-gradient(155deg, #2A2420 0%, #1A1714 60%, #231E18 100%);
  --hero-text: #FFF8F0;
  /* Teal primary (Dental Healthcare) */
  --teal: #1B6B6D;
  --teal-hover: #15585A;
  --teal-soft: rgba(27, 107, 109, 0.08);
  --teal-glow: rgba(27, 107, 109, 0.15);
  /* Gold accent (Dental Healthcare) */
  --gold: #C4993C;
  --gold-hover: #B08830;
  --gold-soft: rgba(196, 153, 60, 0.1);
  --gold-glow: rgba(196, 153, 60, 0.2);
  /* Alias */
  --accent: var(--teal);
  --accent-hover: var(--teal-hover);
  --accent-soft: var(--teal-soft);
  --accent-glow: var(--teal-glow);
  --accent2: var(--gold);
  --accent2-soft: var(--gold-soft);
  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font: var(--font-body);
  /* Misc */
  --vibe-bg: #EBE3D8;
  --vibe-bg-active: var(--teal);
  --vibe-text: var(--text-secondary);
  --vibe-text-active: #FFFFFF;
  --input-bg: #EBE3D8;
  --input-border: #D9D0C4;
  --tag-bg: #EBE3D8;
  --tag-text: #6B6359;
  --grain-opacity: 0.025;
}

[data-theme="dark"] {
  --bg: #121110;
  --bg-card: #1C1A17;
  --bg-card-hover: #252220;
  --text-primary: #F0EBE4;
  --text-secondary: #9E9589;
  --text-tertiary: #5E5850;
  --border: #2A2724;
  --border-subtle: #222018;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.25);
  --hero-bg: linear-gradient(155deg, #0D0B09 0%, #171411 60%, #0F0D0A 100%);
  --hero-text: #F0EBE4;
  --teal: #2DBAB8;
  --teal-hover: #38D0CE;
  --teal-soft: rgba(45, 186, 184, 0.1);
  --teal-glow: rgba(45, 186, 184, 0.12);
  --gold: #D4A843;
  --gold-hover: #E0B850;
  --gold-soft: rgba(212, 168, 67, 0.1);
  --gold-glow: rgba(212, 168, 67, 0.15);
  --accent: var(--teal);
  --accent-hover: var(--teal-hover);
  --accent-soft: var(--teal-soft);
  --accent-glow: var(--teal-glow);
  --accent2: var(--gold);
  --accent2-soft: var(--gold-soft);
  --vibe-bg: #252220;
  --vibe-bg-active: var(--teal);
  --vibe-text: #9E9589;
  --vibe-text-active: #FFFFFF;
  --input-bg: #252220;
  --input-border: #353230;
  --tag-bg: #252220;
  --tag-text: #9E9589;
  --grain-opacity: 0.03;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(27, 107, 109, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(196, 153, 60, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(45, 186, 184, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(212, 168, 67, 0.02) 0%, transparent 50%);
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

/* ========== APP LAYOUT ========== */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
}

/* ========== HEADER: retired ========== */
/* There is no header: the app carries a bottom bar only. The theme toggle
   lives there as the last item. */
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }

/* ========== MAIN CONTENT ========== */
.app-main {
  flex: 1;
  /* Top padding replaces the retired header, and clears the status bar on
     notched phones (index.html sets viewport-fit=cover). */
  padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 0;
}

/* ========== HERO CARD: Dark moody Sixtine ========== */
.hero-card {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.01) 10px,
    rgba(255,255,255,0.01) 11px
  );
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #1A1714;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
  letter-spacing: 0.2px;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-glow);
  background: var(--gold-hover);
}

/* ========== STATS ROW: Sixtine horizontal data rows ========== */
.stats-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--border);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background 0.2s;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  order: -1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat-number.stat-pop {
  animation: statPop 0.5s ease;
}

@keyframes statPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2); color: var(--teal); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); color: var(--text-primary); }
}

/* ========== SECTION TITLE: Small caps ========== */
.section-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

/* ========== CATEGORY GRID: Dental icon cards ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.category-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.category-card:active {
  transform: translateY(0);
  scale: 0.97;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.category-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.category-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.category-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Category icon colors */
.cat-food .category-icon,
.cat-food.category-icon { background: var(--gold-soft); color: var(--gold); border: 1.5px solid rgba(196, 153, 60, 0.2); }
.cat-movies .category-icon,
.cat-movies.category-icon { background: var(--teal-soft); color: var(--teal); border: 1.5px solid rgba(27, 107, 109, 0.2); }
.cat-music .category-icon { background: rgba(90, 138, 74, 0.08); color: #5A8A4A; border: 1.5px solid rgba(90, 138, 74, 0.15); }
.cat-books .category-icon { background: rgba(74, 122, 181, 0.08); color: #4A7AB5; border: 1.5px solid rgba(74, 122, 181, 0.15); }
.cat-travel .category-icon { background: rgba(58, 138, 150, 0.08); color: #3A8A96; border: 1.5px solid rgba(58, 138, 150, 0.15); }
.cat-other .category-icon { background: rgba(138, 80, 150, 0.08); color: #8A5096; border: 1.5px solid rgba(138, 80, 150, 0.15); }

[data-theme="dark"] .cat-food .category-icon,
[data-theme="dark"] .cat-food.category-icon { background: rgba(212, 168, 67, 0.12); border-color: rgba(212, 168, 67, 0.2); }
[data-theme="dark"] .cat-movies .category-icon,
[data-theme="dark"] .cat-movies.category-icon { background: rgba(45, 186, 184, 0.12); border-color: rgba(45, 186, 184, 0.2); }
[data-theme="dark"] .cat-music .category-icon { background: rgba(90, 138, 74, 0.15); }
[data-theme="dark"] .cat-books .category-icon { background: rgba(74, 122, 181, 0.15); }
[data-theme="dark"] .cat-travel .category-icon { background: rgba(58, 138, 150, 0.15); }
[data-theme="dark"] .cat-other .category-icon { background: rgba(138, 80, 150, 0.15); }

/* Coming soon */
.category-card.coming-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  filter: grayscale(0.6) saturate(0.5);
}

.category-card.coming-soon .category-icon {
  background: var(--bg-secondary) !important;
  color: var(--text-tertiary);
}

.category-card.coming-soon h4 {
  color: var(--text-secondary);
}

.category-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-top: 6px;
}

/* Continent filter */
.continent-filter {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
}

.continent-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.continent-filter-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.continent-hint {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 500;
}

.continent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.continent-pill {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.continent-pill.active {
  border-color: var(--teal);
  background: rgba(27, 107, 109, 0.1);
  color: var(--teal);
  font-weight: 600;
}

/* Travel result card */
.result-travel {
  background: linear-gradient(145deg, #e8f4f5 0%, #d4ecee 100%);
}

[data-theme="dark"] .result-travel {
  background: linear-gradient(145deg, #1a3a3b 0%, #132e2f 100%);
}

.home-footer-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: 24px 0 8px;
  letter-spacing: 0.2px;
}

/* ========== BACK BUTTON: Sixtine arrow CTA ========== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--teal);
}

/* ========== CATEGORY HEADER ========== */
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.category-header .category-icon {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.category-header-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.3px;
}

.category-header-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========== FILTERS ========== */
.filters-section {
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

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

.filter-chips-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--vibe-bg);
  color: var(--vibe-text);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-chip.active {
  background: var(--vibe-bg-active);
  color: var(--vibe-text-active);
  border-color: transparent;
}

.filter-count {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ========== MOOD SELECTION ========== */
.mood-screen {
  text-align: center;
}

.mood-header {
  padding: 12px 0 28px;
}

.mood-header-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.mood-header h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mood-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mood-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow);
}

.mood-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mood-pill:active {
  transform: translateY(0);
  scale: 0.97;
}

.mood-pill.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 3px var(--teal-glow), var(--shadow-lg);
}

.mood-pill-emoji {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mood-pill:hover .mood-pill-emoji {
  transform: scale(1.15);
}

.mood-pill.active .mood-pill-emoji {
  transform: scale(1.1);
}

.mood-pill-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mood-pill-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.mood-surprise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mood-surprise:hover {
  border-style: solid;
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.mood-surprise:active {
  transform: translateY(0);
  scale: 0.97;
}

.mood-surprise .mood-pill-emoji {
  font-size: 1.1rem;
}

.mood-surprise .mood-pill-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========== MODE CARDS: Sixtine data rows ========== */
.mode-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}

.mode-card:hover {
  background: var(--teal-soft);
  padding-left: 8px;
}

.mode-card:active {
  scale: 0.98;
}

.mode-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

/* Rows may carry a line icon instead of an emoji: same family as the
   category icons on the home screen. */
.mode-icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  vertical-align: middle;
}

.mode-text {
  flex: 1;
}

.mode-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.mode-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mode-arrow {
  color: var(--teal);
  flex-shrink: 0;
}

/* ========== MEAL CARD ========== */
.meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.meal-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.meal-cuisine {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-text);
}

.meal-effort {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.effort-easy {
  background: rgba(90, 138, 74, 0.1);
  color: #5A8A4A;
}

.effort-medium {
  background: var(--gold-soft);
  color: var(--gold);
}

.effort-involved {
  background: rgba(184, 68, 58, 0.1);
  color: #B8443A;
}

[data-theme="dark"] .effort-easy { background: rgba(90, 138, 74, 0.15); }
[data-theme="dark"] .effort-medium { background: rgba(212, 168, 67, 0.15); }
[data-theme="dark"] .effort-involved { background: rgba(184, 68, 58, 0.15); }

.meal-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.meal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.meal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.meal-meta-item svg {
  width: 14px;
  height: 14px;
}

.meal-ingredients {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.meal-ingredients h5 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-text);
}

/* ========== CARD ACTIONS: Dental pill buttons ========== */
.card-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.action-reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.action-reject:hover {
  border-color: #C0564E;
  color: #C0564E;
  background: rgba(220, 80, 70, 0.06);
}

.action-accept {
  background: var(--teal);
  color: #FFFFFF;
  border: 1.5px solid var(--teal);
}

.action-accept:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--teal-glow);
}

.action-accept:active,
.action-reject:active {
  transform: translateY(0);
  scale: 0.97;
}

.plan-week-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-week-btn:hover {
  border-color: var(--teal);
  border-style: solid;
  color: var(--teal);
  background: rgba(26, 138, 122, 0.05);
}

/* Card exit animations */
.card-exit-left {
  animation: exitLeft 0.25s ease forwards;
}

.card-exit-right {
  animation: exitRight 0.25s ease forwards;
}

/* ========== SWIPE CARD STACK ========== */
.swipe-stack {
  position: relative;
  margin-bottom: 16px;
}

.swipe-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.swipe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  pointer-events: none;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card-behind {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: scale(0.96) translateY(10px);
  opacity: 0.15;
  filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

.swipe-card-front {
  position: relative;
  z-index: 2;
  animation: swipeCardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Swipe hints */
.swipe-hint {
  position: absolute;
  top: 20px;
  font-size: 1.6rem;
  font-weight: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 10;
  pointer-events: none;
}

.swipe-hint-accept {
  left: 16px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 2px solid rgba(27, 107, 109, 0.25);
}

.swipe-hint-reject {
  right: 16px;
  color: #B8443A;
  background: rgba(184, 68, 58, 0.08);
  border: 2px solid rgba(184, 68, 58, 0.25);
}

/* Swipe card inner */
.swipe-card-emoji {
  font-size: 2.2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.swipe-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.swipe-card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.swipe-card-effort {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.effort-dots {
  letter-spacing: 2px;
}

.swipe-card-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  padding: 0 12px;
  position: relative;
}

.swipe-card-desc::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 14px;
}

.swipe-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.swipe-card-streaming {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

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

/* ========== WEEK PROGRESS ========== */
.week-progress {
  margin-bottom: 24px;
}

.week-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.week-progress-count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.week-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--vibe-bg);
  overflow: hidden;
}

.week-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== WEEK PLAN LIST ========== */
.week-plan-list {
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
}

.week-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}

.week-plan-item:last-child {
  border-bottom: 1px solid var(--border);
}

.week-plan-day {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  min-width: 75px;
  padding-top: 2px;
}

.week-plan-meal {
  flex: 1;
}

.week-plan-meal-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.week-plan-meal-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ========== SHOPPING LIST ========== */
.shopping-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.shopping-list h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ========== SHOPPING CHECKLIST ========== */
.shopping-checklist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

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

.checklist-header h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.checklist-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--vibe-bg);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.checklist-item:hover {
  background: var(--bg-card-hover);
}

.checklist-box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: var(--bg);
}

.checklist-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  stroke: #fff;
}

.checklist-item.checked .checklist-box {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 8px var(--teal-glow);
  animation: checkBounce 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.checklist-item.checked .checklist-box svg {
  opacity: 1;
  transform: scale(1);
}

@keyframes checkBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.checklist-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.checklist-clear {
  display: block;
  margin: 16px auto 0;
  padding: 7px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.checklist-clear:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ========== ACCEPTED STATE ========== */
.accepted-state {
  text-align: center;
  padding: 28px 0 24px;
}

.accepted-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.accepted-state h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.3px;
}

/* ========== RESULT CARD ========== */
.result-card {
  text-align: center;
  padding: 36px 28px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  margin-bottom: 16px;
  animation: resultReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  pointer-events: none;
}

.result-food::before {
  background: linear-gradient(90deg, var(--gold), #D4532A);
}

.result-movie::before {
  background: linear-gradient(90deg, var(--teal), #6B5CA5);
}

.result-music::before {
  background: linear-gradient(90deg, #1DB954, #147a37);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 0 4px;
}

.spotify-open-btn {
  color: #1DB954 !important;
  text-decoration: none;
  border-color: rgba(29, 185, 84, 0.4) !important;
}

.result-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.result-emoji {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
  animation: emojiBounce 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: inline-block;
}

.result-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 20px;
}

.result-ingredients h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.result-ingredients p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.result-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.result-branding {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.4;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.result-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.2;
}

.result-action-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.result-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}

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

/* ========== HIDDEN SHARE CARD ========== */
.share-card {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 540px;
  height: 960px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.share-card-food {
  background: linear-gradient(155deg, #F3EDE5 0%, #EAE0D2 50%, #E0D4C4 100%);
}

.share-card-movie {
  background: linear-gradient(155deg, #1A1814 0%, #2A2620 50%, #1A1814 100%);
}

.share-card-inner {
  text-align: center;
  padding: 48px 40px;
  width: 100%;
}

.share-card-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.share-card-food .share-card-label { color: #7A7468; }
.share-card-movie .share-card-label { color: rgba(255, 255, 255, 0.45); }

.share-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 12px;
}

.share-card-food .share-card-title { color: #1A1814; }
.share-card-movie .share-card-title { color: #FFFFFF; }

.share-card-emoji {
  font-size: 64px;
  margin-bottom: 20px;
  line-height: 1;
}

.share-card-meta {
  font-size: 16px;
  margin-bottom: 6px;
}

.share-card-food .share-card-meta { color: #7A7468; }
.share-card-movie .share-card-meta { color: rgba(255, 255, 255, 0.55); }

.share-card-divider {
  height: 1px;
  margin: 24px 40px;
}

.share-card-food .share-card-divider { background: rgba(45, 42, 38, 0.1); }
.share-card-movie .share-card-divider { background: rgba(255, 255, 255, 0.1); }

.share-card-ingredients {
  font-size: 15px;
  line-height: 1.7;
  padding: 0 20px;
}

.share-card-food .share-card-ingredients { color: #7A7468; }

.share-card-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.share-card-food .share-card-brand { color: #1B6B6D; }
.share-card-movie .share-card-brand { color: rgba(255, 255, 255, 0.35); }

.share-card-tagline {
  font-size: 11px;
  letter-spacing: 1px;
}

.share-card-food .share-card-tagline { color: #B5AFA6; }
.share-card-movie .share-card-tagline { color: rgba(255, 255, 255, 0.18); }

/* ========== MOVIE CARD ========== */
.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.mood-light {
  background: var(--gold-soft);
  color: var(--gold);
}

.mood-intense {
  background: rgba(184, 68, 58, 0.08);
  color: #B8443A;
}

.mood-thought-provoking {
  background: var(--teal-soft);
  color: var(--teal);
}

.mood-funny {
  background: rgba(90, 138, 74, 0.08);
  color: #5A8A4A;
}

[data-theme="dark"] .mood-light { background: rgba(212, 168, 67, 0.15); }
[data-theme="dark"] .mood-intense { background: rgba(184, 68, 58, 0.15); }
[data-theme="dark"] .mood-thought-provoking { background: rgba(45, 186, 184, 0.15); }
[data-theme="dark"] .mood-funny { background: rgba(90, 138, 74, 0.15); }

.movie-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.meta-dot {
  opacity: 0.35;
}

.movie-pitch {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.movie-streaming {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.streaming-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tag-text);
}

/* ========== SPIN ========== */
.spin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.spin-reel {
  text-align: center;
  overflow: hidden;
}

.spin-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.3px;
  line-height: 1.3;
  transition: opacity 0.05s;
}

.spin-tick {
  animation: spinTick 0.08s ease;
}

.spin-final {
  animation: spinReveal 0.5s ease;
  color: var(--teal);
}

.spin-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.spin-btn:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow);
}

.spin-btn:active {
  transform: translateY(0);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
  flex: 1;
}

.btn-primary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-primary:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow);
}

/* ========== APP NAV: Bottom tab bar ========== */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Five items now (the theme toggle joined); the gap shrinks on narrow
     phones rather than letting the bar overflow. */
  gap: clamp(8px, 3.5vw, 20px);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(243, 237, 229, 0.82);
  border-top: 1px solid var(--border);
  z-index: 90;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

[data-theme="dark"] .app-nav {
  background: rgba(18, 17, 16, 0.82);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 0 0 auto;
}

.nav-item span { display: none; }

.nav-item:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.nav-item.active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.nav-item svg {
  transition: stroke 0.25s ease;
}

/* Search screen */
.search-screen { padding-top: 8px; }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  margin-bottom: 20px;
  color: var(--text-tertiary);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-input::placeholder { color: var(--text-tertiary); }

.search-hint {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  padding: 32px 0;
}

.search-group-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.search-result-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-result-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.sri-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.sri-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Favorites view */
.fav-list { display: flex; flex-direction: column; gap: 10px; }

.fav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.fav-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}

.fav-icon { font-size: 1.4rem; flex-shrink: 0; }

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

.fav-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-meta { font-size: 0.78rem; color: var(--text-tertiary); }

.fav-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  transition: color 0.2s;
}

.fav-remove:hover { color: var(--text-primary); }

.fav-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.fav-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--text-tertiary);
}

.fav-empty-hint {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Favorite toggle button on result cards */
.fav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.2;
}

.fav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.fav-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.fav-btn.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

.fav-btn.active svg { fill: var(--teal); }

/* Account placeholder */
.account-placeholder {
  text-align: center;
  padding: 48px 24px;
}

.account-avatar {
  font-size: 3rem;
  margin-bottom: 16px;
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-coming {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.account-hint {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes exitLeft {
  to { opacity: 0; transform: translateX(-80px) rotate(-8deg) scale(0.95); }
}

@keyframes exitRight {
  to { opacity: 0; transform: translateX(80px) rotate(8deg) scale(0.95); }
}

@keyframes spinTick {
  0% { opacity: 0.4; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spinReveal {
  0% { transform: scale(1.15); opacity: 0.6; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes resultReveal {
  0%   { opacity: 0; transform: translateY(30px) scale(0.97); }
  60%  { transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes emojiBounce {
  0%   { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  50%  { transform: scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ========== STAGGERED REVEALS ========== */
.stagger-in > * {
  opacity: 0;
  animation: staggerFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.04s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.12s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.16s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.20s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.24s; }

@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 360px) {
  .hero-title { font-size: 1.5rem; }
  .stat-card { padding: 12px 4px; }
  .category-grid { gap: 8px; }
  .meal-name, .movie-title { font-size: 1.3rem; }
  .spin-title { font-size: 1.5rem; }
}

@media (min-width: 481px) {
  .app { margin-top: 20px; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }

/* ========== TRAVEL MAP ========== */
.travel-map-wrap {
  margin: 0 -28px;
  overflow: hidden;
}

.travel-map {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
  filter: saturate(0.85) contrast(0.95);
}

[data-theme="dark"] .travel-map {
  filter: saturate(0.6) contrast(0.9) brightness(0.85) hue-rotate(180deg) invert(1);
}

.travel-from {
  padding: 16px 0 4px;
  text-align: left;
}

.travel-from-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.travel-from-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.travel-from-input::placeholder {
  color: var(--text-tertiary);
}

.travel-from-input:focus {
  border-color: var(--teal);
}

.rome2rio-btn:hover, .rome2rio-btn:active {
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  background: var(--teal-soft) !important;
}

/* ========== HOME GREETING ========== */
.home-greeting {
  padding: 6px 0 24px;
}

.home-greeting-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.home-greeting-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.home-greeting-title em {
  font-style: italic;
  color: var(--gold);
}

/* ========== DUO BANNER (home) ========== */
.duo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Matches .category-grid's gap so every card on the home screen sits the
     same distance apart. */
  margin-top: 12px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-banner:hover {
  border-color: var(--teal);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.duo-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1.5px solid rgba(27, 107, 109, 0.2);
}

.duo-banner-text { flex: 1; }

.duo-banner-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.duo-banner-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========== SWIPES LEFT HINT ========== */
.swipes-left-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 14px;
}

.swipes-left-hint a {
  color: var(--gold);
  font-weight: 600;
}

/* ========== ROUTE PLANNER (travel) ========== */
.route-planner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  text-align: left;
}

.route-planner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.route-planner-head h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.route-planner-via {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.route-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.route-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1.5px solid rgba(27, 107, 109, 0.25);
}

.route-step .travel-from-input { flex: 1; }

.route-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-tertiary);
  border: 1.5px solid var(--border);
  transition: all 0.25s ease;
}

.route-btn.route-btn-ready {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}

.route-btn.route-btn-ready:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow);
}

.route-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  padding-left: 36px;
  line-height: 1.5;
}

.input-attention {
  animation: inputShake 0.4s ease;
  border-color: var(--gold) !important;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ========== ACCOUNT ========== */
.account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.account-avatar-sm {
  font-size: 1.5rem;
  width: 56px;
  height: 56px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
}

.account-head-text { flex: 1; min-width: 0; }

.account-name-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed var(--border);
  padding: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.account-name-input:focus { border-bottom-color: var(--teal); border-bottom-style: solid; }
.account-name-input::placeholder { color: var(--text-tertiary); font-weight: 500; }

.account-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.plus-active-card {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  border: 1px solid rgba(196, 153, 60, 0.3);
  color: var(--text-primary);
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.plus-cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.25s ease;
}

.plus-cta-card:hover { border-color: var(--gold); background: var(--bg-card-hover); }

.plus-cta-text { flex: 1; }

.plus-cta-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.plus-cta-text h4 em { color: var(--gold); }

.plus-cta-text p { font-size: 0.72rem; color: var(--text-secondary); }

.stats-row { margin-bottom: 28px; }

.history-list {
  border-top: 1px solid var(--border);
  margin-bottom: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-icon { font-size: 1rem; flex-shrink: 0; }

.history-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-date {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.link-btn {
  display: block;
  margin: 4px auto 28px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.link-btn:hover { color: var(--teal); }

.account-empty-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  padding: 6px 0;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
}

.settings-row + .settings-row { border-top: 1px solid var(--border-subtle); }

.settings-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.seg {
  display: inline-flex;
  background: var(--vibe-bg);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: var(--bg-card);
  color: var(--teal);
  box-shadow: var(--shadow-xs);
}

.sync-explain {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 12px 0 4px;
}

.sync-actions {
  display: flex;
  gap: 8px;
  padding: 10px 0 14px;
}

.sync-import { padding-bottom: 14px; }

.sync-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  margin-bottom: 8px;
  word-break: break-all;
}

.sync-textarea:focus { border-color: var(--teal); }

.danger-link {
  display: block;
  /* Deliberate distance from whatever sits above: this one is destructive. */
  margin: 36px auto 10px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: #B8443A;
  background: none;
  border: 1.5px solid rgba(184, 68, 58, 0.32);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.danger-link:hover {
  border-color: #B8443A;
  background: rgba(184, 68, 58, 0.07);
}

[data-theme="dark"] .danger-link {
  color: #D9776C;
  border-color: rgba(217, 119, 108, 0.32);
}

[data-theme="dark"] .danger-link:hover {
  border-color: #D9776C;
  background: rgba(217, 119, 108, 0.1);
}

/* ========== INSTALL HINT ========== */
.install-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Same 12px rhythm as the category grid and the duo banner above it. */
  margin: 12px 0 0;
  padding: 14px 14px 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-hint-text { flex: 1; min-width: 0; }

.install-hint-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.install-hint-text p {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.install-hint-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.install-hint-btn:hover { background: var(--teal-hover); }

.install-hint-x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.install-hint-x:hover { opacity: 1; }

.hero-daily-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  opacity: 0.5;
}

/* ========== ABOUT ========== */
.about-lede {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 4px 0 26px;
}

.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.about-section h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.about-section p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-section p:last-child { margin-bottom: 0; }

.about-links { margin-top: 20px; }

/* An inline citation: the sentence itself is the link to the paper. */
.about-cite {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(27, 107, 109, 0.35);
  transition: text-decoration-color 0.2s ease;
}

.about-cite:hover { text-decoration-color: var(--teal); }

[data-theme="dark"] .about-cite { text-decoration-color: rgba(45, 186, 184, 0.4); }

.about-foot {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 22px 0 4px;
}

/* ========== ONBOARDING ========== */
.onboarding {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
  padding-top: 8px;
}

.ob-skip {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 6px 0;
  min-height: 30px;
  transition: color 0.2s;
}

button.ob-skip:hover { color: var(--teal); }

.ob-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 8px;
}

.ob-emoji {
  font-size: 3rem;
  margin-bottom: 22px;
  animation: emojiBounce 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* First slide leads with a screenshot instead of an emoji. It is a light-mode
   screenshot in both themes, so the frame is painted white on purpose: a bright
   panel in dark mode reads as a pinned screenshot, a half-dimmed one reads as a
   bug. --shadow-lg resolves to none under the quiet design. */
/* Sized so the whole slide clears the fixed bottom nav on a small phone: this is
   the first screen anyone sees and the Next button must not need a scroll. */
.ob-body.has-figure { justify-content: flex-start; padding-top: 2px; }

.ob-figure {
  width: 100%;
  max-width: 280px;
  margin: 0 0 16px;
}

.ob-shot {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.ob-credit {
  margin-top: 9px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.ob-source {
  margin: 14px auto 0;
  line-height: 1.45;
  text-align: center;
  color: var(--accent);
}

.ob-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 14px;
  max-width: 320px;
}

.ob-title em { font-style: italic; color: var(--gold); }

.ob-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 300px;
}

.ob-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 18px 0 26px;
}

.ob-dots { display: flex; gap: 8px; }

.ob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}

.ob-dot.active { background: var(--teal); width: 20px; border-radius: 4px; }

.ob-next { width: 100%; max-width: 280px; justify-content: center; background: var(--teal); color: #fff; }

.ob-next:hover { background: var(--teal-hover); box-shadow: 0 6px 24px var(--teal-glow); }

/* ========== CHCS PLUS ========== */
.plus-limit-banner {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  border: 1px solid rgba(196, 153, 60, 0.3);
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.plus-card {
  text-align: center;
  padding: 36px 28px 30px;
  border-radius: var(--radius-xl);
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.plus-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.plus-card .result-label { color: var(--gold); }

.plus-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.plus-title em { font-style: italic; color: var(--gold); }

.plus-benefits {
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin: 0 auto 24px;
}

.plus-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plus-benefits li:last-child { border-bottom: none; }

.plus-benefits li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid rgba(196, 153, 60, 0.4);
}

.plus-code-row {
  display: flex;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.plus-code-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #FFF8F0;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.plus-code-input::placeholder { color: rgba(255, 255, 255, 0.35); text-transform: none; letter-spacing: 0.3px; }
.plus-code-input:focus { border-color: var(--gold); }

.plus-code-btn {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1A1714;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.plus-code-btn:hover { background: var(--gold-hover); transform: translateY(-1px); }

.plus-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.plus-usage {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

.plus-thanks {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ========== OTHER: DECISION HELPER ========== */
.other-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  text-align: left;
}

.other-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.other-input {
  flex: 1;
  min-width: 0;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.other-input::placeholder { color: var(--text-tertiary); }
.other-input:focus { border-color: var(--teal); }

.other-add-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  transition: all 0.25s ease;
}

.other-add-btn:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--teal-glow); }

.other-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.other-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  animation: fadeInUp 0.25s ease;
}

.other-chip-x {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.other-chip-x:hover { background: rgba(184, 68, 58, 0.12); color: #B8443A; }

.other-empty {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding-top: 12px;
  line-height: 1.5;
}

.other-decide { margin-bottom: 4px; }

.other-decide.disabled {
  opacity: 0.45;
  border-color: var(--border);
  color: var(--text-tertiary);
}

.other-decide.disabled:hover {
  background: transparent;
  color: var(--text-tertiary);
  transform: none;
  box-shadow: none;
}

.saved-lists { display: flex; flex-direction: column; gap: 8px; }

.saved-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.saved-list-item:hover { border-color: var(--border); background: var(--bg-card-hover); }

.result-other::before {
  background: linear-gradient(90deg, #8A5096, var(--teal));
}

/* ========== DUO MODE ========== */
.duo-how {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.duo-how-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.duo-how-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--teal-soft);
  color: var(--teal);
}

.duo-secret-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 14px;
  font-style: italic;
}

.duo-handoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 16px 40px;
}

.duo-handoff .hero-btn {
  margin-top: 26px;
  background: var(--teal);
  color: #fff;
}

.duo-handoff .hero-btn:hover { background: var(--teal-hover); box-shadow: 0 6px 24px var(--teal-glow); }

.duo-handoff .link-btn { margin-top: 12px; }

.duo-match-banner {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  padding: 14px 0 22px;
  animation: emojiBounce 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.duo-winner { box-shadow: 0 0 0 3px var(--gold-glow), var(--shadow-xl); }

.duo-others {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================================
   DESIGN LAYERS: toggled in Account (see DESIGNS in app.js)
   Both are overrides on top of the base styles above.
   "elegant" (default): refined, editorial, italic serif accents.
   "quiet":             minimal and calm: no shadows, no hover
                        motion, hairline borders, same palette.
   ============================================================ */

/* ---------- ELEGANT ---------- */
[data-design="elegant"] {
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --radius-xl: 22px;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(90, 70, 40, 0.05);
  --shadow-lg: 0 12px 40px rgba(90, 70, 40, 0.08), 0 2px 6px rgba(90, 70, 40, 0.04);
  --shadow-xl: 0 24px 70px rgba(90, 70, 40, 0.1), 0 4px 12px rgba(90, 70, 40, 0.04);
}

[data-design="elegant"][data-theme="dark"] {
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 70px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-design="elegant"] .app-main { padding: calc(28px + env(safe-area-inset-top, 0px)) 26px 0; }

[data-design="elegant"] .home-greeting { padding: 10px 0 28px; }

[data-design="elegant"] .home-greeting-title {
  font-size: 1.95rem;
  font-weight: 400;
}

[data-design="elegant"] .hero-card { padding: 40px 30px 34px; }

[data-design="elegant"] .hero-title {
  font-size: 2rem;
  font-weight: 400;
}

[data-design="elegant"] .section-title { letter-spacing: 3px; margin-bottom: 20px; }

[data-design="elegant"] .category-card {
  text-align: left;
  box-shadow: none;
  border-color: var(--border-subtle);
  padding: 22px 20px;
}

[data-design="elegant"] .category-card:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
  background: var(--bg-card-hover);
}

[data-design="elegant"] .category-icon { margin: 0 0 14px; width: 42px; height: 42px; }

[data-design="elegant"] .category-card h4 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
}

[data-design="elegant"] .mood-pill {
  box-shadow: none;
  border-color: var(--border-subtle);
  padding: 22px 14px;
}

[data-design="elegant"] .mood-pill:hover { box-shadow: var(--shadow); transform: none; }

[data-design="elegant"] .mood-header h2 { font-size: 1.85rem; font-weight: 400; }

[data-design="elegant"] .swipe-card { border: none; padding: 40px 28px 34px; }

[data-design="elegant"] .swipe-card::before { opacity: 0.55; }

[data-design="elegant"] .swipe-card-title { font-size: 1.7rem; font-weight: 500; }

[data-design="elegant"] .result-card { border: none; padding: 40px 30px 30px; }

[data-design="elegant"] .result-title { font-size: 2rem; font-weight: 400; }

[data-design="elegant"] .travel-map-wrap { margin: 0 -30px; }

[data-design="elegant"] .duo-banner { box-shadow: none; border-color: var(--border-subtle); }

[data-design="elegant"] .duo-banner:hover { transform: none; box-shadow: var(--shadow); }

[data-design="elegant"] .settings-card,
[data-design="elegant"] .other-card,
[data-design="elegant"] .route-planner,
[data-design="elegant"] .plus-cta-card { box-shadow: none; border-color: var(--border-subtle); }

[data-design="elegant"] .home-footer-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0;
}


/* ---------- QUIET ----------
   Monochrome iOS, after the turn 3 concepts. Nothing on this layer carries
   hue: the palette is pure greyscale in both themes and ink (black in light,
   white in dark) is the only "colour" a control ever gets, so the act of
   choosing is the one thing that stands out.

   The vocabulary, in order of how often it shows up:
     - grouped list rows with a circular outlined glyph badge on the left
     - white cards on a grey field, hairline borders, one 1px shadow
     - system sans for structure, Fraunces italic for the one display line
     - a filled ink slab for the primary moment (hero, accept, active mood)
     - uppercase micro-labels at wide tracking for anything secondary */
[data-design="quiet"] {
  /* Greyscale field. iOS grouped-list values, warmed by exactly nothing. */
  --bg: #F2F2F2;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7F7F7;
  --text-primary: #111111;
  --text-secondary: #6D6D72;
  --text-tertiary: #8A8A8E;
  --border: #E0E0E0;
  --border-subtle: #ECECEC;

  /* Both accents collapse to ink. Every rule that reached for teal or gold
     now reaches for black, which is why so little else needs overriding. */
  --teal: #111111;
  --teal-hover: #000000;
  --teal-soft: rgba(0, 0, 0, 0.05);
  --teal-glow: rgba(0, 0, 0, 0.06);
  --gold: #111111;
  --gold-hover: #000000;
  --gold-soft: rgba(0, 0, 0, 0.05);
  --gold-glow: rgba(0, 0, 0, 0.06);

  --vibe-bg: transparent;
  --vibe-bg-active: #111111;
  --vibe-text: #6D6D72;
  --vibe-text-active: #FFFFFF;
  --input-bg: #FFFFFF;
  --input-border: #E0E0E0;
  --tag-bg: #F0F0F0;
  --tag-text: #6D6D72;

  /* One hairline lift, used everywhere a card sits on the grey field. It is
     the whole shadow budget for this layer. */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 1px 2px rgba(0, 0, 0, 0.05);

  --radius-xl: 18px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* System sans is the point: it is what makes the layer read as native
     rather than as a web page wearing a serif. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  /* Source Serif 4, not the app's Fraunces: Fraunces is deliberately wonky
     and reads as a display face, where the concepts want a quiet book italic
     that sits next to system sans without shouting. */
  --font-display: "Source Serif 4", Georgia, serif;

  /* The hero is a filled ink slab, not a soft panel. */
  --hero-bg: #111111;
  --hero-text: #FFFFFF;
  --grain-opacity: 0;
}

[data-design="quiet"][data-theme="dark"] {
  --bg: #000000;
  --bg-card: #1C1C1E;
  --bg-card-hover: #262628;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --border: #2C2C2E;
  --border-subtle: #232325;

  /* Ink inverts: white is now the emphatic fill. */
  --teal: #FFFFFF;
  --teal-hover: #F0F0F0;
  --teal-soft: rgba(255, 255, 255, 0.08);
  --teal-glow: rgba(255, 255, 255, 0.1);
  --gold: #FFFFFF;
  --gold-hover: #F0F0F0;
  --gold-soft: rgba(255, 255, 255, 0.08);
  --gold-glow: rgba(255, 255, 255, 0.1);

  --vibe-bg: transparent;
  --vibe-bg-active: #FFFFFF;
  --vibe-text: rgba(255, 255, 255, 0.62);
  --vibe-text-active: #111111;
  --input-bg: #1C1C1E;
  --input-border: #2C2C2E;
  --tag-bg: #2C2C2E;
  --tag-text: rgba(255, 255, 255, 0.62);

  /* A shadow does nothing on a black field; the hairline border carries it. */
  --shadow-xs: none;
  --shadow: none;
  --shadow-lg: none;
  --shadow-xl: none;

  --hero-bg: #1C1C1E;
  --hero-text: #FFFFFF;
}

/* The tinted radial washes are the last hue in the app. */
[data-design="quiet"] body::before { display: none; }

/* ----- Layout ----- */
[data-design="quiet"] .app-main { padding: calc(26px + env(safe-area-inset-top, 0px)) 20px 0; }
[data-design="quiet"] .home-greeting { padding: 6px 0 22px; }

/* ----- Display type: one serif italic line per screen, sans for the rest ---- */
[data-design="quiet"] .home-greeting-label {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

[data-design="quiet"] .home-greeting-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

/* No gold to inherit, so the emphasised word carries no colour of its own. */
[data-design="quiet"] .home-greeting-title em { color: inherit; }

/* Structural headings go back to the system sans: in the concepts the serif
   is reserved for the single largest line on a screen, never for a row. */
[data-design="quiet"] .category-card h4,
[data-design="quiet"] .mood-pill-label,
[data-design="quiet"] .duo-banner-text h4,
[data-design="quiet"] .fav-info h4,
[data-design="quiet"] .other-card h4,
[data-design="quiet"] .stat-number {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.2px;
}

/* ----- Section labels ----- */
[data-design="quiet"] .section-title,
[data-design="quiet"] .filter-label {
  font-weight: 700;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* ----- Hero: the ink slab ----- */
[data-design="quiet"] .hero-card {
  padding: 20px 18px 18px;
  border: none;
}

[data-design="quiet"] .hero-card::before,
[data-design="quiet"] .hero-card::after { display: none; }

[data-design="quiet"] .hero-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

[data-design="quiet"] .hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
}

[data-design="quiet"] .hero-desc {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

/* White on ink, a rounded rect rather than a pill: the concepts' one CTA. */
[data-design="quiet"] .hero-btn {
  background: #FFFFFF;
  color: #111111;
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

[data-design="quiet"] .hero-btn:hover {
  background: #FFFFFF;
  transform: none;
  box-shadow: none;
  opacity: 0.9;
}

[data-design="quiet"] .hero-daily-note { color: rgba(255, 255, 255, 0.4); }

/* In dark the slab is a raised card, so its text uses the normal scale. */
[data-design="quiet"][data-theme="dark"] .hero-card { border: 1px solid var(--border); }
[data-design="quiet"][data-theme="dark"] .hero-label { color: var(--text-tertiary); }
[data-design="quiet"][data-theme="dark"] .hero-desc { color: var(--text-secondary); }
[data-design="quiet"][data-theme="dark"] .hero-daily-note { color: var(--text-tertiary); }

/* ----- Browse: a grouped list, not a grid of tiles -----
   The single most characteristic move of the concepts: full-width rows, a
   circular outlined glyph badge on the left, title over detail, chevron. */
[data-design="quiet"] .category-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

[data-design="quiet"] .category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon title chev"
    "icon desc  chev";
  align-items: center;
  align-content: center;
  column-gap: 12px;
  text-align: left;
  padding: 11px 14px;
}

/* A grid pseudo-element is a grid item, so the chevron needs no markup. */
[data-design="quiet"] .category-card::after {
  content: "\203A";
  grid-area: chev;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-tertiary);
  padding-left: 4px;
}

[data-design="quiet"] .category-card.coming-soon::after { content: none; }

[data-design="quiet"] .category-card h4 {
  grid-area: title;
  font-size: 0.92rem;
  margin-bottom: 0;
}

[data-design="quiet"] .category-card p,
[data-design="quiet"] .coming-soon-badge { grid-area: desc; }

[data-design="quiet"] .category-card p {
  font-size: 0.73rem;
  color: var(--text-secondary);
}

/* The badge: outlined circle, ink glyph, no per-category tint. */
[data-design="quiet"] .category-card .category-icon,
[data-design="quiet"] .category-header .category-icon,
[data-design="quiet"] .duo-banner-icon {
  background: transparent;
  color: var(--text-primary);
  border: 1.4px solid var(--border);
}

[data-design="quiet"] .category-card .category-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  margin: 0;
}

[data-design="quiet"] .category-card .category-icon svg { width: 17px; height: 17px; }

[data-design="quiet"] .category-header .category-icon { width: 44px; height: 44px; }

[data-design="quiet"] .category-card:hover,
[data-design="quiet"] .mood-pill:hover,
[data-design="quiet"] .duo-banner:hover,
[data-design="quiet"] .fav-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: none;
  box-shadow: var(--shadow);
}

[data-design="quiet"] .category-card:active,
[data-design="quiet"] .mood-pill:active { transform: none; scale: 1; }

/* ----- Cards: white on grey, hairline, one shadow ----- */
[data-design="quiet"] .category-card,
[data-design="quiet"] .mood-pill,
[data-design="quiet"] .swipe-card,
[data-design="quiet"] .result-card,
[data-design="quiet"] .settings-card,
[data-design="quiet"] .other-card,
[data-design="quiet"] .route-planner,
[data-design="quiet"] .plus-cta-card,
[data-design="quiet"] .duo-banner,
[data-design="quiet"] .fav-item {
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

[data-design="quiet"] .duo-banner { padding: 12px 14px; }
[data-design="quiet"] .duo-banner-icon { width: 34px; height: 34px; }
[data-design="quiet"] .duo-banner-text h4 { font-size: 0.92rem; }
[data-design="quiet"] .duo-banner-text p { font-size: 0.73rem; }

/* ----- Moods: ink fill marks the chosen one ----- */
[data-design="quiet"] .mood-pill { padding: 20px 14px; }

[data-design="quiet"] .mood-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: none;
}

[data-design="quiet"] .mood-pill.active .mood-pill-label,
[data-design="quiet"] .mood-pill.active .mood-pill-desc { color: var(--bg-card); }

[data-design="quiet"] .mood-pill:hover .mood-pill-emoji,
[data-design="quiet"] .mood-pill.active .mood-pill-emoji { transform: none; }

[data-design="quiet"] .mood-pill-label { font-size: 0.95rem; }

[data-design="quiet"] .mood-surprise {
  border-style: solid;
  border-width: 1px;
  border-color: var(--border);
  border-radius: var(--radius);
}

[data-design="quiet"] .mood-header { padding: 8px 0 24px; }

[data-design="quiet"] .mood-header h2,
[data-design="quiet"] .category-header-text h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* ----- Chips: ink pill when active, hairline outline when not ----- */
[data-design="quiet"] .filter-chip {
  background: transparent;
  border-color: var(--border);
  font-weight: 500;
}

[data-design="quiet"] .filter-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

[data-design="quiet"] .filter-chip.active {
  border-color: var(--vibe-bg-active);
  font-weight: 600;
}

/* ----- Swipe + result ----- */
[data-design="quiet"] .swipe-card { padding: 30px 22px 26px; }
[data-design="quiet"] .result-card { padding: 32px 24px 24px; }

[data-design="quiet"] .swipe-card::before,
[data-design="quiet"] .result-card::before { display: none; }

/* The concepts set the meal title itself in serif italic on the card. */
[data-design="quiet"] .swipe-card-title {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}

[data-design="quiet"] .result-title {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}

[data-design="quiet"] .swipe-card-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----- Buttons: filled ink primary, hairline secondary ----- */
[data-design="quiet"] .btn,
[data-design="quiet"] .action-btn {
  border-radius: 12px;
  letter-spacing: -0.1px;
}

[data-design="quiet"] .btn-primary {
  background: var(--text-primary);
  color: var(--bg-card);
  border: 1.5px solid var(--text-primary);
  font-weight: 600;
}

[data-design="quiet"] .btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-card);
  transform: none;
  box-shadow: none;
  opacity: 0.88;
}

/* --teal is white in dark, so the accept label has to flip with it. */
[data-design="quiet"] .action-accept { color: var(--bg-card); }

[data-design="quiet"] .action-accept:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.88;
}

/* Rejecting is not an error, so it stays greyscale like everything else. */
[data-design="quiet"] .action-reject:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--teal-soft);
}

[data-design="quiet"] .plan-week-btn {
  border-style: solid;
  border-width: 1px;
  border-radius: 12px;
}

[data-design="quiet"] .plan-week-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--teal-soft);
}

[data-design="quiet"] .action-btn:hover,
[data-design="quiet"] .plus-code-btn:hover,
[data-design="quiet"] .other-add-btn:hover {
  transform: none;
  box-shadow: none;
}

/* .ob-next is a .hero-btn, but it sits on the grey field rather than on the
   ink slab, so the hero's white-on-ink treatment has to invert back. */
[data-design="quiet"] .ob-next {
  background: var(--text-primary);
  color: var(--bg-card);
}

[data-design="quiet"] .ob-next:hover {
  background: var(--text-primary);
  box-shadow: none;
  opacity: 0.88;
}

/* ----- The last of the hue -----
   These rules reach past the variables for a literal green / red / gold, so
   collapsing --teal and --gold to ink does not catch them. Each one is a
   content tag or a hairline that would otherwise be the only coloured pixel
   on the screen. */
[data-design="quiet"] .effort-easy,
[data-design="quiet"] .effort-medium,
[data-design="quiet"] .effort-involved,
[data-design="quiet"] .mood-light,
[data-design="quiet"] .mood-intense,
[data-design="quiet"] .mood-thought-provoking,
[data-design="quiet"] .mood-funny {
  background: var(--tag-bg);
  color: var(--tag-text);
}

[data-design="quiet"] .continent-pill.active {
  background: var(--vibe-bg-active);
  border-color: var(--vibe-bg-active);
  color: var(--vibe-text-active);
}

[data-design="quiet"] .swipe-hint-accept {
  color: var(--text-primary);
  background: var(--teal-soft);
  border-color: var(--border);
}

[data-design="quiet"] .route-step-num,
[data-design="quiet"] .plus-benefits li span {
  background: var(--teal-soft);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-design="quiet"] .plus-active-card,
[data-design="quiet"] .plus-limit-banner {
  background: var(--teal-soft);
  border-color: var(--border);
}

[data-design="quiet"] .about-cite {
  color: var(--text-primary);
  text-decoration-color: var(--border);
}

/* ----- Settings: an iOS grouped list ----- */
[data-design="quiet"] .settings-card { padding: 2px 16px; }
[data-design="quiet"] .settings-row { padding: 12px 0; }
[data-design="quiet"] .settings-row + .settings-row { border-top-width: 0.5px; }

[data-design="quiet"] .seg {
  background: var(--teal-soft);
  border-radius: 10px;
  padding: 2px;
}

[data-design="quiet"] .seg-btn { border-radius: 8px; font-weight: 500; }

[data-design="quiet"] .seg-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

[data-design="quiet"][data-theme="dark"] .seg-btn.active { background: #3A3A3C; }

/* ----- Chrome: a native tab bar, not a row of bordered circles ----- */
[data-design="quiet"] .app-nav {
  background: rgba(242, 242, 242, 0.85);
  border-top: 0.5px solid var(--border);
}

[data-design="quiet"][data-theme="dark"] .app-nav {
  background: rgba(0, 0, 0, 0.8);
  border-top-color: var(--border);
}

[data-design="quiet"] .nav-item {
  border-color: transparent;
  background: none;
  color: var(--text-tertiary);
}

[data-design="quiet"] .nav-item:hover,
[data-design="quiet"] .nav-item.active {
  border-color: transparent;
  background: none;
  color: var(--text-primary);
}

[data-design="quiet"] .travel-map-wrap { margin: 0 -20px; }

[data-design="quiet"] .home-footer-hint {
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--text-tertiary);
}

/* Quiet has no emoji (they are stripped at paint time in app.js). These
   wrappers exist only to hold one, so they are hidden rather than left as
   empty boxes. Monochrome marks that read as typography stay: the heart in
   the empty-favourites state and the tick / cross swipe hints keep theirs. */
[data-design="quiet"] .mood-header-icon,
[data-design="quiet"] .mood-pill-emoji,
[data-design="quiet"] .swipe-card-emoji,
[data-design="quiet"] .result-emoji,
[data-design="quiet"] .share-card-emoji,
[data-design="quiet"] .mode-icon,
[data-design="quiet"] .accepted-icon,
[data-design="quiet"] .history-icon,
[data-design="quiet"] .fav-icon,
[data-design="quiet"] .ob-emoji { display: none; }
