/* ========== BASE & UTILITIES ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 194, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 194, 0.2); }

/* ========== STITCH BORDER SYSTEM ========== */

/* Register custom property for animated gradient rotation */
@property --stitch-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --stitch-glow {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* All stitch-eligible elements need position: relative */
.glass-card,
.kpi-card,
.portfolio-card,
.venture-card,
.news-card,
.bookmark-card,
.okr-card,
.deal-card,
.kanban-card,
.pipeline-column,
.kanban-column,
.notes-editor,
.notes-sidebar,
.kr-item,
.priority-list-item,
.gantt-container,
.gantt-execution-card,
.gantt-legend,
.modal,
.mini-task-item,
.calendar-item,
.news-item,
.pipeline-mini-item,
.note-list-item {
    position: relative;
}

/* ---- GRADIENT BORDER: Solid gradient overlay on all cards ---- */
.glass-card::after,
.kpi-card::after,
.portfolio-card::after,
.venture-card::after,
.news-card::after,
.bookmark-card::after,
.okr-card::after,
.deal-card::after,
.kanban-card::after,
.pipeline-column::after,
.kanban-column::after,
.notes-editor::after,
.notes-sidebar::after,
.gantt-container::after,
.gantt-execution-card::after,
.gantt-legend::after,
.modal::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.1),
        rgba(130, 211, 213, 0.06),
        rgba(108, 92, 231, 0.08),
        rgba(0, 210, 255, 0.06),
        rgba(0, 255, 194, 0.1)
    );
    padding: 1.5px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Smaller items get thinner gradient border */
.kr-item::after,
.priority-list-item::after,
.mini-task-item::after,
.calendar-item::after,
.news-item::after,
.pipeline-mini-item::after,
.note-list-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.06),
        rgba(130, 211, 213, 0.03),
        rgba(108, 92, 231, 0.05),
        rgba(0, 210, 255, 0.03),
        rgba(0, 255, 194, 0.06)
    );
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* ---- HOVER: Gradient border glow ---- */
.glass-card:hover::after,
.portfolio-card:hover::after,
.venture-card:hover::after,
.news-card:hover::after,
.bookmark-card:hover::after,
.okr-card:hover::after,
.gantt-container:hover::after,
.gantt-execution-card:hover::after,
.modal::after {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.4),
        rgba(130, 211, 213, 0.2),
        rgba(108, 92, 231, 0.25),
        rgba(0, 210, 255, 0.2),
        rgba(0, 255, 194, 0.4)
    );
    filter: drop-shadow(0 0 6px rgba(0, 255, 194, 0.15)) drop-shadow(0 0 14px rgba(108, 92, 231, 0.08));
}

.kpi-card:hover::after {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.5),
        rgba(130, 211, 213, 0.25),
        rgba(108, 92, 231, 0.3),
        rgba(0, 210, 255, 0.25),
        rgba(0, 255, 194, 0.5)
    );
    filter: drop-shadow(0 0 8px rgba(0, 255, 194, 0.2)) drop-shadow(0 0 18px rgba(108, 92, 231, 0.12));
}

.deal-card:hover::after,
.kanban-card:hover::after,
.pipeline-column:hover::after,
.kanban-column:hover::after,
.notes-editor:hover::after,
.notes-sidebar:hover::after,
.gantt-legend:hover::after {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.3),
        rgba(130, 211, 213, 0.15),
        rgba(108, 92, 231, 0.18),
        rgba(0, 210, 255, 0.15),
        rgba(0, 255, 194, 0.3)
    );
    filter: drop-shadow(0 0 4px rgba(0, 255, 194, 0.12)) drop-shadow(0 0 10px rgba(108, 92, 231, 0.06));
}

.kr-item:hover::after,
.priority-list-item:hover::after,
.mini-task-item:hover::after,
.calendar-item:hover::after,
.news-item:hover::after,
.pipeline-mini-item:hover::after,
.note-list-item:hover::after {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 194, 0.2),
        rgba(130, 211, 213, 0.1),
        rgba(108, 92, 231, 0.12),
        rgba(0, 210, 255, 0.1),
        rgba(0, 255, 194, 0.2)
    );
    filter: drop-shadow(0 0 3px rgba(0, 255, 194, 0.08));
}

/* ---- ETHEREAL ANIMATED GLOW: Rotating light beam on border ---- */
/* Uses ::before on cards that don't already use it */
.glass-card::before,
.portfolio-card::before,
.venture-card::before,
.news-card::before,
.bookmark-card::before,
.okr-card::before,
.gantt-container::before,
.gantt-execution-card::before,
.modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--stitch-angle),
        transparent 0%,
        rgba(0, 255, 194, 0.35) 3%,
        rgba(130, 211, 213, 0.2) 6%,
        transparent 12%,
        transparent 25%,
        rgba(0, 255, 194, 0.15) 28%,
        transparent 33%,
        transparent 50%,
        rgba(0, 255, 194, 0.3) 53%,
        rgba(130, 211, 213, 0.18) 56%,
        transparent 62%,
        transparent 75%,
        rgba(0, 255, 194, 0.12) 78%,
        transparent 83%
    );
    padding: 2px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.glass-card:hover::before,
