/* ============================================================
   SPOTT.FOOD - Design System & Global Styles
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Color palette */
    --color-primary: #FF6B35;
    --color-primary-dark: #E55A2B;
    --color-primary-light: #FF8F66;
    --color-secondary: #1B2838;
    --color-secondary-light: #2A3F55;
    --color-accent: #00D4AA;
    --color-accent-dark: #00B892;
    --color-accent-light: #33DDBB;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F7F8FA;
    --color-surface-dark: #0F1923;
    --color-text-primary: #1B2838;
    --color-text-secondary: #5A6B7D;
    --color-text-inverse: #FFFFFF;
    --color-text-muted: #8E9BAA;
    --color-border: #E2E6EA;
    --color-border-light: #F0F2F4;
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-blue: #3B82F6;
    --color-purple: #8B5CF6;

    /* Typography */
    --font-display: 'Teko', sans-serif;
    --font-body: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27, 40, 56, 0.08);
    --shadow-md: 0 4px 12px rgba(27, 40, 56, 0.1);
    --shadow-lg: 0 8px 30px rgba(27, 40, 56, 0.12);
    --shadow-xl: 0 16px 50px rgba(27, 40, 56, 0.16);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(0, 212, 170, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Font Faces --- */
@font-face {
    font-family: 'Varela Round';
    src: url("VarelaRound-Regular.6b7c705707ea.ttf") format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url("BebasNeue-Regular.b2b293064f55.ttf") format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url("Dosis-VariableFont_wght.d89d7b6e9073.ttf") format('truetype');
    font-weight: 200 800;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

.heading-display {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.heading-section {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-caption {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Buttons --- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    line-height: 1;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    color: var(--color-text-inverse);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

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

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    line-height: 1;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent), var(--shadow-lg);
    color: var(--color-secondary);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.btn-ghost:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text-muted);
    color: var(--color-text-primary);
}

.btn-ghost-sm {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
}

.btn-primary-sm {
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
}

/* --- Form Inputs --- */
.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-input:hover:not(:focus) {
    border-color: var(--color-text-muted);
}

.form-label-custom {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* --- Cards --- */
.card-elevated {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

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

.card-flat {
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-dark-gradient {
    background: linear-gradient(160deg, var(--color-surface-dark) 0%, var(--color-secondary) 50%, #1a3040 100%);
}

.bg-mesh {
    background:
        radial-gradient(at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(27, 40, 56, 0.02) 0%, transparent 50%);
}

.section-padding {
    padding: var(--space-4xl) 0;
}

.text-secondary-color {
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page */
.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.home-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* ============================================================
   LANDING PAGE (base.html)
   ============================================================ */

/* Hero Section */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 25, 35, 0.95) 0%,
        rgba(15, 25, 35, 0.8) 40%,
        rgba(15, 25, 35, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl);
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero-badge i {
    font-size: 0.875rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.hero-title .accent {
    color: var(--color-primary);
    position: relative;
}

.neonText {
    color: var(--color-primary);
    text-shadow:
        0 0 7px rgba(255, 107, 53, 0.6),
        0 0 20px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(255, 107, 53, 0.2);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Bar */
.hero-search {
    width: 100%;
    max-width: 520px;
    margin-bottom: var(--space-xl);
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    transition: all var(--transition-base);
}

.hero-search-form:focus-within {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.hero-search-form > i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-search-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-inverse);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 0.625rem 0.75rem;
    min-width: 0;
}

.hero-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.hero-search-btn:hover {
    box-shadow: var(--shadow-glow);
}

/* Keyboard shortcut hint */
.hero-search-kbd {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-right: var(--space-sm);
    transition: opacity var(--transition-fast);
}

.hero-search-form:focus-within .hero-search-kbd {
    opacity: 0;
}

/* Popular category tags */
.hero-categories {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.hero-cat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hero-cat-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-cat-tag:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--color-primary-light);
}

@media (max-width: 480px) {
    .hero-search-btn span {
        display: none;
    }
    .hero-search-kbd {
        display: none;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-actions .btn-primary-custom {
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.hero-footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    margin-top: var(--space-lg);
}

.hero-footer-text a {
    color: var(--color-primary-light);
    font-weight: 600;
}

.hero-footer-text a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.25rem;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Features section - base definition in COMPACT FEATURE CARDS section below */

.section-intro {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 170, 0.08));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
   AUTH PAGES (login.html, register.html)
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.auth-page .bg-dark-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.auth-logo .accent {
    color: var(--color-primary);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
}

/* .auth-card base styles are in the enhanced section below */

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

.auth-form .form-label-custom {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
}

.auth-form .form-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
}

.auth-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-form .form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.auth-form .btn-primary-custom {
    width: 100%;
    margin-top: var(--space-sm);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-social {
    display: flex;
    gap: var(--space-md);
}

.auth-social .social-btn {
    flex: 1;
    width: auto;
    height: 44px;
    border-radius: var(--radius-md);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--color-primary-light);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: var(--space-sm);
    display: flex;
    gap: 4px;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.password-strength-bar.active {
    background: var(--color-primary);
}

.password-strength-bar.strong {
    background: var(--color-success);
}

/* ============================================================
   MEMBER DASHBOARD (mem-dashboard.html)
   ============================================================ */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--color-secondary);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.sidebar-header {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.sidebar-logo .accent {
    color: var(--color-primary);
}

.sidebar-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-lg) 0;
}

.sidebar-section-title {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: var(--space-md);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.625rem var(--space-lg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-link:hover {
    color: var(--color-text-inverse);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--color-text-inverse);
    background: rgba(255, 107, 53, 0.12);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

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

.sidebar-username {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Main content area */
.dashboard-main {
    flex: 1;
    margin-left: 240px;
    background: var(--color-surface-alt);
    min-height: 100vh;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topbar-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.topbar-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-primary);
    background: var(--color-surface-alt);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    outline: none;
    transition: all var(--transition-fast);
}

.topbar-search input:focus {
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.topbar-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.topbar-avatar:hover {
    border-color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--color-surface-alt);
}

/* Dashboard Content */
.dashboard-content {
    padding: var(--space-xl);
}

.dashboard-welcome {
    margin-bottom: var(--space-2xl);
}

.dashboard-welcome h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xs);
}

.dashboard-welcome p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.stat-card-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-primary);
}

.stat-card-icon.teal {
    background: rgba(0, 212, 170, 0.1);
    color: var(--color-accent);
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.stat-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
}

.stat-card-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-card-trend.up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.stat-card-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1.5px dashed var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--color-text-primary);
}

.quick-action-card:hover {
    border-color: var(--color-primary);
    border-style: solid;
    background: rgba(255, 107, 53, 0.03);
    color: var(--color-text-primary);
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.quick-action-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.quick-action-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Recent activity / content area */
.content-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.content-section-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content-section-body {
    padding: var(--space-xl);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    max-width: 320px;
    margin: 0 auto var(--space-xl);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-secondary);
    padding: var(--space-2xl) var(--space-xl);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.footer-logo .accent {
    color: var(--color-primary);
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-lg);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-actions {
        width: 100%;
    }

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

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-content {
        padding: var(--space-md);
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-fade-in-up-initial {
    opacity: 0;
    transform: translateY(20px);
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   NAVBAR (navbar.html)
   ============================================================ */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.navbar-brand .accent {
    color: var(--color-primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.navbar-link:hover {
    color: var(--color-text-inverse);
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: var(--color-text-inverse);
}

/* ============================================================
   TEXTURE & PERSONALITY OVERLAYS
   ============================================================ */

/* Subtle dot pattern for food-truck-culture vibe */
.texture-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
}

/* Diagonal stripes accent (used on accent bars) */
.texture-stripes {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        rgba(255, 107, 53, 0.06) 5px,
        rgba(255, 107, 53, 0.06) 10px
    );
}

/* Animated gradient border */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(255, 107, 53, 0.3); }
    50% { border-color: rgba(0, 212, 170, 0.3); }
}

.glow-border {
    animation: borderGlow 4s ease-in-out infinite;
}

/* ============================================================
   ENHANCED LANDING - "How It Works" Steps
   ============================================================ */

.steps-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--color-surface-alt);
    position: relative;
}

