/* ============================================================
   LANGUAGE LAB VIP — CEFR Seviye Sınavı
   Açık · Elit · zarif tema · göz yormayan sıcak fildişi + petrol + bronz
   ============================================================ */

:root {
  /* Açık elit paleti — sıcak fildişi/parşömen */
  --paper:      #f4f1ea;
  --paper-2:    #efeadf;
  --surface:    #fffdf8;
  --surface-2:  #faf6ee;
  --line:       #e7e1d3;
  --line-strong:#d9d1be;

  /* Birincil aksan — zarif petrol/yosun yeşili */
  --teal-700: #0f5e58;
  --teal-600: #157068;
  --teal-500: #1f867c;
  --teal-100: #d9ece9;

  /* İkincil aksan — bronz/altın (marka uyumu) */
  --gold-700: #9a6f22;
  --gold-600: #b8893a;
  --gold-100: #f4e9d2;

  /* Metin */
  --ink:      #2b303b;
  --ink-soft: #565d6c;
  --ink-mute: #8b91a0;

  /* Durum renkleri */
  --good:   #1f9d6b;
  --good-bg:#e2f3ea;
  --warn:   #c2772a;
  --bad:    #c0473f;

  /* Belirgin, çok katmanlı 3D gölgeler — sıcak tonlu ama net derinlik */
  --shadow-sm:
    0 1px 2px rgba(43,48,59,.06),
    0 3px 10px rgba(116,96,52,.12);
  --shadow-md:
    0 2px 4px rgba(43,48,59,.07),
    0 10px 22px -8px rgba(43,48,59,.18),
    0 20px 42px -14px rgba(116,96,52,.22);
  --shadow-lg:
    0 3px 6px rgba(43,48,59,.09),
    0 22px 44px -14px rgba(43,48,59,.24),
    0 44px 80px -24px rgba(116,96,52,.30);
  /* İç parıltı (gloss) — net kabartma hissi */
  --gloss: inset 0 2px 0 rgba(255,255,255,1), inset 0 -3px 8px rgba(116,96,52,.10);
  --gloss-strong: inset 0 2px 0 rgba(255,255,255,1), inset 0 -4px 12px rgba(116,96,52,.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   TEKNİK / DOKUNMATİK EKRAN ADAPTASYONU
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  scroll-behavior: smooth;
}
html, body { overscroll-behavior-y: none; height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
  padding:
    env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(217,236,233,.55) 0%, rgba(217,236,233,0) 60%),
    radial-gradient(950px 520px at 100% 2%, rgba(244,233,210,.55) 0%, rgba(244,233,210,0) 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(251,248,241,.9) 0%, rgba(251,248,241,0) 60%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 22px 18px 80px; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 24px; }

.fade-in { animation: fade .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   ÜST BAŞLIK
   ============================================================ */
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-md), var(--gloss);
  margin-bottom: 22px;
  overflow: hidden;
}
/* ince üst altın çizgi — marka vurgusu */
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-600) 30%, var(--teal-500) 70%, transparent);
  opacity: .55;
}
.topbar .brand-img { height: 56px; width: auto; object-fit: contain; flex: 0 0 auto; }
.topbar .brand-img.lab { height: 52px; }
.welcome { text-align: center; flex: 1 1 auto; min-width: 0; }
.welcome .en {
  font-weight: 800; font-size: 1.18rem; letter-spacing: .2px;
  color: var(--teal-700); text-wrap: balance;
}
.welcome .tr { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }

/* ============================================================
   KARTLAR
   ============================================================ */
.card {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface) 40%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-top-color: #ffffff;
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-lg), var(--gloss);
}
.card + .card { margin-top: 22px; }
.hero { text-align: center; padding: 44px 30px; }
/* hero kartına yumuşak ışıltı */
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(620px 300px at 50% -10%, rgba(217,236,233,.6), rgba(217,236,233,0) 70%);
}
.hero > * { position: relative; }

.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.5px; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.hero h1 .accent { color: var(--teal-600); }
.hero .lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; margin: 14px auto 4px; text-wrap: pretty; }
.hero .lead-tr { color: var(--ink-mute); font-size: .92rem; max-width: 600px; margin: 0 auto; }

