/* TimedQ Styling — Uber-inspired black / white / neutral */

:root {
    /* Brand palette (matches the TimedQ mobile customer app) */
    --tq-black: #000000;
    --tq-ink: #141414;
    --tq-blue: #276EF1;
    --tq-blue-dark: #1e5fd6;
    --tq-surface: #F6F6F6;
    --tq-surface-2: #EEEEEE;
    --tq-border: #E8E8E8;
    --tq-border-strong: #CFCFCF;
    --tq-muted: #6B6B6B;

    --smartq-primary: #000000;
    --smartq-primary-hover: #1a1a1a;
    --smartq-accent: #276EF1;
    --smartq-success: #05944F;
    --smartq-warning: #B25000;
    --smartq-error: #E11900;
    --smartq-header-height: 60px;
    --smartq-sidebar-width: 280px;
    --smartq-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --smartq-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --smartq-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --smartq-border-radius: 8px;
    --smartq-transition: all 0.2s ease-in-out;
    --tq-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tq-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* TimedQ logo mark (clock face forming the Q) */
.tq-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.tq-logo-mark {
    width: var(--tq-logo-size, 32px);
    height: var(--tq-logo-size, 32px);
    flex: 0 0 auto;
}

.tq-logo-word {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: calc(var(--tq-logo-size, 32px) * 0.66);
    color: currentColor;
}

.tq-logo-word-q {
    color: var(--tq-blue);
}

/* Modern Header Styling — override FluentHeader's scoped .header[b-...] accent background */
.header-modern,
.header.header-modern {
    height: var(--smartq-header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: var(--tq-black) !important;
    background-color: var(--tq-black) !important;
    box-shadow: var(--smartq-shadow-md);
    z-index: 1000;
    position: sticky;
    top: 0;
    color: #ffffff !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--smartq-transition);
}

.menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--smartq-border-radius);
    transition: var(--smartq-transition);
    color: #ffffff;
}

.logo-section:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--smartq-shadow-sm);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
}

