:root {
    --bg-color: #f1f5f9; 
    --text-main: #0f172a; 
    --text-muted: #1e293b; /* Darkened for better contrast */
    --accent-primary: #0ea5e9; /* Light blue/cyan */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-glow: #7dd3fc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.15);
    --node-size: 60px;
    
    --tag-28tech: #f59e0b;
    --tag-portswigger: #ec4899;
    --tag-crypto: #8b5cf6;
    --tag-action: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button, input, textarea, select { font-family: inherit; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.background-elements {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
    background-color: #e0f2fe;
}

.mesh-bg {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        radial-gradient(at 40% 20%, hsla(198,100%,74%,0.4) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189,100%,56%,0.4) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(217,100%,76%,0.4) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(175,100%,77%,0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(213,100%,82%,0.4) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(199,100%,72%,0.4) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(190,100%,86%,0.4) 0px, transparent 50%);
    filter: blur(40px);
}

/* Daily Timeline Widget */
.daily-timeline-widget {
    background: #ffffff; border-bottom: 2px solid #e2e8f0; padding: 15px 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; top: 60px; z-index: 900;
}
.dt-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
    font-weight: 800; color: var(--text-main); font-size: 1.1rem; text-transform: uppercase;
}
.dt-header i { color: var(--accent-primary); margin-right: 8px;}
.live-clock { background: #f8fafc; padding: 5px 12px; border-radius: 6px; border: 1px solid #cbd5e1; color: var(--accent-secondary); font-family: 'JetBrains Mono', Consolas, monospace;}

.dt-blocks { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
.dt-block {
    flex: 1; min-width: 150px; background: #f1f5f9; padding: 16px; border-radius: 12px; border-left: 4px solid #cbd5e1; gap: 8px;
    transition: all 0.3s; opacity: 0.6;
}
.dt-block.deep-work { border-left-color: #3b82f6; }
.dt-block.rest { border-left-color: #10b981; }

.dt-block.active { opacity: 1; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); border: 1px solid var(--accent-primary); border-left: 4px solid var(--accent-primary);}
.dt-block.active.deep-work { border-color: #3b82f6; border-left-width: 4px; box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); animation: pulse 2s infinite;}
.dt-block.active.rest { border-color: #10b981; border-left-width: 4px; box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);}

.dt-time { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 5px;}
.dt-block.active .dt-time { color: var(--accent-primary); }
.dt-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; color: var(--text-main);}
.dt-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4;}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}


/* Typography & Header */
.hero { text-align: center; padding: 60px 20px 50px; }
.badge {
    background: linear-gradient(90deg, #10b981, #059669);
    color: white; padding: 8px 20px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
    display: inline-block; margin-bottom: 25px; letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px;}
.highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 35px; line-height: 1.6; font-weight: 500;}

.header-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ai {
    background: var(--glass-bg); padding: 14px 28px; border-radius: 12px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px); border: 2px solid;
}
.btn-primary { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-primary:hover { background: var(--accent-primary); color: white; box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4); transform: translateY(-3px); }
.btn-ai { border-color: #8b5cf6; color: #8b5cf6; }
.btn-ai:hover { background: #8b5cf6; color: white; box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4); transform: translateY(-3px); }

/* Roadmap Tree */
.roadmap-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 100px; }
.tree-layout { position: relative; padding: 20px 0; }
.tree-line {
    position: absolute; top: 0; bottom: 120px; left: 50%; width: 6px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: translateX(-50%); border-radius: 6px; box-shadow: 0 0 20px var(--accent-glow);
}
.node-wrapper {
    position: relative; width: 100%; display: flex; margin-bottom: 100px;
    opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.1);
}
.node-wrapper.visible { opacity: 1; transform: translateY(0); }
.node-wrapper.left { justify-content: flex-start; }
.node-wrapper.right { justify-content: flex-end; }
.node { width: 45%; position: relative; cursor: pointer; transition: all 0.3s ease; z-index: 2; }
.node:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25); }
.card-glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 35px; backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); box-shadow: var(--glass-shadow);
}
.node-icon {
    position: absolute; top: 25px; width: var(--node-size); height: var(--node-size);
    background: white; border: 4px solid var(--accent-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent-primary); z-index: 3;
    box-shadow: 0 0 25px var(--accent-glow); transition: all 0.4s ease;
}
.node-wrapper.left .node-icon { right: -85px; }
.node-wrapper.right .node-icon { left: -85px; }
.node:hover .node-icon { background: var(--accent-primary); color: white; transform: scale(1.15) rotate(5deg); }
.node-connector {
    position: absolute; top: 55px; height: 4px; background: var(--accent-primary); width: 55px; z-index: 1;
}
.node-wrapper.left .node-connector { right: 45%; }
.node-wrapper.right .node-connector { left: 45%; }

