/* prioritization-workflow-modeler.html — page-specific styles */

:root {
    --bg: #0f1319;
    --surface: #1c2430;
    --surface-hi: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);
    --text: #deecfb;
    --muted: #8792a2;
    --backlog: #7385f5;
    --prioritize: #3fb950;
    --plan: #6aabed;
    --execute: #d29922;
    --done: #88bcf0;
    --accent: #2b8be6;
    --accent2: #5468f2;
    --pink: #435af1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    min-height: 100vh;
    color: #c9d2dc;
    line-height: 1.6;
}

/* ═════════ App shell ═════════ */
.app-container { display: flex; min-height: 100vh; }
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 24px 0;
    box-shadow: 2px 0 25px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 100vh;
}
.sidebar-header { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo img { height: 32px; }
.header-buttons { margin-top: 16px; }
.header-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    color: #8c99a8; cursor: pointer; font-size: 13px; font-weight: 500;
    transition: all 0.3s ease; width: 100%;
}
.header-btn:hover { background: rgba(43,139,230,0.2); border-color: #2b8be6; color: #2b8be6; }
.header-btn .material-icons { font-size: 18px; }
.nav-item {
    display: flex; align-items: center; padding: 12px 24px;
    cursor: pointer; transition: all 0.3s ease;
    border: none; background: none; color: white;
    width: 100%; text-align: left; border-radius: 0 25px 25px 0;
    margin: 4px 0; font-family: inherit; font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,0.1); transform: translateX(5px); }
