




:root {
    --hour-height: 60px;


    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);


    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}


:root,
[data-theme="premium-dark"],
[data-theme="cozy-dark"],
[data-theme="classic-dark"] {

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;


    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --accent-dark: #06b6d4;


    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --secondary: #64748b;


    --bg-main: #0a0a0f;
    --bg-paper: #12121a;
    --bg-card: rgba(24, 24, 35, 0.85);
    --bg-card-solid: #181823;
    --bg-card-border: rgba(99, 102, 241, 0.15);
    --bg-elevated: rgba(30, 30, 45, 0.9);


    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;


    --input-bg: rgba(15, 15, 25, 0.8);
    --input-border: rgba(99, 102, 241, 0.3);
    --input-text: #f8fafc;


    --deco-cream: #1a1a2a;
    --deco-latte: #252535;
    --deco-coffee: #353545;


    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;


    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(34, 211, 238, 0.3);


    --glass-blur: blur(20px);
    --glass-bg: rgba(24, 24, 35, 0.7);


    --schedule-bg: linear-gradient(180deg, #0f0f18 0%, #0a0a0f 100%);
    --schedule-line-color: rgba(99, 102, 241, 0.1);
    --card-style: solid;
}


[data-theme="premium-light"],
[data-theme="cozy-light"],
[data-theme="classic-light"] {

    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;


    --accent: #0891b2;
    --accent-light: #06b6d4;
    --accent-dark: #0e7490;


    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --secondary: #64748b;


    --bg-main: #f8fafc;
    --bg-paper: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --bg-card-border: rgba(79, 70, 229, 0.15);
    --bg-elevated: rgba(255, 255, 255, 0.95);


    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;


    --input-bg: #ffffff;
    --input-border: rgba(79, 70, 229, 0.25);
    --input-text: #0f172a;


    --deco-cream: #f1f5f9;
    --deco-latte: #e2e8f0;
    --deco-coffee: #cbd5e1;


    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;


    --shadow-soft: 0 8px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.08);
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
    --shadow-glow-accent: 0 0 20px rgba(8, 145, 178, 0.15);


    --glass-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.8);


    --schedule-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --schedule-line-color: rgba(79, 70, 229, 0.08);
    --card-style: solid;
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    background: var(--bg-card);
    border-right: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.sidebar:hover {
    width: 200px;
}


* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-primary);
    margin: 0;
    transition: background var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    max-width: 100vw;
}

.sidebar-brand {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--bg-card-border);
    min-height: 64px;
}

.sidebar-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-body);
    width: 100%;
    text-align: left;
}

.sidebar-link i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.sidebar-label {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sidebar:hover .sidebar-label {
    opacity: 1;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.sidebar-link:hover i {
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-bottom {
    padding: 0.75rem;
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 992px) {


    html,
    body {
        height: 100vh;
        overflow: hidden;
    }

    body {
        display: flex;
    }


    #page-content {
        flex: 1;
        min-width: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.15s ease;
    }

    .main-content.with-sidebar {
        padding: 1.5rem;
        margin-left: 72px;
        width: calc(100% - 72px);
        height: 100vh;
        overflow-y: auto;

    }


    .app-main {
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: 100vh;
    }

    .app-main::-webkit-scrollbar {
        display: none;
    }


    .dashboard-main {
        display: flex;
        flex-direction: column;
        overflow: hidden !important;

    }

    .dashboard-main>.row {
        flex: 1;
        min-height: 0;
    }

    .dashboard-main .col-lg-8,
    .dashboard-main .col-lg-4 {
        height: 100%;
        overflow-y: auto;
        padding-bottom: 2rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .dashboard-main .col-lg-8::-webkit-scrollbar,
    .dashboard-main .col-lg-4::-webkit-scrollbar {
        display: none;
    }
}


@media (max-width: 991px) {
    .sidebar {
        display: none;
    }

    #page-content {
        width: 100%;
    }

    .main-content.with-sidebar {
        margin-left: 0;
        padding-top: 0;
    }

    .mobile-nav.nav-container {
        display: flex;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}


@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}


* {
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-primary);
    margin: 0;
    transition: background var(--transition-normal), color var(--transition-normal);
}


.nav-container {
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

@media (max-width: 991px) {
    .nav-container {
        margin: 0.5rem;
        padding: 0.5rem 0.25rem;
    }

    .nav-container .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text:hover {
    opacity: 0.9;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-body);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}


.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.3) 50%,
            transparent 100%);
    opacity: 0.8;
}

.glass-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: rgba(99, 102, 241, 0.25);
}

.card-padding {
    padding: 1rem;
}

@media (min-width: 992px) {
    .card-padding {
        padding: 1.2rem;
    }
}

.main-content {
    padding: 0 1rem 2rem;
}


.date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.date-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}


.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}


.navbar-toggler {
    border-color: var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28148, 163, 184, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        background: var(--bg-card);
        border: 1px solid var(--bg-card-border);
        border-radius: var(--radius-md);
        padding: 0.5rem;
    }

    .navbar-nav {
        gap: 0 !important;
    }

    .nav-item {
        padding: 0.25rem 0;
        border-bottom: none;
        display: block;
    }

    .nav-item .nav-link {
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
    }

    .nav-item .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
    }

    .nav-item .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-item .btn-ghost {
        width: auto;
    }
}

.section-header .section-title {
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 0.25rem;
}


