:root {
    --bg-primary: #070913;
    --bg-card: rgba(13, 18, 36, 0.65);
    --border-color: rgba(255, 255, 255, 0.07);
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #a855f7; /* Purple */
    --accent-color: #06b6d4; /* Cyan */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 0;
}

/* Glowing Neon Background */
.glow-bg {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.08) 40%, rgba(6, 182, 212, 0.04) 70%, rgba(0,0,0,0) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
    margin-bottom: 0.5rem;
}

header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

header .brand-icon {
    color: var(--accent-color);
    width: 1.8rem;
    height: 1.8rem;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    font-weight: 700;
}

header .infinity-brand {
    font-size: 2.2rem;
    font-weight: 400;
    vertical-align: middle;
    display: inline-block;
    line-height: 0.8;
    margin-left: 0.3rem;
    color: var(--accent-color);
}

header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #ffffff 40%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.header-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #c7d2fe;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.badge-pill svg, .badge-pill i {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--accent-color);
}

.badge-pill:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(6, 182, 212, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.header-actions {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
}

.btn-handbook {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #f8fafc;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.btn-handbook:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.45));
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-handbook svg, .btn-handbook i {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--accent-color);
}


/* Progress Bar & Nodes */
.progress-bar-container {
    position: relative;
    padding: 1.5rem 0;
    margin: 0 1rem;
}

.progress-bar {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    top: 50%;
    left: 0;
    width: 0%;
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
}

.step-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.node-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #0c1020;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.step-node.active .node-num {
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.step-node.completed .node-num {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: #fff;
}

.node-label {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    text-align: center;
}

.step-node.active .node-label {
    color: #fff;
    font-weight: 700;
}

/* Glassmorphism Wizard Card */
.wizard-card {
    background: rgba(13, 18, 36, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.wizard-step.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.step-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 250px;
}

.step-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-guide-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.step-guide-btn svg, .step-guide-btn i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--accent-color);
}

.step-icon {
    color: var(--accent-color);
    width: 2rem;
    height: 2rem;
}

.wizard-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: #fff;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Forms styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input, .form-group textarea {
    background-color: rgba(6, 8, 20, 0.75);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    background-color: rgba(6, 8, 20, 0.9);
}

/* Button & Loaders */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.export-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.export-nav-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.export-download-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .export-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }
    .export-nav-group, .export-download-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .export-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.export-status-banner {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.export-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    display: inline-block;
    animation: statusPulse 1.5s infinite;
}

.status-pulse-dot.ready {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: none;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.pdf-bg-container {
    display: none !important;
    position: fixed;
    top: -99999px;
    left: -99999px;
    width: 1600px;
    height: 900px;
    background: #ffffff;
    pointer-events: none;
    z-index: -999999;
    overflow: hidden;
}

.btn-sm-add {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-sm-add:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--text-muted);
}

