* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    font-family: Arial, sans-serif;

    color: white;

    background:
        radial-gradient(
            circle at 10% 10%,
            #0c5966,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06151b,
            #082d36,
            #06151b
        );
}

.topbar {
    height: 75px;

    padding: 0 6%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.04);

    backdrop-filter: blur(15px);
}

.brand {
    font-size: 25px;
    font-weight: 700;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-mini small {
    display: block;
    color: #7cebf5;
}

.avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #0c6b78,
        #18c4d8
    );

    font-weight: bold;
}

.dashboard {
    width: 92%;
    max-width: 1100px;

    margin: auto;

    padding: 35px 0 50px;
}

.welcome {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 30px;
}

.small-text,
.section-heading span,
.xp-header span {
    color: #7cebf5;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1px;
}

.welcome h1 {
    font-size: 38px;

    margin: 5px 0;
}

.welcome p:last-child {
    color: #9fb4b8;
}

.rank-card {
    min-width: 170px;

    padding: 20px;

    text-align: center;

    border-radius: 18px;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.1);
}

.rank-card span {
    display: block;

    color: #8da5aa;

    font-size: 11px;

    margin-bottom: 7px;
}

.rank-card strong {
    color: #ffd45c;

    font-size: 22px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}

.stat-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 18px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);
}

.stat-icon {
    font-size: 28px;
}

.stat-card small {
    color: #91a8ad;
}

.stat-card h2 {
    margin-top: 4px;
}

.xp-card {
    padding: 24px;

    border-radius: 20px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);

    margin-bottom: 30px;
}

.xp-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}

.xp-header h2 {
    margin-top: 5px;
}

.xp-header strong {
    color: #7cebf5;
}

.xp-bar {
    height: 10px;

    border-radius: 20px;

    overflow: hidden;

    background: rgba(255,255,255,.1);
}

.xp-fill {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #0c6b78,
        #18c4d8
    );

    transition: width .5s ease;
}

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.section-heading h2 {
    margin-top: 5px;
}

.section-heading button {
    border: none;

    padding: 10px 16px;

    border-radius: 10px;

    color: white;

    background: #0c6b78;

    cursor: pointer;
}

.habit-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px;

    margin-bottom: 12px;

    border-radius: 16px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);
}

.habit-left {
    display: flex;

    align-items: center;

    gap: 15px;
}

.habit-check {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: rgba(24,196,216,.15);

    color: #7cebf5;
}

.habit-card p {
    margin-top: 4px;

    color: #91a8ad;

    font-size: 13px;
}

.habit-card > strong {
    color: #7cebf5;
}

.bad-habit .habit-check {
    background: rgba(255,180,70,.12);
}


.logout-btn {
    display: block;

    margin: 30px auto 0;

    padding: 12px 25px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 10px;

    color: #ff9b9b;

    background: rgba(255,255,255,.05);

    cursor: pointer;
}

@media (max-width: 700px) {

    .dashboard {
        width: 94%;
    }

    .welcome {
        align-items: flex-start;

        flex-direction: column;
    }

    .welcome h1 {
        font-size: 30px;
    }

    .rank-card {
        width: 100%;
    }

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

    .xp-header {
        gap: 10px;
    }

    .habit-card {
        gap: 10px;
    }


}
.empty-habits {
    padding: 30px;
    text-align: center;
    color: #91a8ad;
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 16px;
}

.modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.65);

    backdrop-filter: blur(8px);

    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 430px;

    padding: 30px;

    position: relative;

    border-radius: 22px;

    background: #0b252d;

    border: 1px solid rgba(255,255,255,.12);

    box-shadow: 0 25px 80px rgba(0,0,0,.5);
}

.modal-box h2 {
    margin-bottom: 8px;
}

.modal-box p {
    color: #91a8ad;
    margin-bottom: 25px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 18px;

    border: none;
    background: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}