.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-outline-secondary {
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: #0d9966;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}


.form-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.form-control:focus {
    background: var(--input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    color: var(--input-text);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-check-input {
    border-color: var(--bg-card-border);
    background-color: var(--input-bg);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}


.color-picker {
    display: flex;
    gap: 0.5rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.color-option:hover,
.color-option.selected {
    border-color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.color-option input {
    display: none;
}




.schedule-container {
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-card-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}


.timeline-item {
    display: flex;
    align-items: stretch;
    padding: 0 1rem;
    position: relative;
    transition: background-color var(--transition-fast);
}

.timeline-item:hover {
    background-color: rgba(99, 102, 241, 0.05);

}


.timeline-time {
    width: 60px;
    flex-shrink: 0;
    padding-top: 1rem;
    padding-right: 1rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-body);
}


.timeline-divider {
    position: relative;
    width: 24px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: transparent;
}

.timeline-line::before,
.timeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background-color: var(--bg-card-border);
}

.timeline-line::before {
    top: 0;
    height: calc(1rem - 4px);
}

.timeline-line::after {
    top: calc(1rem + 24px + 4px);
    bottom: 0;
}


.timeline-item:first-child .timeline-line {
    top: 0;
}

.timeline-item:first-child:not(.timeline-item-spillover) .timeline-line::before {
    display: none;
}

.timeline-item:last-child .timeline-line,
.timeline-item-last .timeline-line {
    bottom: 0;
    height: auto;
}

.timeline-item:last-child .timeline-line::after,
.timeline-item-last .timeline-line::after {
    display: none;
}

.timeline-circle {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 4px var(--bg-paper);

}

.timeline-circle i {
    font-size: 0.7rem;
}


.timeline-content {
    flex-grow: 1;
    padding: 1rem 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    cursor: pointer;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;

}

.timeline-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}


.ai-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
}

.ai-category-tag i {
    font-size: 0.55rem;
}

.ai-category-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}


.timeline-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 1rem;
}

.timeline-item.done .timeline-status {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-item.doing .timeline-status {
    border-color: var(--primary);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.timeline-item.done .timeline-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.timeline-item.done .timeline-circle {
    filter: grayscale(100%);
    opacity: 0.6;
}



.add-after-btn {
    position: absolute;
    bottom: 0;
    left: calc(1rem + 60px);
    transform: translateX(-50%) translateY(50%);
    z-index: 5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: var(--bg-paper);
    color: var(--primary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 0;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.add-after-btn i {
    font-size: 9px;
    line-height: 1;
    display: block;
}

.add-after-btn:hover {
    background: var(--primary);
    color: #fff;
}

@media (hover: hover) {
    .timeline-item:hover .add-after-btn {
        display: flex;
    }
}


.timeline-gap {
    display: flex;
    align-items: stretch;
    padding: 0 1rem;
    position: relative;
    height: 40px;

}

.timeline-gap .timeline-time {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-gap .timeline-line {
    border-left: 2px dashed var(--bg-card-border);
    background-color: transparent;
    width: 0;

}

.timeline-gap .timeline-line::before,
.timeline-gap .timeline-line::after {
    display: none;
}

.timeline-gap .timeline-content {
    padding: 0 0 0 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
}



@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}


.block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: var(--bg-paper);
    border-left: 4px solid;
    border: 2px solid var(--deco-latte);
    border-left-width: 4px;
    transition: all var(--transition-fast);
}

.block-item:hover {
    background: var(--deco-cream);
    transform: translateX(4px);
}

.block-item.done {
    opacity: 0.7;
}

.block-item.done .tw-font-semibold {
    text-decoration: line-through;
}


.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--warning), #d4a84b);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 166, 107, 0.4);
}

.streak-badge::before {
    content: '🔥';
}


.focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 247, 242, 0.98), rgba(245, 240, 232, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .focus-overlay {
    background: linear-gradient(135deg, rgba(45, 42, 38, 0.98), rgba(54, 51, 48, 0.98));
}

.focus-overlay.active {
    opacity: 1;
    visibility: visible;
}

.focus-timer {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}

.focus-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.focus-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.focus-hint {
    color: var(--text-muted);
    margin-top: 3rem;
    font-size: 0.8rem;
}



.modal-dark {
    background: var(--bg-card-solid);
    border: 2px solid var(--bg-card-border);
    border-radius: 20px;
    color: var(--text-primary);
}

.modal-content {
    background-color: var(--bg-card-solid);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


.step-indicator {
    width: 40px;
    height: 4px;
    background: var(--bg-card-border);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.step-indicator.active {
    background: var(--primary);
}


.review-mood-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--bg-card-border);
    background: transparent;
}

.review-mood-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.review-mood-btn.active {
    background: var(--primary-light);

    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}


.reflection-card-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.reflection-card-modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    margin: auto;
}

.reflection-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-card-border);
}

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

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.reflection-card-preview {
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    background: var(--bg-card);
}

.reflection-card-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.reflection-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--bg-card-border);
}

.reflection-card-actions .btn {
    flex: 1;
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

.divider {
    border-color: var(--deco-coffee);
    opacity: 0.5;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.todo {
    background: rgba(201, 166, 107, 0.2);
    color: var(--secondary);
}

.status-badge.doing {
    background: rgba(196, 117, 110, 0.2);
    color: var(--primary);
}

.status-badge.done {
    background: rgba(156, 175, 136, 0.2);
    color: var(--accent);
}


.text-muted {
    color: var(--text-muted);
}

.mt-4 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}


.alert {
    border-radius: 12px;
    border: 2px solid;
}

.alert-danger {
    background: rgba(196, 117, 110, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.alert-success {
    background: rgba(156, 175, 136, 0.1);
    border-color: var(--accent);
    color: var(--accent-dark);
}


@media (max-width: 991px) {
    .nav-items {
        gap: 0.5rem;
    }

    .username-text {
        display: none;
    }
}

@media (max-width: 575px) {
    .nav-container {
        margin: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .card-padding {
        padding: 1rem;
    }

    .focus-timer {
        font-size: 5rem;
    }
}



.level-display {
    text-align: center;
    padding: 1rem 0;
}


.level-character {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.level-character:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--primary);
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


.character-img,
.companion-avatar img,
.char-thumb img {
    background: #ffffff !important;
}

.level-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.level-badge {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.xp-bar-container {
    height: 10px;
    background: var(--deco-latte);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid var(--deco-coffee);
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 8px;
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}


.level-up-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 65, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.level-up-content {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 3px solid var(--warning);
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(201, 166, 107, 0.4);
}

.level-up-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.5s ease infinite;
}

.level-up-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--warning), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-up-levels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.old-level {
    color: var(--text-muted);
}

.arrow {
    color: var(--text-secondary);
}

.new-level {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    font-size: 2.5rem;
}

.new-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 1rem;
}


.xp-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 1.7s forwards;
    z-index: 1500;
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


.level-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 65, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.level-help-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--bg-card-border);
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.help-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--deco-coffee);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.help-section p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.help-section small,
.help-section .text-muted,
.help-section .text-secondary {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-secondary) !important;
    opacity: 1;
    font-weight: 500;
}