.steps-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.steps-header h2 {
    margin-bottom: var(--space-sm);
}

.steps-header p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto;
}

.steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    counter-increment: step-counter;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Connecting line between steps */
.step-item:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 64px;
    width: 2px;
    height: calc(100% - 24px);
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    opacity: 0.3;
}

@media (min-width: 769px) {
    .steps-list {
        gap: var(--space-3xl);
    }

    .step-item:nth-child(even) {
        flex-direction: row-reverse;
        text-align: right;
    }

    .step-item:nth-child(even) .step-content p {
        margin-left: auto;
    }

    .step-item:nth-child(even) .step-number::after {
        left: auto;
        right: 27px;
    }
}

/* ============================================================
   ENHANCED LANDING - Social Proof / Testimonials
   ============================================================ */

.social-proof-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.social-proof-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.social-proof-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.social-proof-header {
    margin-bottom: var(--space-2xl);
}

.social-proof-header h2 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-sm);
}

.social-proof-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.2);
}

.testimonial-stars {
    color: var(--color-warning);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-inverse);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-inverse);
}

.testimonial-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.stats-bar-item {
    text-align: center;
}

.stats-bar-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stats-bar-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: var(--space-xs);
}

/* ============================================================
   ENHANCED FEATURE CARDS - Playful hover
   ============================================================ */