.modal-box input,
.modal-box select {
    width: 100%;

    padding: 14px;

    margin-bottom: 14px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 12px;

    outline: none;

    color: white;

    background: rgba(255,255,255,.07);
}

.modal-box select option {
    color: black;
}

.create-habit-btn {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    color: white;

    background: linear-gradient(
        135deg,
        #0c6b78,
        #18c4d8
    );

    cursor: pointer;

    font-weight: 600;
}

.habit-card.completed {
    opacity: .55;
}

.habit-card.completed .habit-check {
    background: #18c4d8;
    color: white;
}
.premium-badge {
    display: none;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.advanced-stats-card {
    margin-top: 20px;
    padding: 22px;
    border-radius: 20px;
}

.advanced-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.advanced-stats-header small {
    font-size: 11px;
    opacity: 0.7;
}

.advanced-stats-header h2 {
    margin: 5px 0 0;
}

#advancedStatsBadge {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.advanced-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.advanced-stat-grid > div {
    padding: 15px;
    border-radius: 15px;
}

.advanced-stat-grid small {
    display: block;
    opacity: 0.7;
    margin-bottom: 8px;
}

.advanced-stat-grid strong {
    font-size: 20px;
}

@media (max-width: 700px) {

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

}

.topbar {
    background: rgba(18, 20, 35, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
/* ======================================
   FLOATING RADIAL MENU
====================================== */

.radial-menu {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 64px;
    height: 64px;

    z-index: 1500;
}


/* Main floating menu button */

.radial-toggle {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 64px;
    height: 64px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0c6b78,
            #18c4d8
        );

    box-shadow:
        0 12px 35px rgba(0,0,0,.45),
        0 0 25px rgba(24,196,216,.22);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    cursor: pointer;

    z-index: 20;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.radial-toggle span {
    width: 25px;
    height: 3px;

    border-radius: 10px;

    background: white;

    transition:
        transform .35s ease,
        opacity .25s ease;
}


/* Turn hamburger into X */

.radial-menu.open
.radial-toggle span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.radial-menu.open
.radial-toggle span:nth-child(2) {
    opacity: 0;
}

.radial-menu.open
.radial-toggle span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* Menu items */

.radial-item {
    position: absolute;
    z-index: 10;
    right: 18px;
    bottom: 18px;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    color: white;

    font-size: 21px;

    background:
        rgba(11, 37, 45, .95);

    border:
        1px solid
        rgba(124,235,245,.18);

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.35);

    backdrop-filter:
        blur(12px);

    opacity: 0;

    pointer-events: none;

    transform:
        translate(0, 0)
        scale(.3);

    transition:
        transform .42s
        cubic-bezier(.2,.8,.2,1),
        opacity .25s ease,
        background .2s ease;
}


/* Small labels */
.radial-item span {
    position: absolute;

    left: 50%;
    bottom: 58px;

    transform:
        translateX(-50%)
        translateY(6px);

    padding: 6px 10px;

    border-radius: 9px;

    color: white;

    background: rgba(5, 18, 23, 0.96);

    border: 1px solid rgba(255,255,255,.12);

    box-shadow: 0 6px 20px rgba(0,0,0,.35);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 999;

    transition:
        opacity .2s ease,
        transform .2s ease;
}
.radial-item:hover span {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
    transform:
        translateX(-50%)
        translateY(0);
}

.radial-item:hover {
    background:
        rgba(24,196,216,.25);
}


/* ======================================
   OPEN POSITIONS
====================================== */

.radial-menu.open
.radial-item {
    opacity: 1;
    pointer-events: auto;
    transition-delay: .20s;
    transform:
        translate(
            var(--move-x),
            var(--move-y)
        )
        scale(1);
}
/* ======================================
   RADIAL MENU — CLEAN DOUBLE ARC
====================================== */

/* ---------- INNER ARC ---------- */

.item-calendar {
    --move-x: -18px;
    --move-y: -125px;
}

.item-stats {
    --move-x: -78px;
    --move-y: -112px;
}

.item-achievements {
    --move-x: -125px;
    --move-y: -75px;
}

.item-profile {
    --move-x: -145px;
    --move-y: -20px;
}


/* ---------- OUTER ARC ---------- */

.item-routine {
    --move-x: -20px;
    --move-y: -205px;
}

.item-weekly {
    --move-x: -90px;
    --move-y: -195px;
}

.item-themes {
    --move-x: -150px;
    --move-y: -165px;
}

.item-premium {
    --move-x: -195px;
    --move-y: -115px;
}

.item-referral {
    --move-x: -220px;
    --move-y: -50px;
}

.item-bug {
    --move-x: -220px;
    --move-y: 15px;
}
/* Slight stagger animation */

.radial-menu.open
.item-calendar {
    transition-delay: .02s;
}

.radial-menu.open
.item-stats {
    transition-delay: .05s;
}

.radial-menu.open
.item-achievements {
    transition-delay: .08s;
}

.radial-menu.open
.item-profile {
    transition-delay: .11s;
}

.radial-menu.open
.item-premium {
    transition-delay: .14s;
}

.radial-menu.open
.item-routine {
    transition-delay: .17s;
}

.radial-menu.open
.item-weekly {
    transition-delay: .20s;
}

.radial-menu.open
.item-ai {
    transition-delay: .23s;
}

.radial-menu.open
.item-bug {
    transition-delay: .26s;
}
.radial-menu.open
.item-referral {
    transition-delay: .17s;
}
/* Menu open glow */

.radial-menu.open
.radial-toggle {
    transform:
        rotate(90deg);

    box-shadow:
        0 14px 40px
        rgba(0,0,0,.5),
        0 0 35px
        rgba(24,196,216,.4);
}


/* ======================================
   MOBILE
====================================== */

@media (max-width: 700px) {

    .radial-menu {
        right: 18px;
        bottom: 18px;
    }

    .radial-toggle {
        width: 58px;
        height: 58px;
    }

    .radial-item {
        width: 46px;
        height: 46px;

        font-size: 19px;
    }

}
/* ======================================
   RADIAL MENU HOVER LAYER FIX
====================================== */

/* Normal icons lower layer */
.radial-menu .radial-item {
    z-index: 5;
}

/* Hovered icon + its label above every other icon */
.radial-menu .radial-item:hover {
    z-index: 9999 !important;
}

/* Label itself */
.radial-menu .radial-item span {
    z-index: 10000;
}

/* Main menu button stays above normal icons */
.radial-menu .radial-toggle {
    z-index: 100;
}

/* But hovered item can still come above it if needed */
.radial-menu.open .radial-item:hover {
    z-index: 9999 !important;
}
/* ======================================
   RADIAL MENU EXTRA ANIMATIONS
====================================== */

/* Main button subtle pulse */
.radial-toggle::before {
    content: "";

    position: absolute;
    inset: -7px;

    border-radius: 50%;

    border: 1px solid rgba(24, 196, 216, .35);

    opacity: 0;

    animation: menuPulse 2.2s infinite;
}

@keyframes menuPulse {

    0% {
        transform: scale(.85);
        opacity: 0;
    }

    35% {
        opacity: .6;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}


/* Stop pulse while menu is open */
.radial-menu.open .radial-toggle::before {
    animation: none;
    opacity: 0;
}


/* Icon hover pop */
.radial-menu.open .radial-item:hover {
    z-index: 9999 !important;

    box-shadow:
        0 12px 30px rgba(0,0,0,.45),
        0 0 20px rgba(24,196,216,.35);

    border-color:
        rgba(124,235,245,.55);
}


/* Emoji/icon tiny movement */
.radial-item:hover {
    font-size: 24px;
}


/* Main button click feel */
.radial-toggle:active {
    transform: scale(.88) !important;
}
/* ======================================
   GRID
====================================== */

.theme-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


/* ======================================
   THEME CARD
====================================== */

.theme-card {
    padding: 0;

    overflow: hidden;

    border-radius: 17px;

    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.035);

    color: white;

    text-align: left;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.theme-card:hover {
    transform: translateY(-5px);

    border-color: rgba(124,235,245,.35);

    box-shadow:
        0 14px 35px rgba(0,0,0,.3);
}

.theme-card.active {
    border-color: #4de5ef;

    box-shadow:
        0 0 0 1px rgba(77,229,239,.25),
        0 12px 35px rgba(0,0,0,.3);
}


/* ======================================
   PREVIEW
====================================== */

.theme-preview {
    height: 115px;

    position: relative;

    overflow: hidden;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}

.preview-card {
    position: absolute;

    left: 18px;
    top: 22px;

    width: 68%;
    height: 32px;

    border-radius: 9px;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.13);

    z-index: 4;
}

.preview-card.small {
    top: 65px;

    width: 45%;
    height: 24px;
}

.preview-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(12px);

    opacity: .8;
}


