/**
 * MCSepeti Klan Sistemi — v2.9.38
 * klanlar.php premium redesign
 */

.kl-main { padding-bottom: 60px; }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */

.kl-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 16px 0 24px;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.kl-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(239,68,68,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #130a08 0%, #0a0e13 100%);
  z-index: 0;
}

.kl-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239,68,68,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.kl-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
  padding: 38px 36px;
}

.kl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
  width: fit-content;
}

.kl-hero__title {
  font-size: clamp(26px,3.8vw,46px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-family: var(--font-display, inherit);
}

.kl-hero__grad {
  background: linear-gradient(90deg, #f87171 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kl-hero__lead {
  font-size: 15px;
  color: #94a3b8;
  margin: 0 0 22px;
  line-height: 1.65;
}

.kl-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.kl-btn--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}
.kl-btn--red:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239,68,68,0.5); }

.kl-btn--ghost {
  background: rgba(255,255,255,0.06);
  color: #e6ecf3 !important;
  border: 1px solid rgba(255,255,255,0.12);
}
.kl-btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* Hero stat kartı */
.kl-hero__stat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.kl-hero__stat { text-align: center; }

.kl-hero__stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kl-hero__stat small {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  display: block;
}

/* ════════════════════════════════════════════════════════════════
   SPONSORLU KLANLAR
   ════════════════════════════════════════════════════════════════ */

.kl-sponsored {
  margin-bottom: 28px;
}

.kl-sponsored__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.kl-sponsored__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text, #e6ecf3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kl-sponsored__badge {
  padding: 2px 10px;
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.kl-sponsored__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kl-sp-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1.5px solid rgba(245,158,11,0.5);
  background: var(--bg-card, #1a1f2e);
}

.kl-sp-card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,158,11,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.kl-sp-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 12px 3px 10px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #0a0e13;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-bottom-right-radius: 10px;
  z-index: 1;
}

.kl-sp-card__body {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 16px 18px;
  padding-top: 28px;
}

.kl-sp-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 2px solid rgba(245,158,11,0.35);
  flex-shrink: 0;
}
.kl-sp-card__logo img { width:100%; height:100%; object-fit:cover; }

.kl-sp-card__info { min-width: 0; }

