/* פדר למהדרין — עיצוב האתר */

:root {
    --brown: #45291a;
    --brown-deep: #2e1b10;
    --brown-soft: #6b4a36;
    --gold: #ad8c32;
    --gold-light: #c9a95a;
    --gold-pale: #f3ead3;
    --parchment: #faf7f0;
    --paper: #ffffff;
    --line: #e7dcc6;
    --text: #2d2620;
    --muted: #756a5e;
    --ok: #2f7d4f;
    --ok-bg: #e8f4ec;
    --bad: #b3261e;
    --bad-bg: #fbeae8;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(46, 27, 16, .06), 0 1px 3px rgba(46, 27, 16, .08);
    --shadow: 0 4px 14px rgba(46, 27, 16, .08), 0 2px 4px rgba(46, 27, 16, .05);
    --shadow-lg: 0 18px 40px rgba(46, 27, 16, .14);
    --font-display: 'Frank Ruhl Libre', 'David', serif;
    --font-body: 'Assistant', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--parchment);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brown); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brown); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- מלל רץ ---------- */
.ticker { background: linear-gradient(90deg, #2e1b10, #45291a, #2e1b10); color: #f3dc98; overflow: hidden; font-size: .92rem; font-weight: 600; border-bottom: 1px solid rgba(201, 169, 90, .5); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { white-space: nowrap; padding: 7px 0; padding-inline-end: 80px; min-width: 100vw; }
.ticker-item i { font-size: .6rem; color: var(--gold); margin: 0 14px; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; width: auto; }
    .ticker-item { white-space: normal; min-width: 0; padding: 7px 20px; text-align: center; }
    .ticker-item[aria-hidden] { display: none; }
}

/* ---------- כותרת עליונה ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 500;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 60px; width: auto; display: block; }
.brand-text { border-right: 1px solid var(--line); padding-right: 14px; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brown); display: block; line-height: 1.2; }
.brand-sub { font-size: .88rem; color: var(--muted); display: block; }
.bsd { position: absolute; top: 14px; right: 60px; font-size: .85rem; color: var(--muted); font-family: var(--font-display); }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
    color: var(--brown); font-weight: 600; font-size: .98rem; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--gold-pale); }
.main-nav a.nav-cta { background: var(--brown); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--brown-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; color: var(--brown); cursor: pointer; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .brand-text { display: none; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 3px solid var(--gold); box-shadow: var(--shadow); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 10px 20px 16px; }
    .main-nav a { border-radius: 10px; }
}

/* ---------- פריסה ---------- */
.page { flex: 1; width: 100%; }
.layout { display: flex; gap: 24px; align-items: flex-start; padding-top: 32px; padding-bottom: 48px; }
.main-content-container { flex: 1; min-width: 0; }

/* ---------- כפתורים ---------- */
.btn, .btn-primary, .btn-gold, .btn-ghost, .btn-blue, .btn-gray {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    padding: 12px 24px; border-radius: 12px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn, .btn-primary { background: var(--brown); color: #fff; }
.btn:hover, .btn-primary:hover { background: var(--brown-soft); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-gold, .btn-blue { background: var(--gold); color: #fff; }
.btn-gold:hover, .btn-blue:hover { background: #967828; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost, .btn-gray { background: transparent; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover, .btn-gray:hover { border-color: var(--gold); background: var(--gold-pale); }
.btn-lg { font-size: 1.15rem; padding: 15px 32px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--muted); font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; font-family: var(--font-body); }
.link-btn:hover { color: var(--bad); }

/* ---------- כרטיס ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 600px) { .card { padding: 20px; } }

/* ---------- דף הבית ---------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    background:
        repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(173, 140, 50, .13) 39px, rgba(173, 140, 50, .13) 40px),
        linear-gradient(180deg, #fffdf8 0%, #f6efdf 100%);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
    padding: 64px 28px 56px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; top: 18px; bottom: 18px; width: 2px; background: rgba(173, 140, 50, .35);
}
.hero::before { right: 44px; }
.hero::after { left: 44px; }
@media (max-width: 600px) {
    .hero::before { right: 10px; }
    .hero::after { left: 10px; }
    .hero .bsd { right: 20px; }
}
.hero-kicker { display: inline-block; font-weight: 700; color: var(--gold); letter-spacing: .5px; margin-bottom: 12px; font-size: .95rem; }
.hero h1 { margin-bottom: 16px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats { display: flex; justify-content: center; gap: 0; margin: 40px auto 0; max-width: 640px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat { flex: 1; padding: 16px 10px; text-align: center; }
.stat + .stat { border-right: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--brown); line-height: 1.1; }
.stat-label { font-size: .9rem; color: var(--muted); }

.section-title { text-align: center; margin: 56px 0 24px; }
.section-title p { color: var(--muted); margin: 0; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.mode {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.mode.active { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.mode.active:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mode-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--gold-pale); color: var(--brown); margin-bottom: 16px; }
.mode.active .mode-icon { background: var(--brown); color: var(--gold-light); }
.mode h3 { margin-bottom: 6px; }
.mode p { color: var(--muted); flex: 1; }
.mode.soon { opacity: .8; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-pale); color: var(--brown); }
.mode .badge { position: absolute; top: 18px; left: 18px; }
.badge-live { background: var(--ok-bg); color: var(--ok); }

.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }
.source { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-right: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.source i { color: var(--gold); font-size: 1.4rem; margin-top: 4px; }
.source h3 { margin-bottom: 2px; font-size: 1.1rem; }
.source p { color: var(--muted); margin: 0; font-size: .95rem; }

.quote { text-align: center; margin: 56px auto 8px; max-width: 720px; font-family: var(--font-display); font-size: 1.25rem; color: var(--brown-soft); }
.quote small { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- טופס יצירת מבחן ---------- */
.form-head { text-align: center; margin-bottom: 28px; }
.form-head p { color: var(--muted); margin: 0; }
.field { margin-bottom: 24px; }
.field-label { display: block; font-weight: 700; color: var(--brown); margin-bottom: 8px; font-size: 1.02rem; }
.field-hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: #fff; font-size: .85rem; margin-left: 8px; }

input[type="text"], input[type="number"], select, textarea {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
    background: #fffdf9; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173, 140, 50, .2); }

.mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .mode-picker { grid-template-columns: 1fr; } }
.field-hint { font-weight: 400; font-size: .85rem; color: var(--muted); margin-inline-start: 6px; }
#bank-picker .mode-option { position: relative; padding-inline-start: 44px; }
#bank-picker .mode-option::before {
    content: ""; position: absolute; top: 50%; inset-inline-start: 14px; width: 20px; height: 20px; margin-top: -10px;
    border: 2px solid var(--line); border-radius: 6px; background: #fff; transition: background .2s, border-color .2s;
}
#bank-picker .mode-option.selected::before { content: "\2713"; display: grid; place-items: center; background: var(--brown); border-color: var(--brown); color: #fff; font-size: .8rem; font-weight: 800; }
.badge-new { vertical-align: middle; font-family: var(--font-body); font-size: .68rem; padding: 1px 7px; border-radius: 999px; background: linear-gradient(180deg, #f3dc98, #c9a95a); color: #2e1b10; font-weight: 800; margin-inline-start: 4px; }
.mode-option { text-align: right; background: #fffdf9; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-family: var(--font-body); transition: border-color .2s, background .2s; }
.mode-option strong { display: block; color: var(--brown); font-size: 1rem; }
.mode-option span { font-size: .87rem; color: var(--muted); }
.mode-option:hover { border-color: var(--gold-light); }
.mode-option.selected { border-color: var(--gold); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--gold); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { background: #fffdf9; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 600; color: var(--brown); cursor: pointer; font-family: var(--font-body); }
.chip:hover, .chip.selected { border-color: var(--gold); background: var(--gold-pale); }

#sections-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: #fffdf9; border: 1.5px solid var(--line); border-radius: 12px; max-height: 320px; overflow-y: auto; }
.sections-tools { display: flex; gap: 12px; margin-top: 8px; }
.section-tag {
    padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
    color: var(--brown); font-size: .92rem; font-weight: 600; cursor: pointer; user-select: none; transition: all .15s;
}
.section-tag:hover { border-color: var(--gold-light); }
.section-tag.selected { background: var(--brown); border-color: var(--brown); color: #fff; }
.q-num { color: var(--gold); font-weight: 800; white-space: nowrap; }
.sec-group-title { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--brown); font-weight: 800; font-size: .95rem; }
.sec-group-title:first-child { margin-top: 0; }
.sec-group-title .link-btn { font-size: .85rem; font-weight: 600; }
.sections-empty { color: var(--muted); font-size: .92rem; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brown); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brown); }

/* ---------- מבחן ---------- */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.quiz-top h2 { margin: 0; font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; color: var(--muted); }
.section-badge { font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--gold-pale); color: var(--brown); }
.section-badge:empty { display: none; }
.progress-track { height: 8px; background: var(--gold-pale); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--brown)); border-radius: 999px; transition: width .35s ease; }

.question-text { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--brown-deep); line-height: 1.55; margin-bottom: 22px; }
.question-section-info { display: none; }
.question-img { max-width: 100%; height: auto; display: block; margin: 0 auto 22px; border-radius: 10px; border: 1px solid var(--line); }

.options { counter-reset: opt; display: flex; flex-direction: column; gap: 12px; }
.option-button {
    counter-increment: opt; position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: right;
    background: #fffdf9; color: var(--text); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.5;
    padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.option-button::before {
    content: counter(opt, hebrew); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; background: var(--gold-pale); color: var(--brown); border: 1px solid var(--line);
}
.option-button:hover:not(:disabled) { border-color: var(--gold); background: #fffaf0; }
.option-button:active:not(:disabled) { transform: scale(.995); }
.option-button.selected { border-color: var(--brown); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--brown); }
.option-button.selected::before { background: var(--brown); color: #fff; border-color: var(--brown); }
.option-button:disabled { cursor: default; }
.option-button.correct-answer { border-color: var(--ok); background: var(--ok-bg); color: #1d4f32; font-weight: 700; }
.option-button.correct-answer::before { content: '✓'; background: var(--ok); color: #fff; border-color: var(--ok); }
.option-button.incorrect-answer { border-color: var(--bad); background: var(--bad-bg); color: #7a1a14; font-weight: 700; }
.option-button.incorrect-answer::before { content: '✗'; background: var(--bad); color: #fff; border-color: var(--bad); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-nav .spacer { flex: 1; }
.report-row { text-align: center; margin-top: 14px; }
#feedback-text:empty { display: none; }

.explanation { margin-top: 22px; background: #fffaf0; border: 1px solid var(--line); border-right: 4px solid var(--gold); border-radius: 10px; padding: 14px 18px; }
.explanation-title { font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.explanation p { margin: 0; }

/* ---------- מפת שאלות (צד) ---------- */
#right-column { display: none; width: 260px; flex-shrink: 0; position: sticky; top: 110px; flex-direction: column; gap: 14px; }
#right-column h3 { font-size: 1.05rem; margin: 0; }
#question-numbers-progress { display: flex; flex-wrap: wrap; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.progress-circle {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem;
    background: var(--parchment); color: var(--muted); border: 1.5px solid var(--line); cursor: pointer; transition: transform .15s, background .2s;
}
.progress-circle:hover { transform: scale(1.08); }
.progress-circle.completed { background: var(--gold-pale); color: var(--brown); border-color: var(--gold); }
.progress-circle.current { background: var(--brown); color: #fff; border-color: var(--brown); }
.progress-circle.review-correct { background: var(--ok); color: #fff; border-color: var(--ok); }
.progress-circle.review-incorrect { background: var(--bad); color: #fff; border-color: var(--bad); }
.progress-circle.review-correct.current, .progress-circle.review-incorrect.current { box-shadow: 0 0 0 3px var(--gold-light); }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--line); }
.legend .l-current { background: var(--brown); border-color: var(--brown); }
.legend .l-done { background: var(--gold-pale); border-color: var(--gold); }
.legend .l-ok { background: var(--ok); border-color: var(--ok); }
.legend .l-bad { background: var(--bad); border-color: var(--bad); }
.legend-review, #right-column.reviewing .legend-quiz { display: none; }
#right-column.reviewing .legend-review { display: flex; }

@media (max-width: 900px) {
    .layout { flex-direction: column; }
    #right-column { width: 100%; position: static; }
    #question-numbers-progress { max-height: 140px; }
    .legend { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* ---------- תוצאות ---------- */
.results { text-align: center; }
.score-ring {
    --pct: 0; width: 190px; height: 190px; border-radius: 50%; margin: 10px auto 22px; display: grid; place-items: center;
    background: conic-gradient(var(--ring-color, var(--gold)) calc(var(--pct) * 1%), var(--gold-pale) 0);
}
.score-ring-inner { width: 150px; height: 150px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; align-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.score-ring-num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; color: var(--brown); line-height: 1; }
.score-ring-label { font-size: .85rem; color: var(--muted); }
.result-message { font-family: var(--font-display); font-size: 1.3rem; color: var(--brown); margin-bottom: 22px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 600px) { .result-grid { grid-template-columns: 1fr; } }
.result-cell { background: var(--parchment); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.result-cell b { display: block; font-size: 1.3rem; color: var(--brown); font-family: var(--font-display); }
.result-cell span { font-size: .88rem; color: var(--muted); }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.feedback-card { max-width: 560px; margin: 32px auto 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.modal .feedback-card { margin-top: 4px; box-shadow: none; }
.feedback-card h3 { margin: 0 0 4px; font-family: var(--font-display); color: var(--brown); font-size: 1.25rem; }
.feedback-card h3 i { color: var(--gold); margin-left: 6px; }
.fb-lead { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.feedback-card .fb-text, .feedback-card .fb-name, .feedback-card .fb-email { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.feedback-card .fb-email { text-align: right; }
.feedback-card .fb-email:not(:placeholder-shown) { text-align: left; }
.feedback-card .fb-text { resize: vertical; min-height: 70px; }
.fb-actions { display: flex; justify-content: center; }
.fb-send:disabled { opacity: .6; cursor: wait; transform: none; }
.fb-status { min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.fb-status.warn { color: var(--bad); }
.fb-thanks { margin: 6px 0; font-size: 1.15rem; font-weight: 700; color: var(--ok); }
.fb-thanks i { color: var(--bad); margin-left: 6px; }

/* ---------- אתגר יומי ---------- */
.ch-banner {
    display: flex; align-items: center; gap: 18px; width: 100%; margin-bottom: 22px; padding: 18px 22px; text-align: right; cursor: pointer;
    font-family: var(--font-body); color: #fff; border: 1px solid rgba(201, 169, 90, .6); border-radius: var(--radius);
    background: radial-gradient(120% 160% at 100% 0%, #6b4a36 0%, #45291a 45%, #2e1b10 100%); box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.ch-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ch-banner-icon {
    flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
    background: linear-gradient(180deg, #f3dc98, #c9a95a); color: #2e1b10; box-shadow: 0 0 0 5px rgba(201, 169, 90, .25);
    animation: ch-pulse 2.4s ease-in-out infinite;
}
@keyframes ch-pulse { 50% { box-shadow: 0 0 0 10px rgba(201, 169, 90, .08); } }
.ch-banner-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-banner-kicker { font-size: .85rem; font-weight: 700; color: var(--gold-light); letter-spacing: .4px; }
.ch-banner-title { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 900; color: #fff; line-height: 1.2; }
.ch-banner-lead { color: #eadfc8; font-size: .98rem; }
.ch-banner-status { margin-top: 4px; font-size: .88rem; font-weight: 700; color: #f3dc98; }
.ch-banner-cta {
    flex-shrink: 0; padding: 11px 20px; border-radius: 12px; font-weight: 800; white-space: nowrap;
    background: linear-gradient(180deg, #f3dc98, #c9a95a); color: #2e1b10;
}
@media (max-width: 600px) {
    .ch-banner { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .ch-banner-icon { width: 46px; height: 46px; font-size: 1.25rem; }
    .ch-banner-cta { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ch-banner-icon { animation: none; } }

.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ch-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--brown); }
.ch-title i { color: var(--gold); margin-left: 6px; }
.ch-pips { display: flex; gap: 8px; direction: rtl; }
.ch-pip {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
    background: var(--parchment); color: var(--muted); border: 1.5px solid var(--line); transition: background .25s, transform .25s;
}
.ch-pip.cur { background: var(--brown); color: #fff; border-color: var(--brown); }
.ch-pip.ok { background: var(--ok); color: #fff; border-color: var(--ok); transform: scale(1.08); }
.ch-pip.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.ch-feedback { margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); animation: ch-in .3s ease; }
.ch-feedback.is-ok { background: var(--ok-bg); border-color: rgba(47, 125, 79, .35); }
.ch-feedback.is-bad { background: var(--bad-bg); border-color: rgba(179, 38, 30, .3); }
.ch-feedback .explanation { margin-top: 12px; background: #fffdf8; }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px); } }
.ch-verdict { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; }
.is-ok .ch-verdict { color: var(--ok); }
.is-bad .ch-verdict { color: var(--bad); }
.ch-correct { margin: 6px 0 0; font-weight: 700; color: #1d4f32; }
.ch-fail { margin: 14px 0 0; font-weight: 700; color: var(--brown); }
.ch-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.ch-win { text-align: center; }
.ch-trophy {
    width: 96px; height: 96px; margin: 8px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
    background: linear-gradient(180deg, #f3dc98, #c9a95a); color: #2e1b10; box-shadow: 0 0 0 8px var(--gold-pale); animation: ch-pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes ch-pop { from { transform: scale(.4); opacity: 0; } }
.ch-win-lead { font-size: 1.15rem; color: var(--muted); }
.ch-win-note { color: var(--muted); font-size: .95rem; }

/* ---------- חלונות קופצים ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(30, 18, 10, .55); backdrop-filter: blur(2px); align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-content {
    background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold);
    width: 640px; max-width: 100%; max-height: 90vh; overflow-y: auto; padding: 34px 32px 26px; position: relative; animation: pop .25s ease-out; text-align: right;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-content h2 { text-align: center; }
.modal-content h3 { margin-top: 18px; font-size: 1.1rem; }
.modal-content ul { padding-right: 20px; }
.modal-body { color: var(--text); }
.modal-close-btn { position: absolute; top: 14px; left: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: background .2s; }
.modal-close-btn:hover { background: var(--gold-pale); color: var(--brown); }
.modal-footer { margin-top: 22px; display: flex; justify-content: center; gap: 12px; }
.contact-email { font-size: 1.5rem; font-weight: 700; color: var(--brown); text-align: center; margin: 14px 0 20px; }

#message-box-overlay { z-index: 2000; }
#message-box-content { width: 420px; text-align: center; }
#message-box-title { font-size: 1.35rem; }
#message-box-buttons { display: flex; justify-content: center; gap: 12px; }

#error-report-modal { z-index: 2100; }
#error-report-modal-content { width: 700px; }
#error-report-question-display { background: var(--parchment); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
#report-options-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
#report-user-feedback { min-height: 110px; resize: vertical; margin: 8px 0 4px; }
.report-contact { width: 100%; box-sizing: border-box; margin: 6px 0 0; }
#report-user-email { text-align: right; }
#report-user-email:not(:placeholder-shown) { text-align: left; }

/* ---------- המחשות במבחן ---------- */
.qv-host:empty { display: none; }
.qv-host { margin-bottom: 16px; }
.qv-stem { position: relative; margin: 0 auto; max-width: 760px; cursor: zoom-in; }
.qv-stem svg { display: block; width: 100%; height: auto; max-height: 42vh; border-radius: 14px; background: var(--vellum, #fbf6ea); border: 1px solid var(--line); }
.qv-stem-tools { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.qv-tool { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--brown); cursor: pointer; display: grid; place-items: center; font-size: .95rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.qv-tool:hover { background: var(--gold-pale); border-color: var(--gold); }
.qv-sub { color: var(--muted); font-size: .95rem; margin: 8px 0 0; text-align: center; }
.qv-grid .vq-opt.selected { border-color: var(--brown); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--brown); }
.qv-grid .vq-opt:disabled { cursor: default; color: inherit; }
.qv-replay { display: block; margin: 12px auto 0; }
.qv-zoom { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 12, 6, .82); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.qv-zoom-box { position: relative; width: min(96vw, 1100px); cursor: default; }
.qv-zoom-box svg { display: block; width: 100%; height: auto; max-height: 92vh; border-radius: 14px; background: var(--vellum, #fbf6ea); }

.qv-review-bar { margin-top: 16px; padding: 10px 12px; border: 2px dashed var(--gold); border-radius: 12px; background: #fffaf0; font-size: .92rem; }
.qv-rb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--brown); margin-bottom: 8px; }
.qv-rb-id { font-weight: 800; background: var(--brown); color: #fff; border-radius: 999px; padding: 1px 10px; }
.qv-rb-kind { color: var(--muted); }
.qv-rb-live { margin-inline-start: auto; font-size: .8rem; border-radius: 999px; padding: 1px 8px; background: #eee6d6; color: var(--muted); }
.qv-rb-live.on { background: var(--ok-bg); color: var(--ok); }
.qv-rb-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qv-rb-btn { font-family: inherit; font-weight: 700; border-radius: 10px; padding: 6px 12px; cursor: pointer; border: 2px solid var(--line); background: #fff; color: var(--brown); }
.qv-rb-btn.ok.on, .qv-rb-btn.ok:hover { background: var(--ok); color: #fff; border-color: var(--ok); }
.qv-rb-btn.fix.on, .qv-rb-btn.fix:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.qv-rb-btn.copy:hover { border-color: var(--gold); }
.qv-rb-note { flex: 1; min-width: 200px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .92rem; }
.qv-rb-flag { font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 1px 9px; background: #fde8d8; color: #b4441c; }
.qv-rb-reports { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.qv-rb-rh { font-weight: 800; color: #b4441c; }
.qv-rb-rep { background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid #e08a4c; border-radius: 10px; padding: 8px 10px; }
.qv-rb-rep.is-yes { border-inline-start-color: var(--ok); }
.qv-rb-rep.is-no { border-inline-start-color: #b9ae9c; opacity: .75; }
.qv-rep-msg { margin: 0 0 4px; font-weight: 700; color: var(--brown); white-space: pre-wrap; }
.qv-rep-meta { margin: 0 0 4px; font-size: .82rem; color: var(--muted); }
.qv-rep-meta.warn, .qv-rep-result .warn { color: #b4441c; }
.qv-rep-btns { display: flex; gap: 6px; }
.qv-rep-btns .qv-rb-btn { padding: 3px 10px; font-size: .85rem; }
.qv-rep-import { cursor: default; }
.qv-rep-box { width: min(94vw, 760px); max-height: 90vh; overflow: auto; background: #fffaf0; border-radius: 14px; padding: 16px 18px; color: var(--brown); }
.qv-rep-box h3 { margin: 0 0 6px; }
.qv-rep-box p { margin: 0 0 8px; }
.qv-rep-box textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: .9rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; direction: rtl; }
.qv-rep-actions { display: flex; gap: 8px; margin: 10px 0; }
.qv-rep-result ul { margin: 0; padding-inline-start: 20px; font-size: .85rem; }

/* ---------- כותרת תחתונה ---------- */
.site-footer { background: var(--brown-deep); color: #e9dfcc; margin-top: auto; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; font-size: .92rem; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer .footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