/* ======================================
   DEFAULT PREVIEW
====================================== */

.preview-default {
    background:
        linear-gradient(
            145deg,
            #07181d,
            #0c2830
        );
}

.preview-default .preview-glow {
    position: absolute;

    width: 90px;
    height: 90px;

    right: -15px;
    top: -20px;

    border-radius: 50%;

    background: #17c5d5;

    filter: blur(32px);

    opacity: .28;
}


/* ======================================
   NEON COSMOS
====================================== */

.preview-cosmos {
    background:
        linear-gradient(
            145deg,
            #070713,
            #10102b
        );
}

.preview-cosmos .orb-one {
    width: 80px;
    height: 80px;

    background: #7c3aed;

    left: -15px;
    bottom: -20px;
}

.preview-cosmos .orb-two {
    width: 70px;
    height: 70px;

    background: #22d3ee;

    right: -10px;
    top: -15px;
}

.preview-cosmos .preview-card {
    background:
        rgba(117,89,255,.16);

    border-color:
        rgba(129,105,255,.35);
}


/* ======================================
   EMERALD FOCUS
====================================== */

.preview-emerald {
    background:
        linear-gradient(
            145deg,
            #04130f,
            #08261d
        );
}

.preview-emerald .orb-one {
    width: 100px;
    height: 100px;

    background: #10b981;

    right: -20px;
    bottom: -25px;
}

