:root {
    --surface: #f8f9fa;
    --surface-lowest: #ffffff;
    --surface-low: #f3f4f5;
    --surface-container: #edeeef;
    --surface-high: #e7e8e9;
    --surface-highest: #e1e3e4;
    --text: #191c1d;
    --text-soft: #414845;
    --text-muted: #727975;
    --primary: #00150e;
    --primary-container: #0d2b22;
    --mint: #c9eadc;
    --mint-dim: #adcec0;
    --gold: #705b32;
    --gold-soft: #f9dca8;
    --line: #d7ddd9;
    --line-strong: #c1c8c3;
    --danger: #ba1a1a;
    --success: #2f6f56;
    --error: #ba1a1a;
    --shadow-soft: 0 10px 30px rgba(13, 43, 34, 0.07);
    --shadow-panel: 0 22px 60px rgba(13, 43, 34, 0.10);
    --radius: 8px;
    --radius-lg: 16px;
    --max-width: 1280px;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(201, 234, 220, 0.95);
    outline-offset: 3px;
}

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

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

.urban-shell {
    padding-top: 76px;
    padding-bottom: 0;
}

.top-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 76px;
    background: rgba(248, 249, 250, 0.92);
    border-bottom: 1px solid rgba(193, 200, 195, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 36px rgba(13, 43, 34, 0.06);
}

