/* ==========================================================================
   UyduSaha - Modern Dark Aerospace & Telemetry Design System
   ========================================================================== */

:root {
  /* Renk Paleti */
  --bg-deep: #070a11;
  --bg-surface: #0e1526;
  --bg-card: rgba(17, 26, 46, 0.75);
  --bg-card-hover: rgba(23, 35, 62, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(6, 182, 212, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.25);
  --primary-hover: #0891b2;
  
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.25);
  
  --amber: #d97706;
  --amber-glow: rgba(217, 119, 6, 0.15);
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  
  --crimson: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.2);

  /* Yazı Tipleri */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Gölgeler & Geçişler */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sıfırlama & Temel */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Özel Koyu Tema Scrollbar (Kaydırma Çubuğu) Stilleri
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0b1120;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #0b1120;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
  border: 2px solid #0b1120;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

::-webkit-scrollbar-corner {
  background: #0b1120;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Glassmorphism Kart Sınıfı */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Üst Menü (Header)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.brand:active {
  transform: translateY(1px);
}

.brand-icon {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.beacon-pulse {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Şasi Seçici */
.device-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select-box select {
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.select-box select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* ==========================================================================
   Ana Düzen (Layout)
   ========================================================================== */
.main-layout {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.25rem 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   Kontrol Masası (Control Deck)
   ========================================================================== */
.control-deck {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buton Tasarımları */
button {
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #070a11;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .btn-text-wrap,
.btn-accent .btn-text-wrap,
.btn-outline .btn-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-primary small,
.btn-accent small,
.btn-outline small {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 500;
}

.btn-accent {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
}

/* Saha Can Kurtaran Filtreleri */
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}

.toggle-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 0.42rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.toggle-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
}

.toggle-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.2s ease;
}

.toggle-pill .pill-status-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

/* AKTİF / SEÇİLİ DURUM - GÖZE ÇARPAN PARLAK YEŞİL IŞIMA */
.toggle-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(5, 150, 105, 0.5));
  color: #ffffff;
  border: 1.5px solid #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.toggle-pill.active .pill-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 4px #ffffff;
  transform: scale(1.25);
}

.toggle-pill.active .pill-status-tag {
  background: #10b981;
  color: #022c22;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* SADECE HD / 4K AKTİFKEN ELEKTRİK MAVİSİ/CYAN IŞIMA */
.toggle-pill.hd-filter.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(2, 132, 199, 0.55));
  color: #ffffff;
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-pill.hd-filter.active .pill-dot {
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 4px #ffffff;
}

.toggle-pill.hd-filter.active .pill-status-tag {
  background: #06b6d4;
  color: #042f2e;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
}

/* KÖY PAKETİ AKTİFKEN ALTIN / AMBER IŞIMA */
.toggle-pill.village-filter.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.52));
  color: #ffffff;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.toggle-pill.village-filter.active .pill-dot {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24, 0 0 4px #ffffff;
}

.toggle-pill.village-filter.active .pill-status-tag {
  background: #f59e0b;
  color: #451a03;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* ŞİFRELİ KANALLAR FİLTRESİ AKTİFKEN PARLAK KIRMIZI IŞIMA */
.toggle-pill.scrambled-filter.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.38), rgba(185, 28, 28, 0.58));
  color: #ffffff;
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-pill.scrambled-filter.active .pill-dot {
  background: #f87171;
  box-shadow: 0 0 12px #f87171, 0 0 4px #ffffff;
}

.toggle-pill.scrambled-filter.active .pill-status-tag {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* RADYO FİLTRESİ AKTİFKEN PARLAK MOR / İNDİGO IŞIMA */
.toggle-pill.radio-filter.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.38), rgba(126, 34, 206, 0.58));
  color: #ffffff;
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-pill.radio-filter.active .pill-dot {
  background: #c084fc;
  box-shadow: 0 0 12px #c084fc, 0 0 4px #ffffff;
}

.toggle-pill.radio-filter.active .pill-status-tag {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.btn-action-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-action-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
}

.btn-action-pill.highlight {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-action-pill.highlight:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px var(--amber-glow);
}

/* ==========================================================================
   TV Kumandası Favori Grupları (FAV 1, 2, 3, 4 / A, B, C, D)
   ========================================================================== */
.fav-groups-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  flex-wrap: wrap;
}

.fav-cluster-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #d97706;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.fav-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.fav-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  user-select: none;
}

.fav-pill-btn .fav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.fav-pill-btn:hover {
  background: rgba(180, 83, 9, 0.15);
  color: #d97706;
  border-color: rgba(180, 83, 9, 0.4);
}