.portfolio-card:hover::before,
.venture-card:hover::before,
.news-card:hover::before,
.bookmark-card:hover::before,
.okr-card:hover::before,
.gantt-container:hover::before,
.gantt-execution-card:hover::before {
    opacity: 1;
    animation: stitch-orbit 10s linear infinite;
}

.modal::before {
    opacity: 1;
    animation: stitch-orbit 14s linear infinite;
}

/* ---- BREATHING BACKGROUND GLOW on hover ---- */
.glass-card,
.portfolio-card,
.venture-card,
.news-card,
.bookmark-card,
.okr-card,
.deal-card,
.kanban-card,
.pipeline-column,
.kanban-column,
.notes-editor,
.notes-sidebar,
.gantt-container,
.gantt-execution-card,
.gantt-legend,
.kpi-card {
    transition: all 0.3s, box-shadow 0.6s ease;
}

.glass-card:hover,
.portfolio-card:hover,
.venture-card:hover,
.news-card:hover,
.bookmark-card:hover,
.okr-card:hover,
.gantt-container:hover,
.gantt-execution-card:hover,
.gantt-legend:hover {
    animation: breathe-glow 3.5s ease-in-out infinite;
}

.deal-card:hover,
.kanban-card:hover,
.pipeline-column:hover,
.kanban-column:hover,
.notes-editor:hover,
.notes-sidebar:hover {
    animation: breathe-glow-subtle 3.5s ease-in-out infinite;
}

.kpi-card:hover {
    animation: breathe-glow-strong 3s ease-in-out infinite;
}

.kr-item:hover,
.priority-list-item:hover,
.mini-task-item:hover,
.calendar-item:hover,
.news-item:hover,
.pipeline-mini-item:hover,
.note-list-item:hover {
    animation: breathe-glow-micro 3s ease-in-out infinite;
}

/* Deal/Kanban cards - lighter animated glow */
.deal-card::before,
.kanban-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--stitch-angle),
        transparent 0%,
        rgba(0, 255, 194, 0.25) 4%,
        transparent 10%,
        transparent 50%,
        rgba(0, 255, 194, 0.2) 54%,
        transparent 60%
    );
    padding: 2px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.deal-card:hover::before,
.kanban-card:hover::before {
    opacity: 1;
    animation: stitch-orbit 8s linear infinite;
}

/* ---- ANIMATIONS ---- */
@keyframes stitch-orbit {
    to { --stitch-angle: 360deg; }
}

/* Breathing background glow — standard cards */
@keyframes breathe-glow {
    0%, 100% {
        box-shadow:
            inset 0 0 30px rgba(0, 255, 194, 0.02),
            inset 0 0 60px rgba(108, 92, 231, 0.01),
            0 0 15px rgba(0, 255, 194, 0.03);
    }
    50% {
        box-shadow:
            inset 0 0 50px rgba(0, 255, 194, 0.05),
            inset 0 0 80px rgba(108, 92, 231, 0.025),
            0 0 25px rgba(0, 255, 194, 0.06);
    }
}

/* Breathing background glow — subtle for medium cards */
@keyframes breathe-glow-subtle {
    0%, 100% {
        box-shadow:
            inset 0 0 20px rgba(0, 255, 194, 0.015),
            inset 0 0 40px rgba(108, 92, 231, 0.008),
            0 0 10px rgba(0, 255, 194, 0.02);
    }
    50% {
        box-shadow:
            inset 0 0 35px rgba(0, 255, 194, 0.035),
            inset 0 0 60px rgba(108, 92, 231, 0.018),
            0 0 18px rgba(0, 255, 194, 0.04);
    }
}

/* Breathing background glow — strong for KPI cards */
@keyframes breathe-glow-strong {
    0%, 100% {
        box-shadow:
            inset 0 0 50px rgba(0, 255, 194, 0.04),
            inset 0 0 80px rgba(108, 92, 231, 0.02),
            0 4px 24px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(0, 255, 194, 0.05),
            0 0 50px rgba(0, 210, 255, 0.025);
    }
    50% {
        box-shadow:
            inset 0 0 70px rgba(0, 255, 194, 0.08),
            inset 0 0 110px rgba(108, 92, 231, 0.04),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 35px rgba(0, 255, 194, 0.1),
            0 0 70px rgba(0, 210, 255, 0.05);
    }
}

/* Breathing background glow — micro for list items */
@keyframes breathe-glow-micro {
    0%, 100% {
        box-shadow:
            inset 0 0 15px rgba(0, 255, 194, 0.01),
            0 0 8px rgba(0, 255, 194, 0.015);
    }
    50% {
        box-shadow:
            inset 0 0 25px rgba(0, 255, 194, 0.025),
            0 0 12px rgba(0, 255, 194, 0.03);
    }
}

