/* ═══════════════════════════════════════════
   IQ LEVEL — Complete Design System
   Milky White · Anthropic Coral · Geometric
═══════════════════════════════════════════ */
:root {
  --bg:        #FAF8F5;
  --bg-alt:    #F4F1EB;
  --surface:   #FFFFFF;
  --surface-h: #F9F6F2;
  --border:    #EAE5DE;
  --border-s:  #D5CEC6;
  --accent:    #CC5533;
  --accent-h:  #B84B2C;
  --accent-lt: #FBF1ED;
  --accent-md: #EDCFC4;
  --text-1:    #1C1917;
  --text-2:    #6B635D;
  --text-3:    #A8A29E;
  --text-4:    #C9C3BD;
  --ok:        #15803D;
  --ok-bg:     #F0FDF4;
  --ok-b:      #86EFAC;
  --err:       #DC2626;
  --err-bg:    #FEF2F2;
  --err-b:     #FECACA;
  --d0: #4F46E5; --d0b: #EEF2FF; --d0br: #C7D2FE;
  --d1: #15803D; --d1b: #F0FDF4; --d1br: #86EFAC;
  --d2: #B45309; --d2b: #FFFBEB; --d2br: #FCD34D;
  --d3: #BE185D; --d3b: #FFF1F2; --d3br: #FBCFE8;
  --sh-sm: 0 1px 4px rgba(28,25,23,.06), 0 1px 2px rgba(28,25,23,.04);
  --sh-md: 0 4px 16px rgba(28,25,23,.08), 0 2px 6px rgba(28,25,23,.04);
  --sh-lg: 0 12px 36px rgba(28,25,23,.1), 0 4px 10px rgba(28,25,23,.05);
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --font-ar: 'Tajawal', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: radial-gradient(rgba(204,85,51,.065) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  color: var(--text-1);
  font-family: var(--font-ar);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.65;
}
body.en { font-family: var(--font-en); }

/* ── Language visibility ── */
body.ar .txt-en { display: none !important; }
body.en .txt-ar { display: none !important; }

/* ── Global button reset ── */
button { cursor: pointer; font-family: inherit; }

/* ═══════════════ GEO LAYER ════════════════ */
.geo-layer {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.geo-hex {
  position: absolute;
}
.geo-hex-tr {
  width: 340px; height: 340px;
  top: -80px; right: -80px;
  animation: geoSpin 40s linear infinite;
}
.geo-hex-bl {
  width: 280px; height: 280px;
  bottom: -60px; left: -60px;
  animation: geoSpin 32s linear infinite reverse;
}
.geo-hex-ml {
  width: 180px; height: 180px;
  top: 40%; left: -50px;
  animation: geoSpin 55s linear infinite;
}
@keyframes geoSpin { to { transform: rotate(360deg); } }

/* ═══════════════ LANG BTN ════════════════ */
.lang-btn {
  position: fixed; top: 16px; z-index: 200;
  inset-inline-start: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--sh-sm);
  transition: all .18s;
}
.lang-btn:hover { background: var(--surface-h); color: var(--text-1); border-color: var(--border-s); }

/* ═══════════════ PHASES ════════════════ */
.phase { display: block; min-height: 100vh; position: relative; z-index: 1; }
.phase.active { animation: phaseIn .4s ease both; }
.phase.hidden { display: none !important; }
@keyframes phaseIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ═══════════════ CONTAINER ════════════════ */
.container { max-width: 600px; margin: 0 auto; padding: 0 22px; }

/* ═══════════════ BUTTONS ════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r); padding: 15px 28px;
  font-size: 16px; font-weight: 700; width: 100%;
  box-shadow: 0 4px 20px rgba(204,85,51,.3);
  transition: all .18s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(204,85,51,.38); }
.btn-primary:disabled { background: var(--border-s); color: var(--text-4); box-shadow: none; cursor: default; }
.btn-icon { font-size: 18px; line-height: 1; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); color: var(--text-2);
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 15px 28px; font-size: 16px; font-weight: 600; width: 100%;
  transition: all .18s;
}
.btn-ghost:hover { background: var(--surface-h); border-color: var(--border-s); color: var(--text-1); }

/* ═══════════════ INTRO ════════════════ */
#phase-intro { display: flex; align-items: flex-start; padding: 0; }
.intro-container { padding-top: 72px; padding-bottom: 60px; width: 100%; }

.intro-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 52px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--text-1); letter-spacing: -.3px;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #E8734A);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 3px 12px rgba(204,85,51,.28);
}
.nav-link {
  background: none; border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all .18s;
}
.nav-link:hover { border-color: var(--accent-md); color: var(--accent); background: var(--accent-lt); }

