@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d0f14;
  color: #fff;
  min-height: 100vh;
}

/* Header */
.header {
  background-color: #161922;
  border-bottom: 2px solid #232734;
  padding: 14px 24px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-badge {
  background: #d97706;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.header h1 {
  font-size: 1.25rem;
  display: inline;
}

.stats-counter {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Filtreler */
.filter-section {
  background-color: #12141c;
  border-bottom: 2px solid #1f232f;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}

.filter-group input,
.filter-group select {
  background-color: #1f232f;
  border: 1px solid #374151;
  color: #f3f4f6;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.85rem;
  outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #3b82f6;
}

.search-group {
  flex-grow: 1;
  min-width: 180px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
}

.checkbox-group label {
  cursor: pointer;
  text-transform: none;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.reset-btn {
  background-color: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Izgara */
.content-container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  justify-content: center;
}
/* =========================================
   ORİJİNAL KART ÇÖZÜNÜRLÜĞÜ & ORANI (230x315 px)
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
  justify-content: center;
}

.flip-card-container {
  perspective: 1000px;
  width: 230px;
  height: 315px;
  margin: 0 auto;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-container.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* =========================================
   ORİJİNAL GOLEY KART ORANI (210px x 310px)
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
  justify-content: center;
}

.flip-card-container {
  perspective: 1000px;
  width: 210px;
  height: 310px;
  margin: 0 auto;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-container.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

/* =========================================
   GOLEY KART ORANI (210px x 285px)
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  justify-content: center;
}

.flip-card-container {
  perspective: 1000px;
  width: 210px;
  height: 285px;
  margin: 0 auto;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-container.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
}

/* =========================================
   ÖN YÜZ
   ========================================= */
.card-front {
  position: relative;
  background-color: #0c0e14;
}

/* 1. Tam Arka Plan Görseli (bg-*.png kartın tamamını kaplar) */
.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
}

/* 2. Kartın En Dış İnce Çerçevesi (Görseldeki gümüş/mor çizgi) */
.card-border-line {
  position: absolute;
  inset: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}

/* 3. Oyuncu Portresi / Karakter */
.card-portrait {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(calc(-50% + 18px)); /* hafif sağa; 210px kartta sağ kenar 193px'te kalır */
  width: 140px;
  height: 145px;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  pointer-events: none;
}

/* 4. Sol Üst Pozisyon Bilgisi */
.plate-pos-group {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 5;
  line-height: 1;
}

.plate-pos-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.plate-pos-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 1px 1px 2px #000;
  margin-top: 1px;
}

/* Üst Orta Kademe Rozeti (Oyundaki trapezoid karartma) */
.plate-grade-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  
  /* Arka plan karartması ve kesik kenarlar (Trapezoid) */
  background: rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  
  /* Boyutlandırma ve hizalama */
  padding: 2px 18px 4px 18px;
  min-width: 90px;
  text-align: center;
  
  /* Yazı stili */
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  letter-spacing: 0.4px;

  
}

/* Sol Altıgen Güç Rozeti */
.plate-power-circle {
  position: absolute;
  top: 54px;
  left: 10px;
  width: 28px;
  height: 32px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.8), rgba(40, 10, 60, 0.9));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.plate-power-text {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
}

/* =========================================
   ORTA İSİM ALANI VE PLATE (plate-*.png)
   ========================================= */

.plate-container {
  position: absolute;
  top: 138px;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 5;
}

/* plate-*.png görseli tam buraya oturur (ortası çıkıntılı kalıp) */
.card-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

/* Takım Amblemi (Sarı çerçeve ve siyah zemin kaldırıldı) */
.plate-emblem {
  position: absolute;
  left: 0;
  top: -9px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
  z-index: 3;
}

/* Oyuncu İsmi & Takım Adı */
.plate-player-info {
  position: absolute;
  top: 10px;
  left: 46px;
  right: 6px;
  line-height: 1.15;
  z-index: 2;
  overflow: hidden;
}