.nav-inner {
    width: min(100%, var(--max-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand-mark {
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 6px;
    border: 1px solid rgba(193, 200, 195, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(13, 43, 34, 0.06);
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    white-space: nowrap;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-mark:hover {
    border-color: rgba(13, 43, 34, 0.28);
    box-shadow: 0 12px 30px rgba(13, 43, 34, 0.09);
    transform: translateY(-1px);
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    margin-left: 4px;
    padding: 5px;
    border: 1px solid rgba(193, 200, 195, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav a {
    position: relative;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    color: var(--primary);
    background: rgba(201, 234, 220, 0.48);
}

.desktop-nav a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.17);
}

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

.nav-search {
    height: 44px;
    width: clamp(190px, 17vw, 248px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(193, 200, 195, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-search:focus-within {
    background: var(--surface-lowest);
    border-color: var(--primary-container);
    box-shadow: 0 8px 24px rgba(13, 43, 34, 0.09);
}

.nav-search span {
    color: var(--text-soft);
    font-size: 20px;
}

.nav-search input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    background: transparent;
    color: var(--text);
}

.icon-button,
.avatar-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(193, 200, 195, 0.72);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.66);
    color: var(--primary);
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.avatar-button:hover {
    background: var(--surface-lowest);
    border-color: rgba(13, 43, 34, 0.28);
    box-shadow: 0 8px 22px rgba(13, 43, 34, 0.08);
    transform: translateY(-1px);
}

.avatar-button {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-canvas {
    width: min(100%, var(--max-width));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.flash-stack {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 9999;
    display: grid;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.flash-message {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(193, 200, 195, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-panel);
    color: var(--text);
    animation: flashSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash-message.success {
    border-left: 4px solid var(--primary);
    background: rgba(244, 248, 245, 0.95);
}

.flash-message.error {
    border-left: 4px solid var(--danger);
    background: rgba(253, 244, 244, 0.95);
}

.flash-message.warning {
    border-left: 4px solid var(--gold);
    background: rgba(253, 250, 244, 0.95);
}

.flash-message button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-flow {
    display: grid;
    gap: 64px;
}

.hero-vibe {
    width: min(100%, 760px);
    margin: 0 auto;
    min-height: 560px;
    padding: 64px 32px;
    text-align: center;
    display: grid;
    align-content: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(248, 249, 250, 0.88) 0%, rgba(248, 249, 250, 0.64) 48%, rgba(248, 249, 250, 0.22) 100%),
        url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?w=1800&h=1100&fit=crop&auto=format");
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(193, 200, 195, 0.55);
}

.hero-vibe > * {
    min-width: 0;
}

.hero-copy {
    width: min(100%, 680px);
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.hero-vibe::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px 24px;
    height: 1px;
    background: rgba(13, 43, 34, 0.12);
    z-index: -1;
}

.section-kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-vibe h1,
.section-heading h1,
.section-heading h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-vibe h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
}

.hero-vibe p,
.section-heading p {
    color: var(--text-soft);
    font-size: 1.08rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-search {
    height: 64px;
    width: min(100%, 640px);
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: rgba(243, 244, 245, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 0 rgba(13, 43, 34, 0.03);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-search:focus-within {
    background: var(--surface-lowest);
    border-color: var(--primary-container);
    box-shadow: var(--shadow-soft);
}

.hero-search span {
    color: var(--primary);
}

.hero-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

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

.chip-row.center {
    justify-content: center;
}

.vibe-chip,
.pill-chip {
    border: 1px solid rgba(193, 200, 195, 0.72);
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--surface-lowest);
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(13, 43, 34, 0.03);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.vibe-chip:hover,
.pill-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 43, 34, 0.26);
    background: var(--surface-low);
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.06);
}

.vibe-chip.selected,
.pill-chip.selected {
    border-color: transparent;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 43, 34, 0.14);
}

.content-section {
    display: grid;
    gap: 24px;
    scroll-margin-top: 104px;
}

.section-heading {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
}

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading a {
    color: var(--primary);
    font-weight: 800;
    text-decoration-color: rgba(13, 43, 34, 0.28);
    text-underline-offset: 4px;
    white-space: nowrap;
}

.objective-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.objective-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(193, 200, 195, 0.7);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    color: var(--text);
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.objective-card:hover,
.objective-card.selected {
    border-color: rgba(13, 43, 34, 0.38);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.objective-card.selected .material-symbols-outlined {
    background: var(--mint-dim);
}

.objective-card .material-symbols-outlined {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--surface-container);
    color: var(--primary);
    transition: background 180ms ease;
}

.objective-card strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
}

.objective-card small {
    color: var(--text-soft);
}

.preference-panel {
    padding: 28px;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
}

.preference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.preference-group {
    display: grid;
    gap: 12px;
}

.preference-group label {
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 800;
}

.segmented-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.segment {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-lowest);
    color: var(--text-soft);
    font-weight: 800;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.segment:hover {
    border-color: rgba(13, 43, 34, 0.26);
    background: var(--surface-low);
    transform: translateY(-1px);
}

.segment.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.13);
}

.planner-goal-row-extra {
    margin-top: 8px;
}

.budget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
}

.budget-row strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.range-slider {
    width: 100%;
    accent-color: var(--primary-container);
}

.primary-cta,
.secondary-cta,
.submit-rating-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    padding: 0 24px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-cta {
    width: 100%;
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 43, 34, 0.12);
}

.primary-cta:hover,
.secondary-cta:hover,
.submit-rating-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.primary-cta:disabled,
.secondary-cta:disabled,
.submit-rating-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.secondary-cta {
    width: 100%;
    background: var(--surface-lowest);
    color: var(--primary);
}

.secondary-cta:hover {
    background: var(--mint);
    border-color: var(--primary-container);
}

.cta-compact,
.primary-cta.cta-compact,
.secondary-cta.cta-compact {
    width: auto;
    min-height: 44px;
    margin-top: 0;
    padding: 0 18px;
    flex: 0 0 auto;
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.dish-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.dish-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.dish-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-container);
    color: var(--primary);
    text-decoration: none;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.045);
}

.dish-image > .material-symbols-outlined {
    font-size: 56px;
}

.dish-body {
    display: grid;
    gap: 12px;
    padding: 22px;
    flex: 1;
}

.dish-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dish-title-row h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.28rem;
    line-height: 1.25;
    color: var(--primary);
}

.dish-title-row span {
    color: var(--primary);
    font-weight: 900;
    white-space: nowrap;
}

.dish-body p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(193, 200, 195, 0.45);
    border-radius: 999px;
    background: var(--surface-low);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.discovery-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.filter-rail {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 24px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.filter-head h2,
.filter-block h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary);
}

.filter-head h2 {
    font-size: 1.15rem;
}

.filter-head a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.filter-block {
    display: grid;
    gap: 12px;
}

.filter-block h3 {
    font-size: 0.92rem;
}

.filter-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.price-band span {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-container);
    color: var(--text-soft);
    font-weight: 900;
}