.intro-hero { margin-bottom: 36px; }

.intro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 12px; color: var(--text-2);
  box-shadow: var(--sh-sm);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #22C55E; border-radius: 50%; flex-shrink: 0;
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.intro-h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 900; color: var(--text-1);
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 18px;
}
.intro-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #E8734A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-p { font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 32px; }

.intro-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.intro-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-lbl {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1.1px;
}
.field-inp {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 13px 16px;
  font-size: 16px; color: var(--text-1); font-family: inherit;
  outline: none; transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(204,85,51,.12); }
.field-inp::placeholder { color: var(--text-4); }
.field-inp.error { border-color: var(--err); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.intro-meta {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--border);
}
.meta-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 8px; gap: 3px;
}
.meta-num {
  font-size: 26px; font-weight: 900; color: var(--accent);
  font-family: var(--font-en); line-height: 1;
}
.meta-lbl { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.meta-divider { width: 1px; background: var(--border); flex-shrink: 0; }

.domains-preview {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}
.domain-card-sm {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: 12px; font-weight: 700;
  text-align: center; color: var(--text-2);
  transition: all .18s;
  box-shadow: var(--sh-sm);
}
.domain-card-sm:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.dom-0 { border-top: 3px solid var(--d0); }
.dom-0 svg { color: var(--d0); }
.dom-1 { border-top: 3px solid var(--d1); }
.dom-1 svg { color: var(--d1); }
.dom-2 { border-top: 3px solid var(--d2); }
.dom-2 svg { color: var(--d2); }
.dom-3 { border-top: 3px solid var(--d3); }
.dom-3 svg { color: var(--d3); }

/* ═══════════════ TEST ════════════════ */
#phase-test { display: flex; flex-direction: column; }
.test-hdr {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--sh-sm);
}
.test-logo { font-size: 15px; font-weight: 800; color: var(--accent); flex-shrink: 0; letter-spacing: -.2px; }
.prog-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.prog-track { flex: 1; height: 5px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #E8734A); border-radius: 99px; width: 0; transition: width .5s ease; }
.prog-lbl { font-size: 12px; color: var(--text-3); font-weight: 600; flex-shrink: 0; white-space: nowrap; font-family: var(--font-en); }
.timer-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.timer-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent); font-family: var(--font-en); }
.timer-num.red { color: var(--err); }

.test-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 36px 22px; }
.q-card { width: 100%; max-width: 660px; animation: phaseIn .35s ease both; }

.q-cat-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; padding: 5px 13px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px;
}
.q-text { font-size: clamp(16px,2.8vw,22px); font-weight: 700; color: var(--text-1); line-height: 1.5; margin-bottom: 20px; }
.q-seq {
  background: var(--accent-lt); border: 1px solid var(--accent-md);
  border-radius: var(--r-lg); padding: 22px 16px;
  text-align: center;
  font-size: clamp(22px, 4.5vw, 32px); font-weight: 800;
  color: var(--accent); letter-spacing: 3px; margin-bottom: 24px;
  font-family: var(--font-en); line-height: 1;
  position: relative; overflow: hidden;
}
.q-seq::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(204,85,51,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-btn {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer; color: var(--text-1); font-size: 14.5px;
  font-family: inherit; text-align: start; transition: all .13s;
  display: flex; align-items: center; gap: 10px;
  line-height: 1.4; box-shadow: var(--sh-sm);
}
.opt-btn:hover:not(:disabled) { border-color: var(--accent-md); background: var(--accent-lt); transform: translateY(-1px); box-shadow: var(--sh-md); }
.opt-btn:disabled { cursor: default; }
.opt-btn.correct { border-color: var(--ok-b) !important; background: var(--ok-bg) !important; color: var(--ok); }
.opt-btn.wrong   { border-color: var(--err-b) !important; background: var(--err-bg) !important; color: var(--err); animation: shake .38s ease; }
.opt-key {
  width: 26px; height: 26px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--text-3);
  flex-shrink: 0; font-family: var(--font-en);
}
.opt-btn.correct .opt-key { background: rgba(21,128,61,.1); border-color: var(--ok-b); color: var(--ok); }
.opt-btn.wrong   .opt-key { background: rgba(220,38,38,.1); border-color: var(--err-b); color: var(--err); }
@keyframes shake { 0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)} }