.plate-player-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plate-team-name {
  font-size: 0.66rem;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================
   ALT İSTATİSTİK ALANI (BG ÜZERİ KARARTMA)
   ========================================= */

.plate-stats-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 182px; /* Plakanın hemen altından başlar */
  background: rgba(0, 0, 0, 0.85); /* Arka plan üzerindeki karartma */
  padding: 4px 10px 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.plate-stat-row {
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 5px;
  height: 12px;
}

.plate-stat-lbl {
  font-size: 0.6rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
}

.plate-stat-track {
  width: 100%;
  height: 5px;
  background: #272d3f;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}

.plate-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  border-radius: 2.5px;
}

.plate-stat-val {
  font-size: 0.62rem;
  font-weight: 800;
  color: #facc15;
  text-align: right;
  text-shadow: 1px 1px 2px #000;
}

/* =========================================
   ARKA YÜZ
   ========================================= */
.card-back {
  background-color: #1a1e27;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

.back-header {
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
}

.back-header-normal  { background: #475569; }
.back-header-special { background: #c2410c; }
.back-header-rare    { background: #991b1b; }
.back-header-elite   { background: #581c87; }
.back-header-master  { background: #854d0e; }

.back-header-info {
  flex-grow: 1;
  line-height: 1.15;
}

.back-player-name {
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
}

.back-team-name {
  font-size: 0.58rem;
  color: #e2e8f0;
}

.back-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  row-gap: 1px;
  padding: 6px 8px;
  background: #11141b;
  flex-grow: 1;
}

.back-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  border-bottom: 1px solid #1e2433;
  padding: 1px 0;
}

.back-stat-name {
  color: #94a3b8;
  font-weight: 600;
}

.back-stat-val {
  font-weight: 800;
  color: #f1f5f9;
}

.val-high {
  color: #ef4444;
}

.back-footer {
  background: #161a22;
  border-top: 1px solid #282f40;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.back-lvl-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #94a3b8;
}

.lvl-track {
  flex-grow: 1;
  height: 4px;
  background: #272d3f;
  border-radius: 2px;
}

.back-skills-row {
  display: flex;
  gap: 4px;
}

.skill-slot {
  flex: 1;
  background: #202634;
  border: 1px solid #2d364a;
  border-radius: 3px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.56rem;
  font-weight: 700;
  color: #cbd5e1;
}
/* =========================================
   Sekmeler
   ========================================= */
.header-container { gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin-right: auto; margin-left: 24px; }
.tab-btn {
  background: #1f232f; color: #cbd5e1; border: 1px solid #374151;
  padding: 7px 16px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.tab-btn:hover { border-color: #d97706; }
.tab-btn.active { background: #d97706; border-color: #d97706; color: #fff; }
.hidden { display: none !important; }

/* =========================================
   Amblemler
   ========================================= */
.emb-note { font-size: 0.8rem; color: #9ca3af; margin-bottom: 16px; line-height: 1.5; }
.emb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.emb-card {
  background: #2b2d33; border: 2px solid #4b5060; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.emb-card.is-all { border-color: #6b7280; }
.emb-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: linear-gradient(180deg, #e5e7eb, #9ca3af); color: #111827;
}
.emb-card.is-all .emb-head { background: linear-gradient(180deg, #d1d5db, #6b7280); }
.emb-head img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.emb-title { flex: 1; min-width: 0; }
.emb-name { font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-sub { font-size: 0.7rem; font-weight: 700; color: #374151; }
.emb-year {
  background: #111827; color: #fbbf24; font-weight: 800; font-size: 0.8rem;
  padding: 3px 8px; border-radius: 4px;
}
.emb-card.is-all .emb-year { background: #7f1d1d; color: #fff; }
.emb-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.emb-table th {
  background: #1f2126; color: #d1d5db; font-weight: 700; padding: 6px 4px; font-size: 0.72rem;
}
.emb-table th:first-child { text-align: left; padding-left: 10px; }
.emb-table th small { color: #6b7280; font-weight: 600; }
.emb-table td {
  text-align: center; padding: 6px 4px; color: #e5e7eb; border-top: 1px solid #3a3d45;
  font-variant-numeric: tabular-nums;
}
.emb-table td.emb-val { color: #ef4444; font-weight: 800; }
.emb-table td.emb-up { text-decoration: underline; text-underline-offset: 3px; }
.emb-lvl { text-align: left !important; padding-left: 10px !important; white-space: nowrap; }
.emb-stars { color: #f59e0b; letter-spacing: -1px; }
.emb-need {
  display: inline-block; margin-left: 6px; font-size: 0.65rem; color: #9ca3af;
  background: #1f2126; border-radius: 3px; padding: 0 4px;
}
.emb-row-off td { opacity: 0.35; }
.emb-foot { margin-top: auto; background: #1f2126; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.emb-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.emb-chip {
  font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px;
  background: #2b2d33; color: #4b5563;
}
.emb-chip.on { color: #fff; }
.emb-chip.g-normal { background: #475569; }
.emb-chip.g-special { background: #c2410c; }
.emb-chip.g-rare { background: #991b1b; }
.emb-chip.g-elite { background: #581c87; }
.emb-chip.g-master { background: #854d0e; }
.emb-staff { font-size: 0.72rem; color: #e5e7eb; }
.emb-staff span { color: #9ca3af; }
@media (max-width: 600px) {
  .tabs { margin-left: 0; }
  .emb-grid { grid-template-columns: 1fr; }
}

/* =========================================
   Potansiyel
   ========================================= */
.pot-toggle label { font-weight: 800; color: #34d399 !important; letter-spacing: 0.5px; }
.pot-panel {
  max-width: 1400px; margin: 12px auto 0; padding: 12px; border: 1px solid #065f46;
  background: #0b1f1a; border-radius: 8px;
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) minmax(320px, 2fr); gap: 14px;
}
.pot-block { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: #d1d5db; }
.pot-block small { color: #6b7280; font-size: 0.7rem; }
.pot-title { font-weight: 700; color: #a7f3d0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pot-title b { color: #fff; font-size: 1rem; }
.pot-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pot-check { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.pot-panel select {
  background: #1f232f; border: 1px solid #374151; color: #f3f4f6; border-radius: 5px; padding: 4px 6px; font-size: 0.78rem;
}
.pot-panel select:disabled { opacity: 0.4; }
.pot-panel input[type=range] { width: 100%; accent-color: #10b981; }
.pot-sum { color: #34d399; font-weight: 700; font-size: 0.75rem; }
.pot-quick { font-size: 0.75rem; color: #9ca3af; }
.pot-btn { background: #059669; color: #fff; border: none; border-radius: 5px; padding: 4px 10px; font-weight: 700; font-size: 0.75rem; cursor: pointer; }
.pot-btn-ghost { background: transparent; border: 1px solid #374151; color: #cbd5e1; }
.pot-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.pot-step { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; }
.pot-step.off { opacity: 0.35; }
.pot-step label { display: flex; align-items: center; gap: 3px; }
.pot-step-no { color: #34d399; font-weight: 800; min-width: 22px; }
.pot-err { border-color: #ef4444 !important; }
.plate-stat-val.pot-val { color: #34d399; }
.plate-power-circle.pot-power { box-shadow: 0 0 0 2px #10b981; }
@media (max-width: 900px) {
  .pot-panel { grid-template-columns: 1fr; }
  .pot-steps { grid-template-columns: repeat(2, 1fr); }
}
/* Potansiyel paneli açıkken filtre alanı ekranı kaplamasın diye yapışkan olmaktan çıkar */
.filter-section:has(.pot-panel:not(.hidden)) { position: static; }

/* Stat renkleri (ön ve arka yüz) — oyun içi tonlardan alındı:
   <60 gri, 60-79 turuncu, 80-89 koyu kırmızı, 90+ mor */
.plate-stat-val, .back-stat-val { color: #8f8f8f; }
.plate-stat-val.sv-orange, .back-stat-val.sv-orange { color: #c27a32; }
.plate-stat-val.sv-red, .back-stat-val.sv-red { color: #8e0808; }
.plate-stat-val.sv-purple, .back-stat-val.sv-purple { color: #7f1fe0; }


/* =====================================================================
   SÜSLEME KATMANI — sadece görsel. Bu bloğu silmek siteyi eski haline döndürür.
   (Yedek: css/style.eski.css)
   ===================================================================== */
:root {
  --gold: #f5b642;
  --g-normal: #94a3b8;
  --g-special: #f97316;
  --g-rare: #ef4444;
  --g-elite: #a855f7;
  --g-master: #facc15;
}

/* --- Arka plan: koyu saha dokusu --- */
body {
  background-color: #090b10;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.08), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 80px, transparent 80px 160px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 100% 48px;
  background-attachment: fixed;
}

/* --- Üst menü --- */
.header {
  background: linear-gradient(180deg, #161a24 0%, #10131b 100%);
  border-bottom: 1px solid rgba(245, 182, 66, 0.25);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.header h1 {
  font-family: 'Russo One', 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 30%, #f5d27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.logo-badge {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  letter-spacing: 1px;
}

/* Sekmeler: altında kayan vurgu çizgisi */
.tab-btn {
  position: relative;
  font-family: 'Russo One', 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  background: transparent;
  border: 1px solid transparent;
  transition: color .2s, background .2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.tab-btn:hover { border-color: transparent; color: #fff; background: rgba(255,255,255,0.04); }
.tab-btn.active { background: rgba(245, 182, 66, 0.12); color: var(--gold); border-color: transparent; }
.tab-btn.active::after, .tab-btn:hover::after { left: 10%; right: 10%; }

/* --- Filtre alanı: cam efekti --- */
.filter-section {
  background: rgba(14, 17, 25, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-group input,
.filter-group select {
  background-color: rgba(31, 35, 47, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  transition: border-color .2s, box-shadow .2s;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 182, 66, 0.18);
}
.reset-btn {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  transition: transform .15s, box-shadow .15s;
}
.reset-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45); }

/* --- Oyuncu kartları: sırayla belirme --- */
@keyframes kartGiris {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
.flip-card-container {
  animation: kartGiris .45s ease-out both;
  transition: transform .25s ease;
}
.flip-card-container:nth-child(1)  { animation-delay: .00s; }
.flip-card-container:nth-child(2)  { animation-delay: .03s; }
.flip-card-container:nth-child(3)  { animation-delay: .06s; }
.flip-card-container:nth-child(4)  { animation-delay: .09s; }
.flip-card-container:nth-child(5)  { animation-delay: .12s; }
.flip-card-container:nth-child(6)  { animation-delay: .15s; }
.flip-card-container:nth-child(7)  { animation-delay: .18s; }
.flip-card-container:nth-child(8)  { animation-delay: .21s; }
.flip-card-container:nth-child(9)  { animation-delay: .24s; }
.flip-card-container:nth-child(10) { animation-delay: .27s; }
.flip-card-container:nth-child(n+11) { animation-delay: .30s; }

/* Üstüne gelince yükselme + kademe renginde ışıma */
.flip-card-container:hover { transform: translateY(-6px) scale(1.03); }
.card-face { transition: box-shadow .25s ease; }
.flip-card-container { --glow: var(--g-normal); }
.flip-card-container:has(.card-bg[src*="bg-special"]) { --glow: var(--g-special); }
.flip-card-container:has(.card-bg[src*="bg-rare"])    { --glow: var(--g-rare); }
.flip-card-container:has(.card-bg[src*="bg-elite"])   { --glow: var(--g-elite); }
.flip-card-container:has(.card-bg[src*="bg-master"])  { --glow: var(--g-master); }
.flip-card-container:hover .card-face {
  box-shadow: 0 0 0 2px var(--glow), 0 0 22px var(--glow), 0 10px 24px rgba(0, 0, 0, 0.8);
}

/* Süper kartlarda holografik ışık geçişi */
@keyframes holoGecis {
  0%   { transform: translateX(-130%) skewX(-20deg); }
  60%, 100% { transform: translateX(230%) skewX(-20deg); }
}
.flip-card-container:has(.card-bg[src*="bg-master"]) .card-front::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), rgba(255,240,180,0.18), transparent);
  pointer-events: none;
  z-index: 12;
  animation: holoGecis 4.5s ease-in-out infinite;
}

/* Güç rozeti hafif parıltı */
.plate-power-circle { filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6)); }

/* --- Amblem kartları --- */
.emb-card {
  background: linear-gradient(180deg, #2c2f37 0%, #24262d 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  animation: kartGiris .4s ease-out both;
}
.emb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 182, 66, 0.55);
  box-shadow: 0 0 18px rgba(245, 182, 66, 0.22), 0 12px 26px rgba(0, 0, 0, 0.6);
}
.emb-head { position: relative; overflow: hidden; }
.emb-head::after {          /* başlıkta parlak şerit */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .7s ease;
  pointer-events: none;
}
.emb-card:hover .emb-head::after { transform: translateX(100%); }
.emb-head img { transition: transform .3s ease; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.emb-card:hover .emb-head img { transform: scale(1.12) rotate(-4deg); }
.emb-name { font-family: 'Russo One', 'Segoe UI', sans-serif; font-weight: 400; letter-spacing: .3px; }
.emb-stars { text-shadow: 0 0 6px rgba(245, 158, 11, 0.7); }
.emb-table tbody tr { transition: background .15s; }
.emb-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

/* --- Potansiyel paneli --- */
.pot-panel {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(11, 31, 26, 0.85));
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.06);
}

/* --- Kaydırma çubuğu --- */
* { scrollbar-width: thin; scrollbar-color: #3b4252 #0d0f14; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0f14; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #4b5563, #374151); border-radius: 6px; border: 2px solid #0d0f14; }
::-webkit-scrollbar-thumb:hover { background: #f5b642; }

/* Hareket hassasiyeti olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .flip-card-container, .emb-card { animation: none; }
  .flip-card-container:has(.card-bg[src*="bg-master"]) .card-front::after { animation: none; display: none; }
}

/* --- Süper (Master) kartlar: isim/takım siyah, arka başlık gümüş --- */
.flip-card-container:has(.card-bg[src*="bg-master"]) .plate-player-name,
.flip-card-container:has(.card-bg[src*="bg-master"]) .plate-team-name {
  color: #0b0b0b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.back-header-master {
  background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 45%, #b8bec8 100%);
  border-bottom: 1px solid #9ca3af;
}
.back-header-master .back-player-name,
.back-header-master .back-team-name {
  color: #0b0b0b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- Mitik (Mythic) kademe: Süper görselleri + kırmızı-altın vurgu --- */
.back-header-mythic { background: #0b1a20 url('../assets/cards/back-mythic.png') center / cover no-repeat; }
.flip-card-container.grade-mythic { --glow: #2dd4bf; }
.flip-card-container.grade-mythic .card-face { box-shadow: 0 0 0 2px #3fb6bb, 0 0 14px rgba(45, 212, 191, 0.5), 0 6px 16px rgba(0,0,0,.8); }
.flip-card-container.grade-mythic .plate-grade-text { color: #7ff3ee; text-shadow: 0 0 6px #0e7490; }

/* Arka yüz başlığında doğum tarihi / uyruk (oyundaki gibi) */
.back-bio { font-size: 0.56rem; opacity: .85; margin-top: 1px; }
.back-header-master .back-bio { color: #1f2937; }

/* =========================================
   Takım Kurucu
   ========================================= */
.tb-toggle label { font-weight: 800; color: #fbbf24 !important; letter-spacing: 0.5px; }
.tb-panel {
  border-color: rgba(245, 158, 11, 0.4) !important;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(28, 20, 8, 0.85)) !important;
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.06) !important;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(320px, 1.6fr);
}
.tb-panel .pot-title { color: #fde68a; }
.tb-num { width: 52px; background: #1f232f; border: 1px solid #374151; color: #f3f4f6; border-radius: 5px; padding: 3px 5px; font-size: 0.8rem; }
.tb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; }
.tb-grid-pos { grid-template-columns: repeat(4, 1fr); }
.tb-grid label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 600; font-size: 0.75rem; }
.tb-grid-pos .tb-num { width: 44px; }
.tb-warn { color: #fca5a5; font-size: 0.72rem; font-weight: 600; }
.tb-result {
  margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 8px;
  background: rgba(120, 53, 15, 0.18); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.8rem; color: #e5e7eb;
}
.tb-head b { color: #fbbf24; letter-spacing: .5px; margin-right: 6px; }
.tb-result select { background: #1f232f; border: 1px solid #4b5563; color: #f3f4f6; border-radius: 5px; padding: 5px 8px; font-size: 0.8rem; max-width: 100%; flex: 1 1 360px; }
.tb-comp { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-comp span { background: #1f2937; border: 1px solid #374151; border-radius: 4px; padding: 2px 7px; font-weight: 700; font-size: 0.72rem; }
@media (max-width: 900px) {
  .tb-panel { grid-template-columns: 1fr; }
  .tb-grid-pos { grid-template-columns: repeat(3, 1fr); }
}
.filter-section:has(.tb-panel:not(.hidden)) { position: static; }
.tb-grades { display: flex; flex-wrap: wrap; gap: 5px; }
.tb-gr { display: flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid #374151; border-radius: 5px; background: #1f232f; font-size: 0.74rem; font-weight: 700; cursor: pointer; user-select: none; }
.tb-gr input { accent-color: #ef4444; margin: 0; }
.tb-gr:has(input:checked) { border-color: #ef4444; color: #fca5a5; text-decoration: line-through; opacity: .8; }
.tb-rng { display: inline-flex; align-items: center; gap: 3px; }
.tb-rng i { color: #6b7280; font-style: normal; }
.tb-panel .tb-grid .tb-num { width: 40px; }
.tb-grid-pos { grid-template-columns: repeat(3, 1fr); }
.tb-max::placeholder { color: #6b7280; }

/* Arka yüz: başlığın sağ üstünde küçük portre */
.back-header { position: relative; }
.back-portrait {
  flex-shrink: 0;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin: -2px -2px -5px 0;   /* alt kenara otursun */
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* =========================================
   Amblem kartı – oyundaki görünüm (kademe rengine göre başlık)
   ========================================= */
.emb-card {
  background: #3a3a3a;
  border: 2px solid #d4d4d4;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #8a8a8a, 0 6px 16px rgba(0, 0, 0, 0.5);
}
.emb-card:hover { border-color: #ffffff; box-shadow: 0 0 0 1px #9ca3af, 0 0 16px rgba(255,255,255,.18), 0 12px 24px rgba(0,0,0,.55); }
.emb-head { padding: 8px 10px; gap: 8px; min-height: 58px; border-bottom: 1px solid rgba(0,0,0,.35); }
.emb-head img { width: 48px; height: 48px; }
.emb-name { font-family: 'Segoe UI', Tahoma, sans-serif; font-weight: 800; font-size: 0.98rem; letter-spacing: 0; }
.emb-sub { font-size: 0.66rem; font-weight: 800; letter-spacing: .2px; }
.emb-year { background: rgba(0,0,0,.55); color: #fde68a; font-size: 0.72rem; }
/* kademe başlıkları */
.emb-card.g-master .emb-head {
  background:
    repeating-linear-gradient(60deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-60deg, rgba(0,0,0,.05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #fafafa 0%, #d9d9d9 55%, #b9b9b9 100%);
  color: #111;
}
.emb-card.g-master .emb-sub { color: #1f1f1f; }
.emb-card.g-elite .emb-head {
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px),
              linear-gradient(180deg, #8f6ae8 0%, #6a3fd0 55%, #4c23a8 100%);
  color: #fff;
}
.emb-card.g-rare .emb-head {
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px),
              linear-gradient(180deg, #ef5350 0%, #c62828 55%, #8e1414 100%);
  color: #fff;
}
.emb-card.g-special .emb-head {
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px),
              linear-gradient(180deg, #f39a3d 0%, #e07018 55%, #b4520a 100%);
  color: #fff;
}
.emb-card.g-normal .emb-head {
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px),
              linear-gradient(180deg, #8ea0b6 0%, #64748b 55%, #475569 100%);
  color: #fff;
}
.emb-card:not(.g-master) .emb-sub { color: rgba(255,255,255,.9); }
.emb-card:not(.g-master) .emb-name { text-shadow: 0 1px 2px rgba(0,0,0,.45); }
/* gövde */
.emb-section {
  background: #343434; color: #f3f4f6; font-weight: 800; font-size: 0.8rem;
  padding: 5px 10px; border-bottom: 1px solid #2a2a2a;
}
.emb-table { font-size: 0.78rem; background: #3a3a3a; }
.emb-table th { background: #2b2b2b; color: #e5e7eb; font-size: 0.7rem; padding: 5px 3px; }
.emb-table th:first-child { padding-left: 8px; }
.emb-table td { border-top: 1px solid #2f2f2f; color: #e5e7eb; padding: 7px 3px; }
.emb-table tbody tr:nth-child(odd) td { background: #3e3e3e; }
.emb-table tbody tr:nth-child(even) td { background: #373737; }
.emb-table td.emb-val { color: #d01818; font-weight: 800; }
.emb-table td.emb-up { text-decoration: none; }
.emb-lvl { padding-left: 8px !important; }
.emb-stars { letter-spacing: -1px; color: #6b6b6b; text-shadow: none; font-size: 0.85rem; }
.emb-stars b { color: #f5a623; font-weight: 400; text-shadow: 0 0 3px rgba(245,166,35,.5); }
.emb-row-off td { opacity: 0.22; }
.emb-foot { background: #2e2e2e; border-top: 1px solid #252525; padding: 8px 10px 10px; gap: 4px; }
.emb-grade-name { font-style: italic; font-weight: 800; font-size: 1.05rem; color: #e5e7eb; }
.emb-grade-name::after {
  content: ''; display: block; height: 5px; margin-top: 4px; border-radius: 3px;
  background: #1c1c1c; box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}

/* =========================================
   Ortak kademe desenleri – oyuncu kartı arka başlığı ve amblem kartı başlığı aynı
   ========================================= */
:root {
  --pat-lines: repeating-linear-gradient(60deg, rgba(255,255,255,.09) 0 6px, transparent 6px 12px);
  --pat-master:
    repeating-linear-gradient(60deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-60deg, rgba(0,0,0,.05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #fafafa 0%, #d9d9d9 55%, #b9b9b9 100%);
  --pat-elite:   var(--pat-lines), linear-gradient(180deg, #8f6ae8 0%, #6a3fd0 55%, #4c23a8 100%);
  --pat-rare:    var(--pat-lines), linear-gradient(180deg, #ef5350 0%, #c62828 55%, #8e1414 100%);
  --pat-special: var(--pat-lines), linear-gradient(180deg, #f39a3d 0%, #e07018 55%, #b4520a 100%);
  --pat-normal:  var(--pat-lines), linear-gradient(180deg, #8fb0c8 0%, #6489a6 55%, #476a86 100%);
}
.back-header-master,  .emb-card.g-master .emb-head  { background: var(--pat-master); }
.back-header-elite,   .emb-card.g-elite .emb-head   { background: var(--pat-elite); }
.back-header-rare,    .emb-card.g-rare .emb-head    { background: var(--pat-rare); }
.back-header-special, .emb-card.g-special .emb-head { background: var(--pat-special); }
.back-header-normal,  .emb-card.g-normal .emb-head  { background: var(--pat-normal); }
.back-header:not(.back-header-master) .back-player-name { text-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* Amblem ızgarası: satırda 5 kart */
.emb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1200px) { .emb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .emb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .emb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .emb-grid { grid-template-columns: 1fr; } }
.emb-head { padding: 6px 8px; min-height: 52px; }
.emb-head img { width: 40px; height: 40px; }
.emb-name { font-size: 0.88rem; }
.emb-sub { font-size: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-year { font-size: 0.66rem; padding: 2px 5px; }
.emb-table { font-size: 0.72rem; table-layout: fixed; }
.emb-table th { font-size: 0.64rem; padding: 4px 1px; }
.emb-table th:first-child { width: 31%; padding-left: 6px; }
.emb-table td { padding: 6px 1px; }
.emb-lvl { padding-left: 6px !important; }
.emb-stars { font-size: 0.72rem; }
.emb-grade-name { font-size: 0.95rem; }
.emb-staff { font-size: 0.66rem; }

/* =====================================================================
   FUTBOL TEMASI — Saha zemini: kart sütunlarıyla hizalı çim şeritleri
   ===================================================================== */
.content-container[data-view="oyuncular"] { max-width: none; margin: 0; padding: 0; }
.card-grid {
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 640px;
  margin: 0 auto;
  grid-template-columns: repeat(5, 232px);
  column-gap: 0;
  row-gap: 26px;
  justify-content: start;
  justify-items: center;
  align-content: start;
  padding: 32px 0 56px;
  background:
    url('../assets/football/grass-tile.svg') 0 0 / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 232px, #3d8b2f 232px, #347f28 464px);
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.content-container[data-view="oyuncular"] .no-results { margin: 24px auto; text-align: center; }

/* --- Amblemler sekmesi: aynı saha zemini, şeritler amblem sütunlarıyla hizalı --- */
.emb-grid {
  --emb-cols: 5;
  column-gap: 0;
  row-gap: 22px;
  padding: 28px 0 48px;
  min-height: 640px;
  align-content: start;
  background:
    url('../assets/football/grass-tile.svg') 0 0 / 232px 232px repeat,
    linear-gradient(90deg, #5aa848 0%, #4f9c3e 50%, #3d8b2f 50%, #347f28 100%) 0 0 / calc(200% / var(--emb-cols)) 100% repeat-x;
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.emb-grid > .emb-card { margin: 0 10px; }
@media (max-width: 1200px) { .emb-grid { --emb-cols: 4; } }
@media (max-width: 980px)  { .emb-grid { --emb-cols: 3; } }
@media (max-width: 760px)  { .emb-grid { --emb-cols: 2; } }
@media (max-width: 560px)  { .emb-grid { --emb-cols: 1; } }

/* --- Oyuncular: bir sırada en fazla 5 kart; dar ekranlarda azalır --- */
@media (max-width: 1220px) { .card-grid { grid-template-columns: repeat(4, 232px); } }
@media (max-width: 990px)  { .card-grid { grid-template-columns: repeat(3, 232px); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(2, 232px); } }
@media (max-width: 525px)  { .card-grid { grid-template-columns: repeat(1, 232px); } }

/* --- Oyuncular: saha zemini sayfanın sağına ve soluna uzanır, şeritler kart sütunlarıyla hizalı kalır ---
   --stripe-off: şerit deseninin ortaya göre kayması = (232 - 116 × sütun sayısı) mod 464 */
.content-container[data-view="oyuncular"] {
  --stripe-off: 116px; /* 5 sütun */
  background:
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 232px, #3d8b2f 232px, #347f28 464px) calc(50% + var(--stripe-off)) 0 / 464px 100% repeat-x;
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5);
}
.content-container[data-view="oyuncular"] .card-grid { background: none; box-shadow: none; }
@media (max-width: 1220px) { .content-container[data-view="oyuncular"] { --stripe-off: 232px; } } /* 4 sütun */
@media (max-width: 990px)  { .content-container[data-view="oyuncular"] { --stripe-off: 348px; } } /* 3 sütun */
@media (max-width: 760px)  { .content-container[data-view="oyuncular"] { --stripe-off: 0px; } }   /* 2 sütun */
@media (max-width: 525px)  { .content-container[data-view="oyuncular"] { --stripe-off: 116px; } } /* 1 sütun */

/* --- Amblemler: sabit 272px sütunlar, saha zemini sayfanın sağına ve soluna uzanır ---
   --stripe-off = (272 - 136 × sütun sayısı) mod 544 */
.content-container[data-view="amblemler"] {
  --stripe-off: 136px; /* 5 sütun */
  max-width: none;
  margin: 0;
  padding: 24px 16px 56px;
  min-height: 700px;
  background:
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 272px, #3d8b2f 272px, #347f28 544px) calc(50% + var(--stripe-off)) 0 / 544px 100% repeat-x;
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5);
}
.content-container[data-view="amblemler"] .emb-note {
  max-width: 1360px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  background: rgba(9, 11, 16, 0.78);
  border-radius: 8px;
  color: #cbd5e1;
}
.content-container[data-view="amblemler"] .emb-grid {
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  min-height: 0;
  background: none;
  box-shadow: none;
  grid-template-columns: repeat(5, 272px);
}
.content-container[data-view="amblemler"] .emb-grid > .emb-card { margin: 0 10px; }
@media (max-width: 1400px) {
  .content-container[data-view="amblemler"] { --stripe-off: 272px; }
  .content-container[data-view="amblemler"] .emb-grid { grid-template-columns: repeat(4, 272px); }
}
@media (max-width: 1128px) {
  .content-container[data-view="amblemler"] { --stripe-off: 408px; }
  .content-container[data-view="amblemler"] .emb-grid { grid-template-columns: repeat(3, 272px); }
}
@media (max-width: 856px) {
  .content-container[data-view="amblemler"] { --stripe-off: 0px; }
  .content-container[data-view="amblemler"] .emb-grid { grid-template-columns: repeat(2, 272px); }
}
@media (max-width: 584px) {
  .content-container[data-view="amblemler"] { --stripe-off: 136px; }
  .content-container[data-view="amblemler"] .emb-grid { grid-template-columns: repeat(1, 272px); }
}

/* =====================================================================
   Filtre çubuğu: Kiralık kutusu gizli; POTANSİYEL ve TAKIM KURUCU buton
   ===================================================================== */
.checkbox-group:has(#loanFilter) { display: none; }

.pot-toggle, .tb-toggle { position: relative; padding-bottom: 0; align-self: flex-end; }
/* Kutu görünmez ama klavye ile hâlâ seçilebilir */
.pot-toggle input, .tb-toggle input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.pot-toggle label, .tb-toggle label {
  --btn: #059669; --btn-hi: #10b981; --btn-glow: rgba(52, 211, 153, 0.55);
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px 0 12px;
  border-radius: 8px;
  background: var(--btn);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff !important;
  font-family: 'Russo One', 'Segoe UI', sans-serif;
  font-weight: 400; font-size: 0.82rem; letter-spacing: 0.8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
  opacity: 0.78;
  user-select: none;
  transition: opacity .2s, transform .15s, box-shadow .25s, background .25s;
}
.tb-toggle label { --btn: #d97706; --btn-hi: #f59e0b; --btn-glow: rgba(251, 191, 36, 0.55); }

/* Durum göstergesi: kapalıyken boş halka, açıkken dolu nokta */
.pot-toggle label::before, .tb-toggle label::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  transition: background .2s, box-shadow .2s;
}
.pot-toggle label:hover, .tb-toggle label:hover { opacity: 1; transform: translateY(-1px); }

/* AKTİF */
.pot-toggle:has(input:checked) label, .tb-toggle:has(input:checked) label {
  opacity: 1;
  background: linear-gradient(180deg, var(--btn-hi), var(--btn));
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px var(--btn-glow), 0 0 22px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: toggleNabiz 2.4s ease-in-out infinite;
}
.pot-toggle:has(input:checked) label::before, .tb-toggle:has(input:checked) label::before {
  background: #fff; box-shadow: 0 0 8px #fff;
}
@keyframes toggleNabiz {
  0%, 100% { box-shadow: 0 0 0 3px var(--btn-glow), 0 0 14px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 0 0 3px var(--btn-glow), 0 0 28px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,.35); }
}
.pot-toggle:has(input:focus-visible) label, .tb-toggle:has(input:focus-visible) label { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pot-toggle:has(input:checked) label, .tb-toggle:has(input:checked) label { animation: none; }
}

/* --- Oyuncular filtre düzeni: 1. sıra tüm filtreler + Sırala + Sıfırla (en sağda),
       2. sıra POTANSİYEL ve TAKIM KURUCU butonları --- */
.filter-section[data-view="oyuncular"] .filter-container { row-gap: 12px; }
.filter-section[data-view="oyuncular"] .filter-container::after {
  content: ''; order: 5; flex-basis: 100%; height: 0;   /* satır sonu */
}
.filter-section[data-view="oyuncular"] .pot-toggle,
.filter-section[data-view="oyuncular"] .tb-toggle { order: 10; }
.filter-section[data-view="oyuncular"] .search-group { flex: 1 1 180px; min-width: 160px; }
/* Tek satıra sığsınlar diye select genişlikleri sabit; uzun seçenekler kısaltılarak görünür */
.filter-section[data-view="oyuncular"] select { min-width: 0; text-overflow: ellipsis; }
#yearFilter     { width: 110px; }
#leagueFilter   { width: 140px; }
#teamFilter     { width: 170px; }
#positionFilter { width: 130px; }
#gradeFilter    { width: 140px; }
#styleFilter    { width: 140px; }
#sortBy         { width: 200px; }

/* --- 2. sıra: butonlar tam ortadan ayrılır (POTANSİYEL solda, TAKIM KURUCU sağda);
       açılan pencereler de ortadan ikiye bölünür: sol yarı potansiyel, sağ yarı takım kurucu --- */
.filter-section[data-view="oyuncular"] {
  display: grid;
  grid-template-columns: 1fr minmax(0, 700px) minmax(0, 700px) 1fr;
  align-items: start;
}
.filter-section[data-view="oyuncular"] .filter-container { grid-column: 2 / 4; grid-row: 1; width: 100%; }
.filter-section[data-view="oyuncular"] .pot-toggle,
.filter-section[data-view="oyuncular"] .tb-toggle { flex: 1 1 0; display: flex; }
.filter-section[data-view="oyuncular"] .pot-toggle { justify-content: flex-end; }
.filter-section[data-view="oyuncular"] .tb-toggle  { justify-content: flex-start; }

.filter-section[data-view="oyuncular"] #potPanel {
  grid-column: 2; grid-row: 2; max-width: none; margin: 14px 5px 0 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.filter-section[data-view="oyuncular"] #potPanel .pot-enh { grid-column: 1 / -1; }
.filter-section[data-view="oyuncular"] #tbPanel {
  grid-column: 3; grid-row: 2; max-width: none; margin: 14px 0 0 5px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.filter-section[data-view="oyuncular"] #tbPanel .pot-block:last-child { grid-column: 1 / -1; }
.filter-section[data-view="oyuncular"] #tbPanel .tb-grid-pos { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .filter-section[data-view="oyuncular"] { grid-template-columns: minmax(0, 1fr); }
  .filter-section[data-view="oyuncular"] .filter-container { grid-column: 1; }
  .filter-section[data-view="oyuncular"] #potPanel { grid-column: 1; grid-row: 2; margin: 14px 0 0; grid-template-columns: 1fr; }
  .filter-section[data-view="oyuncular"] #tbPanel  { grid-column: 1; grid-row: 3; margin: 14px 0 0; grid-template-columns: 1fr; }
  .filter-section[data-view="oyuncular"] #tbPanel .tb-grid-pos { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   Filtre alanı: saha kenarı gibi kırmızı-kahverengi kum zemin,
   üstünde siyah / beyaz / altın küçük altıgenler; altında saha çizgisi
   ===================================================================== */
.filter-section {
  background: url('../assets/football/tribun-tile.svg') 0 0 / 240px 240px repeat, #a55d3e;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 3px solid rgba(255, 255, 255, 0.92);   /* saha kenar çizgisi */
  box-shadow: inset 0 10px 18px -10px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.25);
}
/* Kum üzerinde okunabilirlik */
.filter-group label {
  color: #fff7ed;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.filter-group input,
.filter-group select {
  background-color: rgba(17, 20, 28, 0.92);
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pot-panel, .tb-panel { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.pot-panel { background: linear-gradient(135deg, rgba(6, 60, 45, 0.94), rgba(8, 26, 22, 0.96)); }
.tb-panel  { background: linear-gradient(135deg, rgba(92, 42, 10, 0.94), rgba(28, 20, 8, 0.96)) !important; }

/* --- Düzeltmeler: terra rossa zemin, beyaz çizgi yok, eşit butonlar, potansiyel göstergesi sağda --- */
.filter-section {
  background: url('../assets/football/tribun-tile.svg') 0 0 / 240px 240px repeat, #a8432a;
  border-bottom: none;
  box-shadow: inset 0 10px 18px -10px rgba(0, 0, 0, 0.55);
}
.pot-toggle label, .tb-toggle label {
  width: 172px; justify-content: center; padding: 0 12px;
}
.pot-toggle label { flex-direction: row-reverse; }

/* --- Toprak #5C2710; aşağı kaydırınca filtre alanının zemini saydamlaşır ---
   Zemin ::before katmanında; kaydırma 0–120px arasında opaklığı 1 → 0.45'e iner
   (scroll-driven animasyon: Chrome/Edge; desteklemeyen tarayıcıda zemin opak kalır) */
.filter-section {
  background: transparent;
  isolation: isolate;
  box-shadow: none;
}
.filter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../assets/football/tribun-tile.svg') 0 0 / 240px 240px repeat, #5C2710;
  box-shadow: inset 0 10px 18px -10px rgba(0, 0, 0, 0.55);
}
@supports (animation-timeline: scroll()) {
  .filter-section {
    animation: filtreCam linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
  .filter-section::before {
    animation: filtreSaydam linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
}
@keyframes filtreSaydam { from { opacity: 1; } to { opacity: 0.45; } }
@keyframes filtreCam {
  from { -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
  to   { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
/* Panel açıkken bölüm yapışkan değil; zemin katmanı yine bölümün içinde kalsın */
.filter-section:has(.pot-panel:not(.hidden)),
.filter-section:has(.tb-panel:not(.hidden)) { position: relative; }

/* --- Taç çizgileri: sayfanın sağ ve sol kenarına yakın, kalın beyaz saha çizgileri ---
   Kenardan 24px içeride; dar ekranda kartlara değmesin diye kart alanının dışında kalır. */
.content-container[data-view="oyuncular"] { position: relative; --cols: 5; --line-w: 14px; }
.content-container[data-view="oyuncular"]::before,
.content-container[data-view="oyuncular"]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--line-w);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.content-container[data-view="oyuncular"]::before { left:  min(24px, calc(50% - var(--cols) * 116px - var(--line-w) - 6px)); }
.content-container[data-view="oyuncular"]::after  { right: min(24px, calc(50% - var(--cols) * 116px - var(--line-w) - 6px)); }
@media (max-width: 1220px) { .content-container[data-view="oyuncular"] { --cols: 4; } }
@media (max-width: 990px)  { .content-container[data-view="oyuncular"] { --cols: 3; } }
@media (max-width: 760px)  { .content-container[data-view="oyuncular"] { --cols: 2; --line-w: 8px; } }
@media (max-width: 525px)  {
  .content-container[data-view="oyuncular"]::before,
  .content-container[data-view="oyuncular"]::after { display: none; }
}

/* =====================================================================
   Koyu ton: çim ve toprak birkaç ton koyu (üstte yarı saydam siyah katman)
   ===================================================================== */
/* Üstüne yarı saydam siyah katman → çim ve toprak birkaç ton koyulaşır */
:root { --koyulastir: linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.26)); }

.content-container[data-view="oyuncular"] {
  background:
    var(--koyulastir),
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 232px, #3d8b2f 232px, #347f28 464px) calc(50% + var(--stripe-off)) 0 / 464px 100% repeat-x;
}
.content-container[data-view="amblemler"] {
  background:
    var(--koyulastir),
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 272px, #3d8b2f 272px, #347f28 544px) calc(50% + var(--stripe-off)) 0 / 544px 100% repeat-x;
}
.filter-section::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url('../assets/football/tribun-tile.svg') 0 0 / 240px 240px repeat,
    #5C2710;
}

/* --- Filtre kutuları: beyaza yakın gri --- */
.filter-group input:not([type="checkbox"]),
.filter-group select {
  background-color: #e4e6ea;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
.filter-group input::placeholder { color: #6b7280; }
.filter-group select option { background: #f3f4f6; color: #111827; }
.filter-group input:not([type="checkbox"]):focus,
.filter-group select:focus {
  background-color: #f3f4f6;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 182, 66, 0.35);
}

/* =====================================================================
   Amblemli takım seçici (js/app.js bu değişkeni görünce devreye girer)
   ===================================================================== */
:root { --team-picker: 1; }

.tp-btn {
  width: 100%;
  display: flex; align-items: center; gap: 6px;
  background-color: #e4e6ea;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  padding: 5px 8px;
  font: inherit; font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.tp-btn:focus-visible, .tp-btn[aria-expanded="true"] {
  outline: none; background-color: #f3f4f6;
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 182, 66, 0.35);
}
.tp-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #374151; }
.tp-emb { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.tp-list {
  position: absolute; z-index: 300; top: calc(100% + 4px); left: 0;
  width: 280px; max-height: 340px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none;
  background: #f3f4f6; color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.tp-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 5px;
  font-size: 0.84rem; cursor: pointer;
}
.tp-list li:hover, .tp-list li:focus { background: #dfe3e8; outline: none; }
.tp-list li[aria-selected="true"] { background: #fde9b8; font-weight: 700; }

/* =====================================================================
   Üst bar: #3381DE mavi, 3D (üstte parlak kenar, altta kalınlık + gölge)
   Sekmeler: oyun menüsü gibi kabartma butonlar; aktif olan altın
   ===================================================================== */
.header {
  position: relative;
  z-index: 101;
  background: linear-gradient(180deg, #5c9ef0 0%, #3381DE 42%, #2b70c9 78%, #255fae 100%);
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 4px 0 #1b4f93,
    0 9px 18px rgba(0, 0, 0, 0.45);
}
.stats-counter { color: #e6f0ff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }

.tabs { margin-left: 48px; gap: 18px; }
.tab-btn {
  font-family: 'Russo One', 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 9px 26px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #3b7fd6 0%, #2862b3 55%, #1f529b 100%);
  border: 1px solid rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    0 4px 0 #143d74,
    0 6px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .2s, filter .2s;
}
.tab-btn::after { display: none; }
.tab-btn:hover {
  color: #fff;
  border-color: rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #4b8fe4 0%, #306ec2 55%, #245aa6 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    0 5px 0 #143d74,
    0 8px 14px rgba(0, 0, 0, 0.32);
}
.tab-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #143d74, 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Aktif sekme: altın, parlayan */
.tab-btn.active,
.tab-btn.active:hover {
  color: #3a2300;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #ffe08a 0%, #f8c24f 50%, #e39f22 100%);
  border-color: rgba(120, 70, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(150, 90, 0, 0.25),
    0 4px 0 #a5680b,
    0 6px 10px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 214, 102, 0.55);
}
.tab-btn.active:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 0 #a5680b, 0 0 14px rgba(255,214,102,.5); }
.tab-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .tabs { margin-left: 0; gap: 10px; } .tab-btn { padding: 8px 16px; } }

/* =====================================================================
   UYUM KATMANI — tek renk sistemi
   Yeşil: saha zemini · Mavi/lacivert: üst kısımlar ve normal butonlar
   Altın: sadece seçili / aktif · Beyaz: yazı, çizgi, kutu
   ===================================================================== */
:root {
  --navy-900: #0b1628;
  --navy-800: #12223b;
  --blue-500: #3381DE;
  --gold-300: #ffe08a;
  --gold-400: #f8c24f;
  --gold-500: #e39f22;
  --gold-edge: #a5680b;
  --ui-h: 36px;
  --ui-r: 8px;
  /* ortak 3D buton */
  --btn-blue: linear-gradient(180deg, #3b7fd6 0%, #2862b3 55%, #1f529b 100%);
  --btn-blue-hi: linear-gradient(180deg, #4b8fe4 0%, #306ec2 55%, #245aa6 100%);
  --btn-gold: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  --sh-blue: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 0 #143d74, 0 6px 10px rgba(0,0,0,.3);
  --sh-gold: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(150,90,0,.25), 0 4px 0 var(--gold-edge), 0 6px 10px rgba(0,0,0,.3), 0 0 18px rgba(255,214,102,.5);
}

/* --- 2. Filtre alanı: lacivert tribün --- */
.filter-section::before {
  background:
    linear-gradient(180deg, rgba(11, 22, 40, 0.55), rgba(11, 22, 40, 0.35)),
    url('../assets/football/tribun-tile.svg') 0 0 / 160px 44px repeat,
    var(--navy-800);
  box-shadow: inset 0 10px 18px -10px rgba(0, 0, 0, 0.6), inset 0 -12px 16px -12px rgba(0, 0, 0, 0.6);
}
.filter-group label { color: #e6eefc; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* --- 5. Kutular: aynı yükseklik, köşe, yazı boyu --- */
.filter-group input:not([type="checkbox"]),
.filter-group select,
.tp-btn {
  height: var(--ui-h);
  border-radius: var(--ui-r);
  font-size: 0.85rem;
  padding-top: 0; padding-bottom: 0;
}

/* --- 3. Butonlar tek aile: kapalı mavi, açık altın --- */
.pot-toggle label, .tb-toggle label {
  height: var(--ui-h);
  border-radius: var(--ui-r);
  background: var(--btn-blue);
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: var(--sh-blue);
  opacity: 1;
  animation: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
}
.pot-toggle label:hover, .tb-toggle label:hover { background: var(--btn-blue-hi); transform: translateY(-1px); }
.pot-toggle label:active, .tb-toggle label:active { transform: translateY(3px); box-shadow: 0 1px 0 #143d74; }
.pot-toggle:has(input:checked) label, .tb-toggle:has(input:checked) label {
  background: var(--btn-gold);
  color: #3a2300 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  border-color: rgba(120, 70, 0, 0.55);
  box-shadow: var(--sh-gold);
  animation: none;
}
.pot-toggle label::before, .tb-toggle label::before { border-color: rgba(255, 255, 255, 0.9); }
.pot-toggle:has(input:checked) label::before, .tb-toggle:has(input:checked) label::before {
  background: #3a2300; border-color: #3a2300; box-shadow: none;
}
.tab-btn { border-radius: var(--ui-r); }

/* Sıfırla: kırmızı değil, beyaz çerçeveli sade buton */
.reset-btn {
  height: var(--ui-h);
  padding: 0 18px;
  border-radius: var(--ui-r);
  font-family: 'Russo One', 'Segoe UI', sans-serif;
  font-weight: 400; letter-spacing: .8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  transition: transform .12s ease, background .15s, color .15s, box-shadow .12s;
}
.reset-btn:hover { background: #fff; color: var(--navy-800); transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.45); }
.reset-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.reset-btn:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

/* --- 4. Paneller: aynı koyu zemin, altın başlıklar --- */
.pot-panel, .tb-panel, .tb-panel.pot-panel {
  background: rgba(9, 17, 31, 0.93) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 3px solid var(--gold-400) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}
.pot-title, .tb-panel .pot-title { color: var(--gold-400); }
.pot-title b { color: #fff; }
.pot-block, .pot-quick { color: #dbe4f3; }
.pot-block small, .pot-panel small { color: #8fa1bd; }
.pot-sum, .pot-step-no { color: var(--gold-400); }
.pot-panel input[type=range] { accent-color: var(--gold-400); }
.pot-panel select, .tb-num, .tb-result select {
  background: #e4e6ea; color: #111827; border: 1px solid rgba(0,0,0,.35); border-radius: 6px;
}
.pot-btn {
  background: var(--btn-gold); color: #3a2300; border: 1px solid rgba(120,70,0,.5);
  border-radius: 6px; box-shadow: 0 2px 0 var(--gold-edge); font-weight: 800;
}
.pot-btn:active { transform: translateY(2px); box-shadow: none; }
.pot-btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); box-shadow: none;
}
.pot-btn-ghost:hover { background: rgba(255,255,255,.12); }
.pot-check input, .tb-gr input { accent-color: var(--gold-400); }
.tb-gr { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #dbe4f3; }
.tb-gr:has(input:checked) { border-color: rgba(255,255,255,.18); color: #7f8da3; text-decoration: line-through; opacity: .75; }
.tb-result {
  background: rgba(9, 17, 31, 0.9); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--gold-400);
}
.tb-head b { color: var(--gold-400); }

/* --- Resimli seçiciler (takım amblemi, lig logosu) --- */
select.tp-native { display: none !important; }
.icon-picker { position: relative; }
.icon-picker-team { width: 170px; }
.icon-picker-league { width: 160px; }
.icon-picker-league .tp-btn .tp-emb { width: 26px; height: 26px; }
.icon-picker-league .tp-list { width: 230px; }
.icon-picker-league .tp-list .tp-emb { width: 34px; height: 34px; }
.icon-picker-league .tp-list li { padding: 4px 8px; }

/* Potansiyel: Teknik ekip seti ve Amblem bonusu aynı satırda */
.pot-checks { gap: 18px; }

/* --- Sıfırla: kırmızı 3D buton (diğer butonlarla aynı yapı) --- */
.reset-btn {
  background: linear-gradient(180deg, #f05252 0%, #d42a2a 55%, #b51d1d 100%);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 4px 0 #7f1414, 0 6px 10px rgba(0, 0, 0, 0.3);
}
.reset-btn:hover {
  background: linear-gradient(180deg, #f76666 0%, #de3434 55%, #bf2323 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 5px 0 #7f1414, 0 8px 14px rgba(0, 0, 0, 0.32);
}
.reset-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7f1414; }


/* =====================================================================
   TRANSFER PAZARI — hesap alanı, giriş/kayıt ve profil pencereleri
   ===================================================================== */
.header-container { gap: 16px; }
.account-area { display: flex; align-items: center; gap: 10px; }
.acc-btn {
  height: 34px; padding: 0 14px; border-radius: var(--ui-r);
  font-family: 'Russo One', 'Segoe UI', sans-serif; font-size: 0.82rem; letter-spacing: .6px;
  color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  transition: transform .12s ease, background .15s, box-shadow .12s;
}
.acc-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.acc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.acc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.acc-btn-gold {
  background: var(--btn-gold); color: #3a2300; border-color: rgba(120, 70, 0, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); box-shadow: 0 3px 0 var(--gold-edge);
}
.acc-btn-gold:hover { background: var(--btn-gold); filter: brightness(1.06); }
.acc-menu { position: relative; }
.acc-user { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; }
.acc-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-gold); color: #3a2300; font-size: 0.8rem; text-shadow: none;
}
.acc-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user .tp-caret { border-top-color: #fff; }
.acc-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 400; min-width: 190px;
  background: rgba(9, 17, 31, 0.97); border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--gold-400); border-radius: 8px; padding: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.acc-drop[hidden] { display: none; }
.acc-drop button {
  text-align: left; padding: 9px 10px; border-radius: 6px; border: 0; cursor: pointer;
  background: transparent; color: #e6eefc; font: inherit; font-size: 0.86rem;
}
.acc-drop button:hover, .acc-drop button:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }

/* Pencereler */
#authDialog, #rulesDialog {
  margin: auto; padding: 0; border: 0; background: transparent; color: #e6eefc;
  max-width: min(560px, calc(100vw - 32px)); width: 100%;
}
#authDialog:has(.pz-dialog-wide), #rulesDialog { max-width: min(720px, calc(100vw - 32px)); }
#authDialog::backdrop, #rulesDialog::backdrop { background: rgba(4, 8, 16, 0.72); backdrop-filter: blur(3px); }
.pz-dialog {
  background: linear-gradient(180deg, #13223b 0%, #0b1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-top: 3px solid var(--gold-400);
  border-radius: 12px; padding: 18px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
.pz-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pz-dialog h2 { margin: 0; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1.25rem; color: var(--gold-400); letter-spacing: .5px; }
.pz-close {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.pz-close:hover { background: rgba(255, 255, 255, 0.1); }
.pz-tabs { display: flex; gap: 8px; }
.pz-tab {
  padding: 8px 16px; border-radius: var(--ui-r); cursor: pointer;
  font-family: 'Russo One', sans-serif; font-size: 0.85rem; letter-spacing: .5px;
  color: #fff; background: var(--btn-blue); border: 1px solid rgba(0, 0, 0, 0.3); box-shadow: var(--sh-blue);
}
.pz-tab[aria-selected="true"] { background: var(--btn-gold); color: #3a2300; box-shadow: var(--sh-gold); }
.pz-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.78rem; font-weight: 700; color: #cfd9ea; text-transform: uppercase; letter-spacing: .3px; }
.pz-field input, .pz-inline input {
  height: var(--ui-h); padding: 0 10px; border-radius: var(--ui-r);
  background: #e4e6ea; color: #111827; border: 1px solid rgba(0, 0, 0, 0.35);
  font: inherit; font-size: 0.9rem; text-transform: none; font-weight: 400;
}
.pz-field input:focus, .pz-inline input:focus { outline: none; background: #f3f4f6; border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(245, 182, 66, 0.35); }
.pz-note { margin: 0; font-size: 0.8rem; line-height: 1.5; color: #9fb0c9; }
.pz-note b { color: #f3d9a0; }
.pz-error { margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 0.84rem; background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(248, 113, 113, 0.5); color: #fecaca; }
.pz-error[hidden] { display: none; }
.pz-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pz-actions-center { justify-content: center; }
.pz-saved { color: #86efac; font-size: 0.84rem; font-weight: 700; }
.pz-btn {
  height: var(--ui-h); padding: 0 18px; border-radius: var(--ui-r); cursor: pointer;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 0.85rem; letter-spacing: .6px;
  color: #fff; background: var(--btn-blue); border: 1px solid rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); box-shadow: var(--sh-blue);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pz-btn:hover { background: var(--btn-blue-hi); transform: translateY(-1px); }
.pz-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #143d74; }
.pz-btn:disabled { opacity: .55; cursor: default; transform: none; }
.pz-btn-gold { background: var(--btn-gold); color: #3a2300; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); box-shadow: var(--sh-gold); }
.pz-btn-gold:hover { background: var(--btn-gold); filter: brightness(1.06); }
.pz-btn-red { background: linear-gradient(180deg, #f05252 0%, #d42a2a 55%, #b51d1d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #7f1414; }
.pz-btn-red:hover { background: linear-gradient(180deg, #f76666 0%, #de3434 55%, #bf2323 100%); }
.pz-btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.7); box-shadow: none; height: 30px; padding: 0 12px; font-size: 0.76rem; }
.pz-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pz-btn:focus-visible, .pz-tab:focus-visible, .pz-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pz-welcome { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(245, 194, 79, 0.12); border: 1px solid rgba(245, 194, 79, 0.4); font-size: 0.88rem; line-height: 1.5; }
.pz-section { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 2px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pz-section h3 { margin: 0; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 0.98rem; color: var(--gold-400); letter-spacing: .4px; }
.pz-opt { font-family: 'Segoe UI', sans-serif; font-size: 0.72rem; color: #8fa1bd; margin-left: 6px; letter-spacing: 0; }
.pz-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pz-vis { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.pz-vis legend { font-size: 0.78rem; font-weight: 700; color: #cfd9ea; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.pz-radio {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.pz-radio:has(input:checked) { border-color: var(--gold-400); background: rgba(245, 194, 79, 0.10); }
.pz-radio input { accent-color: var(--gold-400); margin-top: 3px; }
.pz-radio span { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.pz-radio small { color: #9fb0c9; font-size: 0.78rem; }
.pz-inline { display: flex; gap: 8px; }
.pz-inline input { flex: 1; min-width: 0; }
.pz-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pz-blocks li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 0.86rem; }
.pz-blocks .pz-bname { font-weight: 700; }
.pz-blocks .pz-muted { flex: 1; }
.pz-muted { color: #8fa1bd; font-size: 0.84rem; }
.pz-center { text-align: center; }
.pz-danger h3 { color: #fca5a5; }

/* Pazar sekmesi (şimdilik karşılama ekranı) */
.content-container[data-view="pazar"] { max-width: none; margin: 0; padding: 48px 16px 64px; min-height: calc(100vh - 72px); }
.pz-hero {
  max-width: 640px; margin: 0 auto; padding: 28px 28px 24px; text-align: center;
  background: rgba(9, 17, 31, 0.9); border: 1px solid rgba(255, 255, 255, 0.14); border-top: 3px solid var(--gold-400);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 14px; color: #e6eefc;
}
.pz-hero h2 { margin: 0; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1.6rem; color: var(--gold-400); letter-spacing: .6px; }
.pz-hero p { margin: 0; line-height: 1.55; }
.pz-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: left; }
.pz-points li { padding: 8px 12px 8px 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); position: relative; font-size: 0.9rem; }
.pz-points li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold-400); }

@media (max-width: 760px) {
  .header-container { justify-content: center; }
  .pz-row2 { grid-template-columns: 1fr; }
  .acc-name { max-width: 90px; }
}
.content-container[data-view="pazar"] {
  background:
    var(--koyulastir),
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 232px, #3d8b2f 232px, #347f28 464px) center 0 / 464px 100% repeat-x;
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5);
}

.pz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; cursor: pointer; }
.pz-check input { accent-color: var(--gold-400); margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.pz-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px;
}
.pz-link:hover { color: #ffe08a; }
.pz-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.pz-hero > .pz-link { align-self: center; font-size: 0.84rem; }
.pz-rules { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; line-height: 1.55; }
.pz-rules h3 { margin: 6px 0 0; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 0.98rem; color: var(--gold-400); }
.pz-rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pz-rules b { color: #fff; }

/* =====================================================================
   TRANSFER PAZARI — 2. adım: alt sekmeler, fiyat etiketleri, kart detayı, İlanlarım
   ===================================================================== */
.pz-bar[hidden], .pz-mine[hidden] { display: none; }
.pz-bar { width: min(1160px, calc(100% - 32px)); margin: 20px auto 0; position: relative; z-index: 2; }
.pz-bar-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(9, 17, 31, 0.9); border: 1px solid rgba(255, 255, 255, 0.14); border-top: 3px solid var(--gold-400);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.pz-subs { display: flex; gap: 10px; flex-wrap: wrap; }
.pz-sub {
  height: var(--ui-h); padding: 0 16px; border-radius: var(--ui-r); cursor: pointer;
  font-family: 'Russo One', sans-serif; font-size: 0.86rem; letter-spacing: .5px;
  color: #fff; background: var(--btn-blue); border: 1px solid rgba(0, 0, 0, 0.3); box-shadow: var(--sh-blue);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease;
}
.pz-sub:hover { background: var(--btn-blue-hi); transform: translateY(-1px); }
.pz-sub[aria-selected="true"] { background: var(--btn-gold); color: #3a2300; text-shadow: 0 1px 0 rgba(255,255,255,.5); box-shadow: var(--sh-gold); }
.pz-sub:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pz-count {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-family: 'Segoe UI', sans-serif; font-size: 0.72rem; font-weight: 800; text-shadow: none;
}
.pz-sub[aria-selected="true"] .pz-count { background: rgba(58, 35, 0, 0.85); color: #ffe08a; }
.pz-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pazar açıkken: İlanlarım modunda filtreler ve ızgara gizlenir */
body.pz-on.pz-sub-mine .filter-section[data-view="oyuncular"],
body.pz-on.pz-sub-mine #cardGrid,
body.pz-on.pz-sub-mine #noResults,
body.pz-on.pz-sub-mine #tbResult { display: none !important; }
body.pz-on #noResults { color: #fff; text-align: center; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

/* Kart + fiyat etiketi */
.mk-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mk-tag {
  width: 210px; min-height: 36px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  font-family: 'Segoe UI', sans-serif; font-size: 0.78rem; line-height: 1.15;
  border: 1px solid rgba(0, 0, 0, 0.35); transition: transform .12s ease, filter .12s;
}
.mk-tag b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 0.98rem; letter-spacing: .3px; }
.mk-tag small { font-size: 0.72rem; opacity: .85; }
.mk-tag:hover { transform: translateY(-2px); filter: brightness(1.08); }
.mk-tag:active { transform: translateY(2px); }
.mk-tag:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mk-tag.mk-sell { background: var(--btn-gold); color: #3a2300; box-shadow: 0 3px 0 var(--gold-edge), 0 4px 10px rgba(0,0,0,.35); }
.mk-tag.mk-buy  { background: var(--btn-blue); color: #fff; box-shadow: 0 3px 0 #143d74, 0 4px 10px rgba(0,0,0,.35); text-shadow: 0 1px 0 rgba(0,0,0,.4); }

/* Pencereler */
#mkDialog { margin: auto; padding: 0; border: 0; background: transparent; color: #e6eefc; max-width: min(760px, calc(100vw - 32px)); width: 100%; }
#mkDialog::backdrop { background: rgba(4, 8, 16, 0.72); backdrop-filter: blur(3px); }
#mkDialog:has(form.pz-dialog) { max-width: min(560px, calc(100vw - 32px)); }
.mk-detail-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-detail-card { display: flex; flex-direction: column; gap: 8px; }
.mk-detail-card .flip-card-container { margin: 0; animation: none; }
.mk-detail-card p { margin: 0; font-size: 0.78rem; }
.mk-detail-lists { display: flex; flex-direction: column; gap: 14px; }
.mk-detail-lists h3 { margin: 0 0 6px; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 0.98rem; color: var(--gold-400); display: flex; align-items: center; gap: 8px; }
.mk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.mk-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-size: 0.86rem; }
.mk-list li.pz-muted { display: block; }
.mk-list li.is-mine { background: rgba(245, 194, 79, 0.12); border: 1px solid rgba(245, 194, 79, 0.35); }
.mk-user { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-user em { font-style: normal; font-weight: 400; color: var(--gold-400); }
.mk-price { font-family: 'Russo One', sans-serif; color: #ffe08a; white-space: nowrap; }

.pz-kind { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-picked { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(245,194,79,.45); text-transform: none; }
.mk-picked[hidden], .mk-results[hidden] { display: none; }
.mk-picked img, .mk-mine-list img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.mk-picked span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 400; }
.mk-picked b, .mk-results b, .mk-mine-card b { color: #fff; font-size: 0.9rem; }
.mk-picked small, .mk-results small, .mk-mine-card small { color: #9fb0c9; font-size: 0.76rem; font-weight: 400; }
.mk-results { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto; border-radius: 8px; background: #0b1628; border: 1px solid rgba(255,255,255,.14); text-transform: none; font-weight: 400; }
.mk-results li.pz-muted { padding: 8px; }
.mk-results button { width: 100%; text-align: left; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.mk-results button:hover, .mk-results button:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.mk-price-hint { text-transform: none; font-weight: 400; letter-spacing: 0; min-height: 1.2em; }

/* İlanlarım */
.pz-mine { width: min(1160px, calc(100% - 32px)); margin: 16px auto 40px; position: relative; z-index: 2; }
.mk-mine { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 12px; background: rgba(9, 17, 31, 0.92); border: 1px solid rgba(255,255,255,.14); color: #e6eefc; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.mk-mine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mk-mine-group h3 { margin: 0 0 8px; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1rem; color: var(--gold-400); display: flex; align-items: center; gap: 8px; }
.mk-mine-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mk-mine-list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05);
}
.mk-mine-list li.is-expired { opacity: .7; }
.mk-mine-card { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; font: inherit; }
.mk-mine-card:hover b { text-decoration: underline; }
.mk-mine-price { display: flex; gap: 6px; }
.mk-mine-price input { width: 150px; height: 32px; padding: 0 8px; border-radius: 6px; background: #e4e6ea; color: #111827; border: 1px solid rgba(0,0,0,.35); font: inherit; font-size: 0.86rem; }
.mk-mine-price input:disabled { opacity: .5; }
.mk-state { font-size: 0.78rem; color: #9fb0c9; white-space: nowrap; }
.is-expired .mk-state { color: #fca5a5; font-weight: 700; }
.mk-mine-btns { display: flex; gap: 6px; }

@media (max-width: 760px) {
  .mk-detail-body { grid-template-columns: 1fr; justify-items: center; }
  .mk-detail-lists { width: 100%; }
  .mk-mine-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .mk-mine-price, .mk-state, .mk-mine-btns { grid-column: 1 / -1; }
  .pz-kind { grid-template-columns: 1fr; }
}
body.pz-on.pz-sub-mine .content-container[data-view="oyuncular"] { min-height: calc(100vh - 80px); padding-top: 1px; }

/* =====================================================================
   TRANSFER PAZARI — teklifler, kullanıcı sayfası, yeşil GP, kayıt onayı
   ===================================================================== */
/* GP rakamları yeşil */
.gp, .mk-price, .mk-list .mk-price { color: #4ade80; font-family: 'Russo One', sans-serif; white-space: nowrap; }
.mk-tag.mk-sell b { color: #0f5a2b; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.mk-tag.mk-buy b { color: #86efac; }
.mk-price-hint { color: #4ade80 !important; }

/* Hesap oluşturuldu */
.pz-success {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(21, 128, 61, 0.18));
  border: 2px solid #22c55e; box-shadow: 0 0 22px rgba(34, 197, 94, 0.25);
}
.pz-success-ic {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #4ade80, #16a34a 70%); box-shadow: 0 4px 0 #14532d, 0 0 18px rgba(74, 222, 128, 0.6);
}
.pz-success-ic svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pz-success > div { display: flex; flex-direction: column; gap: 4px; }
.pz-success b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1.25rem; color: #86efac; letter-spacing: .4px; }
.pz-success span { font-size: 0.92rem; }
.pz-success small { font-size: 0.8rem; color: #b7c6dc; }

/* İlan verirken arama sonuçları: kademe rengi */
.mk-results li + li { margin-top: 4px; }
.mk-results button { border: 1px solid rgba(0, 0, 0, 0.35); }
.mk-results button.g-master  { background: var(--pat-master); }
.mk-results button.g-elite   { background: var(--pat-elite); }
.mk-results button.g-rare    { background: var(--pat-rare); }
.mk-results button.g-special { background: var(--pat-special); }
.mk-results button.g-normal  { background: var(--pat-normal); }
.mk-results button.g-mythic  { background: linear-gradient(180deg, #1f8f95 0%, #0e6a73 55%, #0a4c55 100%); box-shadow: inset 0 0 0 1px #3fb6bb; }
.mk-results button.g-master b, .mk-results button.g-master small { color: #111; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.mk-results button:not(.g-master) b { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.mk-results button:not(.g-master) small { color: rgba(255,255,255,.88); }
.mk-results button:hover, .mk-results button:focus-visible { filter: brightness(1.12); outline: 2px solid #fff; outline-offset: -2px; background-blend-mode: normal; }

/* Kart detayı: ilanlar ve teklifler */
.mk-detail .mk-list { max-height: none; gap: 8px; }
.mk-listing { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.mk-listing.is-mine { background: rgba(245, 194, 79, 0.10); border: 1px solid rgba(245, 194, 79, 0.35); }
.mk-listing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.mk-offers-box { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 0 12px; border-left: 2px solid rgba(255,255,255,.12); margin-left: 4px; }
.mk-offers-title { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #9fb0c9; display: flex; gap: 6px; align-items: center; }
.mk-none { margin: 0; font-size: 0.8rem; }
.mk-offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mk-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.22); font-size: 0.84rem; }
.mk-offer.is-mine { box-shadow: inset 0 0 0 1px rgba(245, 194, 79, 0.45); }
.mk-offer.st-accepted { background: rgba(22, 163, 74, 0.18); box-shadow: inset 3px 0 0 #22c55e; }
.mk-offer.st-rejected { background: rgba(220, 38, 38, 0.14); box-shadow: inset 3px 0 0 #ef4444; }
.mk-offer-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-offer-who em { font-style: normal; color: var(--gold-400); font-size: 0.8rem; }
.mk-ago { font-size: 0.76rem; white-space: nowrap; }
.mk-yes-chip, .mk-no-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: .3px; color: #fff; }
.mk-yes-chip { background: #16a34a; }
.mk-no-chip { background: #dc2626; }
.mk-offer-btns, .mk-mine-btns { display: flex; gap: 4px; align-items: center; }
.mk-yes, .mk-no {
  height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 800; color: #fff;
  border: 1px solid rgba(0,0,0,.35); opacity: .8; transition: opacity .12s, transform .12s;
}
.mk-yes { background: linear-gradient(180deg, #22c55e, #15803d); box-shadow: 0 2px 0 #14532d; }
.mk-no  { background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 2px 0 #7f1414; }
.mk-yes:hover, .mk-no:hover, .mk-yes[aria-pressed="true"], .mk-no[aria-pressed="true"] { opacity: 1; }
.mk-yes[aria-pressed="true"], .mk-no[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 1px; }
.mk-yes:active, .mk-no:active { transform: translateY(2px); box-shadow: none; }
.mk-offer-btns .pz-btn-ghost, .mk-mine-btns .pz-btn-ghost { height: 28px; }
.mk-offer-form { display: flex; gap: 6px; margin-top: 2px; }
.mk-offer-form input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 6px; background: #e4e6ea; color: #111827; border: 1px solid rgba(0,0,0,.35); font: inherit; font-size: 0.86rem; }
.mk-offer-form .pz-btn { height: 34px; }

/* Kullanıcı adı bağlantısı */
.pz-userlink {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 800; color: #fff;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pz-userlink:hover { color: var(--gold-400); text-decoration-color: var(--gold-400); }
.pz-userlink:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

/* Kullanıcı sayfası başlığı */
.mk-user-head {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 12px; color: #e6eefc;
  background: rgba(9, 17, 31, 0.92); border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--gold-400);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.mk-back { align-self: flex-start; }
.mk-user-main { display: flex; align-items: center; gap: 14px; }
.mk-user-avatar { width: 54px; height: 54px; font-size: 1.5rem; flex-shrink: 0; }
.mk-user-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-user-id h2 { margin: 0; font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 1.5rem; color: #fff; letter-spacing: .5px; }
.mk-user-id h2 em { font-style: normal; font-size: 0.9rem; color: var(--gold-400); }
.mk-user-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-contact span { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .4px; color: #9fb0c9; }
.mk-contact b { font-size: 0.98rem; text-transform: none; letter-spacing: 0; color: #fff; }
.mk-contact-note { font-size: 0.86rem; color: #b7c6dc; }

/* İlanlarım: teklif ve istek bildirimleri */
.pz-count.pz-alert { background: #16a34a; color: #fff; }
.pz-sub[aria-selected="true"] .pz-count.pz-alert { background: #16a34a; color: #fff; }
.mk-offers-btn {
  height: 30px; padding: 0 10px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); color: #e6eefc; font: inherit; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.mk-offers-btn.has-new { border-color: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.3); }
.mk-offers-btn:hover { background: rgba(255,255,255,.12); }
.mk-mine-list li { grid-template-columns: 40px minmax(0, 1fr) auto auto auto auto; }
.mk-mine-list li.mk-req { grid-template-columns: minmax(0, 1fr) auto auto; }

@media (max-width: 760px) {
  .mk-offer { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mk-offer .mk-ago { display: none; }
  .mk-offer-btns { grid-column: 1 / -1; }
  .mk-mine-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .mk-mine-list li.mk-req { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-offers-btn { grid-column: 1 / -1; justify-self: start; }
}
/* Kart detayındaki ilan blokları eski liste stilinden etkilenmesin */
.mk-detail .mk-list li.mk-listing { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.mk-detail .mk-list li.mk-listing.is-mine { background: rgba(245, 194, 79, 0.10); border: 1px solid rgba(245, 194, 79, 0.35); }
.mk-detail .mk-offers li.mk-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 6px; font-size: 0.84rem; }
.mk-detail .mk-offers li.mk-offer:not(.st-accepted):not(.st-rejected) { background: rgba(0, 0, 0, 0.22); }
@media (max-width: 760px) {
  .mk-detail .mk-offers li.mk-offer { grid-template-columns: minmax(0, 1fr) auto auto; }
}

/* =====================================================================
   KART ÖN YÜZÜ — oyunun büyük kart resimleri (248×362) → 210×307
   Çerçeve, kademe sekmesi ve stat alanı karartması resmin içinde var;
   ölçek: 210 / 248 = 0.847
   ===================================================================== */
.flip-card-container { height: 307px; }
.card-face { border-radius: 9px; }
.card-front { background-color: transparent; }
.card-border-line { display: none; }

/* Kademe yazısı: resimdeki üst sekmenin içine (karartma yok) */
.plate-grade-text {
  top: 3px;
  background: none;
  clip-path: none; -webkit-clip-path: none;
  padding: 0;
  min-width: 0; width: 92px;
  line-height: 15px;
}

.plate-pos-group { top: 11px; left: 13px; }
.plate-power-circle { top: 58px; left: 13px; }
.card-portrait { top: 22px; height: 158px; width: 150px; }

/* İsimlik: alt kenarı resimdeki stat alanının üst çizgisine oturur (y=257 → 217px) */
.plate-container {
  top: auto;
  bottom: 89px;
  left: 3.5px;
  right: 3.5px;
  height: 41.5px;              /* 240×49: Uzman, Süper, Mitik */
}
.grade-normal .plate-container,
.grade-special .plate-container { height: 45px; }   /* 240×53 */
.grade-rare .plate-container    { height: 57px; }   /* 240×67 */
.plate-emblem { top: auto; bottom: 1px; left: -2px; width: 44px; height: 44px; }
.plate-player-info { top: auto; bottom: 5px; left: 42px; right: 6px; }

/* Statlar: resimdeki koyu alanın içine (karartma yok) */
.plate-stats-container {
  top: 220px;
  bottom: 9px;
  left: 6px;
  right: 6px;
  background: none;
  border-top: 0;
  padding: 1px 8px 2px;
}
.plate-stat-lbl, .plate-stat-val { text-shadow: 0 1px 2px #000, 0 0 3px #000; }

/* GP simgesi (oyundaki para ikonu) */
.gp-ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-left: 0.28em; display: inline-block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.mk-tag b .gp-ico { margin-left: 0.22em; }

/* İlan etiketi: sadece fiyat, simge solda */
.gp-ico { margin-left: 0; margin-right: 0.3em; }
.mk-tag b .gp-ico { margin-left: 0; margin-right: 0.3em; }
.mk-tag { justify-content: center; }
.mk-tag b { display: inline-flex; align-items: center; }
.mk-tag .mk-noprice { font-family: inherit; font-weight: 700; opacity: .85; }

/* Oyun modelinden üretilmiş poz portreleri: kartın üst alanını kaplar, bacaklar isimliğin arkasında kalır */
.card-portrait.card-pose { top: 10px; left: 0; width: 100%; height: 200px; transform: none; object-fit: contain; object-position: center bottom; }

/* =====================================================================
   TEKNİK DİREKTÖRLER — oyuncu kartının ön yüzü; statlar yerine dizilişler
   ===================================================================== */
.content-container[data-view="teknik"] {
  max-width: none; margin: 0; padding: 0;
  --stripe-off: 116px;
  background:
    url('../assets/football/grass-tile.svg') center top / 232px 232px repeat,
    repeating-linear-gradient(90deg, #5aa848 0px, #4f9c3e 232px, #3d8b2f 232px, #347f28 464px) calc(50% + var(--stripe-off)) 0 / 464px 100% repeat-x;
  box-shadow: inset 0 26px 30px -20px rgba(0, 0, 0, 0.5);
}
.content-container[data-view="teknik"] .card-grid { background: none; box-shadow: none; }
.content-container[data-view="teknik"] .no-results { margin: 24px auto; text-align: center; }
@media (max-width: 1220px) { .content-container[data-view="teknik"] { --stripe-off: 232px; } }
@media (max-width: 990px)  { .content-container[data-view="teknik"] { --stripe-off: 348px; } }
@media (max-width: 760px)  { .content-container[data-view="teknik"] { --stripe-off: 0px; } }
@media (max-width: 525px)  { .content-container[data-view="teknik"] { --stripe-off: 116px; } }

.td-card { cursor: default; }
.td-card .plate-pos-title { font-size: 1.55rem; }
.td-silhouette {
  position: absolute; left: 50%; top: 34px; width: 128px; height: 128px; transform: translateX(-50%);
  fill: rgba(255, 255, 255, 0.16); z-index: 2; pointer-events: none;
}
.td-form-area {
  position: absolute; top: 222px; bottom: 10px; left: 8px; right: 8px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.td-form-title { font-size: 0.66rem; font-weight: 700; color: #cbd5e1; text-shadow: 0 1px 2px #000; letter-spacing: .2px; }
.td-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 4px; width: 100%; }
.td-pill {
  flex: 0 0 calc((100% - 8px) / 3); height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 800; color: #1f2937; white-space: nowrap;
  background: linear-gradient(180deg, #f3f4f6 0%, #c7cbd1 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .5);
}
.td-pill-off { background: linear-gradient(180deg, #4b5160 0%, #353a46 100%); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.td-pill-hit { background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%); }
.td-bonus { margin-top: auto; font-size: 0.6rem; font-style: italic; color: #93c5fd; text-shadow: 0 1px 2px #000; }
.td-bonus b { color: #f87171; font-style: normal; }
