:root {
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Manrope", sans-serif;
    --radius-lg: 1.75rem;
    --radius-md: 1.1rem;
    --radius-sm: 0.85rem;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 20px 45px rgba(6, 15, 28, 0.28);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition-base: 280ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-bs-theme="dark"] {
    --app-bg: #07111f;
    --app-bg-elevated: rgba(11, 25, 42, 0.82);
    --app-surface: rgba(9, 20, 35, 0.78);
    --app-surface-strong: #10233b;
    --app-surface-soft: rgba(83, 124, 178, 0.12);
    --app-text: #edf5ff;
    --app-text-muted: #93aaca;
    --app-accent: #55d4ff;
    --app-accent-strong: #13b8e7;
    --app-accent-secondary: #2ce5c3;
    --app-warm: #ffb65c;
    --app-danger: #ff6b6b;
    --app-success: #39d98a;
}

html[data-bs-theme="light"] {
    --app-bg: #eef5fb;
    --app-bg-elevated: rgba(255, 255, 255, 0.86);
    --app-surface: rgba(255, 255, 255, 0.84);
    --app-surface-strong: #ffffff;
    --app-surface-soft: rgba(30, 93, 145, 0.08);
    --app-text: #14233a;
    --app-text-muted: #61718a;
    --app-accent: #008bcf;
    --app-accent-strong: #0070b3;
    --app-accent-secondary: #00b692;
    --app-warm: #da8a23;
    --app-danger: #d64545;
    --app-success: #149e63;
    --border-subtle: rgba(9, 35, 70, 0.08);
    --shadow-soft: 0 24px 55px rgba(28, 56, 94, 0.14);
    --shadow-card: 0 16px 36px rgba(33, 56, 87, 0.1);
}

html {
    font-size: 15.5px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--app-text);
    background:
        radial-gradient(circle at top left, rgba(32, 226, 198, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(85, 212, 255, 0.15), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
        var(--app-bg);
    transition: background-color var(--transition-slow), color var(--transition-base);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    content: "";
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 78%);
    pointer-events: none;
    opacity: 0.22;
}

.site-main {
    position: relative;
    z-index: 1;
}

.ambient-orb {
    position: fixed;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
    animation: drift 16s ease-in-out infinite alternate;
}

.ambient-orb-one {
    top: 5rem;
    left: -7rem;
    background: radial-gradient(circle, rgba(85, 212, 255, 0.35), transparent 68%);
}

.ambient-orb-two {
    right: -8rem;
    bottom: 15%;
    background: radial-gradient(circle, rgba(44, 229, 195, 0.22), transparent 70%);
    animation-duration: 20s;
}

.app-loader,
.page-transition-layer {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    background: rgba(4, 10, 18, 0.94);
    backdrop-filter: blur(14px);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.app-loader.is-hidden,
.page-transition-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.app-loader__spinner {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--app-accent);
    animation: spin 0.9s linear infinite;
}

.app-loader__label {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-transition-layer {
    opacity: 0;
    visibility: hidden;
}

.page-transition-layer.is-active {
    opacity: 1;
    visibility: visible;
}

.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.glass-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title,
.display-title,
.showcase-title,
.setup-card__title,
.sidebar-card__title,
.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--app-text);
}

.display-title {
    line-height: 0.98;
    max-width: 14ch;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.04;
}

.section-copy,
.hero-text,
.setup-card__copy,
.feature-card p,
.footer-card,
.review-card,
.progress-subtitle {
    color: var(--app-text-muted);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding-inline: 1.2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-bg: var(--app-accent-strong);
    --bs-btn-hover-border-color: var(--app-accent-strong);
    --bs-btn-active-bg: var(--app-accent-strong);
    --bs-btn-active-border-color: var(--app-accent-strong);
    --bs-btn-color: #04111d;
}

.btn-outline-light {
    --bs-btn-color: var(--app-text);
    --bs-btn-border-color: rgba(255, 255, 255, 0.16);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.24);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.22);
}

.btn-glow {
    box-shadow: 0 16px 34px rgba(85, 212, 255, 0.24);
}

.btn-spinner {
    display: none;
}

.is-loading .btn-spinner {
    display: inline-flex;
}

.is-loading .btn-label {
    opacity: 0.8;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
    background: rgba(6, 13, 23, 0.55);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--app-text);
}

