/* ===========================
   ChefMike App Styles - V4.0 (UI System)
   Based on CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */

/* ===========================
   CSS Variables - Base (Brand Colors)
   =========================== */
:root {
    /* Brand Colors - Primary Orange (ALL primary actions) */
    --chefmike-orange: #C75B39;
    --chefmike-orange-hover: #B54E2E;
    --chefmike-orange-light: #FFF5F2;
    --chefmike-orange-border: #FECDC2;

    /* Legacy aliases for backward compatibility */
    --chefmike-orange-dark: #B54E2E;

    /* Secondary Colors */
    --chefmike-mint: #A8D5D5;
    --chefmike-mint-light: #C2E5E5;
    --chefmike-mint-dark: #7FBFBF;
    --chefmike-charcoal: #3E4A52;

    /* Layout */
    --container: 1400px;
    --radius-sm: 0.5rem;  /* 8px */
    --radius: 0.5rem;     /* 8px - per UI system */
    --radius-lg: 0.75rem; /* 12px */
    --radius-full: 9999px; /* Full rounded for pills/chips */

    /* Transitions */
    --transition: all 0.15s ease;

    /* Typography */
    --fs-hero: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-body: 1rem;
    --lh-body: 1.6;

    /* Buttons - Standard small size (36px) */
    --btn-h: 2.25rem;  /* 36px */
    --btn-padding-x: 0.75rem;
    --btn-padding-y: 0.375rem;

    /* Brand Gradients */
    --gradient-brand: linear-gradient(135deg, var(--chefmike-orange) 0%, #E85D33 100%);
}

/* ===========================
   Light Theme (Default)
   Based on CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
:root,
[data-theme="light"] {
    /* Neutrals (Tailwind-style scale) - Must be defined first */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Background Colors - per UI System */
    --bg-primary: #F9FAFB;       /* $bg-light */
    --bg-secondary: #FFFFFF;      /* $bg-white */
    --bg-tertiary: #F3F4F6;
    --bg-elevated: #FFFFFF;
    --bg-light: #F9FAFB;

    /* Text Colors - per UI System */
    --text-primary: #1F2937;      /* Headings, primary text */
    --text-secondary: #6B7280;    /* Subtitles, descriptions */
    --text-tertiary: #4B5563;
    --text-muted: #9CA3AF;        /* Placeholders, disabled */

    /* Border Colors - per UI System */
    --border-color: #E5E7EB;      /* Default borders */
    --border-light: #E5E7EB;
    --border-hover: #D1D5DB;      /* Hover borders */
    --border-heavy: #D1D5DB;

    /* Interactive States */
    --hover-bg: #F3F4F6;
    --hover-border: var(--chefmike-orange);
    --active-bg: #E5E7EB;

    /* Semantic Colors - USE SPARINGLY per UI System */
    --color-success: #10B981;     /* ONLY for success toasts/confirmations */
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-warning: #F59E0B;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-error: #EF4444;       /* ONLY for errors, delete actions, allergen alerts */
    --color-error-dark: #DC2626;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-info: #3B82F6;        /* ONLY for informational tooltips */
    --color-info-bg: rgba(59, 130, 246, 0.1);

    /* Danger (alias for error) */
    --color-danger: var(--color-error);
    --color-danger-dark: var(--color-error-dark);
    --color-danger-bg: var(--color-error-bg);

    /* Shadows - per UI System */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Overlays */
    --overlay-light: rgba(0, 0, 0, 0.04);
    --overlay-medium: rgba(0, 0, 0, 0.06);
    --overlay-heavy: rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-brand-subtle: linear-gradient(135deg, rgba(199, 91, 57, 0.1) 0%, rgba(168, 213, 213, 0.1) 100%);
    --gradient-bg: linear-gradient(135deg, rgba(199, 91, 57, 0.04) 0%, rgba(168, 213, 213, 0.06) 100%);
}

/* ===========================
   Dark Theme
   =========================== */
