/* English Test Lab — içerik sayfalarının (seviye, bölüm, test, yazma, konu anlatımı) ortak stili */
:root {
  --ink: #17121C; --ink-soft: #4A4350; --paper: #F5F5F7; --page: #FFFFFF; --paper-raised: #FFFFFF;
  --amber: #FE6521; --amber-deep: #E5531A; --teal: #1F8A5F;
  --text: #17121C; --text-muted: #6E6773; --line: #E7E7EC; --radius: 14px; --accent: #FE6521; --accent-deep: #D9480F; --accent-soft: #FFF1E6; --accent-rgb: 254,101,33; --brand: #FE6521;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; background: var(--page, #FFFFFF); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.btn { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); cursor: pointer; background: var(--paper-raised); font-family: inherit; color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.eyebrow { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 12px; letter-spacing: .06em; color: var(--amber-deep); text-transform: uppercase; }

/* geri butonu */
.back-link-row, .back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.back-link-row a, .back-row a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-raised); transition: border-color .15s, color .15s;
}
.back-link-row a:hover, .back-row a:hover { border-color: var(--ink); color: var(--ink); }
.back-row .unit-title { font-size: 13px; color: var(--text-muted); }
.back-row .unit-title b { color: var(--ink); }

.site-footer { text-align: center; padding: 26px 20px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--line); }
.not-found { max-width: 600px; margin: 80px auto; text-align: center; color: var(--text-muted); padding: 0 20px; }
.not-found a { color: var(--accent); font-weight: 700; }

/* ---------------- seviye ve bölüm sayfaları ---------------- */
.section { padding: 40px 28px 64px; max-width: 1160px; margin: 0 auto; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 10px; }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
a.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(23,18,28,.12); }
.cat-card.soon { opacity: .5; cursor: default; }
.cat-img { height: 200px; position: relative; display: flex; align-items: flex-end; padding: 20px; }
.cat-img.center { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.cat-img svg { width: 44px; height: 44px; }
.cat-tag { color: #fff; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 25px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.25); line-height: 1.25; }
.cat-card.soon .cat-tag { color: var(--ink-soft); text-shadow: none; font-size: 21px; }
.cat-body { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); flex: 1; }
.cat-meta { font-size: 13.5px; color: var(--text-muted); white-space: nowrap; }
.cat-arrow { color: var(--accent); font-weight: 700; font-size: 18px; transition: transform .25s ease; display: inline-block; }
a.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* yazma aktiviteleri için zengin kartlar */
.cat-grid.writing { gap: 30px; }
.wcard { position: relative; display: block; background: var(--paper-raised); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(23,18,28,.08); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease; }
.wcard:hover { transform: translateY(-7px); box-shadow: 0 18px 34px rgba(23,18,28,.16); }
.wcard .w-img { position: relative; height: 210px; overflow: visible; padding: 18px; display: flex; flex-direction: column; }
.wcard .w-img::before { content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .4s ease; }
.wcard:hover .w-img::before { transform: scale(1.25); }
.w-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 20px; letter-spacing: .02em; z-index: 2; }
.w-title { color: #fff; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.28); margin-top: 40px; z-index: 2; }
.w-pills { position: absolute; bottom: 0; left: 16px; display: flex; gap: 8px; transform: translateY(50%); z-index: 3; }
.w-pill { padding: 10px 15px; border-radius: 10px; font-weight: 800; font-size: 12px; color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.2); transition: transform .25s ease; white-space: nowrap; }
.wcard:hover .w-pill { transform: translateY(-4px); }
.w-pill.n { background: var(--ink); }
.w-pill.level { background: var(--amber-deep); }
.w-body { padding: 32px 22px 22px; display: flex; align-items: center; justify-content: space-between; }
.w-cta { font-weight: 700; font-size: 14px; color: var(--ink); transition: color .2s ease; }
.wcard:hover .w-cta { color: var(--accent); }
.wcard .cat-arrow { color: var(--ink); }
.wcard:hover .cat-arrow { transform: translateX(5px); }

/* ---------------- ünite kabuğu (konu anlatımı + boşluk doldurma) ---------------- */
.test-shell { background: var(--page, #FFFFFF); min-height: calc(100vh - 70px); }
.test-wrap { max-width: 1060px; margin: 0 auto; padding: 28px 28px 70px; }
.test-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .test-layout { grid-template-columns: 1fr; } .test-sidebar { display: none; } }
.test-sidebar { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: sticky; top: 24px; }
.sidebar-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink); }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 13.5px; color: var(--text-muted); border-left: 3px solid transparent; }
.sidebar-link + .sidebar-link { border-top: 1px solid var(--line); }
.sidebar-link:hover { background: #F5F5F7; }
.sidebar-link.active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); background: var(--accent-soft); }
.sidebar-link .ico { width: 18px; text-align: center; flex-shrink: 0; opacity: .8; }
.sidebar-link .meta { margin-left: auto; font-size: 11px; }
.test-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; box-shadow: 0 2px 14px rgba(23,18,28,.05); }
@media (max-width: 600px) { .test-card { padding: 22px 18px; } .test-wrap { padding: 20px 16px 60px; } }

