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

/* --- CUSTOM PROPERTIES --- */
:root {
    --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Common values */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Traffic Lights */
    --color-green: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    
    /* Dark Theme (Default) */
    --bg-primary: #090514;
    --bg-secondary: #120a21;
    --bg-tertiary: #1b1030;
    --text-primary: #f8f7fa;
    --text-secondary: #a397be;
    --text-muted: #6b5d88;
    
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-orange: #f97316;
    --accent-orange-glow: rgba(249, 115, 22, 0.3);
    --accent-yellow: #facc15;
    --accent-yellow-glow: rgba(250, 204, 21, 0.3);
    
    --border-color: rgba(139, 92, 246, 0.15);
    --glass-bg: rgba(18, 10, 33, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #f7f6fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0ecf6;
    --text-primary: #1a0f30;
    --text-secondary: #62557a;
    --text-muted: #958ba8;
    
    --accent-purple: #6d28d9;
    --accent-purple-glow: rgba(109, 40, 217, 0.15);
    --accent-orange: #ea580c;
    --accent-orange-glow: rgba(234, 88, 12, 0.15);
    --accent-yellow: #d97706;
    --accent-yellow-glow: rgba(217, 119, 6, 0.15);
    
    --border-color: rgba(109, 40, 217, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(109, 40, 217, 0.08);
    --shadow-main: 0 20px 40px -15px rgba(109, 40, 217, 0.08);
    --shadow-glow: 0 0 30px rgba(109, 40, 217, 0.05);
}

/* --- RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* --- GRADIENT BACKGROUND ORBS --- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

body.light-theme .orb {
    mix-blend-mode: multiply;
    opacity: 0.1;
    filter: blur(100px);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 80%);
    bottom: -10%;
    left: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 80%);
    top: 40%;
    left: 45%;
    animation-delay: 10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 40px) scale(0.95);
    }
}

/* --- CONTAINER & LAYOUT --- */
.app-container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 100px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 8px 4px;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-main);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sun-icon {
    display: none;
}

body.light-theme .moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: block;
}

/* --- PROGRESS BAR --- */
.progress-container {
    width: 100%;
    background: var(--bg-tertiary);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
    display: none; /* Hidden on intro step */
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-orange), var(--accent-yellow));
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* --- WIZARD CARD SYSTEM --- */
.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-main), var(--shadow-glow);
    display: none;
    flex-direction: column;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-card.active {
    display: flex;
}

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

/* --- INTRO CARD --- */
.intro-hero {
    text-align: center;
    margin-bottom: 24px;
}

.intro-badge {
    background: linear-gradient(135deg, var(--accent-purple-glow), var(--accent-orange-glow));
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.intro-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.intro-hero p {
    color: var(--text-secondary);
    font-size: 16px;
}

.highlight-text {
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 32px 0;
}

.rule-item {
    display: flex;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.rule-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.rule-number {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-orange) 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rule-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.traffic-light-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.legend-badge {
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: white;
    text-transform: uppercase;
}

.legend-green { background-color: var(--color-green); }
.legend-yellow { background-color: var(--color-yellow); }
.legend-red { background-color: var(--color-red); }

/* --- QUESTION STYLES --- */
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.category-letter {
    font-size: 28px;
    font-weight: 900;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-orange) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px var(--accent-purple-glow);
}

.category-title-wrap {
    display: flex;
    flex-direction: column;
}

.category-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-orange);
}