.fb-bar {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--r);
  display: flex; gap: 12px; align-items: flex-start; animation: phaseIn .3s ease;
}
.fb-bar.ok  { background: var(--ok-bg); border: 1px solid var(--ok-b); }
.fb-bar.err { background: var(--err-bg); border: 1px solid var(--err-b); }
.fb-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.fb-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.fb-bar.ok  .fb-title { color: var(--ok); }
.fb-bar.err .fb-title { color: var(--err); }
.fb-exp { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.skip-hint { text-align: center; font-size: 11.5px; color: var(--text-4); margin-top: 16px; }

/* ═══════════════ RESULT ════════════════ */
#phase-result { padding: 60px 0 80px; }
.result-hero {
  text-align: center; margin-bottom: 44px; position: relative;
}
.result-geo-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(204,85,51,.08);
  box-shadow: 0 0 0 40px rgba(204,85,51,.03), 0 0 0 80px rgba(204,85,51,.02);
  pointer-events: none;
}
.result-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px;
}
.iq-display {
  font-size: clamp(88px, 18vw, 136px); font-weight: 900;
  color: var(--accent); line-height: .9; letter-spacing: -4px;
  font-family: var(--font-en);
  text-shadow: 0 2px 30px rgba(204,85,51,.15);
}
.iq-label { font-size: 12px; color: var(--text-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 2px; }
.class-pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 10px 24px; box-shadow: var(--sh-md);
}
.class-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
#class-lbl { font-size: 15px; font-weight: 700; color: var(--text-1); }
.pct-line { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.pct-line strong { color: var(--text-1); font-weight: 700; }

.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 14px; text-align: center;
  box-shadow: var(--sh-sm);
}
.stat-val { font-size: clamp(24px,5vw,36px); font-weight: 900; color: var(--accent); font-family: var(--font-en); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--text-3); margin-top: 7px; text-transform: uppercase; letter-spacing: .6px; }

.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: 18px; box-shadow: var(--sh-sm);
}
.rc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 6px;
}
.rc-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px; }
.rc-hint { font-size: 11.5px; color: var(--text-4); }

.breakdown { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.bd-row {}
.bd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.bd-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.bd-score { font-size: 14px; font-weight: 800; font-family: var(--font-en); }
.bd-track { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 99px; transition: width 1.3s ease; }

.cert-area {
  background: var(--bg-alt); min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cert-spinner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; padding: 40px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#cert-img { width: 100%; display: block; cursor: pointer; }
#cert-img:hover { opacity: .96; }

.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.result-actions .btn-primary, .result-actions .btn-ghost { flex: 1; min-width: 160px; }
.result-foot { text-align: center; font-size: 11.5px; color: var(--text-4); }

/* ═══════════════ EDUCATIONAL ════════════════ */
#phase-edu { min-height: 100vh; background: var(--bg); padding: 0 0 80px; }

.edu-hero {
  background: linear-gradient(135deg, #1C1917, #2D1F1A);
  padding: 60px 0 56px; position: relative; overflow: hidden;
  margin-bottom: 0;
}
.edu-geo-bg { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.edu-geo-shape { opacity: .7; }
.edu-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  margin-bottom: 32px; transition: all .18s;
}
.edu-back:hover { background: rgba(255,255,255,.15); color: #fff; }
.edu-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}
.edu-h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 900; color: #fff;
  letter-spacing: -.8px; line-height: 1.1; margin-bottom: 14px;
}
.edu-sub { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; }

.edu-body { padding-top: 48px; }
.edu-section { margin-bottom: 52px; }
.edu-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.edu-sec-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-sec-title { font-size: clamp(18px, 3vw, 24px); font-weight: 800; color: var(--text-1); letter-spacing: -.3px; }
.edu-text-block { display: flex; flex-direction: column; gap: 14px; }
.edu-text-block p { font-size: 15px; color: var(--text-2); line-height: 1.8; }
.edu-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-lt); border: 1px solid var(--accent-md);
  border-radius: var(--r); padding: 16px 18px;
}
.callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.edu-callout p { font-size: 14px; color: var(--text-1); line-height: 1.65; }

