@import url("https://fonts.googleapis.com/css2?family=Bangers&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --day-image: none;
    --overlay: linear-gradient(160deg, rgba(8, 10, 14, 0.86), rgba(8, 10, 14, 0.72), rgba(8, 10, 14, 0.9));
    --bg: #0d0f12;
    --bg-soft: #141820;
    --card: #1a2030;
    --card-strong: #222a3a;
    --text: #e8eef6;
    --muted: #9aa5b6;
    --accent: #58d4ff;
    --accent-2: #7cff9a;
    --accent-glow: rgba(88, 212, 255, 0.35);
    --danger: #ff6b6b;
    --border: #273045;
    --heat-0: #1a1f2b;
    --heat-1: #1f3b44;
    --heat-2: #225a5a;
    --heat-3: #2f7a5d;
    --heat-4: #49a36b;
    --heat-5: #6fd08b;
    --pct-0: #2a2f3a;
    --pct-20: #2b4654;
    --pct-50: #2d6a6b;
    --pct-80: #3aa36d;
}

body.theme-light {
    color-scheme: light;
    --overlay: linear-gradient(160deg, rgba(250, 250, 255, 0.85), rgba(250, 250, 255, 0.65), rgba(250, 250, 255, 0.8));
    --bg: #f4f4f6;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --card-strong: #f1f3f7;
    --text: #1a1c22;
    --muted: #5c6675;
    --accent: #1269ff;
    --accent-2: #1f9d5f;
    --accent-glow: rgba(18, 105, 255, 0.25);
    --danger: #d24b4b;
    --border: #e0e5ee;
    --heat-0: #eef1f6;
    --heat-1: #dbe9f1;
    --heat-2: #bcd8e8;
    --heat-3: #93c2d6;
    --heat-4: #65a8bf;
    --heat-5: #3d8ca8;
    --pct-0: #eceff5;
    --pct-20: #d6e5ef;
    --pct-50: #b3d3df;
    --pct-80: #7bb8c8;
}

body[data-day="Monday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/john-wick-chapter-3-parabellum-keanu-reeves-2019-3840x3840-67.jpg");
    --overlay: linear-gradient(160deg, rgba(10, 8, 12, 0.92), rgba(10, 8, 12, 0.7), rgba(10, 8, 12, 0.85));
    --bg: #0c0b10;
    --bg-soft: #14101a;
    --card: #1b1520;
    --card-strong: #251b2a;
    --text: #f7edf1;
    --muted: #c2a6ad;
    --border: #352129;
    --accent: #ff4d5a;
    --accent-2: #4cc7ff;
    --accent-glow: rgba(255, 77, 90, 0.4);
}

body[data-day="Tuesday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-dark-red-minimal-3840x2160-167.jpg");
    --overlay: linear-gradient(160deg, rgba(12, 8, 10, 0.92), rgba(12, 8, 10, 0.68), rgba(12, 8, 10, 0.86));
    --bg: #0b0a0d;
    --bg-soft: #151116;
    --card: #1c1418;
    --card-strong: #26191e;
    --text: #f7ece9;
    --muted: #c9b0aa;
    --border: #3a2327;
    --accent: #ff6b3d;
    --accent-2: #ffd166;
    --accent-glow: rgba(255, 107, 61, 0.4);
}

body[data-day="Wednesday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-venom-marvel-comics-3840x4956-588.jpg");
    --overlay: linear-gradient(160deg, rgba(6, 6, 10, 0.94), rgba(6, 6, 10, 0.7), rgba(6, 6, 10, 0.88));
    --bg: #08070b;
    --bg-soft: #120f16;
    --card: #18121c;
    --card-strong: #221724;
    --text: #f3e9ee;
    --muted: #b79aa6;
    --border: #2f1c26;
    --accent: #ff2d55;
    --accent-2: #b5179e;
    --accent-glow: rgba(255, 45, 85, 0.4);
}

