/* Nomora Landing Page Styles - Based on Nomora Design System */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #FF5A5F;
    --primary-hover: #FF7478;

    /* Neutral Colors */
    --white: #FFFFFF;
    --surface-gray: #F7F7F7;
    --border-gray: #DDDDDD;

    /* Text Colors */
    --text-primary: #222222;
    --text-secondary: #717171;
    --text-muted: #B0B0B0;

    /* Semantic Colors */
    --success: #00A870;
    --warning: #FFA500;
    --error: #D93025;
    --info: #1976D2;

    /* Spacing (8-point grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius: 12px;

    /* Shadows - Basic (Legacy) */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Advanced Depth Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-depth-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-depth-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-depth-lg: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-depth-xl: 0 12px 24px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-depth-2xl: 0 24px 48px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.15);
    --shadow-depth-3xl: 0 32px 64px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.18);

    /* Colored Shadows for Depth */
    --shadow-red-sm: 0 4px 12px rgba(255, 90, 95, 0.15);
    --shadow-red-md: 0 8px 24px rgba(255, 90, 95, 0.2);
    --shadow-red-lg: 0 16px 40px rgba(255, 90, 95, 0.25);

    /* Glassmorphism Properties */
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-background-hover: rgba(255, 255, 255, 0.85);
    --glass-background-strong: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-strong: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(24px);
    --glass-blur-medium: blur(20px);
    --glass-blur-light: blur(12px);
    --glass-blur-strong: blur(40px);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

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

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.feature-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Utility Classes ===== */

/* Glassmorphism Effects */
.glass {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-strong {
    background: var(--glass-background-strong);
    backdrop-filter: var(--glass-blur-strong) saturate(200%);
    -webkit-backdrop-filter: var(--glass-blur-strong) saturate(200%);
    border: 1px solid var(--glass-border-strong);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur-medium) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur-medium) saturate(180%);
    border-radius: 20px;
    border: none;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {

    .glass,
    .glass-strong,
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* 3D Transform Utilities */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Floating Animations */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-reverse {
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Gradient Utilities */
.gradient-mesh {
    background:
        radial-gradient(at 0% 0%, rgba(255, 90, 95, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 116, 120, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 90, 95, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 116, 120, 0.06) 0px, transparent 50%);
}

.gradient-animated {
    background: linear-gradient(-45deg,
            #FF4A4F,
            #FF5A5F,
            #FF6B70,
            #FF7478);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2000;
    transition: all var(--transition-normal);
}

.app-download-banner {
    color: var(--white);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-download-banner[hidden] {
    display: none;
}

.app-download-banner__inner {
    max-width: 1200px;
    min-height: 54px;
    margin: 0 auto;
    padding: 8px var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.app-download-banner__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.app-download-banner__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: block;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.app-download-banner__copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-download-banner__title {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.app-download-banner__text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.76);
}

.app-download-banner__actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 0 0 auto;
}

.app-download-banner__link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-red-sm);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.app-download-banner__link:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red-md);
}

.app-download-banner__dismiss {
    flex: 0 0 auto;
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: none;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.app-download-banner__dismiss::before,
.app-download-banner__dismiss::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.app-download-banner__dismiss::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.app-download-banner__dismiss:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    flex: 0 0 auto;
}

.logo-icon {
    height: 2em;
    width: auto;
}

