:root {
    /* Light theme colors - Habit themed with blues/purples */
    --bg-primary: #f5f7fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f9;
    --text-primary: #1f2235;
    --text-secondary: #4a5073;
    --text-muted: #858fa8;
    --border-color: #d7dde8;
    --border-light: #e9edf5;
    --shadow: 0 20px 40px -32px rgba(33, 44, 79, 0.35);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ccd6e5;
    --accent-primary: #5c6bc0;
    --accent-secondary: #3f51b5;
    --accent-contrast: #ffffff;
    --accent-hover: #7986cb;
    --hover-bg: rgba(92, 107, 192, 0.08);
    --success: #3ecf8e;
    --danger: #ff6b6b;
    --warning-light: #fef3c7;
    --accent-gradient: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    --accent-gradient-reverse: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: 0 22px 48px -24px rgba(92, 107, 192, 0.45);
}

body.dark-theme {
    /* Dark theme colors - Habit themed */
    --bg-primary: #0f1015;
    --bg-secondary: #151619;
    --bg-tertiary: #1a1c22;
    --text-primary: #f3f5fe;
    --text-secondary: #b6bdd5;
    --text-muted: rgba(182, 189, 213, 0.65);
    --border-color: rgba(71, 82, 118, 0.55);
    --border-light: rgba(71, 82, 118, 0.35);
    --shadow: 0 28px 60px -38px rgba(8, 12, 30, 0.9);
    --card-bg: rgba(19, 22, 34, 0.92);
    --input-bg: rgba(22, 25, 39, 0.95);
    --input-border: rgba(88, 102, 140, 0.55);
    --accent-primary: #7986cb;
    --accent-secondary: #5c6bc0;
    --accent-contrast: #ffffff;
    --accent-hover: #9fa8da;
    --hover-bg: rgba(92, 107, 192, 0.16);
    --success: #2fc981;
    --danger: #ff7b84;
    --warning-light: rgba(180, 130, 40, 0.25);
    --accent-gradient: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    --accent-gradient-reverse: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: 0 30px 64px -28px rgba(92, 107, 192, 0.55);
}

/* Reconnection Modal */
.reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.reconnect-content {
    background: var(--card-bg);
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.reconnect-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

a, .btn-link {
    color: var(--accent-primary);
}

.btn-primary {
    color: var(--accent-contrast);
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-1px);
        background: var(--accent-gradient-reverse);
        box-shadow: var(--accent-glow);
    }
}

/* Reusable primary action button style - inspired by Habits page New Habit button */
.btn-action-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

@media (hover: hover) {
    .btn-action-primary:hover {
        background: var(--accent-secondary);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    }
}

.btn-action-primary:active {
    transform: translateY(0);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.35), 0 0 0 0.25rem rgba(92, 107, 192, 0.35);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--border-color);
}

