        /* --- MODAL --- */
        .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
        .modal.active { display: flex !important; animation: fadeIn 0.2s ease; }


        /* ===== HOLIDAY CONFIRM MODAL ===== */
        .holiday-modal-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(16px) saturate(1.3);
            -webkit-backdrop-filter: blur(16px) saturate(1.3);
            z-index: 10001;
            display: flex; align-items: center; justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .holiday-modal-overlay.active { opacity: 1; }
        .holiday-modal {
            background: linear-gradient(165deg, rgba(22,22,30,0.98), rgba(12,12,18,0.99));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 32px;
            max-width: 420px;
            width: 100%;
            text-align: center;
            box-shadow: 0 24px 80px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
            transform: scale(0.95) translateY(10px);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .holiday-modal-overlay.active .holiday-modal {
            transform: scale(1) translateY(0);
        }
        .holiday-modal-lg { max-width: 520px; text-align: left; }
        .holiday-modal-icon {
            font-size: 2.2rem;
            margin-bottom: 12px;
        }
        .holiday-modal-lg .holiday-modal-icon { text-align: center; }
        .holiday-modal-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            margin: 0 0 8px;
        }
        .holiday-modal-lg .holiday-modal-title { text-align: center; }
        .holiday-modal-desc {
            font-size: 0.82rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin: 0 0 20px;
        }
        .holiday-modal-lg .holiday-modal-desc { text-align: center; }
        .holiday-check-list {
            max-height: 280px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 20px;
            padding-right: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.08) transparent;
        }
        .holiday-check-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.02);
            cursor: pointer;
            transition: all 0.15s;
        }
        .holiday-check-item:hover {
            background: rgba(var(--primary-rgb), 0.06);
            border-color: rgba(var(--primary-rgb), 0.12);
        }
        .holiday-check-item input[type="checkbox"] {
            display: none;
        }
        .holiday-check-mark {
            width: 20px; height: 20px;
            border-radius: 6px;
            border: 2px solid rgba(255,255,255,0.15);
            background: rgba(255,255,255,0.03);
            flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.15s;
            position: relative;
        }
        .holiday-check-item input:checked ~ .holiday-check-mark {
            background: var(--primary);
            border-color: var(--primary);
        }
        .holiday-check-item input:checked ~ .holiday-check-mark::after {
            content: '✔';
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
        }
        .holiday-check-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        .holiday-check-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-main);
        }
        .holiday-check-date {
            font-size: 0.68rem;
            color: var(--text-muted);
            opacity: 0.6;
            font-family: var(--font-mono);
        }
        .holiday-modal-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        .holiday-btn {
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 600;
            font-family: var(--font-main);
            cursor: pointer;
            transition: all 0.15s;
            border: none;
        }
        .holiday-btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
        }
        .holiday-btn-primary:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.4);
        }
        .holiday-btn-ghost {
            background: rgba(255,255,255,0.05);
            color: var(--text-muted);
            border: 1px solid rgba(255,255,255,0.08);
        }
        .holiday-btn-ghost:hover {
            background: rgba(255,255,255,0.08);
            color: var(--text-main);
        }
        [data-theme="light"] .holiday-modal {
            background: linear-gradient(165deg, rgba(255,255,255,0.98), rgba(248,249,251,0.99));
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 24px 80px -12px rgba(0,0,0,0.15);
        }
        [data-theme="light"] .holiday-check-item {
            border-color: rgba(0,0,0,0.06);
            background: rgba(0,0,0,0.015);
        }
        [data-theme="light"] .holiday-check-item:hover {
            background: rgba(var(--primary-rgb), 0.04);
        }
        [data-theme="light"] .holiday-check-mark {
            border-color: rgba(0,0,0,0.15);
            background: rgba(0,0,0,0.02);
        }
        [data-theme="light"] .holiday-btn-ghost {
            background: rgba(0,0,0,0.04);
            border-color: rgba(0,0,0,0.08);
        }
        [data-theme="light"] .holiday-btn-ghost:hover {
            background: rgba(0,0,0,0.07);
        }


        /* ===== RECOVERY MODAL — PREMIUM REDESIGN ===== */
        .recovery-modal-box {
            width: 780px;
            max-width: 95vw;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
            background: linear-gradient(165deg, #0f0f14 0%, #0a0a0f 40%, #090912 100%);
            border: 1px solid rgba(var(--primary-rgb), 0.15);
            border-radius: 20px;
            box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.08), 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .recovery-header {
            position: relative;
            padding: 1.5rem 1.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
            border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
        }
        .recovery-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), rgba(6, 182, 212, 0.3), transparent);
        }
        .recovery-header-content {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .recovery-icon-wrap {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary), #06b6d4);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
            animation: recoveryIconPulse 3s ease-in-out infinite;
        }
        @keyframes recoveryIconPulse {
            0%, 100% { box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3); }
            50% { box-shadow: 0 4px 30px rgba(var(--primary-rgb), 0.5), 0 0 15px rgba(6, 182, 212, 0.2); }
        }
        .recovery-title {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.01em;
        }
        .recovery-subtitle {
            margin: 2px 0 0;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.45);
            letter-spacing: 0.5px;
        }
        .recovery-close-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .recovery-close-btn:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #f87171;
        }

        .recovery-body {
            padding: 1.25rem 1.75rem 1.5rem;
            overflow-y: auto;
            flex: 1;
        }

        /* Status Cards */
        .recovery-status-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 1.5rem;
        }
        .recovery-stat-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.25s;
        }
        .recovery-stat-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(var(--primary-rgb), 0.15);
        }
        .recovery-stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .recovery-stat-info {
            display: flex;
            flex-direction: column;
        }
        .recovery-stat-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.2;
        }
        .recovery-stat-label {
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Sections */
        .recovery-section {
            margin-bottom: 1.25rem;
        }
        .recovery-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .recovery-section-title {
            margin: 0;
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .recovery-badge {
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 600;
            background: rgba(var(--primary-rgb), 0.15);
            color: var(--primary);
            border: 1px solid rgba(var(--primary-rgb), 0.2);
        }

        /* Quick Action Cards */
        .recovery-actions-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .recovery-action-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 18px 12px 14px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.015);
            border: 1px solid rgba(255, 255, 255, 0.06);
            cursor: pointer;
            transition: all 0.25s;
            text-align: center;
        }
        .recovery-action-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(var(--primary-rgb), 0.25);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
        .recovery-action-icon {
            width: 48px;
            height: 48px;
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .recovery-action-label {
            font-size: 0.82rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
        }
        .recovery-action-desc {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.35);
        }

        /* Backup List */
        .recovery-backups-list {
            max-height: 280px;
            overflow-y: auto;
            padding: 4px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.04);
        }
        .recovery-backups-list::-webkit-scrollbar { width: 6px; }
        .recovery-backups-list::-webkit-scrollbar-track { background: transparent; }
        .recovery-backups-list::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 6px; }
        .recovery-backup-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 10px;
            margin-bottom: 4px;
            transition: all 0.2s;
            background: rgba(255, 255, 255, 0.015);
        }
        .recovery-backup-item:last-child { margin-bottom: 0; }
        .recovery-backup-item:hover {
            background: rgba(var(--primary-rgb), 0.06);
        }
        .recovery-backup-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            flex-shrink: 0;
            box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
        }
        .recovery-backup-date {
            flex: 1;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }
        .recovery-backup-actions {
            display: flex;
            gap: 6px;
        }
        .recovery-backup-btn {
            padding: 5px 12px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.65);
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .recovery-backup-btn:hover {
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.3);
            color: var(--primary);
        }
        .recovery-backup-btn.restore:hover {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.3);
            color: #10b981;
        }
        .recovery-backup-btn.merge:hover {
            background: rgba(6, 182, 212, 0.12);
            border-color: rgba(6, 182, 212, 0.3);
            color: #06b6d4;
        }

        /* Import Zone */
        .recovery-import-zone {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 28px 20px;
            border-radius: 14px;
            border: 2px dashed rgba(var(--primary-rgb), 0.2);
            background: rgba(var(--primary-rgb), 0.02);
            cursor: pointer;
            transition: all 0.3s;
        }
        .recovery-import-zone:hover, .recovery-import-zone.drag-over {
            border-color: rgba(var(--primary-rgb), 0.4);
            background: rgba(var(--primary-rgb), 0.06);
            box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.08);
        }
        .recovery-import-zone.drag-over {
            transform: scale(1.01);
        }
        .recovery-import-icon {
            color: rgba(var(--primary-rgb), 0.5);
            transition: color 0.3s;
        }
        .recovery-import-zone:hover .recovery-import-icon { color: var(--primary); }
        .recovery-import-text {
            font-size: 0.88rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.6);
        }
        .recovery-import-hint {
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.3);
        }
        .recovery-import-actions {
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            background: rgba(16, 185, 129, 0.06);
            border: 1px solid rgba(16, 185, 129, 0.15);
        }
        .recovery-import-ready {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: #10b981;
            font-weight: 500;
        }
        .recovery-apply-btn {
            padding: 8px 18px;
            border-radius: 10px;
            border: none;
            background: linear-gradient(135deg, var(--primary), #7c3aed);
            color: #fff;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.25s;
            box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
        }
        .recovery-apply-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.45);
        }

        /* Footer */
        .recovery-footer-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.35);
        }
        .recovery-modal-footer {
            padding: 1rem 1.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: flex-end;
        }
        .recovery-close-footer-btn {
            padding: 8px 24px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .recovery-close-footer-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* Mobile */
        @media (max-width: 640px) {
            .recovery-modal-box { max-width: 98vw; border-radius: 16px; }
            .recovery-status-grid { grid-template-columns: 1fr; }
            .recovery-actions-grid { grid-template-columns: 1fr; }
            .recovery-header { padding: 1.25rem; }
            .recovery-body { padding: 1rem; }
            .recovery-backup-item { flex-direction: column; align-items: flex-start; gap: 8px; }
            .recovery-backup-actions { width: 100%; }
            .recovery-backup-btn { flex: 1; justify-content: center; }
            .recovery-import-actions { flex-direction: column; }
        }

        /* ===== ADVANCED EDIT ENTRY MODAL ===== */
        .edit-modal-advanced {
            width: 680px;
            max-width: 95vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
            background: linear-gradient(165deg, #0f0f14 0%, #0a0a0f 40%, #090912 100%);
            border: 1px solid rgba(var(--primary-rgb), 0.15);
            border-radius: 20px;
            box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.08), 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }
        .edit-modal-header {
            position: relative;
            padding: 1.25rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(6, 182, 212, 0.06) 100%);
            border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
        }
        .edit-modal-header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.35), rgba(6, 182, 212, 0.25), transparent);
        }
        .edit-modal-header-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .edit-modal-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary), #7c3aed);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
        }
        .edit-modal-title {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 700;
            color: #fff;
        }
        .edit-modal-subtitle {
            margin: 2px 0 0;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
        }
        .edit-modal-close {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .edit-modal-close:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #f87171;
        }
        .edit-modal-body {
            padding: 1.25rem 1.5rem;
            overflow-y: auto;
            flex: 1;
        }
        .edit-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 1rem;
        }
        .edit-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .edit-field.full {
            grid-column: 1 / -1;
        }
        .edit-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .edit-label svg {
            opacity: 0.5;
        }
        .edit-hint {
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
            opacity: 0.5;
            font-size: 0.72rem;
        }
        .edit-input, .edit-select, .edit-textarea {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: #fff;
            font-size: 0.9rem;
            font-family: inherit;
            transition: all 0.2s;
        }
        .edit-input:focus, .edit-select:focus, .edit-textarea:focus {
            outline: none;
            border-color: rgba(var(--primary-rgb), 0.4);
            background: rgba(var(--primary-rgb), 0.05);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
        }
        .edit-input.edit-time {
            font-family: 'SF Mono', 'Consolas', monospace;
            font-size: 1rem;
            letter-spacing: 1px;
        }
        .edit-select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }
        .edit-textarea {
            min-height: 80px;
            resize: vertical;
        }
        /* Time Section */
        .edit-section {
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 14px;
            background: rgba(6, 182, 212, 0.04);
            border: 1px solid rgba(6, 182, 212, 0.1);
        }
        .edit-section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #06b6d4;
        }
        .edit-time-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
        }
        .edit-calc-row {
            display: flex;
            gap: 16px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(6, 182, 212, 0.1);
        }
        .edit-calc-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .edit-calc-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
        }
        .edit-calc-value {
            font-size: 0.88rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
            font-family: 'SF Mono', 'Consolas', monospace;
        }
        .edit-calc-item.highlight .edit-calc-value {
            color: #10b981;
            font-size: 1rem;
        }
        /* Advanced Section */
        .edit-advanced-section {
            margin-top: 0.5rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.01);
        }
        .edit-advanced-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            font-size: 0.8rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            user-select: none;
            list-style: none;
        }
        .edit-advanced-toggle::-webkit-details-marker { display: none; }
        .edit-advanced-toggle::after {
            content: '';
            margin-left: auto;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid rgba(255, 255, 255, 0.3);
            transition: transform 0.2s;
        }
        .edit-advanced-section[open] .edit-advanced-toggle::after {
            transform: rotate(180deg);
        }
        .edit-advanced-content {
            padding: 0 14px 14px;
        }
        /* Footer */
        .edit-modal-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }
        .edit-footer-info {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.35);
        }
        .edit-footer-actions {
            display: flex;
            gap: 10px;
        }
        .edit-btn {
            padding: 9px 20px;
            border-radius: 10px;
            border: none;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .edit-btn-ghost {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
        }
        .edit-btn-ghost:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .edit-btn-primary {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
        }
        .edit-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
        }
        /* Mobile */
        @media (max-width: 600px) {
            .edit-modal-advanced { max-width: 98vw; border-radius: 16px; }
            .edit-row { grid-template-columns: 1fr; }
            .edit-time-grid { grid-template-columns: 1fr 1fr; }
            .edit-time-grid > .edit-field:last-child { grid-column: 1 / -1; }
            .edit-calc-row { flex-wrap: wrap; }
            .edit-modal-footer { flex-direction: column; }
            .edit-footer-actions { width: 100%; justify-content: stretch; }
            .edit-footer-actions .edit-btn { flex: 1; justify-content: center; }
        }

        /* Modal Box für Einstellungen ist breiter für das Urlaubs-Dashboard */
        .modal-box.widget-manager-box {
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            padding: 24px;
            backdrop-filter: blur(20px);
            border-radius: 16px;
            border: 1px solid rgba(var(--primary-rgb), 0.3);
            position: relative;
            background: #121215;
            margin: 0 auto;
        }
        
        .modal-box::-webkit-scrollbar {
            width: 10px;
        }
        .modal-box::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
        }
        .modal-box::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb), 0.6));
            border-radius: 10px;
        }
        .modal-box::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.9), var(--primary));
            box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.3);
        }
        

        /* --- EXPORT STATISTICS MODAL --- */
        .export-modal-box { width:95%; max-width:600px; padding:0; backdrop-filter:blur(30px); border-radius:20px; border:1px solid rgba(var(--primary-rgb),0.25); overflow:hidden; }
        .export-header { padding:24px 28px 20px; background:linear-gradient(135deg, rgba(var(--primary-rgb),0.1), rgba(var(--primary-rgb),0.04)); border-bottom:1px solid rgba(var(--primary-rgb),0.1); }
        .export-header h3 { margin:0; font-size:1.2rem; font-weight:800; color:#fff; display:flex; align-items:center; gap:10px; }
        .export-stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(120px,1fr)); gap:12px; padding:20px 28px; }
        .export-stat-card { padding:14px; border-radius:14px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); text-align:center; }
        .export-stat-value { font-size:1.5rem; font-weight:800; font-family:var(--font-mono); color:var(--primary); }
        .export-stat-label { font-size:0.7rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.8px; margin-top:4px; font-weight:600; }
        .export-options { padding:0 28px 24px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
        .export-option-card { padding:20px; border-radius:16px; border:1.5px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.02); cursor:pointer; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); position:relative; overflow:hidden; }
        .export-option-card::before { content:''; position:absolute; inset:0; opacity:0; transition:opacity 0.3s; }
        .export-option-card:hover { border-color:rgba(var(--primary-rgb),0.35); transform:translateY(-2px); }
        .export-option-card:hover::before { opacity:1; }
        .export-option-card.opt-minimal::before { background:linear-gradient(135deg, rgba(16,185,129,0.06), transparent); }
        .export-option-card.opt-minimal:hover { border-color:rgba(16,185,129,0.4); }
        .export-option-card.opt-max::before { background:linear-gradient(135deg, rgba(var(--primary-rgb),0.06), transparent); }
        .export-option-card.opt-max:hover { border-color:rgba(var(--primary-rgb),0.4); }
        .export-opt-icon { font-size:2rem; margin-bottom:10px; }
        .export-opt-title { font-size:0.95rem; font-weight:700; color:#fff; margin-bottom:4px; }
        .export-opt-desc { font-size:0.75rem; color:var(--text-muted); line-height:1.5; }
        .export-opt-size { display:inline-block; margin-top:8px; padding:3px 10px; border-radius:8px; font-size:0.7rem; font-weight:700; font-family:var(--font-mono); }
        .opt-minimal .export-opt-size { background:rgba(16,185,129,0.12); color:#10b981; }
        .opt-max .export-opt-size { background:rgba(var(--primary-rgb),0.12); color:var(--primary); }
        @media (max-width:500px) { .export-options { grid-template-columns:1fr; } .export-stats-grid { grid-template-columns:repeat(2,1fr); } }


        /* --- TRASH / PAPERKORB STYLES --- */
        .trash-item { transition: all 0.18s ease; }
        .trash-item:hover { background: rgba(var(--primary-rgb), 0.06); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
        .trash-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:2.5rem; border-radius:12px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border:1px solid var(--border); }
        .trash-empty h4 { margin:0; color:var(--text-main); font-size:1.1rem; }
        .trash-empty p { margin:0; color:var(--text-muted); font-size:0.95rem; }
        .modal-close-x { position:absolute; top:10px; right:12px; background:transparent; border:none; font-size:1.25rem; color:var(--text-muted); cursor:pointer; padding:6px; border-radius:8px; }
        .modal-close-x:hover { background: rgba(255,255,255,0.03); color:var(--text-main); box-shadow: 0 4px 14px rgba(0,0,0,0.45); }

        /* ══════════════════════════════════════════
           PRIVACY MODAL — Redesign
        ══════════════════════════════════════════ */
        .privacy-modal-box {
            width: 92%;
            max-width: 560px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            background: linear-gradient(160deg, rgba(15,10,25,0.97) 0%, rgba(8,5,16,0.98) 100%);
            border: 1px solid rgba(168,85,247,0.25);
            border-radius: 24px;
            position: relative;
            overflow: hidden;
            box-shadow:
                0 0 0 1px rgba(168,85,247,0.08),
                0 24px 64px rgba(0,0,0,0.7),
                0 0 80px rgba(168,85,247,0.06);
            animation: privacyModalIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
        }
        @keyframes privacyModalIn {
            from { opacity:0; transform: translateY(24px) scale(0.97); }
            to   { opacity:1; transform: translateY(0) scale(1); }
        }

        /* Animated top glow bar */
        .privacy-modal-box::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(168,85,247,0.8) 30%,
                rgba(236,72,153,0.8) 60%,
                transparent 100%);
            animation: privacyBarSweep 3s ease-in-out infinite;
        }
        @keyframes privacyBarSweep {
            0%, 100% { opacity: 0.6; }
            50%       { opacity: 1; }
        }

        /* Subtle grid background */
        .privacy-modal-box::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(168,85,247,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none;
        }

        .privacy-close-btn {
            position: absolute;
            top: 14px; right: 14px;
            z-index: 10;
            width: 34px; height: 34px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.18s;
            line-height: 1;
        }
        .privacy-close-btn:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-main);
            border-color: rgba(255,255,255,0.15);
        }

        .privacy-scroll {
            overflow-y: auto;
            padding: 36px 28px 20px;
            flex: 1;
            position: relative;
            z-index: 1;
        }
        .privacy-scroll::-webkit-scrollbar { width: 4px; }
        .privacy-scroll::-webkit-scrollbar-track { background: transparent; }
        .privacy-scroll::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 4px; }

        /* Header */
        .privacy-header {
            text-align: center;
            margin-bottom: 28px;
        }
        .privacy-shield-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }
        .privacy-shield-ring {
            position: absolute;
            width: 72px; height: 72px;
            border-radius: 50%;
            border: 1px solid rgba(168,85,247,0.3);
            animation: privacyRingPulse 2.5s ease-in-out infinite;
        }
        .privacy-shield-ring::before {
            content: '';
            position: absolute;
            inset: 8px;
            border-radius: 50%;
            border: 1px solid rgba(168,85,247,0.15);
        }
        @keyframes privacyRingPulse {
            0%, 100% { transform: scale(1);   opacity: 0.7; }
            50%       { transform: scale(1.08); opacity: 1; }
        }
        .privacy-shield-icon {
            font-size: 2.4rem;
            position: relative;
            z-index: 1;
            filter: drop-shadow(0 0 16px rgba(168,85,247,0.5));
        }
        .privacy-title {
            color: var(--text-main);
            font-size: 1.55rem;
            font-weight: 750;
            margin: 0 0 6px;
            letter-spacing: -0.03em;
        }
        .privacy-subtitle {
            color: var(--text-muted);
            font-size: 0.88rem;
            margin: 0 0 14px;
        }
        .privacy-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            background: rgba(16,185,129,0.1);
            border: 1px solid rgba(16,185,129,0.25);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #10b981;
            letter-spacing: 0.02em;
        }
        .privacy-status-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: #10b981;
            animation: privacyDotPulse 1.8s ease-in-out infinite;
        }
        @keyframes privacyDotPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%       { opacity: 0.6; transform: scale(0.8); }
        }

        /* Sections */
        .privacy-section {
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 14px;
        }
        .privacy-section-green {
            background: rgba(16,185,129,0.06);
            border: 1px solid rgba(16,185,129,0.18);
        }
        .privacy-section-blue {
            background: rgba(59,130,246,0.06);
            border: 1px solid rgba(59,130,246,0.18);
        }
        .privacy-section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 14px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
        }

        .privacy-list {
            list-style: none;
            padding: 0; margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .privacy-list-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .privacy-item-icon {
            width: 30px; height: 30px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
            margin-top: 1px;
        }
        .privacy-item-icon-green { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); }
        .privacy-item-icon-blue  { background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.2); }
        .privacy-list-item div {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .privacy-list-item strong {
            color: var(--text-main);
            font-size: 0.85rem;
            font-weight: 600;
        }
        .privacy-list-item span {
            color: var(--text-muted);
            font-size: 0.8rem;
            line-height: 1.5;
        }
        .privacy-link {
            color: rgba(168,85,247,0.9);
            text-decoration: none;
            border-bottom: 1px solid rgba(168,85,247,0.3);
            transition: all 0.15s;
        }
        .privacy-link:hover {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        /* Open Source note */
        .privacy-note {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-left: 3px solid rgba(168,85,247,0.5);
            border-radius: 10px;
            padding: 14px;
            margin-top: 4px;
        }
        .privacy-note-icon {
            font-size: 1rem;
            margin-top: 1px;
            flex-shrink: 0;
        }
        .privacy-note p {
            color: var(--text-muted);
            font-size: 0.82rem;
            line-height: 1.6;
            margin: 0;
        }
        .privacy-note strong {
            color: var(--text-main);
        }

        /* Footer */
        .privacy-footer {
            position: relative;
            z-index: 1;
            border-top: 1px solid rgba(168,85,247,0.12);
            padding: 16px 28px;
            background: rgba(0,0,0,0.3);
            flex-shrink: 0;
        }
        .privacy-confirm-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
            border: none;
            border-radius: 14px;
            color: white;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.01em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
            box-shadow: 0 4px 20px rgba(168,85,247,0.3);
        }
        .privacy-confirm-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(168,85,247,0.45);
        }
        .privacy-confirm-btn:active {
            transform: scale(0.98) translateY(0);
            transition-duration: 0.06s;
        }
        .privacy-confirm-icon {
            width: 20px; height: 20px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75rem;
            font-weight: 900;
        }
        .modal-close-x:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12); }
