/* ==========================================================================
   FEDERASYON SİSTEMİ — FULL CSS
   Two-state: No-Fed (search/create) + In-Fed (5-tab view)
   ========================================================================== */

/* ── Container ── */
.federation-fullview {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 16px;
  box-sizing: border-box;
}
.fed-page-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* ── Hero Header (shared) ── */
.fed-hero-header {
  background: linear-gradient(135deg, #0f172a 0%, #030712 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.fed-no-fed-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.fhh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}
.fhh-action-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.fhh-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.fhh-emblem-img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 2.5px solid #fbbf24;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.4);
  flex-shrink: 0;
  object-fit: contain;
}
.fhh-names {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fhh-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fhh-div-badge {
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.fhh-div-badge.gold    { background: rgba(234,179,8,0.22); color: #facc15; border: 1px solid #eab308; }
.fhh-div-badge.silver  { background: rgba(148,163,184,0.22); color: #cbd5e1; border: 1px solid #94a3b8; }
.fhh-div-badge.bronze  { background: rgba(180,83,9,0.22); color: #f59e0b; border: 1px solid #b45309; }
.fhh-div-badge.platinum { background: rgba(56,189,248,0.22); color: #38bdf8; border: 1px solid #0284c7; }
.fhh-div-badge.diamond { background: rgba(168,85,247,0.22); color: #c084fc; border: 1px solid #a855f7; }
.fhh-type-badge {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
}
.fhh-title {
  margin: 0;
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.fhh-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #cbd5e1;
  font-family: 'Rajdhani', sans-serif;
}
.fhh-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fhh-meta-item strong { color: #f8fafc; font-weight: 900; }

/* ── No-Fed Actions ── */
.fed-no-fed-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.fed-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.fed-create-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.fed-create-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6); }
.fed-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ── Search Bar ── */
.fed-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.fed-search-input {
  flex: 1;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 18px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
  user-select: text !important;
  pointer-events: auto !important;
}
.fed-search-input:focus { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
.fed-search-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fed-search-btn:hover { background: #0284c7; }

/* ── Federation List ── */
.fed-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.fed-list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  transition: all 0.2s ease;
}
.fed-list-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.fed-list-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #1e293b;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.fed-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fed-list-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fed-list-tag {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
  background: rgba(234, 179, 8, 0.15);
  padding: 1px 8px;
  border-radius: 4px;
}
.fed-list-meta {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
}
.fed-join-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: 1px solid #22c55e;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.fed-join-btn:hover { background: #16a34a; transform: scale(1.03); }
.fed-join-btn.disabled {
  background: #334155;
  border-color: #475569;
  color: #64748b;
  cursor: not-allowed;
}
.fed-loading, .fed-empty-msg {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* ── Create Wizard Panel ── */
.fed-wizard-panel {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  box-sizing: border-box;
}
.fed-wizard-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  border-radius: 16px;
  padding: 24px 28px;
  width: 100%;
  max-width: 620px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}
.fed-wizard-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 2;
}
.fed-wizard-close:hover { background: rgba(239, 68, 68, 0.3); color: #f87171; }
.fed-wizard-header {
  text-align: center;
  margin-bottom: 16px;
}
.fed-wizard-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
}
.fed-wizard-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  font-weight: 600;
}

/* Stepper */
.fed-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
}
.fws-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: all 0.2s ease;
}
.fws-item.active { opacity: 1; }
.fws-item.completed { opacity: 0.85; }
.fws-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #94a3b8;
}
.fws-item.active .fws-circle {
  background: #eab308;
  border-color: #facc15;
  color: #020617;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}
.fws-item.completed .fws-circle {
  background: #16a34a;
  border-color: #22c55e;
  color: #ffffff;
}
.fws-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: #cbd5e1;
}

/* Body & Steps */
.fed-wizard-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.fws-step-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fed-wizard-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fed-wizard-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.fed-wizard-input {
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
  user-select: text !important;
  pointer-events: auto !important;
}
.fed-wizard-input:focus { border-color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.3); }
.fed-wizard-input.uppercase { text-transform: uppercase; }
.fws-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.4;
}