.logo-wordmark {
    height: 1.35em;
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 0 0 auto;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.nav-cta {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(255, 90, 95, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

/* Nav-center tool links (shared by public, account, owner, and staff pages) */
.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-tool-link,
.nav-login-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.nav-tool-link:hover,
.nav-login-link:hover {
    color: var(--white);
}

.nav-tool-link.active,
.nav-login-link.active {
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.nav-signout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-signout-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-tools {
    position: relative;
}

.nav-tools-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-tools-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.nav-tools-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.nav-tools.open .nav-tools-menu,
.nav-tools:hover .nav-tools-menu,
.nav-tools:focus-within .nav-tools-menu {
    display: flex;
}

.nav-tools-menu .nav-tool-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 0;
    border-radius: calc(var(--radius) - 4px);
}

.nav-tools-menu .nav-tool-link:hover,
.nav-tools-menu .nav-tool-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.nav-mobile-panel {
    display: none;
}

.nav-mobile-link,
.nav-mobile-signout {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: var(--space-md) 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: none;
    font-family: inherit;
    text-align: left;
}

.nav-mobile-link:hover,
.nav-mobile-link.active,
.nav-mobile-signout:hover {
    color: var(--white);
}

.nav-mobile-cta {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Carousel System ===== */

/* Carousel Container */
.carousel-container {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
    /* Safari fix: force GPU layer isolation */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Remove old hero padding for carousel */
.carousel-slide.hero {
    padding-top: 0;
    background-color: transparent !important;
    position: absolute;
}

/* Ensure feature slides fill viewport */
.carousel-slide.feature {
    padding: 0;
    margin-top: 0;
    background-color: transparent !important;
    position: absolute;
}

/* Background Crossfade System - extends beyond carousel */
.carousel-background-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.carousel-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

/* Pre-blurred layer for performance (use ::before) */
.carousel-bg-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.carousel-bg-layer.blurring::before {
    opacity: 1;
}

/* White overlay for crossfade */
.carousel-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

/* Background Images */
.carousel-bg-layer[data-bg="hero"] {
    background-image: url('../images/backgrounds/hero.png');
}

.carousel-bg-layer[data-bg="restaurant"] {
    background-image: url('../images/backgrounds/restaurant.png');
}

.carousel-bg-layer[data-bg="menu"] {
    background-image: url('../images/backgrounds/menu.png');
}

.carousel-bg-layer[data-bg="food"] {
    background-image: url('../images/backgrounds/food.png');
}

.carousel-bg-layer[data-bg="search"] {
    background-image: url('../images/backgrounds/search.png');
}

.carousel-bg-layer[data-bg="map"] {
    background-image: url('../images/backgrounds/map.png');
}

.carousel-bg-layer[data-bg="fav"] {
    background-image: url('../images/backgrounds/fav.png');
}

/* Navigation Arrows */
.carousel-arrow {
    display: none;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(1.0);
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.carousel-arrow-left {
    left: 15%;
}

.carousel-arrow-right {
    right: 15%;
}

.carousel-arrow svg {
    width: 72px;
    height: 72px;
    stroke-width: 3;
}

/* Navigation Icons */
.carousel-nav {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 20px;
    padding: 0;
    background: transparent;
}

.nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 14px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-icon:hover svg {
    stroke: rgba(255, 255, 255, 0.9);
}

.nav-icon:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-icon.active {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 40px 20px rgba(255, 255, 255, 0.5),
        0 0 70px 40px rgba(255, 255, 255, 0.3);
}

.nav-icon.active svg {
    stroke: var(--text-secondary);
}

/* Active slide is visible */
.carousel-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 10 !important;
}

/* Content elements transition */
.carousel-slide .feature-content,
.carousel-slide .feature-image,
.carousel-slide .hero-content,
.carousel-slide .hero-image {
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transform: translateX(100px) translateZ(0);
    transform: translateX(100px) translateZ(0);
    opacity: 0;
    /* Safari fix: force GPU layer isolation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Active slide content is visible and animates in from right */
.carousel-slide.active .feature-content,
.carousel-slide.active .feature-image,
.carousel-slide.active .hero-content,
.carousel-slide.active .hero-image {
    -webkit-transform: translateX(0) translateZ(0);
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

/* Slide out to left - only applied during transition */
.carousel-slide.slide-out-left {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 9 !important;
    /* Safari fix: ensure clean layer during exit */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-slide.slide-out-left .feature-content,
.carousel-slide.slide-out-left .feature-image,
.carousel-slide.slide-out-left .hero-content,
.carousel-slide.slide-out-left .hero-image {
    transition-duration: 1.5s;
    transform: translateX(-100px);
    opacity: 0;
    /* Safari fix: prevent ghost layers */
    -webkit-transform: translateX(-100px) translateZ(0);
    transform: translateX(-100px) translateZ(0);
}

/* Slide out to right - for reverse direction (going back) */
.carousel-slide.slide-out-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 9 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-slide.slide-out-right .feature-content,
.carousel-slide.slide-out-right .feature-image,
.carousel-slide.slide-out-right .hero-content,
.carousel-slide.slide-out-right .hero-image {
    transition-duration: 1.5s;
    transform: translateX(100px);
    opacity: 0;
    -webkit-transform: translateX(100px) translateZ(0);
    transform: translateX(100px) translateZ(0);
}

/* Enter from left - for reverse direction (going back) */
.carousel-slide.enter-from-left .feature-content,
.carousel-slide.enter-from-left .feature-image,
.carousel-slide.enter-from-left .hero-content,
.carousel-slide.enter-from-left .hero-image {
    -webkit-transform: translateX(-100px) translateZ(0);
    transform: translateX(-100px) translateZ(0);
    opacity: 0;
}

.carousel-slide.enter-from-left.active .feature-content,
.carousel-slide.enter-from-left.active .feature-image,
.carousel-slide.enter-from-left.active .hero-content,
.carousel-slide.enter-from-left.active .hero-image {
    -webkit-transform: translateX(0) translateZ(0);
    transform: translateX(0) translateZ(0);
    opacity: 1;
}


/* ===== Hero Section ===== */
.hero {
    padding-top: calc(80px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Backgrounds now handled by fixed carousel-background-system */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative !important;
    z-index: 100 !important;
}

.hero-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    border-radius: 24px;
    padding: var(--space-3xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out;
    position: relative !important;
    z-index: 20 !important;
    transform: translateZ(0);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    margin-bottom: var(--space-lg);
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.hero-image {
    position: relative !important;
    perspective: 1500px;
    transform-style: preserve-3d;
    /* Animation removed - now handled by carousel transitions */
    z-index: 20 !important;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    transform-style: preserve-3d;
    position: relative !important;
    z-index: 20 !important;
}

.phone-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    padding: var(--space-sm);
    background: var(--text-primary);
    border-radius: 40px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* All phone frames now have consistent 3D appearance */
    transform: rotateY(-15deg) rotateX(5deg) translateZ(40px);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        -20px 0 40px rgba(255, 90, 95, 0.1);
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(5deg) translateZ(40px) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) rotateX(5deg) translateZ(40px) translateY(-20px);
    }
}

/* Phone frames on red backgrounds (odd) - tilt to the RIGHT */
.feature:nth-child(odd) .phone-frame {
    transform: rotateY(15deg) rotateX(5deg) translateZ(40px);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        20px 0 40px rgba(255, 90, 95, 0.1);
    /* Shadow on right side */
    animation: floatPhoneRight 6s ease-in-out infinite;
}

@keyframes floatPhoneRight {

    0%,
    100% {
        transform: rotateY(15deg) rotateX(5deg) translateZ(40px) translateY(0);
    }

    50% {
        transform: rotateY(15deg) rotateX(5deg) translateZ(40px) translateY(-20px);
    }
}

/* Phone frames on white backgrounds (even) - tilt to the LEFT (default) */
.feature:nth-child(even) .phone-frame {
    /* Uses default .phone-frame styles */
}

/* Ensure phone frames are visible above the background layers */
.phone-frame {
    z-index: 50 !important;
    position: relative !important;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateZ(30px);
    position: relative !important;
    z-index: 60 !important;
}

@media (min-width: 769px) {
    .carousel-slide.hero {
        align-items: stretch;
    }

    .carousel-slide.hero .hero-container {
        width: min(100%, 980px);
        max-width: 980px;
        height: 100%;
        padding: calc(76px + clamp(20px, 3vh, 34px)) clamp(24px, 5vw, 72px) clamp(74px, 8vh, 108px);
        grid-template-columns: minmax(320px, 430px) minmax(270px, 310px);
        gap: clamp(70px, 7vw, 88px);
        justify-content: center;
        box-sizing: border-box;
        align-items: center;
        transform: translateX(clamp(-90px, -5vw, -48px));
    }

    .carousel-slide.hero .hero-content {
        align-self: center;
        padding: clamp(28px, 3vw, 44px);
        border-radius: 22px;
    }

    .carousel-slide.hero .hero-title {
        font-size: clamp(32px, 4.2vw, 54px);
        line-height: 1.08;
        margin-bottom: clamp(14px, 2vh, 22px);
    }

    .carousel-slide.hero .hero-subtitle {
        font-size: clamp(16px, 1.35vw, 19px);
        line-height: 1.5;
        margin-bottom: clamp(18px, 2.8vh, 28px);
    }

    .carousel-slide.hero .hero-actions {
        margin-bottom: 0;
    }

    .carousel-slide.hero .btn-large {
        padding: 16px clamp(24px, 3vw, 34px);
        font-size: clamp(16px, 1.2vw, 18px);
    }

    .carousel-slide.hero .hero-image {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-height: calc(100vh - 185px);
    }

    .carousel-slide.hero .phone-frame {
        width: min(25vw, 300px, calc((100vh - 205px) / 2.28));
        max-width: 100%;
        padding: clamp(6px, 0.8vw, 10px);
        border-radius: clamp(28px, 3vw, 38px);
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px);
        animation: floatPhoneHero 6s ease-in-out infinite;
    }

    .carousel-slide.hero .app-screenshot {
        border-radius: clamp(22px, 2.4vw, 30px);
        transform: translateZ(20px);
    }
}

@media (min-width: 769px) and (max-height: 760px) {
    .carousel-slide.hero .hero-container {
        padding-top: calc(72px + clamp(12px, 2vh, 20px));
        padding-bottom: clamp(46px, 6vh, 64px);
        gap: clamp(48px, 6vw, 64px);
    }

    .carousel-slide.hero .hero-content {
        padding: clamp(22px, 2.4vw, 32px);
    }

    .carousel-slide.hero .hero-title {
        font-size: clamp(30px, 3.5vw, 42px);
        margin-bottom: 12px;
    }

    .carousel-slide.hero .hero-subtitle {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .carousel-slide.hero .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .carousel-slide.hero .phone-frame {
        width: min(23vw, 250px, calc((100vh - 170px) / 2.28));
    }
}

@keyframes floatPhoneHero {

    0%,
    100% {
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px) translateY(0);
    }

    50% {
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px) translateY(-10px);
    }
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(255, 90, 95, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow:
        0 8px 20px rgba(255, 90, 95, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(255, 90, 95, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Ripple effect on button click */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===== Features Section ===== */
.features {
    padding: 0;
}

/* Base Feature Styling for Background Images */
.feature {
    position: relative;
    overflow: visible;
    background-color: transparent;
    padding: var(--space-2xl) 0;
    margin-top: -1px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure no pixel gaps */

    /* Cinematic Vignette Blend */
    box-shadow:
        inset 0px 120px 100px -60px rgba(0, 0, 0, 0.5),
        /* Top Shadow */
        inset 0px -120px 100px -60px rgba(0, 0, 0, 0.5);
    /* Bottom Shadow */
    /* z-index removed - managed by carousel-slide parent */
}

/* Ensure contents stay above the vignette shadow */
.feature-container {
    position: relative !important;
    z-index: 100 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    gap: var(--space-3xl);
    align-items: center;
}

/* Backgrounds now handled by fixed carousel-background-system */

@keyframes meshFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Removed Special USP sections background enhancement to unify theme */

/* Removed Geometric pattern overlay for USP sections */

/* Removed Floating dots pattern for USP sections */

@keyframes floatPattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Alternate image positions */
/* Feature 1, 3, 5: Image LEFT, Content RIGHT (need to reverse HTML order) */
.feature:nth-child(odd) .feature-container {
    flex-direction: row-reverse;
}

/* Feature 2, 4: Image RIGHT, Content LEFT (keep HTML order) */
.feature:nth-child(even) .feature-container {
    flex-direction: row;
}

/* Unified Glassmorphism Card Style (Matching Hero Section) */
.feature-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    padding: var(--space-xl);
    /* Adjusted padding */
    border-radius: 24px;
    /* Matches Hero */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative !important;
    z-index: 20 !important;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    transform: translateZ(0);
}

/* Hover Effect for Unified Cards */
.feature-content:hover {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque on hover */
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Ensure no override by nth-child selectors */
.feature:nth-child(odd) .feature-content,
.feature:nth-child(even) .feature-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.feature:nth-child(odd) .feature-content:hover,
.feature:nth-child(even) .feature-content:hover {
    background: rgba(255, 255, 255, 0.85);
}

.feature-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* Reset text colors since we're using cards now */
.feature:nth-child(odd) .feature-title {
    color: var(--text-primary);
}

.feature:nth-child(odd) .feature-description {
    color: var(--text-secondary);
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 16px;
    color: var(--text-primary);
}

.feature:nth-child(odd) .highlight {
    color: var(--text-primary);
}

.highlight-icon {
    font-size: 20px;
}

/* ===== USP Highlighting ===== */
.usp-card {
    position: relative;
    overflow: visible !important;
    contain: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 60px 30px rgba(255, 255, 255, 0.7),
        0 0 100px 60px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.06);
}

.usp-card:hover {
    box-shadow:
        0 0 70px 35px rgba(255, 255, 255, 0.8),
        0 0 120px 70px rgba(255, 255, 255, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.08);
}

.usp-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    z-index: 100;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .carousel-slide.feature {
        align-items: stretch;
    }

    .carousel-slide.feature .feature-container {
        width: min(100%, 980px);
        max-width: 980px;
        height: 100%;
        padding: calc(76px + clamp(20px, 3vh, 34px)) clamp(24px, 5vw, 72px) clamp(74px, 8vh, 108px);
        gap: clamp(70px, 7vw, 88px);
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        transform: translateX(clamp(-90px, -5vw, -48px));
    }

    .carousel-slide.feature .feature-content {
        flex: 0 1 430px;
        max-width: 430px;
        padding: clamp(28px, 3vw, 44px);
        border-radius: 22px;
    }

    .carousel-slide.feature .feature-image {
        flex: 0 1 310px;
        max-width: 310px;
        min-width: 270px;
        max-height: calc(100vh - 185px);
    }

    .carousel-slide.feature .phone-frame {
        width: min(25vw, 300px, calc((100vh - 205px) / 2.28));
        max-width: 100%;
        padding: clamp(6px, 0.8vw, 10px);
        border-radius: clamp(28px, 3vw, 38px);
        box-shadow:
            0 34px 70px rgba(0, 0, 0, 0.22),
            0 14px 30px rgba(0, 0, 0, 0.14),
            0 8px 18px rgba(0, 0, 0, 0.1);
    }

    .carousel-slide.feature:nth-child(odd) .phone-frame {
        transform: rotateY(12deg) rotateX(4deg) translateZ(24px);
        animation: floatPhoneFeatureRight 6s ease-in-out infinite;
    }

    .carousel-slide.feature:nth-child(even) .phone-frame {
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px);
        animation: floatPhoneFeatureLeft 6s ease-in-out infinite;
    }

    .carousel-slide.feature .app-screenshot {
        border-radius: clamp(22px, 2.4vw, 30px);
        transform: translateZ(20px);
    }

    .carousel-slide.feature .feature-description {
        font-size: clamp(16px, 1.2vw, 18px);
        line-height: 1.5;
        margin-bottom: clamp(18px, 2.6vh, 24px);
    }

    .carousel-slide.feature .feature-highlights {
        gap: clamp(10px, 1.4vh, 14px);
    }

    .carousel-slide.feature .highlight {
        font-size: clamp(14px, 1.05vw, 16px);
        line-height: 1.4;
    }
}

@media (min-width: 769px) and (max-height: 760px) {
    .carousel-slide.feature .feature-container {
        padding-top: calc(72px + clamp(12px, 2vh, 20px));
        padding-bottom: clamp(46px, 6vh, 64px);
        gap: clamp(48px, 6vw, 64px);
    }

    .carousel-slide.feature .feature-content {
        max-width: 430px;
        padding: clamp(22px, 2.2vw, 32px);
    }

    .carousel-slide.feature .feature-description {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .carousel-slide.feature .feature-highlights {
        gap: 10px;
    }

    .carousel-slide.feature .phone-frame {
        width: min(23vw, 250px, calc((100vh - 170px) / 2.28));
    }
}

@keyframes floatPhoneFeatureLeft {

    0%,
    100% {
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px) translateY(0);
    }

    50% {
        transform: rotateY(-12deg) rotateX(4deg) translateZ(24px) translateY(-10px);
    }
}

@keyframes floatPhoneFeatureRight {

    0%,
    100% {
        transform: rotateY(12deg) rotateX(4deg) translateZ(24px) translateY(0);
    }

    50% {
        transform: rotateY(12deg) rotateX(4deg) translateZ(24px) translateY(-10px);
    }
}

/* ===== Why Nomora Section Removed ===== */

/* ===== Signup Section ===== */
.signup {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Black transparent background overlay */
.signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Separation line/shadow at the top */
.signup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.signup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 10;
}

.signup-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.signup-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signup-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.signup-form {
    margin-bottom: var(--space-lg);
}

.beta-downloads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.beta-download-image {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 52px;
}

.beta-download-image-apple {
    max-height: 44px;
}

.form-group {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.signup-input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.signup-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.signup-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.signup-form .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    white-space: nowrap;
}

.signup-form .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

.signup-success {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-xl);
    border-radius: var(--radius);
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--space-md);
}

.signup-success h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.signup-success p {
    color: rgba(255, 255, 255, 0.9);
}

.signup-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.lock-icon {
    font-size: 16px;
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/backgrounds/footer.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--space-lg);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-md);
}

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--primary-hover);
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-gray);
}