.nav-item.section-header {
    background: rgba(43,139,230,0.2);
    border-left: 4px solid #2b8be6;
    color: #2b8be6; font-weight: 600; margin: 8px 0 4px 0;
}
.nav-item.active-page {
    background: linear-gradient(135deg, rgba(43,139,230,0.3), rgba(84,104,242,0.3));
    border-left: 4px solid #5468f2; color: white; font-weight: 500;
}
.nav-item .material-icons { margin-right: 12px; font-size: 20px; flex-shrink: 0; }
.nav-text { flex: 1; white-space: nowrap; overflow: hidden; }
.expand-icon { margin-left: auto; font-size: 18px; }
.nav-subitems { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nav-subitems.open { max-height: 1200px; }
.nav-subitems .nav-item { padding-left: 40px; font-size: 13px; color: #8c99a8; }

.main-content { flex: 1; padding: 28px 32px 140px 32px; min-width: 0; }
.header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-title { font-size: 26px; font-weight: 700; color: #f2f5f9; letter-spacing: -0.3px; }
.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.status-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3); border-radius: 999px;
    color: #10b981; font-size: 12px; font-weight: 600;
}
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═════════ Buttons ═════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s ease;
    font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .material-icons { font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #2b8be6, #5468f2); color: white; border: none; box-shadow: 0 4px 15px rgba(43,139,230,0.25); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,139,230,0.4); }
.btn-outline { background: rgba(255,255,255,0.05); color: #c9d2dc; border: 1px solid rgba(255,255,255,0.15); }
.btn-outline:hover { background: rgba(43,139,230,0.14); border-color: rgba(43,139,230,0.5); color: #9dc8f3; }
.btn-recommend { background: linear-gradient(135deg, #ff6b00, #435af1); color: white; border: none; box-shadow: 0 4px 15px rgba(67,90,241,0.25); }
.btn-recommend:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(67,90,241,0.4); }
.sample-data-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; background: rgba(16,185,129,0.14);
    border: 1px solid rgba(16,185,129,0.35); border-radius: 10px;
    color: #10b981; cursor: pointer; font-size: 12px; font-weight: 600;
    font-family: inherit; transition: all 0.25s ease;
}
.sample-data-btn:hover { background: rgba(16,185,129,0.22); transform: translateY(-1px); }
.sample-data-btn .material-icons { font-size: 15px; }

/* ═════════ Card ═════════ */
.content { display: flex; flex-direction: column; gap: 20px; }
.card {
    background: rgba(255,255,255,0.04); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 24px;
}
.card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.card-title { font-size: 18px; font-weight: 700; color: #f2f5f9; margin: 0 0 4px 0; }
.card-subtitle { color: #8c99a8; font-size: 13px; }
.card-content { display: grid; grid-template-columns: 200px 1fr 280px; gap: 20px; align-items: flex-start; }
@media (max-width: 1300px) { .card-content { grid-template-columns: 180px 1fr 260px; } }
@media (max-width: 1100px) { .card-content { grid-template-columns: 1fr; } }

/* ═════════ Palette ═════════ */
.palette {
    background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.palette-title { font-size: 12px; font-weight: 700; color: #c9d2dc; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.palette-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; cursor: grab; transition: all 0.25s ease;
    font-size: 13px; font-weight: 600; color: #c9d2dc;
}
.palette-item:hover { background: rgba(43,139,230,0.14); border-color: rgba(43,139,230,0.45); transform: translateX(2px); }
.palette-item:active { cursor: grabbing; }
.palette-item[data-type="initiative"] .dot { background: #ff6b00; }
.palette-item[data-type="phase"]      .dot { background: #5468f2; }
.palette-item[data-type="outcome"]    .dot { background: #10b981; }
.palette-item[data-type="decision"]   .dot { background: #2b8be6; }
.palette-item[data-type="constraint"] .dot { background: #ef4444; }
.palette-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.palette-hint { font-size: 11px; color: #838f9f; line-height: 1.5; padding: 8px 4px 0; }

/* ═════════ Workflow lanes ═════════ */
.workflow-area { min-width: 0; }
.workflow-lanes {
    display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px;
}
@media (max-width: 1400px) { .workflow-lanes { grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 10px; } }
.lane {
    background: rgba(0,0,0,0.24); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 10px; display: flex; flex-direction: column;
    min-height: 420px;
}
.lane[data-stage="backlog"]    { border-top: 3px solid var(--backlog); }
.lane[data-stage="prioritize"] { border-top: 3px solid var(--prioritize); }
.lane[data-stage="plan"]       { border-top: 3px solid var(--plan); }
.lane[data-stage="execute"]    { border-top: 3px solid var(--execute); }
.lane[data-stage="done"]       { border-top: 3px solid var(--done); }
.lane-header { margin-bottom: 10px; padding: 0 2px; }
.lane-header-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.lane-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #c9d2dc; display: flex; align-items: center; gap: 6px;
}
.lane-title .count-pill {
    padding: 1px 7px; background: rgba(255,255,255,0.08); border-radius: 999px;
    font-size: 10px; font-weight: 600; color: #c9d2dc; text-transform: none; letter-spacing: 0;
}
.btn-lane-add {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 3px 7px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: #c9d2dc; cursor: pointer; font-size: 11px; font-family: inherit;
    transition: all 0.25s ease;
}
.btn-lane-add:hover { background: rgba(43,139,230,0.14); color: #9dc8f3; }
.btn-lane-explain {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 7px; background: rgba(84,104,242,0.15);
    border: 1px solid rgba(84,104,242,0.35); border-radius: 6px;
    color: #8c9bf7; cursor: pointer; font-size: 10px; font-weight: 600;
    font-family: inherit; transition: all 0.25s ease;
}
.btn-lane-explain:hover { background: rgba(84,104,242,0.26); }
.btn-lane-explain .material-icons { font-size: 12px; }
.lane-drop-zone {
    flex: 1; display: flex; flex-direction: column; gap: 8px;
    padding: 8px 4px; border-radius: 8px; min-height: 200px;
    transition: background 0.2s ease, border 0.2s ease;
    border: 1px dashed transparent;
}
.lane-drop-zone.drag-over { background: rgba(43,139,230,0.08); border-color: rgba(43,139,230,0.4); }
.lane-empty {
    font-size: 11px; color: #838f9f; text-align: center;
    padding: 18px 8px; font-style: italic;
}

/* ═════════ Workflow item cards ═════════ */
.workflow-item {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 10px 10px 10px 14px; cursor: grab;
    position: relative; transition: all 0.25s ease;
}
.workflow-item:hover { background: rgba(255,255,255,0.09); border-color: rgba(43,139,230,0.3); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.workflow-item:active { cursor: grabbing; }
.workflow-item.dragging { opacity: 0.5; transform: scale(0.97); }
.workflow-item::before {
    content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 3px; border-radius: 0 3px 3px 0; background: #5468f2;
}
.workflow-item[data-type="initiative"]::before { background: #ff6b00; }
.workflow-item[data-type="phase"]::before      { background: #5468f2; }
.workflow-item[data-type="outcome"]::before    { background: #10b981; }
.workflow-item[data-type="decision"]::before   { background: #2b8be6; }
.workflow-item[data-type="constraint"]::before { background: #ef4444; }

.wi-head { display: flex; align-items: flex-start; gap: 6px; }
.wi-type {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #8c99a8; padding: 1px 6px;
    border-radius: 4px; background: rgba(255,255,255,0.06); flex-shrink: 0;
}
.wi-title {
    font-size: 12px; font-weight: 600; color: #edf5fd; line-height: 1.35;
    margin-top: 2px; flex: 1;
}
.wi-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s ease; }
.workflow-item:hover .wi-actions { opacity: 1; }
.wi-btn {
    width: 22px; height: 22px; border: none; background: rgba(255,255,255,0.06);
    border-radius: 5px; color: #8c99a8; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.wi-btn:hover { background: rgba(43,139,230,0.2); color: #5aa6ee; }
.wi-btn .material-icons { font-size: 13px; }
.wi-btn.ai-btn { background: rgba(84,104,242,0.18); color: #8c9bf7; }
.wi-btn.ai-btn:hover { background: rgba(84,104,242,0.32); color: #b8c1fa; }

.wi-meta {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
    font-size: 10px; color: #8c99a8;
}
.wi-meta .chip {
    padding: 1px 6px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
}
.wi-meta .chip.priority-high   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.35);  color: #fca5a5; }
.wi-meta .chip.priority-medium { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.wi-meta .chip.priority-low    { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }

/* ═════════ Outcomes panel ═════════ */
.outcomes-panel {
    background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 16px;
}
.outcomes-panel-title {
    font-size: 12px; font-weight: 700; color: #c9d2dc;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.outcomes-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.outcome-row {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 10px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
    font-size: 12px; color: #c9d2dc;
}
.outcome-row .rank {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white; font-weight: 700; font-size: 11px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.outcome-row .rank.podium-1 { background: linear-gradient(135deg, #f59e0b, #ff6b00); }
.outcome-row .rank.podium-2 { background: linear-gradient(135deg, #687587, #8c99a8); }
.outcome-row .rank.podium-3 { background: linear-gradient(135deg, #a04300, #c2410c); }
.outcome-row .o-text { flex: 1; line-height: 1.4; min-width: 0; }
.outcome-row .o-stage {
    font-size: 10px; color: #8c99a8; padding: 1px 6px;
    background: rgba(255,255,255,0.06); border-radius: 6px;
    flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.3px;
}
.outcomes-empty { font-size: 12px; color: #838f9f; text-align: center; padding: 30px 10px; font-style: italic; }
.outcomes-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.outcomes-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 12px; }

/* ═════════ AI banner (portfolio.html style) ═════════ */
.ai-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(43,139,230,0.18), rgba(84,104,242,0.18) 50%, rgba(67,90,241,0.15));
    border: 1px solid rgba(84,104,242,0.35); border-radius: 16px;
    padding: 18px 22px; margin-bottom: 4px;
}
.ai-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(84,104,242,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.ai-banner-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.ai-banner-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: rgba(84,104,242,0.25);
    border: 1px solid rgba(84,104,242,0.45); border-radius: 999px;
    color: #b8c1fa; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.ai-banner-badge .material-icons { font-size: 14px; }
.ai-banner-title { margin: 0; font-size: 16px; font-weight: 700; color: #f2f5f9; }
.ai-banner-sub { color: #b8c1fa; font-weight: 500; font-size: 13px; margin-top: 3px; }
.ai-conf-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: rgba(16,185,129,0.18);
    border: 1px solid rgba(16,185,129,0.4); border-radius: 999px;
    color: #6ee7b7; font-size: 11px; font-weight: 600;
}
.ai-conf-chip .material-icons { font-size: 13px; }
.ai-banner-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-banner-cta {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
    color: #edf5fd; cursor: pointer; font-size: 12px; font-weight: 600;
    font-family: inherit; transition: all 0.25s ease;
}
.ai-banner-cta:hover { background: rgba(84,104,242,0.22); border-color: rgba(84,104,242,0.55); color: #b8c1fa; transform: translateY(-1px); }
.ai-banner-cta .material-icons { font-size: 15px; }

/* AI query bar */
.ai-query-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 14px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
}
.ai-q-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.ai-q-icon .material-icons { font-size: 18px; }
#aiQueryInput {
    flex: 1; min-width: 240px; padding: 9px 12px;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #edf5fd; font-size: 13px; font-family: inherit;
}
#aiQueryInput:focus { outline: none; border-color: rgba(84,104,242,0.55); background: rgba(0,0,0,0.5); }
.ai-q-send {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 14px; background: linear-gradient(135deg, #2b8be6, #5468f2);
    border: none; border-radius: 8px; color: white;
    cursor: pointer; font-size: 12px; font-weight: 700;
    font-family: inherit; transition: all 0.25s ease;
}
.ai-q-send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43,139,230,0.3); }
.ai-q-send .material-icons { font-size: 15px; }
.ai-chip {
    display: inline-flex; align-items: center; padding: 6px 12px;
    background: rgba(84,104,242,0.12); border: 1px solid rgba(84,104,242,0.3);
    border-radius: 999px; color: #b8c1fa; cursor: pointer;
    font-size: 11px; font-weight: 600; font-family: inherit; transition: all 0.25s ease;
}
.ai-chip:hover { background: rgba(84,104,242,0.22); border-color: rgba(84,104,242,0.5); }

/* AI narrative strip */
.ai-narrative-strip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25); border-radius: 12px;
    border-left: 4px solid #10b981;
}
.ai-narrative-strip .lead { color: #10b981; font-size: 20px; flex-shrink: 0; }
.ai-narrative-text { color: #d1fae5; font-size: 13px; font-weight: 500; flex: 1; line-height: 1.5; }
.ai-narrative-dots { font-size: 11px; color: #6ee7b7; font-style: italic; white-space: nowrap; }

/* AI KPI sparkle buttons on lane headers / cards */
.ai-sparkle {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, rgba(84,104,242,0.2), rgba(67,90,241,0.2));
    border: 1px solid rgba(84,104,242,0.4); color: #b8c1fa;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; flex-shrink: 0;
}
.ai-sparkle:hover { background: linear-gradient(135deg, rgba(84,104,242,0.35), rgba(67,90,241,0.35)); transform: scale(1.08); }
.ai-sparkle .material-icons { font-size: 13px; }

/* ═════════ Modals ═════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center;
    z-index: 1200; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    width: 100%; max-width: 480px;
    background: #1c2430; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-title { font-size: 17px; font-weight: 700; color: #f2f5f9; margin-bottom: 16px; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: 12px; font-weight: 600; color: #c9d2dc; margin-bottom: 6px; }
.modal-field input, .modal-field select, .modal-field textarea {
    width: 100%; padding: 10px 12px; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
    color: #edf5fd; font-size: 13px; font-family: inherit;
}
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus { outline: none; border-color: rgba(43,139,230,0.55); }
.modal-field textarea { resize: vertical; min-height: 68px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ═════════ Recommend modal ═════════ */
.recommend-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center;
    z-index: 1300; padding: 40px 20px; overflow-y: auto;
}
.recommend-modal-overlay.active { display: flex; }
.recommend-modal {
    width: 100%; max-width: 760px; background: #161d27;
    border: 1px solid rgba(84,104,242,0.3); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); overflow: hidden;
}
.recommend-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; background: linear-gradient(135deg, rgba(43,139,230,0.12), rgba(84,104,242,0.12));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.recommend-modal-title { font-size: 17px; font-weight: 700; color: #f2f5f9; display: flex; align-items: center; gap: 8px; }
.recommend-modal-title .material-icons { color: #8c9bf7; }
.recommend-modal-close {
    width: 30px; height: 30px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.06); color: #c9d2dc; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.recommend-modal-close:hover { background: rgba(239,68,68,0.25); color: #fca5a5; }
.recommend-modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.recommend-input-row { display: flex; gap: 8px; }
.recommend-input-row input {
    flex: 1; padding: 11px 14px; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    color: #edf5fd; font-size: 13px; font-family: inherit;
}
.recommend-input-row input:focus { outline: none; border-color: rgba(84,104,242,0.55); }
.recommend-ai-btn {
    padding: 10px 16px; background: linear-gradient(135deg, #2b8be6, #5468f2);
    border: none; border-radius: 10px; color: white; cursor: pointer;
    font-size: 13px; font-weight: 700; font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
}
.recommend-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(84,104,242,0.4); }
.recommend-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recommend-chip {
    padding: 6px 11px; background: rgba(84,104,242,0.12);
    border: 1px solid rgba(84,104,242,0.3); border-radius: 999px;
    color: #b8c1fa; cursor: pointer; font-size: 11px; font-weight: 600;
    font-family: inherit; transition: all 0.25s ease;
}
.recommend-chip:hover { background: rgba(84,104,242,0.22); border-color: rgba(84,104,242,0.5); }
.recommend-results {
    min-height: 140px; max-height: 400px; overflow-y: auto;
    padding: 14px 16px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    color: #c9d2dc; font-size: 13px; line-height: 1.6;
}
.recommend-results.empty { color: #838f9f; font-style: italic; display: flex; align-items: center; justify-content: center; }
.recommend-results h2, .recommend-results h3 { color: #f2f5f9; margin: 10px 0 6px; font-size: 14px; }
.recommend-results ul, .recommend-results ol { margin: 6px 0 10px 22px; }
.recommend-results li { margin-bottom: 4px; }
.recommend-results p { margin: 6px 0; }
.recommend-btn-row { display: flex; gap: 8px; justify-content: flex-end; }
.recommend-apply-btn, .recommend-print-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 14px; border-radius: 8px; border: 1px solid transparent;
    cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit;
}
.recommend-apply-btn { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; }
.recommend-print-btn { background: rgba(255,255,255,0.05); color: #c9d2dc; border: 1px solid rgba(255,255,255,0.15); }
.recommend-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,185,129,0.3); }
.recommend-print-btn:hover { background: rgba(43,139,230,0.14); color: #9dc8f3; }

/* Applied confirmation */
.applied-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; z-index: 1400; padding: 20px;
}
.applied-modal-overlay.active { display: flex; }
.applied-modal { max-width: 380px; padding: 28px; background: #1c2430; border: 1px solid rgba(16,185,129,0.3); border-radius: 16px; text-align: center; }
.applied-modal-icon { font-size: 46px; color: #10b981; margin-bottom: 10px; }
.applied-modal h3 { color: #f2f5f9; font-size: 17px; margin-bottom: 6px; }
.applied-modal p { color: #8c99a8; font-size: 13px; margin-bottom: 16px; }
.applied-modal-continue {
    padding: 10px 22px; background: linear-gradient(135deg, #10b981, #059669);
    border: none; border-radius: 8px; color: white; cursor: pointer;
    font-size: 13px; font-weight: 700; font-family: inherit;
}

/* ═════════ Chatbot (Pria) ═════════ */
.chatbot-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; font-family: inherit; }
.chatbot-window {
    position: fixed; bottom: 100px; right: 20px; width: 400px; height: 560px;
    background: rgba(11,14,19,0.97); backdrop-filter: blur(16px);
    border: 1px solid rgba(84,104,242,0.3); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: none; flex-direction: column; overflow: hidden;
}
.chatbot-window.open { display: flex; }
.chatbot-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: linear-gradient(135deg, rgba(43,139,230,0.15), rgba(84,104,242,0.15));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: url('../pria-avatar.png') center/cover no-repeat, linear-gradient(135deg, #2b8be6, #5468f2);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 0 2px rgba(84,104,242,0.25);
    flex-shrink: 0;
}
.chatbot-name { font-size: 16px; font-weight: 700; color: #f2f5f9; line-height: 1.2; }
.chatbot-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #a7f3d0; font-weight: 600; margin-top: 2px;
}
.status-indicator-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.chatbot-close {
    width: 28px; height: 28px; border: none; background: rgba(255,255,255,0.06);
    border-radius: 6px; color: #c9d2dc; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.chatbot-close:hover { background: rgba(239,68,68,0.25); color: #fca5a5; }
.chatbot-close .material-icons { font-size: 18px; }
.chatbot-messages {
    flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.message { display: flex; gap: 10px; align-items: flex-start; animation: priaSlideIn 0.3s ease-out; }
.message.user { flex-direction: row-reverse; }
@keyframes priaSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.message-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: url('../pria-avatar.png') center/cover no-repeat, linear-gradient(135deg, #2b8be6, #5468f2);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.message.user .message-avatar {
    background: linear-gradient(135deg, #ff6b00, #435af1);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px; font-weight: 700;
}
.message.user .message-avatar::before { content: 'You'; font-size: 10px; }
.message-avatar.ai {
    background: linear-gradient(135deg, #5468f2, #435af1);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; font-weight: 700;
    border: 1.5px solid rgba(67,90,241,0.4);
}
.message-avatar.ai::before { content: 'AI'; }
.message-content {
    max-width: 78%; padding: 8px 12px; border-radius: 12px;
    background: rgba(255,255,255,0.06); color: #c9d2dc;
    font-size: 13px; line-height: 1.5; word-wrap: break-word;
}
.message.user .message-content { background: linear-gradient(135deg, rgba(43,139,230,0.2), rgba(84,104,242,0.2)); border: 1px solid rgba(84,104,242,0.3); }
.message-content h2, .message-content h3 { font-size: 13px; font-weight: 700; margin: 6px 0 4px; color: #f2f5f9; }
.message-content ul, .message-content ol { margin: 4px 0 6px 20px; }
.message-content li { margin-bottom: 2px; }
.message-content p { margin: 4px 0; }
.typing-dots { display: flex; gap: 3px; padding: 4px 0; }
.typing-dot { width: 6px; height: 6px; background: #5468f2; border-radius: 50%; animation: typing 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chatbot-input-area {
    padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-direction: column; gap: 8px;
}
.chatbot-input-row { display: flex; gap: 6px; align-items: center; }
.chatbot-input {
    flex: 1; padding: 9px 12px; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    color: #edf5fd; font-size: 13px; font-family: inherit;
}
.chatbot-input:focus { outline: none; border-color: rgba(84,104,242,0.55); }
.chatbot-send, .chatbot-ai {
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-send { background: linear-gradient(135deg, #2b8be6, #5468f2); color: white; }
.chatbot-ai {
    width: 38px; height: 38px; border: 2px solid rgba(84,104,242,0.4);
    background: linear-gradient(135deg, rgba(43,139,230,0.2), rgba(84,104,242,0.3));
    color: #8c9bf7;
}
.chatbot-ai.loading { pointer-events: none; animation: sparklePulse 1.2s ease-in-out infinite; }
@keyframes sparklePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(84,104,242,0.3); transform: scale(1); }
    50%      { opacity: 0.7; box-shadow: 0 0 22px rgba(84,104,242,0.7); transform: scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.chatbot-send:hover, .chatbot-ai:hover { transform: scale(1.08); box-shadow: 0 0 14px rgba(84,104,242,0.4); }
.chatbot-send .material-icons, .chatbot-ai .material-icons { font-size: 18px; }
.quick-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-action {
    padding: 6px 10px; background: rgba(43,139,230,0.15);
    border: 1px solid rgba(43,139,230,0.4); border-radius: 14px;
    color: #c9d2dc; cursor: pointer; font-size: 11px; font-weight: 600;
    font-family: inherit; transition: all 0.25s ease;
}
.quick-action:hover { background: rgba(43,139,230,0.28); transform: translateY(-1px); }
.quick-action.tut  { background: rgba(16,185,129,0.15); border-color: #10b981; color: #6ee7b7; }
.quick-action.tut:hover  { background: rgba(16,185,129,0.28); }
.quick-action.vid  { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #fca5a5; }
.quick-action.vid:hover  { background: rgba(239,68,68,0.28); }
.quick-action.meet { background: rgba(84,104,242,0.18); border-color: #5468f2; color: #b8c1fa; }
.quick-action.meet:hover { background: rgba(84,104,242,0.32); }
.quick-action.glossary { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #fcd34d; }
.quick-action.glossary:hover { background: rgba(245,158,11,0.28); }
.chatbot-trigger {
    width: 64px; height: 64px; border-radius: 50%; border: none;
    background: url('../pria-avatar.png') center/cover no-repeat, linear-gradient(135deg, #2b8be6, #5468f2);
    color: white; cursor: pointer;
    box-shadow: 0 8px 25px rgba(43,139,230,0.45);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    animation: priaPulse 3s infinite;
    border: 2px solid rgba(255,255,255,0.25);
}
@keyframes priaPulse {
    0%   { box-shadow: 0 8px 25px rgba(43,139,230,0.45), 0 0 0 0 rgba(84,104,242,0.6); }
    70%  { box-shadow: 0 8px 25px rgba(43,139,230,0.45), 0 0 0 18px rgba(84,104,242,0); }
    100% { box-shadow: 0 8px 25px rgba(43,139,230,0.45), 0 0 0 0 rgba(84,104,242,0); }
}
.chatbot-trigger:hover { transform: scale(1.08); }
.chatbot-trigger .material-icons {
    font-size: 20px; color: #fff;
    background: linear-gradient(135deg, rgba(43,139,230,0.9), rgba(84,104,242,0.9));
    border-radius: 50%; padding: 4px;
    position: absolute; bottom: -2px; right: -2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ═════════ Issues tracker ═════════ */
.issues-tracker-container { position: fixed; bottom: 20px; left: 20px; z-index: 1000; }
.issues-tracker-window {
    position: fixed; bottom: 100px; left: 20px; width: 360px; max-height: 540px;
    background: rgba(11,14,19,0.97); backdrop-filter: blur(16px);
    border: 1px solid rgba(239,68,68,0.3); border-radius: 16px;
    display: none; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.issues-tracker-window.open { display: flex; }
.issues-tracker-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(245,158,11,0.12));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.issues-tracker-icon { color: #ef4444; font-size: 20px; }
.issues-tracker-name { font-size: 14px; font-weight: 700; color: #f2f5f9; }
.issues-tracker-status { font-size: 11px; color: #fca5a5; }
.issues-tracker-close {
    width: 26px; height: 26px; border: none; background: rgba(255,255,255,0.06);
    border-radius: 6px; color: #c9d2dc; cursor: pointer;
}
.issues-tracker-close:hover { background: rgba(239,68,68,0.25); color: #fca5a5; }
.issues-tracker-form { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.issues-tracker-form.hidden { display: none; }
.it-form-group label { display: block; font-size: 11px; font-weight: 600; color: #c9d2dc; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.it-form-group input, .it-form-group select, .it-form-group textarea {
    width: 100%; padding: 8px 10px; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: #edf5fd; font-size: 12px; font-family: inherit;
}
.it-form-group textarea { resize: vertical; min-height: 64px; }
.it-form-submit {
    padding: 10px 14px; background: linear-gradient(135deg, #ef4444, #ff6b00);
    border: none; border-radius: 8px; color: white; cursor: pointer;
    font-size: 13px; font-weight: 700; font-family: inherit;
}
.it-form-submit:hover { transform: translateY(-1px); }
.it-form-success { text-align: center; padding: 20px; color: #10b981; font-weight: 600; }
.issues-tracker-trigger {
    width: 54px; height: 54px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #ef4444, #ff6b00); color: white;
    cursor: pointer; box-shadow: 0 8px 24px rgba(239,68,68,0.35);
    display: flex; align-items: center; justify-content: center;
}
.issues-tracker-trigger:hover { transform: scale(1.08); }
.issues-tracker-trigger::before { content: 'bug_report'; font-family: 'Material Icons'; font-size: 24px; }

/* Toast */
.pria-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 10px 18px; border-radius: 8px; font-size: 13px;
    z-index: 99999; background: #3a1a1a;
    border: 1px solid #6b2f2f; color: #f08080;
}