.rtl-language .navbar-nav {
    margin-left: 0 !important;
}

.rtl-language .navbar-expand-lg .navbar-collapse {
    justify-content: flex-end;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--app-text);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.95rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 28px rgba(5, 14, 26, 0.24);
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.brand-copy small {
    color: var(--app-text-muted);
}

.nav-link {
    color: var(--app-text-muted);
    font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
    color: var(--app-text);
}

.nav-utility-btn {
    padding-inline: 0.8rem;
}

.theme-toggle {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-text);
    transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(-6deg);
    background: rgba(255, 255, 255, 0.12);
}

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

html[data-bs-theme="light"] .theme-icon-dark {
    display: none;
}

html[data-bs-theme="light"] .theme-icon-light {
    display: inline-block;
}

.messages-stack {
    padding-top: 1rem;
}

.app-alert {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 20, 35, 0.92);
    color: var(--app-text);
}

.app-alert__icon {
    color: var(--app-accent);
}

.hero-section,
.feature-section,
.coverage-section,
.cta-section,
.quiz-page-wrap,
.results-page-wrap {
    position: relative;
}

.hero-copy,
.hero-showcase,
.setup-card,
.trust-strip,
.feature-card,
.coverage-card,
.cta-card,
.quiz-surface,
.sidebar-card,
.results-hero,
.review-card {
    padding: 1.5rem;
}

.hero-text {
    max-width: 56ch;
    font-size: 1.06rem;
    margin: 1.35rem 0 1.65rem;
}

.hero-actions,
.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.65rem;
}

.metric-card,
.results-stat-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: var(--app-surface-soft);
    border: 1px solid var(--border-subtle);
}