.feature-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* ============================================================
   ENHANCED AUTH - Animated gradient border
   ============================================================ */

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

/* Form validation states */
.form-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.is-valid {
    border-color: var(--color-success);
}

.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-success {
    display: block;
    font-size: 0.75rem;
    color: var(--color-success);
    margin-top: var(--space-xs);
}

/* Auth form dark mode validation */
.auth-form .form-input.is-invalid {
    border-color: #F87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.auth-form .form-error {
    color: #FCA5A5;
}

/* ============================================================
   ENHANCED DASHBOARD - Nearby trucks preview
   ============================================================ */

.truck-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.truck-preview-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.truck-preview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.truck-preview-image {
    height: 140px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.truck-preview-image i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
}

.truck-preview-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 2px 8px;
    background: var(--color-success);
    color: var(--color-text-inverse);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.truck-preview-body {
    padding: var(--space-lg);
}

.truck-preview-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
}

.truck-preview-category {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.truck-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.truck-preview-distance {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.truck-preview-distance i {
    color: var(--color-primary);
    font-size: 0.875rem;
}

.truck-preview-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-warning);
}

/* ============================================================
   CTA BANNER (bottom of landing page)
   ============================================================ */

.cta-banner {
    padding: var(--space-4xl) var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner h2 {
    color: var(--color-text-inverse);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    line-height: 1;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary-dark);
}

/* ============================================================
   UTILITY - Misc helpers
   ============================================================ */

.section-label {
    margin-bottom: var(--space-md);
}

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

.topbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
}

.topbar-icon-btn:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text-muted);
    color: var(--color-text-primary);
}

.topbar-icon-btn-badge {
    position: relative;
}

.topbar-icon-btn-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-link-logout {
    margin-top: var(--space-md);
    padding-left: 0;
}

.content-section-spaced {
    margin-bottom: var(--space-2xl);
}

/* Mini map placeholder */
.mini-map-placeholder {
    height: 200px;
    background:
        linear-gradient(135deg, #1a2f3f 0%, #0f1f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mini-map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 30%, rgba(0, 212, 170, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.mini-map-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.mini-map-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
}

.mini-map-content i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
    opacity: 0.4;
}