.help-formula {
    background: var(--deco-cream);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-primary);
    border: 2px dashed var(--deco-coffee);
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.help-table td {
    padding: 0.5rem;
    border-bottom: 1px dashed var(--deco-coffee);
}

.help-table tr:last-child td {
    border-bottom: none;
}

.help-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.help-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--deco-cream);
    border: 2px solid var(--deco-coffee);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.help-btn:hover {
    color: var(--primary);
    background: rgba(196, 117, 110, 0.1);
    border-color: var(--primary);
}


.help-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed var(--deco-coffee);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(196, 117, 110, 0.1);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(156, 175, 136, 0.15);
}

.help-tab-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-tab-content.active {
    opacity: 1;
}


.character-list td {
    vertical-align: middle;
}

.char-cell {
    width: 60px;
}

.char-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-card-border);
    background: var(--bg-card);
    cursor: zoom-in;
}

.char-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-cell {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}


.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 65, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.image-zoom-modal.active {
    opacity: 1;
}

.image-zoom-content {
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-modal.active .image-zoom-content {
    transform: scale(1);
}

.image-zoom-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    border: 4px solid var(--deco-cream);
}


.companion-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;

}

.companion-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--accent);
    box-shadow: 0 6px 25px rgba(156, 175, 136, 0.35);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: companion-float 3s ease-in-out infinite;
    pointer-events: auto;

}

.companion-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(156, 175, 136, 0.5);
    border-color: var(--primary);
}

.companion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes companion-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


.companion-bubble {
    background: var(--bg-card);
    border: 2px solid var(--deco-coffee);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    max-width: 200px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    position: relative;
}

.companion-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

.companion-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--bg-card);
}

.companion-bubble::before {
    content: '';
    position: absolute;
    bottom: -14px;
    right: 23px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--deco-coffee);
}

.companion-avatar.bounce {
    animation: bounce 0.5s ease;
}


@media (max-width: 575px) {
    .companion-container {
        bottom: 1rem;
        right: 1rem;
    }

    .companion-avatar {
        width: 70px;
        height: 70px;
    }

    .companion-bubble {
        max-width: 150px;
        font-size: 0.75rem;
    }
}



.stats-divider {
    border: none;
    border-top: 2px dashed var(--deco-coffee);
    margin: 1rem 0;
}

.time-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.time-card-arrow {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
}

.time-card-arrow:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.time-card-content {
    flex: 1;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.time-card-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    transition: opacity 0.2s ease;
}

.time-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.time-card-tasks {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.time-card-tasks span {
    color: var(--primary);
    font-weight: 600;
}


@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.time-card-content.slide-out-left {
    animation: slideOutLeft 0.15s ease forwards;
}

.time-card-content.slide-out-right {
    animation: slideOutRight 0.15s ease forwards;
}

.time-card-content.slide-in-left {
    animation: slideInRight 0.2s ease forwards;
}

.time-card-content.slide-in-right {
    animation: slideInLeft 0.2s ease forwards;
}


.stats-grid {
    margin-bottom: 0;
}

.col-md-6>.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.col-md-6>.glass-card>.stats-grid+hr+.time-card {
    flex: 1;
    display: flex;
    align-items: center;
}




@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .level-display {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .level-character {
        margin: 0 auto;
    }

    .xp-bar-container {
        width: 100%;
    }

    .section-title {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 0.85rem;
        white-space: normal;
        overflow: hidden;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
        overflow-wrap: break-word;
    }

    .overlap-block-title {
        font-size: 0.8rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
    }

    .heatmap-wrapper {
        overflow-x: auto;
    }

    .heatmap-grid {
        min-width: 700px;
    }


    .col-md-6>.glass-card {
        height: auto !important;
        margin-bottom: 1rem;
    }

    .col-md-6>.glass-card>.stats-grid+hr+.time-card {
        min-height: 100px;
    }


    .time-card-value {
        font-size: 1.75rem;
    }
}


@media (max-width: 575px) {
    .nav-container {
        margin: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .card-padding {
        padding: 1rem;
    }

    .block-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .block-item>div:last-child {
        width: 100%;
        justify-content: flex-end;
    }

    .date-title {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}


.block-action-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 65, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.block-action-content {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
}

.block-action-content h4 {
    font-family: var(--font-heading);
    margin: 0 0 1.5rem;
    color: var(--text-primary);
}

.block-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-main);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 166, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 175, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(196, 117, 110, 0.03) 0%, transparent 50%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


.deco-border {
    border: 2px dashed var(--deco-coffee);
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deco-cream);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--deco-coffee);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


.tw-text-gray-400 {
    color: var(--text-muted);
}

.tw-text-gray-500 {
    color: var(--text-secondary);
}

.tw-text-center {
    text-align: center;
}

.tw-font-semibold {
    font-weight: 600;
}

.tw-text-sm {
    font-size: 0.875rem;
}

.tw-flex {
    display: flex;
}

.tw-gap-2 {
    gap: 0.5rem;
}

.tw-items-center {
    align-items: center;
}

.tw-hidden {
    display: none;
}


.theme-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.theme-selector-content {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.theme-card {
    background: var(--bg-paper);
    border: 2px solid var(--deco-coffee);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.theme-card.active {
    border-color: var(--accent);
    background: rgba(156, 175, 136, 0.1);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.2);
}

.theme-mini-preview {
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    height: 120px;
    margin-bottom: 0.75rem;
}

.theme-mini-sidebar {
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 6px;
    flex-shrink: 0;
}

.theme-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.theme-mini-main {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.theme-mini-card {
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-mini-line {
    height: 4px;
    border-radius: 2px;
}

.theme-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
    height: 14px;
}

.theme-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }

    .theme-selector-content {
        padding: 1.5rem;
    }
}


.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    animation: slideInRight 0.5s ease;
}