.metric-card strong,
.results-stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.metric-card span,
.results-stat-card span {
    color: var(--app-text-muted);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.showcase-title {
    font-size: 1.55rem;
    margin: 0.4rem 0 0;
}

.showcase-badge,
.quiz-chip,
.footer-chip,
.test-pill,
.choice-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--app-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.preview-window {
    position: relative;
    padding: 1.25rem;
    border-radius: 1.4rem;
    background: rgba(5, 14, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-toolbar {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.preview-toolbar span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
}

.preview-progress {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 1rem;
}

.preview-progress__fill {
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, var(--app-accent), var(--app-accent-secondary));
    animation: pulse-bar 3s ease-in-out infinite;
}

.preview-question {
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.preview-choice,
.choice-review-row,
.answer-summary-card,
.question-rail__item,
.choice-card {
    border: 1px solid var(--border-subtle);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.04);
}

.preview-choice {
    padding: 0.95rem 1rem;
    color: var(--app-text-muted);
}

.preview-choice + .preview-choice {
    margin-top: 0.75rem;
}

.preview-choice.is-active {
    color: var(--app-text);
    border-color: rgba(85, 212, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(85, 212, 255, 0.14);
}

.floating-pill {
    position: absolute;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(8, 19, 33, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
}

.floating-pill-a {
    top: 1.4rem;
    right: 1.4rem;
}

.floating-pill-b {
    bottom: 1.4rem;
    left: 1.4rem;
}

.setup-card__header {
    margin-bottom: 1.35rem;
}

.setup-select,
.setup-form .form-select {
    border-radius: 1rem;
}

.form-select,
.form-control {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--app-text);
    min-height: 3.5rem;
}

html[data-bs-theme="dark"] .form-select {
    color-scheme: dark;
    background-color: rgba(8, 20, 33, 0.96);
}

html[data-bs-theme="dark"] .form-select option,
html[data-bs-theme="dark"] .form-select optgroup {
    background-color: #0b1a2b;
    color: var(--app-text);
}

html[data-bs-theme="light"] .form-select {
    color-scheme: light;
}

.form-select:focus,
.form-control:focus {
    border-color: rgba(85, 212, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(85, 212, 255, 0.14);
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.form-range:focus {
    box-shadow: none;
}

.form-range::-webkit-slider-runnable-track {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(148, 167, 193, 0.2);
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: -0.3rem;
    border: 0;
    border-radius: 50%;
    background: var(--app-accent);
    box-shadow: 0 0 0 0.28rem rgba(85, 212, 255, 0.12);
}

.form-range::-moz-range-track {
    height: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 167, 193, 0.2);
}

.form-range::-moz-range-thumb {
    width: 1.15rem;
    height: 1.15rem;
    border: 0;
    border-radius: 50%;
    background: var(--app-accent);
    box-shadow: 0 0 0 0.28rem rgba(85, 212, 255, 0.12);
}

.form-label {
    font-weight: 700;
    color: var(--app-text);
}

.field-hint,
.range-meta,
.toggle-copy span {
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

.toggle-shell,
.range-shell {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
}

.toggle-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 0.9rem 1rem;
}

.toggle-copy strong {
    display: block;
    font-size: 0.98rem;
}

.timer-switch {
    width: 3.2rem;
    height: 1.7rem;
}

.range-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.8rem;
    padding: 0.9rem 1rem;
}

.range-shell.is-muted {
    opacity: 0.58;
}

.range-meta {
    display: flex;
    justify-content: space-between;
}

.range-value {
    color: var(--app-accent);
    font-weight: 800;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.mode-option {
    position: relative;
}

.mode-option__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.mode-option__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    text-align: center;
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.mode-option__card small {
    color: var(--app-text-muted);
}

.mode-option__input:checked + .mode-option__card {
    background: linear-gradient(180deg, rgba(85, 212, 255, 0.14), rgba(255, 255, 255, 0.03));
    border-color: rgba(85, 212, 255, 0.34);
    transform: translateY(-2px);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    justify-content: center;
    margin-top: 1.4rem;
}

.feature-card,
.coverage-card,
.cta-card,
.sidebar-card,
.results-hero,
.review-card {
    height: 100%;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(85, 212, 255, 0.14), rgba(44, 229, 195, 0.2));
    color: var(--app-accent);
    margin-bottom: 1rem;
}

.test-pill-grid,
.footer-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.coverage-stat {
    color: var(--app-text-muted);
    margin-top: 0.4rem;
}

.cta-card {
    text-align: center;
}

.site-footer {
    position: relative;
    padding-bottom: 2rem;
}

.footer-card {
    padding: 1.7rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.25rem;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-note a {
    color: var(--app-text);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover,
.footer-note a:hover {
    color: var(--app-accent);
}

.footer-note {
    max-width: 52rem;
    color: var(--app-text-muted);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--app-text-muted);
}

.cookie-banner {
    position: sticky;
    bottom: 1rem;
    z-index: 1040;
    margin: 0 0 1rem;
}

.cookie-banner__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.cookie-banner__copy {
    max-width: 44rem;
}

.cookie-banner__copy strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--app-text);
}

.cookie-banner__copy p,
.legal-card p,
.legal-list {
    color: var(--app-text-muted);
    margin-bottom: 0;
}

.cookie-banner__copy a,
.legal-card a {
    color: var(--app-accent);
    text-decoration: none;
}

.cookie-banner__copy a:hover,
.legal-card a:hover {
    color: var(--app-accent-strong);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legal-page-wrap {
    position: relative;
}

.legal-card {
    padding: 1.7rem;
}

.legal-section + .legal-section {
    margin-top: 1.5rem;
}

.legal-section h2 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.legal-list {
    padding-left: 1.2rem;
}

.legal-list li + li {
    margin-top: 0.65rem;
}

.ad-shell {
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px dashed rgba(85, 212, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.quiz-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-surface__meta,
.quiz-chip-group,
.desktop-action-bar,
.desktop-action-bar__right,
.review-card__header,
.choice-review-row,
.choice-review-row__meta,
.answer-summary-grid {
    display: flex;
    gap: 0.85rem;
}

.quiz-surface__meta,
.desktop-action-bar,
.review-card__header {
    justify-content: space-between;
    align-items: center;
}

.quiz-progress-panel {
    padding: 1.15rem;
    margin: 1rem 0 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.progress-modern {
    height: 0.8rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.progress-modern .progress-bar {
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-accent), var(--app-accent-secondary));
    transition: width var(--transition-slow);
}

.progress-label,
.question-counter,
.timer-pill {
    font-weight: 800;
}

.timer-pill,
.sidebar-count {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 212, 255, 0.22);
    background: rgba(85, 212, 255, 0.08);
}

.quiz-inline-notice {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 107, 107, 0.24);
    background: rgba(255, 107, 107, 0.08);
}

.question-stage {
    min-height: 28rem;
}

.question-frame {
    animation: question-in var(--transition-slow);
}

.question-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--app-text-muted);
    font-weight: 700;
}

.question-title {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.14;
    margin-bottom: 1.35rem;
}

.question-image,
.review-image {
    width: 100%;
    border-radius: 1.2rem;
    margin-bottom: 1.2rem;
    max-width: 200px;
    border: 1px solid var(--border-subtle);
}

.choice-grid {
    display: grid;
    gap: 0.9rem;
}

.choice-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    width: 100%;
    padding: 1rem;
    text-align: left;
    color: var(--app-text);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 212, 255, 0.3);
}

