/* =====================================================
   SLEEP QUALITY SCORE QUIZ - THE NURSE'S DIARY
   Anti-Gravity Nighttime Theme & Responsive Layout
   ===================================================== */

:root {
            --sq-bg-dark: #070a14;
            --sq-bg-card: rgba(15, 23, 42, 0.78);
            --sq-bg-card-subtle: rgba(30, 41, 59, 0.6);
            --sq-border-glass: rgba(255, 255, 255, 0.08);
            --sq-border-glow: rgba(129, 140, 248, 0.35);
            --sq-text-main: #f8fafc;
            --sq-text-muted: #94a3b8;
            --sq-accent-indigo: #6366f1;
            --sq-accent-purple: #a855f7;
            --sq-accent-cyan: #38bdf8;
            --sq-accent-gold: #fbbf24;
            --sq-emerald: #10b981;
            --sq-rose: #f43f5e;
            --sq-shadow-gravity: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 35px rgba(99, 102, 241, 0.15);
            --sq-radius-xl: 24px;
            --sq-radius-lg: 16px;
            --sq-radius-md: 12px;
            --sq-font: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--sq-bg-dark);
            color: var(--sq-text-main);
            font-family: var(--sq-font);
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }

        /* ── Anti-Gravity Ambient Cosmic Canvas ── */
        .sq-space-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
            background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0c1124 55%, #050711 100%);
        }

        .sq-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.35;
            animation: sqFloatOrb 18s ease-in-out infinite alternate;
        }

        .sq-orb-1 {
            width: 420px;
            height: 420px;
            background: radial-gradient(circle, #6366f1, #3b82f6);
            top: -100px;
            left: -80px;
            animation-duration: 16s;
        }

        .sq-orb-2 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, #8b5cf6, #ec4899);
            bottom: -150px;
            right: -100px;
            animation-duration: 22s;
            animation-delay: -5s;
        }

        .sq-orb-3 {
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, #06b6d4, #3b82f6);
            top: 40%;
            left: 60%;
            animation-duration: 20s;
            animation-delay: -10s;
            opacity: 0.2;
        }

        @keyframes sqFloatOrb {
            0% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(45px, -35px) scale(1.08); }
            100% { transform: translate(-30px, 40px) scale(0.95); }
        }

        /* Starlight particle layer */
        .sq-stars-grid {
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1.5px 1.5px at 100px 150px, #e2e8f0, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 230px 80px, #cbd5e1, rgba(0,0,0,0)),
                radial-gradient(1.5px 1.5px at 320px 290px, #93c5fd, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 450px 180px, #e0e7ff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 600px 360px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1.5px 1.5px at 750px 120px, #c084fc, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 900px 270px, #fbcfe8, rgba(0,0,0,0));
            background-repeat: repeat;
            background-size: 800px 450px;
            opacity: 0.45;
        }

        /* ── Tool Container & Header ── */
        .sq-app-wrapper {
            max-width: 840px;
            margin: 0 auto;
            padding: 135px 16px 60px; /* Ample 135px clearance below floating fixed navbar */
            min-height: calc(100vh - 80px);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        /* Top Bar / Header */
        .sq-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 22px;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Breadcrumb Navigation */
        .sq-breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            flex-wrap: wrap;
            background: rgba(15, 23, 42, 0.7);
            padding: 8px 18px;
            border-radius: 999px;
            border: 1px solid var(--sq-border-glass);
            backdrop-filter: blur(14px);
        }

        .sq-breadcrumb a {
            color: #94a3b8 !important;
            text-decoration: none;
            transition: color 0.2s ease;
            font-weight: 600;
        }

        .sq-breadcrumb a:hover {
            color: #38bdf8 !important;
            text-decoration: underline;
        }

        .sq-breadcrumb .sep {
            color: #64748b !important;
            font-size: 0.82rem;
            user-select: none;
        }

        .sq-breadcrumb .current {
            color: #f1f5f9 !important;
            font-weight: 700;
        }

        .sq-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #cbd5e1 !important;
            text-decoration: none;
            font-size: 0.88rem;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--sq-border-glass);
            backdrop-filter: blur(12px);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .sq-back-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff !important;
            transform: translateX(-3px);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* In-tool Language Switcher Pills */
        .sq-lang-switcher {
            display: inline-flex;
            align-items: center;
            background: rgba(15, 23, 42, 0.7);
            padding: 4px;
            border-radius: 999px;
            border: 1px solid var(--sq-border-glass);
            backdrop-filter: blur(12px);
            gap: 2px;
        }

        .sq-lang-pill {
            background: transparent;
            border: none;
            color: #94a3b8;
            padding: 6px 14px;
            font-size: 0.8rem;
            font-weight: 700;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.22s ease;
            font-family: inherit;
        }

        .sq-lang-pill:hover {
            color: #ffffff;
        }

        .sq-lang-pill.active {
            background: linear-gradient(135deg, var(--sq-accent-indigo), var(--sq-accent-purple));
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
        }

        /* ── Anti-Gravity Glassmorphism Main Card ── */
        .sq-main-card {
            background: var(--sq-bg-card);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-xl);
            box-shadow: var(--sq-shadow-gravity);
            padding: 36px 32px;
            position: relative;
            overflow: hidden;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .sq-main-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.7), rgba(168, 85, 247, 0.7), transparent);
        }

        /* ── Floating Badge & Title ── */
        .sq-badge-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }

        .sq-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(99, 102, 241, 0.12);
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: #c7d2fe;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 6px 16px;
            border-radius: 999px;
            letter-spacing: 0.3px;
            animation: sqPulseGlow 3.5s ease-in-out infinite alternate;
        }

        @keyframes sqPulseGlow {
            0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }
            100% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); }
        }

        .sq-moon-icon {
            display: inline-block;
            font-size: 1.1rem;
            animation: sqFloatMoon 4s ease-in-out infinite;
        }

        @keyframes sqFloatMoon {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-4px) rotate(-6deg); }
        }

        .sq-page-title {
            text-align: center;
            font-size: clamp(1.6rem, 4vw, 2.3rem);
            font-weight: 800;
            color: #ffffff;
            line-height: 1.25;
            margin-bottom: 10px;
            letter-spacing: -0.5px;
        }

        .sq-page-title span {
            background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 60%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .sq-page-subtitle {
            text-align: center;
            color: var(--sq-text-muted);
            font-size: clamp(0.92rem, 2vw, 1.05rem);
            max-width: 620px;
            margin: 0 auto 28px;
        }

        /* ── Start View Highlights ── */
        .sq-features-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin: 24px 0 32px;
        }

        .sq-feature-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-lg);
            padding: 18px 14px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .sq-feature-card:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(99, 102, 241, 0.3);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
        }

        .sq-feat-icon {
            font-size: 1.6rem;
            margin-bottom: 8px;
            display: inline-block;
        }

        .sq-feat-title {
            font-size: 0.88rem;
            font-weight: 700;
            color: #e2e8f0;
            margin-bottom: 4px;
        }

        .sq-feat-desc {
            font-size: 0.75rem;
            color: #94a3b8;
            line-height: 1.4;
        }

        /* ── Button Primary Anti-Gravity ── */
        .sq-btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 16px 28px;
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
            color: #ffffff;
            font-size: 1.05rem;
            font-weight: 700;
            border: none;
            border-radius: var(--sq-radius-lg);
            cursor: pointer;
            box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
            transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            font-family: inherit;
        }

        .sq-btn-primary:hover {
            transform: translateY(-3px) scale(1.015);
            box-shadow: 0 18px 40px -5px rgba(124, 58, 237, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35);
        }

        .sq-btn-primary:active {
            transform: translateY(0) scale(0.99);
        }

        /* ── Progress Bar & Question Step Header ── */
        .sq-progress-container {
            margin-bottom: 28px;
        }

        .sq-progress-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .sq-step-tag {
            color: #c7d2fe;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sq-pct-tag {
            color: var(--sq-accent-cyan);
            font-feature-settings: "tnum";
            font-variant-numeric: tabular-nums;
        }

        .sq-progress-track {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            overflow: hidden;
            position: relative;
        }

        .sq-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #4f46e5, #8b5cf6, #06b6d4);
            border-radius: 999px;
            transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 0 14px rgba(99, 102, 241, 0.7);
        }

        /* ── Question Card Container & Fluid Transitions ── */
        .sq-question-card {
            transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: opacity, transform;
        }

        .sq-question-card.sq-slide-out-left {
            opacity: 0;
            transform: translateX(-40px);
        }

        /* ── Anti-Gravity Question & Heading Typography (Overrides style.css dark !important) ── */
        .sq-app-wrapper h1,
        .sq-app-wrapper h2,
        .sq-app-wrapper h3,
        .sq-main-card h1,
        .sq-main-card h2,
        .sq-main-card h3,
        .sq-q-title,
        h2.sq-q-title,
        #sqQuestionTitle {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

        .sq-q-title {
            font-size: clamp(1.2rem, 3.2vw, 1.55rem);
            font-weight: 700;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            line-height: 1.45;
            margin-bottom: 24px;
        }

        .sq-page-title {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

        .sq-icon-stars {
            color: #a855f7 !important;
        }

        .sq-icon-award {
            color: #fbbf24 !important;
        }

        .sq-page-title span {
            background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 60%, #38bdf8 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
        }

        .sq-tier-excellent .sq-tier-title,
        .sq-tier-excellent h2 { color: #34d399 !important; -webkit-text-fill-color: #34d399 !important; }
        .sq-tier-good .sq-tier-title,
        .sq-tier-good h2 { color: #38bdf8 !important; -webkit-text-fill-color: #38bdf8 !important; }
        .sq-tier-fair .sq-tier-title,
        .sq-tier-fair h2 { color: #fbbf24 !important; -webkit-text-fill-color: #fbbf24 !important; }
        .sq-tier-poor .sq-tier-title,
        .sq-tier-poor h2 { color: #fb7185 !important; -webkit-text-fill-color: #fb7185 !important; }

        .sq-advice-header.tips,
        .sq-advice-header.tips span { color: #6ee7b7 !important; -webkit-text-fill-color: #6ee7b7 !important; }
        .sq-advice-header.risks,
        .sq-advice-header.risks span { color: #fda4af !important; -webkit-text-fill-color: #fda4af !important; }

        /* ── Option Cards ── */
        .sq-options-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 28px;
        }

        .sq-option-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-lg);
            padding: 16px 20px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            user-select: none;
            position: relative;
            min-height: 56px;
        }

        .sq-option-item:hover {
            transform: translateY(-2px) scale(1.008);
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(129, 140, 248, 0.35);
            box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35), 0 0 16px rgba(99, 102, 241, 0.15);
        }

        .sq-option-item.selected {
            background: rgba(79, 70, 229, 0.16);
            border-color: var(--sq-accent-indigo);
            box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.3), inset 0 0 0 1px rgba(99, 102, 241, 0.5);
            transform: translateY(-2px);
        }

        .sq-option-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
        }

        /* Custom Glowing Radio Circle */
        .sq-radio-circle {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .sq-option-item:hover .sq-radio-circle {
            border-color: #a5b4fc;
        }

        .sq-option-item.selected .sq-radio-circle {
            border-color: #38bdf8;
            background: #38bdf8;
            box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
        }

        .sq-radio-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #0f172a;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.2s ease;
        }

        .sq-option-item.selected .sq-radio-dot {
            opacity: 1;
            transform: scale(1);
        }

        .sq-option-text {
            font-size: 0.98rem;
            color: #e2e8f0;
            font-weight: 500;
            line-height: 1.4;
        }

        .sq-option-item.selected .sq-option-text {
            color: #ffffff;
            font-weight: 600;
        }

        /* Subtle Points Pill Badge (Hidden per user preference) */
        .sq-points-badge {
            display: none !important;
        }

        /* ── Navigation Actions (Back / Next) ── */
        .sq-nav-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--sq-border-glass);
        }

        .sq-btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 22px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-md);
            color: #cbd5e1;
            font-weight: 600;
            font-size: 0.92rem;
            cursor: pointer;
            transition: all 0.22s ease;
            font-family: inherit;
        }

        .sq-btn-secondary:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .sq-btn-secondary:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }

        .sq-btn-next {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 26px;
            background: linear-gradient(135deg, var(--sq-accent-indigo), var(--sq-accent-purple));
            color: #ffffff;
            font-weight: 700;
            font-size: 0.95rem;
            border: none;
            border-radius: var(--sq-radius-md);
            cursor: pointer;
            box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.4);
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
        }

        .sq-btn-next:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -3px rgba(124, 58, 237, 0.55);
        }

        .sq-btn-next:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* ── Results View Styling ── */
        .sq-results-view {
            animation: sqFadeScale 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes sqFadeScale {
            0% { opacity: 0; transform: scale(0.97) translateY(10px); }
            100% { opacity: 1; transform: scale(1) translateY(0); }
        }

        .sq-score-gauge-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 10px 0 28px;
            position: relative;
        }

        .sq-gauge-circle-wrap {
            position: relative;
            width: 170px;
            height: 170px;
        }

        .sq-gauge-svg {
            transform: rotate(-90deg);
            width: 100%;
            height: 100%;
        }

        .sq-gauge-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 10;
        }

        .sq-gauge-progress {
            fill: none;
            stroke-width: 10;
            stroke-linecap: round;
            stroke-dasharray: 440;
            stroke-dashoffset: 440;
            transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .sq-gauge-content {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .sq-gauge-number {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -1px;
            color: #ffffff;
        }

        .sq-gauge-denom {
            font-size: 0.85rem;
            color: #94a3b8;
            font-weight: 600;
            margin-top: 2px;
        }

        /* Tier Card Result */
        .sq-tier-card {
            border-radius: var(--sq-radius-lg);
            padding: 24px;
            margin-bottom: 28px;
            text-align: center;
            border: 1px solid transparent;
            backdrop-filter: blur(16px);
            position: relative;
            overflow: hidden;
        }

        .sq-tier-title {
            font-size: clamp(1.25rem, 3.5vw, 1.6rem);
            font-weight: 800;
            margin-bottom: 10px;
            letter-spacing: -0.3px;
        }

        .sq-tier-desc {
            font-size: 0.96rem;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Tier Variations */
        .sq-tier-excellent {
            background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
            border-color: rgba(16, 185, 129, 0.35);
            box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.2);
        }
        .sq-tier-excellent .sq-tier-title { color: #34d399; }
        .sq-tier-excellent .sq-tier-desc { color: #d1fae5; }

        .sq-tier-good {
            background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.05));
            border-color: rgba(56, 189, 248, 0.35);
            box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.2);
        }
        .sq-tier-good .sq-tier-title { color: #38bdf8; }
        .sq-tier-good .sq-tier-desc { color: #e0f2fe; }

        .sq-tier-fair {
            background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
            border-color: rgba(245, 158, 11, 0.35);
            box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.2);
        }
        .sq-tier-fair .sq-tier-title { color: #fbbf24; }
        .sq-tier-fair .sq-tier-desc { color: #fef3c7; }

        .sq-tier-poor {
            background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(225, 29, 72, 0.05));
            border-color: rgba(244, 63, 94, 0.4);
            box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.25);
        }
        .sq-tier-poor .sq-tier-title { color: #fb7185; }
        .sq-tier-poor .sq-tier-desc { color: #ffe4e6; }

        /* ── Conditional Advice Box (< 75 points) ── */
        .sq-advice-container {
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            animation: sqFadeScale 0.4s ease;
        }

        .sq-advice-card {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-lg);
            padding: 22px 24px;
            backdrop-filter: blur(12px);
            transition: all 0.25s ease;
        }

        .sq-advice-card:hover {
            border-color: rgba(148, 163, 184, 0.25);
            transform: translateY(-2px);
        }

        .sq-advice-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
            font-size: 1.05rem;
            font-weight: 700;
        }

        .sq-advice-header.tips {
            color: #6ee7b7;
        }

        .sq-advice-header.risks {
            color: #fda4af;
        }

        .sq-advice-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sq-advice-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.92rem;
            color: #cbd5e1;
            line-height: 1.5;
        }

        .sq-advice-bullet {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.72rem;
            margin-top: 2px;
        }

        .sq-advice-bullet.tip {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
        }

        .sq-advice-bullet.risk {
            background: rgba(244, 63, 94, 0.2);
            color: #fb7185;
        }

        /* ── Social Sharing & Action Buttons ── */
        .sq-actions-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            margin-top: 10px;
            padding-top: 24px;
            border-top: 1px solid var(--sq-border-glass);
        }

        .sq-share-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: #94a3b8;
        }

        .sq-share-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            width: 100%;
        }

        .sq-btn-share {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border-radius: var(--sq-radius-md);
            font-size: 0.9rem;
            font-weight: 600;
            color: #ffffff;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
        }

        .sq-btn-whatsapp {
            background: #25d366;
            box-shadow: 0 6px 18px -3px rgba(37, 211, 102, 0.4);
        }

        .sq-btn-whatsapp:hover {
            background: #22bf5b;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 10px 24px -3px rgba(37, 211, 102, 0.55);
        }

        .sq-btn-facebook {
            background: #1877f2;
            box-shadow: 0 6px 18px -3px rgba(24, 119, 242, 0.4);
        }

        .sq-btn-facebook:hover {
            background: #166fe5;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 10px 24px -3px rgba(24, 119, 242, 0.55);
        }

        .sq-btn-retake {
            background: rgba(255, 255, 255, 0.08);
            color: #e2e8f0;
            border: 1px solid var(--sq-border-glass);
        }

        .sq-btn-retake:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            transform: translateY(-2px);
        }

        /* ── Medical Disclaimer Card ── */
        .sq-disclaimer-card {
            margin-top: 30px;
            padding: 16px 20px;
            border-radius: var(--sq-radius-md);
            background: rgba(15, 23, 42, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: #94a3b8;
            font-size: 0.8rem;
            line-height: 1.5;
        }

        .sq-disclaimer-icon {
            color: var(--sq-accent-gold);
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* ── Mobile Responsive Optimizations ── */
        @media (max-width: 640px) {
            .sq-app-wrapper {
                padding: 110px 14px 45px;
            }

            .sq-main-card {
                padding: 24px 18px;
                border-radius: 20px;
            }

            .sq-features-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .sq-feature-card {
                padding: 14px 12px;
                display: flex;
                align-items: center;
                gap: 12px;
                text-align: left;
            }

            .sq-feat-icon {
                margin-bottom: 0;
                font-size: 1.4rem;
            }

            .sq-topbar {
                margin-bottom: 16px;
            }

            .sq-share-row {
                flex-direction: column;
            }

            .sq-btn-share {
                width: 100%;
            }

            .sq-nav-row {
                flex-direction: row;
            }

            .sq-btn-secondary, .sq-btn-next {
                flex: 1;
                justify-content: center;
            }
        }

        /* ── SEO Guide & FAQ Section ── */
        .sq-seo-article {
            background: var(--sq-bg-card);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-xl);
            box-shadow: var(--sq-shadow-gravity);
            padding: 36px 32px;
            margin-top: 32px;
            color: var(--sq-text-muted);
            position: relative;
            overflow: hidden;
        }

        .sq-seo-article::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(99, 102, 241, 0.6), transparent);
        }

        .sq-seo-header {
            border-bottom: 1px solid var(--sq-border-glass);
            padding-bottom: 20px;
            margin-bottom: 24px;
        }

        .sq-seo-title {
            font-size: clamp(1.25rem, 3.5vw, 1.65rem);
            font-weight: 800;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            line-height: 1.35;
            margin-bottom: 8px;
        }

        .sq-seo-subtitle {
            color: var(--sq-text-muted);
            font-size: 0.92rem;
            line-height: 1.55;
        }

        .sq-seo-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 18px;
            margin-bottom: 32px;
        }

        @media (min-width: 768px) {
            .sq-seo-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .sq-seo-block {
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-lg);
            padding: 22px 18px;
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .sq-seo-block:hover {
            transform: translateY(-3px);
            border-color: rgba(99, 102, 241, 0.4);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
        }

        .sq-seo-block-icon {
            font-size: 1.5rem;
            color: var(--sq-accent-cyan);
            margin-bottom: 12px;
        }

        .sq-seo-block h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            margin-bottom: 10px;
            line-height: 1.45;
        }

        .sq-seo-block p {
            font-size: 0.85rem;
            color: #94a3b8;
            line-height: 1.6;
        }

        /* ── Accordion FAQ ── */
        .sq-faq-section {
            border-top: 1px solid var(--sq-border-glass);
            padding-top: 28px;
        }

        .sq-faq-heading {
            font-size: 1.25rem;
            font-weight: 800;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
            margin-bottom: 18px;
        }

        .sq-faq-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--sq-border-glass);
            border-radius: var(--sq-radius-md);
            margin-bottom: 12px;
            overflow: hidden;
            transition: all 0.25s ease;
        }

        .sq-faq-item[open] {
            background: rgba(99, 102, 241, 0.08);
            border-color: rgba(99, 102, 241, 0.35);
        }

        .sq-faq-summary {
            list-style: none;
            cursor: pointer;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            user-select: none;
            font-weight: 600;
            font-size: 0.95rem;
            color: #f1f5f9;
        }

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

        .sq-faq-chevron {
            color: var(--sq-accent-cyan);
            font-size: 0.9rem;
            transition: transform 0.25s ease;
            flex-shrink: 0;
        }

        .sq-faq-item[open] .sq-faq-chevron {
            transform: rotate(180deg);
            color: #a855f7;
        }

        .sq-faq-answer {
            padding: 0 18px 18px;
            font-size: 0.88rem;
            color: #94a3b8;
            line-height: 1.65;
        }