.price-band span.selected {
    background: var(--primary);
    color: #fff;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 700;
}

.check-line span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font-size: 16px;
}

.check-line.selected span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.results-panel {
    min-width: 0;
    display: grid;
    gap: 24px;
}

.results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-hero {
    padding-bottom: 4px;
}

.catalog-toolbar {
    padding: 22px;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
}

.catalog-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto auto;
    gap: 12px;
    align-items: center;
}

.catalog-search {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--text-muted);
}

.catalog-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
}

.catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card .dish-body {
    gap: 12px;
}

.save-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(193, 200, 195, 0.66);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(13, 43, 34, 0.12);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.save-button:hover {
    border-color: rgba(13, 43, 34, 0.28);
    box-shadow: 0 10px 20px rgba(13, 43, 34, 0.14);
    transform: translateY(-1px);
}

.save-button.saved {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.save-button:disabled {
    cursor: default;
}

.match-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(201, 234, 220, 0.92);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-line .material-symbols-outlined {
    font-size: 17px;
}

.nutrition-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nutrition-row div {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-lowest);
    text-align: center;
}

.nutrition-row strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.nutrition-row span {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.reason-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.reason-box .material-symbols-outlined {
    color: var(--gold);
    font-size: 20px;
}

.rating-action-box {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--line-strong);
}

.rating-star-btn.active,
.rating-star-btn.hover {
    color: var(--gold);
}

.rating-star-btn.active .material-symbols-outlined,
.rating-star-btn.hover .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.rating-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.rating-comment-input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 0 12px;
    outline: 0;
}

.rating-comment-input:focus {
    background: var(--surface-lowest);
    border-color: var(--primary);
}

.submit-rating-btn {
    min-height: 42px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
}

.hitlist-feed {
    display: grid;
    gap: 18px;
}

.hitlist-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.hitlist-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.hitlist-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-container);
    color: var(--primary);
    text-decoration: none;
}

.hitlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hitlist-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.time-label {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hitlist-copy h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary);
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.hitlist-copy p {
    color: var(--text-soft);
}

.empty-state {
    min-height: 380px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    text-align: center;
}

.empty-state > .material-symbols-outlined {
    font-size: 54px;
    color: var(--gold);
}

.empty-state h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary);
}

.empty-state p {
    max-width: 460px;
    color: var(--text-soft);
}

.chatbot-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
}

.chatbot-trigger {
    position: relative;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-panel);
}

.pulse-indicator {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 0 5px rgba(249, 220, 168, 0.34);
}

.chat-drawer {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(380px, calc(100vw - 32px));
    height: 520px;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    box-shadow: var(--shadow-panel);
}

.chat-drawer.open {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--primary);
    color: #fff;
}

.chat-header h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.chat-header span {
    opacity: 0.76;
    font-size: 0.82rem;
}

.chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 900;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
    background: var(--surface);
}

.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 84%;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--surface-lowest);
    color: var(--text-soft);
    box-shadow: 0 1px 0 rgba(13, 43, 34, 0.08);
}

.message.user .message-bubble {
    background: var(--primary);
    color: #fff;
}

.chat-food-link {
    color: var(--primary);
    font-weight: 900;
}

.chat-input-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: var(--surface-lowest);
}

.chat-input-area input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-low);
    padding: 0 12px;
    outline: 0;
}

.chat-send {
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-send:hover {
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.14);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(193, 200, 195, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
    background: var(--surface-lowest);
    border-color: rgba(13, 43, 34, 0.28);
    box-shadow: 0 8px 20px rgba(13, 43, 34, 0.08);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-lowest);
    margin-top: 48px;
}

.footer-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.footer-brand p {
    max-width: 320px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-nav a {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
}

.glass-panel,
.admin-table-container,
.form-grid {
    background: var(--surface-lowest);
}

.form-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-low);
    color: var(--text);
    padding: 12px;
    outline: 0;
}