.mini-map-content p {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Visible focus ring for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

    .scroll-indicator {
        animation: none;
    }
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ============================================================
   SKELETON LOADING STATES
   ============================================================ */

@keyframes skeletonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.skeleton {
    background: var(--color-border-light);
    border-radius: var(--radius-sm);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 0.875rem;
    width: 100%;
    margin-bottom: var(--space-sm);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* ============================================================
   HERO DECORATIVE ELEMENTS - Floating food icons
   ============================================================ */

.hero-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero-decor-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.06;
    color: var(--color-text-inverse);
}

.hero-decor-item:nth-child(1) {
    top: 15%;
    left: 8%;
    font-size: 2.5rem;
    animation: floatDecor 8s ease-in-out infinite;
}

.hero-decor-item:nth-child(2) {
    top: 25%;
    right: 12%;
    font-size: 1.75rem;
    animation: floatDecor 6s ease-in-out infinite 1s;
}

.hero-decor-item:nth-child(3) {
    bottom: 30%;
    left: 5%;
    font-size: 2rem;
    animation: floatDecor 7s ease-in-out infinite 2s;
}

.hero-decor-item:nth-child(4) {
    bottom: 20%;
    right: 8%;
    font-size: 2.25rem;
    animation: floatDecor 9s ease-in-out infinite 0.5s;
}

.hero-decor-item:nth-child(5) {
    top: 60%;
    left: 15%;
    font-size: 1.5rem;
    animation: floatDecor 7.5s ease-in-out infinite 3s;
}

.hero-decor-item:nth-child(6) {
    top: 40%;
    right: 5%;
    font-size: 2rem;
    animation: floatDecor 6.5s ease-in-out infinite 1.5s;
}

@keyframes floatDecor {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(5deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* ============================================================
   IMAGE FALLBACKS
   ============================================================ */

img[src=""],
img:not([src]) {
    visibility: hidden;
}

.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

/* ============================================================
   CHALKBOARD-STYLE "Today's Specials" section
   ============================================================ */

.chalkboard-section {
    padding: var(--space-4xl) var(--space-xl);
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.chalkboard-section::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.chalkboard-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
    pointer-events: none;
}

.chalkboard-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.chalkboard-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.chalkboard-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-2xl);
}

.chalkboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.chalkboard-item {
    padding: var(--space-lg);
}

.chalkboard-item-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.chalkboard-item-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xs);
}

.chalkboard-item-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.chalkboard-item-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary-light);
    margin-top: var(--space-sm);
}

/* Chalkboard item hover animation */
.chalkboard-item {
    transition: transform var(--transition-base);
    border-radius: var(--radius-md);
}

.chalkboard-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.02);
}

.chalkboard-item:hover .chalkboard-item-icon {
    animation: wobble 0.5s ease;
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
    75% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

/* ============================================================
   DASHBOARD WELCOME BANNER
   ============================================================ */

.dashboard-welcome-banner {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    color: var(--color-text-inverse);
}

.dashboard-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-welcome-banner h1 {
    color: var(--color-text-inverse);
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.dashboard-welcome-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.dashboard-welcome-banner .welcome-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-sm);
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO VISUAL REFINEMENTS
   ============================================================ */

/* Animated glow ring behind the hero title */
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ============================================================
   DJANGO FORM ERROR MESSAGES
   ============================================================ */

.alert-container {
    margin-bottom: var(--space-lg);
}

.alert-error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: #FCA5A5;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error i {
    font-size: 1.125rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-success {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    color: #86EFAC;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-success i {
    font-size: 1.125rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ============================================================
   COMPACT FEATURE CARDS
   ============================================================ */

.features-section {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   V2 LANDING - "The sign at night"
   New face, same brand. The neon .FOOD flicker is the
   preserved element; the ticket rail is the signature.
   ========================================================= */

.v2 { background: var(--color-surface-dark); overflow-x: hidden; }

/* ---- Hero ---- */
.v2-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    background:
        radial-gradient(ellipse 60% 42% at 50% 30%, rgba(255, 107, 53, 0.14), transparent 70%),
        var(--color-surface-dark);
    overflow: hidden;
}

.v2-stringlights {
    position: absolute;
    top: 2.2rem; left: 0; right: 0;
    height: 8px;
    background-image: radial-gradient(circle 3px, rgba(255, 214, 165, 0.85) 0 2px, transparent 3px);
    background-size: 52px 8px;
    background-position: 10px 0;
    filter: drop-shadow(0 0 6px rgba(255, 190, 120, 0.7));
    opacity: 0.7;
}

.v2-hero-glow {
    position: absolute;
    left: 50%; top: 46%;
    width: min(760px, 92vw); height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.18), transparent 65%);
    pointer-events: none;
}