.kr-item:hover::after,
.priority-list-item:hover::after,
.mini-task-item:hover::after,
.calendar-item:hover::after,
.news-item:hover::after,
.pipeline-mini-item:hover::after,
.note-list-item:hover::after {
    animation: stitch-breathe 2s ease-in-out infinite;
}

/* ========== GLOW ORBS ========== */
.glow-orb {
    position: fixed;
    filter: blur(120px);
    z-index: 0;
    border-radius: 9999px;
    opacity: 0.08;
    pointer-events: none;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: rgba(32, 37, 55, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.glass-card:hover {
    border-color: rgba(0, 255, 194, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 255, 194, 0.05);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(64, 73, 67, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label { display: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 0.75rem;
    color: rgba(191, 201, 194, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 255, 194, 0.05);
    color: #e2e4f6;
}

.nav-link.active {
    background: rgba(0, 255, 194, 0.08);
    color: #00FFC2;
    box-shadow: inset 3px 0 0 #00FFC2;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 240px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-content { margin-left: 68px; }

/* ========== TOP BAR ========== */
.top-bar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(64, 73, 67, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ========== PAGES ========== */
.page { display: none; padding: 1.75rem; }
.page.active { display: block; }

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

.page-header h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* ========== KPI CARDS ========== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.kpi-card {
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(0, 255, 194, 0.18) 0%, rgba(130, 211, 213, 0.08) 40%, transparent 75%),
        radial-gradient(ellipse 35% 40% at 15% -8%, rgba(108, 92, 231, 0.14) 0%, rgba(80, 60, 200, 0.05) 40%, transparent 75%),
        radial-gradient(ellipse 35% 40% at 85% -8%, rgba(0, 210, 255, 0.14) 0%, rgba(0, 180, 220, 0.05) 40%, transparent 75%),
        radial-gradient(ellipse 50% 25% at 35% -2%, rgba(0, 255, 194, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 20, 34, 0.92) 0%, rgba(10, 13, 24, 0.96) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(64, 73, 67, 0.18);
    border-top: 1px solid rgba(0, 255, 194, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(0, 255, 194, 0.04);
}

.kpi-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--stitch-angle),
        transparent 0%,
        rgba(0, 255, 194, 0.45) 2%,
        rgba(130, 211, 213, 0.3) 5%,
        rgba(108, 92, 231, 0.2) 8%,
        transparent 14%,
        transparent 25%,
        rgba(0, 210, 255, 0.2) 27%,
        rgba(0, 255, 194, 0.15) 30%,
        transparent 36%,
        transparent 50%,
        rgba(108, 92, 231, 0.25) 52%,
        rgba(0, 255, 194, 0.35) 55%,
        rgba(130, 211, 213, 0.2) 58%,
        transparent 64%,
        transparent 75%,
        rgba(0, 210, 255, 0.15) 77%,
        rgba(0, 255, 194, 0.12) 80%,
        transparent 86%
    );
    padding: 2px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.kpi-card:hover::before {
    opacity: 1;
    animation: stitch-orbit 10s linear infinite;
}
.kpi-card:hover {
    border-color: rgba(0, 255, 194, 0.22);
    border-top-color: rgba(0, 255, 194, 0.15);
    transform: translateY(-3px);
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0, 255, 194, 0.3) 0%, rgba(130, 211, 213, 0.12) 35%, transparent 75%),
        radial-gradient(ellipse 40% 45% at 12% -8%, rgba(108, 92, 231, 0.22) 0%, rgba(80, 60, 200, 0.06) 40%, transparent 75%),
        radial-gradient(ellipse 40% 45% at 88% -8%, rgba(0, 210, 255, 0.22) 0%, rgba(0, 180, 220, 0.06) 40%, transparent 75%),
        radial-gradient(ellipse 50% 25% at 35% -2%, rgba(0, 255, 194, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 20, 34, 0.92) 0%, rgba(10, 13, 24, 0.96) 100%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 2px 12px rgba(0, 255, 194, 0.08),
        0 0 50px rgba(0, 255, 194, 0.04),
        inset 0 1px 0 rgba(0, 255, 194, 0.08);
}

.kpi-label {
    font-size: 0.65rem;
    color: rgba(191, 201, 194, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.kpi-value {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #e2e4f6;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.kpi-change {
    font-size: 0.72rem;
    margin-top: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.kpi-change.positive { color: #00FFC2; }
.kpi-change.negative { color: #ff5252; }
.kpi-change.neutral { color: #89938d; }

/* ========== OVERVIEW GRID ========== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e4f6;
    letter-spacing: -0.01em;
}

.view-all-link {
    color: #00FFC2;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 2px;
}
.view-all-link:hover { opacity: 1; }

/* ========== MINI TASK LIST (Overview) ========== */
.mini-task-list { display: flex; flex-direction: column; gap: 6px; }

.mini-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(20, 25, 40, 0.5);
    border-radius: 0.75rem;
    border-left: 3px solid #00FFC2;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.mini-task-item:hover { background: rgba(0, 255, 194, 0.04); }
.mini-task-item.priority-critical { border-left-color: #ff5252; }
.mini-task-item.priority-high { border-left-color: #ffab40; }
.mini-task-item.priority-medium { border-left-color: #00FFC2; }
.mini-task-item.priority-low { border-left-color: #89938d; }

.mini-task-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid rgba(191, 201, 194, 0.3);
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.mini-task-checkbox:checked {
    background: #00FFC2;
    border-color: #00FFC2;
}

.mini-task-text { flex: 1; color: #e2e4f6; }
.mini-task-due { color: rgba(191, 201, 194, 0.5); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; }

/* ========== CALENDAR LIST ========== */
.calendar-list { display: flex; flex-direction: column; gap: 6px; }

.calendar-item {
    display: flex;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(20, 25, 40, 0.5);
    border-radius: 0.75rem;
    transition: background 0.2s;
}
.calendar-item:hover { background: rgba(0, 255, 194, 0.04); }

.calendar-time {
    color: #00FFC2;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 55px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.calendar-details { flex: 1; }
.calendar-title { font-size: 0.85rem; font-weight: 600; color: #e2e4f6; }
.calendar-location { font-size: 0.7rem; color: rgba(191, 201, 194, 0.5); margin-top: 2px; font-weight: 500; }

/* ========== NEWS ========== */
.news-snapshot { display: flex; flex-direction: column; gap: 8px; }

.news-item {
    padding: 10px 14px;
    background: rgba(20, 25, 40, 0.5);
    border-radius: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}
.news-item:hover { background: rgba(0, 255, 194, 0.04); }

.news-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e2e4f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(191, 201, 194, 0.5);
}

.news-item-source {
    color: #82d3d5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
}

.news-tabs {
    display: flex;
    gap: 3px;
    background: rgba(32, 37, 55, 0.5);
    border-radius: 0.75rem;
    padding: 3px;
    border: 1px solid rgba(64, 73, 67, 0.12);
}

.news-tab {
    padding: 7px 16px;
    border: none;
    background: none;
    color: rgba(191, 201, 194, 0.6);
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.news-tab.active {
    background: rgba(0, 255, 194, 0.1);
    color: #00FFC2;
}

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

.news-card {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}
.news-card:hover {
    border-color: rgba(0, 255, 194, 0.15);
    transform: translateY(-2px);
}

.news-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: #e2e4f6; }
.news-card-excerpt { font-size: 0.82rem; color: rgba(191, 201, 194, 0.7); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: rgba(191, 201, 194, 0.5); }
.news-loading { text-align: center; padding: 40px; color: rgba(191, 201, 194, 0.5); display: none; }

/* ========== PIPELINE MINI (Overview) ========== */
.pipeline-mini { display: flex; flex-direction: column; gap: 6px; }

.pipeline-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(20, 25, 40, 0.5);
    border-radius: 0.75rem;
}

.pipeline-mini-name { font-size: 0.85rem; font-weight: 600; color: #e2e4f6; }
.pipeline-mini-stage {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== PIPELINE BOARD ========== */
.pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    min-height: 500px;
}

.pipeline-column {
    background: rgba(20, 25, 40, 0.3);
    border-radius: 1.25rem;
    padding: 0.75rem;
    min-height: 400px;
    border: 1px solid rgba(64, 73, 67, 0.08);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(191, 201, 194, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0 0.25rem;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.column-cards { display: flex; flex-direction: column; gap: 8px; min-height: 50px; }

.deal-card, .kanban-card {
    background: rgba(32, 37, 55, 0.55);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 0.85rem;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
}
.deal-card:hover, .kanban-card:hover {
    border-color: rgba(0, 255, 194, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.deal-card.dragging, .kanban-card.dragging { opacity: 0.5; transform: rotate(1deg) scale(0.98); }

.deal-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: #e2e4f6; }
.deal-info { font-size: 0.75rem; color: rgba(191, 201, 194, 0.6); display: flex; flex-direction: column; gap: 3px; }
.deal-value { color: #00FFC2; font-weight: 700; }

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.portfolio-card {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}
.portfolio-card:hover {
    border-color: rgba(0, 255, 194, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.portfolio-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.portfolio-company-name { font-family: 'Lexend', sans-serif; font-size: 1.15rem; font-weight: 700; color: #e2e4f6; letter-spacing: -0.02em; }

.portfolio-status {
    font-size: 0.6rem;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.portfolio-status.active { background: rgba(0, 255, 194, 0.1); color: #00FFC2; border: 1px solid rgba(0, 255, 194, 0.2); }
.portfolio-status.watch { background: rgba(255, 171, 64, 0.1); color: #ffab40; border: 1px solid rgba(255, 171, 64, 0.2); }
.portfolio-status.exit { background: rgba(130, 211, 213, 0.1); color: #82d3d5; border: 1px solid rgba(130, 211, 213, 0.2); }

.portfolio-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portfolio-metric-label { font-size: 0.6rem; color: rgba(191, 201, 194, 0.5); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.portfolio-metric-value { font-size: 1rem; font-weight: 700; margin-top: 2px; color: #e2e4f6; }

/* ========== VENTURES GRID ========== */
.ventures-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }

.venture-card {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s;
}
.venture-card:hover { border-color: rgba(0, 255, 194, 0.12); }

.venture-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.venture-name { font-family: 'Lexend', sans-serif; font-size: 1.2rem; font-weight: 700; color: #e2e4f6; letter-spacing: -0.02em; }

.venture-phase {
    font-size: 0.6rem;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.venture-phase.ideation { background: rgba(130, 211, 213, 0.1); color: #82d3d5; border: 1px solid rgba(130, 211, 213, 0.2); }
.venture-phase.mvp { background: rgba(0, 255, 194, 0.1); color: #00FFC2; border: 1px solid rgba(0, 255, 194, 0.2); }
.venture-phase.launch { background: rgba(0, 255, 194, 0.12); color: #00FFC2; border: 1px solid rgba(0, 255, 194, 0.25); }
.venture-phase.growth { background: rgba(255, 171, 64, 0.1); color: #ffab40; border: 1px solid rgba(255, 171, 64, 0.2); }

.venture-description { font-size: 0.82rem; color: rgba(191, 201, 194, 0.7); line-height: 1.5; margin-bottom: 1rem; }

.venture-progress { margin-bottom: 1rem; }
.venture-progress-bar { height: 6px; background: rgba(32, 37, 55, 0.8); border-radius: 9999px; overflow: hidden; margin-top: 6px; }
.venture-progress-fill { height: 100%; border-radius: 9999px; background: #00FFC2; box-shadow: 0 0 10px rgba(0, 255, 194, 0.4); transition: width 0.5s; }
.venture-progress-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(191, 201, 194, 0.6); font-weight: 600; }

.venture-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding-top: 1rem; border-top: 1px solid rgba(64, 73, 67, 0.12); }
.venture-stat-label { font-size: 0.6rem; color: rgba(191, 201, 194, 0.5); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.venture-stat-value { font-size: 0.92rem; font-weight: 700; margin-top: 2px; color: #e2e4f6; }

.venture-milestones { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(64, 73, 67, 0.12); }
.venture-milestones h4 { font-size: 0.65rem; color: rgba(191, 201, 194, 0.5); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }

.milestone-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.8rem; color: rgba(191, 201, 194, 0.8); }
.milestone-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.milestone-dot.done { background: #00FFC2; }
.milestone-dot.active { background: #00FFC2; box-shadow: 0 0 10px rgba(0, 255, 194, 0.6); }
.milestone-dot.pending { background: rgba(191, 201, 194, 0.3); }

/* ========== KANBAN BOARD ========== */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; min-height: 500px; }

.kanban-column {
    background: rgba(20, 25, 40, 0.3);
    border-radius: 1.25rem;
    padding: 0.75rem;
    min-height: 400px;
    border: 1px solid rgba(64, 73, 67, 0.08);
}

.kanban-card-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: #e2e4f6; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: rgba(191, 201, 194, 0.6); }

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.priority-badge.critical { background: rgba(255, 82, 82, 0.12); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.2); }
.priority-badge.high { background: rgba(255, 171, 64, 0.12); color: #ffab40; border: 1px solid rgba(255, 171, 64, 0.2); }
.priority-badge.medium { background: rgba(0, 255, 194, 0.08); color: #00FFC2; border: 1px solid rgba(0, 255, 194, 0.15); }
.priority-badge.low { background: rgba(137, 147, 141, 0.12); color: #89938d; border: 1px solid rgba(137, 147, 141, 0.2); }

.category-tag { font-size: 0.65rem; color: #82d3d5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* Task View Toggle */
.task-view-toggle {
    display: flex;
    gap: 3px;
    background: rgba(32, 37, 55, 0.5);
    border-radius: 0.75rem;
    padding: 3px;
    border: 1px solid rgba(64, 73, 67, 0.12);
}

.toggle-btn {
    padding: 7px 16px;
    border: none;
    background: none;
    color: rgba(191, 201, 194, 0.6);
    font-family: 'Lexend', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toggle-btn.active { background: rgba(0, 255, 194, 0.1); color: #00FFC2; }

.task-view { display: none; }
.task-view.active { display: block; }

/* ========== PRIORITY LIST ========== */
.priority-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.filter-group { display: flex; gap: 8px; }
.filter-group select {
    background: rgba(32, 37, 55, 0.5);
    border: 1px solid rgba(64, 73, 67, 0.15);
    color: #e2e4f6;
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    padding: 7px 14px;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.priority-list { display: flex; flex-direction: column; gap: 6px; }

.priority-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 0.85rem;
    transition: all 0.2s;
}
.priority-list-item:hover { border-color: rgba(0, 255, 194, 0.12); }

.priority-list-item .task-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(191, 201, 194, 0.3);
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
}
.priority-list-item .task-checkbox:checked { background: #00FFC2; border-color: #00FFC2; }

.task-main { flex: 1; }
.task-title-text { font-size: 0.88rem; font-weight: 600; color: #e2e4f6; }
.task-subtitle { font-size: 0.72rem; color: rgba(191, 201, 194, 0.5); margin-top: 2px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.task-due { font-size: 0.75rem; color: rgba(191, 201, 194, 0.6); font-variant-numeric: tabular-nums; font-weight: 600; }
.task-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.priority-list-item:hover .task-actions { opacity: 1; }

/* ========== OKRs ========== */
.quarter-selector {
    display: flex;
    gap: 3px;
    background: rgba(32, 37, 55, 0.5);
    border-radius: 0.75rem;
    padding: 3px;
    margin-bottom: 1.5rem;
    width: fit-content;
    border: 1px solid rgba(64, 73, 67, 0.12);
}

.quarter-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    color: rgba(191, 201, 194, 0.6);
    font-family: 'Lexend', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
}
.quarter-btn.active { background: rgba(0, 255, 194, 0.1); color: #00FFC2; }

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

.okr-card {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.okr-objective { font-family: 'Lexend', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; color: #e2e4f6; letter-spacing: -0.02em; }
.okr-owner { font-size: 0.72rem; color: rgba(191, 201, 194, 0.5); margin-bottom: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.okr-overall-progress { margin-bottom: 1rem; }
.okr-progress-header { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 6px; }
.okr-progress-bar { height: 8px; background: rgba(32, 37, 55, 0.8); border-radius: 9999px; overflow: hidden; }
.okr-progress-fill { height: 100%; border-radius: 9999px; transition: width 0.5s; }

.kr-list { display: flex; flex-direction: column; gap: 8px; }
.kr-item { padding: 12px 16px; background: rgba(20, 25, 40, 0.5); border-radius: 0.75rem; cursor: pointer; transition: background 0.2s; }
.kr-item:hover { background: rgba(0, 255, 194, 0.04); }
.kr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kr-title { font-size: 0.85rem; font-weight: 600; color: #e2e4f6; }
.kr-value { font-size: 0.78rem; font-weight: 700; color: #00FFC2; }
.kr-progress-bar { height: 4px; background: rgba(32, 37, 55, 0.8); border-radius: 9999px; overflow: hidden; }
.kr-progress-fill { height: 100%; border-radius: 9999px; background: #00FFC2; box-shadow: 0 0 6px rgba(0, 255, 194, 0.3); }

/* ========== NOTES ========== */
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; min-height: 600px; }

.notes-sidebar {
    background: rgba(20, 25, 40, 0.4);
    border-radius: 1.25rem;
    padding: 0.75rem;
    overflow-y: auto;
    max-height: 700px;
    border: 1px solid rgba(64, 73, 67, 0.08);
}

.note-list-item { padding: 12px 14px; border-radius: 0.75rem; cursor: pointer; margin-bottom: 4px; transition: background 0.2s; }
.note-list-item:hover { background: rgba(0, 255, 194, 0.04); }
.note-list-item.active { background: rgba(0, 255, 194, 0.08); border-left: 3px solid #00FFC2; }
.note-list-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; color: #e2e4f6; }
.note-list-date { font-size: 0.65rem; color: rgba(191, 201, 194, 0.4); font-weight: 600; letter-spacing: 0.05em; }
.note-list-preview { font-size: 0.75rem; color: rgba(191, 201, 194, 0.6); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.notes-editor {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.note-title-input {
    background: none;
    border: none;
    color: #e2e4f6;
    font-family: 'Lexend', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    outline: none;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.note-title-input::placeholder { color: rgba(191, 201, 194, 0.3); }

.note-meta {
    font-size: 0.72rem;
    color: rgba(191, 201, 194, 0.4);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(64, 73, 67, 0.12);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.note-content-input {
    background: none;
    border: none;
    color: #e2e4f6;
    font-family: 'Lexend', sans-serif;
    font-size: 0.88rem;
    line-height: 1.8;
    outline: none;
    flex: 1;
    resize: none;
    min-height: 400px;
}
.note-content-input::placeholder { color: rgba(191, 201, 194, 0.3); }

.note-actions { display: flex; gap: 8px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(64, 73, 67, 0.12); }

/* ========== BOOKMARKS ========== */
.bookmarks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0.75rem; }

.bookmark-card {
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bookmark-card:hover { border-color: rgba(0, 255, 194, 0.15); transform: translateY(-1px); }

.bookmark-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(0, 255, 194, 0.08);
    border: 1px solid rgba(0, 255, 194, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #00FFC2;
    flex-shrink: 0;
}

.bookmark-info { flex: 1; min-width: 0; }
.bookmark-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; color: #e2e4f6; }
.bookmark-url { font-size: 0.7rem; color: rgba(191, 201, 194, 0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookmark-actions { opacity: 0; transition: opacity 0.2s; }
.bookmark-card:hover .bookmark-actions { opacity: 1; }

/* ========== BUTTONS ========== */
.btn-primary {
    background: rgba(0, 255, 194, 0.1);
    border: 1px solid rgba(0, 255, 194, 0.25);
    color: #00FFC2;
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.btn-primary:hover {
    background: rgba(0, 255, 194, 0.18);
    border-color: rgba(0, 255, 194, 0.4);
    box-shadow: 0 4px 16px rgba(0, 255, 194, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(0, 255, 194, 0.06);
    border: 1px solid rgba(64, 73, 67, 0.15);
    color: #00FFC2;
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-secondary:hover { border-color: rgba(0, 255, 194, 0.3); }

.btn-ghost {
    background: none;
    border: 1px solid transparent;
    color: rgba(191, 201, 194, 0.6);
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost:hover { color: #ff5252; border-color: rgba(255, 82, 82, 0.2); }

.btn-icon {
    background: none;
    border: 1px solid rgba(64, 73, 67, 0.15);
    color: rgba(191, 201, 194, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.btn-icon:hover { color: #00FFC2; border-color: rgba(0, 255, 194, 0.25); background: rgba(0, 255, 194, 0.05); }

.btn-danger {
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff5252;
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-danger:hover { background: rgba(255, 82, 82, 0.15); }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.68rem;
    color: rgba(191, 201, 194, 0.6);
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(64, 73, 67, 0.15);
    color: #e2e4f6;
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0, 255, 194, 0.3);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; }

/* ========== DRAG & DROP ========== */
.column-cards.drag-over {
    background: rgba(0, 255, 194, 0.03);
    border-radius: 0.75rem;
    outline: 2px dashed rgba(0, 255, 194, 0.15);
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px 24px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(24px);
    z-index: 50;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-top: 1px solid rgba(64, 73, 67, 0.12);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(191, 201, 194, 0.5);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.2s;
}
.mobile-nav-item.active { color: #00FFC2; filter: drop-shadow(0 0 10px rgba(0, 255, 194, 0.4)); }
.mobile-nav-item .material-symbols-outlined { font-size: 1.4rem; }

/* ========== GANTT CHART ========== */
.gantt-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gantt-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gantt-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: rgba(32, 37, 55, 0.45);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 9999px;
}

.gantt-legend-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(191, 201, 194, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(191, 201, 194, 0.7);
    font-weight: 500;
}

.gantt-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid transparent;
}
.gantt-status-dot[data-status="not-started"] { background: rgba(137, 147, 141, 0.5); border-color: rgba(137, 147, 141, 0.3); }
.gantt-status-dot[data-status="on-time"] { background: #00FFC2; border-color: rgba(0, 255, 194, 0.3); box-shadow: 0 0 6px rgba(0, 255, 194, 0.3); }
.gantt-status-dot[data-status="recoverable"] { background: #ffab40; border-color: rgba(255, 171, 64, 0.3); box-shadow: 0 0 6px rgba(255, 171, 64, 0.3); }
.gantt-status-dot[data-status="delayed"] { background: #ff5252; border-color: rgba(255, 82, 82, 0.3); box-shadow: 0 0 6px rgba(255, 82, 82, 0.3); }
.gantt-status-dot[data-status="completed"] { background: #82d3d5; border-color: rgba(130, 211, 213, 0.3); box-shadow: 0 0 6px rgba(130, 211, 213, 0.3); }
.gantt-status-dot[data-status="on-hold"] { background: #ce93d8; border-color: rgba(206, 147, 216, 0.3); box-shadow: 0 0 6px rgba(206, 147, 216, 0.3); }

.gantt-execution-card {
    background: rgba(0, 255, 194, 0.06);
    border: 1px solid rgba(0, 255, 194, 0.15);
    border-radius: 1.25rem;
    padding: 16px 24px;
    min-width: 200px;
    text-align: center;
}

.gantt-exec-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(191, 201, 194, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.gantt-exec-value {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #00FFC2;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(0, 255, 194, 0.3);
}

.gantt-exec-bar {
    height: 6px;
    background: rgba(32, 37, 55, 0.8);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}

.gantt-exec-fill {
    height: 100%;
    border-radius: 9999px;
    background: #00FFC2;
    box-shadow: 0 0 8px rgba(0, 255, 194, 0.4);
    transition: width 0.5s;
}

/* Gantt Chart Container */
.gantt-container {
    background: rgba(32, 37, 55, 0.35);
    border: 1px solid rgba(64, 73, 67, 0.12);
    border-radius: 1.25rem;
    overflow-x: auto;
    position: relative;
}

.gantt-chart {
    display: grid;
    min-width: 1200px;
}

/* Timeline Header */
.gantt-timeline-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(20, 25, 40, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(64, 73, 67, 0.15);
}

.gantt-label-spacer {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.gantt-years-row {
    display: flex;
    flex: 1;
}

.gantt-year-group {
    flex: 1;
    text-align: center;
    border-left: 1px solid rgba(64, 73, 67, 0.12);
}

.gantt-year-label {
    font-family: 'Lexend', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e4f6;
    padding: 12px 0 4px;
    letter-spacing: -0.01em;
}

.gantt-quarters-row {
    display: flex;
}

.gantt-quarter-cell {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(0, 255, 194, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 0 10px;
    border-left: 1px solid rgba(64, 73, 67, 0.06);
}

.gantt-quarter-cell.current-quarter {
    background: rgba(0, 255, 194, 0.04);
    color: #00FFC2;
}

/* Category Sections */
.gantt-category {
    border-top: 1px solid rgba(64, 73, 67, 0.12);
}

.gantt-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 255, 194, 0.03);
    border-bottom: 1px solid rgba(64, 73, 67, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}
.gantt-category-header:hover { background: rgba(0, 255, 194, 0.06); }

.gantt-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(0, 255, 194, 0.08);
    border: 1px solid rgba(0, 255, 194, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gantt-category-name {
    font-family: 'Lexend', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #00FFC2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.gantt-category-count {
    font-size: 0.68rem;
    color: rgba(191, 201, 194, 0.5);
    font-weight: 600;
}

.gantt-category-toggle {
    margin-left: auto;
    color: rgba(191, 201, 194, 0.4);
    transition: transform 0.2s;
}

.gantt-category.collapsed .gantt-category-toggle {
    transform: rotate(-90deg);
}

.gantt-category.collapsed .gantt-rows {
    display: none;
}

/* Gantt Rows */
.gantt-rows {
    display: flex;
    flex-direction: column;
}

.gantt-row {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(64, 73, 67, 0.06);
    transition: background 0.15s;
    cursor: pointer;
}
.gantt-row:hover {
    background: rgba(0, 255, 194, 0.03);
}

.gantt-row-label {
    min-width: 200px;
    max-width: 200px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.gantt-row-label-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-row-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gantt-row-bars {
    flex: 1;
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
}

.gantt-bar {
    position: absolute;
    height: 26px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    transition: all 0.2s;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
    cursor: pointer;
    z-index: 1;
}

.gantt-bar:hover {
    transform: scaleY(1.15);
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gantt-bar[data-status="not-started"] {
    background: rgba(137, 147, 141, 0.25);
    border: 1px solid rgba(137, 147, 141, 0.3);
    color: rgba(191, 201, 194, 0.7);
}
.gantt-bar[data-status="on-time"] {
    background: linear-gradient(90deg, rgba(0, 255, 194, 0.2), rgba(0, 255, 194, 0.12));
    border: 1px solid rgba(0, 255, 194, 0.3);
    color: #00FFC2;
}
.gantt-bar[data-status="recoverable"] {
    background: linear-gradient(90deg, rgba(255, 171, 64, 0.2), rgba(255, 171, 64, 0.12));
    border: 1px solid rgba(255, 171, 64, 0.3);
    color: #ffab40;
}
.gantt-bar[data-status="delayed"] {
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.2), rgba(255, 82, 82, 0.12));
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}
.gantt-bar[data-status="completed"] {
    background: linear-gradient(90deg, rgba(130, 211, 213, 0.2), rgba(130, 211, 213, 0.12));
    border: 1px solid rgba(130, 211, 213, 0.3);
    color: #82d3d5;
}
.gantt-bar[data-status="on-hold"] {
    background: linear-gradient(90deg, rgba(206, 147, 216, 0.2), rgba(206, 147, 216, 0.12));
    border: 1px solid rgba(206, 147, 216, 0.3);
    color: #ce93d8;
}

/* Quarter grid lines */
.gantt-grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.gantt-grid-cell {
    flex: 1;
    border-left: 1px solid rgba(64, 73, 67, 0.06);
}

.gantt-grid-cell.current-quarter {
    background: rgba(0, 255, 194, 0.02);
}

/* Gantt Detail Panel (popup on click) */
.gantt-detail-panel {
    position: fixed;
    z-index: 250;
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 194, 0.15);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 320px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 194, 0.05);
    display: none;
}

.gantt-detail-panel.active { display: block; }

.gantt-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gantt-detail-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e4f6;
}

.gantt-detail-close {
    color: rgba(191, 201, 194, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}
.gantt-detail-close:hover { color: #e2e4f6; }

.gantt-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
}

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

.gantt-detail-label {
    color: rgba(191, 201, 194, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
}

.gantt-detail-value {
    color: #e2e4f6;
    font-weight: 600;
}

.gantt-detail-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gantt-detail-actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(64, 73, 67, 0.12);
}

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 40px 20px; color: rgba(191, 201, 194, 0.4); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.3; }
.empty-state-text { font-size: 0.88rem; font-weight: 500; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar { width: 68px; }
    .sidebar .logo-text, .sidebar .nav-label { display: none; }
    .main-content { margin-left: 68px; }
    .overview-grid { grid-template-columns: 1fr; }
    .pipeline-board { grid-template-columns: repeat(3, 1fr); }
    .kanban-board { grid-template-columns: repeat(2, 1fr); }
    .notes-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding-bottom: 100px; }
    .mobile-bottom-nav { display: flex; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .pipeline-board { grid-template-columns: 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .top-bar { padding: 0 1rem; }
}