/* Logo Grid */
.fed-wizard-logo-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(2, 6, 23, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.fed-wizard-logo-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #1e293b;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  object-fit: contain;
  transition: all 0.15s ease;
}
.fed-wizard-logo-option:hover { border-color: rgba(251, 191, 36, 0.5); }
.fed-wizard-logo-option.selected {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.15);
}

/* Form Grid & Input Action */
.fws-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.fws-input-action-row {
  display: flex;
  gap: 6px;
}
.fws-input-action-row .fed-wizard-input { flex: 1; }
.fws-rand-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  padding: 0 14px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.fws-rand-btn:hover { background: rgba(251, 191, 36, 0.2); border-color: #fbbf24; }

/* Info Grid & Rule Box */
.fws-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}
.fws-rule-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.fws-rule-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}
.fws-rule-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  color: #cbd5e1;
}
.fws-rule-desc strong { color: #f8fafc; }

/* Step 3 Summary */
.fws-summary-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fws-sum-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fws-sum-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #1e293b;
  border: 2px solid #fbbf24;
  padding: 6px;
  object-fit: contain;
}
.fws-sum-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fws-sum-name {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}
.fws-sum-desc {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}
.fws-sum-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(2, 6, 23, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
}
.fws-sd-item {
  display: flex;
  justify-content: space-between;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #94a3b8;
}
.fws-sd-item strong { color: #f8fafc; }
.fed-wizard-cost {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #facc15;
}
.fed-wizard-cost-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.fws-cost-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Footer Nav */
.fed-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 12px;
}
.fws-nav-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}
.fws-nav-btn.prev {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}
.fws-nav-btn.prev:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.fws-nav-btn.next {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
}
.fws-nav-btn.next:hover { background: #0284c7; }
.fws-nav-btn.submit {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1.5px solid #fbbf24;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.fws-nav-btn.submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.6); }

/* ── Sub-Nav Tabs ── */
.fed-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  flex-wrap: wrap;
}
.fed-nav-btn {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.fed-nav-btn:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.fed-nav-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 3px 14px rgba(217, 119, 6, 0.5);
}

/* ── Subviews & Cards ── */
.fed-subview { width: 100%; }
.fed-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.fed-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fed-card {
  background: #0b1329;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030712;
  padding: 13px 20px;
  border-bottom: 1.5px solid rgba(234, 179, 8, 0.4);
}
.fch-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
}
.fch-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
}
.fch-badge strong { color: #facc15; }
.fic-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fic-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3.5px solid #fbbf24;
}