.form-input:focus {
    background: var(--surface-lowest);
    border-color: var(--primary);
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.field-label-row label {
    margin: 0;
}

.field-label-row a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.field-label-row a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.form-feedback {
    padding: 12px 14px;
    border: 1px solid rgba(186, 26, 26, 0.18);
    border-radius: var(--radius);
    background: rgba(186, 26, 26, 0.08);
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-feedback.success {
    border-color: rgba(47, 111, 86, 0.2);
    background: rgba(47, 111, 86, 0.1);
    color: var(--success);
}

.highlight-text {
    color: var(--primary);
}

.dev-banner {
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.15);
    color: #a85f05;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.otp-code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.06);
    font-family: monospace;
    font-weight: 800;
}

.otp-input {
    font-size: 1.45rem;
    letter-spacing: 0.5rem;
    text-align: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
    gap: 48px;
    align-items: stretch;
}

.auth-shell.register-shell {
    grid-template-columns: minmax(280px, 0.7fr) minmax(500px, 1.2fr);
}

.auth-visual {
    min-height: 620px;
    display: grid;
    align-content: end;
    gap: 16px;
    padding: 36px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background-image:
        linear-gradient(180deg, rgba(0, 21, 14, 0.08), rgba(0, 21, 14, 0.82)),
        url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1200&h=1400&fit=crop&auto=format");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.auth-visual h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
}

.auth-visual p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.auth-visual .section-kicker {
    color: var(--gold-soft);
}

.auth-card {
    display: grid;
    align-content: center;
    gap: 24px;
    padding: 36px;
    border: 1px solid rgba(193, 200, 195, 0.62);
    border-radius: 28px;
    background: var(--surface-lowest);
    box-shadow: var(--shadow-soft);
}

.auth-card.wide {
    align-content: start;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form .full-width {
    grid-column: 1 / -1;
}

.auth-footer-link {
    color: var(--text-soft);
    text-align: center;
}

.auth-footer-link a {
    color: var(--primary);
    font-weight: 900;
    text-underline-offset: 4px;
}

.auth-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.auth-footer-row .auth-footer-link {
    margin: 0;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
}

.submit-btn,
.admin-btn {
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.submit-btn:hover,
.admin-btn:hover {
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.12);
    transform: translateY(-1px);
}

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

.admin-btn.edit {
    background: var(--surface-lowest);
    border-color: var(--line-strong);
    color: var(--primary);
}

.admin-btn.edit:hover {
    border-color: var(--primary);
    background: var(--mint);
}

.admin-btn.delete {
    background: rgba(186, 26, 26, 0.08);
    border-color: rgba(186, 26, 26, 0.24);
    color: var(--danger);
}

.admin-btn.delete:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.form-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-submit-btn {
    flex: 1;
}

.submit-btn-secondary {
    width: auto;
    background: var(--surface-lowest);
    border-color: var(--line-strong);
    color: var(--primary);
}

.submit-btn-secondary:hover {
    border-color: var(--primary);
    background: var(--mint);
}

@media (max-width: 1100px) {
    .objective-grid,
    .dish-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discovery-layout {
        grid-template-columns: 1fr;
    }

    .filter-rail {
        position: static;
        max-height: none;
    }

    .catalog-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .urban-shell {
        padding-top: 66px;
    }

    .top-nav {
        height: 66px;
    }

    .nav-inner {
        padding: 0 16px;
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .brand-mark {
        min-height: 42px;
        padding-right: 10px;
        font-size: 0.95rem;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .icon-button {
        display: none;
    }

    .avatar-button,
    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .desktop-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(193, 200, 195, 0.78);
        border-radius: var(--radius-lg);
        background: rgba(248, 249, 250, 0.98);
        box-shadow: var(--shadow-panel);
        z-index: 60;
        overflow: visible;
    }

    .desktop-nav.open {
        display: flex;
    }

    .desktop-nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 999px;
        font-size: 0.95rem;
    }

    .desktop-nav a.active {
        background: var(--primary);
        color: #fff;
        box-shadow: none;
    }

    .page-canvas {
        padding: 32px 16px 44px;
    }

    .hero-vibe {
        text-align: left;
        min-height: 540px;
        padding: 42px 20px;
        border-radius: 20px;
        background-image:
            linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.83) 55%, rgba(248, 249, 250, 0.62) 100%),
            url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?w=1100&h=1400&fit=crop&auto=format");
    }

    .hero-copy {
        margin: 0;
    }

    .hero-search {
        width: 100%;
    }

    .chip-row.center {
        justify-content: flex-start;
    }

    .objective-grid,
    .preference-grid,
    .dish-grid,
    .results-grid,
    .catalog-grid,
    .catalog-filter-form {
        grid-template-columns: 1fr;
    }

    .catalog-search {
        grid-column: auto;
    }

    .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
    }

    .preference-panel {
        padding: 20px;
    }

    .filter-rail {
        display: none;
    }

    .hitlist-item {
        grid-template-columns: 1fr;
    }

    .auth-shell,
    .auth-shell.register-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-visual {
        min-height: 340px;
        padding: 28px;
        border-radius: 20px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 20px;
    }

    .auth-form.two-col {
        grid-template-columns: 1fr;
    }

    .chatbot-widget {
        right: 16px;
        bottom: 24px;
    }

    .footer-inner {
        flex-direction: column;
        padding: 28px 16px;
    }
}