.v2-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.v2-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.v2-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: v2Pulse 2.2s ease-in-out infinite;
}

.v2-sign {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4.2rem, 18vw, 13rem);
    line-height: 0.95;
    letter-spacing: 0.015em;
    margin: 0 0 0.4rem;
}

.v2-sign-main {
    color: #F4F7FA;
    text-shadow:
        0 0 2px rgba(255,255,255,0.35),
        0 0 18px rgba(180, 210, 255, 0.18);
}

/* The brand element: the double-T is lit neon glass.
   Recipe: near-white hot core, then progressively wider orange halos.
   JS (below in base.html) drives random flicker by toggling .neon-dim;
   the CSS keyframe remains only as a no-JS fallback. */
.v2-sign-tt {
    color: #FFE7DB; /* white-hot core, orange-tinted */
    animation: v2NeonFlicker 6.5s linear infinite;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 107, 53, 0.9),
        0 0 24px rgba(255, 107, 53, 0.6),
        0 0 52px rgba(255, 107, 53, 0.35),
        0 0 90px rgba(255, 107, 53, 0.2);
}

/* Dim: the tube loses its charge but the glass stays faintly visible */
.v2-sign-tt.neon-dim {
    color: rgba(255, 107, 53, 0.30);
    text-shadow: 0 0 3px rgba(255, 107, 53, 0.15);
    animation: none;
}

/* The wall glow breathes with the sign */
.glow-dim .v2-hero-glow { opacity: 0.3; }

/* =====================================================
   NEON STYLE VARIANTS (toggle via body class)
   ===================================================== */

/* STYLE: outline - hollow glass tubing. Fill transparent, stroke is the
   tube, glow via stacked drop-shadow filters (they follow the stroke). */
.neon-outline .v2-sign-main {
    color: transparent;
    -webkit-text-stroke: 3px rgba(244, 247, 250, 0.95);
    text-shadow: none;
    filter: drop-shadow(0 0 5px rgba(220, 235, 255, 0.55))
            drop-shadow(0 0 16px rgba(180, 210, 255, 0.25));
}
.neon-outline .v2-sign-tt {
    color: transparent;
    -webkit-text-stroke: 3px #FFCDB3;
    text-shadow: none;
    filter: drop-shadow(0 0 5px rgba(255, 170, 120, 0.9))
            drop-shadow(0 0 16px rgba(255, 107, 53, 0.6))
            drop-shadow(0 0 40px rgba(255, 107, 53, 0.35));
}
.neon-outline .v2-sign-tt.neon-dim {
    -webkit-text-stroke-color: rgba(255, 107, 53, 0.28);
    filter: drop-shadow(0 0 3px rgba(255, 107, 53, 0.12));
}

/* STYLE: duotone - SPO burns teal, TT burns orange (two-gas sign) */
.neon-duotone .v2-sign-main {
    color: #E4FFF8;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(0, 212, 170, 0.9),
        0 0 24px rgba(0, 212, 170, 0.55),
        0 0 52px rgba(0, 212, 170, 0.3);
}

/* STYLE: framed - the classic bordered sign; frame glows teal */
.neon-framed .v2-sign {
    display: inline-block;
    padding: 0.35em 0.5em 0.22em;
    border: 3px solid rgba(220, 250, 244, 0.9);
    border-radius: 0.35em;
    box-shadow:
        0 0 6px rgba(0, 212, 170, 0.7),
        0 0 22px rgba(0, 212, 170, 0.4),
        0 0 48px rgba(0, 212, 170, 0.2),
        inset 0 0 10px rgba(0, 212, 170, 0.3);
}

.v2-sign-neon {
    animation: v2NeonFlicker 6.5s linear infinite;
}