.cookie-decline:hover {
    background: var(--surface-gray);
}

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

    to {
        transform: translateY(0);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Auth Pages ===== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 400px;
    margin: var(--space-lg) auto 0;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-input {
    width: 100%;
    padding: 14px var(--space-md);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    background: var(--surface-gray);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    background: var(--white);
}

.auth-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .auth-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.auth-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red-sm);
}

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

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-error {
    display: none;
    padding: var(--space-sm) var(--space-md);
    background: rgba(217, 48, 37, 0.08);
    border: 1px solid rgba(217, 48, 37, 0.2);
    border-radius: var(--radius);
    color: var(--error);
    font-size: 14px;
    line-height: 1.4;
}

.auth-error.visible {
    display: block;
}

.auth-success {
    display: none;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 168, 112, 0.08);
    border: 1px solid rgba(0, 168, 112, 0.2);
    border-radius: var(--radius);
    color: var(--success);
    font-size: 14px;
    line-height: 1.4;
}

.auth-success.visible {
    display: block;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-gray);
}

/* OTP Code Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius);
    background: var(--surface-gray);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    background: var(--white);
}

.otp-input.filled {
    border-color: var(--primary-color);
    background: var(--white);
}

.resend-section {
    text-align: center;
    margin-top: var(--space-md);
}

.resend-link {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.resend-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.resend-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.otp-timer {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Pending / Info card */
.auth-info-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.auth-info-icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
    display: block;
}

.auth-info-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.auth-info-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.auth-btn-secondary {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.auth-btn-secondary:hover {
    background: rgba(255, 90, 95, 0.05);
    transform: translateY(-1px);
}

/* Staff dashboard */
.dashboard-header {
    margin-bottom: var(--space-xl);
}

.dashboard-welcome {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dashboard-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.dashboard-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dashboard-signout {
    margin-top: var(--space-xl);
    text-align: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {

    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden;
    }

    /* Reduce blur intensity on mobile for performance */
    .glass,
    .feature-content {
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    .glass-strong {
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .hero-content {
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        padding: var(--space-xl);
    }

    /* Disable 3D transforms and animations on mobile for performance */
    .phone-frame {
        transform: none !important;
        animation: none !important;
    }

    /* Simpler hover effects on mobile */
    .feature-content:hover,
    .benefit:hover {
        transform: translateY(-4px) !important;
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: var(--space-xl);
    }

    .feature-container {
        flex-direction: column;
    }

    .feature:nth-child(even) .feature-container {
        flex-direction: column;
    }

    .feature:nth-child(odd) .feature-container {
        flex-direction: column;
    }

    /* On mobile, image comes FIRST, then text card */
    .feature-content {
        order: 2;
    }

    .feature-image {
        order: 1;
        margin-top: 0;
        margin-bottom: var(--space-md);
    }

    /* Override for reversed sections on mobile - same order */
    .feature-reversed .feature-content {
        order: 2;
    }

    .feature-reversed .feature-image {
        order: 1;
    }

    /* Hero section mobile - image first */
    .hero-container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-top: 0;
        margin-bottom: var(--space-md);
    }

    .feature-content {
        width: 100%;
    }

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

    .form-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Carousel mobile optimizations */
    .carousel-container {
        overflow: visible;
        height: auto;
        min-height: 100vh;
        transition: min-height 0.3s ease;
    }

    .carousel-slide {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .carousel-slide .feature-content,
    .carousel-slide .feature-image,
    .carousel-slide .hero-content,
    .carousel-slide .hero-image {
        transition-duration: 0.5s !important;
    }

    /* Reduced blur intensity for performance */
    .carousel-bg-layer::before {
        filter: blur(10px);
    }

    /* Arrows on mobile */
    .carousel-arrow {
        width: 80px;
        height: 80px;
    }

    .carousel-arrow-left {
        left: 5%;
    }

    .carousel-arrow-right {
        right: 5%;
    }

    .carousel-arrow svg {
        width: 52px;
        height: 52px;
    }

    /* Mobile carousel nav - fixed below navbar, above phone image */
    .carousel-nav {
        position: fixed;
        top: 60px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 12px;
        gap: 10px;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        z-index: 1000;
        pointer-events: none;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
        padding: 9px;
        border-radius: 50%;
        background: rgba(128, 128, 128, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: none;
        pointer-events: auto;
    }

    .nav-icon svg {
        stroke: rgba(255, 255, 255, 0.7);
    }

    .nav-icon.active {
        background: rgba(255, 255, 255, 0.9);
    }

    .nav-icon.active svg {
        stroke: var(--text-secondary);
    }

    /* Carousel slide mobile layout */
    .carousel-slide {
        padding-top: 90px; /* Space for navbar */
        padding-bottom: 80px; /* Space for fixed nav at bottom */
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }

    .carousel-slide .feature-container,
    .carousel-slide .hero-container {
        flex-direction: column !important;
        padding: var(--space-md);
        padding-top: 140px;
        padding-bottom: var(--space-md);
        min-height: auto;
        justify-content: flex-start;
        gap: var(--space-xl);
        align-items: center;
    }

    /* Mobile layout: image first, then card */
    .carousel-slide .feature-image,
    .carousel-slide .hero-image {
        order: 1;
        flex-shrink: 0;
        height: 66vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .carousel-slide .feature-image .phone-frame,
    .carousel-slide .hero-image .phone-frame {
        height: 100%;
        width: auto;
        max-width: 75%;
        padding: 8px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .carousel-slide .feature-image .phone-frame .app-screenshot,
    .carousel-slide .hero-image .phone-frame .app-screenshot {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 20px;
    }

    .carousel-slide .feature-content,
    .carousel-slide .hero-content {
        order: 2;
        flex-shrink: 0;
        width: 100%;
        padding: var(--space-lg);
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        overflow: hidden;
    }

    /* Space between carousel content and signup section */
    .signup {
        margin-top: 0;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    /* Keep the primary beta CTA visible on mobile */
    .hero-actions {
        display: block;
    }

    .signup-form .btn-primary {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }

    /* Hide arrows on mobile */
    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .auth-info-card {
        padding: var(--space-xl) var(--space-md);
    }

    .nav-container {
        padding: var(--space-sm) var(--space-md);
        flex-wrap: nowrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .logo {
        font-size: 18px;
        flex: 0 0 auto;
        gap: var(--space-sm);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        object-fit: contain;
        aspect-ratio: 1 / 1;
    }

    .logo-text {
        height: 16px;
        object-fit: contain;
    }

    .nav-actions {
        gap: var(--space-sm);
        flex-wrap: nowrap;
    }

    .language-switcher {
        padding: var(--space-xs) var(--space-sm);
        font-size: 13px;
    }

    /* Hide the CTA button on small mobile */
    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: calc(60px + var(--space-2xl));
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: 16px;
    }

    .phone-frame {
        max-width: 280px;
    }

    /* Mobile optimizations for features */
    .feature {
        padding: var(--space-2xl) 0;
    }

    .feature-content {
        padding: var(--space-lg);
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-description {
        font-size: 16px;
    }

    .feature-highlights {
        font-size: 14px;
    }

    /* USP badge on mobile */
    .usp-badge {
        display: block;
        top: -12px;
        right: 16px;
        font-size: 10px;
        padding: 5px 12px;
    }

    /* Benefits grid mobile */
    .benefit {
        padding: var(--space-lg);
    }

    .benefit-icon {
        font-size: 36px;
    }

    /* Signup section mobile */
    .signup-title {
        font-size: 24px;
    }

    .signup-subtitle {
        font-size: 16px;
    }

    .beta-downloads {
        flex-direction: column;
    }

    /* Footer mobile */
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    /* Cookie consent on mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .cookie-content p {
        font-size: 13px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 140px;
        font-size: 13px;
        padding: var(--space-sm) var(--space-md);
    }
}

/* ===== Loading State ===== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .phone-frame {
        animation: none !important;
    }

    .hero::before,
    .hero::after,
    .feature:nth-child(odd)::before {
        animation: none !important;
    }

    .float,
    .float-slow,
    .float-reverse {
        animation: none !important;
    }

    .benefit,
    .feature-content {
        transition: opacity 0.2s ease !important;
    }

    /* Carousel-specific reduced motion */
    .carousel-slide,
    .carousel-bg-layer,
    .carousel-bg-overlay {
        transition-duration: 0.1s !important;
    }

    .carousel-bg-layer::before {
        transition-duration: 0.1s !important;
    }

    .carousel-slide .feature-content,
    .carousel-slide .feature-image,
    .carousel-slide .hero-content,
    .carousel-slide .hero-image {
        transition-duration: 0.1s !important;
    }
}

/* GPU Acceleration for Performance */
.feature-content,
.benefit,
.hero-content,
.btn-primary {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Phone frames have fixed 3D transform - no will-change needed */
.phone-frame {
    backface-visibility: hidden;
}

/* Reduce paint on hover */
.btn-primary,
.feature-content,
.benefit {
    contain: layout style paint;
}

/* ================================================================
   PUBLIC MENU PAGE (menu.html)
   Skeleton + shimmer loading, glass layout, drawer, item rows.
   Uses only existing design tokens — no new colors introduced.
   ================================================================ */

/* Ensure hidden attribute wins over flex containers on the menu page */
.menu-main [hidden],
#menuItemDrawer[hidden] {
    display: none !important;
}

/* Generic skeleton + shimmer (promoted to global) */
.skeleton {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.05) 75%);
    background-size: 200% 100%;
    animation: nomora-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.shimmer-text {
    display: block;
    border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
}

/* Page background — fixed hero image behind the whole page */
.menu-page-bg {
    background-image: url('../images/backgrounds/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    /* Override the site-wide `body { overflow-y: auto }` so position:sticky
       inside the menu page hooks into the viewport / documentElement scroll
       container instead of body. Without this the chip bar refuses to pin. */
    overflow: visible;
}

html:has(body.menu-page-bg) {
    overflow-y: auto;
}

/* Main container */
.menu-main {
    padding: calc(var(--space-3xl) + 40px) var(--space-lg) var(--space-2xl);
}

body:has(.app-download-banner:not([hidden])) .menu-main {
    padding-top: calc(var(--space-3xl) + 96px);
}

.menu-container {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Navbar override — reuses .navbar but no staff-specific links */
.menu-navbar .nav-container {
    justify-content: space-between;
}

/* Hero card — holds restaurant info AND the top-level menu tabs at the bottom. */
.menu-hero {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.menu-hero__top {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.menu-hero--no-photo .menu-hero__top {
    grid-template-columns: 1fr;
}

.menu-hero__photo {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-gray);
    flex-shrink: 0;
}

.menu-hero__text {
    min-width: 0;
}

.menu-hero__name {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--space-xs);
    line-height: 1.2;
    word-break: break-word;
}

.menu-hero__address,
.menu-hero__cuisine {
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.menu-hero__cuisine {
    margin-top: 2px;
    opacity: 0.75;
}

.menu-hero__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 640px) {
    .menu-hero__top {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .menu-hero__photo {
        width: 100%;
        height: 180px;
    }
    .menu-hero__name {
        font-size: 24px;
    }
}

/* Search bar */
.menu-search {
    position: relative;
}

.menu-search__input {
    width: 100%;
    padding: 14px var(--space-lg) 14px 46px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.menu-search__input::placeholder {
    color: var(--text-primary);
    opacity: 0.5;
}

.menu-search__input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(255, 90, 95, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 3px rgba(255, 90, 95, 0.12);
}

.menu-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    opacity: 0.5;
    pointer-events: none;
}

.menu-search--skeleton {
    min-height: 44px;
}

/* Top-level menu tabs (rendered inside the hero card). */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0;
}

.menu-tab {
    padding: var(--space-sm) var(--space-lg);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.menu-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-red-sm);
}

.menu-tab.active:hover {
    background: var(--primary-hover);
}

/* Sticky nav strip: L2 toggle + category picker.
   Transparent container — each control carries its own glass surface. */
.menu-sticky-nav {
    position: sticky;
    top: 76px;
    z-index: 1500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    background: transparent;
}

body:has(.app-download-banner:not([hidden])) .menu-sticky-nav {
    top: 134px;
}

/* L2 segmented toggle (Speisen / Getränke) */
.menu-l2-toggle {
    display: flex;
    gap: var(--space-xs);
    padding: 4px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.menu-l2-toggle::-webkit-scrollbar { display: none; }

.menu-l2-toggle[hidden] {
    display: none;
}

.menu-l2-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.menu-l2-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.menu-l2-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-red-sm);
}

.menu-l2-btn__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.menu-l2-btn__label {
    min-width: 0;
}

/* Horizontal category chip strip (L3 quick-nav).
   Text-only pills with desktop arrow controls + wheel-to-horizontal scroll. */
.menu-chips-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
    flex: 1 1 100%;
}

.menu-chips-wrap[hidden] { display: none; }

.menu-category-chips {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 8px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    scroll-snap-type: x proximity;
}

.menu-category-chips.is-overflow-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black 100%);
    mask-image: linear-gradient(to right, transparent 0, black 24px, black 100%);
}

.menu-category-chips.is-overflow-right {
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
}

.menu-category-chips.is-overflow-left.is-overflow-right {
    -webkit-mask-image: linear-gradient(
        to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%
    );
    mask-image: linear-gradient(
        to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%
    );
}

.menu-category-chips::-webkit-scrollbar { display: none; }
.menu-category-chips[hidden] { display: none; }

.menu-chip {
    flex: 0 0 auto;
    max-width: 240px;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    scroll-snap-align: start;
    box-shadow: 0 4px 14px rgba(31, 38, 135, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    user-select: none;
}

.menu-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.menu-chip.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-red-md);
}

.menu-chip__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Arrow scroll buttons (desktop / fine pointer only) */
.menu-chips-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
    z-index: 2;
}

.menu-chips-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red-md);
}

.menu-chips-arrow:active { transform: translateY(0); }

.menu-chips-arrow[hidden] { display: none; }

.menu-chips-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (pointer: coarse), (max-width: 640px) {
    .menu-chips-arrow { display: none !important; }
}

/* Tab content */
.menu-tab-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Scroll margin so chip clicks land below the sticky nav */
.menu-section[id^="menu-section-"] {
    scroll-margin-top: 160px;
}

body:has(.app-download-banner:not([hidden])) .menu-section[id^="menu-section-"] {
    scroll-margin-top: 216px;
}

@media (max-width: 640px) {
    .menu-sticky-nav {
        top: 68px;
    }
    body:has(.app-download-banner:not([hidden])) .menu-sticky-nav {
        top: 122px;
    }
    body:has(.app-download-banner:not([hidden])) .menu-main {
        padding-top: calc(var(--space-3xl) + 96px);
    }
    .menu-section[id^="menu-section-"] {
        scroll-margin-top: 150px;
    }
    body:has(.app-download-banner:not([hidden])) .menu-section[id^="menu-section-"] {
        scroll-margin-top: 206px;
    }
    .menu-chip {
        padding: 8px 16px;
    }
    .menu-category-chips {
        padding: 4px 0;
    }
    .menu-category-chips.is-overflow-left {
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black 100%);
        mask-image: linear-gradient(to right, transparent 0, black 12px, black 100%);
    }
    .menu-category-chips.is-overflow-right {
        -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 12px), transparent 100%);
        mask-image: linear-gradient(to right, black 0, black calc(100% - 12px), transparent 100%);
    }
    .menu-category-chips.is-overflow-left.is-overflow-right {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            black 12px,
            black calc(100% - 12px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            black 12px,
            black calc(100% - 12px),
            transparent 100%
        );
    }
}

