/* ============================================
   Let's Move - Liquid Glass Design System
   ============================================ */

:root {
    /* Background */
    --bg-deep: #0a0a1a;
    --bg-surface: #0f0f23;
    --bg-gradient: linear-gradient(135deg, #0a0a1a 0%, #0f0f23 40%, #121228 70%, #0d0d20 100%);

    /* Glass surfaces */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-bg-active: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-blur: 20px;
    --glass-radius: 20px;
    --glass-radius-sm: 12px;
    --glass-radius-xs: 8px;

    /* Accent colors */
    --accent-blue: #00d4ff;
    --accent-green: #00ff88;
    --accent-orange: #ff6b35;
    --accent-purple: #a855f7;
    --accent-pink: #f472b6;
    --accent-red: #ef4444;
    --accent-yellow: #fbbf24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff, #00ff88);
    --gradient-warm: linear-gradient(135deg, #ff6b35, #fbbf24);
    --gradient-cool: linear-gradient(135deg, #a855f7, #00d4ff);
    --gradient-fire: linear-gradient(135deg, #ef4444, #ff6b35, #fbbf24);

    /* Text */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --text-accent: var(--accent-blue);

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-glass-hover: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-glow-green: 0 0 20px rgba(0, 255, 136, 0.15);
    --shadow-glow-orange: 0 0 20px rgba(255, 107, 53, 0.15);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.2);

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

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* MudBlazor dark palette — set here so icons are always light-colored
       regardless of when/whether MudThemeProvider injects its own variables */
    --mud-palette-text-primary: rgba(255, 255, 255, 0.92);
    --mud-palette-text-secondary: rgba(255, 255, 255, 0.55);
    --mud-palette-text-disabled: rgba(255, 255, 255, 0.26);
    --mud-palette-action-default: rgba(255, 255, 255, 0.56);
    --mud-palette-action-disabled: rgba(255, 255, 255, 0.26);
    --mud-palette-action-disabled-background: rgba(255, 255, 255, 0.12);
}

/* ---- Global Reset & Base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-number--warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number--cool {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number--fire {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

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

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

/* ---- Glass Card ---- */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--shadow-glass);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    pointer-events: none;
}

.glass-card--hoverable:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-hover), var(--shadow-glow-blue);
}

.glass-card--compact {
    padding: var(--space-md);
    border-radius: var(--glass-radius-sm);
}

.glass-card--transparent {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

/* ---- Glass Button ---- */

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.glass-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.glass-btn--primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.15));
    border-color: rgba(0, 212, 255, 0.3);
}

.glass-btn--primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.25));
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-glow-blue);
}

.glass-btn--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(255, 107, 53, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

.glass-btn--danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(255, 107, 53, 0.2));
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: var(--shadow-glow-orange);
}

.glass-btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--glass-radius);
}

/* ---- Glass Input ---- */

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.glass-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

textarea.glass-input {
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    font-family: inherit;
}

/* ---- Background Orbs ---- */

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.bg-orb--blue {
    background: var(--accent-blue);
    width: 500px;
    height: 500px;
    top: -10%;
    left: -5%;
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.bg-orb--green {
    background: var(--accent-green);
    width: 400px;
    height: 400px;
    bottom: -5%;
    right: -5%;
    animation: orbFloat 30s ease-in-out infinite alternate-reverse;
    animation-delay: -8s;
}

.bg-orb--purple {
    background: var(--accent-purple);
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    animation: orbFloat 20s ease-in-out infinite alternate;
    animation-delay: -15s;
}

.bg-orb--orange {
    background: var(--accent-orange);
    width: 300px;
    height: 300px;
    top: 60%;
    left: 10%;
    animation: orbFloat 22s ease-in-out infinite alternate-reverse;
    animation-delay: -5s;
    opacity: 0.12;
}

/* ---- Layout ---- */

.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.page-content {
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Grid Layouts ---- */

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

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-md);
    }

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

/* ---- Stat Card ---- */

.stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--glass-radius-sm);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.stat-card__icon--blue {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-blue);
}

.stat-card__icon--green {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
}

.stat-card__icon--orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
}

.stat-card__icon--purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
}

.stat-card__icon--pink {
    background: rgba(244, 114, 182, 0.12);
    color: var(--accent-pink);
}

.stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

.stat-card__trend--up {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.08);
}

.stat-card__trend--down {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

/* ---- Navigation / AppBar ---- */

.glass-appbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 var(--space-xl);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glass-appbar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.glass-appbar__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(14, 14, 32, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 5px;
}

.glass-appbar__link {
    display: flex;
    align-items: center;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.glass-appbar__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.glass-appbar__link.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-blue);
    font-weight: 600;
}

.glass-appbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.glass-appbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18);
    transition: all var(--transition-fast);
}

.glass-appbar__avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.4), 0 4px 16px rgba(0, 212, 255, 0.2);
}

.glass-btn--icon {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.glass-appbar__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--glass-radius-xs);
    transition: all var(--transition-fast);
}

.glass-appbar__hamburger:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* ---- Pill Nav (desktop, centered in appbar) ---- */

.pill-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(14, 14, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    z-index: 1;
}

.pill-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.pill-nav__item:hover {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.pill-nav__item.active {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* ---- Mobile Nav ---- */

.mobile-nav-overlay,
.mobile-nav {
    display: none !important;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.75rem 1rem;
    border-radius: var(--glass-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

button.mobile-nav__link {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    justify-content: flex-start;
}

.mobile-nav form {
    width: 100%;
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

.mobile-nav__link.active {
    color: var(--accent-blue);
}

.mobile-nav__divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-sm) 0;
}

@media (max-width: 768px) {
    .glass-appbar__nav,
    .glass-appbar__actions,
    .pill-nav {
        display: none !important;
    }

    .glass-appbar__hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .glass-appbar {
        padding: 0 var(--space-md);
    }

    .mobile-nav-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 64px;
        right: 0;
        width: 280px;
        max-width: 80vw;
        bottom: 0;
        z-index: 200;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        padding: var(--space-md);
        gap: var(--space-xs);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        pointer-events: none;
    }

    body.mobile-nav-open .mobile-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-nav-open .mobile-nav {
        transform: translateX(0);
        pointer-events: auto;
    }
}

/* ---- Quick Log FAB ---- */

.quick-log-fab {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 200;
    height: 52px;
    padding: 0 1.25rem 0 1rem;
    border-radius: 999px;
    background: var(--gradient-primary);
    border: none;
    color: #0a0a1a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35),
                0 0 0 0 rgba(0, 212, 255, 0.25);
    transition: all var(--transition-base);
    animation: fabPulse 2.5s ease-in-out infinite;
}

.quick-log-fab__label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.quick-log-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 36px rgba(0, 212, 255, 0.45);
    animation: none;
}

.quick-log-fab:active {
    transform: scale(0.96);
}

@media (max-width: 600px) {
    .quick-log-fab {
        bottom: 1rem;
        right: 1rem;
        height: 48px;
        padding: 0 1.1rem 0 0.85rem;
    }

    .quick-log-fab__label {
        font-size: 0.82rem;
    }

    .glass-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .glass-modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        padding: var(--space-lg);
        border-radius: var(--glass-radius) var(--glass-radius) 0 0;
        animation: modalSlideUpMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .glass-modal__header {
        margin-bottom: var(--space-md);
    }

    .glass-modal__header h2 {
        font-size: 1.1rem;
    }

    .rest-day-row {
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
        min-height: 56px;
    }

    .rest-day-row__icon {
        width: 32px;
        height: 32px;
    }

    .rest-day-row .glass-btn {
        min-height: 36px;
        min-width: 60px;
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
    }

    .rest-day-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.68rem;
    }

    .streak-display {
        gap: var(--space-xs);
    }

    .streak-count {
        font-size: 1.6rem;
    }

    .streak-fire {
        font-size: 1.2rem;
    }
}

/* ---- Glass Modal ---- */