.choice-card__index {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.choice-card.is-selected {
    border-color: rgba(85, 212, 255, 0.4);
    background: rgba(85, 212, 255, 0.09);
}

.choice-card.is-correct,
.choice-card.is-revealed-correct {
    border-color: rgba(57, 217, 138, 0.34);
    background: rgba(57, 217, 138, 0.09);
}

.choice-card.is-incorrect {
    border-color: rgba(255, 107, 107, 0.34);
    background: rgba(255, 107, 107, 0.09);
}

.feedback-panel {
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
}

.feedback-panel--success {
    background: rgba(57, 217, 138, 0.08);
    border-color: rgba(57, 217, 138, 0.26);
}

.feedback-panel--error {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.24);
}

.sidebar-stat-list {
    display: grid;
    gap: 0.85rem;
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}

.sidebar-stat span {
    color: var(--app-text-muted);
}

.question-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.question-rail__item {
    width: 100%;
    min-height: 3.2rem;
    font-weight: 800;
    color: var(--app-text);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.question-rail__item.is-active {
    background: rgba(85, 212, 255, 0.14);
    border-color: rgba(85, 212, 255, 0.3);
}

.question-rail__item.is-answered {
    border-color: rgba(44, 229, 195, 0.28);
}

.desktop-action-bar {
    margin-top: 1.35rem;
}

.mobile-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    margin-top: 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.94) 28%);
    backdrop-filter: blur(16px);
}

.mobile-action-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.results-stat-grid,
.review-grid {
    display: grid;
    gap: 1rem;
}

.results-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: min(18rem, 100%);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--app-accent) calc(var(--score-value) * 1%),
        rgba(255, 255, 255, 0.08) 0
    );
    box-shadow: var(--shadow-soft);
}

.score-ring::after {
    position: absolute;
    inset: 1.1rem;
    content: "";
    border-radius: 50%;
    background: var(--app-bg);
}

.score-ring__inner {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
}

.score-ring__inner strong {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
}

.review-grid {
    margin-top: 2rem;
}

.review-card__header h3 {
    margin: 0.4rem 0 0;
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.review-step,
.review-status {
    color: var(--app-text-muted);
    font-weight: 700;
}

.answer-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.answer-summary-card {
    padding: 1rem;
}

.answer-summary-card span {
    display: block;
    color: var(--app-text-muted);
    margin-bottom: 0.4rem;
}

.answer-summary-card--accent {
    border-color: rgba(57, 217, 138, 0.28);
    background: rgba(57, 217, 138, 0.08);
}

.choice-review-list {
    display: grid;
    gap: 0.75rem;
}

.choice-review-row {
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1rem;
}

.choice-review-row.is-selected {
    border-color: rgba(85, 212, 255, 0.26);
}

.choice-review-row.is-correct {
    border-color: rgba(57, 217, 138, 0.3);
}

.choice-tag--success {
    background: rgba(57, 217, 138, 0.12);
    border-color: rgba(57, 217, 138, 0.2);
}

.question-skeleton {
    display: grid;
    gap: 1rem;
}

.skeleton-line,
.skeleton-choice {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    background-size: 200% 100%;
    animation: shimmer 1.25s linear infinite;
}

.skeleton-line {
    height: 1rem;
}

.skeleton-line-lg {
    height: 1.4rem;
    width: 76%;
}

.skeleton-line-sm {
    width: 48%;
}

.skeleton-choice {
    height: 4.4rem;
    border-radius: 1.15rem;
}

.empty-state-card {
    padding: 1.8rem;
    text-align: center;
    border-radius: 1.4rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.empty-state-card__icon {
    font-size: 2rem;
    color: var(--app-warm);
    margin-bottom: 0.8rem;
}

html[data-bs-theme="dark"] {
    --app-bg: #04101a;
    --app-bg-elevated: rgba(8, 20, 33, 0.92);
    --app-surface: rgba(8, 18, 30, 0.86);
    --app-surface-strong: #0e1f31;
    --app-surface-soft: rgba(70, 112, 162, 0.16);
    --app-text-muted: #9ab0ca;
    --app-accent: #44d0ff;
    --app-accent-strong: #10b7e7;
    --app-accent-secondary: #f2b95c;
}

html[data-bs-theme="light"] {
    --app-bg: #edf3f8;
    --app-surface: rgba(255, 255, 255, 0.9);
    --app-surface-soft: rgba(23, 86, 135, 0.08);
    --app-text-muted: #667892;
    --app-accent: #0689c9;
    --app-accent-strong: #046d9f;
    --app-accent-secondary: #d9972f;
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(68, 208, 255, 0.14), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(242, 185, 92, 0.1), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
        var(--app-bg);
}

body::before {
    opacity: 0.12;
    background-size: 84px 84px;
}

.glass-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--app-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 26px 62px rgba(3, 10, 19, 0.28);
}

.hero-section .container,
.quiz-page-wrap .container,
.results-page-wrap .container {
    max-width: 1320px;
}

.hero-section {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
}

.hero-copy {
    max-width: 43rem;
    padding-top: 0.75rem;
}

.hero-showcase {
    margin-top: 1.75rem;
    padding: 1.75rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.showcase-sidepanel {
    display: grid;
    gap: 0.85rem;
}

.showcase-mini-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-subtle);
}