/* Section card (category) */
.menu-section {
    padding: var(--space-lg);
}

.menu-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.menu-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.menu-section__subtitle {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 0;
}

.menu-section__notes {
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.75;
    margin: 0 0 var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 90, 95, 0.04);
    border-radius: 0 8px 8px 0;
}

/* Menu item row */
.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: start;
    padding: var(--space-md) var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 8px;
}

.menu-item:has(.menu-item__image) {
    grid-template-columns: 1fr auto 80px;
}

.menu-section > .menu-item:first-of-type,
.menu-section .menu-section__header + .menu-item {
    border-top: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

.menu-item__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item__image {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.04);
    align-self: center;
}

.menu-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.menu-item-desc {
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.7;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    padding-top: 2px;
}

.menu-item-price__prefix {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.6;
    margin-right: 2px;
}

.menu-dietary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.menu-dietary-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    text-transform: capitalize;
}

.menu-item--skeleton {
    cursor: default;
}

.menu-item--skeleton:hover {
    background: transparent;
}

/* Subsection heading inside a section (rarely used — for 3-level data) */
.menu-subsection {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-subsection__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 var(--space-sm);
    opacity: 0.75;
}

/* "No results" inline state inside tab content */
.menu-noresults {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 14px;
}

/* Error / empty state card */
.menu-state-wrap {
    padding-top: var(--space-2xl);
}

.menu-state {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

.menu-state__icon {
    width: 72px;
    height: auto;
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

.menu-state__title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
}

.menu-state__body {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 14px;
    margin: 0 0 var(--space-lg);
    line-height: 1.5;
}

.menu-state__btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.menu-state__btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red-sm);
}

/* Item detail drawer */
.menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
}

.menu-drawer[hidden] {
    display: none;
}

.menu-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: menu-drawer-fade-in var(--transition-normal) ease;
}

.menu-drawer__sheet {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: none;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    overflow-y: auto;
    animation: menu-drawer-slide-up var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.2);
}

@keyframes menu-drawer-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menu-drawer-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.menu-drawer__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all var(--transition-fast);
    z-index: 1;
}

.menu-drawer__close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

.menu-drawer--with-photo .menu-drawer__close {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.menu-drawer--with-photo .menu-drawer__close:hover {
    background: var(--white);
}

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

.menu-drawer__content {
    min-width: 0;
}

/* Photo banner at the top of the drawer. It spans the sheet on mobile,
   then becomes a dedicated image panel on wider screens. */
.menu-drawer__photo {
    margin: calc(var(--space-xl) * -1) calc(var(--space-lg) * -1) var(--space-md);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: var(--surface-gray);
    height: clamp(220px, 42vh, 340px);
}

.menu-drawer__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-drawer__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
    padding-right: var(--space-2xl);
    line-height: 1.25;
}

.menu-drawer__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 var(--space-md);
}

.menu-drawer__desc {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0 0 var(--space-lg);
}

.menu-drawer__section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-drawer__section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 var(--space-sm);
}

.menu-drawer__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 8px 0;
}

