:root {
  --sidebar-bg: #1a2238;
  --sidebar-active-bg: #121829;
  --sidebar-text: #6C7A91;
  --sidebar-text-active: #ffffff;
  --bg-main: #f4f7f9;
  --bg-card-frame: #edf2f6;
  --bg-card-inner: #ffffff;
  --border-frame: #dce2e8;
  --border-inner: #e1e8ed;
  --text-main: #0f1419;
  --text-muted: #536471;
  --color-blue: #1d9bf0;
  --color-blue-hover: #1a8cd8;
  --color-green: #22c55e;
  --color-green-hover: #16a34a;
  --color-red: #ef4444;
  --color-red-hover: #dc2626;
  --color-whatsapp: #25d366;
  --color-star: #f59e0b;
  --color-star-active: #ffb703;
  --radius-card: 18px;
  --radius-inner: 14px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

.panel-layout {
  display: flex;
  min-height: 100vh;
}

/* ========================================================
   SOL SABİT SIDEBAR
   ======================================================== */
.panel-sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: #9aa7b9;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 8px;
  line-height: 1;
}
.btn-sidebar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobil Kontroller Masaüstünde Varsayılan Olarak Gizli */
.mobile-top-bar,
.mobile-bottom-nav,
.sidebar-backdrop {
  display: none;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: #000000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.sidebar-title-box h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sidebar-badge {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 600;
}

.sidebar-nav {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #6C7A91;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item:hover .nav-icon,
.nav-item:hover .nav-icon i,
.nav-item:hover .nav-label {
  color: #ffffff !important;
}

.nav-item.active {
  color: #ffffff;
  background: var(--sidebar-active-bg);
  box-shadow: inset 3px 0 0 var(--color-blue);
}

.nav-item.active .nav-icon,
.nav-item.active .nav-icon i,
.nav-item.active .nav-label {
  color: #ffffff !important;
}

.nav-icon {
  font-size: 1.15rem;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6C7A91;
}

.nav-icon i {
  color: #6C7A91 !important;
}

.nav-label {
  flex: 1;
  color: #6C7A91;
}

.nav-count {
  background: rgba(108, 122, 145, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6C7A91;
}

.nav-item.active .nav-count {
  background: #e0f2fe;
  color: #0284c7;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6C7A91;
  gap: 8px;
}

.footer-count-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #6C7A91;
  background: rgba(108, 122, 145, 0.15);
  padding: 3px 8px;
  border-radius: 8px;
  font-family: monospace;
  line-height: 1;
}

.timer-sub-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.timer-box strong {
  color: #ffffff;
  font-family: monospace;
  font-size: 0.9rem;
}

/* ========================================================
   SAĞ ANA İÇERİK ALANI
   ======================================================== */
.panel-main {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 48px;
}

.content-view {
  display: flex;
  flex-direction: column;
}

/* Üst Arama & Kontrol Çubuğu */
.top-controls-bar {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 800px;
}

.search-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-frame);
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.92rem;
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.2);
}

.btn-fetch {
  height: 44px;
  padding: 0 20px;
  background-color: var(--color-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.btn-fetch:hover {
  background-color: var(--color-blue-hover);
}

.btn-refresh {
  height: 44px;
  padding: 0 16px;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-frame);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.btn-refresh:hover {
  background-color: #f1f5f9;
}

.view-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-frame);
  padding-bottom: 12px;
}