body[data-day="Thursday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-far-from-home-5k-5100x6691-947.jpg");
    --overlay: linear-gradient(160deg, rgba(8, 10, 14, 0.9), rgba(8, 10, 14, 0.68), rgba(8, 10, 14, 0.85));
    --bg: #0c1014;
    --bg-soft: #141a22;
    --card: #1a2230;
    --card-strong: #232c3c;
    --text: #ecf3fb;
    --muted: #a5b2c2;
    --border: #2a3647;
    --accent: #ff4d8d;
    --accent-2: #38bdf8;
    --accent-glow: rgba(255, 77, 141, 0.4);
}

body[data-day="Friday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-marvel-superheroes-marvel-comics-3990x2372-1123.jpg");
    --overlay: linear-gradient(160deg, rgba(10, 8, 10, 0.92), rgba(10, 8, 10, 0.7), rgba(10, 8, 10, 0.86));
    --bg: #0a0a0f;
    --bg-soft: #141117;
    --card: #1b141a;
    --card-strong: #241821;
    --text: #f5eef1;
    --muted: #c3aab2;
    --border: #322029;
    --accent: #ff3b3b;
    --accent-2: #ff7a7a;
    --accent-glow: rgba(255, 59, 59, 0.4);
}

body[data-day="Saturday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-marvel-superheroes-dark-background-3840x2160-6134.jpg");
    --overlay: linear-gradient(160deg, rgba(8, 10, 18, 0.9), rgba(8, 10, 18, 0.65), rgba(8, 10, 18, 0.85));
    --bg: #090b14;
    --bg-soft: #121723;
    --card: #171c2b;
    --card-strong: #20283b;
    --text: #e9efff;
    --muted: #9fb0d1;
    --border: #26304a;
    --accent: #60a5fa;
    --accent-2: #a855f7;
    --accent-glow: rgba(96, 165, 250, 0.4);
}

body[data-day="Sunday"] {
    --day-image: url("https://4kwallpapers.com/images/wallpapers/spider-man-stunt-7680x4320-22180.png");
    --overlay: linear-gradient(160deg, rgba(14, 9, 6, 0.9), rgba(14, 9, 6, 0.68), rgba(14, 9, 6, 0.86));
    --bg: #120c08;
    --bg-soft: #1a120e;
    --card: #201511;
    --card-strong: #2a1a14;
    --text: #f8efe7;
    --muted: #c7b0a1;
    --border: #3a2418;
    --accent: #ffb703;
    --accent-2: #fb5607;
    --accent-glow: rgba(255, 183, 3, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Rajdhani", "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    transition: background-color 0.6s ease, color 0.6s ease;
}

body[data-day] {
    background-image: var(--day-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

.landing-view {
    min-height: 100vh;
    padding: 32px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 20px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.landing-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-logo {
    font-family: "Bangers", "Rajdhani", sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.landing-tagline {
    color: var(--muted);
    font-size: 14px;
}

.landing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 12px;
    line-height: 1.05;
    font-family: "Bangers", "Rajdhani", sans-serif;
    letter-spacing: 1px;
}

.hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.hero-panel {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.panel-title {
    font-weight: 600;
}

.panel-day {
    color: var(--accent);
}

.hero-panel-list {
    display: grid;
    gap: 10px;
}

.panel-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
    border: 1px solid var(--border);
    font-size: 14px;
}

.panel-row span:last-child {
    text-align: right;
    color: var(--accent);
}

.panel-progress {
    display: grid;
    gap: 6px;
}

.panel-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-strong) 60%, transparent);
    overflow: hidden;
}

.panel-progress-fill {
    height: 100%;
    width: 62%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.panel-progress-meta {
    font-size: 12px;
    color: var(--muted);
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(14px) saturate(140%);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    margin-top: 6px;
    color: var(--muted);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0.5px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.landing-steps {
    display: flex;
    flex-direction: column;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.step-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(14px) saturate(140%);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.step-body {
    margin-top: 6px;
    color: var(--muted);
}

.landing-template,
.landing-plans,
.landing-faq {
    display: flex;
    flex-direction: column;
}

.template-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
}

.template-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    gap: 12px;
    backdrop-filter: blur(14px) saturate(140%);
}

.template-title {
    font-family: "Bangers", "Rajdhani", sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
}

.template-meta {
    color: var(--muted);
}

.template-list {
    display: grid;
    gap: 10px;
}

.template-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
    border: 1px solid var(--border);
    font-size: 14px;
}

.template-row span:last-child {
    text-align: right;
    color: var(--accent);
}

.template-info {
    display: grid;
    gap: 12px;
}

.info-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(14px) saturate(140%);
}