.menu-drawer__row + .menu-drawer__row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-drawer__row-label {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.menu-drawer__row-meta {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.6;
    display: block;
    margin-top: 2px;
}

.menu-drawer__row-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.menu-drawer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.menu-drawer__chip {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    text-transform: capitalize;
}

.menu-drawer__chip--allergen {
    background: rgba(255, 165, 0, 0.15);
    color: var(--text-primary);
}

@media (min-width: 720px) {
    .menu-drawer {
        align-items: center;
        padding: var(--space-lg);
    }
    .menu-drawer__sheet {
        border-radius: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    }
    @keyframes menu-drawer-slide-up {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

@media (min-width: 860px) {
    .menu-drawer--with-photo .menu-drawer__sheet {
        width: min(1080px, calc(100vw - 48px));
        max-width: 1080px;
        height: min(760px, calc(100vh - 48px));
        max-height: calc(100vh - 48px);
        padding: 0;
        overflow: hidden;
    }

    .menu-drawer--with-photo .menu-drawer__body {
        display: grid;
        grid-template-columns: minmax(380px, 52%) minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .menu-drawer--with-photo .menu-drawer__photo {
        margin: 0;
        height: 100%;
        border-radius: 0;
    }

    .menu-drawer--with-photo .menu-drawer__content {
        min-height: 0;
        overflow-y: auto;
        padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    }
}

/* Compact footer on menu page */
.menu-footer {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    text-align: center;
}

.menu-footer__inner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    padding: var(--space-sm) var(--space-md);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-footer__link {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.menu-footer__link:hover {
    color: var(--primary-hover);
}

/* Body scroll lock when drawer is open */
body.menu-drawer-open {
    overflow: hidden;
}

body:has(.app-download-banner:not([hidden])) .legal-page {
    padding-top: 156px;
}

body:not(:has(.app-download-banner:not([hidden]))) .legal-page {
    padding-top: 100px;
}

/* ================================================================
   DISCOVER PAGE (discover.html)
   Google-style centered search with typeahead dropdown + city chips.
   Uses only existing theme tokens — no new colors.
   ================================================================ */

.discover-main {
    padding: calc(var(--space-3xl) + 60px) var(--space-lg) var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

body:has(.app-download-banner:not([hidden])) .discover-main {
    padding-top: calc(var(--space-3xl) + 116px);
}

.discover-hero {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-3xl);
}

.discover-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.discover-subtitle {
    font-size: 17px;
    color: var(--white);
    opacity: 0.9;
    text-align: center;
    margin: 0 0 var(--space-md);
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.discover-cities-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    opacity: 0.9;
    text-align: center;
    margin: var(--space-md) 0 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Search container — position: relative so the typeahead dropdown
   can anchor directly below it. */
.discover-search {
    position: relative;
    width: 100%;
    max-width: 640px;
}

.discover-search__input {
    width: 100%;
    height: 58px;
    padding: 0 54px 0 54px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.discover-search__input::placeholder {
    color: var(--text-primary);
    opacity: 0.55;
}

.discover-search__input:focus {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(255, 90, 95, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 3px rgba(255, 90, 95, 0.14);
}

.discover-search__icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    opacity: 0.55;
    pointer-events: none;
}

.discover-search__clear {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all var(--transition-fast);
}

.discover-search__clear:hover {
    background: rgba(0, 0, 0, 0.12);
}

.discover-search__clear[hidden] { display: none; }

/* Typeahead dropdown — anchored below the search input */
.discover-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: var(--space-sm);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18),
                0 2px 4px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    z-index: 1600;
    scrollbar-width: thin;
    animation: discover-pop-in var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.discover-suggestions[hidden] { display: none; }

.discover-suggestions::-webkit-scrollbar { width: 6px; }
.discover-suggestions::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

@keyframes discover-pop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.discover-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-left: 3px solid transparent;
}

.discover-suggestion:hover,
.discover-suggestion.highlighted {
    background: rgba(255, 90, 95, 0.08);
    border-left-color: var(--primary-color);
}

.discover-suggestion__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.discover-suggestion__city {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.6;
    font-weight: 500;
}

.discover-suggestion--empty {
    display: flex;
    justify-content: center;
    padding: var(--space-lg);
    color: var(--text-primary);
    opacity: 0.55;
    font-size: 14px;
    cursor: default;
    border-left: none;
}

.discover-suggestion--empty:hover {
    background: transparent;
    border-left-color: transparent;
}

/* City chip row — informational only, not clickable */
.discover-city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    max-width: 780px;
    margin: 0 auto;
}

.discover-city-chips__empty {
    font-size: 14px;
    color: var(--white);
    opacity: 0.85;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.discover-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    user-select: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(31, 38, 135, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.discover-chip:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.discover-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 1px 3px rgba(255, 90, 95, 0.3);
}

@media (max-width: 640px) {
    .discover-main {
        padding-top: calc(var(--space-3xl) + 32px);
    }
    .discover-hero {
        padding-top: var(--space-xl);
    }
    .discover-search__input {
        height: 52px;
        font-size: 16px;
    }
}

/* ===== Public User / Restaurant Owner Portal ===== */

.portal-page {
    min-height: 100vh;
    padding-top: 84px;
    background-image: url('../images/backgrounds/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.portal-shell {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: var(--space-xl);
    width: 100%;
    margin: 0;
    padding: var(--space-md) var(--space-xl) var(--space-xl) 0;
    overflow-x: clip;
}

.portal-auth {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
}

.portal-card,
.portal-sidebar,
.portal-panel,
.portal-dialog {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.portal-card {
    width: min(480px, 100%);
    border-radius: 24px;
    padding: var(--space-3xl) var(--space-2xl);
}

.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.portal-back-link::before {
    content: "<";
}

.portal-back-link:hover {
    color: var(--primary-color);
}

.portal-sidebar {
    border-radius: 0 20px 20px 0;
    margin: var(--space-md) 0;
    padding: var(--space-lg) var(--space-md);
    color: var(--text-primary);
}

.portal-content {
    min-width: 0;
    padding: var(--space-md) 0;
}

.portal-panel {
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    min-width: 0;
}

.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.portal-panel > .portal-header:first-child {
    margin-bottom: var(--space-md);
}

.portal-eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.portal-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.15;
}

.portal-subtitle {
    margin: var(--space-sm) 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.portal-muted {
    color: var(--text-secondary);
}

.owner-descriptive-text,
.portal-muted,
.portal-empty p,
.owner-info-note,
.owner-reservations-empty p,
.account-subscription-restaurant p,
.account-subscription-meta,
.account-history-empty p,
.owner-billing-notice p {
    color: var(--text-secondary);
    font-style: italic;
}

.owner-descriptive-input {
    color: var(--text-secondary);
    font-style: italic;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

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

.portal-mini-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--text-primary);
    min-width: 0;
}

.portal-mini-card h3,
.portal-mini-card h4 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
}

.portal-mini-card p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.45;
}

.owner-qr-card {
    min-width: 0;
    min-height: auto;
    align-content: start;
}

.owner-qr-layout {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: var(--space-md);
    align-items: start;
}

.owner-qr-frame {
    width: 122px;
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.owner-qr-frame svg {
    display: block;
    width: 100%;
    height: 100%;
}

.owner-qr-meta {
    display: grid;
    gap: var(--space-sm);
    min-width: 0;
}

.owner-qr-link-card {
    min-width: 0;
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
}

.owner-qr-link-card span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.owner-qr-url {
    display: block;
    line-height: 1.45;
    overflow-wrap: anywhere;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.owner-inline-actions.owner-qr-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xs);
    margin-top: 0;
}

.owner-qr-actions .portal-button-secondary {
    min-height: 40px;
    padding-inline: var(--space-sm);
    font-size: 13px;
}

.portal-button,
.portal-button-secondary,
.portal-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 44px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portal-button {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
}

.portal-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red-sm);
}

.portal-button-secondary,
.portal-icon-button {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
}

.portal-button-secondary:hover,
.portal-icon-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.portal-button:disabled,
.portal-button-secondary:disabled,
.portal-icon-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.owner-button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.owner-refresh-button {
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
}

.owner-refresh-button--empty {
    margin-top: var(--space-md);
}

.owner-menu-editor-button .owner-button-icon {
    margin-left: 2px;
}

.portal-sidebar-title {
    margin: 0 0 var(--space-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.portal-sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.portal-sidebar-title-row .portal-sidebar-title {
    margin-bottom: 0;
}

.portal-sidebar-add {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.portal-sidebar-add:hover {
    background: var(--primary-hover);
}

.portal-sidebar-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.portal-restaurant-node {
    display: grid;
    gap: var(--space-xs);
}

.portal-restaurant-toggle {
    justify-content: space-between;
}

.portal-feature-list {
    margin-left: var(--space-md);
    padding-left: var(--space-sm);
    border-left: 1px solid rgba(255, 90, 95, 0.18);
}

.portal-feature-item {
    min-height: 36px;
    font-size: 13px;
}

.portal-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.portal-nav-list--collapsed {
    display: none;
}

.portal-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 42px;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.portal-nav-item.active {
    background: rgba(255, 90, 95, 0.08);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}

.portal-status--active {
    background: rgba(0, 168, 112, 0.1);
    border-color: rgba(0, 168, 112, 0.24);
    color: var(--success);
}

.portal-status--locked {
    background: rgba(255, 90, 95, 0.1);
    border-color: rgba(255, 90, 95, 0.22);
    color: var(--primary-color);
}

.portal-status--pending {
    color: var(--text-secondary);
}

.portal-status--accepted {
    background: rgba(0, 168, 112, 0.1);
    border-color: rgba(0, 168, 112, 0.24);
    color: var(--success);
}

.portal-status--refused,
.portal-status--expired,
.portal-status--cancelled {
    color: var(--text-muted);
}

.portal-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.portal-profile-form {
    display: grid;
    gap: var(--space-md);
}

.portal-profile-main-header {
    align-items: center;
    margin-bottom: var(--space-md);
}

.portal-profile-main-header + .portal-profile-card {
    margin-top: 0;
}

.portal-profile-card + .portal-profile-card {
    margin-top: var(--space-md);
}

.portal-profile-card {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.portal-profile-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.portal-profile-section-header > img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.portal-profile-section-header h2 {
    margin: 2px 0 0;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.25;
}

.portal-profile-section-header .portal-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.portal-profile-input-shell {
    position: relative;
    display: block;
    min-width: 0;
}

.portal-profile-input-shell .auth-input {
    min-height: 46px;
    padding-right: 74px;
    background: rgba(248, 249, 250, 0.78);
    border-color: rgba(210, 214, 220, 0.72);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.portal-field-action,
.portal-verified-pill {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.portal-field-action {
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.portal-field-action:hover {
    color: var(--primary-hover);
}

.portal-verified-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 168, 112, 0.08);
    border: 1px solid rgba(0, 168, 112, 0.2);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.portal-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    object-fit: contain;
    opacity: 0.72;
    z-index: 1;
}

.portal-profile-input-shell .portal-input-with-left-icon {
    padding-left: 42px;
    padding-right: var(--space-md);
}

.portal-form-row--single {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.portal-profile-detail-field .portal-profile-input-shell .auth-input {
    min-height: 46px;
    padding-right: 74px;
}

.portal-security-card {
    align-content: start;
    width: calc(50% - (var(--space-md) / 2));
}

.portal-password-stack {
    display: grid;
    gap: var(--space-md);
}

.portal-profile-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.portal-profile-save-button {
    justify-self: start;
}

.portal-password-submit {
    display: grid;
    align-content: end;
    gap: var(--space-sm);
}

.portal-password-submit .portal-button {
    justify-self: start;
}

.portal-profile-toast {
    align-items: center;
    gap: var(--space-sm);
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    background: rgba(0, 168, 112, 0.12);
    border-color: rgba(0, 168, 112, 0.22);
    color: var(--success);
    font-weight: 700;
}

.portal-profile-toast.visible {
    display: inline-flex;
}

.portal-profile-toast img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.portal-profile-toast button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.portal-account-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    align-content: start;
}

.portal-account-actions .auth-error {
    grid-column: 1 / -1;
}

.portal-delete-account-button {
    min-height: 38px;
    padding: 8px 14px;
    justify-self: start;
    color: var(--primary-color);
    border-color: rgba(255, 90, 95, 0.34);
}

.portal-delete-account-button img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.auth-field {
    display: grid;
    gap: var(--space-xs);
}

.portal-empty {
    padding: var(--space-2xl);
    text-align: center;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    text-align: left;
    font-size: 14px;
}

.portal-table-actions,
.owner-inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.owner-danger-button {
    color: var(--primary-color);
    border-color: rgba(209, 44, 52, 0.28);
    background: rgba(255, 255, 255, 0.58);
}

.owner-danger-button:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.owner-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.owner-dialog {
    width: min(420px, 100%);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.owner-dialog--wide {
    width: min(720px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
}

.owner-dialog h3 {
    margin: var(--space-xs) 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.owner-dialog-copy {
    margin: var(--space-sm) 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.owner-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.owner-dialog-list {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.owner-button-shimmer {
    display: inline-block;
    width: 92px;
    height: 16px;
}

.owner-skeleton-card {
    display: grid;
    gap: var(--space-sm);
}

.owner-skeleton-title,
.owner-skeleton-line {
    display: block;
    height: 16px;
}

.owner-skeleton-title-1 { width: 72%; }
.owner-skeleton-title-2 { width: 58%; }
.owner-skeleton-title-3 { width: 66%; }

.owner-skeleton-line {
    width: 94%;
}

.owner-skeleton-line-short {
    width: 54%;
}

.owner-loading-panel {
    min-width: 0;
}

.owner-loading-header {
    align-items: flex-start;
}

.owner-loading-heading-copy,
.owner-skeleton-form-stack {
    display: grid;
    gap: var(--space-sm);
    min-width: 0;
}

.owner-loading-heading-copy {
    width: min(520px, 100%);
}

.owner-loading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.owner-loading-card {
    display: grid;
    gap: var(--space-md);
    min-width: 0;
}

.owner-loading-card--medium {
    min-height: 178px;
}

.owner-loading-card--large {
    min-height: 250px;
}

.owner-loading-card--plan {
    min-height: 270px;
}

.owner-loading-card--qr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.owner-loading-card--list {
    margin-top: var(--space-md);
}

.owner-skeleton-eyebrow {
    width: 84px;
    height: 12px;
}

.owner-skeleton-heading {
    width: min(260px, 70%);
    height: 32px;
}

.owner-skeleton-subtitle {
    width: min(460px, 100%);
    height: 16px;
}

.owner-skeleton-action {
    width: 96px;
    height: 42px;
    border-radius: 12px;
}

.owner-skeleton-action-wide {
    width: min(180px, 100%);
    height: 44px;
    border-radius: 12px;
}

.owner-skeleton-icon-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
}

.owner-skeleton-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
}

.owner-skeleton-stat-icon {
    grid-area: icon;
    width: 54px;
    height: 54px;
    border-radius: 999px;
}

.owner-skeleton-card-title {
    width: min(170px, 72%);
    height: 18px;
}

.owner-skeleton-card-copy {
    width: min(260px, 88%);
    height: 14px;
    margin-top: 7px;
}

.owner-skeleton-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
}

.owner-skeleton-number {
    width: 58px;
    height: 32px;
}

.owner-skeleton-trend {
    width: 86px;
    height: 18px;
}

.owner-skeleton-sparkline {
    grid-area: spark;
    width: 100%;
    height: 46px;
    align-self: end;
}

.owner-skeleton-chart {
    width: 100%;
    min-height: 210px;
    border-radius: 14px;
}

.owner-skeleton-chart--short {
    min-height: 150px;
}

.owner-skeleton-meter {
    width: 100%;
    height: 22px;
    border-radius: 999px;
}

.owner-skeleton-tab {
    width: 74px;
    height: 34px;
    border-radius: 8px;
}

.owner-skeleton-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
}

.owner-skeleton-qr {
    width: 132px;
    aspect-ratio: 1;
    border-radius: 14px;
    flex: 0 0 auto;
}

.owner-skeleton-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm);
    min-height: 54px;
}

.owner-skeleton-row .owner-skeleton-line {
    width: 100%;
}

.owner-loading-image-groups {
    margin-top: var(--space-md);
}

.portal-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.portal-step {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.portal-step.active {
    background: var(--primary-color);
    color: var(--white);
}

.portal-hidden {
    display: none !important;
}

.owner-menu-status {
    margin-bottom: var(--space-md);
}

.owner-menu-status .portal-header {
    margin-bottom: var(--space-md);
}

.owner-menu-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.owner-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.owner-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.owner-menus-header {
    align-items: center;
}

.owner-menu-editor-button {
    min-width: 150px;
}

.owner-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.owner-menu-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    width: min(100%, 680px);
    margin-top: var(--space-md);
}

@media (min-width: 1101px) {
    .owner-menu-bottom-grid {
        width: calc((100% - var(--space-md)) / 2);
    }
}

.owner-menu-card {
    min-width: 0;
    min-height: 180px;
    padding: var(--space-lg);
}

.owner-menu-card-title {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    min-height: 48px;
    margin-bottom: var(--space-sm);
}

.owner-menu-card-title img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.owner-menu-card-title h3 {
    margin: 0 0 var(--space-xs);
    font-size: 16px;
}

.owner-menu-card-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-file-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.owner-upload-picker {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.68);
    color: var(--text-primary);
}

.owner-upload-picker span {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-file-plus {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    font: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.owner-file-plus:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.owner-menu-name-input {
    min-height: 48px;
    margin-top: 0;
}

.owner-menu-action-button {
    min-width: 132px;
    margin-top: var(--space-lg);
}

.owner-menu-action-button.is-idle {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 90, 95, 0.28);
    color: var(--primary-color);
    box-shadow: none;
}

.owner-menu-action-button.is-idle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
}

.owner-image-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.owner-image-group {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: var(--space-md);
    align-items: stretch;
    min-height: 128px;
}

.owner-image-group-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    min-height: 96px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.owner-image-group-preview img,
.owner-image-file {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
}

.owner-image-group-preview img {
    object-fit: cover;
}

.owner-image-group-preview:hover img,
.owner-image-group-preview:hover .owner-image-file {
    outline: 2px solid rgba(255, 107, 107, 0.35);
    outline-offset: -2px;
}

.owner-image-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.owner-image-group-body {
    min-width: 0;
}

.owner-image-group-body p {
    margin-bottom: var(--space-md);
}

.owner-image-group-body .owner-inline-actions {
    align-items: stretch;
}

.owner-image-preview-dialog {
    max-height: min(760px, 86vh);
}

.owner-image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    max-height: min(460px, 48vh);
    overflow: auto;
    padding-right: var(--space-xs);
}

.owner-image-preview-item {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.38);
}

.owner-image-preview-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.5);
}

.owner-image-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-image-preview-media .owner-image-file {
    width: 72px;
    height: 52px;
}

.owner-image-preview-item > div:last-child {
    padding: var(--space-sm);
}

.owner-image-preview-item strong {
    display: block;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-image-preview-item p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.owner-menu-groups-empty {
    margin-top: var(--space-md);
}

.owner-menu-table-card {
    min-height: auto;
    margin-top: var(--space-md);
}

.owner-menu-table-card .portal-table th,
.owner-menu-table-card .portal-table td {
    padding-right: var(--space-md);
}

.portal-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.portal-switch-row strong,
.portal-switch-row small {
    display: block;
}

.portal-switch-row small {
    margin-top: var(--space-xs);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.portal-switch-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--primary-color);
}

.owner-switch-compact {
    min-height: 70px;
    padding: var(--space-md);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
}

.owner-textarea {
    min-height: 96px;
    margin-top: var(--space-sm);
    resize: vertical;
}

.owner-reservations-form {
    max-width: none;
    margin: 0;
    gap: 0;
}

.owner-reservations-header,
.owner-reservations-actions,
.owner-reservation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.owner-reservations-header {
    margin-bottom: var(--space-md);
}

.owner-reservations-actions {
    align-items: center;
}

.owner-reservations-top-grid,
.owner-reservations-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.owner-reservations-settings-grid {
    margin-top: var(--space-md);
}

.owner-reservation-card {
    min-height: 172px;
    padding: var(--space-lg);
}

.owner-reservation-card--inactive,
.owner-reservations-card--inactive {
    opacity: 0.42;
}

.owner-reservation-card--inactive input,
.owner-reservation-card--inactive textarea,
.owner-reservation-card--inactive .owner-toggle {
    cursor: not-allowed;
}

.owner-reservation-card-head {
    align-items: flex-start;
}

.owner-reservation-card-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-reservation-card-head h3 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
    font-size: 16px;
}