/* KPI Boxes */
.fed-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fed-kpi-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fkb-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.fkb-meta { display: flex; flex-direction: column; gap: 2px; }
.fkb-val { font-size: 17px; font-weight: 900; color: #facc15; font-family: 'Rajdhani', sans-serif; }
.fkb-lbl { font-size: 11px; font-weight: 700; color: #94a3b8; }

/* Stat rows */
.fic-stats { display: flex; flex-direction: column; gap: 10px; }
.fic-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.fic-stat-row strong { color: #f8fafc; }

/* Action Area (Leave / Disband) */
.fed-action-area {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.fed-danger-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fed-danger-btn:hover { background: #dc2626; color: #ffffff; border-color: #dc2626; }
.fed-leave-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.fed-leave-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}
.fed-leave-btn-danger {
  background: rgba(220, 38, 38, 0.25);
  border-color: #dc2626;
  color: #fecaca;
}

/* ── Members Grid ── */
.fed-members-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  padding: 20px;
}
.fed-member-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}
.fed-member-card.is-user {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}
.fed-member-card:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.fmc-top { display: flex; align-items: center; justify-content: space-between; }
.fmc-identity { display: flex; align-items: center; gap: 12px; }
.fmc-avatar-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #1e293b;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.fmc-avatar-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fmc-avatar-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.fmc-names { display: flex; flex-direction: column; gap: 2px; }
.fmc-name-row { display: flex; align-items: center; gap: 6px; }
.fmc-name { font-size: 16px; font-weight: 900; color: #ffffff; font-family: 'Rajdhani', sans-serif; }
.fmc-role-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
}
.fmc-role-badge.leader { background: rgba(234, 179, 8, 0.25); color: #facc15; border: 1px solid #eab308; }
.fmc-role-badge.coleader { background: rgba(56, 189, 248, 0.25); color: #38bdf8; border: 1px solid #0284c7; }
.fmc-role-badge.member { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.fmc-you-badge {
  font-size: 10px; font-weight: 900; background: #0284c7; color: #ffffff; padding: 1px 6px; border-radius: 4px;
}
.fmc-club { font-size: 12.5px; color: #94a3b8; font-weight: 700; }
.fmc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(2, 6, 23, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.fmc-stat-item { display: flex; flex-direction: column; gap: 1px; }
.fmc-stat-lbl { font-size: 10px; font-weight: 800; color: #94a3b8; }
.fmc-stat-val { font-size: 15px; font-weight: 900; color: #f8fafc; font-family: 'Rajdhani', sans-serif; }
.fmc-stat-val.ovr { color: #38bdf8; }
.fmc-stat-val.fp { color: #facc15; }
.fmc-kick-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.15s ease;
}
.fmc-kick-btn:hover { background: #dc2626; color: #ffffff; }

/* ── Tournament ── */
.fed-tournament-container { display: flex; flex-direction: column; gap: 18px; }
.fed-tournament-empty {
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
}
.fed-tournament-empty-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}
.fed-tournament-empty-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}
.ft-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #030712 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ft-tag { font-size: 11.5px; font-weight: 800; color: #c084fc; letter-spacing: 0.8px; text-transform: uppercase; font-family: 'Rajdhani', sans-serif; }
.ft-title { margin: 2px 0 4px; font-family: 'Chakra Petch', sans-serif; font-size: 22px; font-weight: 900; color: #ffffff; }
.ft-desc { margin: 0; font-size: 13.5px; color: #cbd5e1; }
.ft-score-board {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #020617;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.ft-team-side { display: flex; align-items: center; gap: 10px; }
.fts-name { font-size: 14px; font-weight: 900; color: #f8fafc; font-family: 'Rajdhani', sans-serif; }
.fts-score { font-size: 30px; font-weight: 900; color: #fbbf24; font-family: 'Chakra Petch', sans-serif; }
.ft-vs-divider { font-size: 13px; font-weight: 900; color: #64748b; }
.ft-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-sec-title { font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: 900; color: #f8fafc; }
.ft-sec-meta { font-size: 12.5px; font-weight: 800; color: #94a3b8; font-family: 'Rajdhani', sans-serif; }
.fed-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 16px;
}
.fed-reward-claim {
  display: flex;
  justify-content: center;
  padding: 12px;
}
.fed-reward-claim-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: 1.5px solid #22c55e;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}
.fed-reward-claim-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(22, 163, 74, 0.6); }

/* ── Chat (WhatsApp Tarzı Baloncuk Tasarımı) ── */
.fed-chat-container {
  display: flex;
  flex-direction: column;
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  height: 520px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.fed-chat-messages {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 20px 20px;
}
.fed-chat-empty {
  text-align: center;
  color: #64748b;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 60px 20px;
}
.fed-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: fadeIn 0.15s ease;
}
.fed-chat-msg.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}
.fed-chat-msg.incoming {
  align-self: flex-start;
  align-items: flex-start;
}
.fed-chat-msg.system {
  align-self: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90%;
}
.fcm-sys-text { font-size: 12px; font-weight: 800; color: #cbd5e1; font-family: 'Rajdhani', sans-serif; }
.fed-chat-msg .fcm-bubble {
  padding: 8px 12px 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  word-break: break-word;
}
.fed-chat-msg.incoming .fcm-bubble {
  background: #202c33;
  color: #e9edef;
  border-radius: 10px 10px 10px 2px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.fed-chat-msg.outgoing .fcm-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 10px 10px 2px 10px;
  border: 1px solid rgba(37, 211, 102, 0.22);
}
.fed-chat-msg .fcm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  margin-bottom: 2px;
}
.fed-chat-msg .fcm-sender {
  color: #53bdeb;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.fed-chat-msg .fcm-role {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
}
.fed-chat-msg .fcm-role.leader {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.5);
}
.fed-chat-msg .fcm-role.co_leader {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.fed-chat-msg .fcm-text {
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color: #e9edef;
}
.fed-chat-msg .fcm-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  align-self: flex-end;
}
.fed-chat-msg .fcm-time {
  font-size: 10.5px;
  color: rgba(233, 237, 239, 0.6);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}
.fed-chat-msg .fcm-check {
  font-size: 11px;
  color: #53bdeb;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.fed-chat-input-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: #030712; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fed-chat-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 11px 16px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
  user-select: text !important;
  pointer-events: auto !important;
}
.fed-chat-input:focus { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
.fed-chat-send-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8; color: #ffffff;
  padding: 11px 22px; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 900;
  cursor: pointer; transition: all 0.15s ease;
}
.fed-chat-send-btn:hover { background: #0284c7; transform: scale(1.03); }

/* ── Leaderboard ── */
.fed-leaderboard-container { display: flex; flex-direction: column; gap: 20px; }
.fl-divisions-bar { display: flex; align-items: center; gap: 10px; overflow-x: auto; }
.fl-div-card {
  padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 800;
  font-family: 'Rajdhani', sans-serif; background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12); color: #94a3b8; white-space: nowrap;
}
.fl-div-card.gold.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #fbbf24; color: #ffffff; box-shadow: 0 3px 12px rgba(217, 119, 6, 0.45);
}
.fed-table-wrapper { overflow-x: auto; width: 100%; }
.fed-rankings-table {
  width: 100%; border-collapse: collapse; text-align: center;
  background: #ffffff; color: #0f172a;
}
.fed-rankings-table th {
  background: #0f172a; color: #f8fafc; padding: 12px 10px;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 900;
  letter-spacing: 0.6px; text-transform: uppercase;
}
.fed-rankings-table td {
  background: #ffffff; padding: 10px 8px; border-bottom: 1px solid #e2e8f0;
  font-family: 'Rajdhani', sans-serif; font-size: 14.5px; font-weight: 700; color: #1e293b;
}
.fed-rankings-table tr:nth-child(even) td { background: #f8fafc; }
.fed-rankings-table tr.user-fed-row td {
  background: #fefce8 !important; color: #854d0e !important; font-weight: 900 !important;
  border-top: 2px solid #eab308; border-bottom: 2px solid #eab308;
}
.col-fed-name {
  display: flex; align-items: center; gap: 8px;
  text-align: left; padding-left: 14px !important;
}
.cfn-text { font-weight: 900; color: #0f172a; }
.user-fed-row .cfn-text { color: #854d0e; }
.cfn-you-tag {
  font-size: 10px; font-weight: 900; background: #eab308;
  color: #000000; padding: 1px 6px; border-radius: 4px;
}
.col-fp { color: #d97706 !important; font-weight: 900 !important; }
.col-fed-status.promote { color: #16a34a !important; font-weight: 900; }
.col-fed-status.safe { color: #0284c7 !important; font-weight: 800; }
.col-fed-status.relegate { color: #dc2626 !important; font-weight: 800; }

/* ── Responsive ── */
@container game (max-width: 900px) {
  .fed-overview-grid { grid-template-columns: 1fr; }
  .fed-matches-grid { grid-template-columns: 1fr; }
  .fed-wizard-logo-grid { grid-template-columns: repeat(5, 1fr); }
  .ft-banner { flex-direction: column; align-items: flex-start; }
  .fed-no-fed-header { flex-direction: column; align-items: flex-start; }
}