.glass-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.glass-modal {
    width: min(90vw, 420px);
    max-height: min(90vh, 700px);
    overflow-y: auto;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: var(--space-xl);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-modal--wide {
    width: min(90vw, 480px);
}

.glass-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.glass-modal__header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.glass-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.glass-modal__close:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

.glass-modal--celebration .glass-modal__header {
    display: none;
}

/* ---- Delete session confirmation (dashboard recent sessions) ---- */
.glass-modal--delete-confirm {
    width: min(90vw, 380px);
}

.delete-confirm-body {
    margin: 0 0 var(--space-lg);
    text-align: left;
}

.delete-confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--glass-radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.delete-confirm-warning .mud-icon-root {
    color: var(--accent-yellow);
}

.delete-confirm-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.delete-confirm-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.delete-confirm-actions .glass-btn {
    flex: 1;
    min-width: 120px;
    min-height: 44px;
}

/* Recent session row: Edit/Delete buttons — touch-friendly on mobile */
.recent-session-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.recent-session-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    min-width: 36px;
    min-height: 36px;
}

@media (max-width: 600px) {
    .recent-session-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    .delete-confirm-actions {
        flex-direction: column;
    }

    .delete-confirm-actions .glass-btn {
        min-width: 100%;
        width: 100%;
    }
}

/* ---- Celebration Overlay ---- */

.celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.celebration-overlay__card {
    position: relative;
    background: rgba(12, 12, 30, 0.97);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: var(--shadow-glass);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

/* Theme: Achievement — gold glow */
.celebration-overlay--achievement .celebration-overlay__card {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15), 0 0 50px rgba(251, 191, 36, 0.12), var(--shadow-glass);
}

/* Theme: Streak — fire glow */
.celebration-overlay--streak .celebration-overlay__card {
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.15), 0 0 50px rgba(255, 107, 53, 0.12), var(--shadow-glass);
}

/* Theme: LevelUp — primary glow */
.celebration-overlay--levelup .celebration-overlay__card {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15), 0 0 50px rgba(0, 212, 255, 0.15), 0 0 100px rgba(0, 255, 136, 0.08), var(--shadow-glass);
}

/* Badge icon circle */
.celebration-overlay__badge {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    animation: bounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.celebration-overlay__badge--achievement {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08));
    border: 2px solid rgba(251, 191, 36, 0.4);
    color: var(--accent-yellow);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}

.celebration-overlay__badge--levelup {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 255, 136, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.4);
    color: var(--accent-blue);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

/* Eyebrow label */
.celebration-overlay__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.celebration-overlay__eyebrow--streak {
    color: var(--accent-orange);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

/* Main title for achievement */
.celebration-overlay__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    animation: countUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

/* Big number for streak / level */
.celebration-overlay__number {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.celebration-overlay__number--streak {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: streakNumberPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.celebration-overlay__number--levelup {
    font-size: 6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: streakNumberPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* Level transition "X → Y" */
.celebration-overlay__transition {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.04em;
}

/* Achievement description */
.celebration-overlay__description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.55;
    padding: 0 var(--space-sm);
}

/* Subtitle / motivational text */
.celebration-overlay__sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    font-style: italic;
}

/* Flame emojis */
.celebration-overlay__flames {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    user-select: none;
}

.celebration-overlay__flames .flame {
    display: inline-block;
    animation: flameDance 0.85s ease-in-out infinite alternate;
}

.celebration-overlay__flames .flame:nth-child(2) {
    animation-delay: 0.14s;
    animation-duration: 0.95s;
}

.celebration-overlay__flames .flame:nth-child(3) {
    animation-delay: 0.28s;
    animation-duration: 0.72s;
}

/* Stars scattered in background (level-up) */
.celebration-overlay__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.celebration-star {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    animation: starTwinkle 1.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.22s);
    top:  calc(8%  + var(--i) * 9%);
    left: calc(6%  + var(--i) * 9%);
    background: var(--accent-blue);
}

.celebration-star:nth-child(even) {
    background: var(--accent-green);
    width: 3px;
    height: 3px;
    left: calc(88% - var(--i) * 8%);
}

/* Auto-dismiss timer bar */
.celebration-overlay__timer {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.celebration-overlay__timer-bar {
    height: 100%;
    border-radius: 2px;
    animation: timerShrink linear forwards;
    animation-play-state: running;
}

.celebration-overlay--achievement .celebration-overlay__timer-bar {
    background: linear-gradient(90deg, var(--accent-yellow), rgba(251, 191, 36, 0.4));
}

.celebration-overlay--streak .celebration-overlay__timer-bar {
    background: var(--gradient-fire);
}

.celebration-overlay--levelup .celebration-overlay__timer-bar {
    background: var(--gradient-primary);
}

/* Dismiss button */
.celebration-overlay__dismiss {
    width: 100%;
    padding: 0.6rem var(--space-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

@media (max-width: 480px) {
    .celebration-overlay__card {
        padding: var(--space-xl) var(--space-md);
    }

    .celebration-overlay__number {
        font-size: 4.5rem;
    }

    .celebration-overlay__number--levelup {
        font-size: 5rem;
    }
}

/* ---- Celebration (workout logged) ---- */

.celebration-view {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    animation: celebrationPop 0.5s ease-out;
}

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

.celebration-view__icon {
    margin-bottom: var(--space-md);
}

.celebration-view__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg) 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.celebration-view__quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--space-sm) 0;
    padding: 0 var(--space-md);
}

.celebration-view__sub {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ---- Progress Ring ---- */

.progress-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-ring__svg {
    transform: rotate(-90deg);
}

.progress-ring__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
}

.progress-ring__fill {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring__center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring__percent {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1;
}

.progress-ring__label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ---- Streak ---- */

.streak-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.streak-fire {
    font-size: 1.5rem;
    animation: fireGlow 2s ease-in-out infinite alternate;
}

.streak-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Rest Day Button ---- */

.rest-day-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.rest-day-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

.rest-day-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rest-day-btn--active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.12);
}

.rest-day-btn--active:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--accent-purple);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.18);
}

/* ---- Rest Day Modal Rows ---- */

.rest-day-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--glass-radius-sm);
    background: var(--glass-bg);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.rest-day-row:hover {
    background: var(--glass-bg-hover);
}

.rest-day-row--active {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
}

.rest-day-row--workout:not(.rest-day-row--active) {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.12);
}

.rest-day-row__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.rest-day-row--active .rest-day-row__icon {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

.rest-day-row--workout .rest-day-row__icon {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.25);
    color: var(--accent-green);
}

/* ---- Badge Shelf ---- */

.badge-shelf {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.badge-shelf__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.badge-shelf__item:hover {
    transform: translateY(-3px);
}

.badge-shelf__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    transition: all var(--transition-base);
}

.badge-shelf__item--earned .badge-shelf__icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
}

.badge-shelf__item--locked .badge-shelf__icon {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-tertiary);
    opacity: 0.35;
}

.badge-shelf__name {
    font-size: 0.58rem;
    color: var(--text-secondary);
    text-align: center;
    width: 52px;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge-shelf__item--locked .badge-shelf__name {
    opacity: 0.35;
}

/* ---- Next Achievement ---- */

.next-achievement {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.next-achievement:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 107, 53, 0.25);
}

.next-achievement__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
    flex-shrink: 0;
}

/* ---- Achievement Badge ---- */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-md);
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    transition: all var(--transition-base);
}

.achievement-badge:hover {
    transform: translateY(-4px);
}

.achievement-badge__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--glass-border);
    transition: all var(--transition-base);
}

.achievement-badge--locked .achievement-badge__icon {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-tertiary);
    opacity: 0.4;
}

.achievement-badge--earned .achievement-badge__icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.achievement-badge__name {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.2;
    max-width: 80px;
}

.achievement-badge--locked .achievement-badge__name {
    opacity: 0.4;
}

.glass-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-badge--earned {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.glass-badge--locked {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-tertiary);
    border: 1px solid var(--glass-border);
}

/* ---- Hero Stats Strip ---- */

.hero-stats__row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.hero-stat__label {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.hero-stat__value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
}

.hero-stat__sub {
    font-size: 0.68rem;
    color: var(--text-tertiary);
}

.hero-stat-divider {
    width: 1px;
    height: 44px;
    background: var(--glass-border);
    flex-shrink: 0;
    align-self: center;
}

.hero-stat--xp {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 700px) {
    .hero-stats__row {
        gap: var(--space-md);
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat--xp {
        width: 100%;
        flex-basis: 100%;
    }
}

/* ---- XP / Level Bar ---- */

.xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 0 4px 4px 0;
}