.btn svg, .btn-sm-add svg {
    width: 1.1rem;
    height: 1.1rem;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.loader {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Previews */
.content-preview {
    background-color: rgba(6, 8, 20, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.scrollable {
    max-height: none;
    overflow-y: visible;
}

/* Custom scrollbars */
.scrollable::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Markdown styling inside preview */
.content-preview h1, .content-preview h2, .content-preview h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.content-preview h1:first-child, .content-preview h2:first-child {
    margin-top: 0;
}

.content-preview p {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.content-preview ul, .content-preview ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.content-preview li {
    margin-bottom: 0.5rem;
}

.content-preview strong {
    color: var(--accent-color);
}

/* Split View (Solis 2) */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    height: 100%;
}

@media (max-width: 900px) {
    .split-view {
        grid-template-columns: 1fr;
    }
}

.split-pane {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.split-pane h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.split-pane h4 svg {
    color: var(--accent-color);
    width: 1.2rem;
    height: 1.2rem;
}

/* Lean Canvas Layout */
.lean-canvas-container {
    border: 1px solid var(--border-color);
    background-color: rgba(6, 8, 20, 0.65);
    border-radius: 16px;
    padding: 1rem;
    max-height: none;
}

.lean-canvas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0.8rem;
    min-width: 750px;
}

.lc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
}

.lc-card h5 {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lc-card h5 svg {
    width: 0.9rem;
    height: 0.9rem;
}

.lc-content {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

.lc-content ul {
    list-style: none;
}

.lc-content li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 0.7rem;
}

.lc-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Grid placement matching the standard Lean Canvas */
#lc-problem { grid-column: 1; grid-row: 1 / 3; }
#lc-solution { grid-column: 2; grid-row: 1; }
#lc-metrics { grid-column: 2; grid-row: 2; }
#lc-uvp { grid-column: 3; grid-row: 1 / 3; }
#lc-advantage { grid-column: 4; grid-row: 1; }
#lc-channels { grid-column: 4; grid-row: 2; }
#lc-segments { grid-column: 5; grid-row: 1 / 3; }
#lc-costs { grid-column: 1 / 3; grid-row: 3; }
#lc-revenues { grid-column: 3 / 6; grid-row: 3; }

/* Sticky note Board (Solis 4) */
.sticky-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .sticky-board {
        grid-template-columns: 1fr;
    }
}

.sticky-col {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.col-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

.col-title h4 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.rose-dot { background-color: #14b8a6; box-shadow: 0 0 10px #14b8a6; }
.thorn-dot { background-color: #ef4444; box-shadow: 0 0 10px #ef4444; }
.bud-dot { background-color: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

.sticky-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 250px;
}

.sticky-note {
    position: relative;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    line-height: 1.5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: noteAppear 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes noteAppear {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sticky-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.sticky-note .note-text {
    outline: none;
    cursor: text;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
    transition: background 0.15s, box-shadow 0.15s;
}

.sticky-note .note-text:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* 8. Solis: Rozes (Zaļš / Teal), Ērkšķi (Sarkans), Pumpuri (Zils) */
.category-roses .sticky-note {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #99f6e4;
}
.category-roses .col-title h4 {
    color: #5eead4;
}
.category-roses .btn-sm-add:hover {
    border-color: #14b8a6;
    color: #5eead4;
    background: rgba(20, 184, 166, 0.12);
}

.category-thorns .sticky-note {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.category-thorns .col-title h4 {
    color: #fca5a5;
}
.category-thorns .btn-sm-add:hover {
    border-color: #ef4444;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.category-buds .sticky-note {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}
.category-buds .col-title h4 {
    color: #7dd3fc;
}
.category-buds .btn-sm-add:hover {
    border-color: #38bdf8;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
}

.sticky-empty-hint {
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.step-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
}

.step-toolbar-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.45;
}

.step-toolbar-info svg {
    color: #38bdf8;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .step-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.note-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
}

.note-close:hover {
    opacity: 1;
}

.sticky-note input[type="text"] {
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 90%;
    font-size: 0.88rem;
    font-family: inherit;
}

.sticky-note input[type="text"]:focus {
    outline: none;
    border-bottom-color: #fff;
}

/* Chat container (Solis 5) */
.chat-container {
    background-color: rgba(6, 8, 20, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: none;
}

.chat-bubble {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    align-self: flex-start;
    animation: chatBubbleAppear 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes chatBubbleAppear {
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-transform: uppercase;
}

/* Color avatars corresponding to hats */
.avatar-white { background-color: #64748b; border: 1px solid #94a3b8; }
.avatar-red { background-color: #ef4444; border: 1px solid #fca5a5; }
.avatar-black { background-color: #1e293b; border: 1px solid #475569; }
.avatar-yellow { background-color: #eab308; border: 1px solid #fef08a; color: #000; }
.avatar-green { background-color: #10b981; border: 1px solid #6ee7b7; }
.avatar-blue { background-color: #3b82f6; border: 1px solid #93c5fd; }

.chat-msg-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chat-speaker {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.chat-text {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
}

/* Color bubble borders based on hats */
.bubble-white .chat-text { border-left: 3px solid #94a3b8; }
.bubble-red .chat-text { border-left: 3px solid #ef4444; }
.bubble-black .chat-text { border-left: 3px solid #475569; }
.bubble-yellow .chat-text { border-left: 3px solid #eab308; }
.bubble-green .chat-text { border-left: 3px solid #10b981; }
.bubble-blue .chat-text { border-left: 3px solid #3b82f6; }

/* Validation Dashboard (Solis 6) */
.validation-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 800px) {
    .validation-dashboard {
        grid-template-columns: 1fr;
    }
}

.score-card {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.score-card h5 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Gauge styling */
.gauge-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.gauge {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--border-color) 0%, var(--border-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 1s;
}

.gauge::before {
    content: '';
    position: absolute;
    width: 82%;
    height: 82%;
    background-color: #0d1224;
    border-radius: 50%;
}

.gauge-val {
    position: relative;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.decision-banner {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.decision-go {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1.5px solid var(--success-color);
    color: var(--success-color);
    text-shadow: 0 0 8px rgba(16,185,129,0.3);
}

.decision-pivot {
    background-color: rgba(245, 158, 11, 0.15);
    border: 1.5px solid var(--warning-color);
    color: var(--warning-color);
    text-shadow: 0 0 8px rgba(245,158,11,0.3);
}

.decision-no-go {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1.5px solid var(--danger-color);
    color: var(--danger-color);
    text-shadow: 0 0 8px rgba(239,68,68,0.3);
}

/* SWOT Grid */
.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.swot-cell {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
}

.swot-cell h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.swot-s h6 { background-color: rgba(16, 185, 129, 0.12); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.2); }
.swot-w h6 { background-color: rgba(239, 68, 68, 0.12); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.2); }
.swot-o h6 { background-color: rgba(99, 102, 241, 0.12); color: var(--primary-color); border: 1px solid rgba(99, 102, 241, 0.2); }
.swot-t h6 { background-color: rgba(245, 158, 11, 0.12); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.2); }

.swot-cell ul {
    list-style: none;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.swot-cell li {
    margin-bottom: 0.4rem;
    padding-left: 0.8rem;
    position: relative;
}

.swot-cell li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0.6;
}

.swot-s li::before { color: var(--success-color); }
.swot-w li::before { color: var(--danger-color); }
.swot-o li::before { color: var(--primary-color); }
.swot-t li::before { color: var(--warning-color); }

/* Validation Summary */
.val-summary {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.val-summary h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.val-summary h4 svg {
    color: var(--accent-color);
}

/* Info Alert box */
.info-alert {
    background-color: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.info-alert code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.alert-icon {
    color: var(--accent-color);
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

/* ==========================================
   PDF SLIDES GENERATION STYLES (White Document & Dark Ink)
   ========================================== */
.pdf-slide {
    width: 1600px;
    height: 900px;
    padding: 40px 55px;
    box-sizing: border-box;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-slide::before {
    display: none !important;
}

.pdf-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    z-index: 2;
    width: 100%;
}

.pdf-slide-header h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-slide-header .slide-logo {
    font-size: 15px;
    font-weight: 700;
    color: #475569 !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 14px;
    letter-spacing: 0.5px;
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-slide-content {
    flex-grow: 1;
    z-index: 2;
    overflow: hidden;
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #1e293b !important;
}

.pdf-slide-content h1, 
.pdf-slide-content h2, 
.pdf-slide-content h3, 
.pdf-slide-content h4 {
    color: #0f172a !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 6px;
}

.pdf-slide-content p, 
.pdf-slide-content li {
    color: #1e293b !important;
}

.pdf-slide-content strong, 
.pdf-slide-content b {
    color: #0f172a !important;
    font-weight: 700;
}

.pdf-slide-content a {
    color: #0284c7 !important;
    text-decoration: underline;
    font-weight: 600;
}

.pdf-slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b !important;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    z-index: 2;
}

/* Slide 1: Title Slide (Executive Light) */
.title-slide {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
}

.title-container {
    max-width: 1000px;
    margin: auto 0;
}

.title-tag {
    display: inline-block;
    padding: 6px 18px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #166534;
    margin-bottom: 20px;
}

.slide-title-large {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 60px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    letter-spacing: -1px;
}

.slide-niche {
    font-size: 22px;
    font-weight: 600;
    color: #475569 !important;
    margin-bottom: 24px;
}

.slide-divider {
    width: 100px;
    height: 4px;
    background: #0284c7;
    margin: 0 auto 24px auto;
    border-radius: 2px;
}

.slide-desc {
    font-size: 17px;
    color: #334155 !important;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 auto;
}
    margin: 0 auto;
}

/* Slide 2: Persona Grid */
.persona-pdf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    height: 100%;
}

.persona-pdf-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    box-sizing: border-box;
}

.persona-pdf-card h4 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

/* Slide 3: Lean Canvas Grid PDF */
.lean-canvas-grid-pdf {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 230px);
    gap: 12px;
}

.lc-card-pdf {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
    font-size: 11px;
}

.lc-card-pdf h5 {
    font-size: 11.5px;
    color: #10b981;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.lc-card-pdf ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lc-card-pdf li {
    margin-bottom: 4px;
    color: #e2e8f0;
    line-height: 1.4;
    position: relative;
    padding-left: 8px;
}

.lc-card-pdf li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
}

/* Lean Canvas Grid Positions */
.pdf-lc-problem { grid-row: 1 / 3; grid-column: 1 / 2; }
.pdf-lc-solution { grid-row: 1 / 2; grid-column: 2 / 3; }
.pdf-lc-metrics { grid-row: 2 / 3; grid-column: 2 / 3; }
.pdf-lc-uvp { grid-row: 1 / 3; grid-column: 3 / 4; }
.pdf-lc-advantage { grid-row: 1 / 2; grid-column: 4 / 5; }
.pdf-lc-channels { grid-row: 2 / 3; grid-column: 4 / 5; }
.pdf-lc-segments { grid-row: 1 / 3; grid-column: 5 / 6; }
.pdf-lc-costs { grid-row: 2 / 3; grid-column: 1 / 3; display: none; } /* Wait, we fit it below */

.lean-canvas-footer-pdf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

/* Slide 4: Research PDF */
.research-pdf-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px 35px;
    height: 660px;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 16.5px;
    line-height: 1.8;
}

.research-pdf-body h1, .research-pdf-body h2, .research-pdf-body h3, .research-pdf-body h4 {
    color: #3b82f6;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.research-pdf-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 14.5px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.research-pdf-body th, .research-pdf-body td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.research-pdf-body th {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Slide 5: Sticky Board PDF */
.sticky-board-pdf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    height: 100%;
}

.sticky-col-pdf {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 480px;
    height: auto;
    box-sizing: border-box;
}

.sticky-col-pdf h4 {
    font-size: 15px;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-list-pdf {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.sticky-note-pdf {
    border-radius: 10px;
    padding: 12px;
    font-size: 12.5px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sticky-note-pdf.rose {
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.25);
    color: #fecdd3;
}
.sticky-note-pdf.thorn {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.sticky-note-pdf.bud {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #a7f3d0;
}

/* Slide 6: Chat PDF */
.chat-container-pdf {
    background: rgba(6, 8, 20, 0.65);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 480px;
    height: auto;
    box-sizing: border-box;
}

.chat-bubble-pdf {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.chat-bubble-pdf.right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar-pdf {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.chat-msg-body-pdf {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-speaker-pdf {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
}

.chat-text-pdf {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #cbd5e1;
}

.bubble-white-pdf .chat-text-pdf { border-left: 3px solid #94a3b8; }
.bubble-red-pdf .chat-text-pdf { border-left: 3px solid #ef4444; }
.bubble-black-pdf .chat-text-pdf { border-left: 3px solid #475569; }
.bubble-yellow-pdf .chat-text-pdf { border-left: 3px solid #eab308; }
.bubble-green-pdf .chat-text-pdf { border-left: 3px solid #10b981; }
.bubble-blue-pdf .chat-text-pdf { border-left: 3px solid #3b82f6; }

/* Slide 7: SWOT Matrix and Validation PDF */
.validation-pdf-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 25px;
    height: 100%;
}

.val-pdf-card {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 480px;
    height: auto;
    box-sizing: border-box;
}

.val-pdf-score {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.val-pdf-desc-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.swot-grid-pdf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 480px;
    height: auto;
}

.swot-cell-pdf {
    background: rgba(13, 18, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
}

.swot-cell-pdf h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.swot-s-pdf h6 { background: rgba(16, 185, 129, 0.12); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.2); }
.swot-w-pdf h6 { background: rgba(239, 68, 68, 0.12); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.2); }
.swot-o-pdf h6 { background: rgba(99, 102, 241, 0.12); color: var(--primary-color); border: 1px solid rgba(99, 102, 241, 0.2); }
.swot-t-pdf h6 { background: rgba(245, 158, 11, 0.12); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.2); }

.swot-cell-pdf ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    color: #cbd5e1;
}

.swot-cell-pdf li {
    margin-bottom: 4px;
    padding-left: 10px;
    position: relative;
    line-height: 1.4;
}

.swot-cell-pdf li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0.6;
}
.swot-s-pdf li::before { color: var(--success-color); }
.swot-w-pdf li::before { color: var(--danger-color); }
.swot-o-pdf li::before { color: var(--primary-color); }
.swot-t-pdf li::before { color: var(--warning-color); }

/* AI Generating Loader Screen Styling */
.ai-generating-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(11, 15, 25, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

.ai-generating-loader h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.ai-generating-loader p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
}

.spinner-glow {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid #6366f1;
    border-right: 3px solid #a855f7;
    border-radius: 50%;
    animation: spinGlow 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

@keyframes spinGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PM Lean Canvas Sub-cards */
.lc-sub-card {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.lc-sub-card h6 {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lc-sub-content {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Fishbone (Ishikawa) Diagram Styling */
.fishbone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .fishbone-grid {
        grid-template-columns: 1fr;
    }
}

.fishbone-card {
    background: rgba(13, 18, 36, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.fishbone-card h5 {
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0.5rem;
}

.fishbone-card ul {
    list-style: none;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.fishbone-card li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 0.8rem;
    line-height: 1.4;
}

.fishbone-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.fishbone-main-problem {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.fishbone-main-problem h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
}

.fishbone-main-problem p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* MoSCoW MVP Feature Matrix Styling */
.mvp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1000px) {
    .mvp-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .mvp-grid {
        grid-template-columns: 1fr;
    }
}

.mvp-card {
    background: rgba(13, 18, 36, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mvp-card h5 {
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0.5rem;
}

.mvp-must h5 { color: #10b981; }
.mvp-should h5 { color: #38bdf8; }
.mvp-could h5 { color: #f59e0b; }
.mvp-wont h5 { color: #ef4444; }

.mvp-card ul {
    list-style: none;
    font-size: 0.83rem;
    color: #cbd5e1;
}

.mvp-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.4;
}

.mvp-must li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: bold; }
.mvp-should li::before { content: '→'; position: absolute; left: 0; color: #38bdf8; }
.mvp-could li::before { content: '•'; position: absolute; left: 0; color: #f59e0b; }
.mvp-wont li::before { content: '✕'; position: absolute; left: 0; color: #ef4444; }

.mvp-testing-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

.mvp-testing-card h5 {
    color: #10b981;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Focus Shift & Problem-Solution Fit UI Styling */
.focus-shift-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.focus-shift-banner i {
    color: #38bdf8;
    flex-shrink: 0;
}

.psf-score-card {
    background: rgba(13, 18, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}

.gimmick-risk-banner {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 0.8rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.risk-low {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.risk-medium {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.risk-high {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.focus-recommendation-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

.focus-recommendation-card h5 {
    color: #38bdf8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   HANDBOOK MODAL (IDEJU AUDITA & DIZAINA DOMĀŠANAS MEISTARKLASES ROKASGRĀMATA)
   ========================================================================== */

.handbook-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.handbook-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.handbook-modal {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    max-height: 850px;
    background: #0b0f19;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.handbook-modal-overlay.active .handbook-modal {
    transform: scale(1) translateY(0);
}

.handbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.handbook-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.handbook-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.handbook-icon-box svg, .handbook-icon-box i {
    width: 1.4rem;
    height: 1.4rem;
}

.handbook-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.handbook-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.handbook-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.handbook-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.handbook-body {
    display: grid;
    grid-template-columns: 310px 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.handbook-sidebar {
    background: rgba(10, 14, 26, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.handbook-search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.5);
}

.handbook-search-box svg, .handbook-search-box i {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.handbook-search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.handbook-search-box input::placeholder {
    color: #64748b;
}

.handbook-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 0.7rem 0.75rem 0.3rem 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #f1f5f9;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.nav-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Content Area */
.handbook-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.25rem 2.5rem;
    background: rgba(13, 18, 36, 0.4);
    scroll-behavior: smooth;
}

.handbook-article {
    display: none;
    animation: fadeInArticle 0.25s ease forwards;
}

.handbook-article.active {
    display: block;
}

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

.article-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    margin-bottom: 0.8rem;
}

.handbook-article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.handbook-article .lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.handbook-article h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.handbook-article p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.handbook-article ul, .handbook-article ol {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.handbook-article li {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.handbook-article li strong {
    color: #f8fafc;
}

/* Callouts in Handbook */
.callout {
    padding: 1.1rem 1.35rem;
    border-radius: 12px;
    margin: 1.35rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.callout-info {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
    color: #c7d2fe;
}

.callout-info strong {
    color: #ffffff;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    color: #fde68a;
}

.callout-warning strong {
    color: #ffffff;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    color: #fca5a5;
}

.callout-danger strong {
    color: #ffffff;
}

/* Guide Grid for 2-column cards */
.guide-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.guide-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.guide-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-card h5 svg, .guide-card h5 i {
    width: 1rem;
    height: 1rem;
    color: var(--accent-color);
}

.guide-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Responsive Rules */
@media (max-width: 860px) {
    .handbook-body {
        grid-template-columns: 1fr;
    }
    .handbook-sidebar {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .handbook-content {
        padding: 1.5rem;
    }
    .handbook-modal {
        height: 92vh;
    }
}

/* ==========================================================================
   APP FOOTER (POWERED BY SARMYTE & ANTIGRAVITY)
   ========================================================================== */
.app-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-compliance-row {
    display: flex;
    justify-content: center;
}

.footer-compliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    background: #00213F;
    border: 1px solid rgba(14, 124, 134, 0.5);
    border-radius: 9999px;
    color: #2DD4BF;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.footer-compliance-pill:hover {
    background: #002D54;
    border-color: #2DD4BF;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.25);
}

.footer-compliance-pill svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.footer-credits {
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-credits a.credits-author {
    color: #38bdf8;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer-credits a.credits-author:hover {
    color: #fff;
}

.credits-sep {
    color: rgba(255, 255, 255, 0.2);
}

.credits-tech {
    color: #818cf8;
    font-weight: 800;
}

/* ==========================================================================
   BUY ME A COFFEE FLOATING WIDGET & MODAL (MINIMALIST HOVER)
   ========================================================================== */
.bmac-floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bmac-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #00213F;
    border: 1px solid rgba(14, 124, 134, 0.6);
    color: #f1f5f9;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 10px 15px -6px rgba(0, 0, 0, 0.4);
    font-size: 0.84rem;
    line-height: 1.5;
    max-width: 320px;
    cursor: pointer;
    position: relative;
    margin-bottom: 12px;
}

.bmac-floating-container:hover .bmac-tooltip,
.bmac-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bmac-tooltip-badge {
    color: #2DD4BF;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bmac-tooltip p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Triangle Arrow pointing down to the button */
.bmac-tooltip::after {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #00213F;
}

.bmac-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #40DCA5;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(64, 220, 165, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
}

.bmac-btn:hover {
    background-color: #34d399;
    transform: scale(1.08);
    box-shadow: 0 14px 30px rgba(64, 220, 165, 0.55);
}

.bmac-btn:active {
    transform: scale(0.95);
}

.bmac-cup-icon {
    width: 28px;
    height: 28px;
    fill: #0f172a;
    transition: transform 0.2s ease;
}

.bmac-btn:hover .bmac-cup-icon {
    transform: scale(1.08);
}

/* Modal Overlay */
.bmac-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bmac-modal-overlay.active {
    display: flex;
}

.bmac-modal-card {
    background: #001428;
    border: 1px solid rgba(14, 124, 134, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(45, 212, 191, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.bmac-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    background: #00213F;
    border-bottom: 1px solid rgba(14, 124, 134, 0.3);
}

.bmac-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: #2DD4BF;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.bmac-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.bmac-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.bmac-iframe {
    width: 100%;
    height: 580px;
    border: none;
    background: transparent;
    display: block;
}

/* Header Info Modal Button */
.btn-info-modal {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 12px;
    font-weight: 600;
}

.btn-info-modal:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Handbook Numeric Navigation Badges (Ascetic) */
.nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
    margin-right: 8px;
    flex-shrink: 0;
}

.nav-item.active .nav-num {
    background: #6366f1;
    color: #ffffff;
}

/* ==========================================================================
   INFO MODAL (PLATFORM OVERVIEW & DELIVERABLES)
   ========================================================================== */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.info-modal-overlay.active {
    display: flex;
}

.info-modal-card {
    background: #0d1224;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    background: rgba(6, 8, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-header-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-header-icon {
    width: 28px;
    height: 28px;
    color: #38bdf8;
    flex-shrink: 0;
}

.info-header-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.info-header-title p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.info-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.info-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.info-modal-body {
    padding: 1.6rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.info-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.6rem;
}

.pipeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.pipeline-item .p-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: monospace;
    flex-shrink: 0;
}

.pipeline-item .p-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.pipeline-item .p-text strong {
    color: #fff;
}

.info-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}

.deliverable-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem;
    background: rgba(6, 8, 20, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
}

.deliverable-card svg {
    width: 22px;
    height: 22px;
    color: #38bdf8;
    flex-shrink: 0;
    margin-top: 2px;
}

.deliverable-card h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.deliverable-card p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.info-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 1rem 1.6rem;
    background: rgba(6, 8, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   DIRECTIVES & PRIVACY MODAL (1:1 KARJERAS KOMPASS STANDARDS)
   ========================================================================== */
.directives-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.directives-modal-overlay.active {
    display: flex;
}

.directives-modal-card {
    background: #001D3A;
    border: 1px solid rgba(11, 98, 107, 0.6);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(45, 212, 191, 0.15);
    overflow: hidden;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.directives-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid rgba(11, 98, 107, 0.4);
}

.directives-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compliance-icon-badge {
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(11, 98, 107, 0.3);
    color: #5EEAD4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-icon-badge svg {
    width: 22px;
    height: 22px;
    stroke: #5EEAD4;
}

.directives-header-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.directives-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.directives-close-btn:hover {
    background: #00274D;
    color: #ffffff;
}

.directives-modal-body {
    padding: 1.4rem 1.6rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Compliance Individual Cards (1:1 Karjeras Kompass) */
.compliance-card {
    background: #00274D;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(11, 98, 107, 0.5);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.compliance-card.card-ai {
    border-color: rgba(11, 98, 107, 0.5);
}

.compliance-card.card-gdpr {
    border-color: rgba(5, 150, 105, 0.4);
}

.compliance-card.card-accessibility {
    border-color: rgba(2, 132, 199, 0.4);
}

.compliance-card.card-disclaimer {
    border-color: #334155;
}

.compliance-card.card-frameworks {
    border-color: rgba(99, 102, 241, 0.4);
}

.compliance-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.compliance-card-title.text-ai { color: #5EEAD4; }
.compliance-card-title.text-gdpr { color: #6EE7B7; }
.compliance-card-title.text-accessibility { color: #7DD3FC; }
.compliance-card-title.text-disclaimer { color: #CBD5E1; }
.compliance-card-title.text-frameworks { color: #A5B4FC; }

.compliance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.compliance-dot.dot-ai { background-color: #0B626B; }
.compliance-dot.dot-gdpr { background-color: #059669; }
.compliance-dot.dot-accessibility { background-color: #0284C7; }
.compliance-dot.dot-disclaimer { background-color: #64748B; }
.compliance-dot.dot-frameworks { background-color: #6366F1; }

.compliance-card p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #CBD5E1;
    margin: 0;
}

.directives-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.9rem 1.6rem;
    border-top: 1px solid rgba(11, 98, 107, 0.4);
}

.compliance-confirm-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.84rem;
    background-color: #0B626B;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 98, 107, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.compliance-confirm-btn:hover {
    background-color: #084D54;
    transform: translateY(-1px);
}

/* ==========================================================================
   VISPĀRĒJĀ MOBILĀ ADAPTIVITĀTE & TELEFONU EKRĀNU OPTIMIZĀCIJA
   ========================================================================== */
@media (max-width: 640px) {
    /* Konteiners un pamatkārtojums */
    .container {
        padding: 0.75rem 0.5rem 5rem 0.5rem;
    }

    header h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    header .subtitle {
        font-size: 0.85rem;
    }

    .header-badges {
        gap: 0.35rem;
    }

    .badge-pill {
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
    }

    .btn-handbook {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
        width: 100%;
        justify-content: center;
    }

    /* 10 Soļu Progresa Josla Mobilajos Ekrānos */
    .progress-bar-container {
        padding: 0.8rem 0;
        margin: 0.5rem 0 1rem 0;
    }

    .node-num {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        border-width: 1.5px;
    }

    .step-node .node-label {
        display: none;
    }

    .step-node.active .node-num {
        transform: scale(1.15);
    }

    /* Galvenā Vedņa Karte */
    .wizard-card {
        padding: 1.25rem 0.9rem;
        border-radius: 18px;
        min-height: auto;
    }

    .wizard-step {
        gap: 1.1rem;
    }

    .wizard-step h3 {
        font-size: 1.25rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-header-left {
        min-width: 100%;
    }

    .step-guide-btn {
        width: 100%;
        justify-content: center;
    }

    /* Ievades formas */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input, .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Lean Canvas Skārienekrānu Ritināšana */
    .lean-canvas-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.6rem;
        border-radius: 12px;
    }

    .lean-canvas-grid {
        min-width: 680px;
    }

    /* Pogu josla & Eksporta Pogas */
    .actions {
        flex-direction: column-reverse;
        gap: 0.65rem;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .export-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .export-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Validācijas & Rezultātu panelis */
    .validation-dashboard {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .score-card {
        padding: 1.2rem;
    }

    .val-details {
        padding: 1.2rem;
    }

    /* Peldošā BMAC Poga telefonā */
    .bmac-floating-container {
        bottom: 12px;
        right: 12px;
    }

    .bmac-btn {
        width: 44px;
        height: 44px;
    }

    .bmac-tooltip {
        max-width: 260px;
        font-size: 0.78rem;
        padding: 10px 14px;
    }

    /* Modālie logi telefonā */
    .handbook-modal, .info-modal-card, .directives-modal-card, .bmac-modal-card {
        width: 96vw;
        max-height: 94vh;
        border-radius: 16px;
    }

    .handbook-header, .info-modal-header, .directives-modal-header {
        padding: 1rem;
    }

    .handbook-content, .info-modal-body, .directives-modal-body {
        padding: 1rem;
    }
}