.achievement-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--warning) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 280px;
}

.achievement-notification-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    padding: 4px;
}

.achievement-notification-text {
    flex: 1;
}

.achievement-notification-title {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.achievement-notification-name {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.achievement-notification-xp {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.achievement-notification.fade-out {
    animation: fadeOutRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


.memo-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    height: 100%;
    min-height: 0;
}

.memo-sidebar,
.memo-main {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.memo-sidebar::-webkit-scrollbar,
.memo-main::-webkit-scrollbar {
    display: none;
}


.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-height: 300px;
    }

    .achievement-badge {
        padding: 0.75rem 0.5rem;
    }

    .achievement-badge-icon {
        width: 48px;
        height: 48px;
    }

    .achievement-badge-name {
        font-size: 0.75rem;
    }

    .achievement-badge-desc {
        display: none;
    }

    .achievement-badge-xp {
        font-size: 0.65rem;
    }
}

.achievement-badge {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
}

.achievement-badge.unlocked {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.1), transparent);
}

.achievement-badge.locked {
    opacity: 0.6;
    filter: grayscale(100%);
}

.achievement-badge.locked .achievement-badge-icon {
    filter: grayscale(100%);
    opacity: 0.7;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.achievement-badge-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    object-fit: cover;
}

.achievement-badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.achievement-badge-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.achievement-badge-xp {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 600;
    margin-top: 0.5rem;
}




.star-rating {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.5rem 0;
}

.star-rating .star {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.4;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: var(--warning);
    opacity: 1;
    transform: scale(1.1);
}

.star-rating .star.active {
    text-shadow: 0 0 10px rgba(201, 166, 107, 0.5);
}


.reflection-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.reflection-card:hover {
    box-shadow: var(--shadow-soft);
}

.reflection-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.reflection-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.reflection-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reflection-card-rating {
    color: var(--warning);
    font-size: 0.9rem;
    letter-spacing: -0.05em;
}

.reflection-card-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}


.daily-reflection-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.daily-summary-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.1), transparent);
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
}

.daily-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.daily-summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


.weekly-reflection-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    padding: 1rem 0;
    gap: 0.5rem;
}

.weekly-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.weekly-chart-bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 8px 8px 4px 4px;
    min-height: 4px;
    transition: all var(--transition-normal);
}

.weekly-chart-bar:hover .weekly-chart-bar-fill {
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    transform: scaleY(1.05);
}

.weekly-chart-bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.weekly-chart-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}


.btn-outline-primary {
    border: 2px solid rgba(156, 175, 136, 0.4);
    color: var(--accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(156, 175, 136, 0.15);
    border-color: var(--accent);
    color: var(--accent-dark);
}


.tw-text-yellow-500 {
    color: var(--warning);
}


.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--bg-paper);
    border: 2px solid var(--tag-color, var(--deco-coffee));
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.8rem;
}

.tag-checkbox:hover {
    background: rgba(var(--tag-color), 0.1);
    transform: translateY(-1px);
}

.tag-checkbox input[type="checkbox"] {
    accent-color: var(--tag-color, var(--accent));
}

.tag-checkbox input[type="checkbox"]:checked+.tag-label {
    font-weight: 600;
}

.tag-label {
    color: var(--text-primary);
    user-select: none;
}

.tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-paper);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.tag-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-list {
    max-height: 300px;
    overflow-y: auto;
}


.tag-stats-container {
    margin-top: 1rem;
}

.tag-stats-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-stats-tab {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: var(--bg-paper);
    border: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-stats-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.tag-stats-tab.active {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--text-primary);
}

.tag-stats-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tag-stats-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tag-stats-bar-label {
    min-width: 80px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tag-stats-bar-label .tag-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.tag-stats-bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-paper);
    border-radius: 12px;
    overflow: hidden;
}

.tag-stats-bar-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: fit-content;
    transition: width 0.5s ease;
}

.tag-stats-bar-value {
    min-width: 60px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tag-stats-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}


.tag-stats-chart-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tag-stats-pie-container {
    flex: 0 0 200px;
    max-width: 200px;
}

.tag-stats-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-stats-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-paper);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tag-stats-legend-item:hover {
    background: var(--bg-elevated);
}

.tag-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-legend-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tag-legend-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

.tag-legend-percent {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.tag-legend-tasks {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
}

@media (max-width: 768px) {
    .tag-stats-chart-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .tag-stats-pie-container {
        flex: 0 0 150px;
        max-width: 150px;
    }

    .tag-stats-legend {
        width: 100%;
    }
}


.block-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.block-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #fff;
}


.tag-create-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-create-row .form-control-color {
    width: 50px;
    flex-shrink: 0;
}

.tag-create-row .tag-icon-select {
    width: auto;
    min-width: 140px;
}

.tag-create-row .form-control {
    flex: 1;
    min-width: 100px;
}

.tag-create-row .btn {
    flex-shrink: 0;
}


.tag-checkbox i {
    font-size: 0.85rem;
    color: var(--tag-color, var(--accent));
}

.tag-info i {
    font-size: 1rem;
}


.tpi-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%), var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
}




.tpi-card {
    position: relative;
    padding-top: 1.5rem !important;
}