/* ---- Quote Card ---- */

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

.quote-card__text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

.quote-card__text::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    top: -1.2rem;
    left: -1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    font-style: normal;
}

/* ---- Auth Pages ---- */

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

.auth-card {
    width: min(95vw, 440px);
}

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

.auth-card__logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.auth-card__logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.auth-card .mud-input-control {
    margin-bottom: var(--space-md);
}

.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.auth-card__link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-card__link a {
    color: var(--accent-blue);
    text-decoration: none;
}

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

/* ---- Password strength UI ---- */
.password-wrapper {
    position: relative;
}
.password-wrapper .glass-input {
    padding-right: 2.75rem;
}
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}
.password-toggle:hover { color: var(--text-primary); }

.pw-strength-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-label {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.pw-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}
.pw-req-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.775rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}
.pw-req-icon {
    font-size: 14px !important;
    transition: color var(--transition-fast);
}
.pw-req-item--met {
    color: var(--accent-green);
}
.pw-req-item--met .pw-req-icon {
    color: var(--accent-green);
}

.pw-match-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.775rem;
    margin-top: 5px;
    transition: color var(--transition-fast);
}

[data-theme="light"] .password-toggle { color: var(--text-secondary); }
[data-theme="light"] .pw-strength-bar { background: rgba(0,0,0,0.08); }

/* ---- Duplicate-email notice ---- */
.duplicate-email-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--glass-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.duplicate-email-notice__icon {
    color: var(--accent-blue);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.duplicate-email-notice strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}
.duplicate-email-notice__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ---- Session History ---- */

/* ---- History Stats Strip ---- */

/* ---- WHOOP-style Ring Metrics ---- */

.ring-stats {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--glass-radius);
    margin-bottom: var(--space-xl);
}

.ring-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.ring-stat__svg {
    width: 96px;
    height: 96px;
}

.ring-stat__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 7;
}

.ring-stat__fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-stat__center {
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-stat__value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.ring-stat__label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    text-align: center;
}

/* keep old classes harmless if referenced elsewhere */
.history-stats { display: none; }
.history-stat-divider { display: none; }

@media (max-width: 480px) {
    .ring-stats {
        padding: var(--space-xl) var(--space-md) var(--space-md);
    }
    .ring-stat__svg {
        width: 76px;
        height: 76px;
    }
    .ring-stat__center {
        width: 76px;
        height: 76px;
    }
    .ring-stat__value {
        font-size: 1.2rem;
    }
}

/* ---- Gradient number classes (per exercise color) ---- */

.gradient-num--blue {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--orange {
    background: linear-gradient(135deg, #ff6b35, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--purple {
    background: linear-gradient(135deg, #a855f7, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--green {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--red {
    background: linear-gradient(135deg, #ef4444, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--pink {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--teal {
    background: linear-gradient(135deg, #14b8a6, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--indigo {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--rose {
    background: linear-gradient(135deg, #f43f5e, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-num--yellow {
    background: linear-gradient(135deg, #eab308, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- History Filter Bar ---- */

.history-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.history-filter-bar::-webkit-scrollbar {
    display: none;
}

.history-filter-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.38rem 0.9rem 0.38rem 0.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.history-filter-pill:first-child {
    padding: 0.38rem 1rem;
}

.history-filter-pill:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

.history-filter-pill--active {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--accent-blue);
    font-weight: 700;
}

.history-filter-pill__icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* ---- History Day Section (no card wrapper — editorial style) ---- */

.history-day {
    margin-bottom: var(--space-2xl);
}

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

.history-day__header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-day__label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-day__context {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* old cal classes — no longer rendered */
.history-day__cal { display: none; }
.history-day__day-num { display: none; }
.history-day__month-str { display: none; }
.history-day__info { display: none; }
.history-day__cal-detail { display: none; }

.history-day__pill {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ---- Session Cards (modern flat design) ---- */

.session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-lg);
    border-radius: var(--glass-radius);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 2px solid var(--item-accent, var(--accent-blue));
    background: rgba(255, 255, 255, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.session-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    border-left-color: var(--item-accent, var(--accent-blue));
}

/* Old stat panel — no longer used */
.session-card__stat {
    display: none;
}

/* Old body wrapper — removed from HTML */
.session-card__body {
    display: contents;
}

.session-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.session-card__type {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.session-card__time {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.session-card__notes {
    font-size: 0.74rem;
    color: var(--text-tertiary);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.session-card__count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 1px;
}

.session-card__num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
}

.session-card__unit {
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    text-align: right;
}

.session-card__actions {
    display: flex;
    gap: var(--space-xs);
    opacity: 0;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.session-card:hover .session-card__actions {
    opacity: 1;
}

.session-card--editing {
    display: block;
    border-left-color: var(--accent-blue);
    background: var(--glass-bg-hover);
    padding: var(--space-md) var(--space-lg);
}

/* Edit form */

.session-edit-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.session-edit-form__row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.session-edit-form__count-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.session-edit-form__unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.session-edit-form .glass-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

.session-edit-form__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* Small icon button variant */

.glass-btn--icon-sm {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Extra stat-card__icon color variants for custom exercise types */

.stat-card__icon--red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.stat-card__icon--teal {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.stat-card__icon--indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.stat-card__icon--rose {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.stat-card__icon--yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}

@media (max-width: 480px) {
    .session-card {
        gap: var(--space-sm);
        padding: 12px var(--space-md);
    }
    .session-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .session-card__num {
        font-size: 1.7rem;
    }
    .history-day__label {
        font-size: 0.82rem;
    }
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- MudBlazor Overrides ---- */

/* Force icon color directly — MudBlazor renders SVG icons with .mud-svg-icon.
   Target that class to guarantee correct fill via currentColor. */
.mud-svg-icon {
    color: rgba(255, 255, 255, 0.70) !important;
}

/* Icons inside colored containers should inherit that container's accent color */
.stat-card__icon .mud-svg-icon,
.badge-shelf__icon .mud-svg-icon,
.achievement-badge__icon .mud-svg-icon,
.next-achievement__icon .mud-svg-icon {
    color: inherit !important;
}

[data-theme="light"] .mud-svg-icon {
    color: rgba(10, 12, 40, 0.54) !important;
}

[data-theme="light"] .stat-card__icon .mud-svg-icon,
[data-theme="light"] .badge-shelf__icon .mud-svg-icon,
[data-theme="light"] .achievement-badge__icon .mud-svg-icon,
[data-theme="light"] .next-achievement__icon .mud-svg-icon {
    color: inherit !important;
}

.mud-theme-dark {
    --mud-palette-surface: rgba(15, 15, 35, 0.6) !important;
    --mud-palette-background: transparent !important;
    --mud-palette-background-grey: transparent !important;
    --mud-palette-appbar-background: transparent !important;
    --mud-palette-drawer-background: rgba(10, 10, 26, 0.95) !important;
    --mud-palette-primary: #00d4ff !important;
    --mud-palette-secondary: #00ff88 !important;
    --mud-palette-text-primary: rgba(255, 255, 255, 0.92) !important;
    --mud-palette-text-secondary: rgba(255, 255, 255, 0.55) !important;
}

.mud-input.mud-input-underline::before,
.mud-input.mud-input-underline::after {
    border-color: var(--glass-border) !important;
}

.mud-input-control .mud-input-label {
    color: var(--text-secondary) !important;
}

.mud-input {
    color: var(--text-primary) !important;
}

.mud-dialog .mud-dialog-content {
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(40px);
}

.mud-snackbar {
    backdrop-filter: blur(20px) !important;
}

.mud-table {
    background: transparent !important;
}

.mud-table .mud-table-cell {
    border-color: var(--glass-border) !important;
}

/* ============================================
   Landing Page
   ============================================ */

/* ---- Hero ---- */

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.18);
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xl);
    width: fit-content;
}

.landing-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.landing-hero__title--gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

.landing-hero__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.landing-hero__visual {
    position: relative;
}

.landing-cta-primary {
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}

.landing-cta-primary:hover {
    box-shadow: 0 8px 36px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ---- Word Rotation (CSS-only) ---- */

.landing-rotate-words {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.3em;
}

.landing-rotate-words span {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    white-space: nowrap;
    animation: wordRotate 12s ease-in-out infinite;
}

.landing-rotate-words span:first-child {
    position: relative;
}

.landing-rotate-words span:nth-child(1) { animation-delay: 0s; }
.landing-rotate-words span:nth-child(2) { animation-delay: 3s; }
.landing-rotate-words span:nth-child(3) { animation-delay: 6s; }
.landing-rotate-words span:nth-child(4) { animation-delay: 9s; }

/* ---- Preview Animations ---- */

.landing-count-in {
    animation: countIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.landing-xp-fill {
    animation: xpFillIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
    width: 0;
}

/* ---- Dashboard Preview ---- */

.landing-preview {
    background: rgba(15, 15, 35, 0.75);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45),
                0 0 80px rgba(0, 212, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.landing-preview--float {
    animation: previewFloat 6s ease-in-out infinite;
}

.landing-preview__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.landing-preview__title {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-preview__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.landing-preview__dot--red { background: #ff5f57; }
.landing-preview__dot--yellow { background: #febc2e; }
.landing-preview__dot--green { background: #28c840; }

.landing-preview__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-preview__greeting {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.landing-preview__stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
}

.landing-preview__stat-box {
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-xs);
    padding: 0.5rem 0.4rem;
}

.landing-preview__xp {
    padding: 0;
}

.landing-preview__exercises {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-preview__ex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-xs);
    padding: 0.4rem 0.6rem;
}

.landing-preview__ex-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-preview__ex-bar {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.landing-preview__ex-bar > div {
    height: 100%;
    border-radius: 2px;
}

.landing-preview__achievements {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding-top: 0.25rem;
}

.landing-preview__badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid;
    transition: transform 0.3s ease;
}

.landing-preview__badge-icon:hover {
    transform: scale(1.15);
}

.landing-preview__badge-icon--earned {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 255, 136, 0.08));
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--accent-blue);
}

.landing-preview__badge-icon--locked {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--glass-border);
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* ---- Value Props Bar ---- */

.landing-values {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.landing-values__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.landing-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.landing-value strong {
    display: block;
    font-weight: 700;
}

.landing-value .text-secondary {
    font-size: 0.8rem;
}

.landing-value__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

/* ---- Features (row layout) ---- */

.landing-features {
    padding: var(--space-2xl) 0;
}

.landing-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.01em;
}

.landing-feature-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 720px;
    margin: 0 auto;
}

.landing-feature-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--glass-radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.landing-feature-row:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.landing-feature-row__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid;
    transition: transform 0.3s ease;
}

.landing-feature-row:hover .landing-feature-row__icon {
    transform: scale(1.08);
}

.landing-feature-row__icon--blue {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-blue);
    border-color: rgba(0, 212, 255, 0.2);
}

.landing-feature-row__icon--green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.2);
}

.landing-feature-row__icon--orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    border-color: rgba(255, 107, 53, 0.2);
}

.landing-feature-row__icon--purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.2);
}

.landing-feature-row__icon--pink {
    background: rgba(244, 114, 182, 0.1);
    color: var(--accent-pink);
    border-color: rgba(244, 114, 182, 0.2);
}

.landing-feature-row__text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.landing-feature-row__text p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- How It Works ---- */

.landing-how-it-works {
    padding: var(--space-2xl) 0;
}

.landing-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.landing-step {
    flex: 1;
    text-align: center;
    padding: 0 var(--space-md);
}

.landing-step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.15));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-blue);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    transition: all 0.3s ease;
}