.preview-emerald .preview-card {
    background:
        rgba(16,185,129,.12);

    border-color:
        rgba(52,211,153,.28);
}


/* ======================================
   SUNSET PULSE
====================================== */

.preview-sunset {
    background:
        linear-gradient(
            145deg,
            #180b16,
            #291126
        );
}

.preview-sunset .orb-one {
    width: 90px;
    height: 90px;

    background: #ff5f6d;

    left: -20px;
    bottom: -25px;
}

.preview-sunset .orb-two {
    width: 80px;
    height: 80px;

    background: #9333ea;

    right: -10px;
    top: -20px;
}

.preview-sunset .preview-card {
    background:
        rgba(255,108,132,.14);

    border-color:
        rgba(255,135,92,.3);
}


/* ======================================
   LIQUID GLASS
====================================== */

.preview-glass {
    background:
        linear-gradient(
            135deg,
            #15213c,
            #372153,
            #145b67
        );
}

.preview-glass .orb-one {
    width: 90px;
    height: 90px;

    background: #7dd3fc;

    left: -20px;
    top: -20px;
}

.preview-glass .orb-two {
    width: 90px;
    height: 90px;

    background: #c084fc;

    right: -20px;
    bottom: -25px;
}

.preview-glass .glass-card {
    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.3);

    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.2);
}


/* ======================================
   THEME INFO
====================================== */

.theme-info {
    min-height: 78px;

    padding: 13px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 8px;
}

