/* ============================================
   MOODBITE — Voice-First Food Discovery App
   Complete CSS with Animations & Micro-interactions
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text-primary);
}

:root {
    /* Colors */
    --bg: #FAF8F5;
    --surface: #FFFFFF;
    --surface-warm: #F7F2ED;
    --text-primary: #1C1917;
    --text-secondary: #78716C;
    --text-muted: #A8A29E;
    --border: #E7E5E4;
    --divider: #F5F5F4;

    /* Vibrant Palette */
    --peach: #FDBA74;
    --peach-soft: rgba(253, 186, 116, 0.25);
    --mint: #34D399;
    --mint-soft: rgba(52, 211, 153, 0.25);
    --lavender: #A78BFA;
    --lavender-soft: rgba(167, 139, 250, 0.25);
    --sky: rgba(56, 189, 248, 0.25);
    --sage: rgba(52, 211, 153, 0.25);

    /* Match Score Ring */
    --match-high: #059669;
    --match-medium: #D97706;
    --match-low: #DC2626;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08);
    --shadow-xl: 0 12px 32px rgba(28, 25, 23, 0.12);
    --shadow-inset: inset 0 2px 6px rgba(28, 25, 23, 0.04);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Layout */
    --tab-bar-height: 80px;
    --header-height: 56px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- App Container ---- */
.app-container {
    width: 100%;
    height: 100dvh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    box-shadow: 0 0 60px rgba(0,0,0,0.08);
}

@media (min-width: 431px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #E7E5E4;
    }
}

/* ---- Gradient Mesh Background ---- */
.gradient-mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(253,186,116,0.6), transparent 70%);
    top: -80px;
    left: -60px;
    animation: blobDrift1 12s ease-in-out infinite;
}

.blob-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(52,211,153,0.5), transparent 70%);
    top: 25%;
    right: -80px;
    animation: blobDrift2 15s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167,139,250,0.5), transparent 70%);
    bottom: 15%;
    left: -100px;
    animation: blobDrift3 18s ease-in-out infinite;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, 20px) scale(1.05); }
    66% { transform: translate(-20px, 40px) scale(0.95); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -20px) scale(1.08); }
    66% { transform: translate(20px, 30px) scale(0.92); }
}

@keyframes blobDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -30px) scale(0.95); }
    66% { transform: translate(-15px, 20px) scale(1.05); }
}

/* ---- Header Bar ---- */
.header-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.header-bar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: 0 1px 0 var(--divider);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--peach);
    box-shadow: 0 0 8px var(--peach-soft);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    border: none;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.icon-btn:active {
    transform: scale(0.92);
    box-shadow: var(--shadow-inset);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.icon-btn:active svg {
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
    display: none;
}

/* ---- Hero Section ---- */
.hero-section {
    text-align: center;
    padding: 16px 0 24px;
}

.hero-emoji-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-emoji {
    font-size: 28px;
    animation: emojiSlide 12s ease-in-out infinite;
    flex-shrink: 0;
    filter: saturate(0.85);
    transition: transform 0.2s ease;
}

.hero-emoji:hover {
    transform: scale(1.2);
    filter: saturate(1);
}

.hero-emoji:nth-child(1) { animation-delay: 0s; }
.hero-emoji:nth-child(2) { animation-delay: 0.5s; }
.hero-emoji:nth-child(3) { animation-delay: 1s; }
.hero-emoji:nth-child(4) { animation-delay: 1.5s; }
.hero-emoji:nth-child(5) { animation-delay: 2s; }
.hero-emoji:nth-child(6) { animation-delay: 2.5s; }
.hero-emoji:nth-child(7) { animation-delay: 3s; }
.hero-emoji:nth-child(8) { animation-delay: 3.5s; }

@keyframes emojiSlide {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.6; }
    25% { transform: translateX(5px) scale(1.05); opacity: 0.8; }
    50% { transform: translateX(0) scale(1); opacity: 0.6; }
    75% { transform: translateX(-5px) scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1.28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Voice Section ---- */
.voice-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 24px;
}

.voice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* Voice Pulse Ring */
.voice-pulse-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peach-soft), transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.voice-pulse-ring.active {
    opacity: 1;
    animation: voicePulse 1.4s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* Mic Button */
.mic-btn {
    width: 120px;
    height: 120px;
    border-radius: 40px;
    border: none;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow:
        0 4px 16px rgba(253, 186, 116, 0.2),
        0 8px 32px rgba(28, 25, 23, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: micIdle 3s ease-in-out infinite;
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 24px rgba(253, 186, 116, 0.3),
        0 12px 40px rgba(28, 25, 23, 0.1);
}

.mic-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-inset);
}

.mic-btn.listening {
    animation: micListening 1s ease-in-out infinite;
    background: linear-gradient(135deg, var(--peach), var(--mint));
    box-shadow:
        0 0 30px rgba(253, 186, 116, 0.4),
        0 0 60px rgba(52, 211, 153, 0.2);
}

.mic-btn.listening .mic-icon {
    color: white;
}