.showcase-mini-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-mini-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.showcase-mini-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--app-text-muted);
    line-height: 1.55;
}

.showcase-mini-card--accent {
    background: linear-gradient(180deg, rgba(68, 208, 255, 0.12), rgba(242, 185, 92, 0.07));
}

.showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.showcase-footer span,
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 700;
}

.preview-window {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(5, 14, 24, 0.9), rgba(8, 18, 31, 0.78));
}

.setup-card {
    position: sticky;
    top: 6.75rem;
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(68, 208, 255, 0.06), rgba(255, 255, 255, 0.02) 28%),
        var(--app-surface);
}

.setup-form .row {
    --bs-gutter-x: 0.95rem;
    --bs-gutter-y: 0.95rem;
}

.trust-strip {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 1.1rem;
}

.section-intro {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.feature-section,
.coverage-section,
.cta-section {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
}

.feature-card,
.coverage-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover,
.coverage-card:hover {
    transform: translateY(-6px);
    border-color: rgba(68, 208, 255, 0.2);
    box-shadow: 0 22px 46px rgba(3, 10, 19, 0.24);
}

.quiz-page-header {
    margin-bottom: 2rem;
    align-items: flex-end;
}

.quiz-surface {
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(68, 208, 255, 0.05), transparent 16%),
        var(--app-surface);
}

.quiz-sidebar {
    position: sticky;
    top: 6.75rem;
    display: grid;
    gap: 1rem;
}

.sidebar-card {
    padding: 1.35rem;
}

.sidebar-card__copy {
    color: var(--app-text-muted);
    line-height: 1.65;
}

.quiz-progress-panel {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem 1.3rem;
}

.quiz-progress-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.quiz-autofinish-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--app-text-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.quiz-inline-notice {
    border-color: rgba(68, 208, 255, 0.22);
    background: rgba(68, 208, 255, 0.08);
    color: var(--app-text);
}

.question-stage {
    min-height: 26rem;
}

.choice-grid {
    gap: 1rem;
}

.choice-card {
    padding: 1.15rem 1.2rem;
    border-radius: 1.3rem;
}

.choice-card__text {
    line-height: 1.58;
    font-weight: 600;
}

.choice-card.is-selected {
    box-shadow: inset 0 0 0 1px rgba(68, 208, 255, 0.12);
}

.desktop-action-bar {
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 1.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.question-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.question-rail__item {
    min-height: 3.4rem;
}

.mobile-action-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent, rgba(4, 16, 26, 0.96) 24%);
}

.results-hero {
    padding: 2rem;
}

.results-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.review-card {
    padding: 1.35rem;
}

.review-card__header {
    gap: 1rem;
}