.theme-info h3 {
    font-size: 13px;
    line-height: 1.3;
}

.theme-info p {
    margin-top: 5px;

    font-size: 10px;

    color: #82979d;

    line-height: 1.4;
}

.free-badge {
    padding: 4px 6px;

    border-radius: 6px;

    background: rgba(52,211,153,.1);

    color: #6ee7b7;

    font-size: 8px;
    font-weight: 800;
}

.premium-lock {
    font-size: 13px;
}


/* ======================================
   PREMIUM LOCK EFFECT
====================================== */

.theme-card.locked {
    position: relative;
}

.theme-card.locked::after {
    content: "🔒 Premium";

    position: absolute;

    top: 12px;
    right: 10px;

    padding: 5px 8px;

    border-radius: 8px;

    background: rgba(5,12,18,.8);

    border: 1px solid rgba(255,255,255,.1);

    color: white;

    font-size: 9px;

    backdrop-filter: blur(8px);
}


/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 1050px) {

    .theme-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}

@media (max-width: 700px) {

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

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

}

@media (max-width: 430px) {

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

}
/* ======================================
   THEME ENGINE
====================================== */


/* DEFAULT */

body[data-theme="default"] {
    background:
        radial-gradient(
            circle at 10% 10%,
            #0c5966,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06151b,
            #082d36,
            #06151b
        );
}


/* ======================================
   NEON COSMOS
====================================== */

body[data-theme="neon-cosmos"] {
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(124, 58, 237, .35),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(34, 211, 238, .25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050510,
            #100b28,
            #061827
        );
}

body[data-theme="neon-cosmos"]
.stat-card,

body[data-theme="neon-cosmos"]
.xp-card,

body[data-theme="neon-cosmos"]
.habit-card,

body[data-theme="neon-cosmos"]
.rank-card {
    background:
        rgba(80, 55, 160, .13);

    border-color:
        rgba(139, 92, 246, .25);

    box-shadow:
        0 0 25px
        rgba(124, 58, 237, .08);
}

body[data-theme="neon-cosmos"]
.xp-fill {
    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #22d3ee
        );
}


/* ======================================
   EMERALD FOCUS
====================================== */

body[data-theme="emerald-focus"] {
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(16, 185, 129, .25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #03110c,
            #06231a,
            #041712
        );
}

body[data-theme="emerald-focus"]
.stat-card,

body[data-theme="emerald-focus"]
.xp-card,

body[data-theme="emerald-focus"]
.habit-card,

body[data-theme="emerald-focus"]
.rank-card {
    background:
        rgba(11, 80, 57, .14);

    border-color:
        rgba(52, 211, 153, .20);
}

body[data-theme="emerald-focus"]
.xp-fill {
    background:
        linear-gradient(
            90deg,
            #10b981,
            #34d399
        );
}


/* ======================================
   SUNSET PULSE
====================================== */

body[data-theme="sunset-pulse"] {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 92, 104, .30),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(147, 51, 234, .25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #170911,
            #281020,
            #181027
        );
}

body[data-theme="sunset-pulse"]
.stat-card,

body[data-theme="sunset-pulse"]
.xp-card,

body[data-theme="sunset-pulse"]
.habit-card,

body[data-theme="sunset-pulse"]
.rank-card {
    background:
        rgba(120, 45, 75, .14);

    border-color:
        rgba(255, 120, 120, .18);
}

body[data-theme="sunset-pulse"]
.xp-fill {
    background:
        linear-gradient(
            90deg,
            #ff5c68,
            #f59e0b,
            #9333ea
        );
}


/* ======================================
   LIQUID GLASS
====================================== */

body[data-theme="liquid-glass"] {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(114, 215, 255, .32),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(192, 132, 252, .28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #17233e,
            #3b2357,
            #0d6570
        );

    background-attachment:
        fixed;
}

body[data-theme="liquid-glass"]
.stat-card,

