/* Skip link (acessibilidade) */
        .skip-link { position: absolute; top: -40px; left: 0; background: #0A4D68; color: #fff; padding: 8px 16px; z-index: 9999; font-size: 14px; border-radius: 0 0 4px 0; transition: top .2s; text-decoration: none; }
        .skip-link:focus { top: 0; }
        /* --- DESIGN SYSTEM (Inherited) --- */
        :root {
            --primary: #0A4D68;        
            --primary-dark: #06384d;
            --accent: #047857;         
            --secondary: #D97706;      
            --bg-body: #FAFAF9;        
            --bg-card: #FFFFFF;
            --text-main: #1C1917;      
            --text-muted: #57534E;     
            --border-subtle: #E7E5E4;  
            --container-width: 1200px;
            --header-height: 90px;
            
            /* Quiz Colors */
            --correct: #10b981;
            --wrong: #ef4444;
            --option-bg: #f5f5f4;
            --option-hover: #e7e5e4;
        }

        [data-theme="dark"] {
            --bg-body: #0C0A09;
            --bg-card: #1C1917;
            --text-main: #F5F5F4;
            --text-muted: #A8A29E;
            --primary: #38BDF8;
            --accent: #34D399;
            --border-subtle: #292524;
            --option-bg: #292524;
            --option-hover: #44403C;
        }

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

        body {
            font-family: 'Source Sans 3', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.7;
            transition: background-color 0.5s ease;
        }

        h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }
        .container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }

        /* --- ANIMATIONS --- */
        @keyframes rotate-scale {
            0% { transform: rotate(0) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }
        
        .animate-theme-switch i, 
        .animate-theme-switch svg { 
            animation: rotate-scale 0.5s ease-in-out;
        }

        /* --- HEADER --- */
        .top-bar {
            background-color: #0A4D68;
            color: #fff;
            padding: 8px 0;
            font-size: 0.85rem;
            position: relative;
            z-index: 1002;
        }
        
        .top-bar .container {
            display: flex;
            justify-content: flex-end;
            gap: 20px;
            padding-right: 20px;
        }

        .lang-selector {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .lang-selector select {
            background: transparent;
            color: #fff;
            border: none;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
        }
        .lang-selector select option { color: #000; }

        .main-header {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-subtle);
            width: 100%;
            z-index: 1000;
            height: var(--header-height);
            position: sticky;
            top: 0;
        }

        .main-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            padding-left: 40px;
            padding-right: 40px;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 700; 
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.03em;
        }

        .nav-menu { display: flex; gap: 32px; }
        .nav-link {
            font-family: 'Source Sans 3', sans-serif;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: var(--secondary);
            transition: width 0.3s;
        }
        .nav-link:hover::after { width: 100%; }
        .nav-link:hover { color: var(--primary); }

        .btn-outline-white {
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 8px 24px;
            border-radius: 2px;
            text-transform: uppercase;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        .btn-outline-white:hover {
            background-color: var(--primary);
            color: #fff;
        }

        /* --- QUIZ HERO --- */
        .quiz-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #fff; padding: 60px 0 80px; text-align: center;
        }
        .quiz-hero h1 { color: #fff; font-size: 3rem; margin-bottom: 10px; }
        .quiz-hero p { opacity: 0.9; font-size: 1.2rem; max-width: 600px; margin: 0 auto; font-weight: 300; }

        /* --- QUIZ CONTAINER --- */
        .quiz-wrapper {
            max-width: 800px; margin: -50px auto 80px; padding: 0 20px; position: relative; z-index: 10;
        }

        .quiz-card {
            background: var(--bg-card); border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden; border: 1px solid var(--border-subtle);
        }

        /* Progress Bar */
        .progress-container { background: var(--border-subtle); height: 6px; width: 100%; }
        .progress-bar { background: var(--accent); height: 100%; width: 0%; transition: width 0.5s ease; }

        /* Content Area */
        .quiz-content { 
            padding: 40px; 
            display: flow-root; 
        }
        
        .question-meta {
            display: flex; justify-content: space-between; color: var(--text-muted); 
            font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
        }

        .question-text {
            font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 30px;
            font-family: 'Playfair Display', serif; line-height: 1.3;
        }

        .options-grid { display: grid; gap: 15px; }

        .option-btn {
            background: var(--option-bg); border: 2px solid transparent; padding: 20px;
            border-radius: 4px; cursor: pointer; text-align: left; font-size: 1rem;
            color: var(--text-main); transition: 0.2s; font-family: 'Source Sans 3', sans-serif;
            display: flex; align-items: center; gap: 15px;
        }
        .option-btn:hover:not(:disabled) { background: var(--option-hover); border-color: var(--primary); }
        .option-btn:disabled { cursor: default; opacity: 0.7; }

        /* Answer States */
        .option-btn.correct { background: rgba(16, 185, 129, 0.1); border-color: var(--correct); color: var(--correct); font-weight: 600; }
        .option-btn.wrong { background: rgba(239, 68, 68, 0.1); border-color: var(--wrong); color: var(--wrong); opacity: 0.6; }

        /* Feedback Box */
        .feedback-box {
            margin-top: 30px; padding: 20px; border-radius: 4px; background: rgba(10, 77, 104, 0.05);
            border-left: 4px solid var(--primary); display: none; animation: fadeIn 0.5s;
        }
        .feedback-title { font-weight: 700; color: var(--primary); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* Next Button */
        .btn-next {
            background-color: var(--primary); 
            color: #fff; 
            border: none; 
            padding: 16px 45px; 
            border-radius: 50px; 
            font-weight: 700; 
            text-transform: uppercase; 
            letter-spacing: 0.1em;
            margin-top: 20px; 
            margin-bottom: 10px;
            cursor: pointer; 
            display: none; 
            float: right; 
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            box-shadow: 0 4px 15px rgba(10, 77, 104, 0.25); 
            font-family: 'Source Sans 3', sans-serif;
            align-items: center;
            gap: 12px;
        }
        .btn-next:hover { 
            background-color: var(--secondary); 
            transform: translateY(-3px) scale(1.02); 
            box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3); 
        }
        .btn-next:active {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(217, 119, 6, 0.2);
        }

        /* Results Screen */
        .results-screen { text-align: center; padding: 60px 40px; display: none; }
        .score-circle {
            width: 150px; height: 150px; border-radius: 50%; background: var(--primary); color: #fff;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            margin: 0 auto 30px; border: 8px solid var(--accent);
        }
        .score-number { font-size: 3.5rem; font-weight: 700; line-height: 1; font-family: 'Playfair Display', serif; }
        .score-total { font-size: 1rem; opacity: 0.8; }
        
        .score-msg { font-size: 1.8rem; margin-bottom: 15px; color: var(--text-main); }
        .score-desc { max-width: 500px; margin: 0 auto 40px; color: var(--text-muted); }

        /* --- FOOTER --- */
        footer {
            background-color: #1C1917;
            color: #A8A29E;
            padding: 80px 0 0;
            font-size: 0.95rem;
            font-family: 'Source Sans 3', sans-serif;
            border-top: 4px solid var(--accent);
        }
        
        .footer-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
            gap: 50px;
            padding-bottom: 60px;
        }

        .footer-grid h4 {
            color: #fff;
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 25px;
            letter-spacing: 0.05em;
            position: relative;
        }
        
        .footer-grid h4::after {
            content: '';
            display: block;
            width: 30px;
            height: 2px;
            background-color: var(--accent);
            margin-top: 10px;
        }
        
        .footer-grid ul li { margin-bottom: 12px; }
        .footer-grid ul li a { 
            color: #A8A29E; 
            transition: 0.2s;
            display: inline-block;
        }
        .footer-grid ul li a:hover { 
            color: #fff; 
            transform: translateX(5px); 
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding: 30px 0;
            text-align: center;
            font-size: 0.85rem;
            background-color: #151312; 
        }

        @media (max-width: 768px) {
            .nav-menu { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
            .quiz-content { padding: 25px; }
            .question-text { font-size: 1.2rem; }
        }