.review-card__header h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.choice-review-row {
    gap: 1rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

code {
    color: var(--app-accent);
}

.form-switch .form-check-input {
    width: 3em !important;
}

html {
    font-size: 15px;
}

body {
    font-size: 0.96rem;
}

.section-label,
.showcase-mini-card span {
    font-size: 0.72rem;
}

.display-title {
    font-size: clamp(2.45rem, 6.2vw, 4rem);
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.showcase-title {
    font-size: 1.4rem;
}

.hero-text,
.section-copy,
.legal-card p,
.legal-list,
.sidebar-card__copy,
.choice-card__text,
.footer-note,
.cookie-banner__copy p {
    font-size: 1.1rem;
}

.brand-copy strong {
    font-size: 1.05rem;
}

.brand-copy small,
.field-hint,
.range-meta,
.toggle-copy span,
.showcase-footer span,
.trust-strip span,
.quiz-autofinish-note,
.footer-meta {
    font-size: 1.1rem;
}

.nav-link,
.footer-links a,
.footer-note a,
.btn,
.form-label,
.form-select,
.form-control,
.mode-option__card,
.question-kicker,
.progress-label,
.question-counter,
.timer-pill,
.sidebar-count,
.sidebar-stat,
.question-rail__item {
    font-size: 1.1rem;
}

.metric-card strong,
.results-stat-card strong,
.showcase-mini-card strong {
    font-size: 1.32rem;
}

.metric-card span,
.results-stat-card span,
.sidebar-stat span {
    font-size: 0.92rem;
}

.showcase-badge,
.quiz-chip,
.footer-chip,
.test-pill,
.choice-tag {
    font-size: 0.82rem;
}

.preview-question {
    font-size: 1.02rem;
}

.toggle-copy strong,
.legal-section h2,
.review-card__header h3 {
    font-size: 1.08rem;
}

.question-title {
    font-size: clamp(1.4rem, 2.7vw, 2.05rem);
}

.score-ring__inner strong {
    font-size: 2.7rem;
}

html[data-bs-theme="light"] {
    --app-bg: #f3f6fa;
    --app-bg-elevated: rgba(255, 255, 255, 0.9);
    --app-surface: rgba(255, 255, 255, 0.92);
    --app-surface-strong: #ffffff;
    --app-surface-soft: rgba(17, 87, 147, 0.08);
    --app-text: #18324d;
    --app-text-muted: #5d7088;
    --app-accent: #0d7fbe;
    --app-accent-strong: #095f96;
    --app-accent-secondary: #c88729;
    --app-warm: #b8741d;
    --app-danger: #c94e4e;
    --app-success: #177a50;
    --border-subtle: rgba(24, 50, 77, 0.11);
    --shadow-soft: 0 22px 48px rgba(37, 62, 92, 0.12);
    --shadow-card: 0 18px 40px rgba(37, 62, 92, 0.1);
}

html[data-bs-theme="light"] body {
    background:
        radial-gradient(circle at 12% 12%, rgba(80, 180, 227, 0.15), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(226, 173, 93, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(230, 238, 247, 0.35) 58%, rgba(221, 232, 243, 0.45)),
        var(--app-bg);
}

html[data-bs-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(24, 50, 77, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 50, 77, 0.035) 1px, transparent 1px);
    opacity: 0.55;
}

html[data-bs-theme="light"] .glass-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 253, 0.85)),
        var(--app-surface);
    border: 1px solid rgba(24, 50, 77, 0.08);
    box-shadow: 0 20px 44px rgba(37, 62, 92, 0.09);
}

html[data-bs-theme="light"] .glass-card::after {
    background: linear-gradient(135deg, rgba(13, 127, 190, 0.05), transparent 52%);
}

html[data-bs-theme="light"] .app-navbar {
    background: rgba(246, 249, 252, 0.82);
    border-bottom: 1px solid rgba(24, 50, 77, 0.08);
}

html[data-bs-theme="light"] .brand-mark,
html[data-bs-theme="light"] .theme-toggle,
html[data-bs-theme="light"] .nav-utility-btn {
    background: rgba(13, 127, 190, 0.06);
    border-color: rgba(24, 50, 77, 0.1);
    box-shadow: 0 10px 20px rgba(37, 62, 92, 0.08);
}

html[data-bs-theme="light"] .theme-toggle:hover {
    background: rgba(13, 127, 190, 0.12);
}