[data-theme="dark"] {
    /* Background Colors */
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --bg-elevated: var(--gray-800);

    /* Text Colors */
    --text-primary: var(--gray-50);
    --text-secondary: var(--gray-300);
    --text-tertiary: var(--gray-400);
    --text-muted: var(--gray-500);

    /* Border Colors */
    --border-color: var(--gray-700);
    --border-light: var(--gray-800);
    --border-heavy: var(--gray-600);

    /* Interactive States */
    --hover-bg: var(--gray-700);
    --hover-border: var(--chefmike-orange-light);
    --active-bg: var(--gray-600);

    /* Neutrals (Inverted for dark mode - use same Tailwind scale) */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic Colors (Slightly brighter for dark mode visibility) */
    --color-success: #34D399;
    --color-success-bg: rgba(52, 211, 153, 0.15);
    --color-warning: #FBBF24;
    --color-warning-bg: rgba(251, 191, 36, 0.15);
    --color-error: #F87171;
    --color-error-dark: #EF4444;
    --color-error-bg: rgba(248, 113, 113, 0.15);
    --color-info: #60A5FA;
    --color-info-bg: rgba(96, 165, 250, 0.15);

    /* Danger (alias for error - supports both naming conventions) */
    --color-danger: var(--color-error);
    --color-danger-dark: var(--color-error-dark);
    --color-danger-bg: var(--color-error-bg);

    /* Shadows (Lighter for dark mode) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow: 0 2px 8px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
    --shadow-xl: 0 12px 32px rgba(0,0,0,.7);

    /* Overlays */
    --overlay-light: rgba(255,255,255,.04);
    --overlay-medium: rgba(255,255,255,.08);
    --overlay-heavy: rgba(255,255,255,.12);

    /* Gradients */
    --gradient-brand-subtle: linear-gradient(135deg, rgba(232,93,51,.2) 0%, rgba(168,213,213,.2) 100%);
    --gradient-bg: linear-gradient(135deg, rgba(232,93,51,.08) 0%, rgba(168,213,213,.12) 100%);
}

/* ===========================
   Reset & Base
   =========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   Container
   =========================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   Landing Page
   =========================== */
.landing-page {
    min-height: 100vh;
}

/* ===========================
   Hero Section (Improved)
   =========================== */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(232,93,51,.03) 0%, transparent 50%);
        animation: pulse 8s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 12px 40px rgba(232,93,51,.35));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.text-brand-emphasis {
    color: var(--chefmike-orange);
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--chefmike-mint-dark);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA Button */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

/* ===========================
   Buttons - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    min-height: 36px;
}

.btn i {
    font-size: 0.875rem;
}

/* Primary Button (Orange - Main Actions) */
.btn-primary {
    background: var(--chefmike-orange);
    border-color: var(--chefmike-orange);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--chefmike-orange-hover);
    border-color: var(--chefmike-orange-hover);
}

.btn-primary:disabled {
    background: var(--chefmike-orange);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Secondary Button (Gray Outline - Secondary Actions) */
.btn-outline-secondary,
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover,
.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Ghost Button (Text Only - Tertiary Actions) */
.btn-link,
.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
}

.btn-link:hover,
.btn-text:hover {
    color: var(--chefmike-orange);
}

/* Danger Button (Red - ONLY for Delete/Destructive) */
.btn-danger {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: var(--color-error-dark);
    border-color: var(--color-error-dark);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
}