body[data-theme="liquid-glass"]
.xp-card,

body[data-theme="liquid-glass"]
.habit-card,

body[data-theme="liquid-glass"]
.rank-card {

    background:
        rgba(255, 255, 255, .09);

    border:
        1px solid
        rgba(255, 255, 255, .20);

    backdrop-filter:
        blur(18px);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .13),
        0 15px 35px
        rgba(0, 0, 0, .18);
}

body[data-theme="liquid-glass"]
.xp-fill {
    background:
        linear-gradient(
            90deg,
            #7dd3fc,
            #c084fc
        );
}
/* ======================================
   STREAK RESTORE
====================================== */

.streak-restore-card {
    margin-top: 22px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: 18px;

    border:
        1px solid rgba(251,146,60,.18);

    background:
        linear-gradient(
            135deg,
            rgba(251,146,60,.07),
            rgba(239,68,68,.025)
        );
}

.streak-restore-card[hidden] {
    display: none;
}

.streak-restore-left {
    display: flex;
    align-items: center;

    gap: 14px;
}

.streak-restore-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    background:
        rgba(251,146,60,.10);

    font-size: 22px;
}

.streak-restore-left span {
    color: #fb923c;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.streak-restore-left h3 {
    margin-top: 4px;

    font-size: 15px;
}

.streak-restore-left p {
    margin-top: 4px;

    color: rgba(255,255,255,.48);

    font-size: 9px;
}

.streak-restore-actions {
    display: flex;

    gap: 9px;

    flex-wrap: wrap;
}

.restore-btn {
    padding: 11px 13px;

    border: none;
    border-radius: 10px;

    font-family: inherit;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.restore-xp {
    color: #03171b;

    background: #67e8f9;
}

.restore-coins {
    color: #fef3c7;

    background:
        rgba(245,158,11,.12);

    border:
        1px solid rgba(245,158,11,.18);
}

@media (max-width: 700px) {

    .streak-restore-card {
        flex-direction: column;
        align-items: flex-start;
    }

}
.header-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-premium-badge {
    display: inline-grid;
    place-items: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    border-radius: 999px;

    color: #ede9fe;

    background:
        linear-gradient(
            135deg,
            rgba(124,58,237,.25),
            rgba(59,130,246,.18)
        );

    border:
        1px solid rgba(167,139,250,.28);

    box-shadow:
        0 0 14px
        rgba(139,92,246,.14);

    font-size: 10px;
}

.dashboard-premium-badge[hidden] {
    display: none;
}
/* ======================================
   DASHBOARD OVERVIEW + ANIMATIONS
====================================== */

.today-overview {
    margin-top: 22px;
    padding: 22px;

    border-radius: 20px;

    border:
        1px solid rgba(255,255,255,.07);

    background:
        linear-gradient(
            135deg,
            rgba(34,211,238,.06),
            rgba(99,102,241,.035)
        );

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);

    position: relative;
    overflow: hidden;
}

.today-overview::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -60px;
    top: -80px;

    border-radius: 50%;

    background:
        rgba(34,211,238,.08);

    filter: blur(28px);

    animation:
        dashboardGlow 5s ease-in-out infinite alternate;
}

.overview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    position: relative;
    z-index: 1;
}

.overview-label {
    color: #67e8f9;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.overview-top h2 {
    margin-top: 5px;
    font-size: 20px;
}

.overview-top p {
    margin-top: 5px;

    color: rgba(255,255,255,.45);

    font-size: 9px;
}

.completion-ring {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #22d3ee 0deg,
            rgba(255,255,255,.07) 0deg
        );

    transition:
        background .5s ease;
}

.completion-ring-inner {
    width: 64px;
    height: 64px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #0a151a;
}

.completion-ring-inner strong {
    font-size: 17px;
}

.completion-ring-inner small {
    margin-top: 2px;

    color: rgba(255,255,255,.35);

    font-size: 6px;
    font-weight: 800;
}

