/* ==========================================================================
   TRAINING PANEL FULLVIEW (Antrenman Paneli - Kadro Çim Sahası Teması)
   ========================================================================== */
#gameViewport:has(#hubViewTraining:not([style*="display: none"])),
.game-window-viewport:has(#hubViewTraining:not([style*="display: none"])),
#clientHubScreen:has(#hubViewTraining:not([style*="display: none"])) {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

.training-fullview {
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 0px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(34, 197, 94, 0.35) 0%, rgba(4, 30, 15, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #166534 0px,
      #166534 50px,
      #14532d 50px,
      #14532d 100px
    ) !important;
  background-size: 100% 100% !important;
  padding: 24px;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
  border: none;
  border-radius: 0;
  overflow: hidden !important;
}

/* Genel Sohbet Butonunu Antrenman Ekranında Gizle (Task #1) */
.training-mode #btnOpenGlobalChat {
  display: none !important;
}

/* Ortalanmış Kontrol Konsolu (Şeffaf / Doğrudan Kart Butonlar) */
.training-top-control-pod.big-console {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 5;
}

.training-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 12px;
}

.btn-training-action.big {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #bae6fd;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16), 0 0 16px rgba(56, 189, 248, 0.12);
}

.btn-training-action.big:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.28);
}

.btn-training-action.big.quick-train-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #86efac;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16), 0 0 18px rgba(34, 197, 94, 0.2);
}

.btn-training-action.big.quick-train-btn:hover {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.35);
}

.quick-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
}

.training-btn-icon.big {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.12));
}

.training-btn-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.training-btn-texts .btn-title {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.training-btn-texts .btn-sub {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  white-space: nowrap;
}

.training-btn-texts .btn-sub.highlight {
  color: #15803d;
}

/* Antrenman Başlat ve X2 Çifte Buton Grubu (Task #3) */
.training-start-actions-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.btn-start-training-session.big {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 2.5px solid #38bdf8;
  border-radius: 18px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.45);
}

.btn-start-training-session.big:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.6);
}

.btn-start-training-session.big:disabled,
.btn-start-training-session.big.disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-start-training-session.big .start-icon {
  font-size: 30px;
}

.btn-start-training-session.big .start-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.btn-start-training-session.big .start-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #ffffff;
}

.btn-start-training-session.big .start-sub {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
  color: #e0f2fe;
}

/* X2 Çifte Gelişim Butonu (Task #3) */
.btn-start-training-x2 {
  width: 135px;
  min-width: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 2.5px solid #fbbf24;
  border-radius: 18px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-start-training-x2:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.65);
  border-color: #fde047;
}

.btn-start-training-x2:disabled,
.btn-start-training-x2.disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