.logo-smart {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.logo-q {
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

.user-info i {
    font-size: 20px;
}

/* Header profile menu */
.profile-menu-wrapper {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-trigger-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.profile-trigger-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.profile-trigger-chev {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.profile-trigger-chev.open {
    transform: rotate(180deg);
}

.profile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid var(--tq-border, #e8e8e8);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 8px;
    z-index: 1600;
}

.profile-menu-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--tq-border, #e8e8e8);
    margin-bottom: 6px;
}

.profile-menu-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.profile-menu-email {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
}

.profile-menu-item i {
    font-size: 16px;
    color: #6b7280;
    width: 18px;
}

.profile-menu-item:hover {
    background: var(--tq-surface-2, #eee);
    color: #000;
}

.profile-menu-item.danger {
    color: #b91c1c;
}

.profile-menu-item.danger i {
    color: #b91c1c;
}

.profile-menu-item.danger:hover {
    background: #fef2f2;
}

.profile-menu-divider {
    height: 1px;
    background: var(--tq-border, #e8e8e8);
    margin: 6px 4px;
}

/* Login Button - White background to stand out on blue header */
.login-btn {
    background: white !important;
    color: var(--smartq-primary) !important;
    border: 2px solid white !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

/* Override FluentUI button text color */
.login-btn span,
.login-btn i {
    color: var(--smartq-primary) !important;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.login-btn:hover span,
.login-btn:hover i {
    color: var(--smartq-primary) !important;
}

.login-btn:active {
    transform: translateY(0);
}

/* Logout Button - Outline style */
.logout-btn {
    color: white !important;
    border: 2px solid white !important;
    background: transparent !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

/* Main Layout */
.main-wrapper {
    display: flex;
    height: calc(100vh - var(--smartq-header-height));
    overflow: hidden;
}

.sidebar {
    width: var(--smartq-sidebar-width);
    background: #ffffff;
    border-right: 1px solid #e1e1e1;
    overflow-y: auto;
    transition: var(--smartq-transition);
    position: relative;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

/* Hide sidebar for non-authenticated users on customer pages */
.sidebar.customer-view {
    display: none;
}

/* When sidebar is hidden, expand main content */
.main-wrapper.no-sidebar .sidebar {
    display: none;
}

.main-wrapper.no-sidebar .main-content {
    width: 100%;
}

.main-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background: var(--neutral-layer-2, #f5f5f5);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Navigation Menu */
.nav-menu-modern {
    padding: 16px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 8px 12px;
    letter-spacing: 0.8px;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: var(--smartq-transition);
    font-weight: 500;
    margin-bottom: 4px;
    border: none;
    background: transparent;
}

.nav-link-item i {
    font-size: 18px;
    color: #666;
}

.nav-link-item:hover {
    background: var(--tq-surface-2);
    color: var(--smartq-primary);
    text-decoration: none;
}

.nav-link-item:hover i {
    color: var(--smartq-primary);
}

/* Active nav link - no purple! */
.nav-link-item.active,
a.nav-link-item.active {
    background: var(--smartq-primary) !important;
    color: white !important;
    font-weight: 600;
}

.nav-link-item.active i,
a.nav-link-item.active i {
    color: white !important;
}

/* Card Styling */
.card-modern {
    background: var(--neutral-layer-1, white);
    border-radius: var(--smartq-border-radius);
    padding: 24px;
    box-shadow: var(--smartq-shadow-md);
    transition: var(--smartq-transition);
    border: 1px solid var(--neutral-stroke-divider-rest, #e1e1e1);
}

.card-modern:hover {
    box-shadow: var(--smartq-shadow-lg);
    transform: translateY(-2px);
}

/* Page Headers */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-foreground-rest, #333);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--neutral-foreground-hint, #666);
}

/* Tables */
.table-modern {
    width: 100%;
    background: var(--neutral-layer-1, white);
    border-radius: var(--smartq-border-radius);
    overflow: hidden;
    box-shadow: var(--smartq-shadow-sm);
}

/* Forms */
.form-section {
    background: var(--neutral-layer-1, white);
    border-radius: var(--smartq-border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--smartq-shadow-sm);
}

/* Buttons */
.btn-modern {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--smartq-transition);
}

/* Status Badges */
.badge-modern {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-success {
    background: rgba(16, 124, 16, 0.1);
    color: var(--smartq-success);
}

.badge-warning {
    background: rgba(247, 99, 12, 0.1);
    color: var(--smartq-warning);
}

.badge-error {
    background: rgba(209, 52, 56, 0.1);
    color: var(--smartq-error);
}

/* Restaurant Cards */
.restaurant-card {
    background: var(--neutral-layer-1, white);
    border-radius: var(--smartq-border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--smartq-shadow-sm);
    transition: var(--smartq-transition);
    border: 1px solid var(--neutral-stroke-divider-rest, #e1e1e1);
    cursor: pointer;
}

.restaurant-card:hover {
    box-shadow: var(--smartq-shadow-md);
    transform: translateY(-2px);
    border-color: var(--smartq-primary);
}

.restaurant-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-foreground-rest, #333);
    margin-bottom: 8px;
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--neutral-foreground-hint, #666);
    font-size: 14px;
}

/* Queue Entry Styling */
.queue-entry {
    background: var(--neutral-layer-1, white);
    border-radius: var(--smartq-border-radius);
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--smartq-primary);
    box-shadow: var(--smartq-shadow-sm);
    transition: var(--smartq-transition);
}

.queue-entry:hover {
    box-shadow: var(--smartq-shadow-md);
}

.queue-position {
    font-size: 32px;
    font-weight: 700;
    color: var(--smartq-primary);
}

/* Loading & Empty States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: var(--neutral-foreground-hint, #666);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Error UI */
#blazor-error-ui {
    background: linear-gradient(135deg, #d13438 0%, #a4262c 100%);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui::after {
    content: "An error has occurred.";
    font-weight: 600;
}

#blazor-error-ui a {
    color: white;
    text-decoration: underline;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-modern {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 20px;
    }

    .content-wrapper {
        padding: 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .sidebar {
        position: absolute;
        z-index: 999;
        height: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-layer-2, #f5f5f5);
}

::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--smartq-primary);
}

/* Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--smartq-success);
}

.invalid {
    outline: 1px solid var(--smartq-error);
}

.validation-message {
    color: var(--smartq-error);
    font-size: 12px;
    margin-top: 4px;
}

/* ========================================
   Homepage Styling
   ======================================== */

/* Hero Section */
.homepage-hero {
    background:
        radial-gradient(1100px 500px at 50% -10%, rgba(39, 110, 241, 0.35) 0%, rgba(39, 110, 241, 0) 60%),
        radial-gradient(700px 400px at 85% 20%, rgba(39, 110, 241, 0.18) 0%, rgba(39, 110, 241, 0) 55%),
        linear-gradient(165deg, #05070d 0%, #0b1120 45%, #000000 100%);
    padding: 104px 24px 96px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-logo .logo-smart {
    color: #ffffff;
}

.hero-logo .logo-q {
    color: var(--tq-blue);
    font-weight: 900;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(39, 110, 241, 0.12);
    border: 1px solid rgba(39, 110, 241, 0.35);
    color: #cfe0ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tq-blue);
    box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.7);
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(39, 110, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 110, 241, 0); }
}

.hero-title {
    font-family: var(--tq-font-display);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.05;
}

.hero-title-accent {
    background: linear-gradient(120deg, #4d8bff 0%, #276EF1 60%, #7aa8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 21px;
    max-width: 620px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-family: var(--tq-font-display);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.14);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3d82ff 0%, #276EF1 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(39, 110, 241, 0.45);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(39, 110, 241, 0.55);
    color: #ffffff;
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.btn-hero-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Features Section */
.homepage-features {
    padding: 96px 24px;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 36px 28px;
    background: #ffffff;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid #eceef2;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.feature-card:hover {
    border-color: rgba(39, 110, 241, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16);
}

.feature-icon-blue {
    background: linear-gradient(135deg, #3d82ff 0%, #276EF1 100%);
    box-shadow: 0 8px 20px rgba(39, 110, 241, 0.35);
}

.feature-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.32);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.32);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.32);
}

.feature-title {
    font-family: var(--tq-font-display);
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.homepage-howto {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.section-title {
    text-align: center;
    font-family: var(--tq-font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
    margin-bottom: 56px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d82ff 0%, #276EF1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tq-font-display);
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(39, 110, 241, 0.4);
}

.step-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    color: #d1d5db;
    display: flex;
    align-items: center;
}

/* Call to Action Section */
.homepage-cta {
    padding: 96px 24px;
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(39, 110, 241, 0.35) 0%, rgba(39, 110, 241, 0) 65%),
        linear-gradient(160deg, #05070d 0%, #0b1120 55%, #000000 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-family: var(--tq-font-display);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.72);
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .hero-logo {
        font-size: 48px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-hero {
        padding: 14px 28px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 18px;
    }

    .step-arrow {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   Restaurants Page Styling
   ======================================== */

.restaurants-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

.page-header-section {
    background:
        radial-gradient(800px 360px at 50% -20%, rgba(39, 110, 241, 0.32) 0%, rgba(39, 110, 241, 0) 65%),
        linear-gradient(160deg, #05070d 0%, #0b1120 55%, #000000 100%);
    padding: 72px 24px 60px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-title-large {
    font-family: var(--tq-font-display);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.page-subtitle-large {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 32px;
}

/* Modern Search Box */
.search-box-modern {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--smartq-transition);
}

.search-box-modern:focus-within {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    color: #9ca3af;
    font-size: 20px;
    margin-right: 12px;
}

.search-input-modern {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 16px;
    background: transparent;
    color: #1f2937;
}

.search-input-modern::placeholder {
    color: #9ca3af;
}

.btn-search-modern {
    background: #000000;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--smartq-transition);
    white-space: nowrap;
}

.btn-search-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Restaurant Grid */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 400px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

/* Modern Restaurant Card */
.restaurant-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.restaurant-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #000000;
}

.restaurant-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.restaurant-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.restaurant-title-section {
    flex: 1;
}

.restaurant-name-modern {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.restaurant-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.restaurant-location i {
    color: #ef4444;
    font-size: 16px;
}

.restaurant-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Restaurant Stats */
.restaurant-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    transition: var(--smartq-transition);
}

.stat-item:hover {
    background: #f3f4f6;
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.stat-icon-purple {
    background: #141414;
}

.stat-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.stat-unit {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* Restaurant Card Footer */
.restaurant-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-available {
    background: #10b981;
}

.status-moderate {
    background: #f59e0b;
}

.status-busy {
    background: #ef4444;
}

.status-text {
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.btn-join-queue {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-join-queue:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-join-queue i {
    font-size: 16px;
}

/* Responsive Restaurants Page */
@media (max-width: 768px) {
    .page-title-large {
        font-size: 32px;
    }

    .page-subtitle-large {
        font-size: 16px;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-stats {
        grid-template-columns: 1fr;
    }

    .search-box-modern {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
    }

    .search-input-modern {
        padding: 8px 0;
    }

    .btn-search-modern {
        width: 100%;
        padding: 12px 24px;
    }

    .restaurant-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-join-queue {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Join Queue Page Styling
   ======================================== */

.join-queue-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    padding: 0;
}

/* Join Queue Header */
.join-queue-header {
    background: #000000;
    padding: 32px 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-back {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--smartq-transition);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.restaurant-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--tq-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.restaurant-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.restaurant-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    opacity: 0.95;
}

.restaurant-address i {
    font-size: 18px;
}

/* Join Queue Content */
.join-queue-container {
    max-width: 800px;
    margin: 0 auto;
}

.join-queue-content {
    padding: 32px 24px;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--smartq-transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.info-card-purple .info-icon {
    background: #141414;
}

.info-card-orange .info-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.info-card-green .info-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-details {
    flex: 1;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-label-modern i {
    font-size: 16px;
    color: var(--tq-blue);
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1f2937;
    transition: var(--smartq-transition);
    background: #f9fafb;
}

.form-input-modern:focus {
    outline: none;
    border-color: #000000;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.form-input-modern::placeholder {
    color: #9ca3af;
}

/* Party Size Selector */
.party-size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
}

.party-size-btn {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--smartq-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-size-btn:hover {
    border-color: #000000;
    background: #e8f4fd;
    transform: scale(1.05);
}

.party-size-btn.active {
    border-color: #000000;
    background: #000000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.party-size-more {
    font-size: 16px;
}

/* Error Message */
.error-message-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    margin-bottom: 24px;
}

.error-message-modern i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Form Actions */
.form-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.btn-submit-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--smartq-transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-cancel-modern {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--smartq-transition);
}

.btn-cancel-modern:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Success State */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-card {
    background: white;
    border-radius: 24px;
    padding: 48px 32px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.success-icon-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.success-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.success-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
}

.success-stat {
    text-align: center;
}

.success-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.success-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--tq-blue);
}

.success-divider {
    width: 2px;
    height: 60px;
    background: #e5e7eb;
}

.success-info-box {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 32px;
}

.success-info-box i {
    font-size: 24px;
    color: var(--tq-blue);
    flex-shrink: 0;
}

.success-info-box strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
}

.success-info-box p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary-modern {
    background: #000000;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--smartq-transition);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary-modern {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--smartq-transition);
}

.btn-secondary-modern:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Error Container */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 24px;
}

.error-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.error-container p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Responsive Join Queue Page */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
        padding-top: 60px;
    }

    .restaurant-title {
        font-size: 24px;
    }

    .restaurant-address {
        justify-content: center;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 32px 24px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-details {
        flex-direction: column;
        gap: 24px;
    }

    .success-divider {
        width: 100px;
        height: 2px;
    }

    .success-actions {
        grid-template-columns: 1fr;
    }

    .party-size-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* View Toggle Styles */
.view-toggle {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.view-toggle-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-toggle-btn i {
    font-size: 18px;
}

.view-toggle-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    transform: translateY(-2px);
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Map Container */
.map-container {
    margin-top: 32px;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

#restaurantMap {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Map Legend */
.map-legend {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 220px;
}

.legend-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.legend-title i {
    color: #667eea;
    font-size: 16px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Info window custom styles (applied via JS) */
.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, white 50%, transparent 51%, transparent) !important;
}


/* ===== Legal pages (Privacy / Terms) ===== */
.legal-page {
    padding: 2rem 1rem 4rem;
    background: #f8fafc;
    min-height: 100%;
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
    color: #334155;
    line-height: 1.65;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.legal-back:hover { text-decoration: underline; }

.legal-container h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .25rem;
}

.legal-updated {
    color: #94a3b8;
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.legal-container h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 .6rem;
}

.legal-container ul {
    padding-left: 1.25rem;
    margin: .5rem 0 1rem;
}

.legal-container li { margin-bottom: .4rem; }

.legal-container a {
    color: #000000;
    text-decoration: none;
}

.legal-container a:hover { text-decoration: underline; }

/* ===== Global footer ===== */
.app-footer {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

.app-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.app-footer-brand {
    font-weight: 800;
    color: #000000;
    letter-spacing: .5px;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.app-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: .9rem;
}

.app-footer-links a:hover { color: #000000; }

.app-footer-copy {
    color: #94a3b8;
    font-size: .82rem;
}

/* Favorite heart toggle on restaurant cards */
.restaurant-card-header { position: relative; }
.btn-favorite {
    margin-left: auto;
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: .1rem .25rem;
    transition: color .15s ease, transform .15s ease;
}
.btn-favorite:hover { color: #ef4444; transform: scale(1.1); }
.btn-favorite.is-fav { color: #ef4444; }
