@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --ink: #f5f7fb;
  --muted: #a7b1c5;
  --deep: #080d1d;
  --panel: rgba(19, 28, 51, .78);
  --panel-strong: #151f39;
  --line: rgba(165, 183, 216, .16);
  --mint: #73e3c0;
  --mint-deep: #37baa1;
  --orange: #ffb45b;
  --red: #ff7f83;
  --blue: #76a8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--deep);
  font-family: 'Cairo', 'IBM Plex Sans Arabic', Arial, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { cursor: pointer; }
.background-orb { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.orb-one { width: 420px; height: 420px; top: -150px; right: -120px; background: radial-gradient(circle, rgba(69, 127, 255, .17), transparent 67%); }
.orb-two { width: 500px; height: 500px; bottom: -220px; left: -180px; background: radial-gradient(circle, rgba(69, 231, 187, .11), transparent 68%); }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(174, 190, 219, .1); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 5px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; background: var(--mint); color: #071b24; border-radius: 11px 11px 11px 3px; transform: rotate(-5deg); box-shadow: 0 7px 18px rgba(115, 227, 192, .22); }
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform: rotate(5deg); }
.header-note { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(115,227,192,.1); }
main { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 66px 0 42px; }
.intro-panel { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 56px; align-items: center; position: relative; }
.intro-copy { padding: 10px 0 50px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: var(--mint); opacity: .8; }
h1 { font-size: clamp(43px, 6vw, 72px); line-height: 1.13; letter-spacing: -.055em; margin: 23px 0 19px; font-weight: 800; }
h1 em { color: var(--mint); font-style: normal; }
.intro-text { max-width: 510px; color: var(--muted); font-size: 15px; line-height: 2; margin: 0; }
.intro-actions { display: flex; align-items: center; gap: 20px; margin-top: 31px; }
.primary-button { border: 0; display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 51px; padding: 0 21px; border-radius: 10px 10px 10px 3px; background: var(--mint); color: #092028; font-size: 14px; font-weight: 800; box-shadow: 0 14px 30px rgba(72, 212, 175, .18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(72, 212, 175, .28); background: #8aedd0; }
.button-arrow { font-size: 22px; line-height: 1; font-weight: 500; }
.time-note { color: var(--muted); font-size: 11px; }
.clock-icon { color: var(--orange); margin-left: 5px; font-size: 18px; vertical-align: -1px; }
.intro-visual { min-height: 375px; display: grid; place-items: center; position: relative; }
.thermal-study-image { position: absolute; width: 310px; height: 235px; object-fit: cover; border-radius: 24px; opacity: .2; filter: saturate(1.2) contrast(1.05); mix-blend-mode: screen; transform: translate(16px, -9px) rotate(-4deg); animation: imageGlow 6s ease-in-out infinite; }
.heat-card { width: min(100%, 370px); height: 292px; padding: 25px 29px; color: #e5eefc; border: 1px solid rgba(142, 173, 235, .22); border-radius: 25px 25px 25px 5px; background: linear-gradient(145deg, rgba(35, 51, 87, .92), rgba(13, 20, 40, .9)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); transform: rotate(4.5deg); position: relative; }
.heat-card:before { content: ''; position: absolute; inset: 10px; border: 1px dashed rgba(161, 184, 226, .16); border-radius: 17px 17px 17px 3px; }
.heat-card-top, .heat-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
.heat-card-top { font-size: 9px; color: var(--muted); letter-spacing: .14em; }
.mini-spark { color: var(--orange); font-size: 20px; }
.thermometer { height: 177px; display: flex; align-items: center; justify-content: center; gap: 15px; position: relative; z-index: 1; }
.thermometer-scale { height: 140px; display: flex; flex-direction: column; justify-content: space-between; color: #aab8d0; font-size: 10px; font-family: Arial, sans-serif; direction: ltr; }
.thermometer-track { width: 21px; height: 144px; border: 2px solid #7994c2; border-radius: 15px; background: rgba(119, 146, 196, .12); position: relative; }
.thermometer-fill { position: absolute; bottom: 16px; left: 4px; right: 4px; height: 82px; border-radius: 10px; background: linear-gradient(to top, var(--orange), #ffdb83); box-shadow: 0 0 18px rgba(255, 180, 91, .45); }
.thermometer-bulb { width: 34px; height: 34px; position: absolute; bottom: -12px; left: -8px; border: 2px solid #ffca70; background: var(--orange); border-radius: 50%; box-shadow: 0 0 20px rgba(255, 180, 91, .47); }
.heat-card-bottom { font-size: 10px; color: var(--muted); }
.pulse-icon { font-size: 26px; color: var(--mint); line-height: 1; }
.heat-tag { color: var(--orange); font-family: Arial, sans-serif; }
.floating-chip { position: absolute; padding: 7px 13px; font-size: 11px; border-radius: 8px 8px 8px 2px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.chip-hot { top: 46px; right: 8px; color: #2d1f11; background: var(--orange); transform: rotate(5deg); animation: chipFloat 4.2s ease-in-out infinite; }
.chip-cold { bottom: 43px; left: 18px; color: #0e2b31; background: var(--mint); transform: rotate(-7deg); animation: chipFloat 4.6s ease-in-out .5s infinite reverse; }
.intro-stats { grid-column: 1 / -1; display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 20px; margin-top: -6px; }
.intro-stats div { min-width: 145px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); padding-right: 20px; padding-left: 34px; }
.intro-stats div:first-child { border: 0; }
.intro-stats strong { font: 700 23px 'IBM Plex Sans Arabic', Arial, sans-serif; color: var(--ink); }
.intro-stats span { color: var(--muted); font-size: 10px; }
.hidden { display: none !important; }
.quiz-panel, .result-panel { width: min(780px, 100%); margin: 0 auto; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.quiz-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.quiz-label { display: flex; align-items: center; gap: 8px; color: var(--mint); font-size: 12px; font-weight: 700; }
.label-icon { color: var(--orange); font-size: 17px; }
.question-count { display: flex; align-items: baseline; gap: 7px; direction: ltr; font-family: Arial, sans-serif; }
.question-count #currentNumber { color: var(--ink); font-size: 26px; font-weight: 700; }
.count-separator, .muted-number { color: var(--muted); font-size: 12px; }
.progress-track { height: 5px; background: rgba(151, 173, 211, .13); border-radius: 10px; overflow: hidden; }
.progress-value { width: 8.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #9af4d2); transition: width .35s ease; }
.progress-caption { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; }
.question-card { margin-top: 29px; padding: clamp(27px, 5vw, 45px); border: 1px solid var(--line); border-radius: 22px 22px 22px 5px; background: linear-gradient(145deg, rgba(23, 34, 62, .88), rgba(13, 20, 39, .88)); box-shadow: var(--shadow); }
.question-kicker { color: var(--orange); font-size: 11px; font-weight: 700; margin-bottom: 17px; }
.question-card h2 { max-width: 680px; min-height: 72px; margin: 0; color: var(--ink); font-size: clamp(21px, 3vw, 29px); line-height: 1.75; font-weight: 700; letter-spacing: -.025em; }
.options-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 29px; }
.option-button { min-height: 65px; padding: 12px 15px; display: flex; align-items: center; gap: 13px; text-align: right; color: #dce6f8; background: rgba(130, 151, 190, .08); border: 1px solid rgba(164, 185, 222, .17); border-radius: 12px 12px 12px 3px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.option-button:hover:not(:disabled) { background: rgba(115, 227, 192, .1); border-color: rgba(115, 227, 192, .55); transform: translateY(-2px); }
.option-button:disabled { cursor: default; }
.option-marker { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(171, 194, 229, .32); border-radius: 8px 8px 8px 2px; color: #b9c6dd; font-size: 12px; font-weight: 700; }
.option-label { flex: 1; font-size: 13px; line-height: 1.7; }
.option-button.is-correct { background: rgba(115, 227, 192, .14); border-color: var(--mint); color: #dffff4; }
.option-button.is-correct .option-marker { color: #08271f; border-color: var(--mint); background: var(--mint); }
.option-button.is-wrong { background: rgba(255, 127, 131, .12); border-color: var(--red); color: #ffe1e1; }
.option-button.is-wrong .option-marker { color: #311318; border-color: var(--red); background: var(--red); }
.feedback { display: none; margin-top: 20px; padding: 15px 17px; border-radius: 11px 11px 11px 2px; line-height: 1.85; font-size: 12px; }
.feedback.visible { display: block; animation: feedbackIn .3s ease both; }
@keyframes feedbackIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
.feedback.correct { color: #cffff0; background: rgba(115, 227, 192, .09); border-right: 3px solid var(--mint); }
.feedback.wrong { color: #ffe3e4; background: rgba(255, 127, 131, .08); border-right: 3px solid var(--red); }
.feedback strong { display: block; font-size: 14px; margin-bottom: 3px; }
.feedback span { color: var(--muted); }
.feedback.wrong span { color: #ffc9cb; }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; direction: rtl; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(159, 179, 213, .22); transition: width .3s ease, background .3s ease; }
.dot.active { width: 22px; border-radius: 8px; background: var(--mint); }
.dot.done { background: rgba(115, 227, 192, .54); }
.next-button { min-height: 43px; padding: 0 17px; display: inline-flex; align-items: center; gap: 18px; border: 1px solid rgba(115, 227, 192, .56); border-radius: 9px 9px 9px 2px; background: transparent; color: var(--mint); font-size: 12px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.next-button:hover { background: rgba(115, 227, 192, .1); transform: translateX(-3px); }
.result-panel { text-align: center; }
.result-spark { color: var(--orange); font-size: 27px; margin-bottom: 7px; }
.centered { justify-content: center; }
.result-panel h2 { margin: 16px 0 4px; color: var(--ink); font-size: 34px; letter-spacing: -.04em; }
.result-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.score-layout { display: flex; align-items: center; justify-content: center; gap: 42px; margin: 35px 0; text-align: right; }
.score-ring { width: 154px; height: 154px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--score, 0%), rgba(125, 147, 190, .16) 0); position: relative; }
.score-ring:after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #101a31; }
.score-inner { z-index: 1; display: flex; flex-direction: column; align-items: center; }
.score-inner strong { font: 700 30px Arial, sans-serif; color: var(--mint); }
.score-inner span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.score-number strong { display: block; color: var(--ink); font: 700 37px Arial, sans-serif; direction: ltr; }
.score-number span { color: var(--muted); font-size: 12px; }
.score-details p { max-width: 190px; color: var(--muted); font-size: 11px; line-height: 1.8; margin: 11px 0 0; }
.review-box { text-align: right; padding: 18px; border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; background: rgba(15, 24, 45, .62); }
.review-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; color: var(--ink); font-size: 12px; font-weight: 700; }
.review-heading span:last-child { color: var(--muted); font-weight: 500; font-size: 10px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.review-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; background: rgba(158, 180, 216, .06); font-size: 11px; }
.review-item .review-status { font-size: 14px; }
.review-item.good .review-status { color: var(--mint); }.review-item.bad .review-status { color: var(--red); }
.review-item span:last-child { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.retry-button { margin: 24px auto 0; }
.site-footer { display: flex; justify-content: center; gap: 9px; padding: 14px 0 24px; color: #69758d; font-size: 10px; }
.footer-dot { color: var(--mint); }
@keyframes imageGlow { 0%, 100% { opacity: .16; transform: translate(16px, -9px) rotate(-4deg) scale(1); } 50% { opacity: .28; transform: translate(16px, -14px) rotate(-2deg) scale(1.04); } }
@keyframes chipFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 30px, 600px); }
  .site-header { height: 76px; }.header-note { display: none; }
  main { padding: 42px 0 27px; min-height: calc(100vh - 120px); }
  .intro-panel { grid-template-columns: 1fr; gap: 16px; }
  .intro-copy { padding-bottom: 0; }
  .intro-visual { min-height: 300px; margin-top: 5px; }
  .thermal-study-image { width: 280px; height: 210px; transform: translate(7px, -4px) rotate(-3deg); }
  .heat-card { width: min(92%, 350px); height: 275px; }
  .intro-stats { margin-top: 7px; justify-content: space-between; }
  .intro-stats div { min-width: 0; flex: 1; padding: 0 12px; }.intro-stats div:first-child { padding-right: 0; }
  .intro-actions { flex-wrap: wrap; gap: 13px; }
  .question-card { padding: 25px 19px; margin-top: 24px; }.question-card h2 { min-height: auto; font-size: 21px; }
  .options-list { grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }.option-button { min-height: 59px; }
  .quiz-footer { align-items: flex-end; }.dots { max-width: 170px; }.next-button { flex-shrink: 0; }
  .score-layout { gap: 22px; }.score-ring { width: 130px; height: 130px; }.score-ring:after { inset: 9px; }
  .review-list { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  h1 { font-size: 41px; }.intro-text { font-size: 13px; }.time-note { font-size: 10px; }
  .heat-card { transform: rotate(2deg) scale(.94); }.chip-hot { right: -2px; }.chip-cold { left: 2px; }
  .score-layout { flex-direction: column; text-align: center; }.score-details { text-align: center; }.score-details p { margin-right: auto; margin-left: auto; }
}