.node-content h3 { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 1.1rem; color: var(--accent-primary); margin-bottom: 8px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; gap: 10px;}
.timeline-countdown { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 800; color: #ef4444; background: #fee2e2; padding: 4px 10px; border-radius: 6px; border: 1px solid #fca5a5; display: inline-flex; align-items: center; gap: 6px; animation: pulse-red-small 2s infinite; }
@keyframes pulse-red-small { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.node-content h2 { font-size: 1.6rem; margin-bottom: 15px; color: var(--text-main); font-weight: 800; line-height: 1.3;}
.node-content p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-top: 15px; font-weight: 500;}

.progress-bar-bg { width: 100%; height: 8px; background: #cbd5e1; border-radius: 4px; margin: 15px 0; overflow: hidden;}
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); border-radius: 4px; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);}

.end-node { text-align: center; position: relative; z-index: 2; margin-top: -30px; }
.end-node .master {
    position: static; margin: 0 auto; background: linear-gradient(135deg, #fbbf24, #d97706);
    border: none; color: white; width: 85px; height: 85px; font-size: 2.5rem;
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.5);
}
.end-node p { margin-top: 20px; font-weight: 800; font-size: 1.5rem; color: #d97706; text-transform: uppercase; letter-spacing: 2px; }


/* FULL-SCREEN DASHBOARD MODAL */
.full-screen-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: #f8fafc; overflow: hidden; align-items: stretch; justify-content: stretch;
    opacity: 0; transition: opacity 0.3s ease;
}
.full-screen-modal.show { display: flex; opacity: 1; }
.modal-content.dashboard-content {
    background: transparent; border: none; box-shadow: none; border-radius: 0; margin: 0;
    width: 100%; max-width: 100%; height: 100%; padding: 50px 100px; display: flex; flex-direction: column; max-height: 100vh;
}
.full-screen-modal .close-modal {
    position: static; font-size: 1.2rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 20px; background: white; border-radius: 12px; width: fit-content; border: 1px solid #e2e8f0; font-weight: 600; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s;
}
.full-screen-modal .close-modal:hover { color: var(--accent-primary); transform: translateX(-5px); border-color: var(--accent-primary);}

#dashboard-body { flex: 1; overflow-y: auto; padding-right: 15px; }
#dashboard-body::-webkit-scrollbar { width: 8px; }
#dashboard-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* Dashboard Header */
.db-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid #e2e8f0;}
.db-header-left h3 { color: var(--accent-primary); font-family: 'JetBrains Mono', Consolas, monospace; font-size: 1.2rem; margin-bottom: 10px;}
.db-header-left h2 { font-size: 3rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; letter-spacing: -1px;}
.db-header-left p { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; line-height: 1.6;}
.deadline-countdown { margin-top: 15px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 1.2rem; font-weight: 800; color: #ef4444; background: #fee2e2; padding: 10px 20px; border-radius: 8px; border: 1px solid #fca5a5; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.db-header-right { text-align: right; }
.db-stat { background: white; padding: 15px 25px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); font-weight: 700; color: var(--accent-primary); font-size: 1.1rem; display: inline-flex; flex-direction: column; align-items: center;}
.db-stat span { font-size: 2.5rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-top: 5px;}