.view-header-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-update-likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f1419;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-update-likes:hover {
  background: #0f1419;
  color: #ffffff;
  border-color: #0f1419;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-update-likes:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.page-indicator-badge {
  background: #ffffff;
  border: 1px solid var(--border-frame);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* İlerleme Bildirimi */
.progress-alert {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--color-blue);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.spinner-dot {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(29, 155, 240, 0.2);
  border-top-color: var(--color-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   GÖRSELDEKİ TWEET ÇERÇEVESİ (3 SÜTUN GRID, 20 TWEET)
   ======================================================== */
.tweets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
  align-items: start;
}

@media (max-width: 768px) {
  .tweets-grid {
    grid-template-columns: 1fr;
  }
}

/* Dış Çerçeve (Gri Kutu) */
.tweet-frame-wrapper {
  background: var(--bg-card-frame);
  border: 1px solid var(--border-frame);
  border-radius: var(--radius-card);
  padding: 12px 14px 14px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.3s;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

.tweet-frame-wrapper:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* Üst Eylem Barı */
.tweet-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px 10px 6px;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  font-size: 1.18rem;
  line-height: 1;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.15);
}

/* 1 & 5: Çöp Kutusu (bi-trash) */
.action-btn.btn-trash { 
  color: var(--color-red); 
}
.action-btn.btn-trash:hover { 
  background: #fee7eb; 
  color: #be123c;
}

/* 2: WhatsApp (bi-whatsapp) */
.action-btn.btn-whatsapp { 
  color: #25D366; 
}
.action-btn.btn-whatsapp:hover { 
  background: #dcfce7; 
  color: #16a34a;
}

/* 3: Sessize Al / Engelle (bi-person-slash) */
.action-btn.btn-mute { 
  color: #e11d48; 
}
.action-btn.btn-mute:hover { 
  background: #fee2e2; 
  color: #be123c; 
}

/* 4: Yıldız (bi-star / bi-star-fill) */
.action-btn.btn-star { 
  color: #f59e0b; 
}
.action-btn.btn-star:hover { 
  background: #fef3c7; 
  color: #d97706; 
}
.action-btn.btn-star.is-starred { 
  color: #f59e0b; 
  transform: scale(1.15); 
}

/* Çöp Kutusu Kart Butonları */
.tweet-action-bar-trash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px 4px;
  width: 100%;
  box-sizing: border-box;
}

.btn-restore {
  background: #059669;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-restore:hover { background: #047857; }

.btn-kill {
  background: transparent;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-kill:hover { background: #fee7eb; }

/* Bilgi Satırı */
.tweet-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
  min-height: 24px;
}

.tweet-author-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}
.tweet-author-link:hover { color: var(--color-blue); text-decoration: underline; }

.tweet-likes-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e0245e;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-frame);
}

/* İç Beyaz Tweet Embed Kutusu */
.tweet-inner-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-inner);
  border-radius: var(--radius-inner);
  min-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.tweet-inner-card .twitter-tweet,
.tweet-inner-card iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.tweet-direct-open {
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-open-direct {
  background: transparent;
  border: none;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-open-direct:hover { text-decoration: underline; }

/* ========================================================
   SAYFALAMA (PAGINATION: 1, 2, 3...)
   ======================================================== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 36px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.page-num-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--border-frame);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.page-num-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-num-btn.active {
  background: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
  box-shadow: 0 2px 8px rgba(29, 155, 240, 0.25);
}

.page-ellipsis {
  color: #94a3b8;
  padding: 0 4px;
  font-weight: bold;
}

/* ========================================================
   AYARLAR & ÇÖP KUTUSU GÖRÜNÜMLERİ
   ======================================================== */
.section-card {
  background: #ffffff;
  border: 1px solid var(--border-frame);
  border-radius: 16px;
  padding: 24px;
  max-width: 800px;
}

.section-card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.section-card-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.add-mute-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.add-mute-form input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-frame);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.btn-add-mute {
  background: var(--color-blue);
  color: #ffffff;
  border: none;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================================
   KAYNAKLAR (SESSİZE ALINANLAR) - GÖRSELLE BİREBİR TASARIM
   ======================================================== */
.sources-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  margin-top: 16px;
}

.sources-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sources-layers-icon {
  width: 26px;
  height: 26px;
  stroke: #1e293b;
  flex-shrink: 0;
}

.sources-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.sources-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  transition: all 0.3s ease;
}

.sources-chips-container.is-expanded {
  max-height: 520px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
}

.source-item-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.source-item-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.source-item-name {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  user-select: text;
}