.tpi-card .help-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 100;
}

.tpi-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-right: 1.5rem;

}

.tpi-main-score {
    margin: 1.5rem 0 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.tpi-main-score span {
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-monochrome {
    color: var(--text-secondary) !important;
    border-color: var(--bg-card-border) !important;
    background: transparent !important;
}

.btn-monochrome:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
}

.tpi-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bg-card-border);
}

.tpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpi-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tpi-label i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    opacity: 0.8;
}

.tpi-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}


.tpi-info-wrapper,
.tpi-tooltip {
    display: none !important;
}


.timer-modes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    display: inline-flex;
}

.timer-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timer-mode-btn:hover {
    color: var(--text-primary);
}

.timer-mode-btn.active {
    background: var(--bg-card-border);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.timer-progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.timer-time {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}


.timer-btn-start {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.timer-btn-start.active {
    background: var(--bg-card-border);
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.timer-btn-reset {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding: 0;
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.timer-btn-reset:hover {
    opacity: 1;
    transform: rotate(-90deg);
    background: rgba(255, 255, 255, 0.05);
}


.timer-mode-btn[data-mode="focus"].active {
    color: var(--primary);
}

.timer-mode-btn[data-mode="short"].active {
    color: var(--success);
}

.timer-mode-btn[data-mode="long"].active {
    color: var(--accent);
}


.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 400px;
}

@media (max-width: 576px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-body);
    pointer-events: auto;
    animation: toast-slide-in 0.3s ease-out;
}

.toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast span {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}


.toast-success {
    border-left: 3px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast-warning i {
    color: var(--warning);
}

.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-info {
    border-left: 3px solid var(--primary);
}

.toast-info i {
    color: var(--primary);
}


@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

.animate-slide-in {
    animation: toast-slide-in 0.3s ease-out;
}

.animate-slide-out {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}


.section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
    line-height: 1.4;
}


.collecting-data-card {
    text-align: center;
    padding: 2rem;
    background: var(--deco-cream);
    border-radius: var(--radius-md);
    border: 1px dashed var(--bg-card-border);
}

.collecting-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.collecting-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.collecting-progress {
    height: 8px;
    background: var(--deco-latte);
    border-radius: var(--radius-full);
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
}

.collecting-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}


.focus-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.focus-summary-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    line-height: 1.3;
}

.focus-summary-chip-mood {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.focus-summary-chip-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.focus-summary-chip-value {
    font-size: 0.88rem;
    color: #fff;
    font-weight: 700;
}


.focus-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.insight-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.focus-chart-section {
    margin-top: 0;
}

.focus-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.focus-chart-legend {
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.chart-sub-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.focus-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.focus-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.focus-bar-label {
    width: 80px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.focus-bar-wrapper {
    flex: 1;
    height: 20px;
    background: var(--deco-cream);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.focus-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.focus-bar-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.focus-bar-score {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 32px;
    text-align: right;
    white-space: nowrap;
}

.focus-bar-rate {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 48px;
    white-space: nowrap;
}

.best-badge {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}


.focus-bar-row.best .focus-bar-label {
    color: var(--text-primary);
    font-weight: 700;
}

.focus-bar-row.best .focus-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.focus-bar-row.best .focus-bar-score {
    color: #f59e0b;
    font-weight: 700;
}

.focus-bar-row.best .focus-bar-rate {
    color: #f97316;
    font-weight: 600;
}

.mood-correlation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
}

.mood-card {
    background: var(--deco-cream);
    border-radius: var(--radius-md);
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: 1px solid var(--bg-card-border);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.mood-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.mood-card.best {
    border-color: var(--primary);
    border-width: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}

.mood-best-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 0 var(--radius-md) 0 var(--radius-sm);
    letter-spacing: 0.04em;
}

.mood-card-emoji {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.mood-card-metric-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

.mood-card-stats {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.mood-card-value {
    font-weight: 700;
    color: var(--primary);
}

.mood-card-unit {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: 0.1rem;
}

.mood-card-days {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

@media (max-width: 768px) {
    .focus-charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .focus-bar-label {
        width: 60px;
        font-size: 0.72rem;
    }

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

    .focus-bar-rate {
        display: none;
    }
}


.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: none;
    align-items: stretch;
    box-sizing: content-box;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bg-card-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 991px) {
    .bottom-nav {
        display: flex !important;
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .main-content {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: all var(--transition-fast);
}

.bottom-nav-item span {
    line-height: 1;
}

.bottom-nav-item:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.15);
}


button.bottom-nav-zen-btn {
    display: none !important;
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}


.advisor-messages-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.advisor-messages-container::-webkit-scrollbar {
    width: 6px;
}

.advisor-messages-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.advisor-message {
    display: flex;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}

.advisor-message.user {
    justify-content: flex-end;
}

.advisor-message.ai {
    justify-content: flex-start;
    gap: 8px;
}

.advisor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--success);
    font-size: 1.1rem;
    align-self: flex-end;
}

.advisor-message .message-content {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.advisor-message.user .message-content {
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.advisor-message.ai .message-content {
    background-color: var(--bg-elevated, #f8f9fa);
    border: 1px solid var(--bg-card-border, #e9ecef);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    height: 24px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary, #6c757d);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

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


.overlap-warning-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.overlap-warning-header i {
    animation: pulse-warning 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2);
    }
}

.overlap-block-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overlap-block-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
}

.overlap-block-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.overlap-block-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.onboarding-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10001;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.onboarding-spotlight {
    position: absolute;
    z-index: 10002;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-tooltip {
    position: absolute;
    z-index: 10003;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--bg-card-border, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 340px;
    min-width: 280px;
    pointer-events: auto;
    animation: onboarding-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@keyframes onboarding-pop {
    from { opacity: 0; transform: scale(0.9) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.onboarding-tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--bg-card-border, rgba(255,255,255,0.1));
    transform: rotate(45deg);
}

.onboarding-tooltip-arrow.top {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-right: none;
    border-bottom: none;
}

.onboarding-tooltip-arrow.bottom {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-left: none;
    border-top: none;
}

.onboarding-tooltip-arrow.left {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-right: none;
    border-top: none;
}

.onboarding-step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.onboarding-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.onboarding-step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.onboarding-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-card-border, rgba(255,255,255,0.15));
    transition: all 0.3s;
}

.onboarding-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-actions .btn-next {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.onboarding-actions .btn-next:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.onboarding-actions .btn-skip {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
}

.onboarding-actions .btn-skip:hover {
    color: var(--text-primary);
}


.onboarding-welcome {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.onboarding-welcome-card {
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--bg-card-border, rgba(255,255,255,0.1));
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: onboarding-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.onboarding-welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.onboarding-welcome-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.zen-launch-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.zen-launch-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.zen-launch-btn:active {
    transform: scale(0.97);
}


.sidebar-zen-btn {
    display: none;
    color: var(--primary) !important;
}

.sidebar-zen-btn:hover {
    background: rgba(99, 102, 241, 0.12) !important;
}


#zen-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

#zen-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#zen-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #6366f1;
    transition: width 1s linear, background 1s ease;
    pointer-events: none;
}


#zen-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    gap: 0;
    animation: zenFadeIn 0.6s ease;
}

#zen-task-name {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 80vw;
    margin-bottom: 1.2rem;
    word-break: break-word;
}

#zen-time-range {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

#zen-remaining {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
    transition: color 1s ease;
    margin-bottom: 1.8rem;
}

.zen-btn-complete {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
}

.zen-btn-complete:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.5);
}


#zen-end-prompt {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    cursor: default;
}

