@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --base-950: #030712;
    --base-900: #050c1a;
    --base-850: #0b162d;
    --base-800: #0f1c35;
    --base-700: #1c2745;
    --base-600: #263150;
    --accent-primary: #38bdf8;
    --accent-secondary: #6366f1;
    --accent-tertiary: #22d3ee;
    --accent-warm: #fbbf24;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-muted: #94a3b8;
    --border-subtle: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(99, 102, 241, 0.45);
    --glass-surface: rgba(8, 14, 32, 0.65);
    --glass-highlight: rgba(99, 102, 241, 0.18);
    --shadow-soft: 0 24px 60px -28px rgba(2, 6, 23, 0.8);
    --shadow-inner: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--base-950);
    color: var(--text-secondary);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.balance-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .balance-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        align-items: start;
    }
}

.balance-column {
    display: grid;
    gap: 1.5rem;
}

.balance-column > * {
    min-width: 0;
}

.balanced-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .balanced-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.balance-alerts {
    display: grid;
    gap: 1.25rem;
}

.aside-column {
    align-self: start;
}

.input-glass {
    background: linear-gradient(160deg, rgba(8, 15, 32, 0.94), rgba(18, 30, 52, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: inset 0 18px 32px -30px rgba(15, 23, 42, 0.9);
}

.input-glass:focus {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
    background: linear-gradient(160deg, rgba(11, 19, 38, 0.98), rgba(21, 32, 58, 0.86));
    outline: none;
}

.input-glass::placeholder {
    color: rgba(148, 163, 184, 0.76);
}

.input-glass:-webkit-autofill,
.input-glass:-webkit-autofill:hover,
.input-glass:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(8, 15, 32, 0.95) inset;
    -webkit-text-fill-color: var(--text-primary);
    transition: background-color 9999s ease-in-out 0s;
}

.ambient-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.3), transparent 55%),
                linear-gradient(135deg, rgba(5, 12, 26, 0.95), rgba(9, 18, 38, 0.9), rgba(15, 23, 42, 0.95));
    filter: saturate(105%);
    opacity: 0.85;
}

.ambient-ring {
    position: absolute;
    border-radius: 9999px;
    filter: blur(120px);
    opacity: 0.65;
    transform: translate3d(0, 0, 0);
    animation: floatRing 18s ease-in-out infinite;
}

.ambient-ring.one {
    width: 520px;
    height: 520px;
    background: rgba(99, 102, 241, 0.35);
    top: -160px;
    left: -140px;
}

.ambient-ring.two {
    width: 600px;
    height: 600px;
    background: rgba(56, 189, 248, 0.35);
    bottom: -220px;
    right: -160px;
    animation-delay: 6s;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 70%);
}

@keyframes floatRing {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
    50% { transform: translate3d(0, -12px, 0) scale(1.05); opacity: 0.85; }
}

[data-surface='primary'] {
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(5, 12, 26, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

[data-surface='panel'] {
    background: linear-gradient(145deg, rgba(10, 18, 34, 0.92), rgba(14, 24, 44, 0.75));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

[data-surface='glass'] {
    background: linear-gradient(140deg, rgba(12, 21, 38, 0.75), rgba(14, 26, 48, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.unit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(8, 15, 32, 0.85), rgba(20, 31, 55, 0.75));
    box-shadow: var(--shadow-inner);
}

.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advice-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(140deg, rgba(12, 21, 38, 0.6), rgba(16, 29, 48, 0.45));
    padding: 0.75rem 1rem;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.advice-list li i {
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

.commute-tip {
    position: relative;
    padding-left: 1.25rem;
}

.commute-tip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(99, 102, 241, 0.8));
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.travel-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(145deg, rgba(9, 16, 32, 0.78), rgba(14, 25, 46, 0.6));
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-inner);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.travel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
}

.travel-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.travel-card p {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.85);
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(150deg, rgba(10, 18, 34, 0.88), rgba(15, 26, 46, 0.65));
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-inner);
}

.risk-badge[data-severity='high'] {
    border-color: rgba(248, 113, 113, 0.55);
    background: linear-gradient(150deg, rgba(67, 20, 20, 0.75), rgba(120, 29, 29, 0.55));
    color: rgb(252, 231, 243);
}