.owner-reservation-card-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-reservation-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owner-reservation-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.owner-reservation-enable-card .portal-status {
    width: fit-content;
    margin: var(--space-md) 0 0 auto;
}

.owner-toggle {
    flex: 0 0 auto;
    cursor: pointer;
}

.owner-toggle-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.owner-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owner-toggle span {
    width: 46px;
    height: 26px;
    display: block;
    position: relative;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    transition: background var(--transition-fast);
}

.owner-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.owner-toggle input:checked + span {
    background: var(--primary-color);
}

.owner-toggle input:checked + span::after {
    transform: translateX(20px);
}

.owner-message-shell {
    position: relative;
    margin-top: var(--space-md);
}

.owner-message-shell textarea {
    width: 100%;
    min-height: 88px;
    padding: var(--space-md);
    padding-bottom: var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.48);
    color: var(--text-primary);
    font: inherit;
    resize: vertical;
    outline: none;
}

.owner-message-shell small {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 12px;
}

.owner-message-counter-warning {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.owner-reservation-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.owner-reservation-input-grid label {
    display: grid;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.owner-reservation-input-grid label:first-child:last-child,
.owner-reservation-input-grid label:nth-child(3) {
    grid-column: span 1;
}

.owner-reservation-input-grid input {
    width: 100%;
    min-height: 44px;
    padding: 0 var(--space-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-primary);
    font: inherit;
}

.owner-auto-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.45);
}

.owner-auto-row strong,
.owner-auto-row small {
    display: block;
}

.owner-auto-row small {
    margin-top: var(--space-xs);
    color: var(--text-secondary);
}

.owner-advanced-button {
    min-height: 38px;
    white-space: nowrap;
}

.owner-advanced-button img {
    width: 16px;
    height: 16px;
}

.owner-reservation-card-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-md);
}

.owner-reservation-card .owner-info-note {
    margin-top: var(--space-md);
}

.owner-reservation-card-note .owner-info-note {
    margin-top: 0;
}

.owner-pro-gate,
.owner-reservations-card {
    margin-top: var(--space-md);
}

.owner-pro-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.owner-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-lg) 0 var(--space-md);
}

.owner-reservation-filter {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-lg);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.48);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.owner-reservation-filter span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-secondary);
    font-size: 12px;
}

.owner-reservation-filter.active {
    color: var(--primary-color);
    border-color: rgba(255, 90, 95, 0.42);
}

.owner-reservation-filter.active span {
    background: var(--primary-color);
    color: var(--white);
}

.owner-reservations-list {
    display: grid;
    gap: var(--space-sm);
}

.owner-reservations-empty {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-sm);
    text-align: center;
}

.owner-reservations-empty span {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 90, 95, 0.1);
}

.owner-reservations-empty img {
    width: 34px;
    height: 34px;
}

.owner-reservations-empty h3 {
    margin: 0;
    color: var(--text-primary);
}

.owner-reservations-empty p {
    margin: 0;
    color: var(--text-secondary);
}

.owner-reservation-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
}