.fav-pill-btn:hover .fav-num {
  background: #b45309;
  color: #fef3c7;
}

.fav-pill-btn.active {
  background: rgba(146, 64, 14, 0.45);
  border-color: #b45309;
  color: #fde68a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fav-pill-btn.active .fav-num {
  background: #b45309;
  color: #fef3c7;
}

.fav-clear-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.25rem 0.55rem;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-top35-btn {
  font-size: 0.72rem !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: 12px !important;
  margin-left: 0.35rem !important;
  background: rgba(180, 83, 9, 0.2) !important;
  border-color: rgba(180, 83, 9, 0.45) !important;
  color: #fde68a !important;
}

.fav-top35-btn:hover {
  background: rgba(180, 83, 9, 0.35) !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
}

.fav-clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.fav-group-tag {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* İstatistik Şeridi */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-item.text-muted .stat-value {
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

/* ==========================================================================
   Tablo & Arama (Table & Search)
   ========================================================================== */
.table-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.01);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 0.9rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  background: rgba(0, 0, 0, 0.5);
}

.btn-clear {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Kategori Hapları (Pills) */
.category-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.cat-pill.active {
  background: var(--primary);
  color: #070a11;
  font-weight: 700;
  border-color: var(--primary);
}

/* Tablo Yapısı ve Koyu Tema Kaydırma Çubuğu */
.table-scroll-wrapper {
  max-height: 620px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0b1329;
}

.table-scroll-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
  background: #0b1329;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #2d3b55;
  border-radius: 6px;
  border: 2px solid #0b1329;
  transition: background 0.2s ease;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:active {
  background: #64748b;
}

.table-scroll-wrapper::-webkit-scrollbar-corner {
  background: #0b1329;
}

.channel-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.channel-table thead {
  position: sticky;
  top: 0;
  background: #0d1424;
  z-index: 10;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.channel-table thead tr {
  height: 38px !important;
  max-height: 38px !important;
}

.channel-table th {
  padding: 0.4rem 0.35rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap !important;
  vertical-align: middle !important;
  height: 38px !important;
  max-height: 38px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.channel-table td {
  padding: 0.45rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.channel-table tr:hover {
  background: var(--bg-card-hover);
}

.channel-table tr.hidden-channel {
  opacity: 0.45;
  background: rgba(239, 68, 68, 0.03);
}

/* Tut ve Taşı (Drag & Drop) Satır Stilleri */
.channel-row {
  transition: background 0.15s ease, opacity 0.15s ease;
}

.channel-row.dragging {
  opacity: 0.35;
  background: rgba(6, 182, 212, 0.15) !important;
  outline: 2px dashed #06b6d4;
}

.channel-row.drop-target-above {
  border-top: 3px solid #06b6d4 !important;
  box-shadow: inset 0 3px 10px rgba(6, 182, 212, 0.45);
}

.channel-row.drop-target-below {
  border-bottom: 3px solid #06b6d4 !important;
  box-shadow: inset 0 -3px 10px rgba(6, 182, 212, 0.45);
}

/* Sürükleme Tutamacı (Drag Handle) */
.drag-handle-cell {
  padding: 0.4rem 0.2rem !important;
}

.drag-handle {
  cursor: grab;
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.drag-handle:hover {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.15);
  transform: scale(1.25);
}

.drag-handle:active {
  cursor: grabbing;
}

/* LCN Giriş Kutusu */
.lcn-input {
  width: 54px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0.25rem 0.2rem;
  transition: var(--transition);
}

.lcn-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  background: #000000;
}

/* Kanal Rozetleri (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap !important;
}

.badge-4k {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-hd {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-sd {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-radio {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-scrambled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.65rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.65rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Şifre Sütunu Stilleri (Geniş & Tek Satır) */
.th-scramble-col {
  width: 115px !important;
  min-width: 115px !important;
  text-align: center;
  white-space: nowrap !important;
}

.scramble-cell {
  width: 115px !important;
  min-width: 115px !important;
  text-align: center;
  white-space: nowrap !important;
  padding: 0.45rem 0.35rem !important;
}

/* Kanal Bilgi Elemanları */
.channel-name-cell {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-name-cell .channel-title {
  letter-spacing: -0.01em;
}

.freq-cell {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Kategori Sütunu & Etiketi (Tek Satır & Geniş - Yerel / Tarım vb. kırılmaz) */
.th-cat-col {
  width: 135px !important;
  min-width: 135px !important;
  white-space: nowrap !important;
}

.cat-cell {
  width: 135px !important;
  min-width: 135px !important;
  white-space: nowrap !important;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* İşlem Sütunu ve Butonları (Kanal Adının Solunda) */
.th-action-col {
  width: 90px !important;
  min-width: 90px !important;
  padding: 0.4rem 0.2rem !important;
  text-align: center;
  white-space: nowrap !important;
}

.row-actions-cell {
  padding: 0.35rem 0.2rem !important;
  width: 90px;
  min-width: 90px;
  text-align: center;
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 25px;
  height: 25px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: var(--border-active);
}

.btn-icon-sm.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
}

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

.text-right {
  text-align: right;
}

/* Boş Durum */
.empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Saha Kılavuzu Modalı (Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-color: rgba(6, 182, 212, 0.3);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title-wrap h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-title-wrap p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-close-modal {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  padding: 0 0.5rem;
  line-height: 1;
}

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

.modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  padding: 0 1rem;
}

.modal-tab {
  background: transparent;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}

.modal-tab:hover {
  color: var(--text-main);
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 55vh;
}

.guide-content {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.guide-content.active {
  display: flex;
}

.guide-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.step-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #070a11;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
}

.guide-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.guide-step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.guide-step code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  color: #38bdf8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Bildirim (Toast) - Üst Ortada, Hedef Cihaz Formatı Altında
   ========================================================================== */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  background: rgba(14, 21, 38, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(6, 182, 212, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideDownToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 580px;
  text-align: center;
  pointer-events: auto;
}

@keyframes slideDownToast {
  from { transform: translate(-50%, -24px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   Profil & Özel Liste Yönetimi Çubuğu
   ========================================================================== */
.profile-management-bar {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-select-wrapper {
  position: relative;
}

.profile-dropdown {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.8rem 0.45rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  max-width: 320px;
}

.profile-dropdown:hover, .profile-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-profile-load {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.btn-profile-load:hover {
  background: rgba(6, 182, 212, 0.28);
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-profile-save {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.btn-profile-save:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.35));
  box-shadow: 0 0 14px var(--emerald-glow);
}

.btn-profile-delete {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-profile-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* Undo (Geri Al) Butonu */
.btn-undo {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-undo:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 14px var(--amber-glow);
  transform: translateY(-1px);
}

.btn-undo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.undo-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--text-muted);
}

/* Tüm Kanallar Butonu */
.toggle-pill.all-channels-pill {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
}

.toggle-pill.all-channels-pill:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.6);
}

.toggle-pill.all-channels-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.25));
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.toggle-pill.all-channels-pill.active .pill-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* HD Filtresi ve SD Temizleme Butonları */
.toggle-pill.hd-filter {
  border-color: rgba(6, 182, 212, 0.3);
}

.toggle-pill.hd-filter.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.toggle-pill.hd-filter.active .pill-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.btn-action-pill.warning {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-action-pill.warning:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 12px var(--crimson-glow);
}

/* Liste Kaydetme Modalı */
.modal-small {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.preset-suggestions {
  margin-top: 0.5rem;
}

.preset-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-suggestion {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.chip-suggestion:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border-color: rgba(6, 182, 212, 0.4);
}

/* Toast İçinde Inline Undo Butonu */
.toast-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toast-undo-btn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.toast-undo-btn:hover {
  background: rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   4 Ayrı FAVORİLER Sütunu & Gelişmiş Seçim Kutucukları (A, B, C, D)
   ========================================================================== */
.th-fav-col {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 40px !important;
  padding: 0.4rem 0.15rem !important;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #d97706;
  background: rgba(180, 83, 9, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid #b45309;
  white-space: nowrap !important;
  height: 38px !important;
  max-height: 38px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.th-rank-col {
  width: 52px !important;
  min-width: 52px !important;
  padding: 0.4rem 0.2rem !important;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap !important;
  height: 38px !important;
  max-height: 38px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.rank-cell {
  padding: 0.4rem 0.15rem !important;
  width: 52px !important;
  min-width: 52px !important;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  user-select: none;
  transition: all 0.2s ease;
}

.rank-badge.rank-fav-active {
  background: rgba(180, 83, 9, 0.2);
  border-color: rgba(180, 83, 9, 0.5);
  color: #fde68a;
  box-shadow: 0 0 6px rgba(180, 83, 9, 0.25);
}

.fav-order-btn {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  user-select: none;
}

.fav-order-btn:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

/* Tablo Satırlarındaki Favori Hücreleri & Kutucukları */
.fav-cell {
  padding: 0.4rem 0.2rem !important;
  width: 44px;
  min-width: 44px;
  max-width: 52px;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.cell-fav-active {
  background: rgba(180, 83, 9, 0.08);
}

.fav-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
  position: relative;
}

.fav-col-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fav-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
}

.fav-checkbox-wrap:hover .fav-indicator {
  border-color: rgba(180, 83, 9, 0.65);
  color: #fde68a;
  background: rgba(180, 83, 9, 0.14);
  transform: scale(1.06);
}

/* Kutucuk Seçilince (Mat ve Gözü Yormayan Amber Vurgu) */
.fav-indicator.active,
.fav-col-cb:checked + .fav-indicator {
  background: #92400e !important;
  border-color: #b45309 !important;
  color: #fef3c7 !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  transform: scale(1.04);
}

.fav-indicator.active::after,
.fav-col-cb:checked + .fav-indicator::after {
  display: none !important;
}

/* Eski tekil buton uyumluluğu */
.btn-fav-star {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #475569;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.btn-fav-star:hover {
  color: #facc15;
  transform: scale(1.25);
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

.btn-fav-star.active {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.75), 0 0 3px #ffffff;
  transform: scale(1.1);
}

/* FAVORİLER FİLTRESİ AKTİFKEN ALTIN PARILTI */
.toggle-pill.fav-filter.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.38), rgba(202, 138, 4, 0.58));
  color: #ffffff;
  border: 1.5px solid #eab308;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.toggle-pill.fav-filter.active .pill-dot {
  background: #fde047;
  box-shadow: 0 0 12px #fde047, 0 0 4px #ffffff;
}

.toggle-pill.fav-filter.active .pill-status-tag {
  background: #eab308;
  color: #422006;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}

/* Checkbox'lar */
.channel-select-cb, #checkSelectAll {
  width: 17px;
  height: 17px;
  accent-color: #06b6d4;
  cursor: pointer;
  vertical-align: middle;
}

/* Seçim & Toplu Eylem Çubuğu */
.selection-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  animation: fadeInSlide 0.2s ease-out;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.selection-badge {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.selection-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-amber {
  background: rgba(180, 83, 9, 0.25);
  color: #fde68a;
  border: 1px solid rgba(180, 83, 9, 0.45);
}

.btn-amber:hover {
  background: rgba(180, 83, 9, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
}

.highlight-amber .stat-value {
  color: #d97706 !important;
  text-shadow: none !important;
}

/* Favoriler Kategori Butonu */
.fav-cat-pill {
  color: var(--text-muted) !important;
  border-color: var(--border-subtle) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: all 0.2s ease;
}

.fav-cat-pill:hover {
  color: #d97706 !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
  background: rgba(180, 83, 9, 0.08) !important;
}

.fav-cat-pill.active {
  background: rgba(180, 83, 9, 0.22) !important;
  border-color: #b45309 !important;
  color: #fde68a !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Şifreli Kategori Butonu */
.scrambled-cat-pill {
  color: var(--text-muted) !important;
  border-color: var(--border-subtle) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: all 0.2s ease;
}

.scrambled-cat-pill:hover {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.scrambled-cat-pill.active {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Radyo Kategori Butonu */
.radio-cat-pill {
  color: var(--text-muted) !important;
  border-color: var(--border-subtle) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: all 0.2s ease;
}

.radio-cat-pill:hover {
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: rgba(168, 85, 247, 0.08) !important;
}

.radio-cat-pill.active {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: #a855f7 !important;
  color: #c084fc !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   TKGS İndirme & Yükleme Modalı Stilleri
   ========================================================================== */
.highlight-cyan {
  color: #38bdf8 !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  background: rgba(6, 182, 212, 0.08) !important;
}

.highlight-cyan:hover {
  background: rgba(6, 182, 212, 0.2) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35) !important;
}

.tkgs-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tkgs-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all 0.2s ease;
}

.tkgs-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.4);
}

.tkgs-card-icon {
  font-size: 1.8rem;
  background: rgba(6, 182, 212, 0.15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.3);
  flex-shrink: 0;
}

.tkgs-card-info {
  flex: 1;
}

.tkgs-card-info h3 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.tkgs-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.url-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.url-input-wrap input {
  flex: 1;
}

/* ==========================================================================
   Duyarlı Tasarım (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .deck-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .primary-buttons {
    width: 100%;
  }
  
  .primary-buttons button {
    flex: 1;
  }
}