html[data-bs-theme="light"] .btn-primary {
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-bg: var(--app-accent-strong);
    --bs-btn-hover-border-color: var(--app-accent-strong);
    --bs-btn-active-bg: var(--app-accent-strong);
    --bs-btn-active-border-color: var(--app-accent-strong);
    --bs-btn-color: #f7fbff;
}

html[data-bs-theme="light"] .btn-outline-light {
    --bs-btn-color: var(--app-text);
    --bs-btn-border-color: rgba(24, 50, 77, 0.14);
    --bs-btn-hover-bg: rgba(13, 127, 190, 0.08);
    --bs-btn-hover-border-color: rgba(13, 127, 190, 0.26);
    --bs-btn-active-bg: rgba(13, 127, 190, 0.12);
    --bs-btn-active-border-color: rgba(13, 127, 190, 0.3);
}

html[data-bs-theme="light"] .btn-glow {
    box-shadow: 0 14px 28px rgba(13, 127, 190, 0.18);
}

html[data-bs-theme="light"] .app-alert {
    border-color: rgba(13, 127, 190, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 28px rgba(37, 62, 92, 0.08);
}

html[data-bs-theme="light"] .hero-showcase,
html[data-bs-theme="light"] .setup-card,
html[data-bs-theme="light"] .feature-card,
html[data-bs-theme="light"] .coverage-card,
html[data-bs-theme="light"] .cta-card,
html[data-bs-theme="light"] .quiz-surface,
html[data-bs-theme="light"] .sidebar-card,
html[data-bs-theme="light"] .results-hero,
html[data-bs-theme="light"] .review-card,
html[data-bs-theme="light"] .footer-card,
html[data-bs-theme="light"] .legal-card {
    border-color: rgba(24, 50, 77, 0.08);
}

html[data-bs-theme="light"] .metric-card,
html[data-bs-theme="light"] .results-stat-card,
html[data-bs-theme="light"] .showcase-mini-card,
html[data-bs-theme="light"] .toggle-shell,
html[data-bs-theme="light"] .range-shell,
html[data-bs-theme="light"] .mode-option__card,
html[data-bs-theme="light"] .sidebar-stat,
html[data-bs-theme="light"] .preview-choice,
html[data-bs-theme="light"] .choice-card,
html[data-bs-theme="light"] .choice-review-row,
html[data-bs-theme="light"] .answer-summary-card,
html[data-bs-theme="light"] .question-rail__item,
html[data-bs-theme="light"] .question-kicker,
html[data-bs-theme="light"] .showcase-footer span,
html[data-bs-theme="light"] .trust-strip span,
html[data-bs-theme="light"] .showcase-badge,
html[data-bs-theme="light"] .quiz-chip,
html[data-bs-theme="light"] .footer-chip,
html[data-bs-theme="light"] .test-pill,
html[data-bs-theme="light"] .choice-tag,
html[data-bs-theme="light"] .quiz-progress-panel,
html[data-bs-theme="light"] .empty-state-card,
html[data-bs-theme="light"] .ad-shell {
    background: rgba(12, 91, 153, 0.045);
    border-color: rgba(24, 50, 77, 0.1);
}

html[data-bs-theme="light"] .showcase-mini-card--accent,
html[data-bs-theme="light"] .mode-option__input:checked + .mode-option__card,
html[data-bs-theme="light"] .question-rail__item.is-active,
html[data-bs-theme="light"] .choice-card.is-selected,
html[data-bs-theme="light"] .preview-choice.is-active {
    background: linear-gradient(180deg, rgba(13, 127, 190, 0.12), rgba(255, 255, 255, 0.7));
    border-color: rgba(13, 127, 190, 0.24);
}

html[data-bs-theme="light"] .choice-card.is-correct,
html[data-bs-theme="light"] .choice-card.is-revealed-correct,
html[data-bs-theme="light"] .answer-summary-card--accent,
html[data-bs-theme="light"] .feedback-panel--success,
html[data-bs-theme="light"] .choice-tag--success {
    background: rgba(23, 122, 80, 0.1);
    border-color: rgba(23, 122, 80, 0.2);
}

html[data-bs-theme="light"] .choice-card.is-incorrect,
html[data-bs-theme="light"] .feedback-panel--error,
html[data-bs-theme="light"] .quiz-inline-notice {
    background: rgba(201, 78, 78, 0.08);
    border-color: rgba(201, 78, 78, 0.18);
}

html[data-bs-theme="light"] .preview-window {
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(240, 246, 251, 0.98));
    border-color: rgba(24, 50, 77, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-bs-theme="light"] .preview-toolbar span {
    background: rgba(24, 50, 77, 0.18);
}

html[data-bs-theme="light"] .preview-progress,
html[data-bs-theme="light"] .progress-modern {
    background: rgba(24, 50, 77, 0.08);
}

html[data-bs-theme="light"] .floating-pill {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(24, 50, 77, 0.1);
    color: var(--app-text);
    box-shadow: 0 14px 26px rgba(37, 62, 92, 0.1);
}

html[data-bs-theme="light"] .form-select,
html[data-bs-theme="light"] .form-control {
    background-color: rgba(255, 255, 255, 0.86);
    border-color: rgba(24, 50, 77, 0.12);
    color: var(--app-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-bs-theme="light"] .form-select:focus,
html[data-bs-theme="light"] .form-control:focus {
    border-color: rgba(13, 127, 190, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(13, 127, 190, 0.12);
}

html[data-bs-theme="light"] .form-range::-webkit-slider-runnable-track {
    background: rgba(24, 50, 77, 0.14);
}

html[data-bs-theme="light"] .form-range::-moz-range-track {
    background: rgba(24, 50, 77, 0.14);
}

html[data-bs-theme="light"] .app-loader,
html[data-bs-theme="light"] .page-transition-layer {
    background: rgba(244, 248, 252, 0.9);
}

html[data-bs-theme="light"] .app-loader__spinner {
    border-color: rgba(24, 50, 77, 0.14);
    border-top-color: var(--app-accent);
}

html[data-bs-theme="light"] .app-loader__label {
    color: var(--app-text-muted);
}

html[data-bs-theme="light"] .cookie-banner__card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 252, 0.92)),
        var(--app-surface);
    border: 1px solid rgba(24, 50, 77, 0.08);
}