.landing-step:hover .landing-step__number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.landing-step h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.landing-step p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.landing-step__connector {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.2));
    border-radius: 1px;
    margin-top: 23px;
    flex-shrink: 0;
}

/* ---- Final CTA ---- */

.landing-final-cta {
    padding: var(--space-2xl) 0;
}

.landing-final-cta__card {
    text-align: center;
    padding: 4rem var(--space-xl);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.04));
    border-color: rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.landing-final-cta__glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-final-cta__card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.landing-final-cta__card p {
    margin: 0 auto;
}

.landing-final-cta__buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.landing-final-cta__signin {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    border: none !important;
    background: none !important;
    padding: 0.5rem 1rem;
    box-shadow: none !important;
}

.landing-final-cta__signin:hover {
    color: var(--accent-blue) !important;
    transform: none !important;
}

/* ---- Hero Trust Line ---- */

.landing-hero__trust {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: var(--space-lg);
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

/* ---- Hero Floating Badges ---- */

.landing-hero__float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--glass-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}

.landing-hero__float-badge-text {
    font-size: 0.72rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.landing-hero__float-badge-text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.landing-hero__float-badge-text small {
    color: var(--text-tertiary);
    font-size: 0.65rem;
}

.landing-hero__float-badge--tl {
    top: -16px;
    right: 12px;
    animation: badgeFloat1 4.5s ease-in-out infinite;
}

.landing-hero__float-badge--br {
    bottom: 28px;
    left: -12px;
    animation: badgeFloat2 5.5s ease-in-out infinite;
}

/* ---- Stats Bar ---- */

.landing-stats-bar {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-2xl);
}

.landing-stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.landing-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.landing-stat-pill__number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
}

.landing-stat-pill__label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-align: center;
}

.landing-stat-pill__divider {
    width: 1px;
    height: 44px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ---- Section Eyebrow ---- */

.landing-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    text-align: center;
    margin-bottom: var(--space-xs);
    margin-top: 0;
}

/* ---- Features Card Grid ---- */

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.landing-feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: var(--space-xl) var(--space-lg);
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.landing-feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-hover);
}

.landing-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--glass-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-base);
}

.landing-feature-card:hover .landing-feature-card__icon {
    transform: scale(1.1);
}

.landing-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.landing-feature-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Final CTA enhancements ---- */

.landing-final-cta__icon-wrap {
    margin-bottom: var(--space-md);
}

.landing-final-cta__big-icon {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-final-cta__note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* ---- Footer ---- */

.landing-footer {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-2xl);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-xl);
}

.landing-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

/* ---- Landing Responsive ---- */

@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: var(--space-xl);
        text-align: center;
        padding: var(--space-xl) 0;
    }

    .landing-hero__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero__cta {
        justify-content: center;
    }

    .landing-hero__visual {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }

    .landing-hero__float-badge {
        display: none;
    }

    .landing-hero__trust {
        text-align: center;
    }

    .landing-values__grid {
        gap: var(--space-lg);
    }

    .landing-feature-row {
        padding: var(--space-md);
    }

    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-steps {
        flex-direction: column;
        align-items: center;
    }

    .landing-step__connector {
        width: 2px;
        height: 28px;
        background: linear-gradient(180deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.2));
        margin: 0;
    }

    .landing-stats-bar__inner {
        gap: var(--space-xl);
    }

    .landing-stat-pill__divider {
        height: 32px;
    }
}

@media (max-width: 600px) {
    .landing-values__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .landing-preview__stats-row {
        gap: 0.4rem;
    }

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

    .landing-stats-bar__inner {
        gap: var(--space-lg);
    }

    .landing-stat-pill__divider {
        display: none;
    }

    .landing-stats-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

/* ---- Theme Toggle Button ---- */

.theme-toggle-btn {
    padding: 0.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
}

/* Default (dark mode): show sun icon, hide moon */
.theme-icon-light { display: inline-flex; }
.theme-icon-dark  { display: none; }
.theme-label-light { display: inline; }
.theme-label-dark  { display: none; }

/* Light mode: show moon icon, hide sun */
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: inline-flex; }
[data-theme="light"] .theme-label-light { display: none; }
[data-theme="light"] .theme-label-dark  { display: inline; }

/* ============================================
   Light Mode Theme
   ============================================ */