.progress-row { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.progress-track { flex: 1; min-width: 140px; height: 8px; background: var(--paper); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--accent); border-radius: 5px; width: 0%; transition: width .3s ease; }
.progress-label { font-size: 12.5px; color: var(--text-muted); font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; white-space: nowrap; }
.exercise-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.example-line { background: #F5F5F7; border-left: 3px solid var(--amber-deep); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.example-line b { color: var(--ink); }

.fill-sentence { margin-bottom: 20px; font-size: 15px; color: var(--ink); line-height: 2.1; }
.fill-sentence .num { font-weight: 700; margin-right: 4px; color: var(--text-muted); font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 13px; }
.fill-sentence .hint { color: var(--text-muted); font-style: italic; font-size: 13.5px; }
.fill-input { display: inline-block; width: 110px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); text-align: center; font-size: 15px; padding: 8px 10px; font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; color: var(--ink); margin: 0 4px; font-weight: 600; transition: border-color .15s, box-shadow .15s, transform .1s; }
.fill-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,18,28,.08); transform: translateY(-1px); background: var(--paper-raised); }
.fill-input.correct { border-color: var(--teal); color: var(--teal); background: #EAF5F1; box-shadow: 0 0 0 3px rgba(47,107,94,.12); }
.fill-input.incorrect { border-color: #C4453A; color: #C4453A; background: #FBEAE8; box-shadow: 0 0 0 3px rgba(196,69,58,.12); }
.fill-input:disabled { opacity: 1; }
.fill-hint { font-size: 12px; color: var(--teal); margin-left: 8px; display: none; }
.fill-hint.show { display: inline; }
.fill-exp { display: none; font-size: 12px; color: var(--text-muted); margin-top: 2px; margin-left: 2px; }
.fill-exp.show { display: block; }

.quiz-buttons { display: flex; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.submit-btn { background: var(--ink); color: #fff; border: none; padding: 13px 28px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s; font-family: inherit; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23,18,28,.18); }
.score-banner { display: none; margin-top: 24px; background: var(--ink); color: #fff; border-radius: 12px; padding: 18px 22px; font-weight: 700; font-size: 15px; }
.score-banner.show { display: block; }

/* konu anlatımı */
.tutor-h1 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 26px; font-weight: 800; color: var(--ink); }
.tutor-lede { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; margin-bottom: 28px; line-height: 1.6; }
.tutor-section { margin-top: 34px; }
.tutor-section h2 { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tutor-section h2 .n { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 12px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; }
.tutor-section p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.7; }
.table-wrap { overflow-x: auto; }
table.gtable { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
table.gtable th { background: var(--ink); color: #fff; text-align: left; padding: 10px 14px; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
table.gtable th:first-child { border-radius: 8px 0 0 0; }
table.gtable th:last-child { border-radius: 0 8px 0 0; }
table.gtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
table.gtable tr:nth-child(even) td { background: #F5F5F7; }
table.gtable td b { color: var(--ink); }
table.gtable td.hl { color: var(--accent-deep); font-weight: 700; }
.usage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 640px) { .usage-grid { grid-template-columns: 1fr; } }
.usage-card { background: #F5F5F7; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.usage-card .label { font-size: 11.5px; font-weight: 700; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .02em; }
.usage-card .ex { margin-top: 6px; font-size: 14px; color: var(--ink); }
.note-box { background: #FDF3E4; border-left: 3px solid var(--amber-deep); border-radius: 8px; padding: 12px 16px; margin-top: 18px; font-size: 13.5px; color: #8A5A17; line-height: 1.6; }
.tutor-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.tutor-cta a { background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 9px; font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .15s; }
.tutor-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23,18,28,.18); }
.tutor-cta a.ghost { background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); }

/* ---------------- okuma (çoktan seçmeli) ---------------- */
.quiz-wrap { padding: 40px 28px 80px; max-width: 780px; margin: 0 auto; }
.quiz-wrap.wide { max-width: 1080px; }
.quiz-head h1 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.quiz-head p { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.passage-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-top: 20px; }
.passage-card h2 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 20px; color: var(--ink); margin-bottom: 12px; }
.passage-card p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.passage-card p + p { margin-top: 14px; }
.q-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; }
.q-num { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 12px; color: var(--amber-deep); font-weight: 600; }
.q-text { font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 6px; }
.q-options { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.q-option { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-soft); transition: border-color .15s; }
.q-option:hover { border-color: var(--ink); }
.q-option input { accent-color: var(--ink); width: 16px; height: 16px; }
.q-option.correct { border-color: var(--teal); background: #EAF5F1; color: var(--teal); font-weight: 600; }
.q-option.incorrect { border-color: #C4453A; background: #FBEAE8; color: #C4453A; font-weight: 600; }
.q-explain { display: none; margin-top: 12px; font-size: 13px; color: var(--text-muted); background: var(--paper); border-radius: 8px; padding: 10px 14px; line-height: 1.5; }
.q-explain.show { display: block; }
.quiz-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-score { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); display: none; }
.quiz-score.show { display: inline-block; }

/* ---------------- kelime eşleştirme ---------------- */
.match-wrap { padding: 40px 28px 80px; max-width: 900px; margin: 0 auto; }
.match-head h1 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.match-head p { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.match-status { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.match-status .score { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-weight: 600; color: var(--ink); }
.match-status button { padding: 8px 16px; font-size: 13px; }
.zone-label { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 12px; color: var(--amber-deep); font-weight: 600; margin: 28px 0 12px; letter-spacing: .03em; }
.img-grid, .word-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 640px) { .img-grid, .word-grid { grid-template-columns: repeat(2, 1fr); } }
.img-tile { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; user-select: none; transition: transform .1s; cursor: pointer; }
.img-tile svg { width: 100%; height: 100%; max-width: 64px; max-height: 64px; }
.img-visual { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.drag-box { width: 100%; border: 2px dashed var(--amber-deep); border-radius: 8px; background: #FBF3E4; padding: 8px 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--amber-deep); letter-spacing: .03em; cursor: grab; text-transform: uppercase; }
.drag-box:active { cursor: grabbing; }
.img-tile.selected .drag-box { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }
.img-tile.selected { transform: scale(1.03); }
.img-tile.matched { opacity: .25; pointer-events: none; }
.word-tile { background: var(--paper-raised); border: 2px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 70px; font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; text-align: center; padding: 10px; transition: border-color .15s, background .15s; }
.word-tile.dragover { border-color: var(--ink); background: var(--paper); }
.word-tile.matched { border-style: solid; border-color: var(--teal); background: #EAF5F1; color: var(--teal); pointer-events: none; }
.word-tile.wrong { border-color: #C4453A; background: #FBEAE8; animation: shake .3s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.win-banner { display: none; margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px; text-align: center; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 19px; }
.win-banner.show { display: block; }

/* ---------------- yazma ---------------- */
.writing-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; margin-top: 20px; }
.prompt-col { position: sticky; top: 24px; }
@media (max-width: 860px) { .writing-grid { grid-template-columns: 1fr; } .prompt-col { position: static; } }
.prompt-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.prompt-card .lbl { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 12px; color: var(--amber-deep); font-weight: 600; }
.prompt-card p { font-size: 15px; color: var(--ink); margin-top: 8px; line-height: 1.6; }
.prompt-card ul { margin-top: 10px; padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
textarea#answerBox { width: 100%; min-height: 340px; padding: 18px; font-size: 15px; font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; line-height: 1.6; }
textarea#answerBox:focus { outline: none; border-color: var(--ink); }
textarea#answerBox[readonly] { background: #F5F5F7; }
.word-count { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.feedback { display: none; margin-top: 32px; }
.feedback.show { display: block; }
.fb-summary { background: var(--ink); border-radius: var(--radius); padding: 24px 26px; color: #fff; }
.fb-summary .n { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 34px; font-weight: 600; }
.fb-summary .lbl2 { font-size: 13px; color: #C9C2D0; margin-top: 4px; }
.fb-group { margin-top: 20px; }
.fb-group h3 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.fb-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); }
.fb-item.error { background: #FBEAE8; border-color: #EFC2BD; color: #8A3229; }
.fb-item.warn { background: #FDF3E4; border-color: #F0D8AC; color: #8A5A17; }
.fb-item.good { background: #EAF5F1; border-color: #BFE1D5; color: #1F5C4D; }

/* English Test Lab teması */
.btn { border-radius: 999px; }
.back-link-row a, .back-row a { border-radius: 999px; padding: 8px 16px; }
.cat-card { border-radius: 22px; }
.wcard { border-radius: 22px; }
.test-card, .test-sidebar, .passage-card, .q-card, .prompt-card { border-radius: 20px; }
.section-head h2, .tutor-h1, .quiz-head h1, .match-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.01em; line-height: 1.1; }
.eyebrow { font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.submit-btn, .quiz-buttons button { border-radius: 999px; }
table.gtable th { background: var(--ink); }

/* ---------- üst şerit ---------- */
.site-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 28px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.sb-brand { display: flex; align-items: center; gap: 9px; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.sb-brand img { width: 32px; height: 32px; border-radius: 50%; }
.sb-crumbs { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.sb-crumbs a { color: var(--ink-soft); font-weight: 600; padding: 6px 2px; }
.sb-crumbs a:hover { color: var(--accent-deep); }
.sb-crumbs [aria-current] { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.sb-sep { color: #B9B0AA; }
.sb-user { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; }
.sb-user:hover { border-color: var(--ink); }
.sb-av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.sb-login { font-size: 13.5px; font-weight: 700; color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 720px) {
  .site-bar { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }
  .sb-brand { font-size: 0; gap: 0; }
  .sb-name { display: none; }
  .sb-user { padding: 3px; }
  .sb-crumbs { order: 3; flex-basis: 100%; font-size: 12.5px; padding-bottom: 2px; }
}
.section { padding-top: 32px; }

/* ---------- daha kompakt kartlar ---------- */
.cat-img { height: 150px; }
.cat-img .st-badge, .w-img .st-badge { position: absolute; top: 12px; right: 12px; }
.w-img { position: relative; }
.st-badge { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.st-badge.done { color: #17603F; }
.st-badge.prog { color: #A84212; }

/* ---------- ünite kartları ---------- */
.cat-grid.units { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
.unit-card { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.unit-card:hover { box-shadow: 0 14px 28px rgba(23,18,28,.10); transform: translateY(-2px); }
.unit-card.next { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.16); }
.uc-band { position: relative; height: 104px; padding: 16px 18px; display: flex; align-items: flex-end; }
.uc-num { position: absolute; top: 14px; left: 16px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.uc-tag { color: #fff; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.22); }
.uc-chip { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.uc-chip.done { color: #17603F; }
.uc-chip.prog { color: #A84212; }
.uc-chip.next { background: var(--ink); color: #fff; }
.uc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.uc-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.uc-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.uc-prog { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.uc-bar { flex: 1; height: 8px; border-radius: 8px; background: #EEEEF2; overflow: hidden; }
.uc-bar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.unit-card.done .uc-bar i { background: var(--teal); }
.uc-items { list-style: none; margin: 14px 0 16px; border-top: 1px solid var(--line); }
.uc-items a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); min-height: 44px; }
.uc-items a:hover .ui-name { color: var(--accent-deep); }
.ui-ic { width: 26px; height: 26px; border-radius: 8px; background: #F4EFEB; color: var(--ink-soft); display: grid; place-items: center; flex: none; }
.ui-ic svg { width: 15px; height: 15px; }
.ui-ic.play { background: var(--accent-soft); color: var(--accent-deep); }
.ui-name { flex: 1; font-weight: 600; min-width: 0; }
.ui-st { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.ui-st.done { color: #17603F; font-weight: 700; }
.ui-st.prog { color: #A84212; font-weight: 700; }
.uc-cta { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; min-height: 44px; transition: background .15s; }
.uc-cta:hover { background: var(--accent-deep); }
.unit-card.done .uc-cta { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.unit-card.done .uc-cta:hover { border-color: var(--accent); color: var(--accent-deep); }
.sb-user, .sb-login { margin-left: auto; }

/* ---------- seviye sayfası ---------- */
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.lvl-cat { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.lvl-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(23,18,28,.10); }
.lc-band { position: relative; height: 112px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.lc-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); font-size: 24px; line-height: 1; margin-bottom: 4px; }
.lc-band { height: 124px; }
.lc-name { color: #fff; font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.lc-body { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.lc-body .uc-prog { margin-top: 0; }
.lc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-muted); }
.lvl-cat:hover .cat-arrow { transform: translateX(4px); }
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.soon-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.soon-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); background: #fff; border: 1px dashed #D3D3DA; padding: 6px 12px; border-radius: 999px; }

/* ---------- okuma kartları ---------- */
.read-card .uc-band { height: 84px; align-items: flex-start; }
.rc-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.95); background: rgba(0,0,0,.14); padding: 5px 10px; border-radius: 999px; }
.rc-sum { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 6px; }
.rc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.rc-meta span { font-size: 12.5px; color: var(--ink-soft); background: #F4EFEB; padding: 5px 10px; border-radius: 999px; }

/* ---------- metin içi boşluk doldurma (Use of English) ---------- */
.cz-card p { font-size: 16.5px; line-height: 2.35; color: var(--ink); }
.cz { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 3px; margin: 0 2px; border-radius: 999px; background: #F4EFEB; border: 1px dashed #CFC5BE; vertical-align: middle; line-height: 1.2; white-space: nowrap; }
.cz.done { background: #FFF6EF; border: 1px solid #FBD9C2; }
.cz-n { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.cz-sep { color: #B9B0AA; font-size: 13px; }
.cz-opt { position: relative; cursor: pointer; }
.cz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cz-opt span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1.5px solid #D6CDC7; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: border-color .15s, background .15s, color .15s; }
.cz-opt:hover input:not(:checked):not(:disabled) + span { border-color: var(--ink); color: var(--ink); }
.cz-opt input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb),.45); outline-offset: 2px; }
.cz-opt input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.18); }
.cz-opt input:disabled + span { cursor: default; }
.cz.right, .cz.wrong, .cz.blank { border-style: solid; }
.cz.right { background: #EAF5F1; border-color: #BFE1D5; }
.cz.wrong, .cz.blank { background: #FBEAE8; border-color: #EFC2BD; }
.cz-opt.correct span { background: var(--teal) !important; border-color: var(--teal) !important; color: #fff !important; }
.cz-opt.incorrect span { background: #fff !important; border-color: #C4453A !important; color: #C4453A !important; text-decoration: line-through; }
.cz-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 -6px 20px rgba(23,18,28,.06); }
.cz-prog { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; font-size: 13.5px; color: var(--ink-soft); }
.cz-track { flex: 1; max-width: 260px; height: 8px; border-radius: 8px; background: #F1ECE8; overflow: hidden; }
.cz-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #FFB547, #FE6521); transition: width .2s; }
.cz-bar.locked .cz-prog { display: none; }
.cz-bar .quiz-score { margin: 0; }
.cz-key { margin-top: 26px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.cz-key h2 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.cz-key ol { list-style: none; }
.cz-key li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.cz-key li:first-child { border-top: none; }
.cz-key li p { margin-top: 3px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.ck-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--teal); }
.cz-key li.no .ck-n { background: #C4453A; }
.ck-ok { color: var(--teal); font-weight: 700; font-size: 12.5px; margin-left: 6px; }
.ck-no { color: #C4453A; font-weight: 600; font-size: 12.5px; margin-left: 6px; }
@media (max-width: 600px) { .cz-card p { font-size: 15.5px; line-height: 2.5; } .cz { white-space: normal; } }

/* ---------- listening ---------- */
.audio-card { display: flex; gap: 18px; align-items: flex-start; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-top: 20px; }
.ac-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.ac-ic svg { width: 26px; height: 26px; }
.ac-body { flex: 1; min-width: 0; }
.ac-body h2 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 20px; color: var(--ink); }
.ac-body p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.ac-body audio { width: 100%; margin-top: 14px; }
.ac-missing { display: none; margin-top: 10px; font-size: 13px; color: #8A3229; background: #FBEAE8; border-radius: 10px; padding: 9px 12px; }
.audio-card.missing .ac-missing { display: block; }
.audio-card.missing audio { display: none; }
@media (max-width: 600px) { .audio-card { padding: 18px; gap: 12px; } .ac-ic { width: 42px; height: 42px; } }
.lvl-empty { display: flex; flex-direction: column; gap: 4px; background: var(--paper-raised); border: 1px dashed #D6CDC7; border-radius: 22px; padding: 26px 28px; font-size: 14.5px; color: var(--ink-soft); } .lvl-empty b { color: var(--ink); font-size: 16px; }
.uc-band { height: auto; min-height: 104px; padding-top: 54px; }
.uc-tag { font-size: 22px; line-height: 1.12; overflow-wrap: break-word; }
/* Reading / Writing / Speaking kartları: etiket renkli alanın üstünde, durum rozeti yanında */
.read-card .uc-band:not(.fc-mosaic) { min-height: 84px; padding-top: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.read-card .uc-band:not(.fc-mosaic) .uc-chip { position: static; }

/* Reading: metin solda, sorular sağda */
.quiz-wrap.split { max-width: 1280px; }
.rd-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 4px; }
.rd-text { position: sticky; top: 76px; }
.rd-text .passage-card { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rd-text .passage-card p { font-size: 16px; line-height: 1.8; }
.rd-questions .q-card:first-child { margin-top: 20px; }
@media (max-width: 900px) {
  .rd-split { display: block; }
  .rd-text { position: static; }
  .rd-text .passage-card { max-height: none; overflow: visible; }
}

/* Reading sözlüğü */
.gl-hint { font-size: 13px; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.gl-ready .gl-w { border-bottom: 2px dotted var(--accent); cursor: pointer; border-radius: 2px; transition: background .15s; }
.gl-ready .gl-w:hover, .gl-ready .gl-w.on { background: var(--accent-soft); }
.gl-pop { position: absolute; z-index: 60; max-width: 300px; min-width: 180px; background: #1B1A22; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; line-height: 1.45; }
.gl-pop .gl-en { font-weight: 700; font-size: 15px; }
.gl-pop .gl-pos { font-weight: 500; font-size: 12px; color: #FFB48A; margin-left: 4px; }
.gl-pop .gl-tr { margin-top: 4px; font-size: 15px; }
.gl-pop .gl-note { margin-top: 6px; font-size: 12.5px; color: #D7D3E0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 6px; }
@media (max-width: 700px) {
  .gl-pop { position: fixed; left: 12px !important; right: 12px; bottom: 16px; top: auto !important; max-width: none; }
}

.ann-where { opacity: .7; font-weight: 500; }
/* Yazma görevi: faydalı kalıplar, ünite bağlantısı, örnek cevap */
.prompt-card.wr-useful { margin-top: 14px; background: #FFF8F1; border-color: #FBD9BE; }
.prompt-card.wr-useful ul { color: var(--ink); font-size: 13.5px; }
.wr-units { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); }
.wr-units a { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.wr-units a:hover { border-color: var(--accent, #FE6521); color: var(--accent, #FE6521); }
.wr-model { background: #F3FAF6; border: 1px solid #CDE8DA; border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.75; color: var(--ink); }
.wr-model-note { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
/* Kelime kutusu (boşluk doldurma) */
.word-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; padding: 14px 16px; border: 2px dashed #F3C9A6; border-radius: 14px; background: #FFF9F3; }
.word-bank .wb-w { background: #fff; border: 1px solid #F0D8C4; border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: 14px; color: var(--ink); }
.vocab-table td.hl { white-space: nowrap; }
@media (max-width: 600px) { .vocab-table td.hl { white-space: normal; } }
/* Görselli testler */
.fig-shell .test-wrap { max-width: 1340px; }
.fig-shell .test-layout { grid-template-columns: 220px 1fr; }
.fig-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.fig-col { position: sticky; top: 84px; }
.fig-card { margin: 0; background: #FBF8F5; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.fig-card figcaption { font-weight: 700; font-size: 14px; color: var(--ink); margin: 2px 4px 10px; }
.fig-card svg { display: block; width: 100%; height: auto; }
.fig-qs .q-card:first-child { margin-top: 0; }
.q-img { display: flex; justify-content: center; margin: 10px 0 6px; }
.q-img svg { width: 150px; height: 150px; }
@media (max-width: 980px) { .fig-split { grid-template-columns: minmax(0, 1fr); } .fig-col { position: static; } }
@media (max-width: 860px) { .fig-shell .test-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fig-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig-card svg { min-width: 560px; }
  .fig-card::after { content: '← kaydır →'; display: block; text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 6px; position: sticky; left: 0; }
}
/* Saat kurma */
.ck-help { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 4px; line-height: 1.6; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.ck-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 14px; text-align: center; }
.ck-card .q-num { text-align: left; }
.ck-target { font-size: 17px; font-weight: 800; color: var(--ink); margin: 6px 0 8px; }
.ck-face { width: 170px; height: 170px; margin: 0 auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ck-face:active { cursor: grabbing; }
.ck-face svg { width: 100%; height: 100%; display: block; }
.locked .ck-face { cursor: default; }
.ck-btns { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.ck-btns span { margin-left: 6px; }
.ck-btns button { min-width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.ck-btns button:hover { border-color: var(--accent, #FE6521); }
.locked .ck-btns { display: none; }
.ck-result { display: none; margin-top: 10px; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 7px 10px; }
.ck-result.show { display: block; }
.ck-result.ok { background: #EAF5F1; color: #1F5C4D; }
.ck-result.bad { background: #FBEAE8; color: #8A3229; }
.ck-card .q-explain { text-align: left; }

/* ---------- Speaking: konuşma kaydı ---------- */
.spk-pts-lbl { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.spk-tips { margin-top: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.55; background: var(--paper-raised); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.rec-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; text-align: center; }
.mic-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center; color: #fff; background: var(--amber); box-shadow: 0 10px 26px rgba(var(--accent-rgb),.32); transition: transform .15s ease, background .15s ease; }
.mic-btn svg { width: 40px; height: 40px; }
.mic-btn:hover { transform: scale(1.04); }
.mic-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.mic-btn:disabled { opacity: .5; cursor: default; transform: none; }
.mic-btn.on { background: #C4453A; box-shadow: 0 0 0 0 rgba(196,69,58,.45); animation: mic-pulse 1.4s ease-out infinite; }
.mic-btn.on svg { width: 30px; height: 30px; }
@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 rgba(196,69,58,.45); } 100% { box-shadow: 0 0 0 22px rgba(196,69,58,0); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.on { animation: none; } }
.rec-status { margin-top: 14px; font-size: 14px; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #C4453A; display: inline-block; }
.rec-time { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; }
.rec-time #recTime { font-size: 26px; font-weight: 700; color: var(--ink); }
.rec-goal { font-size: 12.5px; color: var(--text-muted); }
.rec-bar { position: relative; height: 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); margin-top: 6px; overflow: hidden; }
.rec-bar i { display: block; height: 100%; width: 0; background: #F0A23A; transition: width .25s linear; }
.rec-bar i.ok { background: var(--teal); }
.rec-goal-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .35; }
.rec-live { margin-top: 18px; text-align: left; min-height: 130px; max-height: 260px; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.rec-live .ph { color: var(--text-muted); font-style: italic; }
.rec-live .interim { color: var(--text-muted); }
.rec-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rec-actions .btn:disabled { opacity: .5; cursor: default; }
.rec-actions .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 6px; animation: pl-spin .8s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.rec-msg { margin-top: 14px; text-align: left; font-size: 13.5px; line-height: 1.5; border-radius: 10px; padding: 11px 14px; border: 1px solid var(--line); }
.rec-msg.err { background: #FBEAE8; border-color: #EFC2BD; color: #8A3229; }
.rec-msg.warn { background: #FDF3E4; border-color: #F0D8AC; color: #8A5A17; }
.rec-msg.info { background: #EEF4FB; border-color: #C9DCF2; color: #2A4F9E; }
.rec-unsupported { display: flex; flex-direction: column; gap: 8px; text-align: left; background: #FDF3E4; border: 1px solid #F0D8AC; color: #8A5A17; border-radius: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.55; }
.rec-done { font-weight: 700; color: var(--teal); font-size: 15px; }
#spkFeedback:not(:empty) { margin-top: 26px; }

.prompt-card.spk-focus { margin-top: 14px; background: #EEF4FB; border-color: #C9DCF2; }
.prompt-card.spk-focus .lbl { color: #2A4F9E; }
.prompt-card.spk-focus p { font-size: 14px; color: #1E3A6E; }

.spk-useful-hint { font-size: 12.5px; color: #8A5A17; margin-top: 6px; line-height: 1.5; }
.spk-hide-note { display: none; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.speak-grid.is-rec .spk-useful ul { filter: blur(6px); user-select: none; pointer-events: none; transition: filter .2s ease; }
.speak-grid.is-rec .spk-useful .spk-hide-note { display: block; }

/* Video Lab */
.video-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-top: 20px; }
.vc-head h2 { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 20px; color: var(--ink); }
.vc-head p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.vc-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 14px; border-radius: 14px; overflow: hidden; background: #111; }
.vc-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vc-yt { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text-muted); text-decoration: underline; }
.video-card-tile .uc-band { position: relative; }
.vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); color: #E5432F; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 600px) { .video-card { padding: 16px; } }

/* Seviye sayfası: yarım kalan test şeridi (paneldeki "Kaldığın yerden devam et" kartıyla aynı) */
.cont-strip { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 12px 14px; margin: 0 0 20px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(23,18,28,.04); transition: border-color .15s, box-shadow .15s; }
.cont-strip:hover { border-color: rgba(var(--accent-rgb),.45); box-shadow: 0 6px 18px rgba(var(--accent-rgb),.12); }
.cs-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.cs-txt { flex: 1; min-width: 0; }
.cs-k { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-t { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-bar { flex: none; display: block; width: 120px; height: 6px; background: #EEEEF2; border-radius: 6px; overflow: hidden; }
.cs-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cs-go { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .cs-bar { display: none; } .cs-go { padding: 7px 11px; font-size: 13px; } .cs-t { white-space: normal; font-size: 14.5px; } .cs-ic { width: 32px; height: 32px; } .cont-strip { gap: 10px; } }

.ic-svg { flex: none; vertical-align: -3px; }
.sidebar-link .ico .ic-svg { vertical-align: middle; }

/* ücretsiz deneme */
.ui-st.free { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ui-st svg { vertical-align: -2px; opacity: .6; }
.free-tag { color: var(--accent-deep); font-weight: 700; }
.preview-bar.trial { background: var(--accent-soft); color: var(--accent-deep); border-color: rgba(var(--accent-rgb),.25); }
.trial-wrap { max-width: 900px; margin: 28px auto 8px; padding: 0 20px; }
.trial-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 28px rgba(23,18,28,.06); }
.trial-cta .tc-tx { flex: 1 1 320px; }
.trial-cta b { display: block; font-size: 16px; color: var(--ink); }
.trial-cta span { display: block; font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.trial-cta .tc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-btn { display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
.tc-btn:hover { border-color: var(--ink); }
.tc-btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.tc-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
/* boşluk doldurma testindeki "Teslim Et" düğmesi diğer testlerle aynı görünsün */
.quiz-buttons button { padding: 12px 26px; font-size: 15px; font-weight: 700; font-family: inherit; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; min-height: 44px; transition: background .15s; }
.quiz-buttons button:hover { background: var(--accent-deep); }
.quiz-buttons button:disabled { opacity: .55; cursor: default; }
.trial-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb),.25); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.trial-score b { font-size: 26px; font-weight: 800; color: var(--accent-deep); }
.trial-score span { font-weight: 700; color: var(--accent-deep); }
.trial-score em { flex-basis: 100%; font-style: normal; font-size: 13.5px; color: var(--ink-soft, #4A4350); }

/* ---------- Flashcards ---------- */
.fc-mosaic { padding: 0 !important; position: relative; background: #fff !important; overflow: hidden; }
.fc-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.fc-mosaic i { background-size: cover; background-position: center; }
.fc-mosaic .rc-kicker { position: absolute; left: 12px; bottom: 12px; }
.fc-mosaic .uc-chip { position: absolute; right: 12px; top: 12px; }
.fc-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 30px; }
.fc-tabs { display: flex; gap: 8px; align-items: center; margin: 6px 0 18px; flex-wrap: wrap; }
.fc-tabs > button, .fc-acc button { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft, #4A4350); cursor: pointer; }
.fc-tabs > button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fc-acc { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.fc-acc button { border: 0; padding: 6px 12px; font-size: 12.5px; }
.fc-acc button.on { background: var(--ink); color: #fff; }
.fc-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.fc-bar { flex: 1; height: 6px; border-radius: 6px; background: #EEEEF2; overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.fc-card { position: relative; height: 470px; perspective: 1400px; cursor: pointer; outline: none; }
.fc-face { position: absolute; inset: 0; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(23,18,28,.08); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.8,.3,1); overflow: hidden; display: flex; flex-direction: column; }
.fc-back { transform: rotateY(180deg); align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 10px; }
.fc-card.flip .fc-front { transform: rotateY(-180deg); }
.fc-card.flip .fc-back { transform: rotateY(0); }
.fc-card:focus-visible .fc-face { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .4); }
.fc-img { flex: 1; min-height: 0; background-size: cover; background-position: center; background-color: #F3F2F6; }
.fc-word { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 18px 6px; }
.fc-word b, .fc-b-en b { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; color: var(--ink); }
.fc-hint { text-align: center; font-size: 12.5px; color: var(--text-muted); padding-bottom: 14px; }
.fc-b-en { display: flex; align-items: center; gap: 12px; }
.fc-ipa { font-size: 18px; color: var(--text-muted); font-family: 'Segoe UI', 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif; }
.fc-tr { font-size: 26px; font-weight: 800; color: var(--accent-deep); margin-top: 4px; }
.fc-ex { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: var(--accent-soft); color: var(--ink); padding: 12px 16px; border-radius: 14px; font-size: 16px; max-width: 520px; text-align: left; }
.fc-spk { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.fc-spk:hover { transform: scale(1.08); }
.fc-spk.sm { width: 34px; height: 34px; }
.fc-spk.sm svg { width: 16px; height: 16px; }
.fc-act { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.fc-btn { font: inherit; font-size: 15px; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 46px; }
.fc-btn.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.fc-btn.again:hover { border-color: var(--ink); }
.fc-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; color: var(--ink); }
.fc-nav:disabled { opacity: .35; cursor: default; }
.fc-keys { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.fc-done { text-align: center; padding: 48px 20px; border: 1px solid var(--line); border-radius: 24px; }
.fc-big { font-family: 'Baloo 2', sans-serif; font-size: 56px; font-weight: 800; color: var(--accent-deep); line-height: 1; }
.fc-done p { margin-top: 10px; color: var(--ink-soft, #4A4350); }
.fc-done-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.fc-q { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 40px rgba(23,18,28,.06); }
.fc-q .fc-img { height: 330px; flex: none; }
.fc-qt { padding: 16px 20px 4px; font-weight: 800; font-size: 19px; }
.fc-qt small { display: block; font-weight: 500; font-size: 13px; color: var(--text-muted); }
.fc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 20px; }
.fc-opt { font: inherit; font-size: 17px; font-weight: 700; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.fc-opt:hover:not(:disabled) { border-color: var(--accent); }
.fc-opt.right { background: #E8F7EF; border-color: #1F9D63; color: #1F7A4F; }
.fc-opt.wrong { background: #FDECEC; border-color: #D9534F; color: #B4231F; }
.fc-qfb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 20px 18px; min-height: 30px; }
.fc-qfb .g { color: #1F7A4F; font-weight: 700; } .fc-qfb .r { color: #B4231F; font-weight: 700; } .fc-qfb .tr { color: var(--text-muted); font-size: 14px; }
.fc-qfb .fc-btn { margin-left: auto; }
.fc-credit { text-align: center; font-size: 11.5px; color: var(--text-muted); margin-top: 18px; }
.fc-prev { font-size: 13.5px; background: #E8F7EF; color: #1F7A4F; border-radius: 12px; padding: 9px 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .fc-card { height: 420px; } .fc-word b, .fc-b-en b { font-size: 30px; } .fc-btn { padding: 11px 14px; font-size: 14px; } .fc-keys { display: none; } .fc-q .fc-img { height: 230px; } }
@media (prefers-reduced-motion: reduce) { .fc-face { transition: none; } }
.fc-wrap { padding: 0 0 30px; }
.fc-mosaic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); pointer-events: none; }
.fc-mosaic .rc-kicker, .fc-mosaic .uc-chip { z-index: 1; }
.fc-mosaic .rc-kicker { background: rgba(255,255,255,.92) !important; color: var(--accent-deep) !important; }
.unit-card .uc-band.fc-mosaic { height: 150px; min-height: 150px; }
.fc-mosaic i { display: block; min-height: 0; background-color: #EEE; }
.fc-btn { white-space: nowrap; }
@media (max-width: 600px) { .fc-act { gap: 6px; } .fc-nav { width: 40px; height: 40px; flex: none; } .fc-act .fc-btn { padding: 10px 14px; } .fc-tabs > button { padding: 8px 12px; } }
.fc-spk.playing { animation: fcPulse .9s ease-in-out infinite; }
@keyframes fcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); } 50% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }
.fc-fam { font-size: 14px; color: var(--accent-deep); background: #fff; border: 1px dashed rgba(var(--accent-rgb), .45); border-radius: 999px; padding: 4px 12px; }
.fc-syn { border-style: solid; background: rgba(var(--accent-rgb), .07); margin-top: -4px; }
.fc-gapq { padding-top: 26px; }
.fc-gap-s { font-size: 22px; line-height: 1.5; font-weight: 600; padding: 6px 22px 10px; color: var(--ink); }
.fc-blank { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--accent); color: transparent; text-align: center; line-height: 1.1; }
.fc-blank.filled { color: var(--accent-deep); font-weight: 800; }
@media (max-width: 600px) { .fc-gap-s { font-size: 18px; } }

/* Avatar resmi (öğrencinin seçtiği çizim) */
.has-img { background: transparent !important; padding: 0 !important; overflow: hidden; }
.av-img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