.risk-badge[data-severity='medium'] {
    border-color: rgba(250, 204, 21, 0.45);
    background: linear-gradient(150deg, rgba(88, 64, 13, 0.6), rgba(133, 77, 14, 0.55));
    color: rgb(254, 249, 195);
}

.risk-badge[data-severity='low'] {
    border-color: rgba(52, 211, 153, 0.4);
    background: linear-gradient(150deg, rgba(16, 44, 32, 0.65), rgba(22, 63, 45, 0.55));
    color: rgb(204, 255, 238);
}

.risk-badge i {
    font-size: 0.95rem;
}

.playbook-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(150deg, rgba(11, 19, 38, 0.85), rgba(19, 31, 55, 0.7));
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
}

.playbook-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.playbook-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.85rem;
}

.playbook-card ul li + li {
    margin-top: 0.4rem;
}

.checklist-grid {
    display: grid;
    gap: 0.8rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(9, 16, 32, 0.74), rgba(14, 26, 48, 0.55));
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.88);
}

.checklist-item i {
    color: var(--accent-primary);
    margin-top: 0.15rem;
}

.resource-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: linear-gradient(150deg, rgba(10, 18, 34, 0.8), rgba(18, 29, 50, 0.65));
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-inner);
}

.resource-card h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.resource-card p {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.82);
}

.unit-toggle button {
    border: none;
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: transparent;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.unit-toggle button:hover {
    color: var(--text-primary);
}

.unit-toggle button.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--base-950);
    box-shadow: 0 12px 25px -12px rgba(56, 189, 248, 0.85);
}

.brutal-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 3.1rem;
    height: 1.7rem;
}

.brutal-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.brutal-toggle-switch .slider {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(82, 93, 120, 0.55), rgba(62, 73, 110, 0.4));
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    transition: background 0.35s ease;
}

.brutal-toggle-switch .slider::before {
    content: '';
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    left: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.78));
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s ease;
}

.brutal-toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.85), rgba(244, 63, 94, 0.65));
}

.brutal-toggle-switch input:checked + .slider::before {
    transform: translate(1.35rem, -50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.12));
    color: var(--accent-primary);
}

.gradient-text {
    background: linear-gradient(120deg, #38bdf8, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#weatherMapContainer {
    height: 18rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(145deg, rgba(8, 15, 32, 0.95), rgba(14, 24, 44, 0.78));
    box-shadow: var(--shadow-inner);
}

#weatherMap {
    height: 100%;
    width: 100%;
}

.leaflet-control-zoom a {
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 0.6rem !important;
    backdrop-filter: blur(6px);
}

.leaflet-control-attribution {
    background: rgba(8, 15, 32, 0.75) !important;
    color: rgba(226, 232, 240, 0.7) !important;
    border-radius: 9999px;
    padding-inline: 0.75rem !important;
}