[data-theme="light"] {
    --bg-deep: #e8edf6;
    --bg-surface: #f0f4fb;
    --bg-gradient: linear-gradient(135deg, #e4ecf8 0%, #edf2fb 40%, #eaf0f9 70%, #e2eaf6 100%);

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-bg-active: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 40, 0.10);
    --glass-border-hover: rgba(0, 0, 40, 0.20);
    --glass-highlight: rgba(255, 255, 255, 0.95);

    /* Richer text contrast */
    --text-primary: rgba(8, 10, 36, 0.92);
    --text-secondary: rgba(8, 10, 36, 0.62);
    --text-tertiary: rgba(8, 10, 36, 0.42);

    --shadow-glass: 0 4px 24px rgba(0, 0, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --shadow-glass-hover: 0 10px 36px rgba(0, 0, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 40, 0.07);
}

[data-theme="light"] body {
    background: var(--bg-gradient);
}

/* Pill nav stays dark in light mode — it floats above the page */
[data-theme="light"] .pill-nav {
    background: rgba(18, 18, 38, 0.90);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 24px rgba(0, 0, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .glass-appbar {
    background: rgba(245, 249, 255, 0.92);
    border-bottom-color: rgba(0, 0, 40, 0.10);
    box-shadow: 0 1px 12px rgba(0, 0, 60, 0.07);
}

[data-theme="light"] .glass-appbar__nav {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 60, 0.14);
    box-shadow: 0 2px 12px rgba(0, 0, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .glass-appbar__link {
    color: rgba(8, 10, 36, 0.58);
}

[data-theme="light"] .glass-appbar__link:hover {
    color: rgba(8, 10, 36, 0.90);
    background: rgba(0, 0, 60, 0.06);
}

[data-theme="light"] .glass-appbar__link.active {
    background: rgba(0, 90, 200, 0.10);
    color: #0055c8;
    font-weight: 600;
}

[data-theme="light"] .glass-appbar__hamburger {
    color: rgba(8, 10, 36, 0.65);
}

[data-theme="light"] .glass-appbar__hamburger:hover {
    color: rgba(8, 10, 36, 0.90);
    background: rgba(0, 0, 60, 0.07);
}

[data-theme="light"] .mobile-nav__link.active {
    color: #0055c8;
}

[data-theme="light"] .mobile-nav__link:hover {
    background: rgba(0, 0, 60, 0.06);
    color: rgba(8, 10, 36, 0.92);
}

[data-theme="light"] .mobile-nav__divider {
    background: rgba(0, 0, 60, 0.12);
}

[data-theme="light"] .glass-input {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-primary);
}

[data-theme="light"] .glass-input:focus {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .glass-input::placeholder {
    color: var(--text-tertiary);
}

[data-theme="light"] .glass-input option {
    background: #f4f7fd;
    color: rgba(10, 12, 40, 0.90);
}

[data-theme="light"] .glass-card--transparent {
    background: rgba(255, 255, 255, 0.30);
}

[data-theme="light"] .glass-card::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 40, 0.08) 20%,
        rgba(0, 0, 40, 0.12) 50%,
        rgba(0, 0, 40, 0.08) 80%,
        transparent 100%);
}

[data-theme="light"] .mobile-nav {
    background: rgba(238, 242, 249, 0.97);
}

[data-theme="light"] .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .glass-modal {
    background: rgba(244, 247, 253, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

[data-theme="light"] .xp-bar {
    background: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .progress-ring__track {
    stroke: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rest-day-btn {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .badge-shelf {
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

[data-theme="light"] .badge-shelf__item--locked .badge-shelf__icon,
[data-theme="light"] .achievement-badge--locked .achievement-badge__icon {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-badge--locked {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-tertiary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.20);
}

[data-theme="light"] .bg-orb {
    opacity: 0.12;
}

[data-theme="light"] .bg-orb--orange {
    opacity: 0.07;
}

[data-theme="light"] .landing-preview {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .landing-preview__ex-bar {
    background: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .mud-dialog .mud-dialog-content {
    background: rgba(244, 247, 253, 0.98) !important;
}

[data-theme="light"] .mud-theme-dark,
[data-theme="light"] .mud-theme-light {
    --mud-palette-surface: rgba(255, 255, 255, 0.85) !important;
    --mud-palette-background: transparent !important;
    --mud-palette-background-grey: transparent !important;
    --mud-palette-appbar-background: transparent !important;
    --mud-palette-drawer-background: rgba(238, 242, 249, 0.97) !important;
    --mud-palette-text-primary: rgba(10, 12, 40, 0.90) !important;
    --mud-palette-text-secondary: rgba(10, 12, 40, 0.55) !important;
}

[data-theme="light"] {
    --mud-palette-text-primary: rgba(10, 12, 40, 0.90);
    --mud-palette-text-secondary: rgba(10, 12, 40, 0.55);
    --mud-palette-text-disabled: rgba(10, 12, 40, 0.26);
    --mud-palette-action-default: rgba(10, 12, 40, 0.54);
    --mud-palette-action-disabled: rgba(10, 12, 40, 0.26);
    --mud-palette-action-disabled-background: rgba(10, 12, 40, 0.12);
}

[data-theme="light"] .mud-input {
    color: var(--text-primary) !important;
}

[data-theme="light"] .mud-input-control .mud-input-label {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .mud-input.mud-input-underline::before,
[data-theme="light"] .mud-input.mud-input-underline::after {
    border-color: var(--glass-border) !important;
}

[data-theme="light"] .mud-switch-track {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .ring-stats {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 40, 0.10);
}

[data-theme="light"] .ring-stat__track {
    stroke: rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .history-day__cal {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(0, 0, 40, 0.12);
}

[data-theme="light"] .session-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 40, 0.09);
}

[data-theme="light"] .session-card:hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 60, 0.08);
}

[data-theme="light"] .history-filter-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 40, 0.12);
}



[data-theme="light"] .history-filter-pill--active {
    background: rgba(0, 180, 255, 0.10);
    border-color: rgba(0, 180, 255, 0.30);
    color: var(--accent-blue);
}

[data-theme="light"] .history-day__pill {
    background: rgba(0, 180, 100, 0.08);
    border-color: rgba(0, 180, 100, 0.20);
}

[data-theme="light"] .rest-day-row {
    background: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .next-achievement {
    background: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .next-achievement:hover {
    background: rgba(255, 255, 255, 0.80);
}

[data-theme="light"] select.glass-input {
    color-scheme: light;
}

/* Cards: more visible depth */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 40, 0.10);
    box-shadow: 0 2px 12px rgba(0, 0, 60, 0.07), 0 1px 3px rgba(0, 0, 40, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .glass-card--hoverable:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 40, 0.18);
    box-shadow: 0 8px 28px rgba(0, 0, 60, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Primary buttons: clearly selected in light mode */
[data-theme="light"] .glass-btn--primary {
    background: linear-gradient(135deg, #00b4d8, #00c896);
    border-color: #00a0c0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.35);
}

[data-theme="light"] .glass-btn--primary:hover {
    background: linear-gradient(135deg, #009dbf, #00b080);
    border-color: #008fb0;
    box-shadow: 0 3px 12px rgba(0, 180, 216, 0.50);
}

/* Regular buttons */
[data-theme="light"] .glass-btn {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(0, 0, 40, 0.12);
    color: var(--text-primary);
}

[data-theme="light"] .glass-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 40, 0.22);
}

/* Icon buttons in the appbar need more definition on the near-white bar */
[data-theme="light"] .glass-appbar .glass-btn,
[data-theme="light"] .glass-appbar .glass-btn--icon {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(0, 0, 60, 0.16);
    box-shadow: 0 1px 4px rgba(0, 0, 60, 0.08);
    color: rgba(8, 10, 36, 0.72);
}

[data-theme="light"] .glass-appbar .glass-btn:hover,
[data-theme="light"] .glass-appbar .glass-btn--icon:hover {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 60, 0.24);
    color: rgba(8, 10, 36, 0.92);
}

/* Progress ring track: visible */
[data-theme="light"] .progress-ring__track {
    stroke: rgba(0, 0, 0, 0.12);
}

/* Hero stat divider: visible */
[data-theme="light"] .hero-stat-divider {
    background: rgba(0, 0, 0, 0.12);
}

/* History day header separator in light mode handled above */

/* Landing page borders */
[data-theme="light"] .landing-values {
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .landing-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .landing-stats-bar {
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .landing-stat-pill__divider {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .landing-hero__float-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .landing-feature-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .landing-feature-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ============================================
   Landing Page v2  (lp-* prefix)
   Premium redesign — dot grid, big type,
   browser mockup, feature sections, bento
   ============================================ */

/* ---- Buttons ---- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.2, 1, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.2, 1, 0.2, 1),
                background 0.2s ease,
                border-color 0.2s ease;
    white-space: nowrap;
}

.lp-btn--primary {
    background: #ffffff;
    color: #09090f;
}

.lp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18);
    color: #09090f;
}

.lp-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.lp-btn--large {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

/* ---- Eyebrow ---- */

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-accent-blue, var(--accent-blue));
    text-decoration: none;
}

.lp-eyebrow--pill {
    padding: 0.3rem 0.9rem 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--lp-eyebrow-pill-bg, rgba(0, 212, 255, 0.06));
    border: 1px solid var(--lp-eyebrow-pill-border, rgba(0, 212, 255, 0.2));
    margin-bottom: 1.75rem;
}

.lp-eyebrow--section {
    margin-bottom: 0.75rem;
}

/* ---- Hero ---- */

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
    text-align: center;
}

/* Dot grid */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.lp-hero__orb {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background: radial-gradient(ellipse at center,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(0, 255, 136, 0.05) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lp-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.lp-hero__headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.lp-hero__headline--accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero__sub {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.52);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.lp-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ---- Browser Mockup ---- */

.lp-hero__mockup {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

.lp-browser {
    background: rgba(9, 9, 20, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
}

/* Specular top edge — the "Linear signature" */
.lp-browser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    z-index: 1;
    pointer-events: none;
}

.lp-browser__chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lp-browser__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lp-browser__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.lp-browser__dot--red    { background: #ff5f57; }
.lp-browser__dot--yellow { background: #febc2e; }
.lp-browser__dot--green  { background: #28c840; }

.lp-browser__url {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.22rem 0.9rem;
    max-width: 280px;
    margin: 0 auto;
}

.lp-browser__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* ---- Dashboard inside browser ---- */

.lp-db-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1rem;
    gap: 0;
}

.lp-db-stat {
    flex: 1;
    text-align: center;
}

.lp-db-stat__val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.lp-db-stat__label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.15rem;
}

.lp-db-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.lp-db-stat--xp {
    min-width: 130px;
}

.lp-db-xp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.lp-db-xp-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    overflow: hidden;
}

.lp-db-xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.lp-db-exercises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lp-db-ex {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.lp-db-ex__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-db-ex__info {
    flex: 1;
    min-width: 0;
}

.lp-db-ex__name {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-db-ex__bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.lp-db-ex__bar > div {
    height: 100%;
    border-radius: 2px;
}

.lp-db-ex__count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.lp-db-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.lp-db-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-db-badge--locked {
    opacity: 0.35;
    color: var(--text-tertiary);
}

.lp-db-badge-more {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-left: auto;
    white-space: nowrap;
}

/* ---- Floating Notifications ---- */

.lp-notif {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.lp-notif__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lp-notif__text strong {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lp-notif__text small {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.lp-notif--streak {
    top: 24px;
    right: -16px;
    animation: badgeFloat1 4.5s ease-in-out infinite;
}

.lp-notif--achievement {
    bottom: 32px;
    left: -16px;
    animation: badgeFloat2 5.5s ease-in-out infinite;
}

/* ---- Stats Strip ---- */

.lp-stats-strip {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0;
}

.lp-stats-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.lp-stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.lp-stat-big__number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.lp-stat-big__number em {
    font-style: normal;
    font-size: 55%;
    opacity: 0.65;
}

.lp-stat-big__label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    text-align: center;
}

.lp-stats-strip__div {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* ---- Feature Sections ---- */

.lp-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-feature--reverse {
    direction: rtl;
}

.lp-feature--reverse > * {
    direction: ltr;
}

.lp-feature__text {
    display: flex;
    flex-direction: column;
}

.lp-feature__headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.lp-feature__body {
    font-size: 1.03rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 1.75rem;
}

.lp-feature__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-feature__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
}

.lp-feature__list .material-icons-round {
    font-size: 1rem;
    color: var(--lp-accent-green, var(--accent-green));
    flex-shrink: 0;
}

/* ---- Mock Cards (feature visuals) ---- */

.lp-mock-card {
    background: rgba(9, 9, 20, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

/* Specular top edge */
.lp-mock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.lp-mock-card__header {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ---- Log Mock ---- */

.lp-mock-log__types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lp-mock-type {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: default;
    font-family: inherit;
}

.lp-mock-type--active {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.28);
    color: var(--accent-blue);
}

.lp-mock-log__counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 1.25rem;
}

.lp-mock-counter-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    font-family: inherit;
}

.lp-mock-counter-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -0.04em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.lp-mock-log__presets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lp-mock-preset {
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: default;
    font-family: inherit;
}

.lp-mock-preset--active {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.28);
    color: var(--accent-blue);
    font-weight: 600;
}

.lp-mock-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--gradient-primary);
    border: none;
    color: #09090f;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: default;
    font-family: inherit;
    letter-spacing: -0.01em;
}

/* ---- XP Mock ---- */

.lp-mock-xp {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lp-mock-xp__ring-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}

.lp-mock-xp__ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.lp-mock-xp__ring-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.lp-mock-xp__ring-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.lp-mock-xp__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-mock-xp__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.lp-mock-xp__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}

.lp-mock-xp__ex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lp-mock-xp__ex-row:last-child {
    border-bottom: none;
}

.lp-mock-xp__mult {
    font-weight: 700;
    font-size: 0.75rem;
}

/* ---- Streak Mock ---- */

.lp-mock-streak__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lp-mock-streak__labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    text-align: center;
}

.lp-mock-streak__labels span {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.lp-mock-streak__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.85rem;
}

.lp-streak-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-streak-cell--active {
    background: linear-gradient(135deg, #ff6b35, #fbbf24);
    border-color: transparent;
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.4);
}

.lp-streak-cell--old {
    background: rgba(255, 107, 53, 0.22);
    border-color: rgba(255, 107, 53, 0.12);
}

.lp-streak-cell--rest {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.2);
}

.lp-mock-streak__legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ---- Bento Grid ---- */

.lp-bento {
    padding: 6rem 0;
}

.lp-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 0;
}

.lp-bento__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.lp-bento-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Specular top highlight */
.lp-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.lp-bento-card:hover {
    background: rgba(255, 255, 255, 0.042);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.lp-bento-card--lg {
    grid-column: span 2;
}

.lp-bento-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lp-bento-card__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.lp-bento-card__body {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.65;
    margin: 0;
}

.lp-bento-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.lp-bento-badge {
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.lp-bento-badge--locked {
    opacity: 0.35;
    color: var(--text-tertiary);
}

/* ---- Final CTA ---- */

.lp-cta {
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0 0 4rem;
}

/* Specular top edge */
.lp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.lp-cta__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.lp-cta__orb--blue {
    width: 500px;
    height: 300px;
    background: rgba(0, 212, 255, 0.08);
    top: -80px;
    left: 10%;
}

.lp-cta__orb--green {
    width: 400px;
    height: 260px;
    background: rgba(0, 255, 136, 0.06);
    top: -40px;
    right: 12%;
}

.lp-cta__content {
    position: relative;
    z-index: 1;
}

.lp-cta__headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.68) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.lp-cta__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.lp-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- Footer ---- */

.lp-footer {
    text-align: center;
    padding: 1.75rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lp-footer__name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-footer__copy {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
    .lp-hero {
        padding: 4rem 0 2.5rem;
    }

    .lp-notif {
        display: none;
    }

    .lp-feature {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }

    .lp-feature--reverse {
        direction: ltr;
    }

    .lp-feature__visual {
        order: -1;
    }

    .lp-bento__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-bento-card--lg {
        grid-column: span 2;
    }

    .lp-stats-strip__inner {
        gap: 2.5rem;
    }

    .lp-stats-strip__div {
        height: 36px;
    }
}

@media (max-width: 680px) {
    .lp-hero__headline {
        font-size: clamp(2.6rem, 10vw, 3.5rem);
    }

    .lp-hero__mockup {
        overflow: hidden;
    }

    .lp-browser__body {
        padding: 0.85rem 1rem 1rem;
    }

    .lp-db-exercises {
        grid-template-columns: 1fr;
    }

    .lp-db-stat--xp {
        display: none;
    }

    .lp-stats-strip__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .lp-stats-strip__div {
        display: none;
    }

    .lp-bento__grid {
        grid-template-columns: 1fr;
    }

    .lp-bento-card--lg {
        grid-column: span 1;
    }

    .lp-cta {
        padding: 4rem 1.25rem;
        border-radius: 16px;
    }

    .lp-feature {
        padding: 3rem 0;
    }

    .lp-feature__headline {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .lp-mock-log__types {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Landing Page v2 — Light Mode Overrides
   ============================================ */

/* Scope darker accent colours to the whole landing page in light mode.
   This fixes every element that inherits --lp-accent-* or uses var(--accent-*)
   inside .lp-browser / .lp-mock-card, including inline-style references. */
[data-theme="light"] body {
    --lp-accent-blue:          #0073a8;
    --lp-accent-green:         #008a45;
    --lp-eyebrow-pill-bg:      rgba(0, 115, 168, 0.08);
    --lp-eyebrow-pill-border:  rgba(0, 115, 168, 0.25);
}

/* Propagate darker accents into the mock containers so that
   any inline style="color: var(--accent-blue)" also gets the light values */
[data-theme="light"] .lp-browser,
[data-theme="light"] .lp-mock-card {
    --accent-blue:   #0073a8;
    --accent-green:  #008a45;
    --accent-orange: #d95a1e;
    --accent-purple: #7c28e8;
}

/* Hero dot grid — swap white dots for dark dots */
[data-theme="light"] .lp-hero::before {
    background-image: radial-gradient(circle, rgba(0, 0, 60, 0.07) 1px, transparent 1px);
}

[data-theme="light"] .lp-hero__orb {
    background: radial-gradient(ellipse at center,
        rgba(0, 150, 200, 0.07) 0%,
        rgba(0, 180, 100, 0.04) 40%,
        transparent 70%);
}

/* Hero headline — white gradient → dark gradient */
[data-theme="light"] .lp-hero__headline {
    background: linear-gradient(180deg, #0a0a1e 0%, rgba(10, 10, 36, 0.70) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero sub text — was white 52%, now uses theme secondary */
[data-theme="light"] .lp-hero__sub {
    color: var(--text-secondary);
}

/* Buttons */
[data-theme="light"] .lp-btn--primary {
    background: #09090f;
    color: #ffffff;
}

[data-theme="light"] .lp-btn--primary:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    color: #ffffff;
}

[data-theme="light"] .lp-btn--ghost {
    background: rgba(0, 0, 40, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 40, 0.16);
}

[data-theme="light"] .lp-btn--ghost:hover {
    background: rgba(0, 0, 40, 0.09);
    border-color: rgba(0, 0, 40, 0.26);
    color: var(--text-primary);
}

/* Floating notification pills */
[data-theme="light"] .lp-notif {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 40, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Stats strip */
[data-theme="light"] .lp-stats-strip {
    border-top-color: rgba(0, 0, 40, 0.08);
    border-bottom-color: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-stats-strip__div {
    background: rgba(0, 0, 40, 0.10);
}

[data-theme="light"] .lp-stat-big__label {
    color: var(--text-secondary);
}

/* Feature sections */
[data-theme="light"] .lp-feature {
    border-bottom-color: rgba(0, 0, 40, 0.07);
}

[data-theme="light"] .lp-feature__body {
    color: var(--text-secondary);
}

[data-theme="light"] .lp-feature__list li {
    color: var(--text-secondary);
}

/* Bento grid cards */
[data-theme="light"] .lp-bento-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 40, 0.10);
    box-shadow: 0 2px 16px rgba(0, 0, 60, 0.06);
}

[data-theme="light"] .lp-bento-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

[data-theme="light"] .lp-bento-card:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 40, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 60, 0.10);
}

[data-theme="light"] .lp-bento-card__body {
    color: var(--text-secondary);
}

[data-theme="light"] .lp-bento-badge {
    background: rgba(0, 0, 40, 0.04);
    border-color: rgba(0, 0, 40, 0.10);
}

/* Final CTA */
[data-theme="light"] .lp-cta {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 40, 0.10);
    box-shadow: 0 2px 24px rgba(0, 0, 60, 0.07);
}

[data-theme="light"] .lp-cta::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

/* CTA headline — white gradient → dark gradient */
[data-theme="light"] .lp-cta__headline {
    background: linear-gradient(180deg, #0a0a1e 0%, rgba(10, 10, 36, 0.68) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .lp-cta__sub {
    color: var(--text-secondary);
}

/* Footer */
[data-theme="light"] .lp-footer {
    border-top-color: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-footer__copy {
    color: var(--text-tertiary);
}

/* Browser mockup */
[data-theme="light"] .lp-browser {
    background: rgba(248, 250, 255, 0.92);
    border-color: rgba(0, 0, 40, 0.12);
    box-shadow: 0 40px 100px rgba(0, 0, 60, 0.14), 0 0 0 1px rgba(0, 0, 40, 0.06);
}

[data-theme="light"] .lp-browser::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

[data-theme="light"] .lp-browser__chrome {
    background: rgba(255, 255, 255, 0.70);
    border-bottom-color: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-browser__url {
    background: rgba(0, 0, 40, 0.04);
    border-color: rgba(0, 0, 40, 0.08);
}

/* Dashboard stats panel inside browser */
[data-theme="light"] .lp-db-stats {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 40, 0.09);
}

[data-theme="light"] .lp-db-stat-div {
    background: rgba(0, 0, 40, 0.09);
}

[data-theme="light"] .lp-db-xp-bar {
    background: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-db-ex {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-db-ex__bar {
    background: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-db-badge {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 40, 0.09);
}

/* Mock cards (feature section visuals) */
[data-theme="light"] .lp-mock-card {
    background: rgba(248, 250, 255, 0.92);
    border-color: rgba(0, 0, 40, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 60, 0.12);
}

[data-theme="light"] .lp-mock-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

[data-theme="light"] .lp-mock-type {
    background: rgba(0, 0, 40, 0.04);
    border-color: rgba(0, 0, 40, 0.09);
}

[data-theme="light"] .lp-mock-counter-btn {
    background: rgba(0, 0, 40, 0.05);
    border-color: rgba(0, 0, 40, 0.12);
}

[data-theme="light"] .lp-mock-preset {
    background: rgba(0, 0, 40, 0.04);
    border-color: rgba(0, 0, 40, 0.09);
}

/* XP ring SVG track (overrides presentation attribute) */
[data-theme="light"] .lp-mock-xp__ring-wrap circle:first-child {
    stroke: rgba(0, 0, 40, 0.09);
}

[data-theme="light"] .lp-mock-xp__divider {
    background: rgba(0, 0, 40, 0.08);
}

[data-theme="light"] .lp-mock-xp__ex-row {
    border-bottom-color: rgba(0, 0, 40, 0.06);
}

/* Streak calendar cells */
[data-theme="light"] .lp-streak-cell {
    background: rgba(0, 0, 40, 0.06);
    border-color: rgba(0, 0, 40, 0.07);
}

/* ============================================
   History — Streak Calendar (hist-streak-*)
   ============================================ */

.hist-streak-card {
    margin-bottom: var(--space-xl);
}

.hist-streak-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hist-streak-header__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hist-streak-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hist-streak-val--current {
    color: var(--accent-orange);
}

.hist-streak-val--current span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.hist-streak-header__right {
    text-align: right;
}

.hist-streak-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

/* Calendar layout: day labels + scrollable grid */

.hist-streak-calendar {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    overflow: hidden;
}

.hist-streak-daylabels {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.hist-streak-daylabels span {
    height: 32px;
    display: flex;
    align-items: center;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: 28px;
}

.hist-streak-grid-scroll {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.hist-streak-grid-scroll::-webkit-scrollbar {
    height: 4px;
}

.hist-streak-grid-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hist-streak-grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.hist-streak-grid {
    display: grid;
    grid-template-rows: repeat(7, 32px);
    grid-auto-flow: column;
    grid-auto-columns: 32px;
    gap: 4px;
}

/* Month label row — sits above the grid, scrolls with it */

.hist-streak-month-row {
    display: flex;
    margin-bottom: 6px;
    height: 16px;
}

.hist-streak-month-cell {
    width: 32px;
    margin-right: 4px;
    flex-shrink: 0;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: visible;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hist-streak-month-cell:last-child {
    margin-right: 0;
}

/* Spacer in the day-label column that aligns Mon with the first grid row */

.hist-streak-daylabels__spacer {
    height: 18px; /* month-row (16px) + margin-bottom (6px) - flex gap (4px) */
    flex-shrink: 0;
}

/* ---- Cell (hsc = history streak cell) ---- */

.hsc {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
}

.hsc:hover {
    transform: scale(1.15);
    z-index: 2;
    position: relative;
}

/* Kept for any legacy references */
.hsc--active {
    background: linear-gradient(135deg, #ff6b35, #fbbf24);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Intensity levels — based on user's own volume percentiles */

.hsc--active-1 {
    background: rgba(255, 107, 53, 0.22);
    border-color: rgba(255, 107, 53, 0.3);
}

.hsc--active-2 {
    background: rgba(255, 107, 53, 0.48);
    border-color: rgba(255, 107, 53, 0.4);
}

.hsc--active-3 {
    background: rgba(255, 107, 53, 0.75);
    border-color: transparent;
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.25);
}

.hsc--active-4 {
    background: linear-gradient(135deg, #ff6b35, #fbbf24);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

/* Today marker — uses outline so it composes with box-shadow */

.hsc--today {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 1px;
    position: relative;
    z-index: 1;
}

/* Current streak — gold ring; variants restore glow for intense days */

.hsc--streak {
    box-shadow: 0 0 0 1.5px rgba(251, 191, 36, 0.7);
    position: relative;
    z-index: 1;
}

.hsc--active-3.hsc--streak {
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.25), 0 0 0 1.5px rgba(251, 191, 36, 0.7);
}

.hsc--active-4.hsc--streak {
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4), 0 0 0 1.5px rgba(251, 191, 36, 0.7);
}

.hsc--rest {
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(0, 212, 255, 0.25);
}

.hsc--future {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.03);
}

.hsc--sm {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

/* Legend */

.hist-streak-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hist-streak-legend-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.hist-streak-legend-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.15rem;
}

/* ---- Traditional month calendar grid (heatmap style) ---- */

.hist-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 38px));
    gap: 3px;
    margin-top: 0.25rem;
    justify-content: center;
}

.hist-cal-dow {
    text-align: center;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 0 6px;
}

.hist-cal-cell {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    overflow: hidden;
    transition: transform 0.12s ease;
}

.hist-cal-cell:hover {
    transform: scale(1.1);
    z-index: 2;
}

.hist-cal-day-num {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
    user-select: none;
}

/* Active cells: day number pops bright against the color fill */
.hist-cal-cell.hsc--active-1 .hist-cal-day-num,
.hist-cal-cell.hsc--active-2 .hist-cal-day-num,
.hist-cal-cell.hsc--active-3 .hist-cal-day-num,
.hist-cal-cell.hsc--active-4 .hist-cal-day-num {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Clickable past/current-month cells */
.hist-cal-cell:not(.hist-cal-cell--other-month):not(.hist-cal-cell--future) {
    cursor: pointer;
}

/* Selected day */
.hist-cal-cell--selected {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 1px;
    position: relative;
    z-index: 2;
}

/* Date filter badge between calendar and session list */
.hist-date-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: var(--space-md);
}

.hist-date-filter__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Other-month padding cells — invisible, no interaction */
.hist-cal-cell--other-month {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

.hist-cal-cell--other-month .hist-cal-day-num {
    color: var(--text-tertiary);
    opacity: 0.25;
}

/* Future days in the current month */
.hist-cal-cell--future {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.025);
}

.hist-cal-cell--future .hist-cal-day-num {
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* Calendar navigation row (between streak counts and best streak) */

.hist-streak-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hist-streak-nav__label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    min-width: 13ch;
    text-align: center;
    white-space: nowrap;
}

.hist-streak-nav__today {
    color: var(--accent-blue, #00d4ff);
    opacity: 0.8;
}

/* ---- Account Settings Layout ---- */

.settings-layout {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.settings-sidebar {
    width: 210px;
    flex-shrink: 0;
    padding: var(--space-sm);
}

.settings-content {
    flex: 1;
    min-width: 0;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 0.75rem;
    border-radius: var(--glass-radius-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    width: 100%;
}

.settings-nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
    text-decoration: none;
}

.settings-nav-link.active {
    color: var(--accent-blue);
    background: var(--glass-bg-active);
}

.settings-nav-link .material-icons-round {
    font-size: 1.1rem;
    opacity: 0.8;
}

.settings-nav-section {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.4;
    padding: 0.6rem 0.75rem 0.25rem;
}

.settings-nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-xs) 0;
}

/* ---- Glass Form Inputs ---- */

.glass-form-group {
    margin-bottom: var(--space-md);
}

.glass-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-xs);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    transition: all var(--transition-fast);
    outline: none;
    font-family: inherit;
}

.glass-input:focus {
    border-color: var(--accent-blue);
    background: var(--glass-bg-hover);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.glass-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.glass-input.invalid {
    border-color: var(--accent-red);
}

.glass-status-message {
    padding: 0.6rem 1rem;
    border-radius: var(--glass-radius-xs);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.glass-status-message--success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: var(--accent-green);
}

.glass-status-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .settings-layout {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
    }
}

/* Light theme overrides for settings */
[data-theme="light"] .settings-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .settings-nav-link.active {
    background: rgba(0, 100, 200, 0.08);
}

[data-theme="light"] .glass-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

[data-theme="light"] .glass-input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent-blue);
}

/* ============================================
   Light mode — Exercise history calendar fixes
   Dark mode is untouched; only [data-theme="light"]
   selectors below override the defaults.
   ============================================ */

/* Base cell: needs a visible tint and border on a light card */
[data-theme="light"] .hist-cal-cell {
    background: rgba(0, 0, 40, 0.05);
    border-color: rgba(0, 0, 40, 0.10);
}

/* Future days: barely-there so they feel disabled */
[data-theme="light"] .hist-cal-cell--future {
    background: rgba(0, 0, 40, 0.025);
    border-color: rgba(0, 0, 40, 0.07);
}

/* Intensity level 1: bump opacity so the orange reads on white */
[data-theme="light"] .hsc--active-1 {
    background: rgba(255, 107, 53, 0.30);
    border-color: rgba(255, 107, 53, 0.40);
}

/* Intensity level 2 */
[data-theme="light"] .hsc--active-2 {
    background: rgba(255, 107, 53, 0.55);
    border-color: rgba(255, 107, 53, 0.55);
}

/* Intensity level 3 */
[data-theme="light"] .hsc--active-3 {
    background: rgba(255, 107, 53, 0.78);
    border-color: transparent;
}

/* active-4 is a solid gradient — already punchy in both modes, no override needed */

/* Day number on active-1/2: dark brown instead of white (light orange bg → white text invisible) */
[data-theme="light"] .hist-cal-cell.hsc--active-1 .hist-cal-day-num,
[data-theme="light"] .hist-cal-cell.hsc--active-2 .hist-cal-day-num {
    color: rgba(90, 35, 5, 0.88);
    font-weight: 600;
}

/* active-3/4 keep white text — background is dark enough */

/* Rest day: deeper cyan so it contrasts with the white card */
[data-theme="light"] .hsc--rest {
    background: rgba(0, 150, 200, 0.18);
    border-color: rgba(0, 150, 200, 0.32);
}

/* Today ring: swap white for dark navy */
[data-theme="light"] .hsc--today {
    outline-color: rgba(20, 20, 70, 0.75);
}

/* Selected day ring: same swap */
[data-theme="light"] .hist-cal-cell--selected {
    outline-color: rgba(20, 20, 70, 0.80);
}

/* Streak ring: deepen the gold so it shows on a light background */
[data-theme="light"] .hsc--streak {
    box-shadow: 0 0 0 1.5px rgba(170, 110, 0, 0.80);
}

[data-theme="light"] .hsc--active-3.hsc--streak {
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.20), 0 0 0 1.5px rgba(170, 110, 0, 0.80);
}

[data-theme="light"] .hsc--active-4.hsc--streak {
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.25), 0 0 0 1.5px rgba(170, 110, 0, 0.80);
}

/* Date filter chip */
[data-theme="light"] .hist-date-filter {
    background: rgba(0, 0, 40, 0.04);
    border-color: rgba(0, 0, 40, 0.12);
}

/* Legend separator line */
[data-theme="light"] .hist-streak-legend-sep {
    background: rgba(0, 0, 0, 0.15);
}