.info-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.info-body {
    margin-top: 6px;
    color: var(--muted);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.plan-preview {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(14px) saturate(140%);
}

.plan-preview-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.plan-preview-body {
    margin-top: 6px;
    color: var(--muted);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.faq-item {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(14px) saturate(140%);
}

.faq-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.faq-body {
    margin-top: 6px;
    color: var(--muted);
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 6px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-brand {
    font-family: "Bangers", "Rajdhani", sans-serif;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.app-view {
    display: block;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

body::before {
    background-image: var(--day-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.05);
    opacity: 0.6;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease, filter 0.6s ease;
}

body::after {
    background: var(--overlay);
    z-index: -1;
    transition: background 0.6s ease;
    mix-blend-mode: multiply;
    opacity: 0.5;
}

body.day-transition::before {
    transform: scale(1.05);
}

body.day-transition::after {
    animation: dayPulse 0.6s ease;
}

.motion-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.web-line {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 2px;
    height: 160%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform-origin: top;
    opacity: 0;
}

.spider-dot {
    position: absolute;
    top: 6px;
    left: -40px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #0a0a12 65%);
    box-shadow: 0 0 10px rgba(255, 77, 90, 0.7);
    opacity: 0;
}

body.day-transition .web-line {
    opacity: 1;
    animation: webSwing 0.6s ease;
}

body.view-transition .spider-dot {
    opacity: 1;
    animation: spiderCrawl 0.4s ease;
}

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.6s ease;
    position: relative;
    z-index: 1;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 45%),
        repeating-radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 12px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: "Bangers", "Rajdhani", sans-serif;
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow: 0 6px 20px rgba(255, 77, 90, 0.35);
}

.date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-top: 8px;
}

.day-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-row input {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 8px;
}

.day-label {
    color: var(--text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(120deg, #ff3b3b, #3b82f6);
    border-color: transparent;
    color: #ffffff;
}

.btn-primary:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(255, 59, 59, 0.3), 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
    background: color-mix(in srgb, var(--card) 65%, transparent);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 12px rgba(255, 255, 255, 0.45);
}

.btn.loading {
    pointer-events: none;
    color: transparent;
}

.btn.loading .btn-icon-dot {
    opacity: 0;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.7s linear infinite;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(14px) saturate(140%);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(120deg, #ff3b3b, #3b82f6);
}

.user-name {
    font-weight: 600;
}

.user-email {
    font-size: 12px;
    color: var(--muted);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sync-status {
    font-size: 12px;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 70%, transparent);
}

.sync-status[data-state="synced"] {
    color: var(--accent-2);
    border-color: color-mix(in srgb, var(--accent-2) 60%, transparent);
}

.sync-status[data-state="syncing"] {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.offline-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ff9b9b;
}

.plan-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.plan-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.plan-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--muted);
}

.plan-select {
    min-width: 220px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 6px 10px;
}

.plan-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-editor {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.plan-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-editor-title {
    font-family: "Bangers", "Rajdhani", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-day-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.plan-day-tab {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.plan-day-tab.active {
    background: var(--card);
    color: var(--text);
    border-color: var(--accent);
}

.plan-task-table {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.plan-task-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 0.8fr 0.6fr;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.plan-task-row.header {
    background: var(--card-strong);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
    border-top: none;
}

.plan-task-row input {
    width: 100%;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 6px;
}

.plan-task-row .remove-task {
    color: #ffffff;
    background: #ff3b3b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 8px;
}

.plan-editor-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.tabs {
    display: flex;
    gap: 8px;
    background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tab.active {
    background: var(--card);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.2), 0 0 12px rgba(59, 130, 246, 0.25);
}

.tab::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 999px;
}

.tab.active::after {
    transform: scaleX(1);
}

.views {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

.card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.card-value {
    font-size: 22px;
    font-weight: 600;
    margin-top: 8px;
}

.progress-wrap {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff3b3b, #3b82f6, var(--accent-2));
    transition: width 0.3s ease, background 0.3s ease;
}

.progress-meta {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.task-table {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.task-row {
    display: grid;
    grid-template-columns: 1.2fr 2.4fr 0.6fr 0.8fr;
    gap: 12px;
    padding: 10px 14px;
    align-items: center;
    border-top: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.task-row.header {
    background: var(--card-strong);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    border-top: none;
}

.task-row input[type="number"] {
    width: 90px;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.task-row input[type="checkbox"]:checked {
    animation: checkPulse 0.3s ease;
}

.task-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.task-row.done {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-glow);
    animation: rowGlow 0.4s ease;
}

.task-row.done .name {
    opacity: 0.75;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: "Bangers", "Rajdhani", sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.weekly-heatmap {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.heatmap-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.heatmap-cell {
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.heatmap-cell:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.heatmap-legend {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.chart-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.chart-card canvas {
    width: 100%;
    height: auto;
    display: block;
}

.chart-title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.monthly-grid {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.monthly-head {
    height: 28px;
    border-radius: 8px;
    padding: 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--card-strong);
}

.monthly-cell {
    height: 70px;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    font-size: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.monthly-cell:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.monthly-cell .date {
    font-weight: 600;
}

.monthly-cell .meta {
    color: var(--muted);
    font-size: 11px;
}

.monthly-cell.empty {
    background: transparent;
    border: 1px dashed var(--border);
    opacity: 0.4;
}

.monthly-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.yearly-grid {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 1fr);
    gap: 4px;
    overflow-x: auto;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.yearly-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.yearly-cell:hover {
    transform: scale(1.2);
    border-color: var(--accent);
}

.yearly-cell.empty {
    opacity: 0.3;
}

.yearly-tooltip {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.chart-grid {
    display: grid;
    gap: 12px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: color-mix(in srgb, var(--card) 80%, transparent);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.5s linear;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.plan-transition {
    animation: planPop 0.25s ease;
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rowGlow {
    0% {
        box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: inset 0 0 0 1px var(--accent-glow);
    }
}

@keyframes webSwing {
    0% {
        transform: translateX(-40px) rotate(-8deg);
    }

    50% {
        transform: translateX(20px) rotate(6deg);
    }

    100% {
        transform: translateX(0) rotate(0);
    }
}

@keyframes spiderCrawl {
    0% {
        transform: translateX(-40px) translateY(0);
    }

    50% {
        transform: translateX(50vw) translateY(4px);
    }

    100% {
        transform: translateX(110vw) translateY(0);
    }
}

@keyframes dayPulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes planPop {
    0% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    body::before {
        transform: none;
    }

    .motion-layer {
        display: none;
    }
}

.pct-0 {
    background: var(--pct-0);
}

.pct-20 {
    background: var(--pct-20);
}

.pct-50 {
    background: var(--pct-50);
}

.pct-80 {
    background: var(--pct-80);
}

.heat-0 {
    background: var(--heat-0);
}

.heat-1 {
    background: var(--heat-1);
}

.heat-2 {
    background: var(--heat-2);
}

.heat-3 {
    background: var(--heat-3);
}

.heat-4 {
    background: var(--heat-4);
}

.heat-5 {
    background: var(--heat-5);
}

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

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

    .task-row {
        grid-template-columns: 1fr 1.4fr 0.5fr 0.7fr;
        font-size: 12px;
    }

    .chart-card canvas {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .landing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-actions {
        width: 100%;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        text-align: left;
    }
}