.domains-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.domain-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 24px;
  box-shadow: var(--sh-sm); transition: all .2s;
}
.domain-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.dom-card-0 { border-top: 3px solid var(--d0); }
.dom-card-1 { border-top: 3px solid var(--d1); }
.dom-card-2 { border-top: 3px solid var(--d2); }
.dom-card-3 { border-top: 3px solid var(--d3); }
.dc-icon {
  width: 50px; height: 50px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.dom-card-0 .dc-icon { background: var(--d0b); color: var(--d0); }
.dom-card-1 .dc-icon { background: var(--d1b); color: var(--d1); }
.dom-card-2 .dc-icon { background: var(--d2b); color: var(--d2); }
.dom-card-3 .dc-icon { background: var(--d3b); color: var(--d3); }
.dc-name { font-size: 16px; font-weight: 800; color: var(--text-1); margin-bottom: 10px; }
.dc-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.dc-example {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
  font-size: 14px; font-weight: 700; color: var(--text-1);
  font-family: var(--font-en); letter-spacing: 1px;
}

.score-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
}
.score-table { width: 100%; border-collapse: collapse; }
.score-table thead tr { background: var(--bg-alt); }
.score-table th {
  padding: 12px 18px; font-size: 11.5px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .8px;
  text-align: start; border-bottom: 1px solid var(--border);
}
.score-table td {
  padding: 13px 18px; font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-en);
}
.score-table td:first-child { font-weight: 700; color: var(--text-1); }
.score-table tr:last-child td { border-bottom: none; }
.tier-5 td:first-child { color: #D97706; }
.tier-4 td:first-child { color: var(--d0); }
.tier-3 td:first-child { color: var(--d1); }
.tier-2 td:first-child { color: var(--accent); }
.tier-1 td:first-child { color: #CA8A04; }
.tier-0 td:first-child { color: var(--err); }

.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tip-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  box-shadow: var(--sh-sm); transition: all .2s;
  position: relative; overflow: hidden;
}
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.tip-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0;
  width: 3px; height: 100%; background: linear-gradient(to bottom, var(--accent), transparent);
}
.tip-num {
  font-size: 12px; font-weight: 800; color: var(--accent);
  font-family: var(--font-en); letter-spacing: 1px; margin-bottom: 8px;
}
.tip-card h4 { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 7px; }
.tip-card p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

.edu-cta { margin-top: 56px; }
.edu-cta-inner {
  background: linear-gradient(135deg, #1C1917, var(--accent-h));
  border-radius: var(--r-xl); padding: 52px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.edu-cta-geo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: .6;
}
.edu-cta-inner > p {
  font-size: clamp(18px, 3vw, 26px); font-weight: 800;
  color: #fff; margin-bottom: 24px; position: relative;
}
.btn-primary-light {
  background: #fff; color: var(--accent);
  border: none; border-radius: var(--r);
  padding: 15px 36px; font-size: 16px; font-weight: 700;
  font-family: inherit; box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .18s; position: relative;
}
.btn-primary-light:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* ═══════════════ RESPONSIVE ════════════════ */
@media (max-width: 560px) {
  .opts-grid        { grid-template-columns: 1fr; }
  .stats-row        { grid-template-columns: 1fr 1fr; }
  .stats-row .stat-card:last-child { grid-column: 1 / -1; }
  .domains-preview  { grid-template-columns: 1fr 1fr; }
  .domains-grid     { grid-template-columns: 1fr; }
  .tips-grid        { grid-template-columns: 1fr; }
  .intro-h1         { font-size: 34px; }
  .iq-display       { font-size: 100px; }
  .edu-cta-inner    { padding: 36px 24px; }
  .score-table th.txt-en, .score-table td.txt-en { display: none !important; }
}
@media (max-width: 400px) {
  .domains-preview { grid-template-columns: repeat(4,1fr); }
  .domain-card-sm { font-size: 10px; padding: 10px 6px; }
}