@keyframes v2NeonFlicker {
    0%, 6.9%, 8.2%, 11.9%, 13.5%, 74.9%, 76.3%, 100% {
        opacity: 1;
        text-shadow:
            0 0 7px rgba(255, 107, 53, 0.65),
            0 0 20px rgba(255, 107, 53, 0.45),
            0 0 44px rgba(255, 107, 53, 0.25);
    }
    7%, 8.1%, 12%, 13.4%, 75%, 76.2% {
        opacity: 0.35;
        text-shadow: 0 0 4px rgba(255, 107, 53, 0.2);
    }
}

.v2-promise {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    color: #FFFFFF;
    letter-spacing: 0.03em;
    margin: 0.6rem 0 0.4rem;
}

.v2-promise-accent { color: var(--color-accent); }

.v2-sub {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ---- Ticket rail ---- */
.v2-rail {
    background: #0A121A;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem 0;
    overflow: hidden;
}

.v2-rail-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: v2Rail 36s linear infinite;
}

.v2-rail:hover .v2-rail-track { animation-play-state: paused; }

@keyframes v2Rail { to { transform: translateX(-50%); } }

.v2-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #FFFFFF;
    color: var(--color-text-primary);
    border-radius: 6px;
    padding: 0.5rem 0.9rem 0.5rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* punched hole, like a rail spike through the ticket */
.v2-ticket::before {
    content: "";
    position: absolute;
    left: 0.35rem; top: 50%;
    width: 7px; height: 7px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #0A121A;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}

.v2-ticket-num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    margin-left: 0.35rem;
}

.v2-ticket-pill {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.v2-pill-ready   { background: rgba(0, 212, 170, 0.16); color: var(--color-accent-dark); }
.v2-pill-cooking { background: rgba(255, 107, 53, 0.14); color: var(--color-primary-dark); }
.v2-pill-new     { background: rgba(27, 40, 56, 0.10); color: var(--color-text-secondary); }

/* ---- Two lanes ---- */


.v2-lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 1rem;
}

.v2-lane {
    border-radius: 18px;
    padding: 2.2rem 2rem;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.v2-lane-eat { border-top: 3px solid var(--color-accent); }
.v2-lane-run { border-top: 3px solid var(--color-primary); }

.v2-lane-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.2rem;
}

.v2-lane-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.6rem;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0 0 1.2rem;
}

.v2-lane-eat .v2-lane-title { color: var(--color-accent); }
.v2-lane-run .v2-lane-title { color: var(--color-primary); }

.v2-lane-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: grid;
    gap: 0.85rem;
}

.v2-lane-list li {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.v2-lane-list i { color: rgba(255, 255, 255, 0.45); margin-top: 0.15rem; }
.v2-lane-eat .v2-lane-list i { color: var(--color-accent); }
.v2-lane-run .v2-lane-list i { color: var(--color-primary); }

/* ---- Steps ---- */
.v2-steps {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
}

.v2-section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin-bottom: 2.4rem;
}

.v2-title-accent { color: var(--color-primary); }

.v2-steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    text-align: left;
}

.v2-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
}

.v2-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem; height: 2.1rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.v2-step h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0 0 0.4rem;
}

.v2-step p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---- Map teaser ---- */
.v2-map-teaser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.v2-map-panel {
    position: relative;
    min-height: 300px;
    border-radius: 18px;
    background:
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.10) 0 1px, transparent 2px),
        linear-gradient(160deg, #14212F, #0C1620);
    background-size: 26px 26px, 100% 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.v2-map-panel::after {
    /* a road */
    content: "";
    position: absolute;
    left: -10%; right: -10%; top: 52%;
    height: 2px;
    background: rgba(255, 255, 255, 0.10);
    transform: rotate(-7deg);
}

.v2-map-marker {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5);
    animation: v2Pulse 2.4s ease-out infinite;
    z-index: 1;
}

.v2-map-marker-2 { animation-delay: 0.7s; }
.v2-map-marker-3 { animation-delay: 1.3s; background: var(--color-primary); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }

@keyframes v2Pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(0, 212, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.v2-map-copy p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

.v2-map-copy .v2-section-title { margin-bottom: 1rem; text-align: left; }

/* ---- Referral strip ---- */
.v2-referral {
    background: linear-gradient(120deg, #14212F, #0F1923);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3.4rem 1.5rem;
    text-align: center;
}

.v2-referral-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #FFFFFF;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.v2-referral-money {
    color: var(--color-accent);
    text-shadow: 0 0 18px rgba(0, 212, 170, 0.35);
}

.v2-referral-inner p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.68);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Motion respect ---- */
@media (prefers-reduced-motion: reduce) {
    .v2-sign-neon, .v2-sign-tt, .v2-rail-track, .v2-map-marker, .v2-live-dot {
        animation: none !important;
    }
}

@media (max-width: 720px) {
    .v2-lanes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .v2-hero { min-height: auto; padding-top: 5rem; }
    .v2-lane { padding: 1.8rem 1.4rem; }
}


/* =====================================================
   LIGHT THEME ("daytime"). Toggled by body.theme-light.
   Accents (orange/teal) are shared; surfaces invert.
   ===================================================== */
body.theme-light { background: #F5F7FA; color: #16202B; }
body.theme-light .v2-hero { background: linear-gradient(180deg, #FDFEFF 0%, #EFF3F7 100%); }
body.theme-light .v2-hero-glow { opacity: 0.5; filter: saturate(0.9); }
body.theme-light .v2-sign-main {
    color: #16202B;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
body.theme-light .v2-sign-tt {
    /* a lit tube in daylight: same hot core, gentler halo */
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.9),
        0 0 8px rgba(255, 107, 53, 0.75),
        0 0 18px rgba(255, 107, 53, 0.4),
        0 0 36px rgba(255, 107, 53, 0.18);
}
body.theme-light .v2-sign-tt.neon-dim {
    color: rgba(229, 90, 43, 0.35);
    text-shadow: none;
}
body.theme-light .v2-hero-sub, body.theme-light .v2-hero-eyebrow { color: #4A5A6A; }
body.theme-light .navbar, body.theme-light .site-footer, body.theme-light footer {
    background: #FFFFFF; border-color: rgba(15, 25, 35, 0.08);
}
body.theme-light .navbar a, body.theme-light .footer-logo, body.theme-light .navbar-logo { color: #16202B; }
body.theme-light .v2-panel, body.theme-light .v2-card, body.theme-light .card,
body.theme-light .content-section, body.theme-light .truck-card, body.theme-light .menu-item-card,
body.theme-light .form-card, body.theme-light .auth-card {
    background: #FFFFFF; border-color: rgba(15, 25, 35, 0.10);
    color: #16202B;
    box-shadow: 0 6px 18px rgba(15, 25, 35, 0.06);
}
body.theme-light h1, body.theme-light h2, body.theme-light h3,
body.theme-light .page-title, body.theme-light .content-section-title { color: #16202B; }
body.theme-light p, body.theme-light li, body.theme-light label { color: #3E4C5C; }
body.theme-light .text-caption, body.theme-light .page-subtitle, body.theme-light small { color: #5A6B7D; }
body.theme-light .form-input, body.theme-light select, body.theme-light textarea {
    background: #FFFFFF; color: #16202B; border-color: rgba(15, 25, 35, 0.18);
}
body.theme-light .form-input::placeholder { color: #93A1B0; }
body.theme-light .v2-search-bar, body.theme-light .search-bar {
    background: #FFFFFF; border-color: rgba(15, 25, 35, 0.14);
}
body.theme-light .v2-rail, body.theme-light .ticket-rail { background: #EDF1F5; }
body.theme-light .v2-map-panel { background: #FFFFFF; border-color: rgba(15,25,35,0.1); }
body.theme-light .btn-secondary-custom, body.theme-light .btn-ghost {
    color: #16202B; border-color: rgba(15, 25, 35, 0.2);
}
body.theme-light .chip, body.theme-light .category-chip {
    background: #FFFFFF; color: #3E4C5C; border-color: rgba(15, 25, 35, 0.15);
}
body.theme-light .mods-group { border-color: rgba(15, 25, 35, 0.14); }
body.theme-light .theme-toggle { color: #16202B; }

.theme-toggle {
    background: none; border: none; cursor: pointer;
    font-size: 1.05rem; color: var(--color-ink, #F4F7FA);
    min-width: 44px; min-height: 44px; border-radius: 99px;
}
.theme-toggle:hover { opacity: 0.75; }

.theme-toggle-floating { position: fixed; top: 14px; right: 16px; z-index: 60; background: rgba(20, 33, 47, 0.55); backdrop-filter: blur(4px); }
body.theme-light .theme-toggle-floating { background: rgba(255, 255, 255, 0.7); box-shadow: 0 2px 10px rgba(15,25,35,0.12); }


/* Dark skin for inner pages: token inversion when NOT light.
   The landing (V2) already carries its own dark styling. */
body:not(.theme-light):not(.landing-page) {
    --color-surface: #1B2838;
    --color-surface-alt: #14212F;
    --color-text-primary: #F4F7FA;
    --color-text-secondary: #B8C4D0;
    --color-text-muted: #8E9BAA;
    --color-border: #2A3A4D;
    --color-border-light: #22303F;
    background: #0F1923;
    color: #F4F7FA;
}
body:not(.theme-light):not(.landing-page) .navbar,
body:not(.theme-light):not(.landing-page) .site-footer,
body:not(.theme-light):not(.landing-page) footer {
    background: #14212F; border-color: #22303F;
}
body:not(.theme-light):not(.landing-page) .navbar a { color: #F4F7FA; }
body:not(.theme-light):not(.landing-page) .form-input,
body:not(.theme-light):not(.landing-page) select,
body:not(.theme-light):not(.landing-page) textarea {
    background: #14212F; color: #F4F7FA; border-color: #2A3A4D;
}
body:not(.theme-light):not(.landing-page) .form-input::placeholder { color: #6B7A8A; }
body:not(.theme-light):not(.landing-page) .order-card { background: #FFFFFF; }
body:not(.theme-light):not(.landing-page) img.truck-cover-img { opacity: 0.94; }


/* =====================================================
   POLISH: motion + depth (respects reduced motion)
   ===================================================== */
body, .navbar, .site-footer, .v2-hero, .content-section, .truck-card,
.menu-item-card, .form-card, .order-card, .form-input {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* scroll-reveal entrances */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* depth: cards lift on hover (pointer) and compress on touch */
.truck-card, .menu-item-card, .content-section, .v2-card {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.22s ease, background-color 0.35s ease, border-color 0.35s ease;
    will-change: transform;
}
@media (hover: hover) {
    .truck-card:hover, .menu-item-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 34px rgba(5, 12, 20, 0.35);
    }
    body.theme-light .truck-card:hover, body.theme-light .menu-item-card:hover {
        box-shadow: 0 14px 30px rgba(15, 25, 35, 0.14);
    }
}
.truck-card:active, .menu-item-card:active { transform: translateY(-1px) scale(0.995); }

/* tactile buttons */
.btn-primary-custom, .btn-secondary-custom, .btn-ghost, .navbar-cta, .tip-chip, .theme-toggle {
    transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}
.btn-primary-custom:hover, .navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35); }
.btn-primary-custom:active, .btn-secondary-custom:active, .navbar-cta:active, .tip-chip:active { transform: scale(0.97); }
:is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--color-accent, #00D4AA); outline-offset: 2px; border-radius: 6px;
}

/* landing depth: layered vignette behind everything */
.v2-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 110%, rgba(0, 0, 0, 0.28), transparent 60%);
}
body.theme-light .v2-hero::after {
    background: radial-gradient(120% 90% at 50% 110%, rgba(15, 25, 35, 0.06), transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .truck-card, .menu-item-card, .btn-primary-custom, .navbar-cta { transition: none; }
    * { scroll-behavior: auto !important; }
}
