/* ============================================
   IELTS MASTER PLATFORM - AURORA DEEP THEME
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg-primary: #0A1A1F;
  --bg-secondary: #0D2129;
  --bg-card: #0F2830;
  --bg-card-hover: #153540;
  --accent-blue: #00C9A7;
  --accent-blue-light: #3DD9EB;
  --accent-gold: #FFD166;
  --accent-gold-light: #FFE099;
  --accent-green: #A8E063;
  --accent-red: #FF6B6B;
  --accent-purple: #3DD9EB;
  --text-primary: #E8F8F5;
  --text-secondary: #7BB5AD;
  --text-muted: #3D6B63;
  --border: #153540;
  --border-light: #1E4D5A;
  --gradient-blue: linear-gradient(135deg, #00C9A7 0%, #3DD9EB 100%);
  --gradient-gold: linear-gradient(135deg, #FFD166 0%, #A8E063 100%);
  --gradient-green: linear-gradient(135deg, #A8E063 0%, #00C9A7 100%);
  --gradient-dark: linear-gradient(160deg, #0A1A1F 0%, #0A2028 50%, #081A20 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-blue: 0 4px 20px rgba(0,201,167,0.25);
  --shadow-gold: 0 4px 20px rgba(255,209,102,0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  /* --vh: JS'den window.innerHeight * 0.01 ile set edilir
     iOS Chrome/Safari address bar sorununu çözer */
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #0A1A1F;
  color: var(--text-primary);
  position: relative;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00C9A7; }

/* ============ LAYOUT ============ */
.app-wrapper {
  display: flex;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(160deg, #0A1A1F 0%, #0A2028 50%, #081A20 100%);
}
/* Login sistemi: appWrapper gizli başlar, .app-hidden class ile */
.app-hidden {
  display: none !important;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-blue);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0,201,167,0.15), rgba(61,217,235,0.08));
  color: var(--accent-blue);
  border: 1px solid rgba(0,201,167,0.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  background: rgba(0,201,167,0.15);
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-blue);
  color: #0A1A1F;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.student-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.student-card:hover { background: var(--bg-card-hover); }

.student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.student-info-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.student-info-band {
  font-size: 11px;
  color: var(--accent-gold);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  margin-left: 260px;
  flex: 1;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Scroll bu elemanda — body/html'de değil */
}