@media (max-width: 520px) {
    .hero-vibe h1 {
        font-size: 2.35rem;
    }

    .hero-search {
        height: 58px;
    }

    .segmented-row,
    .nutrition-row {
        grid-template-columns: 1fr;
    }

    .rating-row {
        grid-template-columns: 1fr;
    }

    .auth-footer-row,
    .review-edit-actions,
    .form-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-compact,
    .primary-cta.cta-compact,
    .secondary-cta.cta-compact {
        width: 100%;
    }

    .otp-input {
        letter-spacing: 0.32rem;
    }
}

/* =========================================
   ALLERGY SYSTEM
   ========================================= */

.allergy-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: rgba(249, 220, 168, 0.18);
    border: 1px solid rgba(112, 91, 50, 0.25);
}

.allergy-banner .material-symbols-outlined {
    font-size: 28px;
    color: var(--gold);
}

.allergy-banner strong {
    display: block;
    color: var(--primary);
}

.allergy-banner p {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin: 2px 0 0;
}

.allergy-edit-link {
    margin-left: auto;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
}

.allergy-chip.selected,
.allergy-check-label input:checked + * {
    background: rgba(186, 26, 26, 0.12);
    border-color: var(--danger);
    color: var(--danger);
}

.allergy-chip.selected {
    background: rgba(186, 26, 26, 0.12) !important;
    color: var(--danger) !important;
}

.allergy-check-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.allergy-check-label input[type="checkbox"] {
    accent-color: var(--danger);
}

.allergen-tags {
    margin-top: 4px;
}

.allergen-tag {
    background: rgba(186, 26, 26, 0.08) !important;
    border-color: rgba(186, 26, 26, 0.22) !important;
    color: var(--danger) !important;
    font-size: 0.72rem !important;
}

/* =========================================
   NUTRITION DASHBOARD
   ========================================= */

.nutrition-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.nutrition-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nutrition-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.nutrition-summary-card .material-symbols-outlined {
    font-size: 32px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-container);
    color: var(--primary);
}

.nutrition-summary-card strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.nutrition-summary-card span {
    font-size: 0.82rem;
    color: var(--text-soft);
    font-weight: 600;
}

.vitamin-bucket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.vitamin-bucket {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
}

.vitamin-bucket strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.vitamin-bucket span {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
}

.vitamin-bucket em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.vitamin-tag {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--mint-dim);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.vitamin-tag.muted {
    background: var(--surface-container);
    color: var(--text-muted);
}

.cuisine-chart-container {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    min-height: 350px;
}

.health-bucket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.health-bucket {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.health-bucket:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.health-bucket .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary);
}

.health-bucket strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary);
}

.health-bucket span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.health-bucket em {
    font-style: normal;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--success);
}

.nutrition-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(193, 200, 195, 0.62);
    background: var(--surface-lowest);
}

#nutritionTable,
#planResults,
#groceryResults {
    scroll-margin-top: 104px;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.nutrition-table thead {
    background: var(--surface-container);
}

.nutrition-table th,
.nutrition-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.nutrition-table th {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nutrition-table td a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.nutrition-table td a:hover {
    text-decoration: underline;
}

.nutrition-table tbody tr:hover {
    background: var(--surface-low);
}

/* =========================================
   MEAL PLANNER
   ========================================= */

.planner-controls {
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
}

.planner-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.planner-goal-row {
    grid-template-columns: repeat(3, 1fr);
}

.meal-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.meal-day-card {
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.meal-day-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.meal-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
}

.meal-day-header h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
}