.custom-select {
    appearance: none;
    background-color: rgba(5, 12, 26, 0.85);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23cbd5f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding-right: 2.5rem !important;
    color: var(--text-primary);
    font-weight: 600;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-select:focus {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
    outline: none;
}

.custom-select option {
    background-color: var(--base-900);
    color: var(--text-primary);
}

.search-results {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(16px);
}

.search-results button {
    border-radius: var(--radius-md);
}

.search-results button:hover {
    background: rgba(56, 189, 248, 0.12);
}

.tile {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(12, 20, 38, 0.92), rgba(20, 30, 52, 0.8));
    box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.quick-metric {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(140deg, rgba(8, 15, 32, 0.9), rgba(18, 30, 52, 0.78));
    padding: 1rem;
    box-shadow: var(--shadow-inner);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.quick-metric:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-4px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .metrics-grid {
        gap: 1rem;
    }
}

.metric-chip {
    border-radius: var(--radius-md);
    padding: 0.9rem;
    background: linear-gradient(145deg, rgba(10, 18, 36, 0.85), rgba(16, 26, 46, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.metric-chip:hover {
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-3px);
}

.metric-chip span.value {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.metric-chip span.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.78);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.8);
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    transform: translateY(-4px);
}

.weather-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.weather-table tbody tr {
    background: linear-gradient(135deg, rgba(12, 21, 38, 0.92), rgba(18, 30, 52, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-inner);
}

.weather-table tbody tr td {
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.weather-table tbody tr td:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.weather-table tbody tr td:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.35), rgba(56, 189, 248, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.45);
}

@media (max-width: 640px) {
    .unit-toggle {
        width: 100%;
        justify-content: space-between;
    }

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

/* Christmas Mode Styles */
.christmas-mode {
    --accent-primary: #dc2626; /* Christmas red */
    --accent-secondary: #16a34a; /* Christmas green */
    --accent-tertiary: #eab308; /* Christmas gold */
    --accent-warm: #f59e0b; /* Warm gold */
    --christmas-red-dark: #b91c1c;
    --christmas-green-dark: #166534;
    --christmas-gold: #d97706;
    --christmas-silver: #9ca3af;
    --christmas-red-light: #fca5a5;
    --christmas-green-light: #86efac;
    --christmas-gold-light: #fcd34d;
    position: relative;
}

/* Multi-layered festive background */
.christmas-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        /* Christmas tree pattern */
        radial-gradient(circle at 15% 85%, rgba(22, 163, 74, 0.08) 20px, transparent 21px),
        radial-gradient(circle at 85% 75%, rgba(22, 163, 74, 0.06) 25px, transparent 26px),
        radial-gradient(circle at 45% 90%, rgba(22, 163, 74, 0.05) 15px, transparent 16px),

        /* Gift boxes pattern */
        radial-gradient(circle at 70% 20%, rgba(220, 38, 38, 0.07) 12px, transparent 13px),
        radial-gradient(circle at 25% 35%, rgba(234, 179, 8, 0.06) 18px, transparent 19px),

        /* Star field */
        radial-gradient(circle at 90% 10%, rgba(234, 179, 8, 0.12) 2px, transparent 3px),
        radial-gradient(circle at 60% 5%, rgba(255, 255, 255, 0.08) 1px, transparent 2px),
        radial-gradient(circle at 30% 15%, rgba(234, 179, 8, 0.1) 1.5px, transparent 2.5px),

        /* Subtle gradient overlay */
        linear-gradient(135deg,
            rgba(220, 38, 38, 0.02) 0%,
            rgba(22, 163, 74, 0.02) 25%,
            rgba(234, 179, 8, 0.02) 50%,
            rgba(22, 163, 74, 0.02) 75%,
            rgba(220, 38, 38, 0.02) 100%);
    background-size:
        300px 300px, 250px 250px, 200px 200px,
        150px 150px, 180px 180px,
        400px 400px, 350px 350px, 450px 450px,
        100% 100%;
    background-position:
        0% 0%, 20% 20%, 40% 40%,
        60% 60%, 80% 80%,
        0% 0%, 30% 30%, 70% 70%,
        0% 0%;
    animation: christmas-sparkle 12s ease-in-out infinite, christmas-twinkle 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes christmas-twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.christmas-mode .card {
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow:
        0 24px 60px -28px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 0 rgba(220, 38, 38, 0.1),
        0 0 20px rgba(234, 179, 8, 0.1);
    background: linear-gradient(135deg,
        rgba(5, 12, 26, 0.8) 0%,
        rgba(8, 20, 45, 0.7) 50%,
        rgba(5, 12, 26, 0.8) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.christmas-mode .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(234, 179, 8, 0.1),
        rgba(22, 163, 74, 0.1),
        rgba(220, 38, 38, 0.1),
        transparent);
    animation: christmas-card-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.christmas-mode .card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow:
        0 32px 80px -32px rgba(234, 179, 8, 0.4),
        inset 0 1px 0 0 rgba(234, 179, 8, 0.2),
        0 0 30px rgba(234, 179, 8, 0.2);
    transform: translateY(-2px);
}

@keyframes christmas-card-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.christmas-mode .accent {
    color: var(--accent-tertiary);
}

.christmas-mode .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    box-shadow:
        0 4px 16px rgba(220, 38, 38, 0.3),
        0 0 20px rgba(234, 179, 8, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.christmas-mode .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: christmas-button-shimmer 3s ease-in-out infinite;
}

.christmas-mode .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    border-color: var(--accent-secondary);
    box-shadow:
        0 8px 24px rgba(22, 163, 74, 0.4),
        0 0 30px rgba(234, 179, 8, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

@keyframes christmas-button-shimmer {
    0%, 100% { left: -100%; }
    60% { left: 100%; }
}

/* Enhanced Snow Animation */
@keyframes snow-fall {
    0% {
        transform: translateY(-20px) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(0px) translateX(5px) rotate(36deg) scale(1);
    }
    25% {
        transform: translateY(25vh) translateX(-8px) rotate(108deg) scale(0.9);
    }
    50% {
        transform: translateY(50vh) translateX(12px) rotate(216deg) scale(1.1);
    }
    75% {
        transform: translateY(75vh) translateX(-6px) rotate(324deg) scale(0.95);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) translateX(8px) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes snow-drift {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-15px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
}

@keyframes christmas-sparkle {
    0% {
        background-position: 0% 0%, 20% 20%, 40% 40%, 60% 60%, 80% 80%;
    }
    100% {
        background-position: 0% 100%, 20% 120%, 40% 140%, 60% 160%, 80% 180%;
    }
}

.christmas-snow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    user-select: none;
    animation: snow-fall linear infinite, snow-drift ease-in-out infinite;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    filter: blur(0.5px);
}

/* Enhanced snowflake variations with different characteristics */
.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 12s, 8s;
    animation-delay: 0s, 0s;
    font-size: 1.8rem;
    opacity: 0.7;
}
.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 15s, 10s;
    animation-delay: 1s, 2s;
    font-size: 1.2rem;
}
.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 18s, 12s;
    animation-delay: 2s, 1s;
    font-size: 1.5rem;
    opacity: 0.8;
}
.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 14s, 9s;
    animation-delay: 0.5s, 3s;
    font-size: 1.1rem;
}
.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 16s, 11s;
    animation-delay: 3s, 1.5s;
    font-size: 1.6rem;
    opacity: 0.6;
}
.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 13s, 8.5s;
    animation-delay: 1.5s, 2.5s;
    font-size: 0.9rem;
}
.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 17s, 13s;
    animation-delay: 2.5s, 0.8s;
    font-size: 2rem;
    opacity: 0.75;
}
.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 11s, 7.5s;
    animation-delay: 0.8s, 1.2s;
    font-size: 1.3rem;
}
.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 19s, 14s;
    animation-delay: 1.2s, 2.8s;
    font-size: 1.4rem;
    opacity: 0.85;
}
.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 20s, 15s;
    animation-delay: 2.8s, 0.5s;
    font-size: 1rem;
}
.snowflake:nth-child(11) {
    left: 25%;
    animation-duration: 10s, 6.5s;
    animation-delay: 0.3s, 1.8s;
    font-size: 1.7rem;
    opacity: 0.65;
}
.snowflake:nth-child(12) {
    left: 35%;
    animation-duration: 16.5s, 11.5s;
    animation-delay: 1.8s, 2.2s;
    font-size: 1.2rem;
}
.snowflake:nth-child(13) {
    left: 45%;
    animation-duration: 14.5s, 9.5s;
    animation-delay: 2.2s, 0.7s;
    font-size: 1.8rem;
    opacity: 0.7;
}
.snowflake:nth-child(14) {
    left: 55%;
    animation-duration: 12.5s, 8s;
    animation-delay: 0.7s, 1.9s;
    font-size: 0.8rem;
}
.snowflake:nth-child(15) {
    left: 65%;
    animation-duration: 15.5s, 10.5s;
    animation-delay: 1.9s, 2.6s;
    font-size: 1.4rem;
}
.snowflake:nth-child(16) {
    left: 75%;
    animation-duration: 18.5s, 12.5s;
    animation-delay: 2.6s, 1.1s;
    font-size: 1.1rem;
    opacity: 0.8;
}
.snowflake:nth-child(17) {
    left: 85%;
    animation-duration: 13.2s, 8.8s;
    animation-delay: 1.1s, 0.4s;
    font-size: 1.9rem;
    opacity: 0.75;
}
.snowflake:nth-child(18) {
    left: 5%;
    animation-duration: 17.2s, 11.5s;
    animation-delay: 0.4s, 2.9s;
    font-size: 1.3rem;
}
.snowflake:nth-child(19) {
    left: 95%;
    animation-duration: 14.8s, 9.8s;
    animation-delay: 2.9s, 1.6s;
    font-size: 1.5rem;
    opacity: 0.7;
}
.snowflake:nth-child(20) {
    left: 12%;
    animation-duration: 19.5s, 13s;
    animation-delay: 1.6s, 0.9s;
    font-size: 1.2rem;
}