#zen-end-task-name {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    max-width: 80vw;
    word-break: break-word;
}

#zen-end-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
}

#zen-end-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}


#zen-feedback-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
    cursor: default;
    animation: zenFadeIn 0.4s ease;
    max-width: min(420px, 88vw);
    width: 100%;
}

#zen-feedback-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

#zen-star-row {
    display: flex;
    gap: 0.6rem;
    font-size: 1.6rem;
    cursor: pointer;
}

.zen-star {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.zen-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

#zen-note-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    cursor: text;
}

#zen-note-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

#zen-note-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

#zen-feedback-buttons {
    display: flex;
    gap: 0.75rem;
}


.zen-ended #zen-main-content  { display: none; }
.zen-ended #zen-end-prompt    { display: flex; animation: zenFadeIn 0.4s ease; }
.zen-ended #zen-hint          { display: none; }

.zen-feedback #zen-main-content  { display: none; }
.zen-feedback #zen-end-prompt    { display: none; }
.zen-feedback #zen-hint          { display: none; }
.zen-feedback #zen-feedback-panel { display: flex; }

.zen-done #zen-main-content  { display: none; }
.zen-done #zen-end-prompt    { display: none; }
.zen-done #zen-hint          { display: none; }
.zen-done #zen-next-ghost    { display: none; }
.zen-done #zen-done-panel    { display: flex; animation: zenFadeIn 0.4s ease; }


.zen-empty #zen-main-content  { display: none; }
.zen-empty #zen-hint          { display: none; }
.zen-empty #zen-empty-panel   { display: flex; animation: zenFadeIn 0.4s ease; }

#zen-empty-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

#zen-empty-message {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}


#zen-done-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 340px;
}

#zen-done-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4ade80;
    margin-bottom: 0.2rem;
}

#zen-done-count-label {
    font-size: 0.72rem;
    color: rgba(99, 102, 241, 0.8);
    letter-spacing: 0.04em;
    min-height: 1em;
}

#zen-done-task-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

#zen-done-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0.6rem 0;
    font-size: 0.9rem;
}

#zen-done-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

#zen-done-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.zen-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.zen-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

#zen-done-next-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    word-break: break-word;
}

#zen-done-next-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

#zen-done-countdown {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.8rem;
    font-variant-numeric: tabular-nums;
}


.zen-btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.zen-btn-primary {
    background: #6366f1;
    color: #fff;
}

.zen-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.zen-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.zen-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.zen-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
}

.zen-btn-ghost:hover {
    color: rgba(255, 255, 255, 0.65);
}


.zen-hidden { display: none !important; }

#zen-next-ghost {
    margin-top: 3rem;
    text-align: center;
    cursor: default;
    pointer-events: none;
    animation: zenFadeIn 0.6s ease;
}

.zen-next-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
}

#zen-next-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

#zen-next-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
}


#zen-exit-hint {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 50, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#zen-exit-hint.visible {
    opacity: 1;
}


#zen-hint {
    position: absolute;
    bottom: 18px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.04em;
    pointer-events: none;
    cursor: default;
}

@keyframes zenFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


.zen-block-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zen-block-nav-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}
.zen-block-nav-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}
.zen-block-nav:hover {
    background: linear-gradient(to right, rgba(255,255,255,0.06), transparent);
}
.zen-block-nav-next:hover {
    background: linear-gradient(to left, rgba(255,255,255,0.06), transparent);
}
.zen-block-nav:active {
    background: linear-gradient(to right, rgba(255,255,255,0.12), transparent);
}
.zen-block-nav-next:active {
    background: linear-gradient(to left, rgba(255,255,255,0.12), transparent);
}
.zen-block-nav[hidden] { display: none; }

.zen-nav-dot {
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    transition: color 0.3s ease;
}
.zen-block-nav:hover .zen-nav-dot {
    color: rgba(255, 255, 255, 0.9);
}
.zen-block-nav-prev .zen-nav-dot::before {
    content: "◀";
}
.zen-block-nav-next .zen-nav-dot::before {
    content: "▶";
}


.zen-feedback .zen-block-nav,
.zen-done .zen-block-nav,
.zen-empty .zen-block-nav { display: none; }