.btn-unmute-chip {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.btn-unmute-chip svg {
  stroke: #22c55e;
  width: 19px;
  height: 19px;
}

.btn-unmute-chip:hover svg {
  stroke: #16a34a;
}

.btn-unmute-chip:hover {
  transform: scale(1.18);
}

.btn-toggle-sources {
  background-color: #1967d2;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  display: inline-block;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-toggle-sources:hover {
  background-color: #1356b2;
}

.btn-toggle-sources:active {
  transform: translateY(1px);
}

/* Kelime Filtreleme Formu (Görsel Tasarımı) */
.word-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-word-filter {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 4px;
  font-size: 15px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-word-filter:focus {
  border-color: #1967d2;
}

.btn-add-word {
  background-color: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

.btn-add-word:hover {
  background-color: #16a34a;
}

.btn-add-word:active {
  transform: translateY(1px);
}

/* Çöp Kutusu Kontrolleri */
.trash-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-frame);
  padding-bottom: 16px;
}

.trash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.trash-search-container {
  margin-top: 0;
  width: 100%;
}

.trash-title-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-empty-trash {
  background: var(--color-red);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-empty-trash:hover { background: var(--color-red-hover); }

.empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 2px dashed var(--border-frame);
  border-radius: 16px;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ========================================================
   SEKMEYE GÖRE ARKA PLAN RENKLERİ
   ======================================================== */
/* Beğenilere Göre Sayfası Arka Planı (#FFD800) */
body.tab-likes,
body.tab-likes .panel-main {
  background-color: #FFD800 !important;
}

body.tab-likes .view-header-title {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.tab-likes .view-header-title h3 {
  color: #0f1419;
  text-shadow: none;
}

/* Favoriler Sayfası Arka Planı (#FF735E) */
body.tab-favorites,
body.tab-favorites .panel-main {
  background-color: #FF735E !important;
}

body.tab-favorites .view-header-title {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

body.tab-favorites .view-header-title h3 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   ÇEKİLEN TWEETLERDE ARAMA ÇUBUĞU
   ======================================================== */
.feed-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.feed-search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.feed-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.feed-search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 38px;
  border: 1px solid var(--border-frame);
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.feed-search-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.25);
}

.btn-clear-feed-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
}
.btn-clear-feed-search:hover {
  color: var(--color-red);
}

.feed-search-count-badge {
  background: #ffffff;
  border: 1px solid var(--border-frame);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-delete-old-feed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0 16px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.btn-delete-old-feed:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.btn-delete-old-feed:active {
  transform: translateY(0);
}

/* ========================================================
   OTOMATİK ÇEKİM SÜRESİ AYARI
   ======================================================== */
.auto-interval-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.interval-stepper-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-frame);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-interval-step {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.btn-interval-step:hover {
  background: #e2e8f0;
}

.input-interval-num {
  width: 55px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  background: transparent;
  color: var(--text-main);
}

.interval-unit-label {
  padding-right: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-save-interval {
  height: 44px;
  padding: 0 22px;
  background-color: var(--color-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-save-interval:hover {
  background-color: var(--color-blue-hover);
}

.interval-feedback-badge {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ========================================================
   RESPONSIVE TASARIM (MOBİL & TABLET UYUMLULUĞU)
   ======================================================== */

/* Tablet & Orta Ekranlar (769px - 1024px) */
@media (max-width: 1024px) {
  .panel-sidebar {
    width: 220px;
  }
  .panel-main {
    padding: 20px 24px 40px;
  }
  .tweets-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }
}

/* Akıllı Telefonlar & Mobil Ekranlar (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .panel-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  /* 1. Mobil Üst Bar (Header) */
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .btn-mobile-menu {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
  }
  .btn-mobile-menu:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-x-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
  }

  .mobile-logo-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .mobile-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-family: monospace;
    font-weight: 700;
    color: #ffffff;
  }

  /* 2. Slide-over Drawer Sidebar (Açılır Çekmece) */
  .panel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
  }

  .panel-sidebar.mobile-open {
    transform: translateX(0);
  }

  .btn-sidebar-close {
    display: flex;
  }

  /* 3. Backdrop Karartma */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1020;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* 4. Mobil Alt Gezinme Çubuğu (Bottom Navigation Bar) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--border-frame);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
    z-index: 95;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 3px;
    padding: 4px 0;
  }

  .bottom-nav-icon-box {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-item.active {
    color: var(--color-blue);
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  /* Sekmeye Göre Alt Bar Vurgusu */
  body.tab-likes .bottom-nav-item.active {
    color: #d97706;
  }
  body.tab-favorites .bottom-nav-item.active {
    color: #FF735E;
  }

  /* 5. Ana İçerik Alanı (Mobile Main) */
  .panel-main {
    padding: 16px 12px 80px 12px; /* Alttaki bar için 80px boşluk */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .top-controls-bar {
    margin-bottom: 16px;
    gap: 12px;
  }

  .view-header-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
  }

  .view-header-title h3 {
    font-size: 1.05rem;
  }

  .btn-update-likes {
    padding: 5px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 6. Çekilen Tweetlerde Arama Çubuğu & Hepsini Sil (Mobilde Yan Yana) */
  .feed-search-container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px;
    width: 100%;
  }

  .feed-search-input-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .feed-search-input {
    height: 38px;
    font-size: 0.82rem;
    padding-left: 34px;
  }

  .btn-delete-old-feed {
    flex-shrink: 0;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .feed-search-count-badge {
    display: none;
  }

  /* 7. Tweet Kartları & Grid */
  .tweets-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .tweet-frame-wrapper {
    padding: 10px 10px 12px 10px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .tweet-action-bar {
    padding: 2px 2px 8px 2px;
    justify-content: space-around;
  }

  .action-btn {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .tweet-info-row {
    padding: 0 4px 6px;
  }

  .tweet-author-link {
    font-size: 0.78rem;
  }

  .tweet-likes-badge {
    font-size: 0.75rem;
  }

  .tweet-inner-card {
    border-radius: 10px;
    overflow-x: hidden;
    max-width: 100%;
  }

  .tweet-inner-card iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 8. Ayarlar Sekmesi */
  .section-card {
    padding: 16px 12px;
  }

  .sources-wrapper {
    padding: 16px 14px;
  }

  .search-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-input {
    width: 100%;
    height: 40px;
    font-size: 0.88rem;
  }

  .btn-fetch,
  .btn-refresh {
    width: 100%;
    height: 40px;
    justify-content: center;
  }

  .auto-interval-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .interval-stepper-box {
    justify-content: space-between;
    width: 100%;
  }

  .btn-save-interval {
    width: 100%;
  }

  .word-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .input-word-filter {
    width: 100%;
    height: 40px;
  }

  .btn-add-word {
    width: 100%;
    height: 40px;
  }

  /* 9. Sayfalama */
  .pagination-container {
    padding: 16px 4px;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-num-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  /* 10. Çöp Kutusu */
  .trash-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-empty-trash {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
  }
}

/* ==========================================================================
   11. KULLANICI GİRİŞİ (LOGIN MODAL) & ŞİFRE DEĞİŞTİRME STİLLERİ
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: none !important;
}

.login-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.login-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.login-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  padding: 36px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: loginCardSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-icon-box {
  width: 58px;
  height: 58px;
  background: #e8f5fd;
  color: var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.8rem;
}

.login-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.login-field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.login-input-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.login-input-box:focus-within {
  border-color: var(--color-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.15);
}

.login-input-box i {
  color: #94a3b8;
  font-size: 1.1rem;
}

.login-input-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 11px 10px;
  font-size: 0.95rem;
  color: #0f172a;
}

.btn-eye-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

.btn-eye-toggle:hover {
  color: var(--color-blue);
}

.btn-login-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login-submit:hover {
  background: #1a8cd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 155, 240, 0.25);
}

.btn-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Şifre Değiştirme Form Stilleri */
.change-password-form {
  max-width: 480px;
}

.pwd-form-group {
  margin-bottom: 14px;
}

.pwd-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pwd-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-frame);
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  background: #ffffff;
  transition: all 0.2s;
}

.pwd-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.12);
}

.pwd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .pwd-form-row {
    grid-template-columns: 1fr;
  }
}

.pwd-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-save-pwd {
  padding: 10px 20px;
  background: var(--color-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-save-pwd:hover {
  background: #1a8cd8;
}

.btn-save-pwd:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ayarlar Sekmesi Çıkış Yap Alanı */
.settings-logout-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-frame);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-logout-info strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 3px;
}

.settings-logout-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-settings-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fef2f2;
  color: #ef4444;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-settings-logout:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

