:root {
    /* 2026 Design System - PHQ3 Blue/Azure Edition */
    --primary-gradient: linear-gradient(135deg, #0984e3, #00cec9);
    --secondary-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --accent-color: #fab1a0;
    
    --bg-dark: #0f172a; /* Deep Slate Blue */
    --bg-light: #f8fafc;
    
    --card-glass: rgba(255, 255, 255, 0.7);
    --card-glass-dark: rgba(15, 23, 42, 0.8);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-white: #ffffff;
    
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow-glow: 0 0 20px rgba(9, 132, 227, 0.3);
    
    --header-height: 100px;
    --border-radius: 24px;

    /* Scoring Colors - 2026 Vibrant */
    --score-minimal: #00b894;
    --score-mild: #f1c40f;
    --score-moderate: #e67e22;
    --score-mod-severe: #d63031;
    --score-severe: #c0392b;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[lang="he"] {
    direction: rtl;
    font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 2026 Background Atmosphere */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #74b9ff;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #81ecec;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #a29bfe;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

/* Glass Header */
header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 80px;
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.version-tag {
    position: absolute;
    bottom: 5px;
    right: 20px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

[lang="he"] .version-tag {
    right: auto;
    left: 20px;
}

.banner-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-3px);
}

[lang="he"] .back-btn:hover {
    transform: translateX(3px);
}

.back-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lang-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 14px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.lang-btn.active {
    background: white;
    color: #0984e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.score-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: baseline;
    box-shadow: var(--shadow-glow);
}

.score-max {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 2px;
}

/* Main Layout */
main {
    margin-top: 130px;
    padding: 0 20px 100px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page {
    display: none;
    flex-direction: column;
}

.page.active {
    display: flex;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2026 Glass Cards */
.card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

h1 {
    font-family: 'Outfit', sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 16px;
    line-height: 1.1;
}

.info-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.instructions-box {
    background: rgba(9, 132, 227, 0.05);
    padding: 24px;
    border-radius: 20px;
    border-left: 6px solid #0984e3;
    border-right: 1px solid rgba(9, 132, 227, 0.1);
}

[lang="he"] .instructions-box {
    border-left-width: 1px;
    border-right: 6px solid #0984e3;
}

.instructions-box h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #0984e3;
    font-weight: 800;
    text-transform: uppercase;
}

.instructions-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Question Design */
.question-number {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #0984e3;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.25;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.option-item.selected {
    background: white;
    border-color: #0984e3;
    box-shadow: 0 10px 25px rgba(9, 132, 227, 0.15);
}

.option-item input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    transition: all 0.2s;
}

[lang="he"] .option-item input[type="radio"] {
    margin-right: 0;
    margin-left: 16px;
}

.option-item input[type="radio"]:checked {
    border-color: #0984e3;
}

.option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #0984e3;
    border-radius: 50%;
}

.option-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Action Buttons */
.btn-container {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding: 20px 0;
}

.primary-btn, .secondary-btn {
    padding: 20px 32px;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.primary-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(9, 132, 227, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.secondary-btn:hover {
    background: white;
    transform: translateY(-4px);
}

.pulse-animation {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(9, 132, 227, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 20px rgba(9, 132, 227, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(9, 132, 227, 0); }
}

/* Summary - Result Rings & Bars */
.summary-score-big {
    font-size: 6rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    margin: 20px 0;
    line-height: 0.8;
}

.summary-score-big span:last-child {
    font-size: 1.8rem;
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
}

.score-progress-container {
    margin: 60px 0 40px;
    position: relative;
}

.score-progress-bar {
    height: 16px;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.score-range {
    height: 100%;
    transition: all 1s ease;
}

.score-range.minimal { background: #00b894; opacity: 0.6; }
.score-range.mild { background: #f1c40f; opacity: 0.6; }
.score-range.severe { background: #d63031; opacity: 0.6; }

.score-arrow {
    position: absolute;
    top: -30px;
    font-size: 2rem;
    color: var(--text-primary);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.implication-box {
    margin-top: 32px;
    padding: 28px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.implication-box strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #0984e3;
    font-weight: 900;
}

.implication-box p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.summary-breakdown {
    margin-top: 40px;
    border-top: 2px dashed rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

#responses-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.resp-q-text {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.resp-score {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* 2026 Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f172a;
        --card-glass: rgba(30, 41, 59, 0.8);
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --border-glass: rgba(255, 255, 255, 0.1);
    }
    
    .background-blobs {
        background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    }
    
    .option-item {
        background: rgba(15, 23, 42, 0.5);
    }
    
    .option-item:hover, .option-item.selected {
        background: #1e293b;
    }
    
    .implication-box {
        background: rgba(15, 23, 42, 0.6);
    }
}

/* Mobile Polish */
@media (max-width: 480px) {
    header { top: 10px; left: 10px; right: 10px; height: 70px; }
    main { margin-top: 100px; padding-bottom: 60px; }
    h1 { font-size: 1.8rem; }
    .card { padding: 24px; }
    .btn-container { flex-direction: column; }
    .primary-btn { order: 1; }
    .secondary-btn { order: 2; }
}