 :root {
            --bg-color: #f1f5f9; --text-main: #0f172a; --text-muted: #64748b;
            --brand-dark: #1e293b; --brand-red: #dc2626; --surface: #ffffff;
            --success: #16a34a; --warning: #eab308;
            --ui-border: 4px solid var(--brand-dark); --btn-border: 3px solid var(--brand-dark);
            --ui-shadow: 12px 12px 0 var(--brand-red); --btn-shadow: 4px 4px 0 var(--brand-dark);
            --card-shadow: 8px 8px 0 var(--brand-dark); --card-hover-shadow: 12px 12px 0 var(--brand-red);
            --ui-radius: 0px; --btn-radius: 0px;
            --font-main: 'Montserrat', sans-serif; --font-head: 'Playfair Display', serif;
        }

        [data-theme="excel"] { --bg-color: #f3f2f1; --text-main: #217346; --text-muted: #666666; --brand-dark: #217346; --brand-red: #000000; --surface: #ffffff; --ui-border: 1px solid #c8c6c4; --btn-border: 1px solid #217346; --ui-shadow: none; --btn-shadow: none; --card-shadow: 0 2px 4px rgba(0,0,0,0.1); --card-hover-shadow: 0 4px 8px rgba(0,0,0,0.2); --ui-radius: 0px; --btn-radius: 2px; --font-main: 'Segoe UI', Arial, sans-serif; --font-head: 'Segoe UI', Arial, sans-serif; }
        [data-theme="matrix"] { --bg-color: #0d0d0d; --text-main: #00ff41; --text-muted: #008f11; --brand-dark: #00ff41; --brand-red: #00ff41; --surface: #000000; --ui-border: 1px solid #00ff41; --btn-border: 1px solid #00ff41; --ui-shadow: 0 0 15px rgba(0,255,65,0.2); --btn-shadow: 0 0 5px rgba(0,255,65,0.4); --card-shadow: 0 0 10px rgba(0,255,65,0.1); --card-hover-shadow: 0 0 20px rgba(0,255,65,0.4); --ui-radius: 0px; --btn-radius: 0px; --font-main: 'Courier New', Courier, monospace; --font-head: 'Courier New', Courier, monospace; }
        [data-theme="space"] { --bg-color: #0b0c10; --text-main: #66fcf1; --text-muted: #c5c6c7; --brand-dark: #1f2833; --brand-red: #45a29e; --surface: #12141a; --ui-border: 1px solid #45a29e; --btn-border: 1px solid #66fcf1; --ui-shadow: 0 10px 30px rgba(69,162,158,0.2); --btn-shadow: 0 5px 15px rgba(102,252,241,0.2); --card-shadow: 0 4px 15px rgba(0,0,0,0.5); --card-hover-shadow: 0 10px 25px rgba(102,252,241,0.3); --ui-radius: 12px; --btn-radius: 20px; }
        [data-theme="ice"] { --bg-color: #e0f2fe; --text-main: #0c4a6e; --text-muted: #0284c7; --brand-dark: #0284c7; --brand-red: #0ea5e9; --surface: rgba(255,255,255,0.7); --ui-border: 1px solid rgba(255,255,255,0.5); --btn-border: 1px solid #0284c7; --ui-shadow: 0 8px 32px rgba(2,132,199,0.1); --btn-shadow: none; --card-shadow: 0 4px 15px rgba(2,132,199,0.05); --card-hover-shadow: 0 8px 25px rgba(2,132,199,0.2); --ui-radius: 16px; --btn-radius: 8px; backdrop-filter: blur(10px); }
        [data-theme="dark"] { --bg-color: #121212; --text-main: #e0e0e0; --text-muted: #a0a0a0; --brand-dark: #2c2c2c; --brand-red: #bb86fc; --surface: #1e1e1e; --ui-border: 1px solid #333; --btn-border: 1px solid #bb86fc; --ui-shadow: 0 4px 12px rgba(0,0,0,0.5); --btn-shadow: 0 2px 4px rgba(187,134,252,0.2); --card-shadow: 0 2px 8px rgba(0,0,0,0.4); --card-hover-shadow: 0 4px 12px rgba(187,134,252,0.3); --ui-radius: 8px; --btn-radius: 4px; }
        [data-theme="daylight"] { --bg-color: #fffbeb; --text-main: #451a03; --text-muted: #92400e; --brand-dark: #b45309; --brand-red: #d97706; --surface: #ffffff; --ui-border: 2px solid #fde68a; --btn-border: 2px solid #b45309; --ui-shadow: 0 10px 20px rgba(180,83,9,0.1); --btn-shadow: 0 4px 6px rgba(180,83,9,0.2); --card-shadow: 0 4px 6px rgba(180,83,9,0.05); --card-hover-shadow: 0 10px 15px rgba(180,83,9,0.15); --ui-radius: 12px; --btn-radius: 25px; }
        [data-theme="cyberpunk"] { --bg-color: #fcee0a; --text-main: #050a0e; --text-muted: #ff003c; --brand-dark: #050a0e; --brand-red: #00ffff; --surface: #ff003c; --ui-border: 3px solid #050a0e; --btn-border: 2px solid #00ffff; --ui-shadow: 8px 8px 0 #00ffff; --btn-shadow: 4px 4px 0 #050a0e; --card-shadow: 5px 5px 0 #050a0e; --card-hover-shadow: 10px 10px 0 #00ffff; --ui-radius: 0px; --btn-radius: 0px; }
        [data-theme="retro"] { --bg-color: #2b1055; --text-main: #ffd700; --text-muted: #ff77ff; --brand-dark: #7597de; --brand-red: #ff77ff; --surface: #240b36; --ui-border: 2px solid #ff77ff; --btn-border: 2px solid #00ffff; --ui-shadow: 5px 5px 15px #ff77ff; --btn-shadow: 0 0 10px #00ffff; --card-shadow: 0 0 10px #7597de; --card-hover-shadow: 0 0 20px #ff77ff; --ui-radius: 4px; --btn-radius: 4px; }
        [data-theme="minimal"] { --bg-color: #ffffff; --text-main: #000000; --text-muted: #888888; --brand-dark: #000000; --brand-red: #000000; --surface: #ffffff; --ui-border: 1px solid #eeeeee; --btn-border: 1px solid #000000; --ui-shadow: none; --btn-shadow: none; --card-shadow: none; --card-hover-shadow: 0 4px 12px rgba(0,0,0,0.05); --ui-radius: 0px; --btn-radius: 0px; }
        [data-theme="nature"] { --bg-color: #f0f4f0; --text-main: #1a3c1a; --text-muted: #4a6c4a; --brand-dark: #2d5a2d; --brand-red: #8b4513; --surface: #ffffff; --ui-border: 1px solid #c1d7c1; --btn-border: 1px solid #2d5a2d; --ui-shadow: 0 8px 24px rgba(45,90,45,0.08); --btn-shadow: 0 2px 4px rgba(45,90,45,0.2); --card-shadow: 0 4px 12px rgba(45,90,45,0.05); --card-hover-shadow: 0 8px 16px rgba(139,69,19,0.15); --ui-radius: 16px; --btn-radius: 30px; }
        [data-theme="ocean"] { --bg-color: #001f3f; --text-main: #7fdbff; --text-muted: #39cccc; --brand-dark: #0074d9; --brand-red: #ff851b; --surface: #00152b; --ui-border: 1px solid #0074d9; --btn-border: 1px solid #7fdbff; --ui-shadow: 0 10px 20px rgba(0,116,217,0.3); --btn-shadow: 0 0 8px rgba(127,219,255,0.4); --card-shadow: 0 4px 10px rgba(0,0,0,0.3); --card-hover-shadow: 0 8px 20px rgba(255,133,27,0.3); --ui-radius: 20px 0 20px 0; --btn-radius: 10px; }
        [data-theme="hacker"] { --bg-color: #000000; --text-main: #ff0000; --text-muted: #880000; --brand-dark: #220000; --brand-red: #ff0000; --surface: #0a0000; --ui-border: 1px dashed #ff0000; --btn-border: 1px solid #ff0000; --ui-shadow: none; --btn-shadow: none; --card-shadow: none; --card-hover-shadow: inset 0 0 10px #ff0000; --ui-radius: 0px; --btn-radius: 0px; --font-main: monospace; --font-head: monospace; }
        [data-theme="dracula"] { --bg-color: #282a36; --text-main: #f8f8f2; --text-muted: #6272a4; --brand-dark: #44475a; --brand-red: #ff79c6; --surface: #282a36; --ui-border: 2px solid #6272a4; --btn-border: 2px solid #bd93f9; --ui-shadow: 0 5px 15px rgba(0,0,0,0.5); --btn-shadow: 0 0 5px #bd93f9; --card-shadow: 0 2px 8px rgba(0,0,0,0.3); --card-hover-shadow: 0 5px 15px #ff79c6; --ui-radius: 6px; --btn-radius: 6px; }
        [data-theme="candy"] { --bg-color: #ffe4e1; --text-main: #ff69b4; --text-muted: #db7093; --brand-dark: #ffb6c1; --brand-red: #ff1493; --surface: #ffffff; --ui-border: 3px solid #ffb6c1; --btn-border: 2px dashed #ff1493; --ui-shadow: 0 10px 20px rgba(255,105,180,0.2); --btn-shadow: 4px 4px 0 #ffb6c1; --card-shadow: 0 5px 15px rgba(255,182,193,0.3); --card-hover-shadow: 0 10px 25px rgba(255,20,147,0.3); --ui-radius: 30px; --btn-radius: 20px; }
        [data-theme="sunset"] { --bg-color: #fff7ed; --text-main: #7c2d12; --text-muted: #c2410c; --brand-dark: #9a3412; --brand-red: #ea580c; --surface: #ffedd5; --ui-border: 2px solid #ea580c; --btn-border: 2px solid #9a3412; --ui-shadow: 8px 8px 0 #fed7aa; --btn-shadow: 4px 4px 0 #fdba74; --card-shadow: 0 4px 10px rgba(234,88,12,0.1); --card-hover-shadow: 0 8px 20px rgba(234,88,12,0.3); --ui-radius: 15px; --btn-radius: 10px; }
        [data-theme="neon"] { --bg-color: #0f172a; --text-main: #f8fafc; --text-muted: #94a3b8; --brand-dark: #38bdf8; --brand-red: #f43f5e; --surface: #1e293b; --ui-border: 1px solid #f43f5e; --btn-border: 1px solid #38bdf8; --ui-shadow: 0 0 20px rgba(244,63,94,0.3); --btn-shadow: 0 0 10px rgba(56,189,248,0.5); --card-shadow: 0 0 10px rgba(244,63,94,0.1); --card-hover-shadow: 0 0 25px rgba(244,63,94,0.4); --ui-radius: 5px; --btn-radius: 5px; }
        [data-theme="coffee"] { --bg-color: #efebe9; --text-main: #3e2723; --text-muted: #795548; --brand-dark: #4e342e; --brand-red: #d84315; --surface: #d7ccc8; --ui-border: 2px solid #8d6e63; --btn-border: 2px solid #5d4037; --ui-shadow: 6px 6px 0 rgba(78,52,46,0.2); --btn-shadow: 3px 3px 0 rgba(78,52,46,0.3); --card-shadow: 4px 4px 0 rgba(78,52,46,0.1); --card-hover-shadow: 8px 8px 0 rgba(216,67,21,0.3); --ui-radius: 8px; --btn-radius: 4px; }
        [data-theme="monochrome"] { --bg-color: #ffffff; --text-main: #000000; --text-muted: #555555; --brand-dark: #000000; --brand-red: #000000; --surface: #f8f9fa; --ui-border: 2px solid #000000; --btn-border: 2px solid #000000; --ui-shadow: 10px 10px 0 #e0e0e0; --btn-shadow: 4px 4px 0 #cccccc; --card-shadow: 5px 5px 0 #eeeeee; --card-hover-shadow: 10px 10px 0 #000000; --ui-radius: 0; --btn-radius: 0; }
        [data-theme="lava"] { --bg-color: #1a1a1a; --text-main: #ff8a65; --text-muted: #ff5722; --brand-dark: #b71c1c; --brand-red: #ff3d00; --surface: #212121; --ui-border: 1px solid #ff3d00; --btn-border: 1px solid #ff8a65; --ui-shadow: 0 10px 30px rgba(255,61,0,0.2); --btn-shadow: 0 0 8px rgba(255,138,101,0.4); --card-shadow: 0 4px 15px rgba(183,28,28,0.3); --card-hover-shadow: 0 8px 25px rgba(255,61,0,0.5); --ui-radius: 10px; --btn-radius: 20px; }
        [data-theme="mint"] { --bg-color: #f0fdf4; --text-main: #14532d; --text-muted: #166534; --brand-dark: #065f46; --brand-red: #10b981; --surface: #ffffff; --ui-border: 2px solid #a7f3d0; --btn-border: 2px solid #059669; --ui-shadow: 0 8px 24px rgba(16,185,129,0.1); --btn-shadow: 0 2px 5px rgba(6,95,70,0.2); --card-shadow: 0 4px 12px rgba(16,185,129,0.05); --card-hover-shadow: 0 8px 20px rgba(16,185,129,0.2); --ui-radius: 24px; --btn-radius: 12px; }
        [data-theme="gold"] { --bg-color: #111827; --text-main: #fef08a; --text-muted: #d97706; --brand-dark: #b45309; --brand-red: #fbbf24; --surface: #1f2937; --ui-border: 1px solid #b45309; --btn-border: 1px solid #fbbf24; --ui-shadow: 0 10px 25px rgba(251,191,36,0.15); --btn-shadow: 0 4px 10px rgba(251,191,36,0.3); --card-shadow: 0 5px 15px rgba(0,0,0,0.5); --card-hover-shadow: 0 10px 30px rgba(251,191,36,0.25); --ui-radius: 4px; --btn-radius: 2px; }
        [data-theme="synthwave"] { --bg-color: #2e0249; --text-main: #00ffff; --text-muted: #ff00ff; --brand-dark: #a91079; --brand-red: #ff00ff; --surface: #570a57; --ui-border: 2px solid #ff00ff; --btn-border: 2px solid #00ffff; --ui-shadow: 8px 8px 0 #a91079; --btn-shadow: 4px 4px 0 #ff00ff; --card-shadow: 0 0 10px #ff00ff; --card-hover-shadow: 0 0 20px #00ffff; --ui-radius: 0; --btn-radius: 0; }
        [data-theme="desert"] { --bg-color: #fff8dc; --text-main: #8b4513; --text-muted: #a0522d; --brand-dark: #cd853f; --brand-red: #d2691e; --surface: #faebd7; --ui-border: 2px solid #deb887; --btn-border: 2px solid #8b4513; --ui-shadow: 5px 5px 10px rgba(139,69,19,0.1); --btn-shadow: 2px 2px 5px rgba(139,69,19,0.2); --card-shadow: 0 2px 8px rgba(160,82,45,0.1); --card-hover-shadow: 0 8px 16px rgba(210,105,30,0.3); --ui-radius: 12px; --btn-radius: 6px; }
        [data-theme="forest"] { --bg-color: #ecfdf5; --text-main: #064e3b; --text-muted: #047857; --brand-dark: #065f46; --brand-red: #059669; --surface: #d1fae5; --ui-border: 3px solid #065f46; --btn-border: 2px solid #064e3b; --ui-shadow: 10px 10px 0 #a7f3d0; --btn-shadow: 4px 4px 0 #34d399; --card-shadow: 6px 6px 0 #6ee7b7; --card-hover-shadow: 10px 10px 0 #059669; --ui-radius: 0; --btn-radius: 0; }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-main); transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
        body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; }
        .container-fluid { width: 100%; max-width: 1920px; padding: 0 40px; margin: 0 auto; }

       
        .navbar { background: var(--brand-dark); color: white; padding: 15px 0; border-bottom: 4px solid var(--brand-red); box-shadow: 0 6px 15px rgba(0,0,0,0.2); position: sticky; top: 0; z-index: 1000; }
        .nav-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
        .logo-text { font-family: var(--font-head); font-size: 24pt; font-weight: 700; color: white; text-decoration: none; }
        .logo-text span { color: var(--brand-red); }
        .nav-links { display: flex; gap: 15px; align-items: center; }
        .btn-nav { background: var(--surface); color: var(--text-main); border: var(--btn-border); padding: 10px 18px; font-weight: 800; cursor: pointer; transition: all 0.2s; text-transform: uppercase; font-size: 9pt; letter-spacing: 1px; text-decoration: none; box-shadow: var(--btn-shadow); border-radius: var(--btn-radius); }
        .btn-nav:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--brand-red); border-color: var(--brand-red); }
        .btn-nav.active { background: var(--brand-red); color: var(--surface); border-color: var(--surface); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--surface); }

        .mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 5px; }
        .mobile-menu-btn span { display: block; width: 30px; height: 4px; background: white; border: 1px solid var(--brand-dark); transition: 0.3s; }

        .theme-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s ease; }
        .theme-panel-overlay.show { opacity: 1; visibility: visible; }
        .theme-panel { position: fixed; top: 0; right: -450px; width: 100%; max-width: 450px; height: 100vh; background: var(--bg-color); border-left: var(--ui-border); box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 9999; padding: 30px 25px; overflow-y: auto; transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1); color: var(--text-main); }
        .theme-panel.open { right: 0; }
        .theme-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid var(--brand-dark); padding-bottom: 15px; }
        .theme-panel-header h2 { font-family: var(--font-head); font-size: 20pt; text-transform: uppercase; }
        .theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .theme-card { background: var(--surface); border: var(--btn-border); border-radius: var(--ui-radius); padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.3s; box-shadow: var(--btn-shadow); }
        .theme-card:hover { transform: translateY(-5px); border-color: var(--brand-red); box-shadow: var(--ui-shadow); }
        .theme-icon { font-size: 28pt; margin-bottom: 12px; }
        .theme-name { font-weight: 800; font-size: 10pt; text-transform: uppercase; }

        main.main-content { padding-top: 50px; padding-bottom: 80px; min-height: calc(100vh - 100px); }
        
        .page-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 5px solid var(--brand-red); padding-bottom: 10px; flex-wrap: wrap; gap: 15px; }
        .page-header { font-family: var(--font-head); font-size: 32pt; color: var(--text-main); border: none; margin: 0; padding: 0; }
        
        .brutal-box { background: var(--surface); border: var(--ui-border); box-shadow: var(--ui-shadow); padding: 30px; margin-bottom: 30px; width: 100%; display: flex; flex-direction: column; border-radius: var(--ui-radius); color: var(--text-main); }
        
        .brutal-btn { background: var(--surface); color: var(--text-main); border: var(--btn-border); padding: 12px 20px; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: var(--btn-shadow); text-transform: uppercase; border-radius: var(--btn-radius); text-decoration: none; font-size: 10pt; letter-spacing: 1px; text-align: center; }
        .brutal-btn:hover { transform: translate(-3px, -3px) !important; box-shadow: 6px 6px 0 var(--brand-red) !important; border-color: var(--brand-red) !important; color: var(--brand-red) !important; opacity: 1 !important; }

        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; font-weight: 800; margin-bottom: 8px; font-size: 10pt; text-transform: uppercase; color: var(--text-main); }
        .form-input { width: 100%; padding: 14px; border: var(--btn-border); font-weight: 600; outline: none; background: var(--bg-color); color: var(--text-main); font-family: inherit; transition: 0.3s; border-radius: var(--btn-radius); }
        .form-input:focus { border-color: var(--brand-red); }
        
        .brutal-table-hover { width: 100%; border-collapse: separate; border-spacing: 0 10px; border: none; background: transparent; margin-top: 10px; }
        .brutal-table-hover th { background: var(--brand-dark); color: white; padding: 15px; border: 2px solid var(--brand-dark); text-transform: uppercase; font-weight: 800; text-align: left; }
        .brutal-table-hover td { background: var(--surface); padding: 15px; border-top: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); color: var(--text-main); font-weight: 600; transition: border-color 0.2s; }
        .brutal-table-hover td:first-child { border-left: 2px solid var(--brand-dark); }
        .brutal-table-hover td:last-child { border-right: 2px solid var(--brand-dark); }
        .brutal-table-hover tbody tr { transition: all 0.2s ease; cursor: pointer; }
        .brutal-table-hover tbody tr:hover { background: rgba(220, 38, 38, 0.04); }
        .brutal-table-hover tbody tr:hover td { border-color: var(--brand-red); }

        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; }
        .modal-box { background: var(--surface); color: var(--text-main); width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; border: var(--ui-border); box-shadow: var(--ui-shadow); padding: 40px; position: relative; border-radius: var(--ui-radius); }
        .btn-close-modal { position: absolute; top: 15px; right: 15px; background: var(--brand-dark); color: var(--surface); border: var(--btn-border); width: 45px; height: 45px; font-weight: 800; font-size: 20px; cursor: pointer; display: flex; justify-content: center; align-items: center; border-radius: var(--btn-radius); z-index: 10; transition: 0.2s; }
        .btn-close-modal:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--brand-red); border-color: var(--brand-red); color: var(--brand-red); background: var(--surface); }

        .split-layout { display: flex; gap: 40px; align-items: stretch; }
        .split-left { flex: 1; min-width: 350px; position: sticky; top: 120px; align-self: flex-start; }
        .split-right { flex: 2; display: flex; flex-direction: column; gap: 20px; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 40px; }
        .stat-card { background: var(--surface); border: var(--ui-border); padding: 30px 20px; box-shadow: var(--card-shadow); text-align: center; border-radius: var(--ui-radius); }
        .stat-num { font-size: 3.5rem; font-weight: 900; color: var(--brand-red); margin-bottom: 10px; font-family: var(--font-head); }

        .def-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
        .def-card { background: var(--surface); border: var(--ui-border); box-shadow: var(--card-shadow); padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; border-radius: var(--ui-radius); }
        .def-card:hover { transform: translateY(-5px); box-shadow: var(--card-hover-shadow); border-color: var(--brand-red); }
        .def-card h2 { font-family: var(--font-head); font-size: 20pt; color: var(--text-main); margin-bottom: 15px; }
        .def-icon { font-size: 40pt; margin-bottom: 15px; }

        .task-grid { display: flex; flex-direction: column; gap: 20px; width: 100%; }
        .task-card { background: var(--surface); border: var(--ui-border); padding: 25px; box-shadow: var(--card-shadow); margin-bottom: 5px; transition: all 0.2s; border-radius: var(--ui-radius); color: var(--text-main); }
        .task-card:hover { transform: translate(-4px, -4px); box-shadow: var(--card-hover-shadow); border-color: var(--brand-red); }
        .task-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand-dark); padding-bottom: 15px; margin-bottom: 20px; }
        .task-title { font-size: 15pt; font-weight: 900; text-transform: uppercase; }
        .badge { padding: 6px 14px; font-weight: 900; font-size: 10pt; border: var(--btn-border); text-transform: uppercase; border-radius: var(--btn-radius); display: inline-block; transition: 0.2s; }
        .status-pending { background: var(--surface); color: var(--text-main); } 
        .status-processing { background: var(--warning); color: #000; } 
        .status-completed { background: var(--success); color: white; } 
        .status-failed { background: var(--brand-red); color: white; }
        .progress-wrapper { background: var(--surface); height: 30px; border: var(--btn-border); position: relative; margin-top: 15px; border-radius: var(--btn-radius); overflow: hidden; }
        .progress-bar { height: 100%; background: var(--brand-dark); width: 0%; transition: width 0.5s ease; }
        .progress-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11pt; color: var(--surface); mix-blend-mode: difference; }

        .tab-wrapper { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 4px solid var(--brand-dark); padding-bottom: 10px; flex-wrap: wrap; }
        .tab-btn { background: var(--surface); border: var(--btn-border); padding: 10px 20px; font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: 10pt; color: var(--text-main); transition: 0.3s; border-radius: var(--btn-radius); }
        .tab-btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--brand-red); border-color: var(--brand-red); color: var(--brand-red); }
        .tab-btn.active { background: var(--brand-dark); color: white; transform: translateY(-3px); box-shadow: var(--btn-shadow); }

        .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
        .card-cover-box { position: relative; height: 350px; background: var(--surface); border: var(--ui-border); box-shadow: var(--card-shadow); transition: 0.3s; padding: 40px 20px 20px 20px; display: flex; flex-direction: column; cursor: pointer; border-radius: var(--ui-radius); color: var(--text-main); }
        .card-cover-box:hover { border-color: var(--brand-red); box-shadow: var(--card-hover-shadow); transform: translateY(-5px); }
        .q-text-preview { font-size: 10.5pt; line-height: 1.6; font-weight: 600; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; }
        .card-type-wrapper { position: absolute; top: 15px; left: -15px; z-index: 30; }
        .type-badge { border: var(--btn-border); padding: 4px 12px; font-weight: 800; font-size: 10pt; background: var(--brand-red); color: var(--surface); border-radius: var(--btn-radius); }
        .loader-text { text-align: center; padding: 30px; font-weight: 900; color: var(--brand-red); text-transform: uppercase; letter-spacing: 2px; }

        .book-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; padding-bottom: 60px; }
        .book-card { position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        
        .book-type-wrapper { position: absolute; top: 15px; left: -10px; z-index: 30; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
        .book-card:hover .book-type-wrapper { transform: translate(-15px, -15px); }
        .book-type-badge { border: 2px solid var(--brand-dark); background: var(--brand-red); color: white; padding: 4px 12px; font-weight: bold; font-size: 10pt; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); text-transform: uppercase; white-space: nowrap; }
        .book-watermark-badge { border: 2px solid var(--brand-dark); background: #f59e0b; color: #000; padding: 2px 12px; font-weight: bold; font-size: 8pt; box-shadow: 3px 3px 0 rgba(0,0,0,0.2); margin-top: 5px; display: inline-block; text-transform: uppercase; white-space: nowrap; }
        
        .book-code-wrapper { position: absolute; bottom: 15px; right: -10px; z-index: 30; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
        .book-card:hover .book-code-wrapper { transform: translate(15px, 15px); }
        .book-test-no { border: 2px solid var(--brand-dark); color: var(--brand-dark); padding: 4px 12px; font-weight: bold; font-size: 12pt; background: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); white-space: nowrap; }
        
        .book-cover-box { position: relative; aspect-ratio: 3/4; background: #cbd5e1; overflow: hidden; border: 2px solid var(--brand-dark); box-shadow: 6px 6px 15px rgba(0,0,0,0.25); transition: all 0.4s ease; border-radius: var(--ui-radius); }
        .book-card:hover .book-cover-box { border-color: var(--brand-red); box-shadow: 12px 12px 25px rgba(0,0,0,0.3); }
        .book-cover-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
        
        .book-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 41, 59, 0.9); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(2px); z-index: 20; }
        .book-card:hover .book-card-overlay { opacity: 1; }
        .book-card:hover .book-cover-box img { transform: scale(1.1); }
        
        .book-overlay-title { font-size: 14pt; font-weight: 800; margin-bottom: 5px; transform: translateY(20px); transition: 0.4s ease 0.1s; line-height: 1.2; }
        .book-overlay-desc { font-size: 9.5pt; line-height: 1.5; color: #cbd5e1; transform: translateY(20px); transition: 0.4s ease 0.2s; margin-bottom: 20px; }
        .book-card:hover .book-overlay-title, .book-card:hover .book-overlay-desc, .book-card:hover .brutal-btn-card { transform: translateY(0); }
        
        .brutal-btn-card { background: var(--surface); color: var(--text-main); border: 3px solid var(--brand-dark); padding: 8px 15px; font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: 9pt; width: 90%; transition: 0.2s; text-decoration: none; display: block; text-align: center; box-shadow: 4px 4px 0 var(--brand-dark); margin-bottom: 10px; transform: translateY(20px); }
        .brutal-btn-card:hover { transform: translate(-3px, -3px) !important; box-shadow: 7px 7px 0 var(--brand-red); border-color: var(--brand-red); color: var(--brand-red); }

        .builder-layout { display: flex; gap: 30px; align-items: stretch; height: calc(100vh - 250px); position: relative; }
        .builder-left { flex: 1; display: flex; flex-direction: column; border: var(--ui-border); background: var(--surface); border-radius: var(--ui-radius); overflow: hidden; min-width: 350px;}
        .builder-right { flex: 1.8; border: var(--ui-border); background: #cbd5e1; padding: 30px; overflow-y: auto; box-shadow: inset 0 0 20px rgba(0,0,0,0.1); border-radius: var(--ui-radius); }
        
        #builderLockOverlay { position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(30,41,59,0.85); backdrop-filter:blur(5px); z-index:100; display:flex; justify-content:center; align-items:center; flex-direction:column; color:white; font-family:var(--font-head); }
        
        .source-list { flex: 1; overflow-y: auto; padding: 15px; background: var(--bg-color); list-style: none; display: flex; flex-direction: column; gap: 10px; }
        .src-card { background: white; border: 2px solid var(--brand-dark); padding: 15px; font-size: 10pt; font-weight: 600; box-shadow: 3px 3px 0 var(--brand-dark); color: black; display: flex; gap: 10px; cursor: pointer; transition: 0.2s; }
        .src-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--brand-red); border-color: var(--brand-red); }
        .src-card.added { opacity: 0.4; pointer-events: none; filter: grayscale(100%); }

        #livePreviewContainer { display: flex; flex-direction: column; gap: 40px; align-items: center; padding-bottom: 50mm;}
        .a4-page { width: 210mm; min-height: 297mm; height: max-content; background: white; box-shadow: 0 15px 40px rgba(0,0,0,0.25); position: relative; padding: 12mm 12mm 20mm 12mm; color: #0f172a; overflow: hidden; font-family: 'Montserrat', sans-serif;}
        .a4-page .watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-size: 90px; color: rgba(0,0,0,0.06); font-weight: 900; white-space: nowrap; pointer-events: none; z-index: 0; text-transform: none !important; }
        
        .a4-page .page-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
        .a4-page .header { display: flex; justify-content: space-between; align-items: stretch; border-bottom: 3px solid #1e293b; padding-bottom: 8px; margin-bottom: 12px; }
        .a4-page .test-title { font-size: 13pt; font-weight: 800; color: #334155; }
        .a4-page .test-no { border: 2px solid #1e293b; color: #1e293b; padding: 3px 10px; font-weight: bold; font-size: 12pt; border-radius: 4px; display: inline-block; background: #fff; }
        .a4-page .separator { width: 1px; background: #e2e8f0; position: absolute; left: 50%; top: 50px; bottom: 0; transform: translateX(-50%); z-index: 0; }
        .a4-page .columns-wrapper { display: flex; justify-content: space-between; flex: 1; gap: 12mm; position: relative; z-index: 2; }
        .a4-page .column { width: 48%; display: flex; flex-direction: column; gap: 20px; min-height: 100px; }
        
        .live-question { display: flex; flex-direction: column; font-size: 9.5pt; position: relative; cursor: grab; background: transparent; border: 1px dashed transparent; transition: 0.2s; }
        .live-question:hover { border-color: var(--brand-red); background: rgba(248, 250, 252, 0.85); }
        .live-question:active { cursor: grabbing; }
        .live-question .q-top { display: flex; align-items: flex-start; margin-bottom: 4px; }
        .live-question .q-num { background: #1e293b; color: white; font-weight: 700; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; margin-right: 6px; flex-shrink: 0; font-size: 9pt; }
        .live-question .q-text { font-weight: 600; line-height: 1.35; flex: 1; word-break: break-word; }
        
        .live-question .qr-placeholder { display: block; width: 52px; height: 52px; position: relative; margin-left: 8px; flex-shrink: 0; text-decoration: none; cursor: pointer; transition: transform 0.2s ease; }
        .live-question .qr-placeholder:hover { transform: scale(1.15); z-index: 10; }
        .live-question .qr-placeholder canvas, .live-question .qr-placeholder img { width: 100% !important; height: 100% !important; border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px; background: #fff; display: block; box-shadow: 0 3px 8px rgba(0,0,0,0.08); }
        .live-question .qr-icon { position: absolute; right: -6px; bottom: -6px; background: var(--brand-red); color: white; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 3px 6px rgba(220, 38, 38, 0.35); transition: background 0.2s ease; z-index: 10; }
        .live-question .qr-icon svg { width: 11px; height: 11px; }
        .live-question .qr-placeholder:hover .qr-icon { background: var(--brand-dark); }

        
        .live-question .options { display: flex; flex-wrap: wrap; margin-top: 4px; padding-left: 26px; }
        .live-question .opt { width: 48%; font-size: 9.5pt; margin-bottom: 4px; display: flex; align-items: flex-start; padding: 2px 4px; }
        .live-question .opt-letter { font-weight: 800; color: #dc2626; margin-right: 5px; width: 14px; }
        
        .live-question .remove-btn { position: absolute; top: -10px; left: -10px; background: #dc2626; color: white; border: none; font-weight: bold; cursor: pointer; width:24px; height:24px; border-radius: 50%; z-index: 10; display: none; align-items:center; justify-content:center;}
        .live-question:hover .remove-btn { display: flex; }
        .live-question.sortable-ghost { opacity: 0.3; background: #cbd5e1; }

        .a4-page .page-footer { position: absolute; bottom: 6mm; left: 0; width: 100%; text-align: center; font-weight: 700; font-size: 9pt; color: #1e293b; z-index: 2; }

        .math-preview-box { background: #f8fafc; border: 2px dashed #94a3b8; padding: 15px; margin-top: 10px; min-height: 100px; font-size: 11pt; font-weight: 600; line-height: 1.6; }
        
        .latex-toolbar { display:flex; flex-wrap:wrap; gap:5px; background:var(--brand-dark); padding:10px; border:var(--btn-border); border-bottom:none; border-radius:var(--btn-radius) var(--btn-radius) 0 0; }
        .latex-btn { background:var(--surface); color:var(--text-main); border:2px solid var(--text-main); padding:6px 12px; font-weight:800; font-size:11pt; cursor:pointer; }
        .latex-btn:hover { background:var(--brand-red); color:white; border-color:var(--brand-red); }

        .sol-step-card { border:var(--btn-border); background:var(--bg-color); padding:15px; margin-bottom:15px; position:relative; }
        .sol-step-remove { position:absolute; top:-10px; right:-10px; background:var(--brand-red); color:white; border:none; width:25px; height:25px; font-weight:bold; cursor:pointer; display:flex; align-items:center; justify-content:center; }

        @media (max-width: 992px) {
            .container-fluid { padding: 0 20px; }
            .mobile-menu-btn { display: flex; }
            .nav-links { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--brand-dark); padding: 30px 20px; flex-direction: column; gap: 20px; border-bottom: 5px solid var(--brand-red); }
            .nav-links.show { display: flex; }
            .split-layout { flex-direction: column; gap: 30px; }
            .split-left { position: static; width: 100%; }
            .def-cards-grid { grid-template-columns: 1fr 1fr; }
            .theme-panel { width: 100%; right: -100%; }
            .builder-layout { flex-direction: column; height: auto; }
            .a4-page { width: 100%; min-height: auto; padding: 15px; }
            .a4-page .separator { display: none; }
            .a4-page .columns-wrapper { flex-direction: column; gap: 20px; }
            .a4-page .column { width: 100%; }
            .live-question .opt { width: 100%; }
        }