/* CEFR şeridi */
.cefr-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.cefr-chip {
  font-weight: 800; font-size: .9rem; letter-spacing: .5px;
  color: var(--teal-700);
  background: linear-gradient(180deg, #e6f3f0, var(--teal-100));
  border: 1px solid #c5e0dc; border-radius: 999px; padding: 6px 14px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .16s ease, box-shadow .16s ease;
}
.cefr-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.8); }

/* Beceri kutucukları */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 8px; }
@media (min-width: 720px) { .skill-grid { grid-template-columns: repeat(4, 1fr); } }
.skill-tile {
  position: relative;
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 14px; text-align: center;
  box-shadow: var(--shadow-sm), var(--gloss);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, border-color .2s;
}
.skill-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--gloss); border-color: var(--teal-500); }
.skill-tile .ico {
  width: 46px; height: 46px; margin: 0 auto 10px; color: var(--teal-600);
  display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(180deg, #eaf4f1, var(--teal-100));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.8);
  padding: 9px;
}
.skill-tile .ico svg { width: 100%; height: 100%; }
.skill-tile h3 { font-size: .98rem; font-weight: 800; color: var(--ink); }
.skill-tile p { font-size: .8rem; color: var(--ink-mute); margin-top: 2px; }

/* Form alanı */
.field { margin: 24px 0 0; text-align: left; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .writing-area {
  width: 100%; font-family: inherit; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .writing-area:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}

/* İpucu satırı */
.tip-line {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: linear-gradient(180deg, #faf0d8, var(--gold-100)); border: 1px solid #ebdcba;
  border-radius: 14px; padding: 14px 16px; margin-top: 22px;
  font-size: .9rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.6);
}
.tip-line svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-700); margin-top: 1px; }
.tip-line b { color: var(--gold-700); }

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: .96rem; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, var(--teal-500) 0%, var(--teal-600) 55%, var(--teal-700) 100%);
  border: 1px solid var(--teal-700); border-radius: 12px; padding: 12px 22px;
  box-shadow:
    0 8px 18px -7px rgba(15,94,88,.55),
    0 2px 5px rgba(15,94,88,.2),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -2px 6px rgba(0,0,0,.12);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px -8px rgba(15,94,88,.6),
    0 3px 8px rgba(15,94,88,.22),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 6px rgba(0,0,0,.12);
  filter: brightness(1.04);
}
.btn:active { transform: translateY(0); box-shadow: 0 3px 8px -3px rgba(15,94,88,.5), inset 0 2px 6px rgba(0,0,0,.18); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn.lg { font-size: 1.05rem; padding: 15px 30px; border-radius: 14px; }
.btn.ghost {
  color: var(--teal-700); background: var(--surface);
  border: 1.5px solid var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--teal-500); background: var(--surface-2); }
.btn.subtle {
  color: var(--ink-soft); background: transparent; border: 1.5px solid var(--line-strong);
  box-shadow: none; font-weight: 700;
}
.btn.subtle:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--surface-2); }

/* ============================================================
   SINAV ÜST NAVİGASYONU (Pause + Stepper)
   ============================================================ */
.quiz-topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.navlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  color: var(--ink-soft); background: var(--surface-2);
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 15px;
  transition: border-color .15s, color .15s, background .15s;
}
.navlink svg { width: 15px; height: 15px; }
.navlink:hover { border-color: var(--teal-500); color: var(--teal-700); }

/* Üst nav sol küme: Home + Pause */
.topnav-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cool Home butonu */
.home-link {
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 18px -6px rgba(15,118,110,.6), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .16s ease, box-shadow .16s ease, border-color .15s;
}
.home-link svg { width: 16px; height: 16px; }
.home-link:hover {
  color: #fff; border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(15,118,110,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.home-link:active { transform: translateY(0); }

/* Sonuç ekranı aksiyonları */
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.result-actions .home-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* Bölüm adımı göstergesi */
.stepper { display: flex; align-items: center; gap: 7px; }
.stepper .step { display: flex; align-items: center; gap: 7px; }
.stepper .dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  color: var(--ink-mute); transition: all .2s ease;
}
.stepper .dot svg { width: 15px; height: 15px; }
.stepper .step.active .dot { background: var(--teal-600); border-color: var(--teal-700); color: #fff; box-shadow: 0 0 0 4px var(--teal-100); }
.stepper .step.done .dot { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.stepper .link { width: 13px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.stepper .step.done + .link { background: var(--good); }

/* ilerleme başlığı */
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem; color: var(--teal-700);
  background: linear-gradient(180deg, #e6f3f0, var(--teal-100)); border: 1px solid #c5e0dc;
  border-radius: 999px; padding: 7px 15px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
}
.section-tag svg { width: 18px; height: 18px; }
.qcount { font-size: .88rem; font-weight: 700; color: var(--ink-mute); }

.bar { height: 9px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(43,48,59,.1); }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--gold-600)); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: width .4s cubic-bezier(.2,.7,.2,1); }