.owner-reservation-main {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.owner-reservation-row p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-reservation-notes {
    margin-top: var(--space-sm) !important;
    color: var(--text-primary) !important;
    font-style: italic;
}

.owner-reservation-actions {
    display: flex;
    gap: var(--space-sm);
    flex: 0 0 auto;
}

.owner-info-form {
    max-width: none;
    margin: 0;
    gap: 0;
}

.owner-info-header {
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.owner-info-header .portal-subtitle {
    margin-top: var(--space-xs);
}

.owner-info-save img {
    width: 18px;
    height: 18px;
}

.owner-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    align-items: stretch;
}

.owner-info-modern-card {
    height: 100%;
    min-height: 250px;
    min-width: 0;
    padding: var(--space-lg);
}

.owner-info-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.owner-info-card-header > div {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    min-width: 0;
}

.owner-info-card-header img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.owner-info-card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.owner-info-card-header p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.owner-info-edit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.owner-info-field-row {
    display: grid;
    grid-template-columns: 22px minmax(100px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md);
    min-height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.owner-info-field-row img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.72;
}

.owner-info-field-row span {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.owner-info-field-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.owner-hours-list {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius);
}

.owner-hours-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: var(--space-sm);
    align-items: center;
    min-height: 48px;
    padding: 0 var(--space-md);
    background: rgba(255, 255, 255, 0.34);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.owner-hours-row--cluster {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.owner-hours-row--editable {
    grid-template-columns: minmax(0, 1fr) auto;
}

.owner-hours-row--cluster strong {
    color: var(--text-primary);
    font-size: 14px;
}

.owner-hours-row--cluster > span {
    color: var(--text-primary);
    font-size: 14px;
}

.owner-hours-cluster-inputs {
    display: none;
}

.owner-hours-dialog-list {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius);
}

.owner-hours-row:last-child {
    border-bottom: 0;
}

.owner-hours-row > img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.owner-holiday-row {
    margin-top: 0;
}

.owner-hours-row label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.owner-hours-row label input {
    accent-color: var(--primary-color);
}

.owner-hours-times {
    display: grid;
    grid-template-columns: 86px auto 86px;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
}

.owner-hours-times input {
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.owner-price-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin-top: var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
}

.owner-price-option,
.owner-cuisine-chip {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.owner-price-option {
    min-height: 78px;
    padding: var(--space-sm);
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.34);
}

.owner-price-option strong,
.owner-price-option span {
    display: block;
}

.owner-price-option span {
    margin-top: var(--space-xs);
    color: var(--text-secondary);
    font-size: 11px;
}

.owner-price-option.active,
.owner-cuisine-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.owner-price-option.active span {
    color: rgba(255, 255, 255, 0.86);
}

.owner-cuisine-category {
    margin-top: var(--space-md);
}

.owner-cuisine-category h4 {
    margin: 0 0 var(--space-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.owner-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.owner-cuisine-chip {
    min-height: 36px;
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.owner-info-add-cuisine {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.owner-info-add-cuisine .auth-input {
    min-height: 38px;
}

.owner-info-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0 0;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--text-secondary) !important;
    font-size: 13px;
    line-height: 1.45;
}

.owner-price-options + .owner-info-note,
.owner-info-add-cuisine + .owner-info-note {
    margin-top: var(--space-xl);
}

.owner-info-note span {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid currentColor;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.claim-autofill-note {
    margin: 0 0 var(--space-md);
}

.claim-info-grid {
    margin-bottom: var(--space-lg);
}

.owner-public-preview {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.34);
}

.owner-preview-logo {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-primary);
    font-family: Georgia, serif;
    font-size: 52px;
    font-style: italic;
}

.owner-preview-logo span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-color);
}

.owner-preview-main h4 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
    font-size: 16px;
}

.owner-preview-main p,
.owner-preview-meta span {
    color: var(--text-secondary);
    font-size: 13px;
}

.owner-preview-main .owner-chip-row {
    margin-top: var(--space-sm);
}

.owner-preview-main .owner-cuisine-chip {
    min-height: 26px;
    padding: 2px var(--space-sm);
    font-size: 11px;
    pointer-events: none;
}

.owner-preview-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.owner-info-panel .owner-stats-footnote {
    color: var(--text-secondary);
}

.owner-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.owner-stats-header {
    align-items: flex-start;
}

.owner-stats-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.owner-stats-actions img {
    width: 18px;
    height: 18px;
}

.owner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: var(--space-md);
    margin-top: 0;
}

.owner-stat-card {
    position: relative;
    min-width: 0;
    min-height: 148px;
    display: grid;
    grid-template-columns: minmax(62px, 0.74fr) minmax(78px, 1fr);
    grid-template-rows: auto minmax(44px, 1fr);
    grid-template-areas:
        "icon copy"
        "detail spark";
    column-gap: var(--space-sm);
    row-gap: var(--space-sm);
    align-items: start;
    overflow: hidden;
}

.owner-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owner-stat-icon {
    grid-area: icon;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owner-stat-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.owner-activity-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.owner-stat-card p,
.owner-chart-card p,
.owner-plan-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-stat-card h3 {
    margin: var(--space-xs) 0;
    font-size: 30px;
    line-height: 1;
}

.owner-stat-copy {
    grid-area: copy;
    min-width: 0;
    align-self: start;
}

.owner-stat-detail {
    grid-area: detail;
    min-width: 0;
    align-self: end;
}

.owner-stat-detail small {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.owner-stat-trend {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.owner-stat-trend.positive {
    color: var(--success);
}

.owner-stat-trend.negative {
    color: var(--primary-color);
}

.owner-sparkline {
    grid-area: spark;
    width: 100%;
    height: 46px;
    justify-self: stretch;
    align-self: end;
    opacity: 0.9;
}

.owner-stat-card--no-spark .owner-stat-detail {
    grid-column: 1 / -1;
}

.owner-sparkline path,
.owner-sparkline polyline {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.owner-stats-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.owner-stats-lower {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.owner-chart-card {
    min-height: 300px;
    padding: var(--space-lg);
    min-width: 0;
    overflow: hidden;
}

.owner-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.owner-panel-heading h3,
.owner-demographic-card h4 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
}

.owner-chart-toggle {
    display: flex;
    gap: var(--space-xs);
    padding: 2px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.44);
}

.owner-chart-toggle button {
    min-height: 34px;
    padding: 0 var(--space-md);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.owner-chart-toggle button.active {
    background: var(--primary-color);
    color: var(--white);
}

.owner-stats-header-toggle {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.74);
}

.owner-chart-legend {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: var(--space-sm);
}

.owner-chart-legend span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary-color);
}

.owner-chart-legend span:nth-of-type(2) {
    opacity: 0.42;
}

.owner-line-chart {
    position: relative;
    min-height: 230px;
}

.owner-line-chart svg {
    width: 100%;
    height: 200px;
    overflow: visible;
}

.owner-line-chart line {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1;
}

.owner-chart-view-line,
.owner-chart-menu-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.owner-chart-menu-line {
    opacity: 0.45;
    stroke-dasharray: 7 7;
}

.owner-line-chart-labels {
    position: relative;
    height: 20px;
    color: var(--text-secondary);
    font-size: 11px;
}

.owner-line-chart-labels span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.owner-insights-list,
.owner-activity-list,
.owner-entitlement-list {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.owner-insight-row,
.owner-entitlement-row,
.owner-activity-row {
    display: grid;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.48);
}

.owner-insight-row {
    grid-template-columns: minmax(58px, 0.62fr) minmax(90px, 1fr) minmax(58px, auto);
    padding: 3px 0;
    background: transparent;
}

.owner-insight-row span,
.owner-insight-row strong,
.owner-entitlement-row strong {
    min-width: 0;
    font-size: 13px;
}

.owner-meter {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

.owner-meter span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color);
}

.owner-cuisine-row {
    display: grid;
    grid-template-columns: 28px minmax(100px, 0.36fr) minmax(120px, 1fr) 64px;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.owner-cuisine-row strong,
.owner-cuisine-row em {
    color: var(--text-primary);
    font-size: 13px;
}

.owner-cuisine-row em {
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

.owner-demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.owner-demographic-card,
.owner-location-row {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: var(--space-md);
}

.owner-gender-wrap {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md);
    min-height: 128px;
}

.owner-gender-donut {
    position: relative;
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: conic-gradient(var(--primary-color) calc(var(--gender-percent) * 1%), rgba(255, 90, 95, 0.18) 0);
    color: var(--text-primary);
    text-align: center;
}

.owner-gender-donut strong,
.owner-gender-donut span {
    grid-area: 1 / 1;
    z-index: 1;
}

.owner-gender-donut strong {
    margin-top: -12px;
    font-size: 20px;
}

.owner-gender-donut span {
    margin-top: 26px;
    color: var(--text-secondary);
    font-size: 12px;
}

.owner-gender-donut::after {
    content: "";
    grid-area: 1 / 1;
    width: 68px;
    aspect-ratio: 1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
}

.owner-gender-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: 13px;
}

.owner-gender-legend {
    min-width: 0;
}

.owner-stats-empty {
    min-height: 128px;
    display: grid;
    place-items: center;
    text-align: center;
}

.owner-gender-row em {
    color: var(--text-secondary);
    font-style: normal;
}

.owner-gender-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary-color);
}

.owner-gender-dot-1 {
    background: rgba(255, 90, 95, 0.46);
}

.owner-gender-dot-2 {
    background: rgba(0, 0, 0, 0.24);
}

.owner-location-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.owner-location-row img {
    width: 30px;
    height: 30px;
}

.owner-location-row strong {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
}

.owner-location-row p {
    margin: var(--space-xs) 0 0;
}

.owner-activity-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.48);
}

.owner-activity-row p {
    margin: var(--space-xs) 0 0;
}

.owner-activity-row time {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.owner-activity-icon {
    width: 38px;
    height: 38px;
}

.owner-stats-small-action {
    display: flex;
    width: fit-content;
    min-height: 38px;
    margin: var(--space-md) auto 0;
    color: var(--primary-color);
    border-color: rgba(255, 90, 95, 0.28);
}

.owner-stats-footnote {
    margin: var(--space-lg) 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    text-align: center;
}

.owner-subscription-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
    gap: var(--space-md);
}

.owner-current-plan-card,
.owner-subscription-benefits,
.owner-plan-section,
.owner-subscription-history {
    padding: var(--space-lg);
}

.owner-current-plan-main {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-md);
    min-height: 160px;
}

.owner-subscription-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
}

.owner-subscription-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.owner-current-plan-main h2 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
    font-size: 28px;
}

.owner-current-plan-main p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.owner-current-plan-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.owner-current-plan-actions--managed {
    grid-template-columns: 1fr;
}