.meal-day-header span {
    font-size: 0.82rem;
    opacity: 0.8;
}

.meal-slot {
    display: grid;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.meal-slot:last-child {
    border-bottom: none;
}

.meal-slot-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 0.06em;
}

.meal-slot-food {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meal-slot-food a {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.meal-slot-food img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meal-slot-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.15), rgba(26, 26, 46, 0.08));
    color: var(--gold);
}

.meal-slot-thumb-placeholder .material-symbols-outlined {
    font-size: 1.5rem;
}

.meal-slot-food strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
}

.meal-slot-food span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =========================================
   REVIEWS
   ========================================= */

.reviews-feed {
    display: grid;
    gap: 18px;
}

.review-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.review-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.review-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.review-action-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-lowest);
    color: var(--text-soft);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.review-action-btn:hover {
    color: var(--primary);
    border-color: rgba(13, 43, 34, 0.24);
    background: var(--mint);
    box-shadow: 0 8px 18px rgba(13, 43, 34, 0.08);
    transform: translateY(-1px);
}

.review-edit-form {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.review-edit-form label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
}

.review-edit-form select,
.review-edit-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: var(--surface-lowest);
    color: var(--text);
}

.review-edit-actions {
    display: flex;
    gap: 10px;
}

.review-food-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-container);
    display: grid;
    place-items: center;
}

.review-food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-food-info h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
}

.review-food-info h3 a {
    text-decoration: none;
}

.review-food-info h3 a:hover {
    text-decoration: underline;
}

.review-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.review-body {
    display: grid;
    gap: 8px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-stars .material-symbols-outlined {
    font-size: 20px;
    color: var(--line-strong);
}

.review-stars .star-filled {
    color: var(--gold);
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.review-author {
    margin-left: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
}

.review-text {
    font-style: italic;
    color: var(--text-soft);
    font-size: 0.95rem;
    padding: 10px 14px;
    background: var(--surface-low);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold-soft);
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =========================================
   GROCERY LIST
   ========================================= */

.grocery-controls {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
}

.grocery-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-low);
}

.grocery-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: background 150ms ease;
}

.grocery-check-item:hover {
    background: var(--surface-container);
}

.grocery-check-item input {
    accent-color: var(--primary);
}

.grocery-check-item:has(input:checked) {
    background: rgba(201, 234, 220, 0.46);
    color: var(--primary);
}

.grocery-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.grocery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grocery-category {
    border-radius: var(--radius-lg);
    background: var(--surface-lowest);
    border: 1px solid rgba(193, 200, 195, 0.62);
    overflow: hidden;
}

.grocery-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
}

.grocery-category-header h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    flex: 1;
}

.grocery-count {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
}

.grocery-items {
    display: grid;
    gap: 2px;
}

.grocery-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    align-items: center;
    transition: background 150ms ease;
}

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

.grocery-item:hover {
    background: var(--surface-low);
}

.grocery-item input {
    accent-color: var(--primary);
}

.grocery-item-name {
    font-weight: 700;
    color: var(--text);
    text-transform: capitalize;
}

.grocery-item-detail {
    grid-column: 2;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.grocery-item input:checked ~ .grocery-item-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVE OVERRIDES FOR NEW FEATURES
   ========================================= */

@media (max-width: 1100px) {
    .nutrition-summary-grid,
    .health-bucket-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planner-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nutrition-summary-grid,
    .health-bucket-grid {
        grid-template-columns: 1fr;
    }

    .meal-plan-grid {
        grid-template-columns: 1fr;
    }

    .grocery-checkboxes {
        grid-template-columns: 1fr;
    }

    .grocery-grid {
        grid-template-columns: 1fr;
    }

    .objective-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .top-nav, .site-footer, .chatbot-widget, .grocery-controls, .section-kicker, .primary-cta, .secondary-cta {
        display: none !important;
    }

    .page-canvas {
        padding: 0;
    }

    .grocery-category {
        break-inside: avoid;
    }
}
