* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
     font-family: "Host Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #efefef;
    color: #111;
}
button, input, select { font: inherit; }
body { min-height: 100vh; }

.quiz-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(480px, 46%);
    background: #efefef;
}

.quiz-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #e9e9e9;
}

.visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: opacity 0.22s ease;
    transform-origin: center center;
}

.visual-bg.changing {
    opacity: 0;
}

.visual-bg.kb-anim {
    animation: visualKenBurns 45s ease-in-out infinite alternate;
}
@keyframes visualKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

.quiz-content {
    position: relative;
    z-index: 4;
    min-height: 100vh;
    padding: 30px 56px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #efefef;
}

.quiz-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.quiz-logo {
    width: min(220px, 100%);
    height: auto;
}

.screen { display: none; }
.screen.active { display: block; }
.question-box {
    max-width: 560px;
    margin: 118px auto 0;
}

.question-title,
.form-title {
font-size: clamp(34px, 3vw, 43px);
    line-height: 1.06;
    margin: 0 0 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.question-title span { color: #2596a6; }
.answers-list { display: grid; gap: 14px; }

.question-title.quiz-anim-in {
    animation: quizQuestionIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#questionScreen:not(.is-explaining) .answer-btn {
    animation: quizSlideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    opacity: 0;
}
#questionScreen:not(.is-explaining) .answer-btn:nth-child(1) { animation-delay: 0.32s; }
#questionScreen:not(.is-explaining) .answer-btn:nth-child(2) { animation-delay: 0.50s; }
#questionScreen:not(.is-explaining) .answer-btn:nth-child(3) { animation-delay: 0.68s; }

@keyframes quizQuestionIn {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes quizSlideRight {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

.answer-btn,
.btn,
.field input,
.field select {
    border-radius: 0;
    border: 1px solid rgba(17,17,17,0.14);
}

.answer-btn {
    width: 100%;
    min-height: 68px;
    background: #d4d4d4;
    color: #111;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    font-size: clamp(18px, 1.4vw, 28px);
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

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

.answer-btn.correct { background: #2596a6; color: #fff; }
.answer-btn.wrong { background: #d94a4a; color: #fff; }
.answer-btn:disabled { cursor: default; }

.quiz-footer {
    max-width: 560px;
    margin: 34px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.quiz-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    min-height: 52px;
    padding: 0 22px;
    background: #fff;
    color: #2f2f2f;
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(16px, 1.2vw, 24px);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn-primary {
    background: #2c2c2c;
    border: 0;
    color: #fff;
}
.btn-primary:hover { background: #2c2c2c; }

.progress-bars {
    display: flex;
    gap: 0.3125rem;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 0.55rem;
    background: #e0e0e0;
    border-radius: 0;
    transition: background 0.25s ease;
}

.progress-bar.current { background: #2596a6; }
.progress-bar.correct { background: #2db66c; }
.progress-bar.wrong { background: #d94a4a; }
.progress-bar.skipped { background: #9c9c9c; }

body.is-form-screen .quiz-page {
    grid-template-columns: 1fr !important;
}

body.is-form-screen .quiz-visual {
    display: none !important;
}

body.is-form-screen .quiz-content {
    background: #ffffff;
    padding: 0 0 clamp(2rem, 4vw, 3rem) !important;  
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    min-height: 100dvh;
}

body.quiz-page-body.is-form-screen {
    position: static !important;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    overflow-x: hidden !important;
    touch-action: auto !important;
}
html:has(body.is-form-screen) {
    overflow: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    touch-action: auto !important;
}
body.is-form-screen .quiz-page {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    max-width: none !important;
}

body.is-form-screen .quiz-header {
    position: static !important;
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    padding: 1.5rem 1rem !important;
    margin: 0 0 clamp(2rem, 5vw, 4rem) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
}

body.is-form-screen .quiz-logo {
    width: min(12rem, 55vw) !important;  
}

body.is-form-screen .form-box {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}

.form-box {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
    line-height: 1.18;
    margin: 0 0 0.625rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #111;
}

.form-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.5;
}

#leadForm {
    display: grid;
    gap: 1.5rem;  
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.field input {
    width: 100%;
    min-height: 3.25rem;  
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #c9c9c9;
    border-radius: 0;
    padding: 0.875rem 0.125rem;
    font: inherit;
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
    color: #111;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.field input::placeholder {
    color: #9ca3af;
}

.field input:hover {
    border-bottom-color: #9ca3af;
}

.field input:focus {
    border-bottom-color: #2596a6;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .field-row {
        display: contents;
    }
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    min-height: 2.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #c9c9c9;
    border-radius: 0;
    padding: 0.625rem 0.125rem;
    font: inherit;
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
    color: #111;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease;
}
.custom-select-trigger:hover { border-bottom-color: #9ca3af; }
.custom-select.open .custom-select-trigger { border-bottom-color: #2596a6; }

.custom-select-label { color: #9ca3af; }
.custom-select-label.has-value { color: #111; }

.custom-select-chevron {
    color: #6b7280;
    display: inline-flex;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}
.custom-select-chevron svg { width: 1.125rem; height: 1.125rem; }
.custom-select.open .custom-select-chevron { transform: rotate(180deg); }

.custom-select-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.375rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-height: 16rem;
    overflow-y: auto;
    animation: dropdownIn 0.16s ease;
}

.custom-select-menu[hidden] {
    display: none !important;
}

.custom-select-option {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    font: inherit;
    font-size: 0.9375rem;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.custom-select-option:hover { background: #f3f4f6; }
.custom-select-option:focus-visible { background: #f3f4f6; outline: none; }

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    
    padding: 0 calc(1rem + 1.5px);
    margin-top: 0.875rem;
    color: #4b5563;
    font-size: clamp(0.8125rem, 0.8rem + 0.2vw, 0.9375rem);
    line-height: 1.45;
    cursor: pointer;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.custom-checkbox {
    flex: 0 0 auto;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid #c9c9c9;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    margin-top: 0.0625rem;
}
.custom-checkbox svg { width: 0.75rem; height: 0.75rem; }

.checkbox-wrap input[type="checkbox"]:checked ~ .custom-checkbox {
    background: #2596a6;
    border-color: #2596a6;
    color: #fff;
}

.checkbox-wrap input[type="checkbox"]:focus-visible ~ .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(37, 150, 166, 0.25);
}

.checkbox-text { flex: 1; }

.checkbox-text .terms-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 600;
}
.checkbox-text .terms-link:hover,
.checkbox-text .terms-link:focus-visible {
    color: #2596a6;
}

.interest-group {
    border: 0;
    margin: 0.5rem 0 0;
    padding: 0;
}

.interest-legend {
    padding: 0;
    margin-bottom: 0.625rem;
    font-size: clamp(0.8125rem, 0.8rem + 0.2vw, 0.9375rem);
    font-weight: 600;
    color: #4b5563;
}

.interest-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.375rem;
}

.interest-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1.5px solid #d6d6d6;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
    user-select: none;
    position: relative;
}

.interest-card:hover {
    border-color: #2596a6;
}

.interest-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.interest-check {
    flex: 0 0 auto;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid #c9c9c9;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.interest-check svg { width: 0.75rem; height: 0.75rem; }

.interest-label {
    flex: 1;
    font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
    color: #111;
    font-weight: 500;
    line-height: 1.3;
}

.interest-card input[type="checkbox"]:checked ~ .interest-check {
    background: #2596a6;
    border-color: #2596a6;
    color: #fff;
}

.interest-card:has(input[type="checkbox"]:checked) {
    border-color: #2596a6;
    background: rgba(37, 150, 166, 0.05);
}

.interest-card input[type="checkbox"]:focus-visible ~ .interest-check {
    box-shadow: 0 0 0 3px rgba(37, 150, 166, 0.25);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.submit-btn,
.form-restart-btn,
.form-back-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    padding: 0 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.form-restart-btn,
.form-back-btn {
    background: transparent;
    border: 1px solid #c9c9c9;
    color: #2f2f2f;
}

.submit-btn,
.form-restart-btn,
.form-back-btn {
    gap: 0.625rem;
}
.form-btn-icon {
    width: 1.125em;
    height: 1.125em;
    flex-shrink: 0;
}

.field-error {
    position: absolute;
    right: 0.25rem;
    bottom: 0.625rem;
    width: 1.375rem;
    height: 1.375rem;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    cursor: help;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.field {
    position: relative;
}

.field.has-error input {
    padding-right: 2.25rem;
}
.field.has-error .field-error {
    pointer-events: auto;
    opacity: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%23d94a4a'/><path d='M12 7v6M12 16.5h.01' stroke='white' stroke-width='2.4' stroke-linecap='round' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.field.has-error input {
    border-bottom-color: #d94a4a;
}

.form-recaptcha-note {
    margin: 1rem 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.45;
}
.form-recaptcha-note strong {
    color: #6b7280;
    font-weight: 700;
}

.form-step[hidden] {
    display: none !important;
}

body.is-form-screen .quiz-header {
    animation: formHeaderIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.is-form-screen .form-title {
    animation: formTitleIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.form-step.quiz-form-anim > * {
    animation: formItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    opacity: 0;
}

.form-step.quiz-form-anim > *:nth-child(1) { animation-delay: 0.40s; }
.form-step.quiz-form-anim > *:nth-child(2) { animation-delay: 0.51s; }
.form-step.quiz-form-anim > *:nth-child(3) { animation-delay: 0.62s; }
.form-step.quiz-form-anim > *:nth-child(4) { animation-delay: 0.73s; }
.form-step.quiz-form-anim > *:nth-child(5) { animation-delay: 0.84s; }
.form-step.quiz-form-anim > *:nth-child(6) { animation-delay: 0.95s; }
.form-step.quiz-form-anim > *:nth-child(7) { animation-delay: 1.06s; }
.form-step.quiz-form-anim > *:nth-child(8) { animation-delay: 1.17s; }
.form-step.quiz-form-anim > *:nth-child(9) { animation-delay: 1.28s; }

@media (max-width: 768px) {
    .form-step.quiz-form-anim .field-row > * {
        animation: formItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
        opacity: 0;
    }
    .form-step.quiz-form-anim .field-row > *:nth-child(1) { animation-delay: 0.73s; }  
    .form-step.quiz-form-anim .field-row > *:nth-child(2) { animation-delay: 0.79s; }  
}

@keyframes formHeaderIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes formTitleIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes formItemIn {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

.form-step-indicator {
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-step-bar {
    width: 100%;
    height: 0.35rem;
    background: #d6d6d6;
    overflow: hidden;
}

.form-step-bar-fill {
    height: 100%;
    background: #2c2c2c;
    transition: width 0.3s ease;
}

.form-step-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.form-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.form-step-title {
    font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}

.form-actions-secondary {
    margin-top: 0.625rem;
}

.success-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: transparent;
    color: #176340;
    border-radius: 0;
    border-top: 1.5px solid #2db66c;
    border-bottom: 1.5px solid #2db66c;
    font-weight: 700;
    font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
    line-height: 1.5;
    text-align: center;
}

.form-box.form-box-success-only {
    min-height: 0;
}

.form-box.form-box-success-only .form-header,
.form-box.form-box-success-only #leadForm {
    display: none !important;
}

.form-box.form-box-success-only .success-message {
    margin: 0;
    text-align: center;
    font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
    padding: 1.625rem 1.75rem;
}

.admin-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.admin-title { margin: 0; font-size: 32px; }
.admin-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-pill {
    background: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    font-weight: 700;
}
.table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #ececec; vertical-align: top; }
.badge { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.badge.correct { background: #e9f8ef; color: #208654; }
.badge.wrong { background: #fdebec; color: #c93f3f; }
.badge.skipped { background: #f0f0f0; color: #6d6d6d; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: min(100%, 420px); background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,0.08); }
.login-card h1 { margin: 0 0 20px; }
.login-card form { display: grid; gap: 14px; }
.login-card input { min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid #d6d6d6; }
.login-card .error { color: #c93f3f; font-size: 14px; }

@media (max-width: 1180px) {
    .quiz-page {
        grid-template-columns: 1fr;
    }

    .quiz-visual {
        min-height: 53vh; 
    }

    .visual-overlay-png {
        right: 50%;
        top: auto;
        bottom: -28%;
        transform: translateX(50%);
        width: min(120vw, 980px);
    }

    .quiz-content {
        padding: 24px 22px 34px;
    }

    .quiz-header {
        margin-bottom: 20px;
    }

    .question-box {
        margin: 26px auto 0;
    }

    .quiz-footer {
        margin-top: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-dots {
        justify-content: flex-start;
    }
}

:root {
    --admin-bg: #f3f4f6;
    --admin-surface: rgba(255, 255, 255, 0.88);
    --admin-surface-solid: #ffffff;
    --admin-border: rgba(15, 23, 42, 0.08);
    --admin-border-strong: rgba(15, 23, 42, 0.12);
    --admin-text: #111827;
    --admin-text-soft: #6b7280;
    --admin-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
    --admin-shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.05);
    --admin-accent: #1f96a8;
    --admin-accent-hover: #187c8b;
    --admin-success-bg: #eaf8ef;
    --admin-success-text: #147a3f;
    --admin-warning-bg: #fff4e8;
    --admin-warning-text: #a35b11;
    --admin-danger-bg: #fdecec;
    --admin-danger-text: #b63b3b;
    --admin-radius-xl: 28px;
    --admin-radius-lg: 20px;
    --admin-radius-md: 14px;
    --admin-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

.admin-auth-body,
.admin-dashboard-body {
    margin: 0;
    font-family: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 150, 168, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.04), transparent 24%),
        var(--admin-bg);
    color: var(--admin-text);
}

.admin-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.admin-auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--admin-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-xl);
    box-shadow: var(--admin-shadow);
    padding: 34px;
}

.admin-auth-brand {
    margin-bottom: 24px;
}

.admin-auth-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    box-shadow: var(--admin-shadow-soft);
}

.admin-auth-logo {
    display: block;
    max-height: 34px;
    width: auto;
}

.admin-auth-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-accent);
}

.admin-auth-title {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-auth-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--admin-text-soft);
}

.admin-auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--admin-danger-bg);
    color: var(--admin-danger-text);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(182, 59, 59, 0.12);
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--admin-text);
}

.admin-auth-field input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--admin-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-auth-field input:focus {
    border-color: rgba(31, 150, 168, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 150, 168, 0.12);
    background: #fff;
}

.admin-auth-submit {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: none;
    border-radius: 16px;
    background: var(--admin-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(31, 150, 168, 0.22);
}

.admin-auth-submit:hover {
    background: var(--admin-accent-hover);
    transform: translateY(-1px);
}

.admin-auth-submit:active {
    transform: translateY(0);
}

.admin-dashboard-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px;
}

.admin-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    background: #fff;
    color: var(--admin-text);
    text-decoration: none;
    border: 1px solid var(--admin-border-strong);
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.admin-logout-btn:hover {
    background: #f9fafb;
    border-color: rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-stat-card {
    background: var(--admin-surface-solid);
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    padding: 20px 20px 18px;
    box-shadow: var(--admin-shadow-soft);
}

.admin-stat-card-accent {
    background: linear-gradient(135deg, #1f96a8, #187c8b);
    color: #fff;
    border-color: transparent;
}

.admin-stat-card-accent .admin-stat-label,
.admin-stat-card-accent .admin-stat-value {
    color: #fff;
}

.admin-stat-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-soft);
}

.admin-stat-value {
    display: block;
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--admin-text);
}

.admin-table-card {
    background: var(--admin-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-xl);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.admin-table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table-top h2 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.admin-table-top p {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 14px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.modern-admin-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-admin-table thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    color: var(--admin-text);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    padding: 18px 18px;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.modern-admin-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.88);
}

.modern-admin-table tbody tr:hover td {
    background: #fcfcfc;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-badge-finished {
    background: var(--admin-success-bg);
    color: var(--admin-success-text);
}

.cell-interest {
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}
.cell-interest .interest-more {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.125rem 0.5rem;
    background: rgba(31, 150, 168, 0.12);
    color: #1f96a8;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.admin-badge-open {
    background: var(--admin-warning-bg);
    color: var(--admin-warning-text);
}

.admin-empty-state {
    padding: 32px 18px;
    text-align: center;
    color: var(--admin-text-soft);
    font-size: 15px;
}

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .admin-dashboard-shell {
        padding: 18px;
    }

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

    .admin-auth-card {
        padding: 24px;
        border-radius: 24px;
    }

    .admin-auth-title {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-auth-shell {
        padding: 18px;
    }

    .admin-auth-card {
        padding: 20px;
    }

    .admin-auth-title {
        font-size: 26px;
    }

    .admin-table-top {
        padding: 18px;
    }
}

.quiz-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.question-box,
.form-box {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.quiz-footer {
    width: 100%;
    max-width: 560px;
    margin: 28px auto 0;
}

.quiz-header {
    position: absolute;
    top: 30px;
    right: 56px;
    left: auto;
    width: auto;
    margin: 0;
    z-index: 10;
}

@media (max-width: 1180px) {

    .quiz-content {
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        text-align: center;
    }

    .question-box,
    .form-box {
        margin: 26px auto 0;
        width: 100%;
        max-width: 520px;
    }

    .quiz-header {
        display: flex;
        justify-content: center;
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .quiz-footer {
        margin: 24px auto 0;
    }

}

.quiz-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-box {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

#questionScreen.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    align-self: stretch;
}

#questionScreen .question-box {
    flex: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-footer {
    width: auto;
    max-width: none;
    margin: auto -56px -36px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 0;
    border-radius: 0;
    padding: 2.875rem 1.5rem 2.8rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.quiz-actions {
    display: flex;
    width: 100%;
    gap: 0.625rem;
    flex-wrap: nowrap;
}

.quiz-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.875rem;
}

.quiz-actions .btn svg {
    width: 1.0625rem;
    height: 1.0625rem;
    flex: 0 0 auto;
}

#skipButton { color: #fff; background: #2c2c2c; border: 0; }
#skipButton:hover { background: #2c2c2c; }

#restartButton svg {
    transform: rotate(0);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
#restartButton:hover svg {
    transform: rotate(-360deg);
}

.skip-arrow-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    animation: arrowMotion 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes arrowMotion {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
}
#skipButton:hover .skip-arrow-icon,
#explanationNextBtn:hover .skip-arrow-icon {
    animation-play-state: paused;
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

@media (min-width: 1181px) and (max-height: 760px) {
    .quiz-content {
        padding: 18px 40px 22px;
    }
    .quiz-header {
        top: 14px;
        right: 28px;
    }
    .quiz-logo {
        width: 140px;
    }
    .question-title,
    .form-title {
        font-size: clamp(20px, 1.8vw, 30px);
        line-height: 1.12;
        margin-bottom: 14px;
    }
    .question-box {
        max-width: 480px;
        margin-top: 56px !important;     
    }
    .answers-list { gap: 8px; }
    .answer-btn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }
    .quiz-footer {
        margin: auto -40px -22px;
        padding: 1rem 1.25rem 1rem;
        gap: 0.625rem;
    }
    .quiz-actions { gap: 0.5rem; }
    .quiz-actions .btn {
        min-height: 38px;
        font-size: 13px;
        padding: 0 0.75rem;
    }
    .quiz-actions .btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    .progress-bars { gap: 0.25rem; }
    .progress-bar { height: 0.25rem; }
}

@media (min-width: 1181px) and (max-height: 760px) {
    body.is-form-screen .quiz-header {
        padding: 0.875rem 1rem !important;
        margin: 0 0 1.25rem !important;
    }
    body.is-form-screen .quiz-logo {
        width: 8.5rem !important;
    }
    body.is-form-screen .form-title {
        font-size: clamp(18px, 1.6vw, 26px);
        line-height: 1.15;
        margin-bottom: 0.875rem;
    }
    body.is-form-screen .form-step-indicator {
        margin-bottom: 1rem;
        gap: 0.4375rem;
    }
    body.is-form-screen .form-step-num,
    body.is-form-screen .form-step-title {
        font-size: 0.75rem;
    }
    body.is-form-screen #leadForm { gap: 1.125rem; }
    body.is-form-screen .field input {
        min-height: 2.5rem;
        padding: 0.375rem 0.125rem;
        font-size: 0.9375rem;
    }
    body.is-form-screen .field-error {
        font-size: 0.75rem;
        min-height: 0.875rem;
    }
    body.is-form-screen .interest-card {
        padding: 0.5rem 1rem;
    }
    body.is-form-screen .interest-label {
        font-size: 0.875rem;
    }
    body.is-form-screen .checkbox-wrap {
        font-size: 0.8125rem;
        margin-top: 0.625rem;
    }
    body.is-form-screen .form-actions { margin-top: 0.875rem; }
    body.is-form-screen .submit-btn,
    body.is-form-screen .form-restart-btn,
    body.is-form-screen .form-back-btn {
        height: 2.625rem;
        min-height: 2.625rem;
        font-size: 0.9375rem;
    }
    body.is-form-screen .form-recaptcha-note {
        font-size: 0.75rem;
        margin-top: 0.625rem;
    }
}

@media (max-width: 1180px) {
    body.quiz-page-body:not(.is-form-screen) .quiz-header {
        animation: flagHide 0.5s cubic-bezier(0.7, 0, 0.84, 0) 5s forwards;
    }
}
@keyframes flagHide {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .quiz-visual {
        min-height: 35vh !important;
    }
    .quiz-header {
        position: fixed !important;
        top: 0.875rem !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        padding: 0.5625rem 1rem 0.5625rem 1.125rem !important;
        background: #fff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: auto !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 15;
    }
    .quiz-logo {
        width: 9rem !important;
        max-width: 9rem !important;
        height: auto;
        display: block;
    }
    
}

@media (min-width: 769px) and (max-width: 1180px) and (max-height: 900px) {
    .quiz-content {
        padding: 16px 24px 20px !important;
    }
    .quiz-header {
        margin-bottom: 12px !important;
    }
    .quiz-logo {
        width: min(140px, 50vw) !important;
    }
    .question-title {
        font-size: clamp(18px, 2.2vw, 26px);
        line-height: 1.15;
        margin-bottom: 12px;
    }
    .question-box,
    .form-box {
        margin: 12px auto 0 !important;
        max-width: 600px !important;
    }
    .answers-list { gap: 6px; }
    .answer-btn {
        min-height: 38px;
        padding: 0 14px;
        font-size: 14px;
    }
    .quiz-footer {
        padding: 0.75rem 1rem !important;
        margin-top: 12px !important;
    }
    .quiz-actions { gap: 0.5rem; }
    .quiz-actions .btn {
        min-height: 36px;
        font-size: 13px;
        padding: 0 0.75rem;
    }
    .quiz-actions .btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    .progress-bars { gap: 0.25rem; }
    .progress-bar { height: 0.25rem; }

body.is-form-screen .quiz-header {
        padding: 0.75rem 1rem !important;
        margin: 0 0 1rem !important;
    }
    body.is-form-screen .quiz-logo {
        width: 8rem !important;
    }
    body.is-form-screen .form-title {
        font-size: clamp(17px, 1.6vw, 22px);
        margin-bottom: 0.75rem;
    }
    body.is-form-screen .form-step-indicator {
        margin-bottom: 0.875rem;
    }
    body.is-form-screen #leadForm { gap: 1.125rem; }
    body.is-form-screen .field input {
        min-height: 2.375rem;
        font-size: 0.9375rem;
    }
    body.is-form-screen .submit-btn,
    body.is-form-screen .form-restart-btn,
    body.is-form-screen .form-back-btn {
        height: 2.5rem;
        min-height: 2.5rem;
        font-size: 0.9375rem;
    }
    body.is-form-screen .interest-card {
        padding: 0.4375rem 0.875rem;
    }
}

@media (min-width: 1181px) and (max-height: 620px) {
    .quiz-content {
        padding: 14px 32px 16px;
    }
    .quiz-header { top: 10px; right: 20px; }
    .quiz-logo { width: 110px; }
    .question-title,
    .form-title {
        font-size: clamp(18px, 1.6vw, 24px);
        margin-bottom: 10px;
    }
    .question-box {
        margin-top: 44px !important;
    }
    .answers-list { gap: 6px; }
    .answer-btn {
        min-height: 34px;
        font-size: 13px;
    }
    .quiz-footer {
        margin: auto -32px -16px;
        padding: 0.75rem 1rem;
    }
    .quiz-actions .btn {
        min-height: 32px;
        font-size: 12px;
    }
    
    body.is-form-screen .quiz-header {
        padding: 0.625rem 1rem !important;
        margin: 0 0 1rem !important;
    }
    body.is-form-screen .quiz-logo {
        width: 7rem !important;
    }
    body.is-form-screen .form-title {
        font-size: clamp(16px, 1.4vw, 22px);
        margin-bottom: 0.625rem;
    }
    body.is-form-screen .form-step-indicator {
        margin-bottom: 0.75rem;
    }
    body.is-form-screen #leadForm { gap: 0.875rem; }
    body.is-form-screen .field input {
        min-height: 2.25rem;
        font-size: 0.875rem;
    }
    body.is-form-screen .submit-btn,
    body.is-form-screen .form-restart-btn,
    body.is-form-screen .form-back-btn {
        height: 2.375rem;
        min-height: 2.375rem;
        font-size: 0.875rem;
    }
    body.is-form-screen .interest-card {
        padding: 0.375rem 0.875rem;
    }
}

@media (max-width: 1180px) {

    .quiz-content {
        display: grid;
        place-items: center;
        min-height: 100vh;
        padding: 20px;
        text-align: center;
    }

    .quiz-header {
        position: static;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .question-box,
    .form-box {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .quiz-footer {
        margin-top: 20px;
        align-items: center;
    }

}

@media (max-width: 1180px) {
    .quiz-content {
        min-height: auto;
        padding: 24px 20px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        text-align: center;
    }

    .quiz-header {
        position: static;
        width: 100%;
        margin: 0 0 28px;
        display: flex;
        justify-content: center;
    }

    .quiz-logo {
        width: min(220px, 70vw);
        margin: 0 auto;
    }

    .question-box,
    .form-box,
    .quiz-footer {
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .form-title,
    .question-title {
        text-align: center;
    }

    .checkbox-wrap {
        justify-content: flex-start;
        text-align: left;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .recaptcha-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
            margin-bottom: 36px;
    }

    .submit-btn,
    .form-restart-btn,
    .form-back-btn {
        width: 100%;
        max-width: 320px;
    }

    .quiz-actions {
        justify-content: center;
    }

    .quiz-footer {
        align-items: center;
    }

    .progress-dots {
        justify-content: center;
    }
}

.recaptcha-wrap {
            margin-bottom: 36px;
    }

@media (max-width: 768px) {
    
    html {
        height: 100%;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        touch-action: manipulation; 
    }
    body.quiz-page-body {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        min-height: 0;
        touch-action: manipulation;
    }

    .quiz-page {
        height: 100dvh;
        min-height: 100dvh;
        max-width: 100vw;
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .quiz-visual {
        min-height: 0;
        height: 34dvh; 
    }

    .quiz-content {
        min-height: 0;
        padding: 0.625rem 1rem 0;
        justify-content: center !important; 
    }

#questionScreen.active {
        flex: 0 0 auto !important;
        min-height: 0;
    }
    #questionScreen .question-box {
        flex: 0 0 auto !important;
        margin: 0 auto !important;
        justify-content: flex-start !important;
    }

.quiz-header {
        position: fixed !important;
        top: 0.875rem !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        padding: 0.5625rem 1rem 0.5625rem 1.125rem;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        width: auto !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 15;
    }

    .quiz-logo {
        width: 9rem !important;            
        max-width: 9rem !important;
        height: auto;
        display: block;
    }

    .question-box {
        margin: 0 auto !important;
    }

    .question-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        line-height: 1.2;
        margin: 0 0 1.75rem;
    }

    .answers-list { gap: 0.4375rem; }

    .answer-btn {
        min-height: 2.625rem;
        padding: 0.4375rem 0.875rem;
        font-size: clamp(0.875rem, 3.4vw, 1rem);
        border-radius: 0;
    }

    .quiz-footer {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 0.875rem;
        padding: 1.375rem 0.875rem calc(1.375rem + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border-bottom: 0;
        z-index: 20;
    }

.quiz-content {
        padding-top: 0 !important;
        padding-bottom: 7.5rem !important;
    }

    .quiz-actions { gap: 0.5rem; }

    .quiz-actions .btn {
        min-height: 2.375rem;
        padding: 0 0.625rem;
        font-size: clamp(0.8125rem, 3vw, 0.9375rem);
        border-radius: 0;
        gap: 0.4375rem;
    }
    .quiz-actions .btn svg { width: 0.9375rem; height: 0.9375rem; }

    .progress-bars { gap: 0.25rem; }
    .progress-bar { height: 0.35rem; }

.explanation-headline {
        font-size: 2rem;
        padding: 0.4375rem 1.375rem 0.5rem;
        margin-bottom: 3rem;
        border-width: 2.5px;
        gap: 0.5rem;
    }
    .explanation-headline-icon {
        width: 1.625rem;
        height: 1.625rem;
    }
    .explanation-correct-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    .explanation-info-text {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    .explanation-countdown-btn {
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.01em;
        cursor: default;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    
    .quiz-visual { height: 26dvh; }
    .quiz-header { margin: 0 0 0.3125rem !important; }
    .question-title { font-size: clamp(1.125rem, 4.5vw, 1.5rem); margin: 0 0 1.25rem; }
    .answer-btn { min-height: 2.5rem; padding: 0.375rem 0.75rem; }
    .quiz-footer { margin-top: 0.4375rem !important; }
}

@media (max-width: 1180px) {
    .quiz-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .quiz-content {
        justify-content: center !important;
    }
    #questionScreen.active {
        flex: 0 0 auto !important;
    }
    #questionScreen .question-box {
        flex: 0 0 auto !important;
        margin: 0 auto !important;
        justify-content: flex-start !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    html {
        height: 100%;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        touch-action: manipulation;
    }
    body.quiz-page-body {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        touch-action: manipulation;
    }

    .quiz-page {
        height: 100dvh;
        min-height: 100dvh;
        max-width: 100vw;
        overflow: hidden;
    }

    .quiz-footer {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0;
        border-bottom: 0;
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
        z-index: 20;
    }

    .quiz-content {
        padding-bottom: 6rem !important;
    }
}

@media (max-width: 768px) {
    body.is-form-screen .quiz-content {
        padding: 0 0 1.5rem !important;  
        justify-content: flex-start !important;
    }
    body.is-form-screen .quiz-header {
        position: static !important;
        top: auto !important;
        right: auto !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        padding: 1rem 1rem !important;
        border-radius: 0 !important;
        width: 100% !important;
        margin: 0 0 1.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: auto;
    }
    body.is-form-screen .quiz-logo {
        width: min(8rem, 40vw) !important;
        max-width: none !important;
    }
    body.is-form-screen .form-box {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    body.is-form-screen .form-box {
        max-width: 24rem;
    }
    body.is-form-screen .form-title {
        font-size: clamp(1.125rem, 4.2vw, 1.375rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    body.is-form-screen #leadForm { gap: 1.125rem; }
    body.is-form-screen .field input {
        min-height: 2.75rem;
        font-size: 1rem;
    }
    body.is-form-screen .form-actions {
        margin-top: 1rem;
        gap: 0.625rem;
    }
    body.is-form-screen .submit-btn,
    body.is-form-screen .form-restart-btn,
    body.is-form-screen .form-back-btn {
        height: 2.875rem;
        min-height: 2.875rem;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1;
    }
    body.is-form-screen .form-recaptcha-note {
        font-size: 0.75rem;
        margin-top: 0.75rem;
        line-height: 1.4;
    }
    body.is-form-screen .form-step-indicator {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}

.admin-topbar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.875rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-topbar-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    flex: 0 0 auto;
    margin-right: auto; 
}

.admin-topbar .admin-logout-btn {
    flex: 0 0 auto; 
}

.admin-topbar-logo {
    display: block;
    height: 2.25rem;
    width: auto;
    max-width: 11rem;
}

@media (max-width: 600px) {
    .admin-topbar-inner { padding: 0.75rem 1rem; }
    .admin-topbar-logo { height: 1.75rem; max-width: 9rem; }
    .admin-topbar .admin-logout-btn {
        min-height: 2.25rem;
        padding: 0 0.875rem;
        font-size: 0.8125rem;
    }
}

.admin-page-title {
    margin-bottom: 1.5rem;
}
.admin-page-title h1 {
    margin: 0 0 0.375rem;
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--admin-text);
    line-height: 1.05;
}
.admin-page-title p {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.admin-flash {
    padding: 0.875rem 1.125rem;
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.admin-flash.success {
    background: #dff6e4;
    border: 1px solid #b7e4c7;
    color: #1f7a3d;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-soft);
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .admin-tabs { display: none; }
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.125rem;
    border: 0;
    background: transparent;
    color: var(--admin-text-soft);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.admin-tab:hover { background: #f5f7f9; color: var(--admin-text); }
.admin-tab.active {
    background: var(--admin-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(31,150,168,0.25);
}
.admin-tab-icon { display: inline-flex; }
.admin-tab-icon svg { width: 1.125rem; height: 1.125rem; }
.admin-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.375rem;
    padding: 0 0.5rem;
    background: rgba(0,0,0,0.08);
    color: inherit;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.admin-tab.active .admin-tab-count {
    background: rgba(255,255,255,0.25);
}

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.admin-tabs-mobile {
    display: none;
    position: relative;
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .admin-tabs-mobile { display: block; }
}

.admin-tabs-mobile-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 0.875rem;
    box-shadow: var(--admin-shadow-soft);
    color: var(--admin-text);
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.admin-tabs-mobile-trigger:hover { border-color: var(--admin-accent); }
.admin-tabs-mobile-trigger[aria-expanded="true"] {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(31,150,168,0.12);
}

.admin-tabs-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(31,150,168,0.10);
    color: var(--admin-accent);
    border-radius: 0.5rem;
    flex: 0 0 auto;
}
.admin-tabs-mobile-icon svg { width: 1.0625rem; height: 1.0625rem; }

.admin-tabs-mobile-label {
    flex: 1;
    text-align: left;
}

.admin-tabs-mobile-chevron {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--admin-text-soft);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}
.admin-tabs-mobile-trigger[aria-expanded="true"] .admin-tabs-mobile-chevron {
    transform: rotate(180deg);
}

.admin-tabs-mobile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 0.875rem;
    padding: 0.375rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
    flex-direction: column;
    gap: 0.125rem;
    transform-origin: top;
    animation: dropdownIn 0.18s ease;
}
.admin-tabs-mobile-menu.open { display: flex; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-tabs-mobile-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0.625rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--admin-text);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-tabs-mobile-item svg {
    width: 1.0625rem;
    height: 1.0625rem;
    color: var(--admin-text-soft);
    flex: 0 0 auto;
}
.admin-tabs-mobile-item span:first-of-type {
    flex: 1;
}
.admin-tabs-mobile-item:hover { background: #f5f7f9; }
.admin-tabs-mobile-item.active {
    background: var(--admin-accent);
    color: #fff;
}
.admin-tabs-mobile-item.active svg { color: #fff; }
.admin-tabs-mobile-item.active .admin-tab-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.admin-stat-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-tile {
    position: relative;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 1.25rem;
    padding: 1.375rem 1.25rem 1.125rem;
    box-shadow: var(--admin-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(17,24,39,0.08);
}
.stat-tile-primary {
    background: linear-gradient(135deg, #1f96a8 0%, #187c8b 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(31,150,168,0.28);
}
.stat-tile-primary .stat-tile-label,
.stat-tile-primary .stat-tile-meta { color: rgba(255,255,255,0.82); }
.stat-tile-primary .stat-tile-value { color: #fff; }
.stat-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(31,150,168,0.10);
    color: var(--admin-accent);
    margin-bottom: 0.875rem;
}
.stat-tile-primary .stat-tile-icon { background: rgba(255,255,255,0.18); color: #fff; }
.stat-tile-icon svg { width: 1.25rem; height: 1.25rem; }
.stat-icon-success { background: rgba(45,182,108,0.12); color: #2db66c; }
.stat-icon-danger { background: rgba(217,74,74,0.12); color: #d94a4a; }
.stat-icon-info { background: rgba(31,150,168,0.12); color: var(--admin-accent); }
.stat-icon-muted { background: rgba(107,114,128,0.12); color: #6b7280; }

.stat-tile-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--admin-text-soft);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.stat-tile-value {
    display: block;
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--admin-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-tile-meta {
    display: block;
    font-size: 0.78125rem;
    color: var(--admin-text-soft);
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    min-width: 0;
}
.admin-chart-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 1.25rem;
    padding: 1.375rem;
    box-shadow: var(--admin-shadow-soft);
    
    min-width: 0;
    overflow: hidden;
}
.admin-chart-head { margin-bottom: 0.875rem; }
.admin-chart-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.admin-chart-head p {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 0.8125rem;
}
.admin-chart-body {
    position: relative;
    width: 100%;
    height: 16rem;
    min-width: 0;
}
.admin-chart-body canvas {
    max-width: 100% !important;
    height: 100% !important;
}
.chart-doughnut-wrap { height: 14rem; }

@media (max-width: 900px) {
    .admin-charts-grid { grid-template-columns: 1fr; }
}

.admin-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.admin-section-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.admin-section-head p {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 0.875rem;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.125rem;
    min-height: 2.875rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    background: #fff;
    color: var(--admin-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-modern:hover { transform: translateY(-1px); }
.btn-modern svg { width: 1.0625rem; height: 1.0625rem; }

.btn-primary-modern {
    background: var(--admin-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(31,150,168,0.25);
}
.btn-primary-modern:hover { background: var(--admin-accent-hover); }

.btn-secondary-modern {
    background: #f3f4f6;
    color: var(--admin-text);
    border-color: var(--admin-border);
}
.btn-secondary-modern:hover { background: #e9ecef; }

.btn-ghost-modern {
    background: transparent;
    color: var(--admin-text);
    border-color: var(--admin-border-strong);
}
.btn-ghost-modern:hover { background: #f5f7f9; }

.btn-danger-modern {
    background: var(--admin-danger-bg);
    color: var(--admin-danger-text);
    border-color: rgba(182, 59, 59, 0.18);
}
.btn-danger-modern:hover {
    background: #fbdcdc;
}

.admin-questions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--admin-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.admin-toggle input { width: 1.0625rem; height: 1.0625rem; accent-color: var(--admin-accent); }
.admin-questions-hint {
    font-size: 0.8125rem;
    color: var(--admin-text-soft);
    font-style: italic;
}

.admin-questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.q-row {
    display: grid;
    grid-template-columns: auto 6rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    box-shadow: var(--admin-shadow-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.q-row:hover { border-color: rgba(31,150,168,0.35); }
.q-row-archived {
    grid-template-columns: 6rem 1fr auto;
    background: #fafafa;
    opacity: 0.85;
}
.q-row-archived:hover { opacity: 1; }
.q-row-ghost { opacity: 0.4; }
.q-row-chosen { box-shadow: 0 12px 28px rgba(31,150,168,0.18); border-color: var(--admin-accent); }
.q-row-drag { transform: rotate(0.5deg); }

.q-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2.5rem;
    background: transparent;
    border: 0;
    color: #9ca3af;
    cursor: grab;
}
.q-drag:active { cursor: grabbing; }
.q-drag svg { width: 1.25rem; height: 1.25rem; }
.q-drag:hover { color: var(--admin-accent); }

.q-preview {
    width: 6rem;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.q-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.q-preview-empty {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
}

.q-body { min-width: 0; }
.q-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.7rem;
    flex-wrap: wrap;
}
.q-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.375rem;
    padding: 0 0.5rem;
    background: var(--admin-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.7rem;
}
.q-id { color: #9ca3af; font-weight: 600; }
.q-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
}
.q-badge-archived {
    background: #f3f4f6;
    color: #6b7280;
}
.q-title {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.q-correct {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--admin-text-soft);
}
.q-correct strong {
    color: #2db66c;
    font-weight: 700;
}

.q-actions {
    display: flex;
    gap: 0.375rem;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.625rem;
    border: 1px solid var(--admin-border);
    background: #fff;
    color: var(--admin-text);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-icon:hover {
    background: var(--admin-accent);
    color: #fff;
    border-color: var(--admin-accent);
}
.btn-icon svg { width: 1.0625rem; height: 1.0625rem; }
.btn-icon-danger:hover {
    background: var(--admin-danger-text);
    border-color: var(--admin-danger-text);
}

@media (max-width: 720px) {
    .q-row { grid-template-columns: auto 1fr auto; }
    .q-preview { display: none; }
    .q-row-archived { grid-template-columns: 1fr auto; }
}

.modal-card-large {
    max-width: 38rem;
    padding: 2rem 2rem 1.75rem;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.modal-close:hover { background: #f3f4f6; color: var(--admin-text); }

.modal-card-large .modal-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.qf-field {
    margin-bottom: 1.25rem;
}
.qf-field > label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.qf-field textarea,
.qf-field input[type="text"] {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--admin-border-strong);
    border-radius: 0.75rem;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    resize: vertical;
}
.qf-field textarea:focus,
.qf-field input[type="text"]:focus,
.qf-answer-text:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(31,150,168,0.15);
}
.qf-hint {
    display: block;
    margin-top: 0.4375rem;
    font-size: 0.75rem;
    color: var(--admin-text-soft);
}
.qf-hint code {
    background: #f3f4f6;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
}

.qf-image-upload {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    align-items: start;
}
.qf-image-preview {
    width: 9rem;
    height: 6rem;
    background: #f3f4f6;
    border: 2px dashed var(--admin-border-strong);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qf-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qf-image-preview span {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 600;
}
.qf-image-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}
.qf-image-controls .qf-hint {
    flex-basis: 100%;
}

.qf-answers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}
.qf-answer-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    gap: 0.5rem;
    align-items: center;
}
.qf-correct-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--admin-border-strong);
    background: #fff;
    border-radius: 0.625rem;
    color: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}
.qf-correct-toggle svg { width: 1.125rem; height: 1.125rem; }
.qf-correct-toggle:hover { border-color: #2db66c; color: rgba(45,182,108,0.4); }
.qf-correct-toggle.is-correct {
    background: #2db66c;
    border-color: #2db66c;
    color: #fff;
}
.qf-answer-text {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--admin-border-strong);
    border-radius: 0.625rem;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.qf-answer-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--admin-border);
    background: #fff;
    color: #9ca3af;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.qf-answer-remove svg { width: 1rem; height: 1rem; }
.qf-answer-remove:hover {
    background: var(--admin-danger-bg);
    color: var(--admin-danger-text);
    border-color: rgba(182,59,59,0.2);
}

.qf-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--admin-border);
}

@media (max-width: 600px) {
    .modal-card-large { padding: 1.5rem 1.25rem; }
    .qf-image-upload { grid-template-columns: 1fr; }
    .qf-image-preview { width: 100%; }
    .qf-actions { flex-direction: column-reverse; }
    .qf-actions .btn-modern { width: 100%; }
}

@media (min-width: 2560px) {
    .admin-auth-body,
    .admin-dashboard-body {
        zoom: 0.75;
    }
    
    body.is-form-screen .quiz-content {
        zoom: 0.8;
    }
}

.admin-toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.admin-toast {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 14rem;
    max-width: 22rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 0.875rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    color: var(--admin-text);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.admin-toast.show { opacity: 1; transform: translateY(0); }

.admin-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: #2db66c;
    color: #fff;
    flex: 0 0 auto;
}
.admin-toast-icon svg { width: 0.9375rem; height: 0.9375rem; }

.admin-toast-error .admin-toast-icon { background: var(--admin-danger-text); }
.admin-toast-info .admin-toast-icon { background: var(--admin-accent); }

@media (max-width: 600px) {
    .admin-toast-container {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }
    .admin-toast { min-width: 0; max-width: none; }
}

#questionScreen.is-explaining .question-title {
    display: none;
}
.quiz-actions-explanation {
    display: none;
}
#questionScreen.is-explaining .quiz-actions:not(.quiz-actions-explanation) {
    display: none;
}
#questionScreen.is-explaining .quiz-actions-explanation {
    display: flex;
}

.btn-explanation-next {
    color: #fff;
    background: #2c2c2c;
    border: 0;
}
.btn-explanation-next:hover {
    background: #2c2c2c;
}

.explanation-countdown-btn {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    cursor: default;
}

.quiz-content:has(#questionScreen.is-explaining) {
    padding: 0 !important;
}
.quiz-content:has(#questionScreen.is-explaining) .quiz-header {
    display: none !important;
}

@media (max-width: 1180px) {
    .quiz-content:has(#questionScreen.is-explaining) .quiz-header {
        display: inline-flex !important;
    }
}
#questionScreen.is-explaining .question-box {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
}
#questionScreen.is-explaining .answers-list {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}
#questionScreen.is-explaining .explanation-card {
    flex: 1;
    width: 100%;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 4.5rem);
}

#questionScreen.is-explaining .explanation-correct-text,
#questionScreen.is-explaining .explanation-info-text {
    margin-bottom: 0;
}

#questionScreen.is-explaining .quiz-footer {
    margin: auto 0 0 !important;
}
@media (max-width: 1180px) {
    #questionScreen.is-explaining .quiz-footer {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .quiz-content:has(#questionScreen.is-explaining) {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 1180px) {
    #questionScreen.is-explaining.active {
        flex: 1 !important;
        align-self: stretch !important;
    }
    #questionScreen.is-explaining .question-box {
        flex: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.explanation-card {
    background: #2596a6;
    color: #fff;
    border: 0;
    box-shadow: 0 12px 32px rgba(37, 150, 166, 0.22);
    border-radius: 0;
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1.25rem, 1rem + 1vw, 2rem);
    text-align: center;
    animation: explanationIn 0.3s ease;
}

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

.explanation-headline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1.7rem;
    padding: 0.5rem 1.75rem 0.625rem;
    font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    border: 3px solid #fff;
    
    animation: explHeadlineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes explHeadlineIn {
    from { opacity: 0; transform: scale(0.88) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.explanation-headline-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    object-fit: contain;
    
    filter: brightness(0) invert(1);
    transform-origin: center bottom;
    
    animation:
        thumbUpPop 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        thumbUpSwing 1.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1.05s 1 both,
        thumbUpBreath 3.2s ease-in-out 2.85s infinite;
}

@keyframes thumbUpPop {
    0%   { opacity: 0; transform: scale(0.2) rotate(-30deg); }
    60%  { opacity: 1; transform: scale(1.18) rotate(8deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes thumbUpSwing {
    0%   { transform: rotate(0) scale(1); }
    15%  { transform: rotate(-9deg) scale(1.04); }
    30%  { transform: rotate(7deg) scale(1.04); }
    45%  { transform: rotate(-5deg) scale(1.03); }
    60%  { transform: rotate(3deg) scale(1.02); }
    75%  { transform: rotate(-1.5deg) scale(1.01); }
    100% { transform: rotate(0) scale(1); }
}

@keyframes thumbUpBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

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

#questionScreen.is-explaining .quiz-actions-explanation {
    animation: explActionsIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
@keyframes explActionsIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.explanation-question {
    margin: 0 0 1.25rem;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 32em;
}
.explanation-question span { color: inherit; }

.explanation-correct-text {
    margin: 0 0 1.25rem;
    font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    max-width: 32em;
}

.explanation-info-text {
    margin: 0 0 2rem;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.0625rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.55;
    max-width: 36em;
    animation: explInfoIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.explanation-actions {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
    width: clamp(16rem, 28rem, 96%);
}

.explanation-countdown-box {
    flex: 0 0 auto;
    min-width: 4.5rem;
    min-height: 4rem;
    padding: 0 1rem;
    background: #fff;
    color: #1f8f54;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.explanation-next {
    flex: 1 1 auto;
    min-height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 700;
    background: #fff;
    color: #1f8f54;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.explanation-next:hover {
    background: #f0fdf4;
}

.thank-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
}
.thank-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.005em;
    line-height: 1;
}
.thank-pill-correct { background: rgba(16, 151, 78, 0.12);  color: #10974e; }
.thank-pill-wrong   { background: rgba(217, 74, 74, 0.12);  color: #d94a4a; }
.thank-pill-skipped { background: rgba(107, 114, 128, 0.12); color: #6b7280; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    padding: 1.75rem 1.75rem 1.5rem;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
    font-family: "Host Grotesk", system-ui, sans-serif;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-icon {
    display: none;
    width: 3rem;
    height: 3rem;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: #2596a6;
}

.modal-icon.warning { background: #d94a4a; }
.modal-icon.info { background: #2596a6; }

.modal-title {
    margin: 0 0 0.25rem;
    text-align: center;
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111;
}

.modal-message {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
    line-height: 1.5;
    color: #4a4a4a;
}

.modal-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    min-width: 8rem;
    min-height: 3rem;
    border-radius: 0;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
}

@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    .modal-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   RESULT SCREEN (medzi quiz a form)
   ============================================================ */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.is-result-screen .quiz-page {
    grid-template-columns: 1fr !important;
}
body.is-result-screen .quiz-visual {
    display: none !important;
}
body.is-result-screen .quiz-content {
    background: #ffffff;
    padding: 0 0 clamp(2rem, 4vw, 3rem) !important;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    min-height: 100dvh;
}
body.quiz-page-body.is-result-screen {
    position: static !important;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    overflow-x: hidden !important;
    touch-action: auto !important;
}
html:has(body.is-result-screen) {
    overflow: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
}
body.is-result-screen .quiz-page {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    max-width: none !important;
}
body.is-result-screen .quiz-header {
    position: static !important;
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    padding: 1.5rem 1rem !important;
    margin: 0 0 clamp(1.75rem, 4vw, 3rem) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
}
body.is-result-screen .quiz-logo {
    width: min(12rem, 55vw) !important;
}

#resultScreen.active {
    display: block;
    width: 100%;
}

.result-box {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
    box-sizing: border-box;
}

.result-headline {
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
    line-height: 1.18;
    margin: 0 0 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #111;
}

.result-score-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1.5px solid #e5e7eb;
    padding: 1.75rem 1.5rem 2rem;
    margin: 0 auto 1.75rem;
    max-width: 22rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.result-score-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-score-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.125rem;
    font-weight: 800;
    font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
    line-height: 1;
    color: #111;
    letter-spacing: -0.04em;
}

.result-score-max {
    font-size: 0.45em;
    font-weight: 600;
    color: #9ca3af;
    margin-left: 0.125rem;
}

.result-comment {
    margin: 0 auto 2rem;
    max-width: 28rem;
    padding: 1.125rem 1.25rem;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
    line-height: 1.55;
    border-left: 3px solid #6b7280;
    background: #f9fafb;
    color: #1f2937;
    text-align: left;
}
.result-comment[data-tier="good"] {
    border-left-color: #16a34a;
    background: #f0fdf4;
    color: #14532d;
}
.result-comment[data-tier="mid"] {
    border-left-color: #d97706;
    background: #fffbeb;
    color: #78350f;
}
.result-comment[data-tier="bad"] {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

.result-actions {
    display: grid;
    gap: 0.75rem;
    max-width: 22rem;
    margin: 0 auto;
}
.result-actions-secondary {
    margin-top: 0.5rem;
}
.result-actions .btn {
    width: 100%;
    min-height: 3rem;
}

/* Stagger animation pre result box */
.result-box.quiz-result-anim > * {
    opacity: 0;
    animation: quizResultIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.result-box.quiz-result-anim > *:nth-child(1) { animation-delay: 0.10s; }
.result-box.quiz-result-anim > *:nth-child(2) { animation-delay: 0.30s; }
.result-box.quiz-result-anim > *:nth-child(3) { animation-delay: 0.55s; }
.result-box.quiz-result-anim > *:nth-child(4) { animation-delay: 0.78s; }
.result-box.quiz-result-anim > *:nth-child(5) { animation-delay: 0.92s; }

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

/* ============================================================
   PRIZES (žrebovanie ceny)
   ============================================================ */

.prizes-grid {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.prize-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.prize-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.prize-card.prize-gold   { border-color: #fbbf24; background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%); }
.prize-card.prize-silver { border-color: #cbd5e1; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 70%); }
.prize-card.prize-bronze { border-color: #d97706; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 70%); }

.prize-medal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
}
.prize-medal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.prize-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}
.prize-title {
    font-weight: 700;
    color: #111;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
    margin-bottom: 0.125rem;
}
.prize-desc {
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
    color: #4b5563;
}

@media (max-width: 480px) {
    .prize-card {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
    }
    .prize-medal {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* ============================================================
   FORM (extra: contact note, title emoji)
   ============================================================ */

.form-contact-note {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
    color: #6b7280;
    line-height: 1.4;
}

.form-title-emoji {
    display: inline-block;
    margin-left: 0.25rem;
    transform: translateY(-0.1em);
}