@media (max-width: 600px) {
    .zen-block-nav { width: 2.5rem; }
}


.time-range-picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-range-inputs {
    display: flex;
    align-items: center;
    background: var(--bg-paper);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time-control {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 8px;
}

.time-control:hover, .time-control:focus {
    background: rgba(128, 128, 128, 0.1);
}

.time-control::-webkit-calendar-picker-indicator {
    display: none;
}

.time-range-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.time-duration-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.time-quick-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.time-quick-btn {
    background: var(--bg-paper);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.time-quick-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.time-quick-btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .time-quick-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}


.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-link {
    color: var(--primary-light);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--text-primary);
}


body.auth-page {
    display: block !important;
    overflow: auto !important;
}




.register-page .auth-card {
    max-width: 420px;
}


.habit-container {
    max-width: 900px;
    margin: 0 auto;
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.week-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 180px;
    text-align: center;
}

.habit-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.habit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.habit-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.habit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.habit-details {
    flex: 1;
}

.habit-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0px;
    line-height: 1.2;
}

.habit-streak {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.habit-streak i {
    color: var(--warning);
}

.habit-actions {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.habit-card:hover .habit-actions {
    opacity: 1;
}

.habit-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 0.25rem;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--bg-main);
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    max-width: 42px;
    margin: 0 auto;
    width: 100%;
}

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

.day-cell.today {
    border-color: var(--primary);
}

.day-cell.completed {
    background: var(--success);
    color: white;
}

.day-cell.completed .day-number {
    color: white;
}

.day-cell.future {
    opacity: 0.5;
    cursor: not-allowed;
}

.day-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.day-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.day-cell.completed .day-check {
    opacity: 1;
}

.day-cell.completed .day-number {
    opacity: 0;
}

.add-habit-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--bg-card-border);
    border-radius: 16px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-habit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}


.modal-dark {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}

.modal-dark .modal-header {
    border-bottom: 1px solid var(--bg-card-border);
}

.modal-dark .modal-footer {
    border-top: 1px solid var(--bg-card-border);
}

.modal-dark .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.icon-picker-container {
    margin-top: 0.5rem;
}

.icon-search {
    margin-bottom: 0.75rem;
}

.icon-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.icon-picker {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.25rem;
}

.icon-picker::-webkit-scrollbar {
    width: 6px;
}

.icon-picker::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 3px;
}

.icon-picker::-webkit-scrollbar-thumb {
    background: var(--bg-card-border);
    border-radius: 3px;
}

.icon-option {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--bg-card-border);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.icon-option:hover,
.icon-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.color-picker-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover,
.color-option.selected {
    transform: scale(1.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}


.memo-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .memo-container {
        grid-template-columns: 1fr;
    }
}

.memo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-form-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1.25rem;
}

.memo-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.memo-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(156, 175, 136, 0.3);
}

.memo-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.memo-search {
    flex: 1;
    min-width: 200px;
}

.memo-tabs {
    display: flex;
    gap: 0.5rem;
}

.memo-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.memo-tab:hover {
    background: var(--bg-card-hover);
}

.memo-tab.active {
    background: var(--primary);
    color: white;
}

.memo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.memo-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 1rem;
    min-height: 140px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.memo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.memo-card.editing {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.2);
}

.memo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.memo-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.memo-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 0.5rem;
    max-height: 80px;
    overflow: hidden;
}

.memo-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

.memo-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.memo-card:hover .memo-actions {
    opacity: 1;
}

.memo-actions button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--bg-card-hover);
    border-radius: 4px;
}

.memo-actions button:hover {
    background: var(--accent);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 16px;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.memo-editor {
    display: none;
}

.memo-editor.active {
    display: block;
}

.memo-view {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.memo-card.editing .memo-view {
    display: none;
}

.memo-card.editing .memo-editor {
    display: block;
}


.todo-container {
    max-width: 800px;
    margin: 0 auto;
}

.todo-input-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.todo-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-fast);
}

.todo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent);
}

.todo-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 1rem;
    transition: all var(--transition-fast);
}

.todo-checkbox.completed {
    background: var(--accent);
    color: white;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-secondary);
}

.priority-high {
    color: #ef5350;
    border: 1px solid #ef5350;
}

.priority-medium {
    color: #ffca28;
    border: 1px solid #ffca28;
}

.priority-low {
    color: #66bb6a;
    border: 1px solid #66bb6a;
}

.todo-actions button {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.todo-item:hover .todo-actions button {
    opacity: 1;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}


.mood-selector {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mood-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mood-btn:hover {
    transform: translateY(-2px);
}

.mood-btn:active {
    transform: scale(0.95);
}


.mood-btn[data-mood="Awesome"]:hover { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.5); }
.mood-btn[data-mood="Good"]:hover     { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.5); }
.mood-btn[data-mood="Neutral"]:hover  { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.5); }
.mood-btn[data-mood="Bad"]:hover      { background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.5); }
.mood-btn[data-mood="Awful"]:hover    { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.5); }


