@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root {
    /* Colors - Soft UI Evolution (Lavender & Emerald) */
    --primary: #8B5CF6;
    /* Violet/Lavender */
    --primary-hover: #7C3AED;
    --primary-light: #C4B5FD;
    --secondary: #10B981;
    /* Emerald CTA */
    --secondary-hover: #059669;

    --bg-color: #FAF5FF;
    --bg-card: #FFFFFF;

    --text-main: #4C1D95;
    /* Deep Purple Text */
    --text-muted: #7E22CE;

    --border-color: #E9D5FF;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Shadows - Soft UI */
    --shadow-sm: 0 1px 2px 0 rgba(139, 92, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 92, 246, 0.1), 0 2px 4px -1px rgba(139, 92, 246, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(139, 92, 246, 0.1), 0 4px 6px -2px rgba(139, 92, 246, 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgba(139, 92, 246, 0.06);

    /* Fonts & Structure */
    --font-heading: 'Varela Round', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.hidden {
    display: none !important;
}

/* Layout */
.app-header {
    background: var(--bg-card);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.logo-text span {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.app-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    width: 100%;
}

.screen {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px;
}

.center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.color-primary {
    color: var(--primary);
}

/* Buttons */
.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-cta {
    background-color: var(--secondary);
    color: white;
}

.btn-cta:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Forms */
.user-form,
.lookup-form {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background-color: var(--bg-card);
}

input.input-error,
select.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    background-color: #fef2f2 !important;
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.input-with-btn .prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feature-box .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Progress Area */
.progress-area {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

.section-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.section-dot {
    width: 24px;
    height: 8px;
    background-color: var(--bg-color);
    border-radius: var(--radius-pill);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.section-dot.filled {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.section-dot.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Question Area */
.question-container {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.question-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-align: center;
    color: var(--text-main);
    line-height: 1.4;
}

/* Likert Scale */
.likert-options {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.likert-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.likert-btn .vector-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-light);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition);
}

.likert-btn .label {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.likert-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.likert-btn:hover .vector-icon {
    stroke: var(--primary);
}

.likert-btn.selected {
    border-color: var(--primary);
    background-color: var(--bg-color);
    box-shadow: var(--shadow-inner);
    transform: translateY(2px);
}

.likert-btn.selected .vector-icon {
    stroke: var(--primary);
    fill: rgba(139, 92, 246, 0.1);
}

.likert-btn.selected .label {
    color: var(--primary);
}

.keyboard-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.question-footer {
    margin-top: 1rem;
}

.question-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.question-nav-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Mini result in section complete */
.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.mini-result {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.result-bar-bg {
    height: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-pill);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Results Dashboard */
.dashboard {
    max-width: 900px !important;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    background: var(--bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Domains Overview */
.domains-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.domain-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.domain-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.score-text {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.level-very-low {
    background: #fee2e2;
    color: #b91c1c;
}

.level-low {
    background: #ffedd5;
    color: #c2410c;
}

.level-avg {
    background: #f3f4f6;
    color: #4b5563;
}

.level-high {
    background: #dcfce3;
    color: #15803d;
}

.level-very-high {
    background: #dbeafe;
    color: #1d4ed8;
}

.domain-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Charts */
.chart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    width: 150px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.chart-bar-bg {
    flex: 1;
    height: 12px;
    background: var(--bg-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chart-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-value {
    width: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-color);
}

.accordion-chevron {
    transition: transform 0.3s;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-color);
}

.accordion-item.open .accordion-content {
    max-height: 2000px;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
}

/* Raw Answers List */
.raw-answers-list {
    list-style: none;
    margin-top: 1rem;
}

.raw-answer-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.raw-answer-item:last-child {
    border-bottom: none;
}

.raw-answer-item.reversed {
    background: rgba(139, 92, 246, 0.03);
}

.raw-a {
    font-weight: 700;
}

.a1 {
    color: var(--error);
}

.a2 {
    color: var(--warning);
}

.a3 {
    color: var(--text-muted);
}

.a4 {
    color: var(--success);
}

.a5 {
    color: var(--primary);
}

/* Footers/CTAs */
.save-result-action,
.consultation-action {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.app-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Resume Banner */
.resume-banner {
    background: linear-gradient(135deg, var(--primary-light), #E9D5FF);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideInRight 0.4s ease;
}

.resume-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resume-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.resume-info {
    flex: 1;
}

.resume-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.resume-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.resume-actions {
    display: flex;
    gap: 0.75rem;
}

.resume-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Base Responsive */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .domains-overview {
        grid-template-columns: 1fr;
    }

    .likert-options {
        flex-direction: column;
    }

    .likert-btn {
        flex-direction: row;
        padding: 1rem;
        justify-content: flex-start;
    }

    .likert-btn .label {
        margin-left: 1rem;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════
   Narrative Report Styles (120Q)
   ═══════════════════════════════════════════ */

.report-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.report-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
}

.report-narrative {
    line-height: 1.7;
    color: var(--text-main);
    font-size: 0.95rem;
}

.report-narrative p {
    margin-bottom: 0.75rem;
}

/* Report Cards (facets, cross, todo) */
.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    animation: fadeIn 0.4s ease backwards;
}

.report-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.report-card-body {
    padding: 1rem;
    line-height: 1.7;
    font-size: 0.93rem;
    color: var(--text-main);
}

.report-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.todo-badge {
    background: var(--secondary);
}

/* Facet Score Bar (mini) */
.facet-score {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.facet-bar-mini {
    height: 6px;
    background: var(--bg-color);
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.facet-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cross-Analysis Cards */
.cross-card {
    border-left: 3px solid var(--primary);
}

.cross-card .report-card-header {
    background: rgba(139, 92, 246, 0.06);
}

/* Todo Cards */
.todo-card {
    border-left: 3px solid var(--secondary);
}

.todo-card .report-card-header {
    background: rgba(16, 185, 129, 0.06);
}

.todo-freq {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-color);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.todo-why {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
}

.todo-group-tag {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Recommendations */
.report-recs-list {
    padding-left: 1.25rem;
}

.report-recs-list li {
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border-color);
}

.report-recs-list li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "▸ ";
    color: var(--primary);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: "▾ ";
}

.faq-item summary:hover {
    background: var(--bg-color);
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.93rem;
}

/* Responsive: Report tabs */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

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

    .facet-score, .todo-freq {
        margin-left: 0;
    }
}

/* ═══════════════════════════════════════════
   120Q Full Customer Report Styles
   Matches 120q-sample-report-customer.html
   ═══════════════════════════════════════════ */

/* Report H2 headings */
.report-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 14px;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 16px;
    color: var(--text-color);
}
.report-h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 2px;
}

/* Score Cards */
.report-score-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.rpt-score-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rpt-score-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.rpt-card-n::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.rpt-card-c::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.rpt-score-domain {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.rpt-card-n .rpt-score-domain { color: #f43f5e; }
.rpt-card-c .rpt-score-domain { color: #3b82f6; }
.rpt-score-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 4px 0;
}
.rpt-card-n .rpt-score-value { color: #f43f5e; }
.rpt-card-c .rpt-score-value { color: #3b82f6; }
.rpt-score-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.rpt-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
}
.lv-low { background: rgba(59,130,246,0.12); color: #60a5fa; }
.lv-med { background: rgba(16,185,129,0.12); color: #10b981; }
.lv-high { background: rgba(244,63,94,0.12); color: #f43f5e; }

/* Callouts */
.report-callout {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.report-callout-info {
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.15);
}
.report-callout-warn {
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
}

/* Report Divider */
.report-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 32px 0;
}

/* Facet Bar Charts */
.rpt-domain-label {
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 6px;
}
.rpt-label-n { color: #f43f5e; }
.rpt-label-c { color: #3b82f6; }
.rpt-domain-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}
.rpt-bars { margin: 12px 0 24px; }
.rpt-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}
.rpt-bar-name {
    width: 140px;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: right;
    color: var(--text-muted);
    flex-shrink: 0;
}
.rpt-bar-track {
    flex: 1;
    height: 26px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 6px;
    overflow: hidden;
}
.rpt-bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    min-width: 32px;
    transition: width 0.6s ease;
}
.rpt-bar-fill.bar-n { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.rpt-bar-fill.bar-c { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.rpt-bar-lv {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

/* Analysis Sections */
.report-section {
    margin: 16px 0;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--border-color);
}
.section-overview {
    border-left-color: #3b82f6;
    background: rgba(59,130,246,0.05);
}
.section-n-deep {
    border-left-color: #f43f5e;
    background: rgba(244,63,94,0.05);
}
.section-c-deep {
    border-left-color: #3b82f6;
    background: rgba(59,130,246,0.05);
}
.section-cross {
    border-left-color: #8b5cf6;
    background: rgba(139,92,246,0.05);
}
.section-reco {
    border-left-color: #10b981;
    background: rgba(16,185,129,0.05);
}
.section-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}
.tag-blue { color: #3b82f6; }
.tag-rose { color: #f43f5e; }
.tag-purple { color: #8b5cf6; }
.tag-emerald { color: #10b981; }

.report-section p {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}
.report-section p:last-child { margin-bottom: 0; }
.report-section strong { color: var(--text-color); font-weight: 600; }
.report-section em { color: var(--text-muted); }

/* Todo Checklist */
.rpt-todo-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 16px 0;
}
.rpt-todo-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
}
.rpt-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.rpt-todo-item:last-child { border-bottom: none; }
.rpt-chk {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all 0.2s;
    background: transparent;
}
.rpt-chk:hover { border-color: #10b981; }
.rpt-chk.done {
    background: #10b981;
    border-color: #10b981;
}
.rpt-chk.done::after {
    content: '\2713';
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}
.rpt-todo-t {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-color);
    margin-bottom: 3px;
}
.rpt-todo-d {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 2px;
}
.rpt-freq {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 6px;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

/* FAQ */
.rpt-faq-q {
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}
.rpt-faq-q::after {
    content: '\25B8';
    transition: transform 0.2s;
    flex-shrink: 0;
}
.rpt-faq-q.open::after { transform: rotate(90deg); }
.rpt-faq-a {
    display: none;
    padding: 8px 0 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.rpt-faq-a.open { display: block; }

/* Mobile responsive */
@media (max-width: 700px) {
    .report-score-cards { grid-template-columns: 1fr; }
    .rpt-bar-name { width: 90px; font-size: 0.75rem; }
    .report-section { padding: 14px 16px; }
    .rpt-score-value { font-size: 1.8rem; }
}/* ================= NARRATIVE REPORT SCREEN ================= */
.rpt-container { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.rpt-brand { font-size: 0.85rem; font-weight: 700; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }
.rpt-title { font-size: 2rem; font-weight: 800; margin: 8px 0 4px; color: var(--text-main); line-height: 1.2; letter-spacing: -0.03em; }
.rpt-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.rpt-h2 { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 700; margin: 40px 0 14px; position: relative; padding-left: 16px; color: var(--text-main); }
.rpt-h2 svg { flex-shrink: 0; }
.rpt-h2::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--primary); border-radius: 2px; }
.rpt-h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; color: var(--text-main); }
.rpt-p { margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }
.rpt-divider { border: none; height: 1px; background: var(--border-color); margin: 30px 0; }

.rpt-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.rpt-score-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.rpt-score-card.n { border-top: 3px solid #f43f5e; }
.rpt-score-card.c { border-top: 3px solid #3b82f6; }
.rpt-score-domain { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.rpt-score-card.n .rpt-score-domain { color: #f43f5e; }
.rpt-score-card.c .rpt-score-domain { color: #3b82f6; }
.rpt-score-value { font-size: 2.2rem; font-weight: 800; margin: 4px 0; color: var(--text-main); }
.rpt-score-label { font-size: 0.82rem; color: var(--text-muted); }

.rpt-level { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; margin-top: 8px; }
.rpt-lv-low { background: #dbeafe; color: #1d4ed8; }
.rpt-lv-med { background: #dcfce3; color: #15803d; }
.rpt-lv-high { background: #fee2e2; color: #b91c1c; }

.rpt-bars { margin: 16px 0; }
.rpt-bar-row { display: flex; align-items: center; margin-bottom: 8px; gap: 10px; }
.rpt-bar-name { width: 140px; font-size: 0.85rem; font-weight: 600; text-align: right; color: var(--text-main); flex-shrink: 0; }
.rpt-bar-track { flex: 1; height: 26px; background: var(--bg-color); border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); }
.rpt-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 10px; font-size: 0.72rem; font-weight: 600; color: white; min-width: 32px; }
.rpt-bar-n { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.rpt-bar-c { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.rpt-bar-lv { width: 65px; text-align: center; flex-shrink: 0; }

.rpt-section { margin: 16px 0; padding: 22px 24px; border-radius: 12px; border-left: 4px solid var(--border-color); background: var(--bg-card); box-shadow: var(--shadow-sm); border-top: 1px solid var(--border-color); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.rpt-section.overview { border-left-color: var(--primary); }
.rpt-section.n-deep { border-left-color: #f43f5e; }
.rpt-section.c-deep { border-left-color: #3b82f6; }
.rpt-section.cross { border-left-color: #8b5cf6; }
.rpt-section.reco { border-left-color: #10b981; }
.rpt-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 10px; }
.rpt-tag svg { flex-shrink: 0; }

.rpt-callout { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-size: 0.9rem; color: var(--text-main); }
.rpt-callout-info { background: #eff6ff; border: 1px solid #bfdbfe; }
.rpt-callout-warn { background: #fef3c7; border: 1px solid #fde68a; }

.rpt-todo { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 22px 24px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.rpt-todo-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.rpt-todo-item:last-child { border-bottom: none; }
.rpt-chk { flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--border-color); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 2px; transition: all 0.2s; background: var(--bg-color); }
.rpt-chk:hover { border-color: #10b981; }
.rpt-chk.done { background: #10b981; border-color: #10b981; }
.rpt-chk.done::after { content: '?'; color: white; font-size: 0.75rem; font-weight: 800; }
.rpt-todo-t { font-weight: 700; font-size: 0.95rem; color: var(--text-main); margin-bottom: 4px; }
.rpt-todo-d { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.rpt-freq { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; margin-left: 8px; background: #e0e7ff; color: #4338ca; vertical-align: top; }

.rpt-faq-q { padding: 14px 0; cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.rpt-faq-q::after { content: '?'; transition: transform 0.2s; font-size: 1.2rem; color: var(--text-muted); }
.rpt-faq-q.open::after { transform: rotate(90deg); }
.rpt-faq-a { display: none; padding: 10px 0 16px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.rpt-faq-a.open { display: block; }

.founder-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 22px;
    align-items: center;
    margin-top: 26px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.founder-copy p {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.55;
}

.founder-copy .founder-name {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.founder-copy .founder-message {
    margin-top: 12px;
    color: var(--text-muted);
}

.founder-qr {
    display: flex;
    justify-content: center;
}

.founder-qr-link {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.founder-qr-image {
    width: 144px;
    height: 144px;
    display: block;
}

.founder-qr-placeholder {
    width: 144px;
    height: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    padding: 14px;
}

@media (max-width: 700px) {
    .founder-contact {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-qr-placeholder {
        width: 156px;
        height: 156px;
    }

    .founder-qr-image {
        width: 156px;
        height: 156px;
    }
}