.today-progress-bar {
    width: 100%;
    height: 7px;

    margin-top: 20px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.055);
}

.today-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #22d3ee,
            #6366f1
        );

    transition:
        width .7s ease;
}

.today-progress-text {
    margin-top: 9px;

    display: flex;
    justify-content: space-between;

    color: rgba(255,255,255,.40);

    font-size: 8px;
}

/* ======================================
   JOURNEY GRID
====================================== */

.journey-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.journey-card {
    min-height: 115px;

    padding: 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,.06);

    background:
        rgba(255,255,255,.022);

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.journey-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(103,232,249,.16);

    box-shadow:
        0 18px 38px rgba(0,0,0,.20);
}

.journey-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(103,232,249,.07);

    font-size: 19px;
}

.journey-card small {
    color: rgba(255,255,255,.36);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .8px;
}

.journey-card strong {
    display: block;

    margin-top: 5px;

    font-size: 20px;
}

.journey-card p {
    margin-top: 2px;

    color: rgba(255,255,255,.32);

    font-size: 7px;
}

/* ======================================
   DAILY XP
====================================== */

.daily-xp-card {
    margin-top: 14px;
    padding: 18px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,.06);

    background:
        rgba(255,255,255,.02);
}

.daily-xp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.daily-xp-header small {
    color: #67e8f9;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.daily-xp-header h3 {
    margin-top: 4px;

    font-size: 13px;
}

.daily-xp-header strong {
    color: rgba(255,255,255,.55);

    font-size: 9px;
}

.daily-xp-track {
    width: 100%;
    height: 6px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.055);
}

.daily-xp-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #22d3ee,
            #8b5cf6
        );

    transition:
        width .6s ease;
}

/* ======================================
   ENTRANCE ANIMATION
====================================== */

.dashboard-reveal {
    opacity: 0;
    transform: translateY(18px);

    animation:
        dashboardReveal .55s ease forwards;
}

.dashboard-reveal:nth-child(1) {
    animation-delay: .05s;
}

.dashboard-reveal:nth-child(2) {
    animation-delay: .10s;
}

.dashboard-reveal:nth-child(3) {
    animation-delay: .15s;
}

.dashboard-reveal:nth-child(4) {
    animation-delay: .20s;
}

@keyframes dashboardReveal {

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

}

@keyframes dashboardGlow {

    from {
        transform:
            scale(.9)
            translate(0, 0);
    }

    to {
        transform:
            scale(1.15)
            translate(-15px, 18px);
    }

}

/* Existing cards ko bhi thoda alive feel */

.stat-card,
.xp-card,
.rank-card {
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.stat-card:hover,
.xp-card:hover,
.rank-card:hover {
    transform:
        translateY(-3px);
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 900px) {

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

}

@media (max-width: 560px) {

    .today-overview {
        padding: 17px;
    }

    .overview-top {
        align-items: flex-start;
    }

    .completion-ring {
        width: 70px;
        height: 70px;
    }

    .completion-ring-inner {
        width: 54px;
        height: 54px;
    }

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

    .journey-card {
        min-height: 100px;
        padding: 12px;

        flex-direction: column;
        align-items: flex-start;
    }

}
.habit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.habit-notification-btn {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    border:
        1px solid rgba(103,232,249,.18);

    background:
        rgba(34,211,238,.07);

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.habit-notification-btn:hover {
    transform: scale(1.08);
}

.habit-notification-btn.off {
    opacity: .35;
    filter: grayscale(1);
}
.habit-delete-btn {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    border:
        1px solid rgba(248,113,113,.12);

    background:
        rgba(248,113,113,.045);

    cursor: pointer;

    opacity: .55;

    transition:
        opacity .2s ease,
        transform .2s ease,
        background .2s ease;
}

.habit-delete-btn:hover {
    opacity: 1;

    transform: scale(1.08);

    background:
        rgba(248,113,113,.10);
}