/* ============ TOPBAR ============ */
.topbar {
  background: rgba(13, 33, 41, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* position:fixed — parent overflow:hidden olunca sticky çalışmaz */
  position: fixed;
  top: 0;
  /* sidebar genişliğini offset et — mobilde 0 olacak */
  left: 260px;
  right: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  color: #0A1A1F;
  box-shadow: 0 4px 16px rgba(0,201,167,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0,201,167,0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD166, #A8E063);
  color: #0A1A1F;
  box-shadow: 0 4px 16px rgba(255,209,102,0.3);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255,209,102,0.45);
}

.btn-green {
  background: linear-gradient(135deg, #A8E063, #00C9A7);
  color: #0A1A1F;
}

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B, #ee5a24);
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-icon {
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

.btn-icon:hover { color: var(--text-primary); background: var(--bg-card-hover); }

/* ============ PAGE CONTENT ============ */
.page-content {
  /* Topbar fixed=64px yüksekliği kadar üstten boşluk */
  padding: 28px;
  padding-top: calc(64px + 20px);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  /* iOS scroll bounce sadece burada */
}

.page { display: none !important; }
.page.active { display: block !important; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: rgba(15, 40, 48, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,201,167,0.08);
}

/* ============ STAT CARDS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.blue::before   { background: linear-gradient(135deg, #00C9A7, #3DD9EB); }
.stat-card.gold::before   { background: linear-gradient(135deg, #FFD166, #A8E063); }
.stat-card.green::before  { background: linear-gradient(135deg, #A8E063, #00C9A7); }
.stat-card.purple::before { background: linear-gradient(135deg, #3DD9EB, #00C9A7); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.stat-icon.blue   { background: rgba(0,201,167,0.15); }
.stat-icon.gold   { background: rgba(255,209,102,0.15); }
.stat-icon.green  { background: rgba(168,224,99,0.15); }
.stat-icon.purple { background: rgba(61,217,235,0.15); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-value.blue   { color: #00C9A7; }
.stat-value.gold   { color: #FFD166; }
.stat-value.green  { color: #A8E063; }
.stat-value.purple { color: #3DD9EB; }

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-change {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.stat-change.up { background: rgba(168,224,99,0.15); color: #A8E063; }
.stat-change.down { background: rgba(255,107,107,0.15); color: var(--accent-red); }

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
}

/* ============ BAND SCORE DISPLAY ============ */
.band-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.band-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.band-9 { background: rgba(168,224,99,0.18);  color: #A8E063; border: 1px solid rgba(168,224,99,0.3); }
.band-8 { background: rgba(0,201,167,0.18);   color: #00C9A7; border: 1px solid rgba(0,201,167,0.3); }
.band-7 { background: rgba(61,217,235,0.18);  color: #3DD9EB; border: 1px solid rgba(61,217,235,0.3); }
.band-6 { background: rgba(255,209,102,0.18); color: #FFD166; border: 1px solid rgba(255,209,102,0.3); }
.band-5 { background: rgba(255,107,107,0.18); color: #FF6B6B; border: 1px solid rgba(255,107,107,0.3); }

/* ============ PROGRESS BARS ============ */
.progress-bar-wrap {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-bar-fill.blue   { background: linear-gradient(135deg, #00C9A7, #3DD9EB); box-shadow: 0 0 8px rgba(0,201,167,0.4); }
.progress-bar-fill.gold   { background: linear-gradient(135deg, #FFD166, #A8E063); box-shadow: 0 0 8px rgba(255,209,102,0.4); }
.progress-bar-fill.green  { background: linear-gradient(135deg, #A8E063, #00C9A7); box-shadow: 0 0 8px rgba(168,224,99,0.4); }
.progress-bar-fill.purple { background: linear-gradient(135deg, #3DD9EB, #00C9A7); box-shadow: 0 0 8px rgba(61,217,235,0.4); }

/* ============ GRID LAYOUTS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }

/* ============ QUESTION STYLES ============ */
.question-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.question-block:hover { border-color: var(--border-light); }

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  font-size: 12px;
  font-weight: 700;
  color: #0A1A1F;
  margin-bottom: 10px;
}

.question-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 14px;
}

.option-item:hover {
  background: rgba(0,201,167,0.08);
  border-color: rgba(0,201,167,0.3);
  color: var(--text-primary);
}

.option-item.selected {
  background: rgba(0,201,167,0.15);
  border-color: #00C9A7;
  color: #00C9A7;
}

.option-item.correct {
  background: rgba(0,212,170,0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.option-item.incorrect {
  background: rgba(255,107,107,0.1);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.option-letter {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ FILL IN BLANK ============ */
.fill-blank {
  background: transparent;
  border: none;
  border-bottom: 2px solid #00C9A7;
  color: #00C9A7;
  font-size: 15px;
  font-weight: 600;
  padding: 2px 8px;
  min-width: 120px;
  outline: none;
  text-align: center;
  transition: var(--transition);
}

.fill-blank:focus { border-color: #FFD166; color: #FFD166; }
.fill-blank.correct { border-color: var(--accent-green); color: var(--accent-green); }
.fill-blank.incorrect { border-color: var(--accent-red); color: var(--accent-red); }

/* ============ TIMER ============ */
.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
}

.timer-time {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.timer-time.urgent { color: var(--accent-red); animation: pulse-red 1s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============ AUDIO PLAYER ============ */
.audio-player {
  background: linear-gradient(135deg, var(--bg-card), #112E38);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.audio-player-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 16px;
}

.waveform-bar {
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: var(--transition);
}

.waveform-bar.active { background: #00C9A7; box-shadow: 0 0 6px rgba(0,201,167,0.5); }
.waveform-bar.played { background: rgba(0,201,167,0.35); }

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.audio-play-btn {
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  color: #0A1A1F;
  width: 48px;
  height: 48px;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,201,167,0.35);
}

.audio-play-btn:hover { transform: scale(1.05); }

.audio-secondary-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.audio-secondary-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }

.audio-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  border-radius: 2px;
  transition: width 0.1s;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ WRITING AREA ============ */
.writing-area {
  width: 100%;
  min-height: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.8;
  font-family: 'Quicksand', sans-serif;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.writing-area:focus {
  border-color: #00C9A7;
  box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}

.word-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.word-count-num { font-weight: 700; color: #00C9A7; }
.word-count-num.good { color: var(--accent-green); }
.word-count-num.warning { color: var(--accent-gold); }
.word-count-num.danger { color: var(--accent-red); }

/* ============ SPEAKING RECORDER ============ */
.recorder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.recorder-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.recorder-circle.recording {
  border-color: var(--accent-red);
  background: rgba(255,107,107,0.1);
  animation: pulse-ring 1.5s ease infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,107,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
}

.recorder-time {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.recorder-status {
  font-size: 13px;
  color: var(--text-secondary);
}

.recorder-status.recording { color: var(--accent-red); }

/* ============ PASSAGE ============ */
.passage-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.9;
  font-size: 15px;
  color: var(--text-primary);
}

.passage-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.passage-source {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.passage-text p {
  margin-bottom: 16px;
}

.passage-text mark {
  background: rgba(255,209,102,0.18);
  color: #FFD166;
  border-radius: 3px;
  padding: 1px 3px;
}

/* ============ SAMPLE ANSWER ============ */
.sample-answer {
  background: linear-gradient(135deg, rgba(0,201,167,0.06), rgba(61,217,235,0.04));
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.sample-answer::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 80px;
  color: rgba(0,201,167,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.sample-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,201,167,0.15);
  color: #00C9A7;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,201,167,0.2);
}

.sample-answer-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
}

.key-phrase {
  color: #3DD9EB;
  font-weight: 600;
}

/* ============ TABS ============ */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  border: none;
  background: transparent;
}

.tab-btn.active {
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  color: #0A1A1F;
  box-shadow: 0 4px 14px rgba(0,201,167,0.3);
}

.tab-btn:hover:not(.active) { color: var(--text-primary); background: var(--bg-card); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ RESULT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,25,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 520px;
  width: 90%;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal { transform: translateY(0); }

.modal-score {
  text-align: center;
  margin-bottom: 28px;
}

.modal-band {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, #00C9A7, #3DD9EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.modal-band-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============ TAGS ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.tag-blue   { background: rgba(0,201,167,0.15);  color: #00C9A7; }
.tag-gold   { background: rgba(255,209,102,0.15); color: #FFD166; }
.tag-green  { background: rgba(168,224,99,0.15);  color: #A8E063; }
.tag-purple { background: rgba(61,217,235,0.15);  color: #3DD9EB; }
.tag-red    { background: rgba(255,107,107,0.15); color: #FF6B6B; }

/* ============ TABLE ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition);
}

.data-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }

/* ============ NOTIFICATION ============ */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
}

.notification.show { transform: translateX(0); }
.notification.success { border-left: 3px solid #A8E063; }
.notification.error   { border-left: 3px solid #FF6B6B; }
.notification.info    { border-left: 3px solid #00C9A7; }

/* ============ TIPS BOX ============ */
.tip-box {
  background: linear-gradient(135deg, rgba(0,201,167,0.08), rgba(61,217,235,0.04));
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tip-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.tip-title {
  font-size: 13px;
  font-weight: 700;
  color: #00C9A7;
  margin-bottom: 4px;
}

.tip-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ SCORE RADAR / CHART ============ */
.chart-container {
  position: relative;
  width: 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-1-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 70px; }
  .sidebar-logo .logo-text,
  .sidebar-logo .logo-sub,
  .nav-item span,
  .sidebar-footer .student-info,
  .nav-section-title,
  .nav-badge { display: none; }
  .main-content { margin-left: 70px; }
  /* topbar fixed=64px — padding shorthand'i ezmemek için sadece padding-top override */
  .page-content { padding: 16px; padding-top: calc(64px + 16px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; left: 70px; }
  .part-selector { grid-template-columns: 1fr; }
  .rubric-grid { grid-template-columns: 1fr 1fr; }
  .tab-bar { flex-wrap: wrap; width: 100%; }
  .tab-btn { flex: 1; min-width: 80px; text-align: center; }
}

/* ============ MOBİL (480px ve altı) ============ */
@media (max-width: 480px) {
  /* Sidebar tamamen alta al — bottom nav */
  .app-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100% !important;
    height: 60px;
    min-height: 60px;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 100;
    border-top: 1px solid var(--border);
    border-right: none;
    padding: 0;
    overflow: visible;
  }
  .sidebar-logo { display: none; }
  .sidebar-footer { display: none; }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    overflow: visible;
    width: 100%;
    gap: 0;
  }
  .nav-section-title { display: none; }
  .nav-item {
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px;
    font-size: 9px;
    min-width: 44px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 0;
  }
  .nav-item span { display: block !important; font-size: 9px; }
  .nav-badge { display: none !important; }
  .nav-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  .nav-item.active::before { display: none; }
  .nav-item.active {
    background: rgba(0,201,167,0.12);
    border: none;
  }

  /* Ana içerik — alt nav'a yer bırak, scroll burada */
  .main-content {
    margin-left: 0 !important;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
  }
  .page-content {
    padding: 12px;
    /* topbar mobil=52px + bottom nav=68px + safe-area */
    padding-top: calc(52px + 12px);
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Topbar — mobilde full width, sidebar altta */
  .topbar {
    padding: 0 12px;
    height: 52px;
    left: 0;
  }
  .topbar-title { font-size: 16px; }
  .topbar-subtitle { font-size: 11px; }
  .timer-display { display: none; }

  /* Kartlar */
  .card { padding: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 12px; }
  .stat-value { font-size: 28px; }

  /* Modal tam ekran */
  .modal-overlay { align-items: flex-end; }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    max-height: calc(var(--vh, 1vh) * 90);
    overflow-y: auto;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
  }

  /* Login */
  .login-card { padding: 32px 24px 28px !important; }

  /* Grid düzleştir */
  .grid-2, .grid-2-1, .grid-1-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .rubric-grid { grid-template-columns: 1fr; }

  /* Tab bar */
  .tab-bar { gap: 4px; }
  .tab-btn { padding: 7px 10px; font-size: 12px; }

  /* Yazı alanları */
  .writing-area { min-height: 200px; font-size: 14px; }

  /* Part selector */
  .part-selector { grid-template-columns: 1fr 1fr; gap: 8px; }
  .part-card { padding: 12px 8px; }

  /* Tip box */
  .tip-box { padding: 12px; }
}

/* ============ PWA — Safe area (iPhone notch) ============ */
@media (max-width: 480px) {
  .sidebar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* Standalone PWA modu — status bar safe-area */
@media all and (display-mode: standalone) {
  .topbar {
    /* iPhone status bar yüksekliği kadar topbar'ı aşağı it */
    top: env(safe-area-inset-top, 0px);
    height: calc(64px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    align-items: flex-end;
    padding-bottom: 0;
  }
  .page-content {
    padding-top: calc(64px + env(safe-area-inset-top, 0px) + 20px);
  }
  /* Mobil PWA standalone */
  @media (max-width: 480px) {
    .topbar {
      height: calc(52px + env(safe-area-inset-top, 0px));
    }
    .page-content {
      padding-top: calc(52px + env(safe-area-inset-top, 0px) + 12px);
    }
  }
}

/* ============ LOADING SKELETON ============ */
.skeleton {
  background: linear-gradient(90deg, #0F2830 25%, #153540 50%, #0F2830 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 16px;
}

/* ============ SECTION BADGE ============ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge.listening { background: rgba(79,142,247,0.15); color: var(--accent-blue); border: 1px solid rgba(79,142,247,0.25); }
.section-badge.reading   { background: rgba(245,166,35,0.15);  color: var(--accent-gold);  border: 1px solid rgba(245,166,35,0.25); }
.section-badge.writing   { background: rgba(0,212,170,0.15);   color: var(--accent-green); border: 1px solid rgba(0,212,170,0.25); }
.section-badge.speaking  { background: rgba(155,107,255,0.15); color: var(--accent-purple);border: 1px solid rgba(155,107,255,0.25); }

/* ============ GLOW EFFECTS ============ */
.glow-blue  { box-shadow: 0 0 20px rgba(79,142,247,0.2); }
.glow-gold  { box-shadow: 0 0 20px rgba(245,166,35,0.2); }
.glow-green { box-shadow: 0 0 20px rgba(0,212,170,0.2); }

/* ============ EMPTY STATE ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}
.empty-state-icon { font-size: 48px; opacity: 0.5; }
.empty-state-text { color: var(--text-muted); font-size: 14px; }

/* ============ SCORE RING ============ */
.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-blue) calc(var(--pct, 0) * 1%), var(--bg-secondary) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-card);
}
.score-ring-value {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ============ KEYBOARD SHORTCUT ============ */
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

/* ============ HIGHLIGHT ============ */
::selection {
  background: rgba(79,142,247,0.3);
  color: var(--text-primary);
}

/* ============ CUSTOM DETAILS ============ */
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 10px; }

/* ============ SCROLLBAR THIN ============ */
.passage-container::-webkit-scrollbar { width: 4px; }
.passage-container::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* ============ ANSWER REVEAL ANIMATION ============ */
@keyframes correctPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.option-item.correct { animation: correctPop 0.3s ease; }

/* ============ BAND SCORE CIRCLE ============ */
.band-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.band-circle.blue   { background: rgba(79,142,247,0.15);  color: var(--accent-blue);   border: 2px solid rgba(79,142,247,0.3); }
.band-circle.gold   { background: rgba(245,166,35,0.15);  color: var(--accent-gold);   border: 2px solid rgba(245,166,35,0.3); }
.band-circle.green  { background: rgba(0,212,170,0.15);   color: var(--accent-green);  border: 2px solid rgba(0,212,170,0.3); }
.band-circle.purple { background: rgba(155,107,255,0.15); color: var(--accent-purple); border: 2px solid rgba(155,107,255,0.3); }

/* ============ STRIPE BACKGROUND ============ */
.stripe-bg {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.01) 10px,
    rgba(255,255,255,0.01) 20px
  );
}

/* ============ ANSWER STATUS BAR ============ */
.answer-status-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.answer-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.answer-dot.answered { background: rgba(79,142,247,0.2); border-color: var(--accent-blue); color: var(--accent-blue); }
.answer-dot.correct  { background: rgba(0,212,170,0.2);  border-color: var(--accent-green);  color: var(--accent-green); }
.answer-dot.wrong    { background: rgba(255,107,107,0.2);border-color: var(--accent-red);   color: var(--accent-red); }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ READING — MOBİL PANEL TOGGLE ============ */
/* Masaüstünde toggle tamamen gizli — grid-1-2 çalışır */
.reading-panel-toggle { display: none; }
.reading-panel-text,
.reading-panel-questions { display: contents; }

@media (max-width: 768px) {
  /* Toggle bar: üstte "📖 Metin" / "❓ Sorular" butonları */
  .reading-panel-toggle {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
    flex-shrink: 0;
  }
  .reading-panel-toggle button {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Quicksand', sans-serif;
  }
  .reading-panel-toggle button:first-child {
    border-right: 1px solid var(--border-light);
  }
  .reading-panel-toggle button.rp-active {
    background: linear-gradient(135deg, rgba(0,201,167,0.18), rgba(61,217,235,0.12));
    color: var(--accent-blue);
  }

  /* Panel göster/gizle — JS .rp-hidden class'ı ekler */
  .reading-panel-text,
  .reading-panel-questions {
    display: block;
  }
  .reading-panel-text.rp-hidden,
  .reading-panel-questions.rp-hidden {
    display: none !important;
  }

  /* grid-1-2 → tek sütun, sticky kaldır */
  .reading-passage-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .reading-passage-grid > .reading-panel-text {
    position: static !important;
  }

  /* Passage container mobilde daha kompakt */
  .passage-container {
    max-height: 60vh;
    max-height: calc(var(--vh, 1vh) * 60);
    padding: 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 0;
  }
  .passage-title {
    font-size: 17px;
  }
  .passage-text p {
    margin-bottom: 12px;
    line-height: 1.75;
  }

  /* Sorular paneli */
  .reading-panel-questions .card {
    border-radius: var(--radius-md);
  }

  /* True/False/NG butonları — 3'lü satır mobilde tam genişlik */
  .options-list[style*="flex-direction:row"],
  .options-list[style*="flex-direction: row"] {
    flex-direction: row !important;
    flex-wrap: nowrap;
  }
  .options-list[style*="flex-direction:row"] .option-item,
  .options-list[style*="flex-direction: row"] .option-item {
    flex: 1;
    padding: 8px 4px;
    font-size: 11px;
    justify-content: center;
    min-width: 0;
  }
  .options-list[style*="flex-direction:row"] .option-letter,
  .options-list[style*="flex-direction: row"] .option-letter {
    display: none; /* T/F/N harfi zaten buton metninde var */
  }

  /* fill-blank input genişlikleri mobilde esnek olsun */
  .fill-blank {
    width: 100% !important;
    max-width: 200px;
  }

  /* Summary word box — wrap düzgün */
  #page-reading .tag {
    font-size: 11px;
    padding: 4px 8px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeInUp 0.5s ease forwards; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ============ HERO GRADIENT BG ============ */
.hero-gradient {
  background: radial-gradient(ellipse at top left, rgba(79,142,247,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(155,107,255,0.06) 0%, transparent 60%);
  min-height: 100vh;
}

/* ============ DIVIDER ============ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ============ INPUT ============ */
.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Quicksand', sans-serif;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.1);
}

/* ============================================================
   WORD TOOLTIP SYSTEM — Aurora Deep
   Hover over any .wt-word-target span to see Turkish meaning
   ============================================================ */

/* The floating tooltip popup */
#wordTooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-width: 240px;
  min-width: 140px;
}

#wordTooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tooltip-inner {
  background: linear-gradient(145deg, #0D2E38, #0F3844);
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,201,167,0.15);
  padding: 10px 14px 10px 12px;
  position: relative;
}

/* Tooltip arrow (triangle) */
.tooltip-inner::before {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 12px;
  height: 7px;
  background: #0D2E38;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: none;
}

.tooltip-inner.arrow-top::before {
  bottom: auto;
  top: -7px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #0D2E38;
}

/* English word displayed at top of tooltip */
.wt-word {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue-light);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
  line-height: 1.3;
}

/* Turkish meaning */
.wt-meaning {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1.4;
}

/* Part of speech tag */
.wt-pos {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(0,201,167,0.10);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 4px;
  margin-bottom: 2px;
}

/* Thin divider between word and meaning */
.wt-divider {
  border: none;
  border-top: 1px solid rgba(0,201,167,0.20);
  margin: 6px 0 5px;
}

/* Speak icon button inside tooltip */
.wt-speak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: rgba(0,201,167,0.12);
  border: 1px solid rgba(0,201,167,0.25);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: 'Quicksand', sans-serif;
}

.wt-speak:hover {
  background: rgba(0,201,167,0.25);
  color: var(--accent-blue-light);
}

.wt-speak i {
  font-size: 10px;
}

/* ---- Highlight on the actual word in text ---- */
.wt-word-target {
  display: inline;
  border-bottom: 1px dotted rgba(0,201,167,0.45);
  border-radius: 2px;
  cursor: help;
  transition: background 0.15s ease, color 0.15s ease, border-bottom-color 0.15s ease;
  padding-bottom: 1px;
}

.wt-word-target:hover {
  background: rgba(0,201,167,0.12);
  border-bottom-color: var(--accent-blue);
  color: var(--text-primary);
  border-radius: 3px;
}

/* Don't tokenize inside buttons, inputs, headings, nav */
.btn .wt-word-target,
button .wt-word-target,
nav .wt-word-target,
h1 .wt-word-target,
h2 .wt-word-target {
  border-bottom: none;
  cursor: inherit;
  background: transparent;
}

/* "Not found" state — no translation available */
.wt-word-target.no-translation {
  border-bottom: none;
  cursor: text;
}

/* ============================================================
   LOGIN SCREEN — stiller index.html <head> içinde inline
   ============================================================ */

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============ CRITERIA RUBRIC ============ */
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.rubric-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: var(--transition);
}

.rubric-item:hover { border-color: var(--border-light); }

.rubric-score {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rubric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============ PART SELECTOR ============ */
.part-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.part-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.part-card:hover {
  border-color: var(--accent-blue);
  background: rgba(79,142,247,0.05);
}

.part-card.active {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(155,107,255,0.08));
}

.part-card-icon { font-size: 28px; margin-bottom: 8px; }
.part-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.part-card-desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* ============ INSTRUCTIONS BOX ============ */
.instructions-box {
  background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(79,142,247,0.03));
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.instructions-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.instructions-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ TOOLTIP ============ */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tooltip-wrap .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}

.tooltip-wrap:hover .tooltip { opacity: 1; }