.mood-btn[data-mood="Awesome"].active {
    background: #22c55e;
    border-color: #16a34a;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}
.mood-btn[data-mood="Good"].active {
    background: #34d399;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.5);
    transform: scale(1.05);
}
.mood-btn[data-mood="Neutral"].active {
    background: #94a3b8;
    border-color: #64748b;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.4);
    transform: scale(1.05);
}
.mood-btn[data-mood="Bad"].active {
    background: #f97316;
    border-color: #ea6800;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.5);
    transform: scale(1.05);
}
.mood-btn[data-mood="Awful"].active {
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.mood-btn.active .mood-label {
    font-weight: 700;
}

.mood-btn[data-mood="Awesome"].active .mood-label { color: #ffffff; }
.mood-btn[data-mood="Good"].active .mood-label,
.mood-btn[data-mood="Neutral"].active .mood-label,
.mood-btn[data-mood="Bad"].active .mood-label,
.mood-btn[data-mood="Awful"].active .mood-label { color: #ffffff; }

.mood-btn.active .mood-dot {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.mood-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.mood-emoji {
    font-size: 1.25rem;
    display: inline-block;
}

@keyframes moodEmojiPop {
    0%   { transform: scale(1)    rotate(0deg);   }
    25%  { transform: scale(1.7)  rotate(-12deg); }
    50%  { transform: scale(1.4)  rotate(10deg);  }
    70%  { transform: scale(1.15) rotate(-5deg);  }
    85%  { transform: scale(1.05) rotate(2deg);   }
    100% { transform: scale(1)    rotate(0deg);   }
}

.mood-emoji.animating {
    animation: moodEmojiPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.mood-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mood-btn.active .mood-label {
    color: var(--text-primary);
}

.next-task-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-task-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.next-task-content {
    flex: 1;
}

.next-task-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.next-task-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.next-task-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.next-task-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .next-task-title {
        font-size: 1rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
    }
    .next-task-icon {
        font-size: 2rem;
    }
}


@media (min-width: 992px) {
    body.landing-body {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
    }

    html {
        height: auto !important;
        overflow-y: auto !important;
    }
}

.legal-content {
    padding-top: 8rem;
    padding-bottom: 6rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 0.5rem;
}

.legal-content section {
    margin-bottom: 3rem;
}



@media (min-width: 992px) {
    body.landing-body {
        overflow-x: hidden !important;
    }
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 1rem;
    transition: all var(--transition-normal);
}

@media (max-width: 991px) {
    .landing-nav {
        margin: 0.5rem;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span {
    display: inline-block;
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem !important;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    main {
        padding-top: 5rem !important;
    }
}

.help-section {
    padding: 4rem 0;
}

.help-nav {
    position: sticky;
    top: 2rem;
}

.screenshot-placeholder {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed var(--bg-card-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin: 1.5rem 0;
    color: var(--text-muted);
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-question {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question i {
    color: var(--primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}



@media (min-width: 992px) {
    body.landing-body {
        height: auto !important;
        overflow-y: visible !important;
    }
}

.landing-hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 75%);
    pointer-events: none;
    z-index: -1;
    animation: heroPulse 6s ease-in-out infinite;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    animation: iconFloat 1.8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-image-container {
    perspective: 1000px;
    margin-top: 3rem;
}

.hero-image {
    transform: rotateX(10deg) scale(0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid var(--bg-card-border);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotateX(0) scale(0.95);
}


.hero-mockup-card {
    height: 520px;
}


@media (max-width: 768px) {
    .landing-hero {
        padding: 5rem 0 3rem;
    }

    .hero-mockup-card {
        height: 380px;
        transform: scale(0.95);
    }

    .hero-mockup-sidebar {
        display: none !important;
    }

    .hero-mockup-right {
        display: none !important;
    }

    .hero-mockup-main {
        padding: 1rem !important;
    }

    .mock-date-container {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .hero-mockup-card {
        height: 300px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-hero .badge {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0ms;
}

.hero-title {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 150ms;
}

.hero-subtitle {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 300ms;
}

.hero-promo {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 450ms;
}

.hero-cta-buttons {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 600ms;
}

.hero-image-container {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 750ms;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

.ai-progress-bar {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% { transform: scale(1.1) rotate(-5deg) translateY(0); }
    50%       { transform: scale(1.1) rotate(-5deg) translateY(-6px); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0%   { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    85%  { opacity: 0.4; }
    100% { transform: translateY(-65vh) scale(1.3) rotate(300deg); opacity: 0; }
}

@keyframes rocketLaunch {
    0%   { transform: translate(0, 0) rotate(-10deg); }
    35%  { transform: translate(3px, -5px) rotate(-28deg); }
    60%  { transform: translate(-1px, -10px) rotate(-38deg); opacity: 0.15; }
    61%  { transform: translate(0, 4px) rotate(-10deg); opacity: 0; }
    85%  { opacity: 1; transform: translate(0, 1px) rotate(-12deg); }
    100% { transform: translate(0, 0) rotate(-10deg); }
}

.hero-cta-buttons .btn-primary:hover .fa-rocket {
    display: inline-block;
    animation: rocketLaunch 0.85s ease;
}

@keyframes wandSparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20%  { transform: rotate(20deg) scale(1.3); }
    40%  { transform: rotate(-6deg) scale(1.15); }
    70%  { transform: rotate(12deg) scale(1.1); }
}

.section-title .fa-wand-magic-sparkles {
    display: inline-block;
    animation: wandSparkle 3s ease-in-out infinite;
}

.glass-card {
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.ai-category-list { display: flex; flex-direction: column; gap: 1rem; }
.ai-cat-row { display: flex; flex-direction: column; gap: 0.3rem; }
.ai-cat-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.ai-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ai-cat-name { font-weight: 600; color: var(--text-primary); }
.ai-cat-meta { color: var(--text-secondary); font-size: 0.8rem; margin-left: auto; }
.ai-cat-rate { font-weight: 700; font-size: 0.95rem; min-width: 3rem; text-align: right; }
.ai-cat-bar-wrapper { height: 6px; background: var(--bg-main); border-radius: 3px; overflow: hidden; }
.ai-cat-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ai-cat-subs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ai-sub-tag { font-size: 0.75rem; background: var(--bg-main); color: var(--text-secondary); padding: 2px 8px; border-radius: 12px; border: 1px solid var(--bg-card-border); }


.shortcuts-modal kbd {
    font-family: ui-monospace, monospace;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}




.btn-x-share {
    background: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.btn-x-share:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #555555;
}


.level-up-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}


.share-modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.share-modal-actions .btn {
    flex: 1 1 auto;
    min-width: 80px;
    justify-content: center;
    padding: 0.4rem 0.6rem;
}