@keyframes micIdle {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(253, 186, 116, 0.2), 0 8px 32px rgba(28, 25, 23, 0.08); }
    50% { transform: scale(1.02); box-shadow: 0 6px 24px rgba(253, 186, 116, 0.3), 0 12px 40px rgba(28, 25, 23, 0.1); }
}

@keyframes micListening {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.mic-btn-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-icon {
    width: 40px;
    height: 40px;
    color: var(--peach);
    transition: color 0.3s ease;
}

/* Waveform */
.waveform-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.waveform-container.active {
    opacity: 1;
    transform: translateY(0);
}

.waveform-bar {
    width: 3px;
    background: var(--peach);
    border-radius: 2px;
    transition: height 0.1s ease;
    animation: waveformIdle 0.8s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(1) { height: 8px; animation-delay: 0.0s; }
.waveform-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 16px; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 28px; animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { height: 10px; animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { height: 22px; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 18px; animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { height: 26px; animation-delay: 1.0s; }
.waveform-bar:nth-child(12) { height: 12px; animation-delay: 1.1s; }
.waveform-bar:nth-child(13) { height: 20px; animation-delay: 1.2s; }
.waveform-bar:nth-child(14) { height: 16px; animation-delay: 1.3s; }
.waveform-bar:nth-child(15) { height: 24px; animation-delay: 1.4s; }
.waveform-bar:nth-child(16) { height: 10px; animation-delay: 1.5s; }
.waveform-bar:nth-child(17) { height: 18px; animation-delay: 1.6s; }
.waveform-bar:nth-child(18) { height: 22px; animation-delay: 1.7s; }
.waveform-bar:nth-child(19) { height: 14px; animation-delay: 1.8s; }
.waveform-bar:nth-child(20) { height: 20px; animation-delay: 1.9s; }

@keyframes waveformIdle {
    0% { transform: scaleY(0.6); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

.waveform-container.active .waveform-bar {
    animation: waveformActive 0.4s ease-in-out infinite alternate;
}

@keyframes waveformActive {
    0% { transform: scaleY(0.3); opacity: 0.4; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Listening Label */
.listening-label {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    max-width: 260px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.listening-label.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Transcription Section ---- */
.transcription-section {
    padding: 8px 0 24px;
    animation: fadeIn 0.4s ease-out;
}

.transcription-bubble {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.3;
    color: var(--text-primary);
    word-wrap: break-word;
    box-shadow: var(--shadow-md);
}

.transcription-bubble .highlight {
    display: inline;
    transition: all 0.3s ease;
}

.transcription-bubble .highlight-spicy {
    color: #EA580C;
    text-shadow: 0 0 12px rgba(234, 88, 12, 0.3);
}

.transcription-bubble .highlight-sweet {
    color: #DB2777;
    text-shadow: 0 0 12px rgba(219, 39, 119, 0.3);
}

.transcription-bubble .highlight-savory {
    color: #65A30D;
    text-shadow: 0 0 12px rgba(101, 163, 13, 0.3);
}

.transcription-bubble .highlight-crispy {
    color: #CA8A04;
    text-shadow: 0 0 12px rgba(202, 138, 4, 0.3);
}

.transcription-bubble .highlight-healthy {
    color: #059669;
    text-shadow: 0 0 12px rgba(5, 150, 105, 0.3);
}

.transcription-bubble .highlight-cozy {
    color: #7C3AED;
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.transcription-bubble .highlight-fresh {
    color: #0891B2;
    text-shadow: 0 0 12px rgba(8, 145, 178, 0.3);
}

.transcription-bubble .highlight-rich {
    color: #9333EA;
    text-shadow: 0 0 12px rgba(147, 51, 234, 0.3);
}

.transcription-bubble .highlight-light {
    color: #0D9488;
    text-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
}

.transcription-bubble .highlight-indulgent {
    color: #BE185D;
    text-shadow: 0 0 12px rgba(190, 24, 93, 0.3);
}

/* ---- Loading Shimmer ---- */
.loading-section {
    padding: 16px 0 24px;
    animation: fadeIn 0.3s ease-out;
}

.shimmer-text {
    height: 56px;
    background: linear-gradient(90deg, var(--divider) 25%, #FAFAF9 50%, var(--divider) 75%);
    background-size: 200% 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    animation: shimmer 1.5s infinite;
}

.shimmer-cards {
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.shimmer-card {
    flex: 0 0 220px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.shimmer-image {
    height: 160px;
    background: linear-gradient(90deg, var(--divider) 25%, #FAFAF9 50%, var(--divider) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer-lines {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shimmer-line {
    height: 14px;
    background: linear-gradient(90deg, var(--divider) 25%, #FAFAF9 50%, var(--divider) 75%);
    background-size: 200% 100%;
    border-radius: 7px;
    animation: shimmer 1.5s infinite;
}

.shimmer-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Results Section ---- */
.results-section {
    padding: 8px 0 24px;
    animation: fadeIn 0.4s ease-out;
}

.results-header {
    margin-bottom: 16px;
}

.results-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Cards Scroll */
.cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 16px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Food Card */
.food-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: cardSlideUp 0.5s ease-out backwards;
    position: relative;
}

.food-card:nth-child(1) { animation-delay: 0.1s; }
.food-card:nth-child(2) { animation-delay: 0.2s; }
.food-card:nth-child(3) { animation-delay: 0.3s; }
.food-card:nth-child(4) { animation-delay: 0.4s; }
.food-card:nth-child(5) { animation-delay: 0.5s; }
.food-card:nth-child(6) { animation-delay: 0.6s; }

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.food-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

@keyframes cardSlideUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.card-image-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.food-card:hover .card-image {
    transform: scale(1.05);
}

/* Match Ring */
.match-ring {
    position: absolute;
    bottom: -20px;
    right: 12px;
    width: 44px;
    height: 44px;
    z-index: 2;
}

.match-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.match-ring-bg {
    fill: none;
    stroke: var(--divider);
    stroke-width: 3;
}

.match-ring-progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.match-ring-progress.high { stroke: var(--match-high); }
.match-ring-progress.medium { stroke: var(--match-medium); }
.match-ring-progress.low { stroke: var(--match-low); }

.match-percentage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10px;
    color: var(--text-primary);
}

/* Card Content */
.card-content {
    padding: 14px 14px 12px;
}

.card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cuisine {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.star-icon {
    color: #FBBF24;
    font-size: 12px;
}

.star-icon.empty {
    color: var(--divider);
}

.rating-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-price {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Bottom Sheet ---- */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
}

.bottom-sheet.open {
    pointer-events: all;
    visibility: visible;
}

.bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-sheet.open .bottom-sheet-overlay {
    opacity: 1;
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px 28px 0 0;
    padding: 12px 20px calc(24px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    scrollbar-width: none;
}

.bottom-sheet-content::-webkit-scrollbar {
    display: none;
}

.bottom-sheet.open .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 4px 0 12px;
}

.bottom-sheet-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}

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

.bottom-sheet-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.clear-filters-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--peach);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.clear-filters-btn:active {
    opacity: 0.6;
}

/* Filter Section */
.filter-section {
    margin-bottom: 24px;
}

.filter-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.filter-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--peach);
}

/* Mood Chips */
.mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.mood-chip:active {
    transform: scale(0.95);
}

.mood-chip.active {
    border-color: currentColor;
    background: var(--surface);
    font-weight: 600;
}

.chip-icon {
    font-size: 18px;
}

.chip-text {
    font-size: 13px;
}

/* Dietary Toggles */
.dietary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dietary-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-warm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.dietary-toggle:active {
    transform: scale(0.98);
}

.dietary-toggle.active {
    background: rgba(52, 211, 153, 0.08);
    border-color: var(--mint);
}

.toggle-track {
    width: 40px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    position: relative;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.dietary-toggle.active .toggle-track {
    background: var(--mint);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dietary-toggle.active .toggle-thumb {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Price Pills */
.price-pills {
    display: flex;
    gap: 8px;
}

.price-pill {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-pill:active {
    transform: scale(0.95);
}

.price-pill.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

/* Distance Slider */
.distance-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--divider);
    outline: none;
    cursor: pointer;
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--peach);
    box-shadow: 0 2px 8px rgba(253, 186, 116, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.distance-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.distance-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--peach);
    box-shadow: 0 2px 8px rgba(253, 186, 116, 0.4);
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Apply Button */
.apply-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: var(--text-primary);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.apply-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

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

/* ---- Gooey Tab Bar ---- */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--tab-bar-height);
    padding: 0 16px calc(8px + var(--safe-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(231, 229, 228, 0.5);
    z-index: 50;
    position: relative;
}

.tab-indicator {
    position: absolute;
    bottom: calc(8px + var(--safe-bottom));
    height: 4px;
    width: 40px;
    border-radius: 2px;
    background: var(--peach);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.tab-indicator.visible {
    opacity: 1;
}

.tab-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    position: relative;
    color: var(--text-muted);
    transition: color 0.2s ease;
    padding: 0;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.tab-btn:active svg {
    transform: scale(0.85);
}

.tab-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

/* Voice Tab Button */
.tab-btn--voice {
    position: relative;
}

.tab-voice-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach), var(--mint));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(253, 186, 116, 0.35);
    transition: all 0.3s ease;
}

.tab-voice-bg svg {
    width: 22px;
    height: 22px;
    color: white;
}

.tab-btn--voice:active .tab-voice-bg {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(253, 186, 116, 0.25);
}

.tab-btn--voice .tab-label {
    display: none;
}

/* ---- Toast Container ---- */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    padding: 0 20px;
}

.toast {
    background: var(--text-primary);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

@keyframes toastIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* ---- Confetti Canvas ---- */
.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}

/* ---- Haptic Overlay ---- */
.haptic-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    background: rgba(0,0,0,0.02);
    transition: opacity 0.05s ease;
}

.haptic-overlay.active {
    opacity: 1;
    transition: none;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---- Utility Classes ---- */
.hidden {
    display: none !important;
}

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

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-blob {
        animation: none;
    }

    .food-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}