/* Christmas Header Styles */
.christmas-mode .header-title {
    background: linear-gradient(45deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation:
        christmas-text-glow 4s ease-in-out infinite,
        christmas-text-shine 2s ease-in-out infinite alternate;
    text-shadow:
        0 0 20px rgba(234, 179, 8, 0.5),
        0 0 40px rgba(234, 179, 8, 0.3),
        0 0 60px rgba(234, 179, 8, 0.1);
    position: relative;
}

.christmas-mode .header-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: christmas-title-highlight 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes christmas-text-glow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes christmas-text-shine {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}

@keyframes christmas-title-highlight {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0%);
    }
}

/* Christmas Weather Icons */
.christmas-mode .weather-icon {
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.3));
}

.christmas-mode .weather-icon.sunny {
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
}

/* Christmas Message Animation */
#christmasMessage {
    animation: christmas-message-bounce 2s ease-in-out infinite;
}

@keyframes christmas-message-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Christmas Decorations */
.christmas-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
}

.christmas-tree {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 80px;
    height: 120px;
    animation: tree-sway 4s ease-in-out infinite;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: #8B4513;
    border-radius: 2px;
}

.tree-branches {
    position: relative;
    width: 100%;
    height: 100%;
}

.tree-branch {
    position: absolute;
    font-size: 2rem;
    animation: branch-twinkle 3s ease-in-out infinite;
}

