﻿/* ==================== Activation Screen ==================== */
.activation-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1a2e 60%, #0a0a1a 100%);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 0;
}

.activation-screen.hidden {
    display: none;
}

.activation-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.activation-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0.8;
    }
}

.activation-container {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    margin: auto;
}

.activation-logo {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activation-logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 22px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 40px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
    margin-bottom: 18px;
    display: block;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 40px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 50px rgba(139, 92, 246, 0.7), 0 0 80px rgba(236, 72, 153, 0.3);
    }
}

.activation-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3s linear infinite;
    margin-bottom: 8px;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.activation-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 300;
}

.activation-card {
    background: rgba(26, 26, 40, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(139, 92, 246, 0.08);
}

.activation-card-header {
    margin-bottom: 30px;
}

.activation-lock-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px;
}

.activation-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.activation-card-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.activation-form {
    margin-bottom: 20px;
}

.activation-input-group {
    text-align: right;
    margin-bottom: 20px;
}

.activation-input-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.activation-input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.activation-input-group input:focus {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.activation-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.activation-input-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    text-align: center;
    direction: ltr;
}

.activation-error {
    color: #ef4444;
    font-size: 0.85rem;
    min-height: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.activation-error.show {
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.activation-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activation-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.activation-btn:active {
    transform: translateY(0);
}

.activation-btn.loading .activation-btn-text {
    opacity: 0;
}

.activation-btn.loading .activation-btn-loader {
    display: block;
}

.activation-btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.activation-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activation-footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.activation-version {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.activation-success {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.activation-success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.activation-success h3 {
    color: #10b981;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.activation-success p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --bg-hover: #252538;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    height: 100vh;
    position: fixed;
    right: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}

.nav {
    flex: 1;
    padding: 15px 10px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.btn-export,
.btn-import {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-export {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.btn-import {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    margin-right: 240px;
    min-height: 100vh;
}

.header {
    background: var(--bg-secondary);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

.header-center {
    flex: 1;
}

.header-center h1 {
    font-size: 1.3rem;
}

.date-display {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(20deg) scale(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-notification {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
}

.notif-badge {
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 5px;
}

.notifications-panel {
    position: fixed;
    top: 60px;
    left: 20px;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    z-index: 200;
    display: none;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.notifications-panel.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.notifications-panel h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-notif {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    margin-bottom: 10px;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-item.unread {
    border-right: 3px solid var(--accent-primary);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    top: 12px;
    right: -8px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.notif-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notif-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.notif-item:hover .notif-delete {
    opacity: 1;
}

.notif-delete:hover {
    color: var(--accent-red);
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-color: var(--accent-green);
}

.toast.warning {
    border-color: var(--accent-orange);
}

.toast.error {
    border-color: var(--accent-red);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== Pages ==================== */
.pages-container {
    padding: 25px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==================== Quick Actions ==================== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.quick-btn span:first-child {
    font-size: 1.1rem;
}

/* ==================== Mini Stats ==================== */
.today-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.mini-stat {
    background: var(--bg-card);
    padding: 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.mini-stat.success {
    border-right: 3px solid var(--accent-green);
}

.mini-stat.warning {
    border-right: 3px solid var(--accent-orange);
}

.mini-stat.info {
    border-right: 3px solid var(--accent-cyan);
}

.mini-icon {
    font-size: 1.5rem;
}

.mini-value {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.mini-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== Fasting Widget ==================== */
.fasting-widget {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.fasting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fasting-header h3 {
    font-size: 1rem;
}

.fasting-type {
    background: var(--accent-green);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fasting-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.timer-ring {
    position: relative;
}

.timer-ring svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 8;
}

.timer-fill {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.timer-text span:last-child {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fasting-actions {
    text-align: center;
}

.fasting-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fasting-btn.start {
    background: var(--accent-green);
    color: white;
}

.fasting-btn.stop {
    background: var(--accent-red);
    color: white;
}

/* ==================== Sections ==================== */
.section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.1rem;
}

.btn-add-small,
.btn-edit {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ==================== Tasks ==================== */
.tasks-list,
.all-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.task-item:hover {
    border-color: var(--accent-primary);
}

.task-item.done {
    opacity: 0.5;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.task-checkbox.checked::after {
    content: 'âœ“';
    color: white;
    font-size: 0.8rem;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.task-title.done {
    text-decoration: line-through;
}

.task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.tag-work {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.tag-personal {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

.tag-health {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.tag-study {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tag-finance {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.tag-high {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.tag-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.tag-low {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.task-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.task-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: var(--accent-red);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.empty-state a {
    color: var(--accent-primary);
}

/* ==================== Filter Tabs ==================== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
}

.filter-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ==================== Budget Page ==================== */
.budget-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.budget-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
}

.budget-card.savings {
    border-top: 3px solid var(--accent-green);
}

.budget-card.expenses {
    border-top: 3px solid var(--accent-red);
}

.budget-card.target {
    border-top: 3px solid var(--accent-cyan);
}

.budget-icon {
    font-size: 2rem;
}

.budget-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.budget-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.savings-progress-bar {
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.savings-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 15px;
    transition: width 0.5s ease;
    width: 0%;
}

.savings-percent {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
}

.savings-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.budget-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.budget-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.budget-btn.save {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.budget-btn.expense {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.budget-btn:hover {
    transform: translateY(-2px);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transaction-icon.saving {
    background: rgba(16, 185, 129, 0.2);
}

.transaction-icon.expense {
    background: rgba(239, 68, 68, 0.2);
}

.transaction-info {
    flex: 1;
}

.transaction-note {
    font-weight: 500;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--accent-green);
}

.transaction-amount.negative {
    color: var(--accent-red);
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.alert-card.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-card h4 {
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.alert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== Fasting Page ==================== */
.fasting-main {
    text-align: center;
    padding: 20px 0;
}

.fasting-timer-large {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.fasting-timer-large svg {
    transform: rotate(-90deg);
}

.timer-bg-large {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 12;
}

.timer-fill-large {
    fill: none;
    stroke: url(#fastingGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 691.15;
    stroke-dashoffset: 691.15;
    transition: stroke-dashoffset 1s ease;
}

.timer-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timer-big {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fasting-info-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fasting-info-card {
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.fasting-controls {
    margin-bottom: 30px;
}

.fasting-main-btn {
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.fasting-main-btn:hover {
    transform: scale(1.05);
}

.fasting-main-btn.active {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
}

.fasting-types {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.fasting-types h3 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.fasting-type-options {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.type-btn {
    padding: 12px 25px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.fasting-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.fasting-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== Books Page ==================== */
.reading-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.reading-stat {
    text-align: center;
}

.reading-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reading-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.book-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.book-card:hover {
    border-color: var(--accent-primary);
}

.book-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.book-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.book-progress {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.book-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    border-radius: 4px;
}

.book-pages {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.book-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.book-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.book-btn.update {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
}

.book-btn.complete {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.reading-goal {
    text-align: center;
}

.reading-goal-progress {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.goal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
    width: 0%;
}

/* ==================== Habits Page ==================== */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.habit-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.habit-card:hover {
    border-color: var(--accent-primary);
}

.habit-card.done {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.habit-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.habit-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.habit-streak {
    font-size: 0.85rem;
    color: var(--accent-orange);
}

/* ==================== Health Page ==================== */
.health-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.health-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.health-card.water {
    border-top: 3px solid var(--accent-blue);
}

.health-card.weight {
    border-top: 3px solid var(--accent-pink);
}

.health-card.steps {
    border-top: 3px solid var(--accent-green);
}

.health-card.sleep {
    border-top: 3px solid var(--accent-purple, var(--accent-primary));
}

.health-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.health-value {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
}

.health-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.health-progress {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
}

.btn-small {
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    border: none;
    border-radius: 15px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.water-cups {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.water-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.water-cup,
.water-bottle {
    width: 70px;
    height: 85px;
    background: var(--bg-secondary);
    border-radius: 10px 10px 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
    border: 2px solid var(--border);
    position: relative;
}

.water-bottle .bottle-icon {
    font-size: 1.8rem;
}

.water-bottle .bottle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.water-cup.filled,
.water-bottle.filled {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.5));
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.water-bottle.filled .bottle-icon {
    animation: waterPulse 0.5s ease;
}

.water-bottle:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

@keyframes waterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.weight-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.weight-entry {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* ==================== Vitamins Tracker ==================== */
.vitamins-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
}

.vitamins-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    border-right: 3px solid var(--accent-primary);
}

.vitamins-progress-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.vitamins-progress-badge.complete {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border-color: var(--accent-green);
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.vitamins-time-legend {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.time-tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.time-tag.morning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.time-tag.noon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.time-tag.night {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.vitamins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 15px;
}

.vitamin-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.vitamin-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.vitamin-card.all-taken {
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

/* Product Image Area */
.vitamin-product-img {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vitamin-product-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.15), transparent 60%);
}

.vitamin-product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-secondary));
}

.vitamin-product-bottle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    animation: bottleFloat 3s ease-in-out infinite;
}

@keyframes bottleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.vitamin-product-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    line-height: 1;
}

.vitamin-product-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.vitamin-check-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Vitamin Details Section */
.vitamin-details {
    padding: 14px 16px 16px;
}

.vitamin-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.vitamin-brand {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    direction: ltr;
    text-align: right;
}

.vitamin-benefit {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.vitamin-dosage {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    padding: 6px 10px;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 6px;
    margin-bottom: 10px;
}

.vitamin-times {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vitamin-time-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vitamin-time-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.08);
}

.vitamin-time-btn.taken {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
    animation: vitaminCheck 0.3s ease;
}

@keyframes vitaminCheck {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.vitamins-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-right: 3px solid var(--accent-orange);
}

.vitamins-disclaimer span {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ==================== Calendar ==================== */
.calendar-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-nav {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.day-name {
    text-align: center;
    padding: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-secondary);
    font-size: 0.9rem;
}

.calendar-day:hover {
    background: var(--bg-hover);
}

.calendar-day.today {
    background: var(--accent-primary);
}

.calendar-day.selected {
    border: 2px solid var(--accent-cyan);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.day-dots {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.selected-day-tasks {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
}

/* ==================== Stats Page ==================== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-big {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.week-activity {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    padding: 20px 0;
}

.week-bar {
    width: 40px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-cyan));
    border-radius: 5px 5px 0 0;
    min-height: 10px;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.achievement {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 2px solid var(--border);
}

.achievement.unlocked {
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.1);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.achievement-name {
    font-size: 0.85rem;
}

/* ==================== Quote Card ==================== */
.quote-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    font-style: italic;
    color: var(--accent-cyan);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ==================== Current Book Widget ==================== */
.current-book {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.current-book-cover {
    width: 50px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.current-book-info {
    flex: 1;
}

.current-book-title {
    font-weight: 600;
}

.current-book-progress {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== Modals ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.emoji-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emoji-opt {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--bg-card);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.emoji-opt.selected {
    border-color: var(--accent-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-add {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.search-box input {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-primary);
    font-family: inherit;
    min-width: 250px;
}

/* ==================== Celebration ==================== */
.celebration-content {
    text-align: center;
    padding: 40px;
    animation: celebrate 0.5s ease;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.confetti {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.celebration-content h2 {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {

    .today-stats,
    .budget-summary,
    .health-summary,
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-right: 0;
    }

    .menu-btn {
        display: block;
    }

    .pages-container {
        padding: 15px;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .quick-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    .today-stats,
    .budget-summary,
    .health-summary,
    .stats-overview {
        grid-template-columns: 1fr 1fr;
    }

    .fasting-info-cards {
        gap: 10px;
    }

    .fasting-stats {
        gap: 20px;
    }

    .reading-stats {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .today-stats,
    .health-summary {
        grid-template-columns: 1fr 1fr;
    }

    .budget-summary,
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .mini-stat {
        padding: 12px;
    }

    .mini-value {
        font-size: 1.2rem;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .habit-card {
        padding: 15px;
    }

    .habit-emoji {
        font-size: 2rem;
    }
}

/* ==================== Form Hints ==================== */
.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

/* ==================== Carry Over Modal ==================== */
.carry-over-content {
    padding: 15px 0;
}

.carry-over-message {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.carry-over-tasks {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carry-over-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.carry-over-task:hover {
    border-color: var(--accent-primary);
}

.carry-over-task .task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-orange);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.carry-over-task .task-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.carry-over-task .task-checkbox.checked::after {
    content: 'âœ“';
    color: white;
    font-size: 0.75rem;
}

.carry-over-task-title {
    flex: 1;
    font-size: 0.95rem;
}

/* ==================== Yearly Report ==================== */
.yearly-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-desc {
    color: var(--text-secondary);
    margin: 10px 0;
    font-size: 0.9rem;
}

.yearly-preview {
    margin-top: 15px;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.preview-stat {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.preview-stat:hover {
    transform: translateY(-3px);
}

.preview-icon {
    font-size: 1.5rem;
}

.preview-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal Large */
.modal-large {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.yearly-report-content {
    padding: 10px 0;
}

/* Yearly Report Styles */
.yearly-report h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.report-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.report-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.report-stat {
    text-align: center;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.report-list {
    margin-top: 15px;
}

.report-list h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.report-list ul {
    list-style: none;
    padding: 0;
}

.report-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.report-list li:last-child {
    border-bottom: none;
}

.empty-report {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    padding: 15px;
}

/* Book Daily Progress */
.book-daily-goal {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-top: 5px;
}

.book-reading-log {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .yearly-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-large {
        max-width: 100%;
        margin: 10px;
    }
}

/* ==================== Reports Page ==================== */
.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.period-tabs {
    display: flex;
    gap: 8px;
}

.period-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.period-tab:hover {
    background: var(--bg-hover);
}

.period-tab.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.date-selector input[type="date"] {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.date-selector input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Report Summary Cards */
.report-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.report-summary-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.report-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.report-summary-card.tasks {
    border-right: 3px solid var(--accent-primary);
}

.report-summary-card.fasting {
    border-right: 3px solid var(--accent-green);
}

.report-summary-card.savings {
    border-right: 3px solid var(--accent-cyan);
}

.report-summary-card.expenses {
    border-right: 3px solid var(--accent-orange);
}

.summary-icon {
    font-size: 1.8rem;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Report Sections */
.report-section {
    margin-bottom: 20px;
}

.report-period-label {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Tasks Report */
.report-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.report-task-item:hover {
    background: var(--bg-hover);
}

.report-task-item.completed {
    opacity: 0.8;
}

.report-task-item.pending {
    border-right: 3px solid var(--accent-orange);
}

.report-task-item.completed {
    border-right: 3px solid var(--accent-green);
}

.report-task-status {
    font-size: 1.2rem;
}

.report-task-info {
    flex: 1;
}

.report-task-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.report-task-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.task-category {
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.task-completed-time {
    color: var(--accent-green);
}

/* Fasting Report */
.fasting-report-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.fasting-report-stat {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.fasting-report-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.fasting-report-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.report-fasting-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fasting-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.fasting-log-item.completed {
    border-right: 3px solid var(--accent-green);
}

.fasting-log-item.incomplete {
    border-right: 3px solid var(--accent-orange);
}

.fasting-log-icon {
    font-size: 1.2rem;
}

.fasting-log-info {
    flex: 1;
}

.fasting-log-date {
    font-weight: 500;
}

.fasting-log-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fasting-log-hours {
    font-weight: 700;
    color: var(--accent-green);
}

/* Finance Report */
.finance-report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.finance-stat {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.finance-stat.positive {
    border-right: 3px solid var(--accent-green);
}

.finance-stat.negative {
    border-right: 3px solid var(--accent-red);
}

.finance-stat.net {
    border-right: 3px solid var(--accent-cyan);
}

.finance-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.finance-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.finance-value.positive {
    color: var(--accent-green);
}

.finance-value.negative {
    color: var(--accent-red);
}

.report-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.report-transaction-item.saving {
    border-right: 3px solid var(--accent-green);
}

.report-transaction-item.expense {
    border-right: 3px solid var(--accent-red);
}

.transaction-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transaction-icon-wrapper.saving {
    background: rgba(16, 185, 129, 0.15);
}

.transaction-icon-wrapper.expense {
    background: rgba(239, 68, 68, 0.15);
}

.transaction-details {
    flex: 1;
}

.transaction-details .transaction-note {
    font-weight: 500;
}

.transaction-details .transaction-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.positive {
    color: var(--accent-green);
}

.transaction-amount.negative {
    color: var(--accent-red);
}

/* Habits Report */
.report-habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.report-habit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.report-habit-card .habit-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
}

.report-habit-card .habit-details {
    flex: 1;
}

.report-habit-card .habit-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.habit-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.habit-progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.habit-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    border-radius: 4px;
    transition: width 0.3s;
}

.habit-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Reading Report */
.reading-report-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.reading-report-stat {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.reading-report-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.reading-report-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.report-reading-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reading-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--accent-cyan);
}

.reading-log-icon {
    font-size: 1.2rem;
}

.reading-log-info {
    flex: 1;
}

.reading-log-book {
    font-weight: 500;
}

.reading-log-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reading-log-pages {
    font-weight: 700;
    color: var(--accent-cyan);
}

.completed-books-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.completed-books-section h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.completed-book-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.completed-book-item .book-icon {
    font-size: 1rem;
}

.completed-book-item .book-title {
    flex: 1;
    font-weight: 500;
}

.completed-book-item .book-pages {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Reports Responsive */
@media (max-width: 900px) {
    .report-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .fasting-report-stats,
    .finance-report-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .reports-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .period-tabs {
        width: 100%;
    }

    .period-tab {
        flex: 1;
        text-align: center;
        padding: 10px;
    }

    .date-selector {
        width: 100%;
        justify-content: center;
    }

    .report-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .fasting-report-stats,
    .finance-report-summary {
        grid-template-columns: 1fr;
    }

    .reading-report-summary {
        grid-template-columns: 1fr;
    }

    .report-habits-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Suggestions Page ==================== */
.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.suggestions-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.suggestions-intro p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-refresh {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.suggestion-section {
    margin-bottom: 30px;
}

.suggestion-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.suggestion-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.suggestion-card.book {
    border-right: 4px solid var(--accent-cyan);
}

.suggestion-card.course {
    border-right: 4px solid var(--accent-primary);
}

.suggestion-card.habit {
    border-right: 4px solid var(--accent-green);
}

.suggestion-card.task {
    border-right: 4px solid var(--accent-orange);
}

.suggestion-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.suggestion-author,
.suggestion-platform,
.suggestion-benefit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.suggestion-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.suggestion-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-meta .task-priority,
.suggestion-meta .task-cat {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--bg-secondary);
}

.btn-add-suggestion {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.btn-add-suggestion:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
}

.motivation-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 20px;
}

.motivation-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.motivation-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.empty-suggestions {
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
    font-size: 1rem;
}

/* Suggestions Responsive */
@media (max-width: 600px) {
    .suggestions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-refresh {
        width: 100%;
        text-align: center;
    }

    .suggestions-grid {
        grid-template-columns: 1fr;
    }

    .motivation-card {
        padding: 20px;
    }

    .motivation-card p {
        font-size: 1rem;
    }
}

/* ==================== Digital Detox Page ==================== */
.detox-info-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.detox-info-icon {
    font-size: 3rem;
}

.detox-info-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--accent-red);
}

.detox-info-content p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.detox-info-content small {
    color: var(--accent-orange);
    font-weight: 600;
}

.detox-timer-section {
    text-align: center;
}

.detox-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.detox-timer-display {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.detox-timer-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 4px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.detox-timer-circle.active {
    border-color: var(--accent-green);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    animation: pulse-detox 2s infinite;
}

@keyframes pulse-detox {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(16, 185, 129, 0.5);
    }
}

.timer-content {
    text-align: center;
}

.timer-days {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.timer-content .timer-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 8px 0;
}

.timer-hours {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.detox-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.detox-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detox-btn.start {
    background: linear-gradient(135deg, var(--accent-green), #22d3ee);
    color: white;
}

.detox-btn.start:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.detox-btn.end {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
}

.detox-btn.end:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.friday-exception {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.friday-icon {
    font-size: 2rem;
}

.friday-exception p {
    flex: 1;
    color: var(--accent-orange);
    font-weight: 500;
}

.btn-friday-pause {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-friday-pause:hover {
    background: var(--accent-orange);
    color: white;
}

.detox-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.detox-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.detox-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.detox-stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.detox-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.detox-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.blocked-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.blocked-app {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.blocked-app span {
    font-size: 1.3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.benefit-icon {
    font-size: 1.8rem;
}

.benefit-card span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detox-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-history {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

.detox-history-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
}

.detox-history-item.completed {
    border-right: 3px solid var(--accent-green);
}

.detox-history-item.broken {
    border-right: 3px solid var(--accent-red);
}

.history-icon {
    font-size: 1.5rem;
}

.history-info {
    flex: 1;
}

.history-dates {
    font-weight: 600;
    margin-bottom: 5px;
}

.history-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-reason {
    font-size: 0.8rem;
    color: var(--accent-red);
    margin-top: 5px;
}

/* Detox Page Responsive */
@media (max-width: 900px) {
    .detox-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .detox-info-banner {
        flex-direction: column;
        text-align: center;
    }

    .detox-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detox-timer-circle {
        width: 180px;
        height: 180px;
    }

    .timer-days {
        font-size: 3rem;
    }

    .blocked-apps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .friday-exception {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== Achievements Summary ==================== */
.achievements-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.achievement-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.achievement-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Report Items */
.report-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.report-item-icon {
    font-size: 1.2rem;
}

.report-item-title {
    flex: 1;
    font-weight: 500;
}

.report-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Summary Boxes */
.courses-summary,
.habits-summary {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Report Period Buttons */
.report-period-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.report-period-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.report-period-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.report-period-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    border-color: transparent;
    color: white;
}

/* ==================== Bank Accounts Page ==================== */
.accounts-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.account-summary-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
}

.account-summary-card.total {
    border-right: 4px solid var(--accent-green);
}

.account-summary-card.count {
    border-right: 4px solid var(--accent-blue);
}

.account-summary-card.spending {
    border-right: 4px solid var(--accent-orange);
}

.account-summary-card .summary-icon {
    font-size: 2rem;
}

.account-summary-card .summary-info {
    display: flex;
    flex-direction: column;
}

.account-summary-card .summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.account-summary-card .summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.accounts-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.accounts-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.accounts-btn.add {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    color: white;
}

.accounts-btn.deposit {
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    color: white;
}

.accounts-btn.withdraw {
    background: linear-gradient(135deg, var(--accent-orange), #f97316);
    color: white;
}

.accounts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.empty-accounts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.empty-accounts .empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.btn-add-account {
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-account:hover {
    background: var(--accent-secondary);
}

.bank-account-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    border-right: 4px solid;
    transition: all 0.2s;
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.account-bank-icon {
    font-size: 2rem;
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.account-bank-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.account-delete {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.bank-account-card:hover .account-delete {
    opacity: 1;
}

.account-delete:hover {
    filter: grayscale(0);
}

.account-balance {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.account-balance span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.account-balance.low {
    color: var(--accent-orange);
}

.low-badge {
    font-size: 0.75rem !important;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange) !important;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600 !important;
}

.account-actions {
    display: flex;
    gap: 10px;
}

.acc-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.acc-btn.deposit {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.acc-btn.withdraw {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.acc-btn:hover {
    transform: translateY(-2px);
}

.account-alerts {
    margin-bottom: 20px;
}

.account-alerts .alert-card.info {
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.1);
}

.account-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.account-transaction-item:hover {
    background: var(--bg-hover);
}

.account-transaction-item .transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.account-transaction-item .transaction-icon.deposit {
    background: rgba(16, 185, 129, 0.15);
}

.account-transaction-item .transaction-icon.withdraw {
    background: rgba(245, 158, 11, 0.15);
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-note {
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.account-transaction-item .transaction-amount {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.transaction-amount.positive {
    color: var(--accent-green);
}

.transaction-amount.negative {
    color: var(--accent-orange);
}

.empty-transactions {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spending-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.analytics-card {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 10px;
    flex-shrink: 0;
}

.analytics-info {
    flex: 1;
    min-width: 0;
}

.analytics-category {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.analytics-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.analytics-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.analytics-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Responsive for Bank Accounts */
@media (max-width: 768px) {
    .accounts-summary {
        grid-template-columns: 1fr;
    }

    .accounts-actions {
        flex-direction: column;
    }

    .accounts-btn {
        justify-content: center;
    }

    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }

    .spending-analytics {
        grid-template-columns: 1fr;
    }
}

/* ==================== PDF Upload ==================== */
.pdf-upload-container {
    position: relative;
}

.pdf-upload-container input[type="file"] {
    display: none;
}

.pdf-upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.pdf-upload-box:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.pdf-upload-box.has-file {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-remove-pdf {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-remove-pdf:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ==================== PDF Reader Overlay ==================== */
.pdf-reader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.pdf-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.pdf-reader-close {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-reader-close:hover {
    background: var(--accent-red);
    color: white;
}

.pdf-reader-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.pdf-reader-progress {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pdf-reader-content {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-primary);
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.pdf-reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.pdf-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-nav-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.pdf-nav-btn:disabled {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.pdf-page-input {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.pdf-page-input input {
    width: 60px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.pdf-page-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.pdf-reader-progress-bar {
    height: 4px;
    background: var(--bg-card);
    width: 100%;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    transition: width 0.3s ease;
    width: 0%;
}

/* Book Card with PDF Button */
.book-btn.read {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    color: white;
    border: none;
}

.book-btn.read:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Responsive for PDF Reader */
@media (max-width: 768px) {
    .pdf-reader-header {
        padding: 10px 15px;
    }

    .pdf-reader-title {
        font-size: 0.9rem;
    }

    .pdf-reader-controls {
        gap: 10px;
        padding: 10px;
    }

    .pdf-nav-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .pdf-page-input input {
        width: 50px;
        padding: 8px;
    }
}

/* PDF Badge for Books */
.book-pdf-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.book-card.has-pdf {
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ==================== Health Challenges ==================== */
.challenges-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.08));
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 20px;
}

.challenges-hero-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    border-radius: 16px;
    flex-shrink: 0;
}

.challenges-hero-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.challenges-hero-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.challenges-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 8px;
    border-right: 3px solid var(--accent-primary);
}

/* Challenge Stats Grid */
.challenge-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.challenge-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.challenge-stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.challenge-stat-card .stat-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.challenge-stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.challenge-stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Active Challenges */
.active-count {
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.active-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.active-challenge-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.active-challenge-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.active-challenge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    position: relative;
}

.active-challenge-emoji {
    font-size: 1.8rem;
}

.active-challenge-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.challenge-quit-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-quit-btn:hover {
    background: rgba(239, 68, 68, 0.6);
}

.active-challenge-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Progress Ring */
.challenge-progress-ring {
    position: relative;
    width: 110px;
    height: 110px;
}

.challenge-progress-ring svg {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-percent {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.ring-days {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Challenge Info Row */
.challenge-info-row {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.challenge-info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Check-in Button */
.challenge-checkin-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-checkin-btn:not(.checked):hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.02);
}

.challenge-checkin-btn.checked {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
    cursor: default;
}

/* Available Challenges Grid */
.available-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.challenge-preset-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.challenge-preset-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.challenge-preset-card.already-active {
    opacity: 0.7;
}

.challenge-preset-img {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.challenge-preset-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--bg-secondary));
}

.challenge-preset-emoji {
    font-size: 2.8rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    z-index: 1;
    animation: bottleFloat 3s ease-in-out infinite;
}

.challenge-active-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.challenge-preset-details {
    padding: 12px 16px 16px;
}

.challenge-preset-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.challenge-preset-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.challenge-preset-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.benefit-chip {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.challenge-preset-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.challenge-difficulty {
    font-size: 0.75rem;
    font-weight: 700;
}

.challenge-status-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-green);
}

.challenge-duration-btns {
    display: flex;
    gap: 5px;
}

.challenge-dur-btn {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.challenge-dur-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Completed Challenges */
.completed-challenge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.completed-challenge-item:hover {
    border-color: var(--accent-green);
}

.completed-challenge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.completed-challenge-info {
    flex: 1;
    min-width: 0;
}

.completed-challenge-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.completed-challenge-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.completed-badge {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Responsive for challenges */
@media (max-width: 480px) {
    .challenge-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .available-challenges-grid,
    .active-challenges-grid {
        grid-template-columns: 1fr;
    }

    .challenge-duration-btns {
        flex-wrap: wrap;
    }
}

/* ==================== Light Theme ==================== */
/* Smooth transition for all theme-related properties */
body,
.sidebar,
.header,
.main-content,
.section,
.toast,
.modal-content,
.notifications-panel,
.notif-item,
.task-item,
.quick-btn,
.mini-stat,
.fasting-widget,
.budget-card,
.filter-tab,
.btn-notification,
.btn-theme-toggle,
.nav-item,
.modal-overlay,
.calendar-container,
.health-card,
.book-card,
.habit-card,
.transaction-item,
.account-summary-card,
.bank-account-card,
.stat-box,
.quote-card,
.challenge-card,
.detox-card {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f5f5fa;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.65);
    --text-muted: rgba(26, 26, 46, 0.4);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

[data-theme="light"] .sidebar {
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mini-stat {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .section {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .task-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .notif-item {
    background: var(--bg-primary);
}

[data-theme="light"] .quick-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-item.active {
    color: white;
}

[data-theme="light"] .logo-text {
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .logo-img {
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .budget-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .toast {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-box {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .fasting-widget {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .timer-bg,
[data-theme="light"] .timer-bg-large {
    stroke: #e5e7eb;
}

[data-theme="light"] .quote-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(236, 72, 153, 0.04));
    border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .health-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .book-card,
[data-theme="light"] .habit-card,
[data-theme="light"] .challenge-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] select,
[data-theme="light"] input,
[data-theme="light"] textarea {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="light"] .calendar-day {
    color: var(--text-primary);
}

[data-theme="light"] .calendar-day:hover {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .btn-export {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .btn-import {
    background: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .bank-account-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .account-summary-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ==================== Subscription Plans & Feature Gating ==================== */

/* Plan Badge in Header */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 10px;
    animation: badgePulse 2s ease-in-out infinite;
}

.plan-badge.pro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.plan-badge.basic {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* Pro-Locked Sidebar Items */
.nav-item.pro-locked {
    opacity: 0.5;
    position: relative;
}

.nav-item.pro-locked:hover {
    opacity: 0.7;
}

.pro-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 0.65rem;
    animation: starGlow 1.5s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.3);
    }
}

/* Pro-Locked Button */
.pro-locked-btn {
    position: relative;
    opacity: 0.5;
}

.pro-locked-btn::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

/* ==================== Upgrade Modal ==================== */
.upgrade-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.upgrade-content {
    padding: 20px;
}

.upgrade-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.plan-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plan-card.recommended {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(236, 72, 153, 0.05));
}

.plan-recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-header-card {
    text-align: center;
    margin-bottom: 20px;
}

.plan-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.plan-header-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features-list li {
    padding: 8px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.plan-features-list li:last-child {
    border-bottom: none;
}

.upgrade-footer {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.upgrade-footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upgrade-note {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
}

/* ==================== Key Generation Modal ==================== */
.key-gen-modal {
    max-width: 500px;
}

/* Key Generation and Upgrade modals must appear above activation screen (z-index: 10000) */
#keyGenModal {
    z-index: 10001;
}

#upgradeModal {
    z-index: 10001;
}

.key-gen-content {
    padding: 25px;
}

.key-gen-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.key-gen-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.key-gen-btn {
    margin-top: 10px;
    padding: 15px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink)) !important;
}

.key-gen-result {
    text-align: center;
}

.generated-key-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.key-gen-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.generated-key {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    letter-spacing: 3px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    direction: ltr;
    margin-bottom: 15px;
    word-break: break-all;
}

.btn-copy-key {
    padding: 10px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-key:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.key-gen-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.timer-icon {
    font-size: 1.2rem;
}

.key-gen-instructions {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.key-gen-instructions p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.key-gen-instructions p:last-child {
    margin-bottom: 0;
}

/* ==================== Activation Screen Keygen Button ==================== */
.activation-keygen-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.activation-keygen-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* ==================== Responsive Adjustments for Plans ==================== */
@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-modal {
        max-width: 95vw;
    }

    .plan-price {
        font-size: 1.8rem;
    }

    .generated-key {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* ==================== Light Theme Overrides for Plans ==================== */
[data-theme="light"] .plan-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .plan-card.recommended {
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .plan-features-list li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .generated-key-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
}

[data-theme="light"] .key-gen-timer {
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .plan-badge.basic {
    background: rgba(100, 116, 139, 0.1);
}

/* ==================== Sidebar Nav Divider ==================== */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
    opacity: 0.5;
}

/* ==================== Header Profile Photo ==================== */
.header-profile-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.header-profile-photo:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ==================== Salary & Bills Section ==================== */
.salary-bills-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.salary-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.salary-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.salary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.salary-card.salary {
    border-right: 3px solid #10b981;
}

.salary-card.bills {
    border-right: 3px solid #ef4444;
}

.salary-card.remaining {
    border-right: 3px solid #8b5cf6;
}

.salary-card.paid {
    border-right: 3px solid #f59e0b;
}

.salary-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.salary-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.salary-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.salary-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Bills List */
.bills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.bill-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.bill-item.bill-paid {
    opacity: 0.6;
}

.bill-item.bill-paid .bill-name {
    text-decoration: line-through;
}

.bill-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.bill-info {
    flex: 1;
    min-width: 0;
}

.bill-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.bill-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bill-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.bill-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-primary);
}

.bill-actions {
    display: flex;
    gap: 6px;
}

.bill-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.bill-btn:hover {
    transform: scale(1.1);
}

.bill-btn.paid {
    background: rgba(16, 185, 129, 0.1);
}

.bill-btn.unpaid {
    background: rgba(239, 68, 68, 0.1);
}

.bill-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Bill item interactive styles (JS-generated) */
.bill-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.bill-check {
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.bill-item-main:active .bill-check {
    transform: scale(1.3);
}

.bill-item.paid {
    opacity: 0.55;
}

.bill-item.paid .bill-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.bill-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.bill-action-btn:hover {
    transform: scale(1.1);
}

.bill-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

.bill-action-btn.edit:hover {
    background: rgba(139, 92, 246, 0.15);
}

/* Profile & Header photo img */
.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== Profile Page ==================== */
.profile-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
}

.profile-photo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.profile-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border: 4px solid var(--border);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

.profile-photo-actions {
    display: flex;
    gap: 10px;
}

.profile-photo-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.profile-photo-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.profile-photo-btn.remove:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.profile-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.profile-section h3 {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.profile-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.profile-save-btn {
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.profile-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.profile-info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-info-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.profile-info-value.license-key {
    font-family: monospace;
    font-size: 0.8rem;
    direction: ltr;
    letter-spacing: 1px;
}

.profile-plan-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.profile-plan-value.pro {
    color: #f59e0b;
}

.profile-plan-value.basic {
    color: var(--text-secondary);
}

.profile-logout-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid #ef4444;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.profile-logout-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* ==================== Modal Body ==================== */
.modal-body {
    padding: 20px;
}

/* ==================== Payment Method Modal ==================== */
.payment-bill-name {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.08));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.payment-method-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.payment-method-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.payment-method-btn:active {
    transform: translateY(0);
}

.payment-method-btn.cash {
    border-color: rgba(16, 185, 129, 0.3);
}

.payment-method-btn.cash:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.payment-method-btn .pm-icon {
    font-size: 2rem;
}

.payment-method-btn .pm-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method-btn .pm-bank {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Paid Via Badge on Bill Items */
.bill-paid-via {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: #10b981;
    margin-top: 3px;
    font-weight: 500;
}

[data-theme="light"] .payment-method-btn {
    background: white;
}

[data-theme="light"] .payment-bill-name {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(236, 72, 153, 0.04));
}

[data-theme="light"] .bill-paid-via {
    background: rgba(16, 185, 129, 0.08);
}

/* ==================== Responsive Salary & Profile ==================== */
@media (max-width: 1024px) {
    .salary-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .salary-summary {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        font-size: 2.8rem;
    }

    .profile-photo-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== Light Theme Overrides for Salary & Profile ==================== */
[data-theme="light"] .salary-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bill-item {
    background: white;
}

[data-theme="light"] .profile-section {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .profile-info-card {
    background: #f8fafc;
}

[data-theme="light"] .profile-field input {
    background: #f8fafc;
}

[data-theme="light"] .header-profile-photo {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}