.category-title {
    font-size: 18px;
    font-weight: 700;
}

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-style: italic;
    border-left: 3px solid var(--accent-purple);
    padding-left: 12px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.question-block {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.question-block:focus-within, .question-block.answered {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

.question-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
}

.question-num {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Option scales style */
.options-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.option-btn {
    flex: 1;
    aspect-ratio: 1/1;
    max-height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.option-btn:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Selection classes */
.option-btn.selected {
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

/* Color scaling for 1-5 selection */
.option-btn.selected.val-1 { background-color: #ef4444; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }
.option-btn.selected.val-2 { background-color: #f97316; box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); }
.option-btn.selected.val-3 { background-color: #eab308; box-shadow: 0 4px 10px rgba(234, 179, 8, 0.4); }
.option-btn.selected.val-4 { background-color: #84cc16; box-shadow: 0 4px 10px rgba(132, 204, 22, 0.4); }
.option-btn.selected.val-5 { background-color: #10b981; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4); }

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 0 4px;
}

/* --- NAVIGATION BUTTONS --- */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

.btn {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-purple-glow);
    flex-grow: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px var(--accent-purple-glow);
    filter: brightness(1.05);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding-left: 20px;
    padding-right: 20px;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-purple);
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* --- RESULTS STEP --- */
.results-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.radar-chart-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 32px auto;
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
}

canvas#radarChart {
    width: 100% !important;
    height: auto !important;
}

/* --- RESULTS TABLE --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 32px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.results-table th {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.badge-letter {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    background: var(--bg-tertiary);
    color: var(--accent-orange);
    border: 1px solid var(--border-color);
}

.score-badge {
    font-weight: 700;
    font-size: 15px;
}

.traffic-light-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.traffic-light-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

.traffic-light-badge.green { background-color: var(--color-green); }
.traffic-light-badge.yellow { background-color: var(--color-yellow); }
.traffic-light-badge.red { background-color: var(--color-red); }

/* --- PRIORITY DIAGNOSTICS BLOCKS --- */
.diagnostics-feedback {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feedback-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 4px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feedback-card.status-red { border-left-color: var(--color-red); }
.feedback-card.status-yellow { border-left-color: var(--color-yellow); }
.feedback-card.status-green { border-left-color: var(--color-green); }

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-title {
    font-size: 15px;
    font-weight: 700;
}

.feedback-score {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.feedback-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.45;
}

.feedback-priority {
    font-size: 13px;
    background: var(--bg-tertiary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
}

.feedback-priority strong {
    color: var(--accent-orange);
    font-weight: 700;
}

body.light-theme .feedback-priority strong {
    color: var(--accent-purple);
}

/* --- ACTION PLAN STYLES --- */
.action-plan-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.select-dropdown {
    font-family: var(--font-sans);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.select-dropdown:focus {
    border-color: var(--accent-purple);
}

.text-area-input {
    font-family: var(--font-sans);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.text-area-input:focus {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

/* Commitment Card preview */
.commitment-card-preview {
    background: linear-gradient(135deg, #2a0845 0%, #6441a5 100%);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(100, 65, 165, 0.3);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

body.light-theme .commitment-card-preview {
    background: linear-gradient(135deg, #1b0f30 0%, #4a2194 100%);
}

.commitment-card-preview::before {
    content: '"';
    position: absolute;
    font-size: 140px;
    line-height: 1;
    font-family: serif;
    color: rgba(255, 255, 255, 0.08);
    right: 16px;
    bottom: -40px;
    pointer-events: none;
}

.card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-leak-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-leak-text strong {
    color: var(--accent-yellow);
    font-weight: 700;
}

.card-action-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-action-text {
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    border-left: 2px solid var(--accent-yellow);
    padding-left: 10px;
}

/* Action button icons */
.btn-whatsapp {
    background-color: #25d366;
    color: white;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.25);
    margin-top: 16px;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 600px) {
    .app-container {
        padding: 16px 12px 90px;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .step-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }
    
    .intro-hero h1 {
        font-size: 28px;
    }
    
    .rule-item {
        padding: 12px;
        gap: 12px;
    }
    
    .options-scale {
        gap: 4px;
    }
    
    .option-btn {
        max-height: 40px;
        font-size: 13px;
        border-radius: var(--radius-sm);
    }
    
    .navigation-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 12px 16px;
        margin-top: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }
    
    body.light-theme .navigation-bar {
        box-shadow: 0 -10px 30px rgba(109, 40, 217, 0.05);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .traffic-light-legend {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .radar-chart-container {
        max-width: 320px;
        padding: 8px;
    }
}

/* --- PRINT STYLES (PDF EXPORT) --- */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
        min-height: auto;
    }

    /* Hide UI elements that are not part of the final PDF report */
    header, 
    .progress-container, 
    .navigation-bar, 
    footer,
    #themeToggle,
    .orb-container,
    .form-group,
    .action-buttons-row,
    .action-plan-desc {
        display: none !important;
    }

    .app-container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Print only the active step-7 card (results) */
    .step-card {
        display: none !important;
    }

    .step-card#step-7 {
        display: flex !important;
        background: var(--bg-secondary) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .radar-chart-container {
        max-width: 320px !important;
        margin: 0 auto 20px auto !important;
        border: 1px solid var(--border-color) !important;
        background: var(--bg-tertiary) !important;
        page-break-inside: avoid;
    }

    .table-container {
        overflow: visible !important;
        page-break-inside: avoid;
    }

    .results-table th, .results-table td {
        border-color: var(--border-color) !important;
    }

    .diagnostics-feedback {
        page-break-inside: auto;
    }

    .feedback-card {
        page-break-inside: avoid;
        margin-bottom: 12px;
        background: var(--bg-tertiary) !important;
    }

    .action-plan-wrapper {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 20px !important;
        page-break-inside: avoid;
    }

    .commitment-card-preview {
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        page-break-inside: avoid;
    }

    body.light-theme .commitment-card-preview {
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}