.owner-managed-plan-note {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.owner-managed-plan-note .portal-status {
    width: fit-content;
}

.owner-managed-plan-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-subscription-cancel-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: calc(-1 * var(--space-xs));
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.owner-subscription-cancel-link:hover {
    color: var(--primary-color);
}

.owner-subscription-benefits {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.78fr);
    gap: var(--space-lg);
}

.owner-subscription-benefits h3,
.owner-current-plan-card h3,
.owner-plan-section h3,
.owner-subscription-history h3 {
    margin: 0;
    color: var(--text-primary);
}

.owner-subscription-card-heading {
    margin-bottom: var(--space-md);
}

.owner-subscription-card-heading p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-billing-notice {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.owner-billing-notice p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.owner-entitlement-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    border-radius: 0;
}

.owner-entitlement-row img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.owner-entitlement-row strong {
    color: var(--text-primary);
    font-size: 14px;
}

.owner-entitlement-row span {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.owner-entitlement-row.active span {
    color: var(--success);
}

.owner-subscription-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    background: transparent;
    border: 0;
}

.owner-subscription-logo {
    width: min(72%, 300px);
    height: auto;
    object-fit: contain;
}

.owner-plan-section {
    margin-top: var(--space-md);
}

.owner-plan-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.owner-plan-heading h3 {
    margin: 0;
}

.owner-plan-heading p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-billing-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    flex: 0 0 260px;
    min-height: 46px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.38);
}

.owner-billing-toggle button {
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.owner-billing-toggle button.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.owner-billing-toggle span {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0.85;
}

.owner-plan-card {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 300px;
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.42);
}

.owner-plan-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.52);
}

.owner-plan-card h3 {
    margin: 0 0 var(--space-xs);
}

.owner-plan-card p {
    margin: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.owner-plan-card ul {
    display: grid;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.owner-plan-card li::marker {
    color: var(--success);
}

.owner-plan-badge {
    position: absolute;
    top: -14px;
    left: var(--space-md);
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 var(--space-md);
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.owner-subscription-history {
    margin-top: var(--space-md);
}

.account-subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.account-subscription-card {
    display: grid;
    gap: var(--space-md);
    min-height: 212px;
    padding: var(--space-lg);
}

.account-subscription-plan-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-width: 0;
}

.account-subscription-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
}

.account-subscription-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.account-subscription-restaurant {
    min-width: 0;
}

.account-subscription-restaurant h3 {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.25;
}

.account-subscription-restaurant p,
.account-subscription-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.account-subscription-restaurant p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-subscription-meta {
    margin-top: calc(-1 * var(--space-sm));
}

.account-manage-button {
    width: 100%;
    min-height: 38px;
    justify-content: center;
}

.account-manage-button span {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
}

.account-plan-section,
.account-subscription-history {
    margin-top: var(--space-md);
    padding: var(--space-lg);
}

.account-plan-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.account-plan-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
}

.account-plan-heading h3,
.account-subscription-history h3,
.owner-subscription-history h3 {
    margin: 0;
    color: var(--text-primary);
}

.account-plan-heading p,
.account-subscription-history .portal-header p,
.owner-subscription-history .portal-header p {
    margin: var(--space-xs) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.account-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.account-plan-card {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: var(--space-md);
    min-height: 246px;
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.42);
}

.account-plan-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.52);
}

.account-plan-card-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-sm);
}

.account-plan-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
}

.account-plan-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.account-plan-card h3 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
    font-size: 18px;
}

.account-plan-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.account-plan-price {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 4px;
    row-gap: 4px;
    align-items: baseline;
    justify-content: end;
    color: var(--text-primary);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.account-plan-price strong {
    font-size: 18px;
}

.account-plan-price small {
    grid-column: 1 / -1;
    color: var(--success);
    font-weight: 800;
}

.account-plan-card ul {
    display: grid;
    gap: var(--space-xs);
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.account-plan-card li::marker {
    color: var(--success);
}

.account-history-table-head,
.account-history-row {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr 1fr 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.account-history-table-head {
    padding: 0 0 var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.account-history-rows {
    display: grid;
}

.account-history-row {
    min-height: 46px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    font-size: 13px;
}

.account-history-row small {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
}

.account-history-empty {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-primary);
}

.account-history-empty span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
}

.account-history-empty img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.account-history-empty h3 {
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
}

.account-history-empty p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

@media (max-width: 1280px) {
    .portal-shell {
        gap: var(--space-md);
        padding: var(--space-md) var(--space-md) var(--space-md) 0;
    }

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

    .owner-reservations-top-grid,
    .owner-reservations-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .owner-reservation-card-note {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }
}

@media (max-width: 1100px) {
    .portal-shell {
        display: block;
        padding: var(--space-md);
    }

    .portal-sidebar {
        border-radius: 20px;
        margin: var(--space-md) 0;
        min-width: 0;
    }

    .portal-nav-list {
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .portal-nav-item {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .portal-feature-list {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .portal-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }

    .portal-grid,
    .portal-grid--two,
    .account-subscription-grid,
    .account-plan-grid,
    .owner-menu-grid,
    .owner-menu-bottom-grid,
    .portal-form-row {
        grid-template-columns: 1fr;
    }

    .portal-header {
        display: block;
    }

    .portal-profile-main-header {
        display: grid;
        gap: var(--space-md);
    }

    .portal-profile-toast.visible {
        display: flex;
        width: 100%;
    }

    .portal-form-row--single,
    .portal-account-actions {
        grid-template-columns: 1fr;
    }

    .portal-security-card {
        width: 100%;
    }

    .portal-profile-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .portal-delete-account-button {
        justify-self: start;
    }

    .portal-header .portal-button,
    .portal-header .portal-button-secondary {
        width: 100%;
        margin-top: var(--space-md);
    }

    .owner-image-groups,
    .owner-image-group {
        grid-template-columns: 1fr;
    }

    .owner-menu-card {
        min-height: auto;
    }

    .owner-menu-bottom-grid {
        width: 100%;
    }

    .owner-image-group-preview {
        grid-template-columns: repeat(4, 1fr);
        min-height: auto;
    }

    .owner-qr-layout {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .owner-qr-frame {
        width: 112px;
    }

    .owner-pro-gate,
    .owner-reservation-row,
    .owner-reservation-actions {
        display: block;
    }

    .owner-reservation-actions .portal-button,
    .owner-reservation-actions .portal-button-secondary {
        width: 100%;
        margin-top: var(--space-sm);
    }

    .owner-reservation-card-head {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: flex-start;
    }

    .owner-reservation-card-head .owner-toggle {
        justify-self: end;
        margin-left: var(--space-sm);
    }

    .owner-hours-grid,
    .owner-hours-row,
    .owner-price-options,
    .owner-info-grid,
    .owner-reservations-top-grid,
    .owner-reservations-settings-grid,
    .owner-reservation-input-grid,
    .owner-subscription-hero,
    .owner-subscription-benefits,
    .account-plan-card-head,
    .account-history-row,
    .owner-stats-grid,
    .owner-stats-main-grid,
    .owner-plan-grid,
    .owner-demographics-grid,
    .owner-gender-wrap,
    .owner-insight-row,
    .owner-activity-row {
        grid-template-columns: 1fr;
    }

    .owner-info-field-row,
    .owner-hours-row,
    .owner-info-add-cuisine,
    .owner-reservation-card-note,
    .owner-public-preview {
        grid-template-columns: 1fr;
    }

    .owner-plan-heading {
        display: grid;
    }

    .account-plan-heading {
        display: grid;
    }

    .account-plan-heading-actions {
        display: grid;
        justify-content: stretch;
    }

    .account-history-table-head {
        display: none;
    }

    .account-history-row {
        gap: var(--space-xs);
        padding: var(--space-sm) 0;
    }

    .owner-loading-actions,
    .owner-loading-card--qr {
        justify-content: stretch;
    }

    .owner-loading-card--qr {
        display: grid;
    }

    .owner-skeleton-qr {
        width: min(160px, 100%);
    }

    .owner-skeleton-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .owner-skeleton-row .owner-skeleton-action {
        display: none;
    }

    .owner-billing-toggle {
        width: 100%;
        max-width: 320px;
        flex-basis: auto;
    }

    .owner-hours-times {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .owner-bar-chart {
        gap: var(--space-xs);
    }
}

@media (max-width: 640px) {
    .owner-reservation-card-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .owner-reservation-card-head .owner-toggle {
        grid-column: 2;
        justify-self: start;
        margin: var(--space-xs) 0 0;
    }

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

    .owner-qr-frame {
        width: min(180px, 100%);
        margin: 0;
    }

    .owner-inline-actions.owner-qr-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .app-download-banner__inner {
        min-height: 54px;
        padding: 8px var(--space-md);
        gap: var(--space-sm);
    }

    .app-download-banner__text {
        font-size: 12px;
    }

    .nav-container {
        justify-content: space-between;
        gap: var(--space-md);
    }

    .nav-login-link,
    .nav-actions > .nav-cta,
    .nav-actions > .nav-signout-btn,
    .nav-actions > .nav-tools {
        display: none;
    }

    .nav-center {
        display: flex;
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: var(--space-md);
    }

    .navbar[data-nav-role="public"] .nav-center .nav-tool-link:not([data-nav-item="home"]),
    .navbar[data-nav-role="auth"] .nav-center .nav-tool-link:not([data-nav-item="home"]) {
        display: none;
    }

    .nav-menu-toggle {
        display: inline-flex;
    }

    .nav-mobile-panel:not([hidden]) {
        display: flex;
        flex-direction: column;
        width: min(100% - 32px, 420px);
        margin: 0 auto var(--space-md);
        padding: var(--space-sm) var(--space-lg);
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }
}

@media (max-width: 480px) {
    .app-download-banner__inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        min-height: 92px;
        column-gap: var(--space-sm);
        row-gap: 8px;
    }

    .app-download-banner__brand {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .app-download-banner__icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .app-download-banner__copy {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .app-download-banner__title {
        font-size: 13px;
    }

    .app-download-banner__actions {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .app-download-banner__link {
        min-height: 32px;
        padding: 7px 18px;
    }

    .app-download-banner__dismiss {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-self: end;
        width: 32px;
        height: 32px;
    }

    body:has(.app-download-banner:not([hidden])) .menu-sticky-nav {
        top: 156px;
    }

    body:has(.app-download-banner:not([hidden])) .menu-main {
        padding-top: calc(var(--space-3xl) + 132px);
    }

    body:has(.app-download-banner:not([hidden])) .menu-section[id^="menu-section-"] {
        scroll-margin-top: 242px;
    }

    .nav-container {
        padding: var(--space-sm) var(--space-md);
        justify-content: space-between;
        gap: var(--space-sm);
    }

    .nav-actions {
        gap: var(--space-sm);
    }

    .logo-wordmark {
        height: 1.15em;
    }

    .language-switcher {
        padding: 0;
    }
}
