:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
}

/* Ana Uygulama Düzeni (iPhone 11 Safe-Area) */
.mobile-app {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Üst Başlık & Kontroller */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.deck-btn {
  background: white;
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-pill {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #c2410c;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.speed-pill {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mod Değiştirme Butonları (Kartlar / Test / Harf Dizme) */
.mode-nav {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 18px;
  margin: 8px 0;
  gap: 4px;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 6px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-locked {
  font-size: 0.75rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 8px;
}

/* ==========================================
   1. MOD: 3D GÖRSEL & SESLİ KELİME KARTI (ANA MOD)
   ========================================== */
.card-view-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.card-3d-wrapper {
  width: 100%;
  height: 390px;
  perspective: 1200px;
  cursor: pointer;
}

.card-3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

.card-3d-inner.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid white;
}

/* Kart Ön Yüz (Görsel + İngilizce + Ses) */
.card-front {
  background: linear-gradient(150deg, #ffffff 0%, #f4f6ff 100%);
}

/* Kart Arka Yüz (Türkçe Anlam + Örnek Cümle) */
.card-back {
  background: linear-gradient(150deg, #fffbeb 0%, #fef3c7 100%);
  transform: rotateY(180deg);
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-category-badge {
  background: #e0e7ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-index-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 12px;
}

.card-visual-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.visual-emoji-bubble {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8), 0 8px 18px rgba(79, 70, 229, 0.15);
}

.word-main-en {
  font-size: 2.3rem;
  font-weight: 900;
  color: #1e1b4b;
  line-height: 1.15;
}

.phonetic-pill {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 14px;
  font-family: monospace;
}

.audio-buttons-row {
  display: flex;
  gap: 10px;
}

.big-speak-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.1s;
}

.big-speak-btn:active {
  transform: scale(0.92);
}

.slow-speak-btn {
  background: #0284c7;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.card-flip-prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Arka Yüz İçeriği */
.word-main-tr {
  font-size: 2rem;
  font-weight: 900;
  color: #92400e;
  line-height: 1.2;
}

.example-box {
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--warning);
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  max-width: 95%;
  margin-top: 8px;
}

.example-box p {
  font-size: 0.95rem;
  color: #451a03;
  font-weight: 600;
}

.card-back-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-card-action {
  padding: 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s;
}

.btn-card-action:active {
  transform: scale(0.95);
}

.btn-repeat-card {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-master-card {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Kart Alt Gezinme Butonları */
.card-nav-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  justify-content: space-between;
}

.nav-circle-btn {
  background: white;
  border: 1.5px solid var(--border);
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-circle-btn:active {
  transform: scale(0.95);
}

.btn-flip-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  flex: 1;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ==========================================
   2. MOD: DİNLE & SEÇ (TEST MODU)
   ========================================== */
.quiz-view-section {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  gap: 14px;
}

.quiz-sound-prompt {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cloze-sentence-card {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.5;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  width: 100%;
}

.cloze-blank {
  display: inline-block;
  background: #e0e7ff;
  color: var(--primary);
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 1px 8px;
  font-weight: 900;
}

.cloze-blank.filled-correct {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.cloze-hint-tr {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.sound-wave-btn {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: white;
  border: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
  animation: pulseAudio 2s infinite;
}

@keyframes pulseAudio {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.quiz-option-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.quiz-option-card:active {
  transform: scale(0.96);
}

.quiz-opt-emoji {
  font-size: 2.2rem;
}

.quiz-opt-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e1b4b;
}

.quiz-option-card.correct {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
}

.quiz-option-card.correct .quiz-opt-text {
  color: white !important;
}

.quiz-option-card.wrong {
  background: #ef4444 !important;
  color: white !important;
  border-color: #ef4444 !important;
  animation: wrongShake 0.4s ease;
}

.quiz-option-card.wrong .quiz-opt-text {
  color: white !important;
}

/* ==========================================
   3. MOD: HARF DİZME (AÇILAN USTALIK MODU)
   ========================================== */
.spelling-view-section {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.target-slots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
}

.target-slot {
  width: 44px;
  height: 52px;
  background: white;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #1e1b4b;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.target-slot.filled {
  border: 2px solid var(--primary);
  background: #eef2ff;
  border-bottom: 4px solid var(--primary-dark);
}

.target-slot.space-slot {
  width: 16px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.letter-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.letter-tile {
  min-width: 46px;
  height: 54px;
  padding: 0 10px;
  background: white;
  border: 2px solid var(--border);
  border-bottom: 5px solid #cbd5e1;
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.letter-tile:active {
  transform: translateY(3px);
  border-bottom: 2px solid #cbd5e1;
}

.letter-tile.used {
  opacity: 0.18;
  pointer-events: none;
  transform: scale(0.9);
}

.locked-message-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.locked-icon {
  font-size: 3.5rem;
}

/* Animasyonlar */
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Modal Sayfa Seçici */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  z-index: 1000;
}

.modal-sheet {
  background: white;
  width: 100%;
  max-height: 80vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px 20px max(24px, env(safe-area-inset-bottom)) 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deck-card {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* ==========================================
   GÜNÜN 10 DAKİKALIK GÖREVİ & DASHBOARD
   ========================================== */
.mission-banner {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border-radius: 16px;
  padding: 10px 14px;
  margin: 4px 0 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  cursor: pointer;
}

.mission-banner.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.mission-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-icon {
  font-size: 1.4rem;
}

.mission-title {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.mission-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.mission-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mission-banner.completed .mission-btn {
  color: #059669;
}

/* Görev Modu Akışı */
.mission-mode-bar {
  display: none;
  background: white;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-between;
}

.mission-mode-step {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.mission-cancel-btn {
  background: #f1f5f9;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

/* İlerleme Paneli (Dashboard) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-stat-card {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.dash-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}

.dash-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Konfeti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================
   ADIM 4: KAMERA & OCR & ÖZEL ÜNİTE STİLLERİ
   ========================================== */
.camera-header-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.camera-header-btn:active {
  transform: scale(0.96);
}

.modal-sheet-tall {
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.camera-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
}

.cam-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cam-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 20px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upload-dropzone:active {
  background: #f1f5f9;
  border-color: var(--primary);
}

.dropzone-icon {
  font-size: 2.2rem;
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-snap-photo {
  margin-top: 6px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  pointer-events: none;
}

.demo-pages-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.demo-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.raw-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  background: #f8fafc;
  outline: none;
}

.raw-textarea:focus {
  border-color: var(--primary);
  background: white;
}

.btn-parse-text {
  width: 100%;
  margin-top: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

/* Spinner ve İlerleme */
.spinner-ring {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ocr-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.ocr-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

/* Veli Onay & İnceleme Ekranı */
.unit-name-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unit-name-input {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
}

.unit-name-input:focus {
  border-color: var(--primary);
}

.btn-add-word-row {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.words-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 36vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.word-review-card {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.word-review-row-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.word-review-emoji {
  font-size: 1.25rem;
  cursor: pointer;
  background: white;
  border-radius: 8px;
  padding: 2px 4px;
  border: 1px solid var(--border);
}

.word-review-input-en {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e1b4b;
  outline: none;
  background: white;
}

.word-review-input-tr {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  outline: none;
  background: white;
}

.btn-delete-row {
  background: #fee2e2;
  border: none;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

.review-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-cancel-review {
  background: #f1f5f9;
  border: none;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-save-custom-deck {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.custom-deck-delete-btn {
  background: #fee2e2;
  border: none;
  color: #ef4444;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
}

/* ==========================================
   👤 KULLANICI PROFİLİ & ANKİ SM-2 ANALİZ STİLLERİ
   ========================================== */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1.5px solid var(--border);
  padding: 5px 9px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.user-profile-badge:active {
  transform: scale(0.96);
}

.user-avatar {
  font-size: 1.15rem;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e1b4b;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profil Başlık Kartı */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  padding: 14px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.profile-avatar-circle {
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.profile-info-meta {
  flex: 1;
}

.profile-name-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-grade-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6366f1;
}

/* Zorlanılan Kelimeler Kutusu */
.struggling-box {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 12px;
}

.struggling-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.struggling-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #e11d48;
}

.btn-drill-struggling {
  background: #e11d48;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.struggling-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.struggling-chip {
  background: white;
  border: 1px solid #f43f5e;
  color: #9f1239;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Çalışma Günlüğü (Son Günler) */
.history-section {
  margin-top: 14px;
}

.history-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.history-day-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 65px;
  text-align: center;
  flex-shrink: 0;
}

.history-day-card.active-today {
  background: #eff6ff;
  border-color: var(--primary);
}

.history-day-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.history-day-count {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  margin-top: 2px;
}

.history-day-rate {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
}

/* Avatar Seçici */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.avatar-choice-btn {
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 8px 4px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.avatar-choice-btn.selected {
  border-color: var(--primary);
  background: #eef2ff;
  transform: scale(1.08);
}

/* Profil ve Veri Aksiyon Butonları */
.profile-actions-footer {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-secondary-action {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: center;
}

/* ==========================================
   🧠 ANKİ KUYRUK (QUEUE) & SM-2 KART DERECELENDİRME STİLLERİ
   ========================================== */
.anki-queue-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.anki-queue-chip {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-due {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.chip-learning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.chip-new {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Karttaki Anki Rozeti */
.anki-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.anki-status-due {
  background: #fee2e2;
  color: #dc2626;
}

.anki-status-learning {
  background: #fef3c7;
  color: #d97706;
}

.anki-status-mature {
  background: #d1fae5;
  color: #059669;
}

.anki-status-new {
  background: #f1f5f9;
  color: #64748b;
}

/* ==========================================
   🤖 SİSTEM OTOMATİK VERİ ANALİZİ KARTI (ÖĞRENCİ NOT VERMEZ, SİSTEM ÖLÇER)
   ========================================== */
.system-analysis-card {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #1e293b;
}

.analysis-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 6px 4px;
}

.analysis-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.stat-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.analysis-note-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

/* Hızlı Sonraki Butonu */
.card-auto-nav-row {
  width: 100%;
  margin-top: 4px;
}

.btn-card-next-auto {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-card-next-auto:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* ==========================================
   🎯 YARINKİ QUİZE HAZIRLIK (SINAV KAMPI HERO KARTI)
   ========================================== */
.exam-prep-hero-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.exam-prep-hero-card::after {
  content: "⚡";
  position: absolute;
  right: -10px;
  top: -15px;
  font-size: 4rem;
  opacity: 0.08;
  pointer-events: none;
}

.exam-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exam-hero-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exam-hero-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.exam-hero-sub {
  font-size: 0.75rem;
  color: #c7d2fe;
}

.exam-progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.exam-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.exam-progress-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e0e7ff;
  margin-top: 1px;
}

.exam-hero-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.exam-hero-btn:active {
  transform: scale(0.95);
}

/* ==========================================
   🏃 SINAV KAMPI SPRINT RUNNER MODALI STİLLERİ
   ========================================== */
.sprint-modal-sheet {
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
}

.sprint-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.sprint-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sprint-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: #e0e7ff;
  padding: 3px 8px;
  border-radius: 10px;
}

.sprint-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sprint-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sprint-progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.sprint-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #06b6d4 100%);
  border-radius: 8px;
  transition: width 0.3s;
}

.sprint-step-counter {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sprint-content-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sprint-card-box {
  background: white;
  border: 2px solid #e0e7ff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08);
}

.sprint-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sprint-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6366f1;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 8px;
}

.sprint-audio-btns {
  display: flex;
  gap: 6px;
}

.sprint-audio-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.sprint-word-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sprint-emoji {
  font-size: 2.5rem;
}

.sprint-word-en {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1e1b4b;
}

.sprint-word-phonetic {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
}

.sprint-word-tr {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

/* Öne çıkan cümle kutusu */
.sprint-sentence-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sprint-sentence-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sprint-sentence-en {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.sprint-sentence-en mark {
  background: #fef08a;
  color: #854d0e;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
}

.sprint-sentence-tr {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  font-style: italic;
}

.sprint-sentence-listen-btn {
  background: white;
  border: 1.5px solid #c7d2fe;
  color: var(--primary);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-top: 4px;
}

.btn-sprint-action {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
  margin-top: 12px;
}

.btn-sprint-action:active {
  transform: scale(0.97);
}

.sprint-finish-card {
  background: white;
  border: 2px solid #a7f3d0;
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}

.sprint-trophy-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: bounce 1s infinite alternate;
}

.sprint-score-summary {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 10px;
}

.sprint-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #047857;
}

.summary-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #065f46;
}

/* ==========================================
   🔒 6 HANELİ GÜVENLİK PIN GİRİŞ EKRANI
   ========================================== */
.pin-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pin-auth-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-app-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: float 2.5s ease-in-out infinite alternate;
}

.pin-app-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.pin-app-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 20px;
}

.pin-dots-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

.pin-dot.error {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

.pin-status-msg {
  min-height: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 12px;
}

.pin-status-msg.success {
  color: #10b981;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 16px;
}

.pin-key {
  height: 60px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pin-key:active {
  background: #e0e7ff;
  color: var(--primary);
  transform: scale(0.92);
}

.pin-key-fn {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
}

.pin-footer-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
}

.pin-shake {
  animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pinShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================
   🇹🇷 ÖRNEK CÜMLE TÜRKÇE KARŞILIĞI GELİŞTİRMELERİ
   ========================================== */
.sprint-sentence-tr {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #f1f5f9 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  border-left: 3px solid #6366f1 !important;
  font-style: normal !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.card-example-tr-text {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 3px solid #10b981;
  text-align: left;
}

/* ==========================================
   🎯 ÇOCUK DOSTU SADE KART DURUM ETİKETLERİ
   ========================================== */
.card-friendly-status-box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.card-friendly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.card-friendly-badge.status-new {
  background: #eff6ff;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
}

.card-friendly-badge.status-boost {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  animation: pulse 2s infinite;
}

.card-friendly-badge.status-review {
  background: #fffbeb;
  color: #d97706;
  border: 1.5px solid #fde68a;
}

.card-friendly-badge.status-learning {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1.5px solid #ddd6fe;
}

.card-friendly-badge.status-mastered {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2);
}

.badge-hint-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
  text-align: center;
}

.test-pill {
  animation: pulse 2.5s infinite;
}

/* ==========================================
   👥 GİRİŞ EKRANI KULLANICI SEÇİCİ
   ========================================== */
.login-profile-selector-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.login-profile-cards-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.login-user-card {
  flex: 1;
  background: #f8fafc;
  border: 2.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.login-user-card:active {
  transform: scale(0.95);
}

.login-user-card.active {
  background: #f5f3ff;
  border-color: #7c3aed;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.login-user-avatar {
  font-size: 2.2rem;
  line-height: 1;
}

.login-user-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
}

.login-user-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: white;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.login-user-card.active .login-user-badge {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
}

.btn-quick-test-login {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: white;
  border: none;
  padding: 15px 12px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  margin-bottom: 16px;
  transition: all 0.15s ease;
}

.btn-quick-test-login:active {
  transform: scale(0.97);
}

/* ==========================================
   📦 SET İLERLEME & TAMAMLAMA MODALI STİLLERİ
   ========================================== */
.set-header-box {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.set-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.set-tag-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 8px;
}

.set-step-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
}

.set-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.set-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* Son kartta parlayan 'Seti Bitir' butonu */
.btn-set-finish-glow {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45) !important;
  animation: pulseFinish 1.8s infinite !important;
  font-weight: 900 !important;
}

@keyframes pulseFinish {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Set Tebrik Modalı */
.modal-sheet-celebrate {
  text-align: center;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  max-height: 88vh;
  overflow-y: auto;
}

.celebrate-badge-icon {
  font-size: 3.5rem;
  margin-bottom: -5px;
  animation: bounceTrophy 1s infinite alternate ease-in-out;
}

@keyframes bounceTrophy {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.celebrate-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 2px;
}

.celebrate-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}

.celebrate-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.celebrate-stat-box {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.celebrate-stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4f46e5;
}

.celebrate-stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.completed-words-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  text-align: left;
  width: 100%;
  margin-bottom: 6px;
}

.completed-words-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.completed-word-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  gap: 8px;
}

.cwi-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  flex: 1;
}

.cwi-emoji {
  font-size: 1.4rem;
}

.cwi-text {
  display: flex;
  flex-direction: column;
}

.cwi-en {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
}

.cwi-tr {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.cwi-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.cwi-badge.new {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.cwi-badge.review {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cwi-speak-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.celebrate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-celebrate-next-set {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s;
}

.btn-celebrate-next-set:active {
  transform: scale(0.97);
}

.btn-celebrate-quiz {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-celebrate-repeat {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