/* Grid Layout for Details */
.db-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

.db-col { background: white; border-radius: 20px; padding: 25px; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02); display: flex; flex-direction: column;}
.db-col h4 { font-size: 1.2rem; color: var(--text-main); border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 700;}
.col-theory h4 i { color: #f59e0b; }
.col-file h4 i { color: var(--accent-primary); }
.col-practice h4 i { color: #ec4899; }
.col-check h4 i { color: #10b981; }
.info-item { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed #e2e8f0; }
.info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-item h5 { font-size: 1.05rem; color: var(--text-main); margin-bottom: 8px; font-weight: 600;}
.info-item p { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; line-height: 1.65;}
.info-item p strong { display: block; font-size: 1rem; color: var(--text-main); font-weight: 800; margin-bottom: 5px; padding-top: 5px; }
/* File Path Styling */
.file-path {
    display: block; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
    padding: 12px 15px; margin-top: 10px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.85rem;
    color: #0f172a; font-weight: 600; word-break: break-all; border-left: 4px solid var(--accent-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.file-path i { color: #eab308; margin-right: 8px; font-size: 1.1rem;}

/* File Card Styling */
.file-card {
    display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.7);
    padding: 10px 12px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 8px;
    transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.file-card:hover { background: #ffffff; border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.fc-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;}
.fc-icon.mp4 { background: #fee2e2; color: #ef4444; }
.fc-icon.pdf { background: #fef3c7; color: #f59e0b; }
.fc-icon.code { background: #e0e7ff; color: #4f46e5; }
.fc-icon.doc { background: #e0f2fe; color: #0ea5e9; }
.fc-info { display: flex; flex-direction: column; overflow: hidden; }
.fc-name { font-weight: 700; color: #0f172a; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'Inter', sans-serif;}
.fc-path { color: #64748b; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'JetBrains Mono', monospace;}

/* Tag Styles */
.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.tag.t28tech { background: #fef3c7; color: #b45309; }
.tag.portswigger { background: #fce7f3; color: #be185d; }
.tag.crypto { background: #ede9fe; color: #6d28d9; }
.tag.action { background: #d1fae5; color: #047857; }
.tag.theory { background: #e0f2fe; color: #0369a1; }

/* Checklist Style */
.checklist-item {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; padding: 12px;
    background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; transition: background 0.3s;
}
.checklist-item:hover { background: #f1f5f9; }
.checklist-item.checked { background: #f1f5f9; opacity: 0.7; }
.checklist-item.checked p { text-decoration: line-through; color: #94a3b8; }
.checklist-item input[type="checkbox"] { margin-top: 4px; transform: scale(1.3); accent-color: #10b981; cursor: pointer;}
.checklist-content p { color: var(--text-main); font-size: 0.95rem; font-weight: 500; line-height: 1.5; transition: all 0.3s;}

/* Modals */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
.modal.show { display: flex; opacity: 1;}
.modal-content {
    background: white; margin: auto; padding: 40px;
    width: 90%; max-width: 700px; border-radius: 24px; position: relative; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid #e2e8f0;
}
.modal-content.modal-lg { max-width: 1000px; }
.modal-content .close-modal.icon-only {
    position: absolute; top: 25px; right: 25px; font-size: 1.8rem; cursor: pointer; color: #94a3b8; background: none; border: none; padding: 0; box-shadow: none;
}
.modal-content .close-modal.icon-only:hover { color: var(--accent-primary); transform: none;}
.modal-content h2 { margin-bottom: 25px; color: var(--text-main); font-weight: 800; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; font-size: 2rem;}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bio-card { background: #f8fafc; padding: 25px; border-radius: 16px; border: 1px solid #e2e8f0; border-left: 4px solid var(--accent-primary);}
.bio-card h3 { color: var(--text-main); margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; font-weight: 700;}
.bio-card ul { padding-left: 20px;}
.bio-card li { margin-bottom: 12px; line-height: 1.6; color: var(--text-muted); font-size: 0.95rem;}

/* Methodology Grid */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; border-top: 4px solid #10b981; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);}
.m-icon { font-size: 2rem; color: #10b981; margin-bottom: 15px;}
.method-card h3 { font-size: 1.15rem; color: var(--text-main); margin-bottom: 15px; font-weight: 800;}
.method-card ul { padding-left: 15px;}
.method-card li { margin-bottom: 15px; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted);}
.method-card li strong { color: var(--text-main); }

/* Responsive */
@media (max-width: 1200px) {
    .db-grid { grid-template-columns: 1fr 1fr; }
    .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .tree-line { left: 40px; }
    .node-wrapper.left, .node-wrapper.right { justify-content: flex-end; }
    .node { width: calc(100% - 90px); }
    .node-wrapper.left .node-icon, .node-wrapper.right .node-icon { left: -55px; right: auto; }
    .node-wrapper.left .node-connector, .node-wrapper.right .node-connector { left: -20px; width: 20px; }
    h1 { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .modal-content.dashboard-content { padding: 20px; }
    .db-grid { grid-template-columns: 1fr; }
    .db-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Floating Tool Icons */
.floating-tools {
    position: fixed; bottom: 30px; right: 30px; z-index: 990;
    display: flex; gap: 15px; align-items: center;
}
.tool-circle-btn {
    width: 60px; height: 60px; border-radius: 50%; border: none;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: white; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); outline: none;
}
.tool-circle-btn#btn-toggle-terminal-icon { background: rgba(15, 23, 42, 0.9); border: 2px solid #38bdf8; }
.tool-circle-btn#btn-toggle-terminal-icon:hover { background: #1e293b; transform: scale(1.1); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4); }

.tool-circle-btn#btn-focus-mode { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.tool-circle-btn#btn-focus-mode:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5); }
.focus-pulse { animation: pulse-cyan 2.5s infinite; }

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Focus Mode Modal */
.full-screen-modal#modal-focus { background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.focus-bg-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 80%);
}
.modal-content.focus-content {
    background: transparent; color: white; border-radius: 0; padding: 2vh 20px; margin: 0; border: none; box-shadow: none;
    width: 100%; max-width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden; /* Prevent scroll */
}

/* Nút Back ra trang chủ */
.btn-back-home {
    position: absolute; top: 30px; left: 30px; z-index: 10;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; font-family: 'Inter', sans-serif; font-weight: 600; padding: 10px 20px;
    border-radius: 50px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-back-home:hover { background: rgba(56, 189, 248, 0.2); border-color: #38bdf8; color: #38bdf8; }

.focus-inner { max-width: 900px; width: 100%; text-align: center; font-family: 'Inter', system-ui, sans-serif; padding-top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;}
.modal-content.focus-content h2.focus-title { color: #94a3b8; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1vh; border: none; padding-bottom: 0;}
.focus-mission-text { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #ffffff; line-height: 1.3; margin-bottom: 2vh; text-shadow: 0 4px 15px rgba(0,0,0,0.4); letter-spacing: -0.5px;}
.focus-file-box { background: rgba(255,255,255,0.05); padding: 1.5vh 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 2vh; display: inline-block; text-align: left; transition: all 0.3s; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.focus-file-box:hover { background: rgba(255,255,255,0.08); border-color: rgba(59, 130, 246, 0.5); transform: translateY(-2px); box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);}
.focus-file-box .file-path { background: transparent; border: none; color: #60a5fa; font-size: clamp(0.9rem, 1.5vw, 1.1rem); margin: 0; padding: 0; box-shadow: none; border-left: none; font-family: 'JetBrains Mono', Consolas, monospace; }
.focus-file-box h4 { color: #94a3b8; font-size: 0.8rem; margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}

.pomodoro-box { margin-bottom: 2vh; position: relative; display: inline-block;}
.pomodoro-box h3 { color: #60a5fa; margin-bottom: 5px; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;}
.pomo-timer { font-family: 'JetBrains Mono', Consolas, monospace; font-size: clamp(4rem, 8vw, 5.5rem); font-weight: 700; color: white; letter-spacing: -2px; margin-bottom: 1.5vh; line-height: 1; text-shadow: 0 0 30px rgba(37, 99, 235, 0.5);}
.pomo-controls { display: flex; gap: 15px; justify-content: center; }
.btn-pomo { background: #2563eb; color: white; border: none; padding: 10px 30px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);}
.btn-pomo:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);}
.btn-pomo-outline { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.2); color: #e2e8f0; box-shadow: none;}
.btn-pomo-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: white;}

.focus-footer .btn-primary { background: linear-gradient(90deg, #3b82f6, #1d4ed8); border: none; color: white; font-size: 1.1rem; font-weight: 700; padding: 12px 35px; border-radius: 50px; box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s;}
.focus-footer .btn-primary:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6); background: linear-gradient(90deg, #2563eb, #1e3a8a); }

/* --- PHASE 6: CYBERSEC OS ULTIMATE UPGRADES --- */

/* OS Top Bar (Gamification) */
.os-top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center; padding: 0 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.os-brand { color: #38bdf8; font-family: 'JetBrains Mono', Consolas, monospace; font-weight: 800; font-size: 1.1rem;}
.os-player-profile { display: flex; align-items: center; gap: 15px; }
.player-level { background: #10b981; color: white; font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: 0.9rem;}
.player-title { color: #cbd5e1; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}
.exp-bar-container { width: 150px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.exp-bar-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #2563eb); transition: width 0.5s ease; }
.os-pomodoro { display: flex; align-items: center; gap: 10px; background: rgba(16, 185, 129, 0.2); padding: 5px 15px; border-radius: 20px; border: 1px solid #10b981; color: #10b981; font-family: 'JetBrains Mono', monospace; font-weight: 800; transition: all 0.3s;}
.os-pomodoro button { background: none; border: none; color: white; cursor: pointer; transition: 0.2s; }
.os-pomodoro button:hover { color: #38bdf8; transform: scale(1.1); }
.os-pomodoro.running { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #ef4444; animation: pulse-red-small 2s infinite; }
.exp-text { color: #94a3b8; font-size: 0.8rem; font-family: 'JetBrains Mono', Consolas, monospace;}
.os-tools { display: flex; gap: 10px; }
.os-tool-btn {
    background: rgba(255,255,255,0.05); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 15px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.os-tool-btn:hover { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border-color: #38bdf8; }

/* Hacker Terminal */
.hacker-terminal {
    position: fixed; bottom: 100px; right: 30px; width: 380px; max-height: 250px;
    background: rgba(9, 9, 11, 0.95); border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 8px;
    z-index: 900; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; transform-origin: bottom right;
}
.hacker-terminal.hidden { transform: scale(0.8) translateY(50px); opacity: 0; pointer-events: none;}
.terminal-header {
    background: #1e293b; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.terminal-header span { color: #cbd5e1; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.8rem; font-weight: 600;}
.terminal-controls { display: flex; gap: 6px; }
.terminal-controls span { display: block; width: 12px; height: 12px; border-radius: 50%; cursor: pointer;}
.tc-min { background: #fbbf24; }
.tc-max { background: #10b981; }
.tc-close { background: #ef4444; }
.terminal-body {
    padding: 12px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.8rem; color: #10b981;
    overflow-y: auto; height: 100%; display: flex; flex-direction: column; gap: 6px;
}
.terminal-body::-webkit-scrollbar { width: 5px; }
.terminal-body::-webkit-scrollbar-thumb { background: #10b981; border-radius: 5px;}
.term-time { color: #64748b; }
.term-success { color: #3b82f6; }
.term-warn { color: #fbbf24; }
.term-err { color: #ef4444; }

/* The Vault Search */
.vault-search-container input {
    width: 100%; background: #f8fafc; border: 2px solid #cbd5e1;
    color: #0f172a; padding: 15px 25px; border-radius: 12px; font-size: 1.1rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.3s;
}
.vault-search-container input:focus { border-color: #3b82f6; }
.vault-results { margin-top: 20px; max-height: 50vh; overflow-y: auto; text-align: left; padding-right: 10px;}
.vault-item {
    background: #ffffff; padding: 15px; border-radius: 8px; margin-bottom: 10px;
    border: 1px solid #e2e8f0; transition: background 0.2s, transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.vault-item:hover { background: #f1f5f9; transform: translateX(5px); }
.vault-item-month { color: #3b82f6; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px;}
.vault-item-content { color: #334155; font-size: 0.95rem; line-height: 1.6; font-weight: 500; }
.vault-highlight { background: rgba(59, 130, 246, 0.2); color: #1d4ed8; padding: 0 4px; border-radius: 4px; font-weight: 700;}

/* Heatmap */
.heatmap-container { background: #f8fafc; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);}
.heatmap-grid { display: grid; grid-template-columns: repeat(30, 1fr); gap: 5px; margin-bottom: 15px; }
.heat-box { aspect-ratio: 1; border-radius: 4px; background: #e2e8f0; transition: transform 0.2s; cursor: pointer; }
.heat-box:hover { transform: scale(1.3); box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10;}
.heat-box.level-1 { background: #93c5fd; }
.heat-box.level-2 { background: #60a5fa; }
.heat-box.level-3 { background: #3b82f6; }
.heat-box.level-4 { background: #2563eb; }
.heatmap-legend { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 0.85rem; color: #64748b; font-weight: 600; }
.heatmap-stats { display: flex; gap: 20px; }
.h-stat { flex: 1; background: #ffffff; padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.03);}
.h-stat h4 { color: #64748b; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px;}
.h-stat span { color: #0f172a; font-size: 1.8rem; font-weight: 800; font-family: 'JetBrains Mono', Consolas, monospace;}

/* --- PHASE 7: MACRO EVOLUTION --- */

/* Secret Stash */
.stash-sidebar { display: flex; flex-direction: column; gap: 10px; width: 220px; }
.stash-tab { background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; padding: 12px 15px; border-radius: 8px; text-align: left; font-weight: 600; cursor: pointer; transition: all 0.2s;}
.stash-tab:hover { background: #e2e8f0; }
.stash-tab.active { background: #3b82f6; color: white; border-color: #2563eb; }
.stash-editor { flex: 1; display: flex; flex-direction: column; position: relative; }
.stash-editor textarea { 
    flex: 1; width: 100%; background: #0f172a; color: #10b981; padding: 20px; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; line-height: 1.6; border: 2px solid #334155;
    outline: none; resize: none; transition: border-color 0.3s;
}
.stash-editor textarea:focus { border-color: #3b82f6; }
.stash-status { position: absolute; bottom: 15px; right: 20px; color: #10b981; font-size: 0.85rem; font-weight: 600; background: rgba(15, 23, 42, 0.8); padding: 5px 10px; border-radius: 5px; opacity: 0; transition: opacity 0.5s; pointer-events: none;}
.stash-status.show { opacity: 1; }

/* Audit Simulator */
.sim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sim-header h3 { font-size: 1.2rem; color: #0f172a; }
.sim-badge { background: #3b82f6; color: white; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.sim-code-box { background: #1e293b; padding: 20px; border-radius: 8px; border-left: 4px solid #ef4444; margin-bottom: 20px; overflow-x: auto; }
.sim-code-box pre { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: #f8fafc; line-height: 1.5; }

/* AI Prompts and Layout */
.ai-layout { display: flex; gap: 20px; margin-top: 20px; }
.ai-sidebar { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ai-prompt-box { flex: 2; background: rgba(0, 0, 0, 0.4); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); position: relative; }
.ai-prompt-box p { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #a1a1aa; line-height: 1.5; margin-bottom: 20px; }
.btn-copy { position: absolute; bottom: 20px; right: 20px; background: var(--accent-primary); color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: bold; transition: all 0.3s; }
.btn-copy:hover { background: #2563eb; transform: scale(1.05); }

/* SOS Button */
.sos-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sos-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Daily Briefing & Smart Highlight */
.brief-day-badge { display: inline-block; background: #ef4444; color: white; padding: 5px 15px; border-radius: 20px; font-weight: 800; font-size: 1.2rem; margin-bottom: 15px; }
.brief-task-box { background: rgba(0,0,0,0.3); border: 1px solid #334155; padding: 15px; border-radius: 8px; margin-bottom: 15px; text-align: left; }
.brief-task-box h4 { color: #3b82f6; margin-bottom: 10px; font-size: 1.1rem; }
.brief-task-box p { color: #f8fafc; font-size: 1rem; line-height: 1.5; margin-bottom: 5px;}
.smart-highlight {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05) !important;
    transform: scale(1.02);
    z-index: 10;
    position: relative;
}
.dimmed-task {
    opacity: 0.3;
    filter: grayscale(80%);
    transition: all 0.3s;
}
.dimmed-task:hover { opacity: 0.8; filter: none; }

.sim-options { display: flex; flex-direction: column; gap: 10px; }
.sim-option-btn { background: #f8fafc; border: 2px solid #cbd5e1; color: #334155; padding: 15px; border-radius: 8px; text-align: left; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 1rem;}
.sim-option-btn:hover { background: #e0f2fe; border-color: #7dd3fc; }
.sim-option-btn.correct { background: #dcfce7; border-color: #22c55e; color: #166534; }
.sim-option-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.sim-feedback { padding: 15px; border-radius: 8px; font-weight: 600; margin-top: 15px; }
.sim-feedback.hidden { display: none; }
.sim-feedback.success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.sim-feedback.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* Leaderboard Ranking */
.lb-list { display: flex; flex-direction: column; gap: 10px; }
.lb-item { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; transition: transform 0.2s; }
.lb-item:hover { transform: scale(1.02); box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-color: #38bdf8;}
.lb-item.me { background: #eff6ff; border-color: #3b82f6; border-left: 5px solid #2563eb; }
.lb-rank { font-weight: 800; font-size: 1.2rem; color: #64748b; width: 40px; }
.lb-rank.top-1 { color: #fbbf24; }
.lb-rank.top-2 { color: #94a3b8; }
.lb-rank.top-3 { color: #b45309; }
.lb-info { flex: 1; display: flex; flex-direction: column; }
.lb-name { font-weight: 700; color: #0f172a; font-size: 1.05rem;}
.lb-title { font-size: 0.8rem; color: #64748b; text-transform: uppercase; font-weight: 600;}
.lb-exp { font-family: 'JetBrains Mono', monospace; font-weight: 800; color: #3b82f6;}

/* Radar Analytics */
.analytics-bars { display: flex; flex-direction: column; gap: 15px; }
.a-bar-row { display: flex; flex-direction: column; gap: 5px; }
.a-label { font-weight: 700; color: #334155; font-size: 0.95rem; display: flex; align-items: center; gap: 8px;}
.a-progress-bg { width: 100%; height: 16px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.a-progress-fill { height: 100%; border-radius: 8px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Cyber Acoustics in Focus Mode */
.cyber-audio-controls { margin-top: 1vh; margin-bottom: 2vh; background: rgba(0, 0, 0, 0.3); padding: 12px 25px; border-radius: 12px; border: 1px solid rgba(59, 130, 246, 0.2); text-align: center; display: inline-block;}
.audio-label { color: #94a3b8; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;}
.audio-btns { display: flex; gap: 12px; justify-content: center; }
.btn-audio, .btn-audio-stop { width: 40px; height: 40px; border-radius: 50%; border: none; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; outline: none;}
.btn-audio { background: rgba(255,255,255,0.05); color: #cbd5e1; }
.btn-audio:hover { background: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.cyber-audio-controls button.active { background: #10b981; border-color: #059669; box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
.cyber-audio-controls button.stop { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.cyber-audio-controls button.stop:hover { background: #ef4444; color: white; border-color: #dc2626;}

/* UI Glitch & Hacks */
.glitch-hover:hover { animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; border-color: #ef4444; }
@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-5deg); }
  40% { transform: skew(5deg); }
  60% { transform: skew(-2deg); }
  80% { transform: skew(2deg); }
  100% { transform: skew(0deg); }
}
body.matrix-mode { background: #000; color: #0f0; --bg-color: #000; --text-main: #0f0; --text-muted: #008f11; --accent-primary: #0f0; --glass-bg: rgba(0,20,0,0.8); --glass-border: #0f0; }
body.matrix-mode .mesh-bg { display: none; }
body.matrix-mode * { box-shadow: none !important; border-radius: 0 !important; font-family: 'JetBrains Mono', monospace !important; }

/* --- TABS NAVIGATION --- */
.os-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 100;
}
.tab-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    transform: translateY(-2px);
}
.tab-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}
.tab-content.active {
    display: block;
}

/* --- SNAKE ROADMAP LAYOUT --- */
.snake-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    position: relative;
}

.snake-node {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    opacity: 0.9;
    transition: all 0.3s;
}
.snake-node:hover {
    opacity: 1;
    transform: scale(1.02);
}

.snake-node.left {
    flex-direction: row;
}
.snake-node.right {
    flex-direction: row-reverse;
}

/* Curved Path Lines connecting nodes */
.snake-path-line {
    position: absolute;
    width: 50%;
    height: calc(100% + 50px);
    border: 4px dashed var(--accent-primary);
    opacity: 0.5;
    z-index: 0;
    top: 50%;
}
.snake-node.left .snake-path-line {
    left: 50%;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
}
.snake-node.right .snake-path-line {
    right: 50%;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
}
.snake-node:last-child .snake-path-line {
    display: none;
}

.snake-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    padding: 30px;
    width: 45%;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 15px rgba(59, 130, 246, 0.1);
    border-left: 5px solid var(--accent-primary);
}
.snake-node.right .snake-card {
    border-left: none;
    border-right: 5px solid var(--accent-primary);
    text-align: right;
}

.snake-icon-wrapper {
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.snake-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.snake-month {
    font-family: 'JetBrains Mono', monospace;
    color: #60a5fa;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.15rem;
}
.snake-title {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.snake-overview {
    color: #f1f5f9;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* --- MODAL SYSTEM --- */
.os-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.3s;
}
.os-modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.os-modal-content {
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(0);
    transition: all 0.4s;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.95);
    border-radius: 15px;
}
.os-modal.hidden .os-modal-content {
    transform: translateY(-50px);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.modal-header h2 {
    color: var(--accent-primary);
    margin: 0;
}
.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-close-modal:hover {
    color: #ef4444;
}

/* Vault Grid */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.vault-folder {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.vault-folder:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}
.vault-folder i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}
.vault-folder-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    word-break: break-word;
}
.vault-folder-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Prompt Box */
.prompt-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.prompt-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.prompt-code {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-primary);
}
.btn-copy {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-copy:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* --- TAB CONTENT & STREAK GAMIFICATION --- */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}
.tab-content.active {
    display: block;
}

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

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}
.streak-box {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}
.streak-box:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.streak-box.future {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}
.streak-box.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.streak-box.checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: rgba(255,255,255,0.3);
    font-size: 2rem;
    z-index: 0;
}
.streak-box.today {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}
.streak-box.today.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), inset 0 0 10px rgba(16, 185, 129, 0.5);
}
.streak-box .s-day {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 700;
    z-index: 1;
}
.streak-box.checked .s-day { color: rgba(255, 255, 255, 0.9); }
.streak-box .s-date {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    z-index: 1;
}