/* ============================================================
   SORU GÖVDESİ
   ============================================================ */
.passage {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--teal-500);
  border-radius: 12px; padding: 16px 18px; margin: 18px 0; color: var(--ink-soft);
  font-size: .98rem; line-height: 1.7; white-space: pre-wrap;
}
.q-stem { font-size: 1.22rem; font-weight: 800; color: var(--ink); margin: 18px 0 6px; line-height: 1.4; text-wrap: pretty; }
.q-instr { font-size: .88rem; color: var(--ink-mute); margin-bottom: 16px; }

.options { display: flex; flex-direction: column; gap: 11px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  font-family: inherit; font-size: 1rem; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  border: 1.5px solid var(--line-strong);
  border-radius: 13px; padding: 14px 16px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
  transition: all .16s cubic-bezier(.2,.7,.2,1);
}
.option .key {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line-strong); color: var(--teal-700);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
  transition: all .16s ease;
}
.option:hover { border-color: var(--teal-500); transform: translateX(3px); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.7); }
.option.selected {
  border-color: var(--teal-600);
  background: linear-gradient(180deg, #e6f3f0, var(--teal-100));
  box-shadow: 0 8px 18px -8px rgba(15,94,88,.35), inset 0 1px 0 rgba(255,255,255,.7);
}
.option.selected .key { background: linear-gradient(180deg, var(--teal-500), var(--teal-700)); color: #fff; border-color: var(--teal-700); box-shadow: 0 4px 10px -3px rgba(15,94,88,.5), inset 0 1px 0 rgba(255,255,255,.3); }

/* Dinleme */
.audio-play {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(180deg, #c79444 0%, var(--gold-600) 55%, var(--gold-700) 100%);
  border: 1px solid var(--gold-700); border-radius: 13px; padding: 13px 24px;
  box-shadow:
    0 8px 18px -7px rgba(154,111,34,.55),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 6px rgba(0,0,0,.12);
  transition: transform .14s, filter .14s, box-shadow .14s;
}
.audio-play:hover { transform: translateY(-2px); filter: brightness(1.05); }
.audio-play.playing { opacity: .65; }
.audio-play svg { width: 20px; height: 20px; }
.replay-note { font-size: .8rem; color: var(--ink-mute); margin-top: 9px; }

/* Yazma */
.writing-area { min-height: 180px; resize: vertical; line-height: 1.6; }
.write-meta { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--ink-mute); margin-top: 8px; flex-wrap: wrap; }
.write-meta b { color: var(--teal-700); }

/* Konuşma */
.speak-zone { text-align: center; padding: 14px 0 4px; }
.mic-btn {
  width: 96px; height: 96px; border-radius: 50%; cursor: pointer; position: relative;
  display: grid; place-items: center; margin: 6px auto 0; border: none; color: #fff;
  background: radial-gradient(circle at 38% 30%, #2fa093, var(--teal-600) 50%, var(--teal-700));
  box-shadow:
    0 16px 32px -12px rgba(15,94,88,.55),
    inset 0 3px 10px rgba(255,255,255,.35),
    inset 0 -6px 14px rgba(0,0,0,.22);
  transition: transform .12s, box-shadow .25s;
  /* 25.06.2026 — Tablet/telefon long-press "Kaydet/Paylaş" menüsünü tamamen engelle.
     -webkit-touch-callout: iOS Safari'de uzun basışta çıkan paylaş menüsünü kapatır.
     -webkit-tap-highlight-color: gri/mavi tap highlight'ı kaldırır.
     user-drag: butonun sürüklenebilir görsel sanılmasını engeller. */
  touch-action: none;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none; user-drag: none;
}
/* SVG'nin "resim" gibi algılanıp uzun basışta context menü açmasını engelle.
   pointer-events:none → tüm dokunma butonun kendisine gider, SVG'ye gitmez. */
.mic-btn svg { width: 38px; height: 38px; pointer-events: none; -webkit-user-drag: none; user-drag: none; }
.mic-btn * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.mic-btn:hover { transform: scale(1.04); }
.mic-btn.recording { background: radial-gradient(circle at 50% 35%, #e06a5f, #b83b32); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(192,71,63,.45); } 70% { box-shadow: var(--shadow-md), 0 0 0 18px rgba(192,71,63,0); } 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(192,71,63,0); } }
.mic-hint { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.mic-hint .live { color: var(--bad); font-weight: 800; }
.transcript {
  margin: 16px auto 0; max-width: 640px; min-height: 70px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--ink); font-size: 1rem; line-height: 1.6;
}
.transcript:empty::before { content: attr(data-ph); color: var(--ink-mute); }
.mic-denied { margin-top: 14px; color: var(--bad); font-size: .9rem; font-weight: 600; }
.mic-help-block { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; line-height: 1.55; font-weight: 500; }
.mic-help-block b { color: var(--ink); }
.mic-help-block .retry-mic { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--teal-500); background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; }
.mic-help-block .retry-mic:hover { filter: brightness(1.08); }

/* Kayıt sırasında canlı ses seviyesi göstergesi (her cihazda mikrofonun çalıştığını teyit eder) */
.mic-level { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 12px auto 0; max-width: 220px; height: 28px; }
.mic-level span { flex: 1; height: 6px; min-height: 6px; border-radius: 3px; background: var(--line-strong); transition: height .08s linear, background-color .15s; }
.mic-level span.on { background: linear-gradient(180deg, #2fa093, var(--teal-600)); }
.mic-level span.hot { background: linear-gradient(180deg, #f0b942, #c87a16); }

/* ============================================================
   MİKROFON ÖN-TESTİ (start screen) — cihaz bağımsız doğrulama
   ============================================================ */
.mic-insecure {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 560px; margin: 14px auto 0; padding: 12px 14px;
  background: linear-gradient(135deg, #fff4e5, #ffe7c2);
  border: 1px solid #e8b870; border-radius: 12px;
  color: #6b3d10; font-size: .9rem; line-height: 1.5;
}
.mic-insecure svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: #b8731c; }
.mic-insecure b { color: #5a330a; }
.mic-insecure p { margin: 4px 0 0; font-size: .85rem; }

.mic-precheck { max-width: 560px; margin: 16px auto 0; text-align: center; }
.mic-test-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; font-weight: 800; font-size: .95rem; border: none;
  box-shadow: 0 10px 22px -8px rgba(15,94,88,.45), inset 0 2px 0 rgba(255,255,255,.25);
  cursor: pointer; transition: transform .15s, box-shadow .2s, filter .15s;
}
.mic-test-btn svg { width: 20px; height: 20px; }
.mic-test-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.mic-test-btn:active { transform: translateY(0); }
.mic-test-btn[aria-expanded="true"] { background: linear-gradient(135deg, var(--gold-600), var(--gold-700)); }

.mic-test-panel {
  margin-top: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: micPanelIn .25s ease both;
}
@keyframes micPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.mic-test-status {
  font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px;
  font-weight: 600;
}
.mic-test-status.success { color: var(--teal-700); }
.mic-test-status.error { color: var(--bad); }
.mic-test-status.live { color: var(--bad); }
.mic-test-status.live::before {
  content: "● "; animation: micPulse .9s infinite;
}
@keyframes micPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.mic-meter {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; height: 56px; margin: 8px auto 14px;
  padding: 8px 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
  max-width: 320px;
}
.mic-meter span {
  flex: 1; height: 8px; min-height: 8px;
  background: var(--line-strong); border-radius: 3px;
  transition: height .08s linear, background-color .15s;
}
.mic-meter span.on { background: linear-gradient(180deg, #2fa093, var(--teal-600)); }
.mic-meter span.hot { background: linear-gradient(180deg, #f0b942, #c87a16); }

.mic-test-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mic-test-actions .btn { padding: 9px 18px; font-size: .9rem; }

.mic-test-help {
  margin-top: 14px; padding: 12px 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-soft); font-size: .85rem; line-height: 1.55; text-align: left;
}
.mic-test-help b { color: var(--ink); }
.mic-test-help ul { margin: 6px 0 0 18px; padding: 0; }
.mic-test-help li { margin: 4px 0; }

@media (max-width: 480px) {
  .mic-test-btn { width: 100%; justify-content: center; }
  .mic-meter { max-width: 100%; }
}

/* alt aksiyonlar */
.foot-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ============================================================
   SONUÇ EKRANI
   ============================================================ */
.result-hero { text-align: center; padding: 40px 30px; }
.level-badge { width: 138px; height: 138px; margin: 6px auto 20px; position: relative; }
/* yumuşak altın halka parıltısı */
.level-badge::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,58,.28), rgba(184,137,58,0) 70%);
  filter: blur(2px);
}
.level-badge .inner {
  position: relative;
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 38% 28%, #2fa093 0%, var(--teal-600) 45%, var(--teal-700) 100%);
  color: #fff;
  box-shadow:
    0 20px 40px -14px rgba(15,94,88,.55),
    0 8px 16px -8px rgba(43,48,59,.3),
    inset 0 3px 12px rgba(255,255,255,.35),
    inset 0 -6px 16px rgba(0,0,0,.22);
  border: 4px solid var(--gold-600);
}
/* cam parıltısı (gloss) */
.level-badge .inner::after {
  content: ""; position: absolute; left: 16%; right: 16%; top: 12%; height: 38%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  pointer-events: none;
}
.level-badge .lvl { position: relative; z-index: 1; font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -1px; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.level-badge .lvl-name { position: relative; z-index: 1; font-size: .8rem; font-weight: 700; opacity: .92; margin-top: 4px; }
.result-hero h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--ink); text-wrap: balance; }
.result-hero h2 span { color: var(--teal-600) !important; }
.result-hero .desc { color: var(--ink-soft); margin-top: 8px; }
.result-hero .desc-tr { color: var(--ink-mute); font-size: .92rem; margin-top: 2px; }

.breakdown h3 { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.breakdown h3 svg { width: 22px; height: 22px; color: var(--teal-600); }

.skill-results { display: grid; gap: 16px; }
@media (min-width: 640px) { .skill-results { grid-template-columns: repeat(2, 1fr); } }
.skill-result {
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
  box-shadow: var(--shadow-md), var(--gloss);
}
.skill-result .sr-lvl { box-shadow: 0 5px 12px -4px rgba(15,94,88,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.skill-result .sr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skill-result .sr-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.skill-result .sr-name svg { width: 19px; height: 19px; color: var(--teal-600); }
.skill-result .sr-lvl {
  font-weight: 900; font-size: .95rem; color: #fff; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(160deg, var(--teal-500), var(--teal-700));
}
.meter { height: 11px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(43,48,59,.1); }
.meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--gold-600)); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.skill-result .sr-note { font-size: .84rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.skill-result .sr-note b { color: var(--teal-700); }
.skill-result .sr-note .tr { display: block; margin-top: 5px; color: var(--ink-mute); font-size: .78rem; }

/* CEFR alt-boyut çubukları (Writing & Speaking için ayrıntılı kırılım) */
.dim-bars { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.dim-row { display: grid; grid-template-columns: 1fr 90px 38px; align-items: center; gap: 10px; font-size: .78rem; }
.dim-label { color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.dim-label .tr { color: var(--ink-mute); font-weight: 500; }
.dim-bar { height: 7px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.dim-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.dim-row.good .dim-bar > span { background: linear-gradient(90deg, #2fa093, var(--teal-600)); }
.dim-row.ok   .dim-bar > span { background: linear-gradient(90deg, #c9a14a, var(--gold-600)); }
.dim-row.weak .dim-bar > span { background: linear-gradient(90deg, #d97a72, #b04136); }
.dim-pct { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); text-align: right; font-size: .8rem; }
.dim-row.good .dim-pct { color: var(--teal-700); }
.dim-row.ok   .dim-pct { color: var(--gold-700); }
.dim-row.weak .dim-pct { color: var(--bad); }
@media (max-width: 480px) {
  .dim-row { grid-template-columns: 1fr 70px 36px; gap: 8px; font-size: .74rem; }
}

.breakdown { margin-top: 4px; }
.adv-list { display: flex; flex-direction: column; gap: 12px; }
.adv-item {
  display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
}
.adv-item .dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; }
.adv-item.good .dot { background: var(--good); }
.adv-item.work .dot { background: var(--warn); }
.adv-item b { color: var(--ink); }
.adv-item .tr { display: block; color: var(--ink-mute); font-size: .82rem; margin-top: 3px; }

.scorelines { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.scoreline {
  flex: 1 1 140px; min-width: 120px; text-align: center;
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 14px; box-shadow: var(--shadow-md), var(--gloss);
  transition: transform .18s ease, box-shadow .18s ease;
}
.scoreline:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--gloss); }
.scoreline .n { font-size: 1.8rem; font-weight: 900; color: var(--teal-700); }
.scoreline .l { font-size: .8rem; color: var(--ink-mute); margin-top: 2px; }

.footer-credit { text-align: center; color: var(--ink-mute); font-size: .78rem; margin-top: 30px; }
.footer-credit b { color: var(--ink-soft); }

/* ============================================================
   DURAKLATMA KATMANI (overlay)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(43,48,59,.42); backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
.overlay-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 30px; max-width: 440px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
}
.overlay-card .pause-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: var(--teal-700);
  background: var(--teal-100); border: 1px solid #c5e0dc;
}
.overlay-card .pause-ico svg { width: 30px; height: 30px; }
.overlay-card h3 { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.overlay-card p { color: var(--ink-soft); font-size: .92rem; margin-top: 10px; line-height: 1.55; }
.overlay-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.overlay-actions .btn { width: 100%; }

/* ============================================================
   DOKUNMATİK + RESPONSIVE + ERİŞİLEBİLİRLİK
   ============================================================ */
button, .option, .skill-tile, .cefr-chip, .mic-btn, .btn, .navlink, label {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;          /* iOS Safari uzun basış "Kaydet/Paylaş" menüsünü engelle */
  -webkit-tap-highlight-color: transparent;
}
/* 25.06.2026 — Buton içindeki SVG ikonları "resim" olarak algılanıp uzun basışta
   tarayıcı context menüsü açıyor (özellikle tablet Safari + Samsung Internet).
   Tüm tıklanabilir element içindeki SVG'leri pointer-events:none yap → dokunma
   her zaman butonun kendisine gider, SVG'ye değil. */
button svg, .option svg, .btn svg, .navlink svg, .mic-btn svg, .audio-play svg {
  pointer-events: none;
  -webkit-user-drag: none; user-drag: none;
}
input, textarea, .passage, .q-stem, p, h1, h2, h3 { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
input, textarea, select { font-size: 16px; }
.mic-btn, .option, .btn, .navlink { touch-action: manipulation; }
.mic-btn { touch-action: none; }

@media (hover: none) and (pointer: coarse) {
  .option { padding: 16px; min-height: 56px; }
  .btn, .navlink { min-height: 46px; }
  .mic-btn { width: 100px; height: 100px; }
  .skill-tile { min-height: 64px; }
  .option:hover, .btn:hover, .skill-tile:hover, .navlink:hover { transform: none; }
}

@media (max-width: 820px) {
  .wrap { padding: 16px 14px 70px; }
  .topbar .brand-img { height: 46px; }
  .topbar .brand-img.lab { height: 42px; }
}

@media (max-width: 560px) {
  .wrap { padding: 12px 11px 64px; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar .brand-img { height: 38px; }
  .topbar .brand-img.lab { height: 34px; }
  .welcome .en { font-size: .92rem; }
  .welcome .tr { font-size: .72rem; }
  .card { padding: 20px 16px; }
  .hero, .result-hero { padding: 28px 18px; }
  .q-stem { font-size: 1.1rem; }
  .scoreline { min-width: 96px; padding: 13px; }
  .scoreline .n { font-size: 1.45rem; }
  .stepper .step .lbl { display: none; }
  .quiz-topnav { gap: 10px; }
  .foot-actions { flex-direction: column-reverse; align-items: stretch; }
  .foot-actions .foot-right { margin-left: 0; }
  .foot-right { width: 100%; }
  .foot-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .cefr-chip { padding: 5px 9px; font-size: .8rem; }
  .stepper .link { width: 8px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .topbar { margin-bottom: 10px; }
  .topbar .brand-img { height: 32px; }
}

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

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; border-radius: 6px; }

@media print { body { background: #fff; } .mic-btn, .foot-actions, .quiz-topnav, .overlay { display: none !important; } }