.kl-sp-card__name {
  font-size: 16px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  display: block;
  margin-bottom: 5px;
  transition: color 0.15s ease;
}
.kl-sp-card__name:hover { color: #fbbf24 !important; }

.kl-sp-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.kl-sp-card__desc {
  margin: 0 0 7px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kl-sp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.kl-sp-card__meta i { font-size: 13px; }

.kl-sp-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.kl-sp-card__votes {
  text-align: right;
}
.kl-sp-card__votes strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kl-sp-card__votes small {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.kl-sp-card__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════════
   TOOLBAR
   ════════════════════════════════════════════════════════════════ */

.kl-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kl-search {
  display: flex;
  flex: 1;
  min-width: 240px;
  gap: 8px;
  align-items: center;
}

.kl-search__wrap {
  position: relative;
  flex: 1;
}

.kl-search__wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #64748b;
  pointer-events: none;
}

.kl-search__input {
  width: 100%;
  padding: 11px 36px 11px 40px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
  color: var(--text, #e6ecf3);
  font-size: 14px;
  transition: border-color 0.15s ease;
}
.kl-search__input:focus {
  outline: none;
  border-color: #ef4444;
  background: rgba(239,68,68,0.04);
}
.kl-search__input::placeholder { color: #64748b; }

.kl-search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  text-decoration: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  transition: all 0.15s ease;
}
.kl-search__clear:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

.kl-search__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.kl-search__btn:hover { transform: scale(1.05); }

.kl-sort-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
  flex-shrink: 0;
}

.kl-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.kl-sort-tab:hover { background: rgba(255,255,255,0.05); color: var(--text, #e6ecf3) !important; }
.kl-sort-tab.is-active {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1));
  color: #f87171 !important;
}
.kl-sort-tab i { font-size: 14px; }

/* ════════════════════════════════════════════════════════════════
   KATEGORİ CHİPLER
   ════════════════════════════════════════════════════════════════ */

.kl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.kl-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 999px;
  color: var(--text, #e6ecf3) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.kl-cat:hover { border-color: var(--cat-c, #ef4444); transform: translateY(-1px); }
.kl-cat.is-active {
  background: var(--cat-c, #ef4444);
  border-color: var(--cat-c, #ef4444);
  color: #fff !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat-c, #ef4444) 40%, transparent);
}

/* Filtre bar */
.kl-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.kl-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 12px;
  background: color-mix(in srgb, var(--cc, #ef4444) 15%, transparent);
  color: var(--cc, #ef4444);
  border: 1px solid color-mix(in srgb, var(--cc, #ef4444) 30%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.kl-filter-chip a { color: inherit !important; text-decoration: none !important; opacity: 0.7; display:inline-flex; }
.kl-filter-chip a:hover { opacity: 1; }

.kl-filter-count { color: #3DD68C; font-weight: 600; font-size: 12px; }

/* ════════════════════════════════════════════════════════════════
   ORTAK BADGE'LER
   ════════════════════════════════════════════════════════════════ */

.kl-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--cc, #ef4444) 18%, transparent);
  color: var(--cc, #ef4444);
  border: 1px solid color-mix(in srgb, var(--cc, #ef4444) 30%, transparent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.kl-join-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
}
.kl-join-chip--open   { color: #3DD68C; background: rgba(61,214,140,0.12); }
.kl-join-chip--closed { color: #ef4444; background: rgba(239,68,68,0.1); }
.kl-join-chip--apply  { color: #fbbf24; background: rgba(245,158,11,0.12); }

.kl-sp-badge {
  padding: 2px 9px;
  background: linear-gradient(90deg, rgba(245,158,11,0.25), rgba(245,158,11,0.1));
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.kl-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(88,101,242,0.18);
  color: #818cf8 !important;
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.kl-discord-btn:hover { background: rgba(88,101,242,0.28); color: #a5b4fc !important; }
.kl-discord-btn i { font-size: 14px; }

.kl-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}
.kl-meta-chip i { font-size: 13px; }

/* ════════════════════════════════════════════════════════════════
   KLAN LİSTE SATIRLARI
   ════════════════════════════════════════════════════════════════ */

.kl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kl-row {
  display: grid;
  grid-template-columns: 50px 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 13px;
  transition: all 0.2s ease;
}
.kl-row:hover {
  border-color: rgba(239,68,68,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.kl-row--sponsored {
  border-color: rgba(245,158,11,0.4);
  background: linear-gradient(90deg, rgba(245,158,11,0.05) 0%, var(--bg-card, #1a1f2e) 50%);
}
.kl-row--featured {
  border-color: rgba(91,159,255,0.3);
}

.kl-row__rank {
  text-align: center;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.kl-row__rank span {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.kl-row__logo {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  flex-shrink: 0;
}
.kl-row__logo img { width:100%; height:100%; object-fit:cover; }
.kl-row__logo-ph { font-size: 22px; }
.kl-row__sp-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.kl-row__content { min-width: 0; }

.kl-row__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.kl-row__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text, #e6ecf3) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.kl-row__name:hover { color: #ef4444 !important; }

.kl-row__desc {
  margin: 0 0 7px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kl-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kl-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.kl-row__votes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.kl-vote-stat { text-align: right; }
.kl-vote-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kl-vote-stat small {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}
.kl-vote-stat--total strong { font-size: 14px; color: #64748b; }

.kl-row__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════════
   OY BUTONLARI (ortak .cvb class)
   ════════════════════════════════════════════════════════════════ */

.cvb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.cvb--active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(239,68,68,0.35);
}
.cvb--active:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(239,68,68,0.5); }

.cvb--voted {
  background: rgba(61,214,140,0.15);
  color: #3DD68C !important;
  border: 1px solid rgba(61,214,140,0.3);
  cursor: default;
  font-size: 12px;
}

.cvb--login {
  background: rgba(91,159,255,0.15);
  color: #5B9FFF !important;
  border: 1px solid rgba(91,159,255,0.3);
}
.cvb--login:hover { background: rgba(91,159,255,0.22); }

.kl-detail-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #94a3b8 !important;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none !important;
  font-size: 16px;
  transition: all 0.15s ease;
}
.kl-detail-btn:hover { background: rgba(255,255,255,0.09); color: var(--text, #e6ecf3) !important; }

/* ════════════════════════════════════════════════════════════════
   PAGİNATION
   ════════════════════════════════════════════════════════════════ */

.kl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.kl-pag-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 9px;
  color: var(--text, #e6ecf3) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.kl-pag-btn:hover { border-color: rgba(239,68,68,0.3); }
.kl-pag-btn.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.kl-pag-info { font-size: 12.5px; color: #64748b; padding: 0 8px; }

/* ════════════════════════════════════════════════════════════════
   BOŞTA DURUMU
   ════════════════════════════════════════════════════════════════ */

.kl-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 16px;
}
.kl-empty__icon { font-size: 50px; margin-bottom: 14px; }
.kl-empty h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--text, #e6ecf3); }
.kl-empty p  { font-size: 14px; color: #64748b; margin: 0; }

/* ════════════════════════════════════════════════════════════════
   SPONSORLU KLAN OL CTA KUTUSU
   ════════════════════════════════════════════════════════════════ */

.kl-sponsor-cta {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,0.35);
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.03) 100%);
}

.kl-sponsor-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(245,158,11,0.18), transparent 60%);
  pointer-events: none;
}

.kl-sponsor-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  flex-wrap: wrap;
}

.kl-sponsor-cta__icon {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(245,158,11,0.4));
}

.kl-sponsor-cta__text {
  flex: 1;
  min-width: 200px;
}

.kl-sponsor-cta__text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}

.kl-sponsor-cta__text p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.55;
}

.kl-sponsor-cta__text p span {
  color: #fbbf24;
  font-weight: 600;
}

.kl-sponsor-cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.kl-sponsor-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0e13 !important;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 8px 22px rgba(245,158,11,0.35);
  white-space: nowrap;
}
.kl-sponsor-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,158,11,0.5); }

.kl-sponsor-cta__action small {
  font-size: 11px;
  color: #64748b;
}

/* ════════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════════ */

.kl-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
}
.kl-modal__bd {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}
.kl-modal__box {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: 90%;
}

.kl-modal-ok, .kl-modal-err {
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
}
.kl-modal-ok {
  background: linear-gradient(135deg, rgba(61,214,140,0.18), var(--bg-card,#1a1f2e));
  border: 1px solid rgba(61,214,140,0.4);
}
.kl-modal-err {
  background: linear-gradient(135deg, rgba(239,68,68,0.14), var(--bg-card,#1a1f2e));
  border: 1px solid rgba(239,68,68,0.35);
}
.kl-modal-ok  i { font-size: 44px; color: #3DD68C; display:block; margin-bottom:12px; }
.kl-modal-err i { font-size: 44px; color: #f87171; display:block; margin-bottom:12px; }
.kl-modal-ok  h3 { color:#3DD68C; margin:0 0 8px; font-size:18px; }
.kl-modal-err h3 { color:#f87171; margin:0 0 8px; font-size:18px; }
.kl-modal-ok  p,
.kl-modal-err p { color:var(--text,#e6ecf3); font-size:14px; margin:0 0 16px; line-height:1.55; }
.kl-modal-ok p strong { color:#fff; }
.kl-modal-btn {
  padding: 9px 22px;
  background: rgba(255,255,255,0.08);
  color: var(--text,#e6ecf3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.kl-modal-btn:hover { background: rgba(255,255,255,0.12); }

/* Spinner */
@keyframes kl-spin { to { transform: rotate(360deg); } }
.kl-spin { animation: kl-spin 0.75s linear infinite; display:inline-block; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .kl-hero__inner { grid-template-columns: 1fr; }
  .kl-hero__stat-card { flex-direction: row; justify-content: space-around; }
}

@media (max-width: 767px) {
  .kl-row { grid-template-columns: 44px 52px 1fr; }
  .kl-row__right { grid-column: 3; flex-direction: row; align-items: center; }
  .kl-row__votes { flex-direction: row; gap: 10px; }
  .kl-row__actions { flex-direction: row; }
  .kl-sp-card__body { grid-template-columns: 54px 1fr; }
  .kl-sp-card__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .kl-toolbar { flex-direction: column; align-items: stretch; }
  .kl-sort-tabs { justify-content: center; }
}

@media (max-width: 575px) {
  .kl-hero__inner { padding: 24px 18px; }
  .kl-row { grid-template-columns: 42px 1fr auto; }
  .kl-row__logo { width: 46px; height: 46px; }
  .kl-sponsor-cta__inner { flex-direction: column; text-align: center; }
  .kl-sponsor-cta__action { width: 100%; }
  .kl-sponsor-cta__btn { width: 100%; justify-content: center; }
}

/* Light tema */
[data-theme="light"] .kl-hero__bg {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(239,68,68,0.1) 0%, transparent 55%),
    linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}
[data-theme="light"] .kl-hero__title { color: #0f172a; }
[data-theme="light"] .kl-hero__lead  { color: #475569; }
[data-theme="light"] .kl-hero__stat-card { background: rgba(15,23,42,0.04); }
[data-theme="light"] .kl-row { background: #ffffff; }
[data-theme="light"] .kl-sp-card { background: #ffffff; }
[data-theme="light"] .kl-sponsor-cta { background: rgba(245,158,11,0.07); }

/* ════════════════════════════════════════════════════════════════
   KLAN DETAY SAYFASI — v2.9.42 (kl-detail-* sınıfları)
   ════════════════════════════════════════════════════════════════ */

.kl-detail-main { padding-bottom: 60px; }

/* Kapak */
.kl-cover {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card, #1a1f2e);
  margin-bottom: -72px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.kl-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.75) 100%);
}

.kl-cover__default {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dc,#ef4444) 15%, transparent), transparent);
}
.kl-cover__default span { font-size: 80px; opacity: 0.12; }

/* Başlık bloğu */
.kl-detail-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
  padding: 0 4px;
}

.kl-detail-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card, #1a1f2e);
  border: 3px solid var(--bg, #0a0e13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.kl-detail-logo img { width:100%; height:100%; object-fit:cover; }

.kl-detail-titleblock { padding-bottom: 6px; min-width: 0; }

.kl-detail-titleblock__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 7px;
}

.kl-detail-titleblock__name {
  font-size: clamp(22px,3vw,34px);
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: var(--font-display,inherit);
  line-height: 1.1;
}

.kl-detail-titleblock__desc {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Layout */
.kl-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}

.kl-detail-left,
.kl-detail-right { display: flex; flex-direction: column; gap: 14px; }

/* Kart */
.kl-detail-card {
  padding: 18px 20px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
}

.kl-detail-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 800;
  color: var(--text,#e6ecf3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kl-detail-card__title i { font-size: 16px; color: #ef4444; }

/* Uzun açıklama */
.kl-detail-desc {
  font-size: 14px;
  color: var(--text,#cbd5e1);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Son oy verenler */
.kl-voters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kl-voters-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.kl-voters-list li:last-child { border-bottom: 0; }

.kl-voters-list__name {
  font-weight: 600;
  color: var(--text,#e6ecf3);
  font-family: ui-monospace,monospace;
  font-size: 12.5px;
}

.kl-voters-list__time {
  font-size: 11.5px;
  color: #64748b;
}

/* Oy karti */
.kl-detail-vote-card {
  padding: 18px;
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 14px;
}

.kl-detail-vote-card__stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.kl-detail-vote-stat {
  text-align: center;
  padding: 10px 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.kl-detail-vote-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ef4444;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kl-detail-vote-stat small {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
}

.kl-detail-vote-stat--rank strong { color: #fbbf24; }

/* Bilgiler listesi */
.kl-detail-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kl-detail-info li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13.5px;
}
.kl-detail-info li:last-child { border-bottom: 0; }

.kl-detail-info li > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}
.kl-detail-info li > span:first-child i { font-size: 14px; color: #ef4444; }

.kl-detail-info li a { color: #5B9FFF !important; text-decoration: none !important; }

/* Geri butonu */
.kl-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted,#94a3b8) !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.kl-back-btn:hover { background: rgba(255,255,255,0.07); color: var(--text,#e6ecf3) !important; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .kl-detail-layout { grid-template-columns: 1fr; }
  .kl-detail-right { order: -1; }
  .kl-detail-vote-card__stats { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 575px) {
  .kl-cover { height: 160px; }
  .kl-detail-logo { width: 72px; height: 72px; font-size: 30px; }
  .kl-detail-titleblock__name { font-size: 22px; }
  .kl-detail-head { gap: 12px; }
}

/* Light tema */
[data-theme="light"] .kl-detail-card { background: #ffffff; }
[data-theme="light"] .kl-detail-vote-card { background: rgba(239,68,68,0.06); }
[data-theme="light"] .kl-detail-titleblock__name { color: #0f172a; }
[data-theme="light"] .kl-detail-titleblock__desc { color: #475569; }

/* ════ v2.9.45 BUTON DÜZELTMESİ ════ */

.kl-row__actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
  flex-shrink: 0;
  min-width: 128px;
}

.kl-row__actions .cvb,
.kl-row__actions .kl-detail-btn {
  width: 100% !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.kl-sp-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 128px;
}

.kl-sp-card__actions .cvb,
.kl-sp-card__actions .kl-detail-btn {
  width: 100% !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