.tree-branch.branch-1 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}
.tree-branch.branch-2 {
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation-delay: 1s;
}
.tree-branch.branch-3 {
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation-delay: 2s;
}

@keyframes tree-sway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes branch-twinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Floating Ornaments */
.floating-ornaments {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ornament {
    position: absolute;
    font-size: 1.5rem;
    animation: ornament-float 6s ease-in-out infinite;
}

.ornament-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}
.ornament-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}
.ornament-3 {
    top: 60%;
    left: 8%;
    animation-delay: 3s;
}
.ornament-4 {
    top: 45%;
    right: 12%;
    animation-delay: 4.5s;
}
.ornament-5 {
    top: 75%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes ornament-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: corner-pulse 4s ease-in-out infinite;
}

.corner-decoration.top-left {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}
.corner-decoration.top-right {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}
.corner-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}
.corner-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    animation-delay: 3s;
}

@keyframes corner-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Christmas Particle Effects */
.christmas-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: particle-twinkle 4s ease-in-out infinite;
}

.particle-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 5s;
}
.particle-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 6s;
}
.particle-3 {
    top: 35%;
    left: 25%;
    animation-delay: 2s;
    animation-duration: 4.5s;
}
.particle-4 {
    top: 50%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 5.5s;
}
.particle-5 {
    top: 65%;
    left: 12%;
    animation-delay: 1.5s;
    animation-duration: 4.8s;
}
.particle-6 {
    top: 75%;
    right: 25%;
    animation-delay: 2.5s;
    animation-duration: 5.2s;
}
.particle-7 {
    top: 85%;
    left: 30%;
    animation-delay: 0.5s;
    animation-duration: 6.2s;
}
.particle-8 {
    top: 5%;
    right: 5%;
    animation-delay: 3.5s;
    animation-duration: 4.2s;
}

@keyframes particle-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.1) rotate(270deg);
    }
}