/* CTA Button (Landing Page) */
.btn-cta {
    background: var(--bg-secondary);
    color: var(--chefmike-orange);
    min-height: 56px;
    padding: 0 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   Stats Grid (Fixed Responsive)
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--chefmike-orange), var(--chefmike-mint));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .stat-card:hover::before {
        transform: scaleX(1);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.stat-icon {
    font-size: 2.75rem;
    color: var(--chefmike-orange);
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===========================
   Section Styling
   =========================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

    .section-title i {
        color: var(--chefmike-orange);
    }

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Spinner
   =========================== */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--chefmike-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

/* Small spinner for buttons */
.btn .spinner,
button .spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   Recipe Cards Grid (Uses RecipeCardPublic component)
   =========================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Desktop: ensure 3 columns for recipes */
@media (min-width: 1024px) {
    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* No Recipes State */
.no-recipes {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

    .no-recipes i {
        font-size: 4rem;
        color: var(--gray-400);
        margin-bottom: 1rem;
    }

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tablet: 2 columns for features */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns for features */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        background: var(--bg-secondary);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand-subtle);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--chefmike-orange);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: var(--gradient-brand);
    position: relative;
    overflow: hidden;
    padding: 0;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 80%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
    }

.cta-card {
    text-align: center;
    padding: 5rem 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--chefmike-charcoal);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.15);
    color: var(--chefmike-mint);
    font-size: 0.9375rem;
}

/* ===========================
   Floating Login Button
   =========================== */
.floating-login-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(232,93,51,.4);
    transition: var(--transition);
    z-index: 1000;
}

    .floating-login-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 32px rgba(232,93,51,.5);
    }

    .floating-login-btn i {
        font-size: 1.75rem;
    }

/* ===========================
   Utility Classes
   =========================== */
.hover-lift {
    transition: var(--transition);
}

    .hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.hover-lift-sm {
    transition: var(--transition);
}

    .hover-lift-sm:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ===========================
   Skip Link (Accessibility)
   =========================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--chefmike-orange);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
}

    .skip-link:focus {
        top: 0;
    }

/* ===========================
   Screen Reader Only
   =========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===========================
   Error States
   =========================== */
.error-banner {
    background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    animation: slideInDown 0.3s ease-out;
}

    .error-banner i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