.x2-badge-pill {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.x2-content-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.x2-main-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.x2-sub-text {
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   ALT KISIM: 4 EŞİT BOYUTLU MERKEZİ HUD KARTI (ENERJİ, SEVİYE, GEÇMİŞ, KOÇ)
   ========================================================================== */
.training-bottom-hud-row {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1420px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  z-index: 10;
  pointer-events: auto;
  box-sizing: border-box;
}

/* 4 Kartın Birebir Aynı Boyuttaki Standart Tasarımı (4 Eşit Sütun) */
.training-hud-card.vertical {
  pointer-events: auto;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 122px;
  min-height: 122px;
  max-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #bae6fd;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 20px rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-sizing: border-box;
}

.training-hud-card.vertical:hover {
  border-color: #0284c7;
  box-shadow: 0 20px 48px rgba(2, 132, 199, 0.25);
  transform: translateY(-3px);
}

.hud-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hud-card-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.energy-pulse {
  background: #e0f2fe;
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

.energy-pulse .hud-card-icon {
  font-size: 22px;
  color: #0284c7;
  animation: energyPulseGlow 2.5s infinite ease-in-out;
}

/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes energyPulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.level-badge-wrap {
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.level-badge-wrap .hud-card-icon {
  font-size: 22px;
}

.hud-card-level-num {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hud-card-main-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-card-main-info .hud-card-title {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.hud-card-desc {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.hud-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hud-card-bottom-row.full-w {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.hud-card-badge.green {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1.5px solid #bae6fd;
  white-space: nowrap;
}

.hud-points-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1.5px solid #bae6fd;
  white-space: nowrap;
}

/* Süre Göstergeleri: Temiz, kart içine entegre tipografi */
.hud-timer-clean {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-timer-digits {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14.5px;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.6px;
}

.hud-progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.hud-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Sunucudan gelen günlük antrenman hakkı ve enerji dolum bilgisi (Kullanıcı talebiyle kaldırıldı) */
.training-session-info {
  display: none !important;
}

/* ==========================================================================
   MODAL YAPISI & STİLLERİ (Oyuncular & Taktikler - Modern Beyaz/Açık Mavi Tema)
   ========================================================================== */
.training-modal-overlay {
  /* AGENTS.md §4.3: pencere içi panel — pencereye (#gameViewport) göre absolute + inset:0.
     Açılışta GameWindow.open() ile pencereye taşınır (training.js). */
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* AGENTS.md §4.3: kenar boşluğu pencereye oranlı — dar pencerede panel taşmaz. */
  padding: clamp(10px, 2.5%, 30px);
}

.training-modal-container {
  width: 100%;
  max-width: 1100px;
  /* AGENTS.md §4.3: pencere içi ölçü — vh/vw DEĞİL (onlar tarayıcıyı ölçer), yüzde. */
  max-height: 100%;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 4px 20px rgba(2, 132, 199, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.btn-modal-corner-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-modal-corner-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.06);
}

.t-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Dar pencerede başlık ve butonlar alt satıra iner; kapat butonu asla dışarı taşmaz. */
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(12px, 2%, 20px) clamp(14px, 2.5%, 28px);
  padding-right: 58px; /* Sağ üstteki X butonuna çarpmaması için güvenli boşluk */
  border-bottom: 1.5px solid #e2e8f0;
  background: #ffffff;
}

.t-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t-modal-header-icon {
  width: 44px;
  height: 44px;
}

.t-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.t-modal-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.t-modal-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-modal-pill {
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-pill:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.btn-modal-close {
  background: #fee2e2;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.t-modal-body {
  padding: clamp(14px, 2.5%, 28px);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #f8fafc;
}

.t-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 2%, 16px) clamp(14px, 2.5%, 28px);
  border-top: 1.5px solid #e2e8f0;
  background: #ffffff;
}

.selected-summary-text {
  font-size: 14px;
  font-weight: 900;
  color: #0284c7;
}

.btn-modal-confirm {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1.5px solid #38bdf8;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-modal-confirm:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

/* Oyuncular Listesi Checkbox & Satır Tasarımı (Beyaz, Gri ve Açık Mavi) */
.player-checklist-section {
  margin-bottom: 24px;
}

.player-section-title {
  font-size: 14px;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-check-row {
  display: grid;
  grid-template-columns: 36px 60px 1fr 70px 70px 140px 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.player-check-row:hover {
  background: #f8fafc;
  border-color: #38bdf8;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.player-check-row.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  background: #ffffff;
  transition: all 0.15s ease;
}

.player-check-row.selected .custom-checkbox {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.player-name-col {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.player-check-row .squad-table-ovr {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.player-age-col {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.training-growth-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.training-growth-badge.fast { background: #dcfce7; color: #15803d; }
.training-growth-badge.normal { background: #e0f2fe; color: #0369a1; }
.training-growth-badge.slow { background: #fef3c7; color: #b45309; }
.training-growth-badge.closed { background: #fee2e2; color: #b91c1c; }

.player-condition-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.condition-progress-bg {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.condition-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
}

.condition-progress-fill.low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.condition-val-text {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  min-width: 45px;
}

.morale-val-text {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
}

/* ==========================================================================
   TAKTİK SEÇİM MODALI (DEFANS, KONDİSYON, HÜCUM KARTLARI)
   ========================================================================== */
.tactics-category-tabs {
  display: flex;
  gap: 12px;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
}

.t-cat-tab {
  padding: 10px 24px;
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-cat-tab:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #38bdf8;
}

.t-cat-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.tactics-cards-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 28px;
  max-height: 380px;
  overflow-y: auto;
  background: #f8fafc;
}

.t-drill-select-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.t-drill-select-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
  background: #ffffff;
}

.t-drill-select-card:active {
  cursor: grabbing;
}

.drill-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drill-cat-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.drill-cat-tag.defans { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.drill-cat-tag.kondisyon { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.drill-cat-tag.ortasaha { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.drill-cat-tag.hucum { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.drill-diff-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.drill-diff-badge.kolay { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.drill-diff-badge.orta { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }
.drill-diff-badge.zor { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.t-drill-select-card .drill-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.t-drill-select-card .drill-gain {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 12px;
}

.t-drill-select-card .drill-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  margin-top: auto;
}

.t-drill-select-card .energy-cost {
  font-size: 12px;
  font-weight: 800;
  color: #d97706;
}

.t-drill-select-card .btn-add-drill-slot {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-drill-select-card .btn-add-drill-slot:hover {
  background: #0369a1;
}

.modal-slots-shelf {
  padding: 16px 24px;
  background: #f1f5f9;
  border-top: 1.5px solid #cbd5e1;
  border-radius: 0 0 16px 16px;
}

.shelf-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-slots-shelf .shelf-label {
  font-size: 13px;
  font-weight: 900;
  color: #334155;
  letter-spacing: 0.5px;
}

.btn-clear-slots {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-slots:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.modal-slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Slot Kartı (Dolu & Boş) */
.t-slot-card {
  height: 145px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  position: relative;
  transition: all 0.22s ease;
  user-select: none;
}

/* Boş Slot Kartı */
.t-slot-card.empty {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.t-slot-card.empty:hover,
.t-slot-card.empty.drag-over {
  border-color: #0284c7;
  background: #e0f2fe;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.25);
}

.slot-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slot-empty-plus {
  font-size: 26px;
  color: #94a3b8;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.slot-empty-title {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.slot-empty-desc {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

/* Dolu Slot Kartı */
.t-slot-card.filled {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.t-slot-card.filled.cat-defans {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.t-slot-card.filled.cat-kondisyon {
  background: #fefce8;
  border-color: #fde047;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
}

.t-slot-card.filled.cat-hucum {
  background: #fef2f2;
  border-color: #fca5a5;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.t-slot-card.filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.slot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.slot-card-num {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.slot-card-cat-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.slot-card-cat-tag.defans { background: #dbeafe; color: #1e40af; }
.slot-card-cat-tag.kondisyon { background: #fef08a; color: #854d0e; }
.slot-card-cat-tag.hucum { background: #fee2e2; color: #991b1b; }

.btn-remove-slot {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-remove-slot:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

.slot-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.slot-card-icon {
  font-size: 26px;
  margin-bottom: 2px;
}

.slot-card-name {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.slot-card-gain {
  font-size: 11px;
  font-weight: 800;
  color: #059669;
  margin-top: 2px;
}

.slot-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.slot-card-energy {
  font-size: 11px;
  font-weight: 800;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 8px;
  border-radius: 4px;
}

/* Taktik Modal Footer (Enerji & Zorluk Seviyesi Özeti) */
.tactics-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: #ffffff;
  border-top: 1.5px solid #e2e8f0;
}

.tactics-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tactics-energy-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.energy-total-tag {
  font-size: 13.5px;
  font-weight: 900;
  color: #d97706;
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.diff-level-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.diff-level-pill.diff-kolay {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.diff-level-pill.diff-orta {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fef08a;
}

.diff-level-pill.diff-zor {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.diff-level-pill.diff-none {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   CANLI ANTRENMAN SİMÜLASYONU (YUKARIDA KARTLAR & DOĞRUDAN AŞAĞI KAYAN METİNLER)
   ========================================================================== */
.training-sim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 10, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  z-index: 100;
  border-radius: 0;
  overflow: hidden;
}

.sim-view-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 20px;
}

.sim-pulse-dot {
  width: 12px;
  height: 12px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 16px #f59e0b;
  animation: simPulse 1.2s infinite ease-in-out;
}

.sim-main-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.sim-sub-title {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* 6 Kartın Yatay Sıralandığı Alan */
.sim-drills-row-top {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1300px;
}

.sim-drill-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 175px;
}

/* Simülasyondaki Kare Taktik Kartı & 3 Saniyelik Turuncu Dairesel / Kenar Slider */
.sim-drill-card {
  width: 160px;
  height: 160px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.sim-drill-card.waiting {
  opacity: 0.38;
  transform: scale(0.92);
}

.sim-drill-card.completed {
  opacity: 0.85;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.sim-drill-card.active {
  opacity: 1;
  transform: scale(1.06);
  border-color: #f59e0b;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.55), 0 12px 30px rgba(0, 0, 0, 0.8);
  background: rgba(30, 41, 59, 0.95);
}

/* 3 Saniyelik Turuncu Dolum / Geri Sayım Barı */
.sim-card-timer-track {
  width: 82%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.sim-card-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  box-shadow: 0 0 10px #f59e0b;
}

.sim-drill-card.active .sim-card-timer-fill {
  animation: simTimerProgress 3s linear forwards;
}

.sim-drill-card.completed .sim-card-timer-fill {
  width: 100%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: none;
}

.sim-drill-card.waiting .sim-card-timer-fill {
  width: 0%;
  animation: none;
}

@keyframes simTimerProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.sim-drill-card .sim-card-index {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}

.sim-drill-card .sim-card-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.sim-drill-card .sim-card-name {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
}

.sim-drill-card .sim-card-status {
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  color: #f59e0b;
}

.sim-drill-card.completed .sim-card-status {
  color: #10b981;
}

/* Doğrudan Kartın Altına Kayan Temiz Metin Akışı (Arka Plan Kutusuz, Çerçevesiz, Sade) */
.sim-drill-text-stream {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sim-drill-text-line {
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 2px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: textSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: transparent !important;
  border: none !important;
  padding: 2px 0;
}

@keyframes textSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sim-drill-text-line .sim-pname {
  color: #f1f5f9;
  font-weight: 700;
}

.sim-drill-text-line .sim-gain-badge {
  color: #4ade80;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

/* Canlı Antrenman Hızlı Geç Butonu (Task #2) */
.sim-bottom-actions {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 25;
}

.btn-skip-training-sim {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(2, 132, 199, 0.95));
  border: 2px solid #38bdf8;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5), 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
}

.btn-skip-training-sim:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.8), 0 12px 28px rgba(0, 0, 0, 0.8);
  border-color: #7dd3fc;
}

.btn-skip-training-sim:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   OYUNCU KADEME & YILDIZ ATLAMA KUTLAMA MODALI (Task #3 & #7 - Modern PES Teması)
   ========================================================================== */
.training-star-celebration-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.75);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.star-celebration-card-pes {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.25);
  animation: starCelebrationPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scc-pes-top-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 14px;
}

.scc-pes-tag {
  font-size: 11.5px;
  font-weight: 900;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.scc-pes-main-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.3px;
}

.scc-pes-content-split {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

/* Sol Kart Kutusu */
.scc-pes-card-box {
  flex-shrink: 0;
}

.scc-pes-card-body {
  width: 130px;
  height: 180px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3), 0 0 16px rgba(56, 189, 248, 0.3);
}

.scc-pc-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scc-pc-pos {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: #0284c7;
  color: #ffffff;
}

.scc-pc-ovr {
  font-size: 20px;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.scc-pc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-pc-name {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Sağ Bilgi Kutusu */
.scc-pes-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scc-pes-player-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scc-pes-header-name {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.scc-ovr-evolution {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scc-ovr-old {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.scc-arrow {
  color: #0284c7;
  font-weight: 900;
}

.scc-ovr-new {
  font-size: 14px;
  font-weight: 900;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.scc-ovr-delta {
  font-size: 13px;
  font-weight: 900;
  color: #16a34a;
  margin-left: 2px;
}

.scc-stars-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scc-stars-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.scc-stars-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

.scc-star-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.scc-star-img.newly-unlocked {
  animation: starUnlockPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.scc-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  width: fit-content;
}

.scc-desc-box {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  line-height: 1.4;
}

.scc-pes-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1.5px solid #e2e8f0;
  padding-top: 16px;
}

.btn-scc-continue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-scc-continue:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

/* ==========================================================================
   ANALİZ VE ÖZET MODALI (ANTRENMAN SONU GELİŞİM RAPORU)
   ========================================================================== */
.analytics-modal {
  max-width: 1040px;
}

.analytics-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(15, 23, 42, 0.9));
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.4);
}

.analytics-trophy-icon {
  font-size: 40px;
  filter: drop-shadow(0 0 14px #fbbf24);
}

.analytics-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 520px;
  overflow-y: auto;
  padding: 24px 28px;
}

/* 1. KPI İstatistik Özeti Barı */
.analytics-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.kpi-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.kpi-item.highlight {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.kpi-icon {
  font-size: 24px;
}

.kpi-meta {
  display: flex;
  flex-direction: column;
}

.kpi-val {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.kpi-item.highlight .kpi-val {
  color: #15803d;
}

.kpi-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.4px;
}

/* 2. Oyuncu Gelişim Liste Görünümü (Yüksek Kontrast, Okunaklı Satırlar) */
.analytics-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  gap: 16px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.analytics-list-row:hover {
  border-color: #38bdf8;
  background: #f8fafc;
  transform: translateX(2px);
}

.analytics-list-row.gained {
  border-left: 5px solid #10b981;
  background: #f0fdf4;
}

.analytics-list-row.skipped {
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
}

/* Sol Blok: ID, Forma, Mevki, Oyuncu Adı, OVR */
.analytics-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.analytics-jersey-badge {
  width: 28px;
  height: 28px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-row-info {
  display: flex;
  flex-direction: column;
}

.analytics-row-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-row-name {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.analytics-ovr-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2px 6px;
  border-radius: 6px;
}

.analytics-row-sub {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Orta Blok: Kazanılan Gelişimler */
.analytics-row-center {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.analytics-gain-pill {
  font-size: 12px;
  font-weight: 900;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.1);
}

.analytics-gain-pill .gain-arrow {
  color: #16a34a;
  font-size: 11px;
}

.analytics-no-gain-text {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-style: italic;
}

.analytics-skipped-reason {
  font-size: 12px;
  font-weight: 800;
  color: #d97706;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

/* Sağ Blok: Enerji & Kalan Durum Barı */
.analytics-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.analytics-energy-delta {
  font-size: 12px;
  font-weight: 900;
  color: #ea580c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 6px;
}

.analytics-cond-wrap {
  width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-cond-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.analytics-cond-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.analytics-cond-pct {
  font-size: 11px;
  font-weight: 900;
  color: #334155;
  min-width: 32px;
  text-align: right;
}

/* Sunucudan gelen günlük antrenman hakkı ve enerji dolum bilgisi */
.training-session-info {
  position: absolute;
  top: 18px;
  left: 24px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(18, 26, 36, 0.9);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* Antrenmana alınamayan oyuncu kartı (enerji yetersiz / günlük hak doldu) */
.analytics-player-card.skipped {
  opacity: 0.62;
  border-color: rgba(239, 68, 68, 0.4);
}

.analytics-modal .t-modal-footer.analytics-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.btn-analytics-finish {
  margin-left: auto;
  min-width: 220px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   OYUNCU ENERJİ YÖNETİMİ & TAKVİYE MODALI (MODAL 5)
   ========================================================================== */
.energy-boost-modal {
  max-width: 780px !important;
  width: 94%;
}

.energy-header .energy-pulse-icon {
  font-size: 28px;
  color: #0284c7;
  background: #e0f2fe;
  border: 1.5px solid #7dd3fc;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.energy-wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.btn-energy-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-energy-modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.08);
}

.energy-boost-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px;
  max-height: 520px;
  overflow-y: auto;
}

.energy-section-title {
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 8px 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.energy-player-row {
  display: grid;
  grid-template-columns: 55px 1.3fr 45px 2.4fr 85px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.energy-player-row:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.energy-player-row.boost-queued {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.energy-p-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.energy-bar-container {
  position: relative;
  width: 100%;
  height: 26px;
  display: flex;
  align-items: center;
}

.energy-bar-track {
  width: 100%;
  height: 26px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid #cbd5e1;
}

.energy-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.energy-bar-preview-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}
/* the stripes slide on their own layer (transform: no repaint each frame; background-position repainted the bar,
   over the 3D pitch, on every frame) — one stripe period (16px at 45° = 22.63px across) per loop, seamless */
.energy-bar-preview-fill::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -23px;
  right: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(16, 185, 129, 0.7),
    rgba(16, 185, 129, 0.7) 8px,
    rgba(4, 120, 87, 0.9) 8px,
    rgba(4, 120, 87, 0.9) 16px
  );
  animation: energyStripeMove 1.06s linear infinite;
}

.energy-bar-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
  letter-spacing: 0.3px;
}

@keyframes energyStripeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(22.63px); }
}

.energy-actions-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-boost-energy-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 65px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.8px solid #34d399;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
}

.btn-boost-energy-plus:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(16, 185, 129, 0.45);
}

.btn-boost-energy-plus:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-boost-undo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-boost-undo:hover {
  background: #fecaca;
  transform: scale(1.08);
}

.btn-fill-all-quick {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #34d399 !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
}

.btn-fill-all-quick:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.5) !important;
}

.energy-boost-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  min-height: 72px;
  flex-shrink: 0;
  box-sizing: border-box;
  gap: 16px;
}

.energy-footer-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.energy-summary-main {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.energy-summary-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.3;
}

.energy-footer-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   ANTRENMAN GEÇMİŞİ MODALI STİLLERİ (MODAL 4.5)
   ========================================================================== */
.history-modal {
  width: 900px !important;
  max-width: 94% !important;
}

.history-head-icon {
  font-size: 32px;
}

.history-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
}

.history-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.history-empty-icon {
  font-size: 48px;
  opacity: 0.7;
}

.history-empty-text {
  font-size: 16px;
  font-weight: 800;
  color: #64748b;
}

.history-session-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1.8px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.history-session-row:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.history-session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.history-session-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-time-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: 8px;
}

.history-kpi-chip {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
}

.history-kpi-chip.highlight {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.history-kpi-chip.tp-chip {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.btn-history-repeat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.btn-history-repeat:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.history-drills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-drill-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1.2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
}

.history-drill-pill .pill-cat-tag {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
}

.history-drill-pill .pill-cat-tag.defans { background: #dbeafe; color: #1e40af; }
.history-drill-pill .pill-cat-tag.kondisyon { background: #fef3c7; color: #92400e; }
.history-drill-pill .pill-cat-tag.hucum { background: #fee2e2; color: #991b1b; }
.history-drill-pill .pill-cat-tag.kaleci { background: #e0e7ff; color: #3730a3; }

.history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
}

.history-footer-note {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.history-icon-wrap {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.history-icon-wrap .hud-card-icon {
  font-size: 22px;
  color: #2563eb;
}

.hud-history-action-lbl {
  font-size: 12px;
  font-weight: 900;
  color: #0284c7;
}

.btn-energy-confirm {
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.8px solid #34d399;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-energy-confirm:disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Hoş Açık Mavi Albenili Reklam Butonu */
.btn-training-ad-watch {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #38bdf8 100%);
  border: 2px solid #7dd3fc;
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-training-ad-watch:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 45%, #0ea5e9 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-training-ad-watch:disabled,
.btn-training-ad-watch.disabled {
  opacity: 0.6;
  filter: grayscale(0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-training-ad-watch .ad-btn-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: adIconBounce 2.5s infinite ease-in-out;
}

@keyframes adIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.1); }
}

.btn-training-ad-watch .ad-btn-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
}

.btn-training-ad-watch .ad-btn-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-training-ad-watch .ad-btn-sub {
  font-size: 11px;
  font-weight: 800;
  color: #e0f2fe;
}

.btn-training-ad-watch .ad-btn-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0) rotate(25deg);
  animation: adButtonShine 3.5s infinite;
  pointer-events: none;
}

/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes adButtonShine {
  0% { transform: translateX(0) rotate(25deg); }
  35%, 100% { transform: translateX(500%) rotate(25deg); }
}

.btn-energy-confirm {
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.8px solid #34d399;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-energy-confirm:disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ==========================================================================
   3 SANİYELİK ÖDÜLLÜ REKLAM SİMÜLASYONU (MODAL 6)
   ========================================================================== */
.training-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ad-sim-wrapper {
  width: 100%;
  max-width: 680px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(14, 165, 233, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ad-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.ad-sponsor-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.ad-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.ad-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.btn-ad-close {
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-ad-close.locked {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}

.btn-ad-close.unlocked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1.5px solid #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  cursor: pointer;
  animation: adCloseGlow 1.5s infinite alternate;
  position: relative;
}
/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
.btn-ad-close.unlocked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.8);
  opacity: 0;
  pointer-events: none;
  animation: adCloseGlowGlow 1.5s infinite alternate;
}

@keyframes adCloseGlow {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
@keyframes adCloseGlowGlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ad-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
}

.ad-ball-spinner-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ad-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px dashed #0284c7;
  animation: adRingSpin 6s linear infinite;
}

@keyframes adRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ad-spinning-ball {
  font-size: 48px;
  animation: adBallSpin 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes adBallSpin {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(0.9); }
}

.ad-main-heading {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.ad-sub-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.ad-progress-track {
  width: 100%;
  max-width: 360px;
  height: 8px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #334155;
}

.ad-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.ad-bottom-bar {
  padding: 12px 24px;
  background: #090d16;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.ad-footer-note {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

/* ==========================================================================
   UZMAN KOÇ SİSTEMİ (HUD KARTI & BÜYÜTÜLMÜŞ MODAL STİLLERİ)
   ========================================================================== */

/* HUD Coach Card iç görünüm düzenleri (Diğer kartlarla tam uyumlu) */
.coach-slot-empty-view,
.coach-slot-active-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.coach-icon-wrap {
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.coach-icon-wrap.active {
  background: #dcfce7;
  border-color: #86efac;
}

.hud-coach-action-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #0284c7;
}

/* ==========================================================================
   UZMAN KOÇ MODAL DETAYLARI (BÜYÜTÜLMÜŞ & OKUNAKLI)
   ========================================================================== */

.coach-modal-container {
  max-width: 1060px;
  width: 95%;
}

.coach-header-emoji {
  font-size: 38px;
}

.coach-modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.coach-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coach-card-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  position: relative;
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.coach-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.coach-card-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

/* Kart Temaları */
.coach-card-ad {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.coach-card-ad .coach-card-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.coach-card-token {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}
.coach-card-token .coach-card-badge {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.coach-card-legend {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fefce8 0%, #ffffff 100%);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.18);
}
.coach-card-legend:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.35);
}
.coach-card-legend .legend-badge {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.coach-card-item.is-current-active {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 12px 30px rgba(16, 185, 129, 0.15) !important;
}

.coach-card-item.is-blocked {
  opacity: 0.65;
  filter: grayscale(0.2);
}
.coach-card-item.is-blocked:hover {
  transform: none !important;
  box-shadow: none !important;
}

.coach-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-top: 6px;
}

.coach-avatar {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.coach-avatar .coach-flag {
  position: absolute;
  top: -5px;
  left: -5px;
  font-size: 18px;
}

.coach-avatar .coach-face {
  font-size: 32px;
}

.coach-avatar-dutch { border-color: #7dd3fc; background: #e0f2fe; }
.coach-avatar-english { border-color: #86efac; background: #dcfce7; }
.coach-avatar-legend { border-color: #fde047; background: #fef08a; }

.coach-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.coach-name {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.coach-role {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.25;
}

.coach-bonus-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
}

.coach-card-ad .coach-bonus-box {
  background: #e0f2fe;
  border-color: #bae6fd;
}
.coach-card-token .coach-bonus-box {
  background: #dcfce7;
  border-color: #bbf7d0;
}
.coach-card-legend .coach-bonus-box {
  background: #fef3c7;
  border-color: #fde68a;
}

.coach-bonus-val {
  font-size: 20px;
  font-weight: 900;
  color: #0284c7;
}
.coach-card-token .coach-bonus-val { color: #16a34a; }
.coach-card-legend .coach-bonus-val { color: #b45309; }

.coach-bonus-lbl {
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
}

.coach-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex: 1;
}

.coach-duration-pill {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}
.legend-pill {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.btn-hire-coach {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-hire-ad {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
}
.btn-hire-ad:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

.btn-hire-token {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.5px solid #34d399;
  color: #ffffff;
}
.btn-hire-token:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-hire-legend {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #fbbf24;
  color: #ffffff;
}
.btn-hire-legend:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

/* Aktif Koç Bilgi Çubuğu */
.active-coach-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.8px solid #86efac;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}

.active-coach-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-active-icon {
  font-size: 28px;
}

.banner-active-texts {
  display: flex;
  flex-direction: column;
}

.banner-active-title {
  font-size: 14px;
  font-weight: 900;
  color: #14532d;
}

.banner-active-sub {
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
}

.banner-timer-badge {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 900;
  color: #047857;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #86efac;
}

.coach-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.coach-footer-note {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

/* ==========================================================================
   2X ÇİFTE GELİŞİM ANTRENMAN ONAY MODALI (Task #3)
   ========================================================================== */

.double-bonus-modal-container {
  max-width: 600px;
  width: 95%;
}

.double-bonus-header {
  border-bottom: 2px solid #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.double-bonus-header-icon {
  font-size: 34px;
}

.double-bonus-modal-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.double-bonus-hero-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #f97316;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.2);
}

.double-bonus-multiplier-badge {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 2px solid #fed7aa;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  animation: doubleBadgePulse 2.5s infinite ease-in-out;
  position: relative;
}
/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
.double-bonus-multiplier-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.65);
  opacity: 0;
  pointer-events: none;
  animation: doubleBadgePulseGlow 2.5s infinite ease-in-out;
}

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

.double-bonus-hero-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.double-bonus-hero-title {
  font-size: 15px;
  font-weight: 900;
  color: #9a3412;
  margin: 0;
}

.double-bonus-hero-desc {
  font-size: 12px;
  font-weight: 700;
  color: #7c2d12;
  margin: 0;
  line-height: 1.4;
}

.double-bonus-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

.db-feature-icon {
  font-size: 20px;
  line-height: 1.2;
}

.db-feature-texts {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}

.db-feature-texts strong {
  color: #0f172a;
  font-weight: 900;
}

.double-bonus-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.btn-confirm-double-ad {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 1.8px solid #fed7aa;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  transition: all 0.2s ease;
}

.btn-confirm-double-ad:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.6);
}

/* Modal İptal / Vazgeç / İkincil Eylem Butonları (Modern UI Standardı) */
.btn-modal-cancel,
.btn-modal-secondary,
.btn-action-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-modal-cancel:hover,
.btn-modal-secondary:hover,
.btn-action-cancel:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@container game (max-width: 768px) {
  .coach-cards-grid {
    grid-template-columns: 1fr;
  }
  .draft-cards-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5 KADEMELİ (TIER) TAKTİK KARTLARI & ELİT PİP GÖSTERGELERİ
   ========================================================================== */
.drill-tier-indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 8px 0;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.drill-tier-label {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
}

.drill-tier-pips {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tier-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.tier-pip.filled.tier-1 {
  background: #cbd5e1;
  border-color: #94a3b8;
  box-shadow: 0 0 6px rgba(203, 213, 225, 0.7);
}

.tier-pip.filled.tier-2 {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

.tier-pip.filled.tier-3 {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.95);
}

.tier-pip.filled.tier-4 {
  background: #9333ea;
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 1.0);
}

.tier-pip.filled.tier-5 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-color: #fde047;
  box-shadow: 0 0 14px rgba(253, 224, 71, 1.0), 0 0 22px rgba(245, 158, 11, 0.7);
  animation: tierGoldGlow 1.8s infinite ease-in-out;
}

/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes tierGoldGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* Kilitli Taktik Kartı Stili (Elit Dark Slate / Buzlu Kilit) */
.t-drill-select-card.locked {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px dashed #475569;
  opacity: 0.72;
  cursor: pointer;
  filter: grayscale(0.4);
}

.t-drill-select-card.locked:hover {
  transform: translateY(-2px);
  border-color: #64748b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  opacity: 0.85;
}

.t-drill-select-card.locked .btn-add-drill-slot {
  background: #475569;
  cursor: not-allowed;
}

.drill-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #475569;
  padding: 2px 8px;
  border-radius: 6px;
}

.drill-card-img-wrap {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: 
    radial-gradient(ellipse at 50% 30%, #15803d 0%, #166534 50%, #052e16 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 15px,
      transparent 15px,
      transparent 30px
    );
  background-blend-mode: overlay;
  border: 1.5px solid #22c55e;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6), 0 4px 14px rgba(21, 128, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.drill-card-icon {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 10px rgba(74, 222, 128, 0.4));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.t-drill-select-card:hover .drill-card-icon {
  transform: scale(1.15) translateY(-2px);
}

.t-drill-select-card.locked .drill-card-img-wrap {
  background: radial-gradient(ellipse at 50% 30%, #334155 0%, #1e293b 60%, #0f172a 100%);
  border-color: #475569;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.t-drill-select-card.locked .drill-card-icon {
  filter: grayscale(0.9) opacity(0.5);
}

.drill-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drill-desc-text {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin: 4px 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   MODAL 8: SEVİYE ATLAMA 3'LÜ TAKTİK KART DRAFT SEÇİM MODALI
   ========================================================================== */
.drill-draft-modal-container {
  width: 95%;
  max-width: 980px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #38bdf8;
  display: flex;
  flex-direction: column;
}

.drill-draft-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 20px 28px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.drill-draft-header .t-modal-title {
  color: #ffffff;
  font-size: 22px;
}

.drill-draft-header .t-modal-sub {
  color: #e0f2fe;
  font-size: 13px;
}

.draft-header-sparkle {
  font-size: 32px;
}

.drill-draft-modal-body {
  padding: 28px;
  background: #f8fafc;
  flex: 1;
  overflow-y: auto;
}

.draft-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.draft-card-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
  position: relative;
}

.draft-card-item:hover {
  transform: translateY(-6px);
  border-color: #0284c7;
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.28);
}

.draft-card-action-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.draft-card-action-badge.unlock {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.draft-card-action-badge.upgrade {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.draft-card-img-wrap {
  width: 100%;
  height: 145px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: 
    radial-gradient(ellipse at 50% 30%, #15803d 0%, #166534 50%, #052e16 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 20px,
      transparent 20px,
      transparent 40px
    );
  background-blend-mode: overlay;
  border: 2px solid #22c55e;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(21, 128, 61, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.draft-card-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px rgba(74, 222, 128, 0.55));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.draft-card-item:hover .draft-card-icon {
  transform: scale(1.18) translateY(-4px);
}

.draft-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-card-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.draft-card-cat-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.draft-card-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.draft-card-stats-box {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
}

.draft-stats-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.draft-stats-list {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draft-stat-tag {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.btn-select-draft-drill {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-select-draft-drill:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.drill-draft-footer {
  padding: 14px 28px;
  background: #f1f5f9;
  border-top: 1.5px solid #e2e8f0;
  text-align: center;
}

.draft-footer-hint {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

/* ==========================================================================
   MODAL 9: TAKTİK KÜTÜPHANESİ & SEVİYE AĞACI MODALI
   ========================================================================== */
.tactics-overview-modal-container {
  width: 95%;
  max-width: 1280px;
  max-height: 92%;
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 2px solid #38bdf8;
  display: flex;
  flex-direction: column;
}

.tactics-overview-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 18px 80px 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  gap: 16px;
}

.tactics-overview-header .t-modal-title {
  color: #ffffff;
  font-size: 21px;
}

.tactics-overview-header .t-modal-sub {
  color: #e0f2fe;
  font-size: 12.5px;
}

.overview-header-icon {
  font-size: 36px;
}

.tactics-overview-stats-pills {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.top-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.stat-pill-label {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #e0f2fe;
}

.stat-pill-val {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.stat-pill-val.gold {
  color: #fde047;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.overview-cat-tabs {
  background: #1e293b;
  border-bottom: 1.5px solid #334155;
  padding: 12px 28px;
  display: flex;
  gap: 10px;
}

.t-overview-cat-tab {
  padding: 8px 20px;
  background: #0f172a;
  color: #94a3b8;
  border: 1.5px solid #334155;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-overview-cat-tab:hover {
  background: #334155;
  color: #ffffff;
  border-color: #38bdf8;
}

.t-overview-cat-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.tactics-overview-modal-body {
  padding: 24px 28px;
  background: #0b1120;
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tactics-overview-footer {
  padding: 14px 28px;
  background: #1e293b;
  border-top: 1.5px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-footer-hint {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  max-width: 80%;
  line-height: 1.4;
}

/* ==========================================================================
   MODAL 10: HIZLI ANTRENMAN OTOMASYONU MODALI
   ========================================================================== */
.quick-training-modal-container {
  width: 95%;
  max-width: 960px;
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 2px solid #38bdf8;
  display: flex;
  flex-direction: column;
}

.quick-training-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 18px 80px 18px 28px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.quick-training-header .t-modal-title {
  color: #ffffff !important;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.quick-training-header .t-modal-sub {
  color: #e0f2fe !important;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 4px;
}

.quick-header-icon {
  font-size: 34px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.quick-training-modal-body {
  padding: 28px;
  background: #0b1329;
  flex: 1;
  overflow-y: auto;
}

.quick-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-option-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  position: relative;
}

.quick-option-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.quick-option-card.kolay {
  border-color: #22c55e;
}
.quick-option-card.kolay:hover {
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.28);
}

.quick-option-card.orta {
  border-color: #f59e0b;
}
.quick-option-card.orta:hover {
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.quick-option-card.zor {
  border-color: #ef4444;
}
.quick-option-card.zor:hover {
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.28);
}

.quick-card-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.quick-option-card.kolay .quick-card-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.quick-option-card.orta .quick-card-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.quick-option-card.zor .quick-card-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.quick-card-icon-wrap {
  width: 100%;
  height: 90px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-card-icon {
  font-size: 46px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.quick-card-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.quick-card-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 16px 0;
  min-height: 36px;
}

.quick-card-specs {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.quick-spec-item .spec-label {
  color: #64748b;
  font-weight: 700;
}

.quick-spec-item .spec-val {
  color: #f8fafc;
  font-weight: 900;
}

.quick-spec-item .energy-val {
  color: #38bdf8;
}

.btn-select-quick-intensity {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-select-quick-intensity.btn-kolay {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-select-quick-intensity.btn-kolay:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

.btn-select-quick-intensity.btn-orta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-select-quick-intensity.btn-orta:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.btn-select-quick-intensity.btn-zor {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.btn-select-quick-intensity.btn-zor:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55);
}

.quick-training-footer {
  padding: 14px 28px;
  background: #0f172a;
  border-top: 1.5px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-footer-hint {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  max-width: 80%;
}





/* ==========================================================================
   3D ANTRENMAN SAHASI (training3d.js) — the Unity canvas behind the panel's cards
   ========================================================================== */
.training-3d-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.training-3d-stage .unity3d-canvas { opacity: 0; transition: opacity 0.45s ease; }
.training-3d-stage.is-live .unity3d-canvas { opacity: 1; }
.training-3d-loader { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 999px; background: rgba(4, 22, 12, 0.82); border: 1px solid rgba(134, 239, 172, 0.35); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); color: #ecfdf5; font-size: 15px; font-weight: 800; white-space: nowrap; pointer-events: none; }
.training-3d-loader[hidden] { display: none; }
.training-3d-ball { display: inline-block; font-size: 30px; line-height: 1; animation: training3dSpin 1s linear infinite; }
@keyframes training3dSpin { to { transform: rotate(360deg); } }
/* while the squad trains in 3D the session cards sit on the picture, not on a dark sheet */
.training-3d-on .training-sim-overlay { background: linear-gradient(180deg, rgba(4, 15, 10, 0.72) 0%, rgba(4, 15, 10, 0.12) 46%, rgba(4, 15, 10, 0.5) 100%); }
.training-3d-on.training-session-on .training-bottom-hud-row { visibility: hidden; }
