/* ==========================================================================
   TOP ELEVEN STYLE PLAYER INFO MODAL (OYUNCU DETAY PENCERESİ - PENCERE İÇİ ABSOLUTE)
   ========================================================================== */
.player-info-modal-overlay {
    /* AGENTS.md §4.3: pencere içi panel — fixed DEĞİL, pencereye (#gameViewport) göre absolute. */
  position: absolute;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 12, 0.88);


  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  animation: piModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes piModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.player-info-modal-container {
  width: 96%;
  max-width: 1240px;
  min-height: min(680px, 96%);  /* a phone's window is only ~540 high */
  max-height: 96%;
  background: #1e2430;
  border-radius: 16px;
  border: 2px solid #475569;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top Dark Header Banner (Graphite & Charcoal) */
.pi-modal-header {
  position: relative;
  background: linear-gradient(180deg, #2a313d 0%, #1a1e27 100%);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #334155;
}

.pi-edit-btn {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 32px;
  height: 32px;
  background: #10b981;
  border: 1px solid #34d399;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
  z-index: 10;
}
.pi-edit-btn:hover {
  transform: scale(1.1);
  background: #059669;
}

.pi-avatar-wrap {
  position: relative;
  width: 86px;
  height: 98px;
  flex-shrink: 0;
  margin-left: 28px;
}

.pi-avatar-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-radius: 12px;
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.pi-avatar-kit-body {
  width: 62px;
  height: 72px;
  background: linear-gradient(135deg, #334155, #1e293b);
  border-radius: 12px 12px 6px 6px;
  border: 1.5px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.pi-avatar-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.pi-nation-flag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 22px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9));
}

.pi-header-identity-col {
  flex: 1.2;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pi-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pi-jersey-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  font-family: 'Rajdhani', sans-serif;
}

.pi-player-name {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pi-ovr-stars-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1px;
}

.pi-ovr-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.pi-ovr-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.pi-ovr-val {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.pi-ovr-val.ovr-mutant, .pi-skill-val.ovr-mutant { color: #d946ef; text-shadow: 0 0 10px rgba(217, 70, 239, 0.6); }
.pi-ovr-val.ovr-red, .pi-skill-val.ovr-red { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.pi-ovr-val.ovr-orange, .pi-skill-val.ovr-orange { color: #f97316; text-shadow: 0 0 10px rgba(249, 115, 22, 0.6); }
.pi-ovr-val.ovr-yellow, .pi-skill-val.ovr-yellow { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.6); }
.pi-ovr-val.ovr-green, .pi-skill-val.ovr-green { color: #0891b2; text-shadow: 0 0 10px rgba(8, 145, 178, 0.6); }
.pi-ovr-val.ovr-white, .pi-skill-val.ovr-white { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }

.pi-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pi-header-star-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.pi-info-badge {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  opacity: 0.85;
  padding: 0;
}

.pi-meta-subline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 1px;
}
.pi-meta-subline strong {
  color: #f1f5f9;
}

/* 3. Mevkiler & Eğitim Kolonu */
.pi-header-positions-col {
  flex: 1.3;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
}

.pi-section-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}

.pi-positions-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pi-positions-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pi-pos-pill {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.pi-pos-pill.main {
  background: #f59e0b;
  color: #0f172a;
}

.pi-pos-pill.sub {
  background: #38bdf8;
  color: #0f172a;
}

.pi-btn-start-pos-train {
  background: rgba(16, 185, 129, 0.15);
  border: 1px dashed #10b981;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.pi-btn-start-pos-train:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #ffffff;
  border-style: solid;
  transform: translateY(-1px);
}

.pi-pos-training-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #0284c7;
  border-radius: 6px;
  padding: 3px 8px;
  min-width: 130px;
}

.pi-pos-train-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

.pi-pos-train-badge {
  font-weight: 800;
  color: #38bdf8;
  font-family: 'Rajdhani', sans-serif;
}

.pi-pos-train-val {
  font-weight: 800;
  color: #fbbf24;
  font-size: 10px;
}

.pi-btn-cancel-train {
  background: none;
  border: none;
  color: #f87171;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.8;
}
.pi-btn-cancel-train:hover {
  opacity: 1;
  transform: scale(1.2);
}

.pi-pos-prog-track {
  width: 100%;
  height: 5px;
  background: #0f172a;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.pi-pos-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Position Selection Modal Styles */
.pi-pos-select-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.pi-pos-select-desc {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.5;
  text-align: center;
}

.pi-pos-select-desc strong {
  color: #38bdf8;
}

.pi-pos-select-subtext {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.pi-pos-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.pi-pos-select-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(51, 65, 85, 0.8);
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.pi-pos-select-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #64748b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pi-pos-select-card.selected {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.pi-pos-select-card .pes-card-pos {
  font-size: 13px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
  letter-spacing: 0.5px;
}

.pi-pos-select-name {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.2;
}

.pi-pos-select-card.selected .pi-pos-select-name {
  color: #ffffff;
  font-weight: 800;
}

.pi-skill-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
}
.pi-special-skill {
  color: #e2e8f0;
  font-weight: 700;
}

.pi-add-skill-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.pi-add-skill-btn:hover {
  transform: scale(1.15);
  background: #0369a1;
}

/* 4. Finans & Sözleşme Kolonu */
.pi-header-finance-col {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
}

.pi-finance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.pfi-label {
  color: #94a3b8;
  font-weight: 600;
}

.pfi-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.pfi-val.green { color: #34d399; }
.pfi-val.blue { color: #38bdf8; }
.pfi-val.yellow { color: #facc15; }

/* 5. En Sağ: Kapat Butonu */
.pi-header-right {
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-left: auto;
}

.pi-action-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.pi-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pi-close-modal-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: #fca5a5;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.pi-close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

/* Modal Body: Left Tab Menu + Right Content Views */
.pi-modal-body {
  display: flex;
  flex: 1;
  min-height: 520px;
  background: #cbd5e1; /* Clean light grey / silver background */
}

/* Left Sidebar Tab Navigation */
.pi-sidebar-nav {
  width: 200px;
  background: #1e2430;
  border-right: 1.5px solid #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
}

.pi-nav-tab {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}
.pi-nav-tab:hover {
  background: #94a3b8;
  color: #0f172a;
}
.pi-nav-tab.active {
  background: #0f141d;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Right Tab Contents Container (Light Grey Content Area) */
.pi-tab-content-area {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #cbd5e1;
}

.pi-subtab-view {
  width: 100%;
}

.pi-subtab-view#piTabSkills {
  display: block;
}

.pi-skills-container {
  width: 100%;
}

/* Specs Bar (Kilo, Boy, Ayak) */
.pi-quick-specs-bar {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pi-spec-item {
  font-size: 14px;
  color: #475569;
  font-weight: 800;
}
.pi-spec-item strong {
  color: #0f172a;
  font-weight: 900;
}

.pi-spec-divider {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
}

.pi-foot-visual {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pi-foot-visual .foot-tag {
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
}
.pi-foot-visual .foot-tag.active {
  background: #10b981;
  color: #ffffff;
  font-weight: 900;
}

/* 3 Interactive Status Cards (SAKATLIK, MORAL, KONDİSYON) */
.pi-status-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pi-status-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pi-sc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pi-sc-icon.red { color: #ef4444; }
.pi-sc-icon.blue { color: #0284c7; }
.pi-sc-icon.green { color: #10b981; }

.pi-sc-main-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.pi-sc-status-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
}

.pi-sc-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pi-sc-progress-bar {
  flex: 1;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.pi-sc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.pi-sc-progress-num {
  font-size: 13.5px;
  font-weight: 900;
  color: #059669;
  font-family: 'Rajdhani', sans-serif;
}

.pi-sc-plus-btn {
  background: #10b981;
  border: 1px solid #34d399;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
  margin-left: 8px;
}
.pi-sc-plus-btn:hover {
  background: #059669;
  transform: scale(1.1);
}

.pi-sc-desc {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
}

/* ==========================================================================
   TOP ELEVEN STYLE 3-COLUMN SKILLS PANEL (SAVUNMA - HÜCUM - FİZİKSEL)
   ========================================================================== */
.pi-skills-3col-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pi-skills-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.pi-skill-col {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.pi-col-header {
  padding: 11px 16px;
  background: #f1f5f9;
  border-bottom: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

.pi-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-col-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
}

.pi-col-badge.def-badge {
  background: #16a34a;
}

.pi-col-badge.att-badge {
  background: #dc2626;
}

.pi-col-badge.phy-badge {
  background: #2563eb;
}

.pi-col-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.6px;
  font-family: 'Rajdhani', sans-serif;
}

.pi-col-avg {
  font-size: 21px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
}

.pi-col-rows {
  display: flex;
  flex-direction: column;
}

.pi-col-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 42px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.15s ease;
  position: relative;
  border-left: 5px solid transparent;
}

.pi-col-row:last-child {
  border-bottom: none;
}

.pi-col-row:nth-child(even) {
  background: #f8fafc;
}

.pi-col-row:hover {
  background: #f1f5f9;
}

/* Kilit özellikler (Top Eleven sol renkli dikey şerit vurgusu) */
.col-defense .pi-col-row.key-attr {
  border-left: 5px solid #16a34a;
  background: rgba(22, 163, 74, 0.05);
}

.col-attack .pi-col-row.key-attr {
  border-left: 5px solid #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.col-physical .pi-col-row.key-attr {
  border-left: 5px solid #2563eb;
  background: rgba(37, 99, 235, 0.05);
}

.pi-attr-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #334155;
}

.pi-col-row.key-attr .pi-attr-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

.pi-stat-number {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
  min-width: 26px;
  text-align: right;
}

/* Modal içi açık/beyaz zemin OVR ve Özellik Renk Skalası */
.pi-stat-number.ovr-mutant, .pi-col-avg.ovr-mutant { color: #c026d3; text-shadow: none; }
.pi-stat-number.ovr-red, .pi-col-avg.ovr-red { color: #dc2626; text-shadow: none; }
.pi-stat-number.ovr-orange, .pi-col-avg.ovr-orange { color: #ea580c; text-shadow: none; }
.pi-stat-number.ovr-yellow, .pi-col-avg.ovr-yellow { color: #ca8a04; text-shadow: none; }
.pi-stat-number.ovr-green, .pi-col-avg.ovr-green { color: #0284c7; text-shadow: none; }

/* Kullanıcının isteği: Beyaz OVR bu açık zeminli panelde görünmediği için siyah (#0f172a) yapılır */
.pi-stat-number.ovr-white, .pi-col-avg.ovr-white,
.pi-stat-number.ovr-grey, .pi-col-avg.ovr-grey,
.pi-stat-number.ovr-black, .pi-col-avg.ovr-black {
  color: #0f172a !important;
  text-shadow: none !important;
}

/* Empty State / Custom Tabs */
.pi-card-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 20px;
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pi-card-empty-state .empty-icon {
  font-size: 40px;
}
.pi-card-empty-state h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}
.pi-card-empty-state p {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  max-width: 420px;
  line-height: 1.5;
  font-weight: 600;
}

/* Stats and Contract Grids */
.pi-stats-grid,
.pi-contract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pi-kpi-tile {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pi-kpi-tile .kpi-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.pi-kpi-tile .kpi-value {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Rajdhani', sans-serif;
}

/* Official Contract Dashboard (Large Black Typography & Official Club Sheet Look) */
.pi-contract-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.pi-contract-grid-official {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pi-kpi-tile-official {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pi-kpi-tile-official.full-width {
  grid-column: 1 / -1;
  background: #f8fafc;
  border-color: #94a3b8;
}

.pi-kpi-tile-official .official-kpi-label {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pi-kpi-tile-official .official-kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a; /* Tam siyah / lacivert resmi yazı */
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pi-kpi-tile-official .official-kpi-sub {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.pi-kpi-tile-official .token-highlight {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  background: #fef08a;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #facc15;
}

/* Active Listing Banners */
.pi-listing-active-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pi-listing-active-banner.transfer-active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #10b981;
}

.pi-listing-active-banner.loan-active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #38bdf8;
}

.pi-listing-active-banner .banner-icon {
  font-size: 24px;
}

.pi-listing-active-banner .banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pi-listing-active-banner .banner-text strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.pi-listing-active-banner .banner-text span {
  font-size: 12px;
  color: #cbd5e1;
}

/* Two Large Action Cards at the Bottom */
.pi-contract-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.pi-contract-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: left;
}

.pi-contract-action-card.loan-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.15);
}

.pi-contract-action-card.loan-card:hover:not(.disabled) {
  transform: translateY(-2px);
  border-color: #7dd3fc;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.pi-contract-action-card.transfer-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.pi-contract-action-card.transfer-card:hover:not(.disabled) {
  transform: translateY(-2px);
  border-color: #34d399;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.pi-contract-action-card.withdraw-card {
  background: linear-gradient(135deg, #7f1d1d 0%, #1e1b4b 100%);
  border-color: #ef4444;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}

.pi-contract-action-card.withdraw-card:hover {
  transform: translateY(-2px);
  border-color: #f87171;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.pi-contract-action-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  border-color: #475569 !important;
  box-shadow: none !important;
}

.mmo-auction-rule-badge {
  background: rgba(250, 204, 21, 0.12);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mmo-auction-rule-badge .rule-icon {
  font-size: 24px;
}

.mmo-auction-rule-badge .rule-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mmo-auction-rule-badge .rule-text strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fef08a;
}

.mmo-auction-rule-badge .rule-text span {
  font-size: 11.5px;
  color: #fef9c3;
  line-height: 1.4;
}

.pi-action-card-icon {
  font-size: 32px;
  line-height: 1;
}

.pi-action-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pi-action-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.pi-action-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Management Action Buttons Row (Sözleşme Yenile & Feshet) */
.pi-contract-mgmt-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.pi-contract-mgmt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pi-contract-mgmt-btn.renew-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.pi-contract-mgmt-btn.renew-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.pi-contract-mgmt-btn.terminate-btn {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  border-color: #ef4444;
  color: #fee2e2;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.pi-contract-mgmt-btn.terminate-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

/* Renewal Modal 1-4 Years Grid */
.mmo-renewal-years-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.mmo-renew-year-btn {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mmo-renew-year-btn strong {
  font-size: 16px;
  color: #ffffff;
}

.mmo-renew-year-btn small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.mmo-renew-year-btn.active {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.mmo-renew-year-btn.active strong {
  color: #38bdf8;
}

.mmo-renew-year-btn.active small {
  color: #bae6fd;
}

/* Big Prominent Cost / Compensation Display Cards */
.mmo-large-costs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.mmo-large-cost-card {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mmo-large-cost-card.cash-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #10b981;
}

.mmo-large-cost-card.token-card {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #facc15;
}

.mmo-large-cost-card.term-cash-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #ef4444;
}

.mmo-large-cost-card.term-token-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #f97316;
}

.mmo-large-cost-card .cost-card-lbl {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mmo-large-cost-card.cash-card .cost-card-lbl { color: #34d399; }
.mmo-large-cost-card.token-card .cost-card-lbl { color: #fef08a; }
.mmo-large-cost-card.term-cash-card .cost-card-lbl { color: #fca5a5; }
.mmo-large-cost-card.term-token-card .cost-card-lbl { color: #fdba74; }

.mmo-large-cost-card .cost-card-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
}

.mmo-large-cost-card.cash-card .cost-card-val { color: #34d399; }
.mmo-large-cost-card.token-card .cost-card-val { color: #fef08a; }
.mmo-large-cost-card.term-cash-card .cost-card-val { color: #ef4444; }
.mmo-large-cost-card.term-token-card .cost-card-val { color: #f97316; }

.mmo-large-cost-card .cost-card-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   TRANSFER & LOAN LISTING MODAL STYLES (IN-WINDOW AGENTS.md §4.2)
   ========================================================================== */
.mmo-dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 7, 12, 0.88);


  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.mmo-listing-card {
  width: 100%;
  max-width: 620px;
  max-height: 100%;
  background: #1e2430;
  border-radius: 16px;
  border: 2px solid #475569;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mmo-listing-header {
  position: relative;
  background: linear-gradient(180deg, #2a313d 0%, #1a1e27 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #334155;
}

.mmo-listing-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mmo-listing-icon {
  font-size: 26px;
}

.mmo-listing-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.mmo-listing-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.mmo-listing-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.mmo-listing-close:hover {
  color: #ef4444;
}

.mmo-listing-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mmo-listing-player-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mmo-player-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mmo-player-bar-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.mmo-player-bar-name {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.mmo-player-bar-meta {
  font-size: 12px;
  color: #94a3b8;
}

.mmo-player-bar-values {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mmo-player-bar-cash {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #34d399;
}

.mmo-player-bar-token {
  font-size: 12px;
  font-weight: 700;
  color: #facc15;
}

/* Slider Groups */
.mmo-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 16px;
}

.mmo-slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mmo-slider-title {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.mmo-slider-val-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 6px;
}

.mmo-slider-val-badge.token-badge {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.mmo-slider-val-badge.cash-badge {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.mmo-range-input {
  width: 100%;
  accent-color: #10b981;
  cursor: pointer;
}

.mmo-slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Demand Box */
.mmo-demand-box {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmo-demand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mmo-demand-title {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.mmo-demand-pct {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #10b981;
}

.mmo-demand-bar-track {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.mmo-demand-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 4px;
  transition: width 0.2s ease;
}

.mmo-demand-desc {
  margin: 0;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Tax Summary Box */
.mmo-tax-summary-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmo-tax-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}

.mmo-tax-row strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.mmo-tax-row.tax-deduct strong {
  color: #ef4444;
}

.mmo-tax-row.net-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
  color: #0f172a;
  font-weight: 800;
}

.mmo-tax-row.net-row strong {
  font-size: 18px;
  color: #10b981;
}

.mmo-notice-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 4px;
  padding: 8px 12px;
}

.mmo-notice-box p {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

.mmo-loan-durations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.mmo-loan-dur-btn {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 8px 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.mmo-loan-dur-btn small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.mmo-loan-dur-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.mmo-listing-footer {
  padding: 14px 20px;
  background: #111827;
  border-top: 1.5px solid #334155;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mmo-btn-cancel {
  background: #334155;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
}

.mmo-btn-submit {
  background: #10b981;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.mmo-btn-submit:hover {
  background: #059669;
}

/* ==========================================================================
   ÖZEL ANTRENÖR (TRAINER) PANEL & RATING STARS UPGRADE SYSTEM
   ========================================================================== */
.pi-trainer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pi-trainer-hero-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #475569;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pi-trainer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pi-trainer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pi-trainer-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  flex-shrink: 0;
}

.pi-trainer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.6px;
}

.pi-trainer-desc {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.pi-trainer-ovr-compare {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pi-ovr-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 65px;
}

.pi-ovr-pill.current {
  background: #1e2430;
  border-color: #64748b;
}

.pi-ovr-pill.target {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(168, 85, 247, 0.3));
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.35);
}

.pi-ovr-pill .lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.pi-ovr-pill .val {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
}

.pi-ovr-arrow {
  font-size: 16px;
  color: #c084fc;
  font-weight: 900;
}

/* Stars Track Container */
.pi-trainer-stars-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 7px 16px;
}

.pi-trainer-stars-track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-trainer-star-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
  transition: all 0.2s ease;
}

.pi-trainer-star-img.upgraded-glow {
  filter: drop-shadow(0 0 8px #d946ef) brightness(1.25);
  transform: scale(1.18);
  animation: starPulseGlow 1.5s infinite alternate;
}

/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes starPulseGlow {
  0% { transform: scale(1.12); }
  100% { transform: scale(1.22); }
}

.pi-trainer-star-rank-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

/* Interactive Slider & Controls */
.pi-trainer-slider-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pi-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pi-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 700;
}

.pi-slider-val-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 6px;
  padding: 2px 10px;
}

.pi-trainer-range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #334155;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pi-trainer-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d946ef;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pi-trainer-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #e879f9;
}

.pi-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  padding: 0 4px;
}

.pi-trainer-action-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pi-cost-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #ca8a04;
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 95px;
}

.pi-cost-badge .cost-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #facc15;
  text-transform: uppercase;
}

.cost-val-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cost-token-icon {
  font-size: 14px;
}

.cost-token-amount {
  font-size: 20px;
  font-weight: 900;
  color: #fef08a;
  font-family: 'Rajdhani', sans-serif;
}

.pi-trainer-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pi-btn-upgrade-apply {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: 1.5px solid #c084fc;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pi-btn-upgrade-apply:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
}

.pi-btn-upgrade-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.6);
}

.pi-btn-upgrade-reset {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid #64748b;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 17px;
  font-weight: 900;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pi-btn-upgrade-reset:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fca5a5;
}

/* 3-Column Skills Preview with Purple Upgrade Indicator */
.pi-stat-upgrade-combo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pi-stat-current {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  font-family: 'Rajdhani', sans-serif;
}

.pi-stat-arrow {
  font-size: 13px;
  color: #c084fc;
  font-weight: 900;
}

.pi-stat-projected {
  font-size: 19px;
  font-weight: 900;
  color: #c026d3;
  font-family: 'Rajdhani', sans-serif;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.pi-col-row.upgrade-highlight {
  background: rgba(217, 70, 239, 0.08) !important;
}

.pi-col-avg-combo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.avg-curr {
  font-size: 18px;
  color: #64748b;
  font-weight: 800;
}

.avg-arr {
  font-size: 13px;
  color: #c084fc;
  font-weight: 900;
}

.avg-target {
  font-size: 22px;
  color: #c026d3;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

/* ==========================================================================
   TOP ELEVEN STYLE TEKLİFLER (TRANSFER / BIDS) TAB STYLING
   ========================================================================== */
.pi-bids-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px;
  height: 480px;
  box-sizing: border-box;
  align-items: stretch;
}

.pi-bids-feed-col {
  background: #181d26;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pi-bids-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.pi-bids-count-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pi-bids-demand-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.pi-bids-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.pi-bid-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.pi-bid-card-item:hover {
  border-color: #475569;
  transform: translateY(-1px);
}

.pi-bid-card-item.leader {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.9));
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.pi-bid-avatar-shield {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pi-bid-avatar-shield svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.pi-bid-fallback-shield {
  width: 40px;
  height: 40px;
  background: #334155;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pi-bid-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.pi-bid-club-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pi-bid-club-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pi-bid-bot-chip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pi-bid-status-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.pi-bid-amount-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.pi-bid-token-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.pi-bid-cash-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #10b981;
}

.pi-bid-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: #64748b;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed #334155;
  border-radius: 10px;
}

.pi-bids-action-col {
  background: #181d26;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

.pi-bids-timer-hero {
  background: #090d14;
  border: 2px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

.pi-bids-timer-round {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pi-bids-digital-clock {
  font-family: 'Courier New', monospace, sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: #22c55e;
  letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
  margin-top: 4px;
}

.pi-bids-next-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #3b82f6;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.pi-bids-next-lbl {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pi-bids-next-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pi-bids-next-val .token-chip {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pi-bids-next-val .cash-val {
  color: #10b981;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pi-bids-wallet-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0f141d;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  flex-shrink: 0;
}

.pi-bids-wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pi-bids-wallet-lbl {
  color: #94a3b8;
  font-weight: 700;
  font-size: 12.5px;
}

.pi-bids-wallet-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.pi-bids-wallet-val.token {
  color: #fbbf24;
}

.pi-bids-wallet-val.cash {
  color: #10b981;
}

.pi-btn-submit-bid {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border: none;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 1px;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.pi-btn-submit-bid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.6);
}

.pi-btn-submit-bid:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}



/* Loan modal (openLoanListingModal): loan type choice */
.ll-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ll-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: #1e293b;
  border: 1.5px solid #334155;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.4;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ll-type-card strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  color: #f8fafc;
}
.ll-type-card:hover {
  transform: translateY(-1px);
}
.ll-type-card.active {
  border-color: #22c55e;
  background: linear-gradient(160deg, #14532d 0%, #1e293b 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.ll-type-card[data-type="paid"].active {
  border-color: #fbbf24;
  background: linear-gradient(160deg, #713f12 0%, #1e293b 100%);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.ll-type-icon {
  font-size: 22px;
}