.error-retry {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 0.75rem;  /* 8px 12px - 4px base unit */
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

    .error-retry:hover {
        background: rgba(255,255,255,0.3);
    }

.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

    .error-state i {
        font-size: 4rem;
        color: var(--color-error);
        margin-bottom: 1rem;
    }

    .error-state h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .error-state p {
        color: var(--text-secondary);
        margin-bottom: 2rem;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Skeleton Loaders
   =========================== */
.recipe-skeleton {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-300) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-image {
    height: 240px;
    width: 100%;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 24px;
    border-radius: 0.25rem;  /* 4px */
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    border-radius: 0.25rem;  /* 4px */
    margin-bottom: 0.5rem;
}

    .skeleton-text.short {
        width: 60%;
    }

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skeleton-tag {
    height: 24px;
    width: 80px;
    border-radius: var(--radius);  /* 12px */
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* ===========================
   Reduced Motion Support
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skeleton {
        animation: none;
        background: var(--gray-200);
    }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet & Below */
@media (max-width: 1024px) {
    .recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Large Phones / Small Tablets */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 1.25rem 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .floating-login-btn {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
    
        .floating-login-btn i {
            font-size: 1.25rem;
        }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --fs-hero: 2.25rem;
        --fs-h2: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero-avatar {
        width: 160px;
        height: 160px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    /* Stats Grid - 2x2 on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.0625rem;
    }

    .floating-login-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

        .floating-login-btn i {
            font-size: 1.5rem;
        }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .recipe-image-container {
        height: 220px;
    }

    .btn {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
}

/* ===========================
   Focus States (Accessibility - WCAG AA/AAA)
   =========================== */
/* Global focus indicator for all interactive elements */
*:focus {
    outline: none;  /* Remove default outline */
}

*:focus-visible {
    outline: 3px solid var(--chefmike-orange);
    outline-offset: 2px;
    transition: outline-offset 0.15s ease;
}

/* Specific focus styles for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--chefmike-orange);
    outline-offset: 2px;
}

/* Dark mode focus state (lighter orange for better visibility) */
[data-theme="dark"] *:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] textarea:focus-visible {
    outline-color: var(--chefmike-orange-light);
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .floating-login-btn,
    .hero-cta {
        display: none;
    }
}

/* ===========================
   Waitlist Page
   =========================== */
.waitlist-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
    padding: 2rem 1rem;
}

.back-login-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;  /* 12px 16px - 4px base unit */
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    z-index: 10;
}

    .back-login-btn:hover {
        background: var(--hover-bg);
        box-shadow: var(--shadow-md);
        transform: translateX(-2px);
    }

.waitlist-container {
    width: 100%;
    max-width: 480px;
}

.waitlist-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.waitlist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(232, 93, 51, 0.2);
}

.waitlist-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.waitlist-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.info-box {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .info-item:last-child {
        margin-bottom: 0;
    }

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

    .info-icon.success {
        background: rgba(76, 175, 80, 0.1);
        color: var(--color-success);
    }

    .info-icon.info {
        background: rgba(33, 150, 243, 0.1);
        color: var(--color-info);
    }

    .info-icon.priority {
        background: var(--color-warning-bg);
        color: var(--color-warning);
    }

.info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.info-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

    .info-content p strong {
        color: var(--chefmike-orange);
        font-weight: 600;
    }

.divider {
    height: 1px;
    background: var(--gray-300);
    margin: 1.5rem 0;
}

.invitation-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.waitlist-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Waitlist Responsive */
@media (max-width: 640px) {
    .waitlist-page {
        padding: 1rem;
    }

    .back-login-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .waitlist-card {
        padding: 2rem 1.5rem;
    }

    .waitlist-avatar {
        width: 100px;
        height: 100px;
    }

    .waitlist-title {
        font-size: 1.5rem;
    }

    .waitlist-subtitle {
        font-size: 0.9375rem;
    }

    .info-box {
        padding: 1.25rem;
    }
}

/* ===========================
   Login Page
   =========================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    padding: 2rem 1rem;
}

.back-home-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;  /* 12px 16px - 4px base unit */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

    .back-home-btn:hover {
        background: var(--hover-bg);
        box-shadow: var(--shadow-md);
        transform: translateX(-2px);
    }

.signin-link {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

    .signin-link:hover {
        background: var(--chefmike-orange);
        color: #fff;
        border-color: var(--chefmike-orange);
        box-shadow: var(--shadow-md);
        transform: translateX(2px);
    }

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.login-avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(232, 93, 51, 0.2);
}

.login-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

    .alert i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success-dark);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-error-dark);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--bg-primary);
    font-family: inherit;
}

    .form-input:focus {
        outline: none;
        border-color: var(--chefmike-orange);
        box-shadow: 0 0 0 3px rgba(232, 93, 51, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }

    .form-input:disabled {
        background: var(--bg-tertiary);
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-google {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
}

    .btn-google:hover:not(:disabled) {
        background: var(--hover-bg);
        border-color: var(--border-heavy);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-google:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-google:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
    text-align: center;
}

/* Login Responsive */
@media (max-width: 640px) {
    .login-page {
        padding: 4.5rem 1rem 1rem;
        align-items: flex-start;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-avatar {
        width: 100px;
        height: 100px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.9375rem;
    }
}

/* ===========================
   Onboarding Page Styles
   =========================== */

.onboarding-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    padding: 2rem 1rem;
}

.onboarding-container {
    width: 100%;
    max-width: 540px;
}

.onboarding-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: fadeIn 0.3s ease-in;
}

.onboarding-card .hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 16px rgba(232, 93, 51, 0.2));
    animation: none;
}