/* Dark mode Bootstrap overrides */
body.dark-theme .card {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-theme .card-body {
    background: var(--card-bg);
}

body.dark-theme .table {
    color: var(--text-primary);
    background: var(--card-bg);
}

body.dark-theme .table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-theme .table tbody tr {
    border-color: var(--border-color);
}

@media (hover: hover) {
    body.dark-theme .table-hover tbody tr:hover {
        background: var(--bg-tertiary);
    }
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background: var(--input-bg);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

body.dark-theme .form-label {
    color: var(--text-primary);
}

body.dark-theme .breadcrumb {
    background: var(--bg-secondary);
}

body.dark-theme .breadcrumb-item,
body.dark-theme .breadcrumb-item a {
    color: var(--text-secondary);
}

body.dark-theme .breadcrumb-item.active {
    color: var(--text-primary);
}

body.dark-theme .text-muted {
    color: var(--text-muted) !important;
}

body.dark-theme .bg-light {
    background: var(--bg-tertiary) !important;
}

body.dark-theme .border {
    border-color: var(--border-color) !important;
}

/* Habit burst animation */
.habit-emoji {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 0;
    animation: habitFly 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes habitFly {
    0% {
        transform: translate(var(--tx-20), var(--ty-20)) rotate(var(--rot-20)) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5);
        opacity: 0;
    }
}

/* Habits page - QuickAddRow containment overrides */
.habits-page .quick-add-cell .quick-add-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.habits-page .quick-add-cell .add-form {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.habits-page .quick-add-cell .name-input-wrapper {
    flex: 1;
    min-width: 0;
}

.habits-page .quick-add-cell .quick-add-input {
    width: 100%;
    min-width: 0;
}

.habits-page .quick-add-cell .add-actions {
    flex-shrink: 0;
}

/* ========================================
   TASKS PAGE - QuickAddRow Styling (Inbox & List View only)
   Muted appearance to differentiate from task items
   Uses .tasks-list to target only inbox/list view, not kanban
   ======================================== */

.tasks-list .quick-add-row.quick-add-row {
    border: 1px dashed rgba(107, 114, 128, 0.5) !important;
    background: rgba(107, 114, 128, 0.06) !important;
}

@media (hover: hover) {
    .tasks-list .quick-add-row.quick-add-row:hover,
    .tasks-list .quick-add-row.quick-add-row:focus-within {
        background: var(--bg-secondary, #ffffff) !important;
        border-color: var(--accent-primary, #6366f1) !important;
        border-style: solid !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    }
}

.tasks-list .quick-add-row .add-prompt {
    color: var(--text-secondary, #6b7280) !important;
}

.tasks-list .quick-add-row .add-icon {
    color: rgba(99, 102, 241, 0.5) !important;
    opacity: 1 !important;
}

@media (hover: hover) {
    .tasks-list .quick-add-row:hover .add-icon {
        color: var(--accent-primary, #6366f1) !important;
    }
}

@media (hover: hover) {
    .tasks-list .quick-add-row:hover .add-text {
        color: var(--text-primary, #1f2937) !important;
    }
}

/* Dark mode adjustments */
body.dark-theme .tasks-list .quick-add-row.quick-add-row {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

@media (hover: hover) {
    body.dark-theme .tasks-list .quick-add-row.quick-add-row:hover,
    body.dark-theme .tasks-list .quick-add-row.quick-add-row:focus-within {
        background: var(--bg-tertiary, #1a1c22) !important;
        border-color: var(--accent-primary, #6366f1) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    }
}

body.dark-theme .tasks-list .quick-add-row .add-prompt {
    color: var(--text-secondary, #b6bdd5) !important;
}

body.dark-theme .tasks-list .quick-add-row .add-icon {
    color: rgba(99, 102, 241, 0.6) !important;
}

@media (hover: hover) {
    body.dark-theme .tasks-list .quick-add-row:hover .add-icon {
        color: var(--accent-primary, #6366f1) !important;
    }
}

@media (hover: hover) {
    body.dark-theme .tasks-list .quick-add-row:hover .add-text {
        color: var(--text-primary, #f3f5fe) !important;
    }
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

/* Landing page container */
.landing-page {
    min-height: calc(100vh - 60px);
    background: var(--bg-primary);
}

.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3070 0%, #3f4195 50%, #5c6bc0 100%);
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, #ffffff 0%, #e8eaf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 560px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.workout-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 420px;
}

.btn-workout {
    background: white;
    color: var(--accent-primary);
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-workout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(92, 107, 192, 0.3), transparent);
    transition: left 0.5s ease;
}

@media (hover: hover) {
    .btn-workout:hover::before {
        left: 100%;
    }
}

@keyframes buttonHighlight {
    0% { background: white; color: var(--accent-primary); transform: scale(1); }
    10% { background: var(--accent-primary); color: white; transform: scale(1.05); }
    20% { background: var(--accent-primary); color: white; transform: scale(1.05); }
    30% { background: white; color: var(--accent-primary); transform: scale(1); }
    100% { background: white; color: var(--accent-primary); transform: scale(1); }
}

.push-btn { animation: buttonHighlight 6s ease-in-out 0s infinite; }
.pull-btn { animation: buttonHighlight 6s ease-in-out 2s infinite; }
.legs-btn { animation: buttonHighlight 6s ease-in-out 4s infinite; }
@media (hover: hover) {
    .workout-buttons:hover .btn-workout { animation: none !important; }
}

@media (hover: hover) {
    .btn-workout:hover {
        background: var(--accent-primary) !important;
        color: white !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px;
}

.uncle-sam-container {
    position: relative;
    max-width: 420px;
    border-radius: 20px;
    overflow: visible;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    z-index: 100;
}

@media (hover: hover) {
    .uncle-sam-container:hover {
        transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
    }
}

.uncle-sam-container:active {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(0.92);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.6, 1);
}

.uncle-sam-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    filter: brightness(0.9) contrast(1.1) saturate(0.95);
    position: relative;
    z-index: 1;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    mix-blend-mode: multiply;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3070 0%, #3f4195 50%, #5c6bc0 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-actions .btn {
    min-width: 200px;
}

/* ========================================
   BENTO GRID SECTION
   ======================================== */

/* Simple fade-in animations (replaces AOS) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    animation: fadeInUp 0.6s ease-out;
}

.bento-section .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.bento-section .section-label {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.bento-section .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -12px rgba(33, 37, 79, 0.25);
        border-color: var(--accent-primary);
    }
}

@media (hover: hover) {
    body.dark-theme .glass-card:hover {
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    }
}

.bento-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.15s; }
.bento-card:nth-child(3) { animation-delay: 0.2s; }
.bento-card:nth-child(4) { animation-delay: 0.25s; }
.bento-card:nth-child(5) { animation-delay: 0.3s; }
.bento-card:nth-child(6) { animation-delay: 0.35s; }

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    color: white;
}

.bento-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bento-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bento-card .bento-visual {
    height: 100px;
    margin-top: auto;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

/* Bento Visual: Timeboxing */
.bento-timebox-visual {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.75rem;
    width: 100%;
}

.timebox-slot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timebox-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    width: 30px;
    flex-shrink: 0;
}

.timebox-block {
    flex: 1;
    height: 18px;
    border-radius: 4px;
    background: var(--border-light);
}

.timebox-block.block-1 {
    background: rgba(139, 92, 246, 0.6);
    animation: timeSlotSlide 3s ease infinite;
}

.timebox-block.block-2 {
    background: rgba(59, 130, 246, 0.6);
    animation: timeSlotSlide 3s ease infinite 0.2s;
}

.timebox-block.block-3 {
    background: rgba(34, 197, 94, 0.6);
    animation: timeSlotSlide 3s ease infinite 0.4s;
}

@keyframes timeSlotSlide {
    0%, 20% { transform: translateX(-20px); opacity: 0; }
    30%, 80% { transform: translateX(0); opacity: 1; }
    90%, 100% { transform: translateX(10px); opacity: 0; }
}

/* Bento Visual: Habits */
.bento-habit-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
}

.mini-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.heatmap-cell {
    width: 10px;
    height: 10px;
    background: var(--border-light);
    border-radius: 2px;
}

body.dark-theme .heatmap-cell {
    background: #333;
}

.heatmap-cell.filled {
    background: var(--accent-primary);
    opacity: 0.7;
}

.heatmap-cell.active-anim {
    animation: habitIgnite 3s ease infinite;
}

.mini-streak-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
}

.mini-streak-badge i {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px #f59e0b);
}

/* Bento Visual: Events */
.bento-events-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
}

.mini-calendar {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

body.dark-theme .mini-calendar {
    background: #222;
    border-color: #444;
}

.cal-header {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cal-days {
    display: flex;
    gap: 6px;
    font-size: 0.7rem;
}

.cal-days span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-secondary);
}

.cal-days span.today {
    background: var(--accent-primary);
    color: white;
}

.event-card-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #ec4899;
    animation: eventPopIn 3s ease infinite;
}

@keyframes eventPopIn {
    0%, 30% { transform: scale(0.8); opacity: 0; }
    40%, 80% { transform: scale(1); opacity: 1; }
    90%, 100% { transform: scale(0.9); opacity: 0; }
}

/* Bento Visual: Kanban */
.bento-kanban-visual {
    display: flex;
    gap: 8px;
    padding: 0.5rem;
    width: 100%;
}

.kanban-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kanban-header {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2px;
}

.kanban-card-mini {
    height: 16px;
    background: var(--border-light);
    border-radius: 3px;
}

body.dark-theme .kanban-card-mini {
    background: #444;
}

.kanban-card-mini.moving {
    background: #22c55e;
    animation: cardDrag 3s ease infinite;
}

.kanban-card-mini.done {
    background: rgba(34, 197, 94, 0.4);
}

@keyframes cardDrag {
    0%, 20% { transform: translateX(0); }
    40% { transform: translateX(calc(100% + 8px)); opacity: 0.7; }
    60%, 100% { transform: translateX(calc(200% + 16px)); opacity: 0.5; }
}

/* Bento Visual: Pomodoro */
.bento-pomodoro-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
}

.timer-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.timer-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 6;
}

body.dark-theme .timer-bg {
    stroke: #333;
}

.timer-progress {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
    animation: timerCountdown 8s linear infinite;
}

@keyframes timerCountdown {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 283; }
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-controls {
    display: flex;
    gap: 6px;
}

.timer-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Bento Visual: Challenges */
.bento-challenges-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0.75rem;
}

.podium {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.podium-bar {
    width: 24px;
    background: var(--border-light);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
}

body.dark-theme .podium-bar {
    background: #333;
}

.podium-bar.first {
    height: 50px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    color: white;
    animation: podiumRise 3s ease infinite;
}

.podium-bar.second {
    height: 38px;
    background: linear-gradient(180deg, #94a3b8, #64748b);
    color: white;
    animation: podiumRise 3s ease infinite 0.1s;
}

.podium-bar.third {
    height: 28px;
    background: linear-gradient(180deg, #d97706, #b45309);
    color: white;
    animation: podiumRise 3s ease infinite 0.2s;
}

@keyframes podiumRise {
    0%, 20% { transform: scaleY(0); transform-origin: bottom; }
    40%, 100% { transform: scaleY(1); }
}

.you-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ========================================
   FEATURE DEEP DIVE SECTIONS
   ======================================== */

.feature-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-primary);
    animation: fadeInUp 0.6s ease-out;
}

.feature-section:nth-child(even) {
    background: var(--bg-secondary);
}

.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 1.5rem;
}

.feature-container.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(92, 107, 192, 0.1);
    color: var(--accent-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-list li i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.mockup-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

body.dark-theme .mockup-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
    .feature-section:hover .mockup-card {
        transform: translateY(-5px);
    }
}

/* Feature Visual: Timeboxing */
.visual-timebox-container {
    width: 100%;
    height: 350px;
    padding: 20px;
    background: var(--bg-primary);
}

body.dark-theme .visual-timebox-container {
    background: #1a1a1a;
}

.day-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-hour {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hour-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 70px;
    flex-shrink: 0;
}

.task-block {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.task-block.sliding {
    animation: taskSlideIn 3s ease infinite;
}

.task-block.empty {
    background: transparent;
    border: 2px dashed var(--border-light);
    color: var(--text-muted);
}

@keyframes taskSlideIn {
    0%, 20% { transform: translateX(-30px); opacity: 0; }
    35%, 80% { transform: translateX(0); opacity: 1; }
    95%, 100% { transform: translateX(0); opacity: 1; }
}

/* Feature Visual: Habits (reused from LifeTracker.Landing) */
.visual-habit-container {
    width: 100%;
    height: 350px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.dark-theme .visual-habit-container {
    background: #1a1a1a;
}

.habit-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.habit-day {
    width: 30px;
    height: 30px;
    background: var(--border-light);
    border-radius: 6px;
    transition: background 0.3s;
}

body.dark-theme .habit-day {
    background: #333;
}

.habit-day.filled {
    background: var(--accent-primary);
    opacity: 0.5;
}

.habit-day.active-anim {
    animation: habitIgnite 3s ease infinite;
}

.habit-streak-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: habitBadgeSlide 3s ease infinite;
}

.fire-icon {
    color: #f59e0b;
    font-size: 2rem;
    filter: drop-shadow(0 0 10px #f59e0b);
    animation: fireFlicker 0.5s infinite alternate;
}

@keyframes habitIgnite {
    0%, 30% { background: var(--border-light); transform: scale(1); }
    35% { transform: scale(0.9); }
    40% { background: var(--accent-primary); box-shadow: 0 0 15px var(--accent-primary); transform: scale(1.1); }
    50% { transform: scale(1); }
    100% { background: var(--accent-primary); }
}

body.dark-theme .habit-day.active-anim {
    animation: habitIgniteDark 3s ease infinite;
}

@keyframes habitIgniteDark {
    0%, 30% { background: #333; transform: scale(1); }
    35% { transform: scale(0.9); }
    40% { background: var(--accent-primary); box-shadow: 0 0 15px var(--accent-primary); transform: scale(1.1); }
    50% { transform: scale(1); }
    100% { background: var(--accent-primary); }
}

@keyframes habitBadgeSlide {
    0%, 40% { opacity: 0; transform: translateY(20px); }
    50% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fireFlicker {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* Feature Visual: Events */
.visual-events-container {
    width: 100%;
    height: 350px;
    background: var(--bg-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.dark-theme .visual-events-container {
    background: #1a1a1a;
}

.events-calendar {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
}

body.dark-theme .events-calendar {
    background: #222;
    border-color: #444;
}

.events-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.events-cal-header i {
    color: var(--text-muted);
    cursor: pointer;
}

.events-cal-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cal-cell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cal-cell.highlight {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.cal-cell.event-dot {
    position: relative;
}

.cal-cell.event-dot::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: #ec4899;
    border-radius: 50%;
}

.event-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
}

body.dark-theme .event-card-detail {
    background: #222;
    border-color: #444;
}

.event-card-detail i {
    font-size: 1.25rem;
    color: #ec4899;
}

.event-card-detail.popping {
    animation: eventCardPop 4s ease infinite;
}

.event-card-detail.popping.delay {
    animation-delay: 0.5s;
}

@keyframes eventCardPop {
    0%, 20% { transform: translateX(30px); opacity: 0; }
    30%, 80% { transform: translateX(0); opacity: 1; }
    90%, 100% { transform: translateX(-10px); opacity: 0; }
}

.event-info {
    display: flex;
    flex-direction: column;
}

.event-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.event-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Feature Visual: Kanban */
.visual-kanban-container {
    width: 100%;
    height: 350px;
    background: var(--bg-primary);
    padding: 20px;
    display: flex;
    gap: 16px;
}

body.dark-theme .visual-kanban-container {
    background: #1a1a1a;
}

.visual-kanban-container .kanban-column {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.dark-theme .visual-kanban-container .kanban-column {
    background: #222;
}

.visual-kanban-container .kanban-col-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.visual-kanban-container .kanban-task {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

body.dark-theme .visual-kanban-container .kanban-task {
    background: #2a2a2a;
    border-color: #444;
}

.visual-kanban-container .kanban-task.dragging {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    animation: kanbanDrag 4s ease infinite;
}

.visual-kanban-container .kanban-task.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.visual-kanban-container .kanban-drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: 6px;
    height: 40px;
    animation: dropZonePulse 4s ease infinite;
}

@keyframes kanbanDrag {
    0%, 20% { transform: translateX(0) rotate(0deg); }
    30% { transform: translateX(10px) rotate(2deg); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
    50% { transform: translateX(calc(100% + 32px)) rotate(0deg); opacity: 0.8; }
    60%, 100% { transform: translateX(calc(100% + 32px)); opacity: 0.5; }
}

@keyframes dropZonePulse {
    0%, 30% { border-color: var(--border-light); }
    40%, 55% { border-color: #22c55e; background: rgba(34, 197, 94, 0.05); }
    65%, 100% { border-color: var(--border-light); background: transparent; }
}

/* Feature Visual: Pomodoro */
.visual-pomodoro-container {
    width: 100%;
    height: 350px;
    background: var(--bg-primary);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

body.dark-theme .visual-pomodoro-container {
    background: #1a1a1a;
}

.pomodoro-timer {
    position: relative;
    width: 180px;
    height: 180px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 8;
}

body.dark-theme .timer-track {
    stroke: #333;
}

.timer-fill {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    animation: pomodoroCountdown 25s linear infinite;
}

@keyframes pomodoroCountdown {
    0% { stroke-dashoffset: 0; stroke: #f59e0b; }
    80% { stroke: #f59e0b; }
    90% { stroke: #ef4444; }
    100% { stroke-dashoffset: 283; stroke: #ef4444; }
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0;
}

.timer-colon {
    animation: colonBlink 1s steps(1) infinite;
}

@keyframes colonBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.pomodoro-controls {
    display: flex;
    gap: 12px;
}

.pomo-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-theme .pomo-btn {
    background: #333;
}

.pomo-btn.play {
    width: 56px;
    height: 56px;
    background: #f59e0b;
    color: white;
    font-size: 1.25rem;
}

.pomo-session-dots {
    display: flex;
    gap: 8px;
}

.session-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

body.dark-theme .session-dot {
    background: #333;
}

.session-dot.filled {
    background: #f59e0b;
}

/* Feature Visual: Challenges */
.visual-challenges-container {
    width: 100%;
    height: 350px;
    background: var(--bg-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.dark-theme .visual-challenges-container {
    background: #1a1a1a;
}

.leaderboard {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

body.dark-theme .leaderboard {
    background: #222;
    border-color: #444;
}

.leaderboard-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-theme .leaderboard-header {
    background: #2a2a2a;
}

.leaderboard-header i {
    color: #fbbf24;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}

body.dark-theme .leaderboard-row {
    border-color: #333;
}

.leaderboard-row.highlight {
    background: rgba(239, 68, 68, 0.1);
    animation: highlightPulse 2s ease infinite;
}

@keyframes highlightPulse {
    0%, 100% { background: rgba(239, 68, 68, 0.1); }
    50% { background: rgba(239, 68, 68, 0.15); }
}

.leaderboard-row .rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 12px;
}

body.dark-theme .leaderboard-row .rank {
    background: #333;
}

.leaderboard-row .name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.leaderboard-row .score {
    font-weight: 600;
    color: var(--accent-primary);
}

.challenge-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.challenge-badge i {
    font-size: 1.25rem;
}


/* ========================================
   RESPONSIVE - LANDING PAGE
   ======================================== */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .uncle-sam-container {
        max-width: 320px;
    }

    .bento-section {
        padding: 4rem 0;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bento-card {
        min-height: 260px;
    }

    .feature-section {
        padding: 4rem 0;
    }

    .feature-container {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-container.reverse {
        flex-direction: column;
    }

    .mockup-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .visual-habit-container,
    .visual-timebox-container,
    .visual-events-container,
    .visual-kanban-container,
    .visual-pomodoro-container,
    .visual-challenges-container {
        height: 300px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-workout {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .bento-section,
    .feature-section {
        padding: 3rem 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-section .section-header {
        margin-bottom: 2rem;
    }

    .bento-section .section-title {
        font-size: 1.5rem;
    }

    .bento-card {
        padding: 1.5rem;
        min-height: 240px;
    }

    .bento-card-title {
        font-size: 1.25rem;
    }

    .bento-card .bento-visual {
        height: 80px;
    }

    .feature-container {
        padding: 0 1rem;
    }

    .feature-list li {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .visual-habit-container,
    .visual-timebox-container,
    .visual-events-container,
    .visual-kanban-container,
    .visual-pomodoro-container,
    .visual-challenges-container {
        height: 250px;
        padding: 15px;
    }

    .habit-grid {
        gap: 5px;
    }

    .habit-day {
        width: 22px;
        height: 22px;
    }

    .habit-streak-badge {
        font-size: 1.2rem;
    }

    .fire-icon {
        font-size: 1.5rem;
    }

    .pomodoro-timer {
        width: 140px;
        height: 140px;
    }

    .timer-display {
        font-size: 2rem;
    }
}

/* Constrain page height when kanban board is active so flex chain fills viewport */
.page:has(.kanban-active) {
    height: 100vh;
    overflow: hidden;
}