html[data-bs-theme="light"] .site-footer {
    color: var(--app-text-muted);
}

html[data-bs-theme="light"] .footer-links a,
html[data-bs-theme="light"] .footer-note a {
    color: var(--app-text);
}

html[data-bs-theme="light"] .footer-links a:hover,
html[data-bs-theme="light"] .footer-note a:hover,
html[data-bs-theme="light"] .contact-channel__link:hover,
html[data-bs-theme="light"] .legal-card a:hover {
    color: var(--app-accent-strong);
}

html[data-bs-theme="light"] .mobile-action-bar {
    background: linear-gradient(180deg, transparent, rgba(243, 246, 250, 0.96) 24%);
    border-top: 1px solid rgba(24, 50, 77, 0.08);
}

html[data-bs-theme="light"] .skeleton-line,
html[data-bs-theme="light"] .skeleton-choice {
    background: linear-gradient(90deg, rgba(24, 50, 77, 0.05), rgba(24, 50, 77, 0.1), rgba(24, 50, 77, 0.05));
    background-size: 200% 100%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse-bar {
    0%,
    100% {
        width: 68%;
    }
    50% {
        width: 84%;
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(2rem, -1rem, 0) scale(1.08);
    }
}

@keyframes question-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1199.98px) {
    .desktop-action-bar {
        display: none;
    }
}

@media (min-width: 1200px) {
    .mobile-action-bar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .hero-metrics,
    .mode-grid,
    .answer-summary-grid,
    .results-stat-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .setup-card,
    .quiz-sidebar {
        position: static;
    }

    .question-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-copy,
    .hero-showcase,
    .setup-card,
    .feature-card,
    .coverage-card,
    .cta-card,
    .quiz-surface,
    .sidebar-card,
    .results-hero,
    .review-card,
    .footer-card {
        padding: 1.2rem;
    }

    .display-title {
        max-width: none;
    }

    .trust-strip,
    .quiz-surface__meta,
    .review-card__header,
    .choice-review-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-action-bar {
        padding-inline: 0.75rem;
        gap: 0.6rem;
    }

    .cookie-banner__card {
        flex-direction: column;
        align-items: flex-start;
    }

    .showcase-footer {
        flex-direction: column;
    }

    .quiz-progress-footer {
        justify-content: flex-start;
    }

    .question-stage {
        min-height: 22rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.desktop-line-bar {
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 1.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}