.onboarding-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.onboarding-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.loading-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-state i {
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.loading-state p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.slug-status {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.slug-status.available {
    color: var(--success);
}

.slug-status.taken {
    color: var(--error);
}

.slug-status.checking {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success);
    font-weight: 500;
}

.text-error {
    color: var(--error);
    font-weight: 500;
}

.slug-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-suggestion {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.btn-suggestion:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-suggestion:active {
    transform: translateY(0);
}

.form-input.input-available {
    border-color: var(--success);
}

.form-input.input-taken {
    border-color: var(--error);
}

@media (max-width: 768px) {
    .back-home-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .onboarding-page {
        padding: 4.5rem 1rem 1rem; /* Extra top padding to avoid overlap with back button */
        align-items: flex-start;
    }

    .onboarding-container {
        margin-top: 0;
    }

    .onboarding-card {
        padding: 2rem 1.5rem;
    }

    .onboarding-card .hero-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .onboarding-title {
        font-size: 1.5rem;
    }

    .onboarding-subtitle {
        font-size: 0.9375rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Text Size Utility Classes
   =========================== */
.text-size-large {
    font-size: 1.125rem;  /* 18px - 12.5% larger */
}

.text-size-large .ingredient-label,
.text-size-large .instruction-text,
.text-size-large .tip-text {
    font-size: 1.125rem;
}

.text-size-xl {
    font-size: 1.25rem;  /* 20px - 25% larger */
}

.text-size-xl .ingredient-label,
.text-size-xl .instruction-text,
.text-size-xl .tip-text {
    font-size: 1.25rem;
}

.text-size-xl .recipe-detail-title {
    font-size: 2.5rem;  /* Larger title */
}

.text-size-large .recipe-detail-title {
    font-size: 2.25rem;  /* Slightly larger title */
}

/* ===========================
   Cooking Mode Styles
   =========================== */

/* Cooking mode header - sticky at top */
.cooking-mode-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem !important;
    margin-bottom: 1rem;
}

[data-theme="dark"] .cooking-mode-header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cooking-mode-simplified-header {
    text-align: center;
}

.cooking-mode-simplified-header .recipe-detail-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cooking-mode-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cooking-mode-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cooking-mode-meta i {
    color: var(--chefmike-orange);
}

/* Progress bar */
.cooking-progress {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-count {
    color: var(--text-secondary);
}

/* Sticky ingredients panel in cooking mode */
.ingredients-sticky {
    position: sticky;
    top: 120px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section header with Clear All button */
.section-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.section-header .btn {
    font-size: 0.85rem;
}

/* Cooking mode body adjustments */
.cooking-mode-body {
    margin-top: 0;
}

.cooking-mode-active .recipe-detail-actions {
    flex-wrap: wrap;
}

/* Hide non-essential tabs in cooking mode */
.cooking-mode-active .recipe-tab[data-tab="timer"],
.cooking-mode-active .recipe-tab[data-tab="nutrition"],
.cooking-mode-active .recipe-tab[data-tab="tips"],
.cooking-mode-active .recipe-tab[data-tab="tags"] {
    display: none;
}

/* Enhanced checkboxes in cooking mode */
.cooking-mode-active .ingredient-checkbox,
.cooking-mode-active .instruction-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cooking-mode-active .ingredient-checkbox:checked + label,
.cooking-mode-active .instruction-checkbox + label {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Mobile responsive cooking mode */
@media (max-width: 768px) {
    .cooking-mode-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ingredients-sticky {
        position: static;
        max-height: none;
    }

    .cooking-mode-simplified-header .recipe-detail-title {
        font-size: 1.5rem;
    }
}

/* ===========================
   CLOUDFLARE TURNSTILE WIDGET
   =========================== */

/* Turnstile container */
.turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 65px;
}

.turnstile-container.loading {
    background: var(--bg-tertiary, #f5f5f5);
    border-radius: var(--radius);
    animation: turnstile-pulse 1.5s ease-in-out infinite;
}

@keyframes turnstile-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Error message below widget */
.turnstile-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-danger, #EF4444);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.turnstile-error i {
    flex-shrink: 0;
}

/* Modal-specific Turnstile container */
.modal-turnstile {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    background: var(--bg-secondary, #fafafa);
}

.modal-turnstile .turnstile-container {
    margin: 0.5rem 0;
}

/* Dark mode support */
[data-theme="dark"] .turnstile-container.loading {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .modal-turnstile {
    background: var(--bg-tertiary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .turnstile-error {
    color: #f87171;
}

