/* ==========================================================================
   DorukkDev AI — Minimalist & Rounded Chat Interface (Sade & Yuvarlak)
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  /* Dark Theme Palette (Default) — Ultra-Clean */
  --bg-base: #0b0d13;
  --bg-surface: #141824;
  --bg-surface-hover: #1c2232;
  --bg-input: #131724;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: #3b82f6;

  --text-primary: #f3f4f6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.12);

  --user-bubble-bg: #2563eb;
  --user-bubble-text: #ffffff;
  --bot-bubble-bg: #141824;
  --bot-bubble-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-dock: 0 12px 35px rgba(0, 0, 0, 0.45);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-dock: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #0f172a;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);

  --user-bubble-bg: #2563eb;
  --user-bubble-text: #ffffff;
  --bot-bubble-bg: #ffffff;
  --bot-bubble-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-dock: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* hidden özniteliği her zaman display kurallarını yener */
[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* App Shell */
.chat-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow: hidden;
}

/* Top Bar — Discreet & Minimal */
.app-header {
  height: calc(58px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-base);
  z-index: 10;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  user-select: none;
  /* Dar ekranda eylem butonları için yer aç: marka kırpmayı üstlenir */
  min-width: 0;
  overflow: hidden;
  flex-shrink: 1;
  white-space: nowrap;
}

.header-brand .brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modern Header Model Butonu */
.header-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  user-select: none;
}

.header-model-btn[hidden] {
  display: none !important;
}

.header-model-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.header-model-icon {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-model-name {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header-model-tag {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  letter-spacing: 0.02em;
}

.header-model-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-model-btn.active .header-model-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.quota-pill {
  min-width: 0;
}

.quota-pill .quota-bar {
  min-width: 20px;
}

.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   INPUT DOCK WRAPPER (Modern & Ferah Çok Katmanlı Tasarım)
   ========================================================================== */
.input-dock-wrapper {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Hero — barın üstünde, boş durumda görünür */
.hero-center {
  text-align: center;
  user-select: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin 0.5s ease;
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.input-dock {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 0.85rem 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.input-dock:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Üst Satır: Geniş, Ferah Textarea */
.dock-input-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

textarea#promptInput {
  width: 100%;
  min-height: 44px;
  max-height: 220px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.55;
  resize: none;
  outline: none;
  padding: 4px 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  word-break: break-word;
}

textarea#promptInput::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Alt Satır: Araçlar, Model Seçici ve Gönder */
.dock-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-left-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dock-right-tools {
  display: flex;
  align-items: center;
}

.tool-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  height: 32px;
  padding: 0 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn i {
  font-size: 0.85rem;
}

.tool-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.tool-btn.active, .tool-btn.web-search-toggle.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* Model Seçici Kapsayıcı */
.model-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.model-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0 0.2rem 0 0;
  appearance: none;
  -webkit-appearance: none;
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.45);
}

.send-btn:active {
  transform: scale(0.95);
}

.input-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  user-select: none;
  transition: opacity 0.35s ease;
}

.input-hint span {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   EMPTY STATE (Bar + Başlık Ekranın Tam Merkezinde)
   ========================================================================== */
.chat-app.empty-state .app-header {
  border-bottom-color: transparent;
}

.chat-app.empty-state .hero-center {
  max-height: 120px;
  opacity: 1;
  pointer-events: auto;
  margin-bottom: 1.75rem;
  transform: translateY(0) scale(1);
}

.chat-app.empty-state .input-dock-wrapper {
  /* Bar alta sabit; ortalamak için yukarı kaydırılır (header payı dahil) */
  transform: translateY(calc(-50vh + 165px));
  transform: translateY(calc(-50dvh + 165px));
}

.chat-app.empty-state .chat-viewport {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   ACTIVE CHAT VIEWPORT (Mesaj Gönderilince Bar Aşağı Kayar, Mesajlar Açılır)
   ========================================================================== */
.chat-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
  opacity: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.5s ease 0.15s;
}

.chat-viewport::-webkit-scrollbar {
  width: 5px;
}
.chat-viewport::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

/* Messages Stream */
.messages-container {
  max-width: 800px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message-row {
  display: flex;
  width: 100%;
  animation: messageSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-row {
  justify-content: flex-end;
}

/* Sade & Yuvarlak Kullanıcı Mesaj Baloncuğu */
.user-bubble {
  background: var(--user-bubble-bg);
  color: var(--user-bubble-text);
  padding: 0.75rem 1.35rem;
  border-radius: 20px;
  max-width: 78%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.user-bubble .message-content {
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.user-bubble .message-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

/* Sade & Yuvarlak Bot Mesaj Baloncuğu */
.bot-row {
  align-items: flex-start;
  gap: 0.75rem;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.bot-content-wrapper {
  flex: 1;
  max-width: calc(100% - 40px);
  min-width: 0;
}

.bot-bubble {
  background: var(--bot-bubble-bg);
  border: 1px solid var(--bot-bubble-border);
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.bot-bubble .message-content {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: break-word;
  min-width: 0;
}

.bot-bubble p {
  margin-bottom: 0.75rem;
}
.bot-bubble p:last-child {
  margin-bottom: 0;
}

/* Markdown Tabloları */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0.85rem 0 1rem 0;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--bg-surface-hover, rgba(255, 255, 255, 0.02));
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.markdown-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  white-space: nowrap;
}

.markdown-table td {
  padding: 0.6rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary);
  line-height: 1.45;
}

.markdown-table tr:last-child td {
  border-bottom: none;
}

.markdown-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Markdown Listeleri (Sıralı / Sırasız) */
.bot-bubble .markdown-list {
  margin: 0.5rem 0 0.85rem 1.4rem;
  padding: 0;
}
.bot-bubble ul.markdown-list {
  list-style-type: disc;
}
.bot-bubble ol.markdown-list {
  list-style-type: decimal;
}
.bot-bubble .markdown-list li {
  margin-bottom: 0.35rem;
  line-height: 1.55;
  padding-left: 0.25rem;
}
.bot-bubble .markdown-list li::marker {
  color: var(--accent-primary, #6366f1);
}

.bot-bubble code:not(pre code) {
  font-family: var(--font-code);
  font-size: 0.85rem;
  background: var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Code Block — Rounded & Dark */
.code-block-wrapper {
  background: #090c14;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  overflow: hidden auto;
  min-width: 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #111624;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-code-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.preview-code-btn:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.copy-code-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--accent-primary);
}

pre {
  padding: 1.1rem;
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.c-keyword { color: #f43f5e; font-weight: 600; }
.c-func { color: #38bdf8; font-weight: 500; }
.c-string { color: #34d399; }
.c-comment { color: #64748b; font-style: italic; }
.c-number { color: #fbbf24; }

/* Typing indicator */
.bot-typing {
  color: var(--text-muted);
  font-style: italic;
}

/* Toast Notification (header altı sağ — dock'a karışmaz) */
.toast-container {
  position: fixed;
  top: 4.75rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .app-header {
    height: calc(58px + max(env(safe-area-inset-top), 24px));
    padding-top: max(env(safe-area-inset-top), 24px);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.35rem;
    gap: 0.4rem;
  }

  /* Header'da dar ekranda sıkışıklık yerine ikinci satıra geçiş yok —
     marka adı kısaltılır, eylem butonları dokunma hedefi boyutuna getirilir */
  .header-brand {
    gap: 0.4rem;
    font-size: 0.9rem;
  }

  .brand-dot {
    width: 8px;
    height: 8px;
  }

  .header-actions {
    gap: 0.15rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  /* Kullanıcı + kota yalnızca özet: avatar + kademe rozeti yeterli */
  .user-chip {
    padding: 0.3rem;
    gap: 0;
    padding-right: 0.55rem;
  }

  .user-chip-name {
    display: none;
  }

  .tier-badge {
    font-size: 0.55rem;
    padding: 1.5px 6px;
  }

  .quota-pill {
    /* Sadece ikon + mini bar göster; metin popover'da zaten var */
    padding: 0.3rem 0.6rem;
    gap: 0.35rem;
  }

  .quota-pill #quotaText {
    display: none;
  }

  .quota-bar {
    width: 34px;
  }

  /* ==========================================================================
     MOBİL BOŞ DURUM & INPUT DOCK
     ========================================================================== */
  .hero-center {
    margin-bottom: 0;
  }

  .chat-app.empty-state .hero-center {
    margin-bottom: 1.1rem;
  }

  /* dvh destekli tarayıcılarda adres çubuğu değişince merkezlème sabit kalır */
  .chat-app.empty-state .input-dock-wrapper {
    transform: translateY(calc(-50vh + 165px));
    transform: translateY(calc(-50dvh + 165px));
  }

  .input-dock-wrapper {
    padding: 0.35rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
  }

  .input-dock {
    border-radius: 18px;
    padding: 0.65rem 0.8rem;
    gap: 0.5rem;
  }

  /* Mobil Textarea: ferah ve rahat yazım */
  textarea#promptInput {
    font-size: 16px;
    padding: 4px 2px;
    min-height: 48px;
  }

  .dock-actions-row {
    padding-top: 0.35rem;
    gap: 0.4rem;
  }

  .dock-left-tools {
    gap: 0.35rem;
  }

  .tool-btn {
    height: 30px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }

  .tool-btn-label {
    display: none;
  }

  .model-select-wrapper {
    height: auto;
    padding: 0;
    max-width: none;
    border: none;
    background: transparent;
  }

  .model-pill-btn {
    height: 30px;
    padding: 0 0.5rem;
    gap: 0.35rem;
    font-size: 0.74rem;
  }

  .model-pill-name {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .model-pill-tag {
    display: none;
  }

  .model-select {
    font-size: 0.72rem;
    max-width: 110px;
  }

  .send-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  /* Enter ipucu masaüstü klavyesi içindir; mobilde gereksiz alan kaplar */
  .input-hint {
    display: none;
  }

  /* ==========================================================================
     MOBİL MESAJ AKIŞI
     ========================================================================== */
  .chat-viewport {
    padding: 0.6rem 0.85rem calc(1.4rem + env(safe-area-inset-bottom));
  }

  .messages-container {
    gap: 0.9rem;
  }

  .user-bubble {
    max-width: 86%;
    padding: 0.65rem 1.05rem;
    border-radius: 18px;
  }

  .user-bubble .message-content {
    font-size: 15px;
  }

  .bot-bubble {
    border-radius: 18px;
    padding: 0.95rem 1.05rem;
  }

  .bot-bubble .message-content {
    font-size: 15px;
  }

  .bot-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .bot-content-wrapper {
    max-width: calc(100% - 34px);
  }

  /* Kod bloğu mobilde daha kompakt */
  pre {
    padding: 0.85rem;
    font-size: 0.78rem;
  }

  .thinking-block summary {
    padding: 0.55rem 0.7rem;
  }

  /* ==========================================================================
     MOBİL OVERLAY & PANEL
     ========================================================================== */
  .auth-overlay,
  .admin-overlay {
    padding: 0.9rem;
    align-items: center;
  }

  .auth-card,
  .admin-card {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  #authForm input {
    padding: 0.85rem 0.95rem;
    /* iOS klavye zoom önlemi */
    font-size: 16px;
  }

  .auth-submit {
    padding: 0.95rem;
    font-size: 0.95rem;
  }

  .admin-card {
    max-height: none;
    height: calc(100% - 1.8rem);
  }

  /* Admin satırları dar ekranda alt alta akışa geçer */
  .admin-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-row-name {
    flex: 1 1 100%;
    white-space: normal;
  }

  /* ==========================================================================
     MOBİL TOAST & POPOVER
     ========================================================================== */
  .toast-container {
    right: 0.75rem;
    left: 0.75rem;
    top: 4.25rem;
  }

  .toast {
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }

  .quota-popover {
    right: 0.75rem;
    left: 0.75rem;
    top: 4.1rem;
    width: auto;
  }
}

/* Küçük telefonlar — header'da ekstra kademe (tüm butonlar açıkken bile sığar) */
@media (max-width: 430px) {
  .app-header {
    height: calc(58px + max(env(safe-area-inset-top), 24px));
    padding-top: max(env(safe-area-inset-top), 24px);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.35rem;
  }

  .header-brand {
    gap: 0.35rem;
    font-size: 0.88rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .quota-pill {
    padding: 0.28rem 0.5rem;
  }

  .user-chip {
    padding: 0.26rem;
    padding-right: 0.45rem;
  }

  /* Model seçici dar ekranda esnsin, akışı itmeye çalışmasın */
  .model-select {
    flex-shrink: 1;
    min-width: 0;
  }
}

/* Çok küçük telefonlar — marka adı tamamen kırparak yer açar */
@media (max-width: 380px) {
  .header-brand {
    flex: 1;
    min-width: 0;
  }

  .header-brand .brand-name {
    display: none;
  }

  .quota-pill {
    padding: 0.3rem 0.5rem;
  }
}

/* Yatay modda header'ı daralt — dikey alan cehennemini önler */
@media (max-height: 480px) {
  .app-header {
    height: 48px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .chat-app.empty-state .input-dock-wrapper {
    transform: translateY(calc(-50vh + 120px));
    transform: translateY(calc(-50dvh + 120px));
  }

  .chat-app.empty-state .hero-center {
    max-height: 60px;
  }
}

/* ==========================================================================
   HEADER: USER CHIP & QUOTA PILL
   ========================================================================== */
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem 0.28rem 0.32rem;
  cursor: default;
  transition: all var(--transition-fast);
}

.user-chip:hover {
  background: var(--bg-surface-hover);
}

.user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-chip-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tier-badge.go {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.tier-badge.plus {
  background: var(--accent-subtle);
  color: var(--accent-primary);
}

.tier-badge.pro {
  background: rgba(168, 85, 247, 0.16);
  color: #a78bfa;
}

.tier-badge.admin {
  background: rgba(234, 179, 8, 0.16);
  color: #eab308;
}

.quota-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.38rem 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quota-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.quota-pill i {
  color: var(--accent-primary);
  font-size: 0.7rem;
}

/* Model seçici (chat barın içinde, Plus/Yönetici) */
.model-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 135px;
  white-space: nowrap;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
}

.model-select:hover {
  color: #38bdf8;
}

.model-select:focus {
  outline: none;
}

.quota-bar {
  width: 56px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

.quota-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  transition: width 0.4s ease, background-color 0.3s ease;
}

.quota-bar-fill.warn {
  background: #f59e0b;
}

.quota-bar-fill.danger {
  background: #f43f5e;
}

/* Kota detay popover'ı — Yeni Modern UI */
.quota-popover {
  position: fixed;
  top: 4.4rem;
  right: 1.25rem;
  z-index: 150;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 1.15rem 1.25rem;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quota-popover[hidden] {
  display: none !important;
}

.quota-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.quota-pop-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quota-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.quota-stat-box {
  background: var(--bg-surface-hover, rgba(255,255,255,0.03));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quota-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quota-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quota-stat-val.accent {
  color: var(--accent-primary, #6366f1);
}

.quota-pop-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
}

.quota-pop-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.quota-pop-row span {
  color: var(--text-muted);
}

.quota-pop-row b {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* Gün Gün Harcama Bölümü */
.quota-history-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quota-history-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quota-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.quota-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-hover, rgba(255,255,255,0.02));
  border: 1px solid var(--border-subtle);
}

.quota-history-date {
  color: var(--text-secondary);
  font-family: var(--font-code, monospace);
  font-size: 0.72rem;
}

.quota-history-tokens {
  font-weight: 600;
  color: var(--text-primary);
}

.quota-history-item.today {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.quota-history-item.today .quota-history-date {
  color: var(--accent-primary, #6366f1);
  font-weight: 700;
}

.quota-pop-upgrade {
  font-size: 0.74rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
}

/* Düşünme süreci bloğu */
.thinking-block {
  border: 1px dashed var(--border-medium);
  background: var(--bg-surface-hover);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  overflow: hidden;
}

.thinking-block summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--text-secondary);
  list-style: none;
  transition: color var(--transition-fast);
}

.thinking-block summary::-webkit-details-marker {
  display: none;
}

.thinking-block summary:hover {
  color: var(--text-primary);
}

.thinking-block summary i {
  color: var(--accent-primary);
  font-size: 0.75rem;
}

.thinking-content {
  padding: 0.15rem 0.9rem 0.7rem;
  white-space: pre-wrap;
  line-height: 1.55;
  font-style: italic;
  color: var(--text-muted);
  max-height: 260px;
  overflow-y: auto;
}

/* ==========================================================================
   AUTH OVERLAY (Giriş / Kayıt)
   ========================================================================== */
.auth-overlay,
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-overlay[hidden],
.admin-overlay[hidden] {
  display: none;
}

.auth-card,
.admin-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem 1.5rem;
  animation: cardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card {
  max-width: 380px;
}

.admin-card {
  max-width: 580px;
  max-height: min(640px, 90vh);
  overflow-y: auto;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.auth-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

#authForm {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#authForm input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

#authForm input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

#authForm input::placeholder {
  color: var(--text-muted);
}

.auth-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.auth-error[hidden] {
  display: none;
}

.auth-submit {
  width: 100%;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.auth-submit:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.auth-plans {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.plan-chip i {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.plan-chip:last-child i {
  color: var(--accent-primary);
}

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-head h2 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.admin-head h2 i {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.admin-info {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.95rem;
  animation: messageSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-row-user-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.admin-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-tokens {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.token-pill-today {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.token-pill-today b,
.token-pill-total b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.token-pill-total {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-row-action-col {
  flex-shrink: 0;
}

.admin-tier-btn {
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tier-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==========================================================================
   HESAP MENÜSÜ (chip'e tıklayınca; mobilde çıkış + yönetim burada)
   ========================================================================== */
.user-chip {
  cursor: pointer;
}

.account-menu {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 160;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.85rem;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.account-menu-id {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.account-menu-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.65rem 0.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.account-menu-item i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.account-menu-item:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-primary);
}

.account-menu-item:hover i {
  color: var(--accent-primary);
}

.account-menu-item.danger,
.account-menu-item.danger i {
  color: #f43f5e;
}

.account-menu-item.danger:hover {
  background: rgba(244, 63, 94, 0.08);
}

.admin-tier-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .account-menu {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
    top: 4.2rem;
  }

  /* Mobilde header'ı taşırmaması için çıkış ve yönetim ikonları gizli —
     her ikisi de chip'e dokununca açılan hesap menüsünde */
  #logoutBtn,
  #adminBtn {
    display: none;
  }
}

/* ==========================================================================
   SOHBET GEÇMİŞİ ÇEKMESİ
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 120;
  animation: fadeIn 0.25s ease;
}

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

.history-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  z-index: 130;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.history-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.75rem 0.6rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-title i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.drawer-new-chat {
  margin: 0.85rem 0.85rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.drawer-new-chat:hover {
  background: var(--accent-primary-hover);
}

.drawer-new-chat:active {
  transform: scale(0.98);
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0.85rem 1rem;
  overscroll-behavior: contain;
}

.drawer-day {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.9rem 0.3rem 0.3rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.history-item:hover,
.history-item.armed-delete {
  background: var(--bg-surface-hover);
}

.history-item.active {
  background: var(--accent-subtle);
  box-shadow: inset 0 0 0 1px var(--border-focus);
}

.history-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.history-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.history-item-actions {
  display: flex;
  gap: 0.1rem;
  flex-shrink: 0;
}

.drawer-act-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-act-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.history-item.armed-delete .drawer-act-btn {
  color: #f43f5e;
}

.drawer-empty {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2rem 1rem;
  line-height: 1.7;
  user-select: none;
}

.drawer-empty i {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

/* Geçmişten yüklenen bot mesajının saati — baloncuğun üstünde küçük etiket */
.message-history-time {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  margin-left: 0.2rem;
}

@media (max-width: 600px) {
  .history-drawer {
    width: min(300px, 88vw);
  }

  .history-item-actions {
    opacity: 1;
  }
}

/* Web Search Toggle Butonu & Kaynak Kartları */
.tool-btn.web-search-toggle {
  position: relative;
  transition: all 0.2s ease;
}

.tool-btn.web-search-toggle.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.tool-btn.image-gen-btn {
  position: relative;
  transition: all 0.2s ease;
  color: #c084fc;
}

.tool-btn.image-gen-btn:hover {
  color: #e879f9;
  background: rgba(192, 132, 252, 0.18);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
  transform: translateY(-1px);
}

.tool-btn.image-gen-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.tool-btn.openrocket-mode-btn {
  position: relative;
  transition: all 0.2s ease;
  color: #fb923c;
}

.tool-btn.openrocket-mode-btn:hover {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.16);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.35);
  transform: translateY(-1px);
}

.tool-btn.openrocket-mode-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #f97316);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
  border-color: rgba(251, 146, 60, 0.6);
}

.tool-btn.autocad-mode-btn {
  position: relative;
  transition: all 0.2s ease;
  color: #06b6d4;
}

.tool-btn.autocad-mode-btn:hover {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.16);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.tool-btn.autocad-mode-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.55);
  border-color: rgba(6, 182, 212, 0.6);
}

.ork-download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.14), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ork-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ork-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ork-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(251, 146, 60, 0.4);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ork-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #f8fafc);
}

.ork-card-sub {
  font-size: 0.76rem;
  color: var(--text-secondary, #94a3b8);
}

.ork-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ork-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 146, 60, 0.5);
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ork-download-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
}

.ork-preview-svg-wrap {
  width: 100%;
  overflow-x: auto;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

/* AutoCAD Download Card & Preview */
.cad-download-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cad-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cad-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.cad-card-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary, #f8fafc);
  letter-spacing: 0.2px;
}

.cad-card-sub {
  font-size: 0.77rem;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

.cad-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cad-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.cad-btn-primary {
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
}

.cad-btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

.cad-btn-secondary {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.cad-btn-secondary:hover {
  background: rgba(14, 165, 233, 0.25);
  color: #bae6fd;
  transform: translateY(-1px);
}

.cad-btn-dxf {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.cad-btn-dxf:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  transform: translateY(-1px);
}

.cad-btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.cad-btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.cad-preview-wrap {
  width: 100%;
  overflow-x: auto;
  background: #11151f;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 8px;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cad-preview-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  border-radius: 6px;
}

.cad-guide-box {
  background: rgba(2, 6, 23, 0.6);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid #06b6d4;
  line-height: 1.5;
}

.cad-guide-icon {
  color: #22d3ee;
  font-size: 1rem;
  margin-top: 2px;
}

.cad-guide-text {
  flex: 1;
}

.cad-guide-title {
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.cad-guide-steps {
  margin: 0;
  padding-left: 1.1rem;
  color: #94a3b8;
}

.cad-guide-steps li {
  margin-bottom: 2px;
}

.cad-guide-steps b {
  color: #f1f5f9;
}

.web-sources-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.web-sources-title {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.web-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-source-pill:hover {
  background: var(--bg-surface-hover);
  border-color: #38bdf8;
  color: #38bdf8;
}

.web-source-pill i {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* /verbose İstatistik Kartı */
.verbose-stats-card {
  margin-top: 0.8rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.verbose-stats-title {
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verbose-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.6rem;
}

.verbose-stat-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-hover);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.verbose-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.verbose-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-top: 0.1rem;
}

.verbose-stat-value.text-accent {
  color: #10b981;
}

/* HTML Live Preview Modal */
.html-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.html-preview-modal.active {
  display: flex;
}

.html-preview-dialog {
  background: #111624;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 1050px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.html-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #0d111d;
  border-bottom: 1px solid var(--border-subtle);
}

.html-preview-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.html-preview-title i {
  color: #38bdf8;
}

.html-preview-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.html-preview-body {
  flex: 1;
  background: #ffffff;
  position: relative;
}

.html-preview-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* ==========================================================================
   AYARLAR & UI TASARIM STÜDYOSU (Go ve Üstü)
   ========================================================================== */
.settings-studio-card {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.settings-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  flex-wrap: wrap;
}

.settings-tab {
  flex: 1;
  min-width: 140px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.settings-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.settings-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.settings-pane {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.settings-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.settings-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.55rem;
}

.style-preset-btn {
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.style-preset-btn i {
  font-size: 1.05rem;
  color: var(--accent-primary);
}

.style-preset-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.style-preset-btn.active {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
  color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.settings-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 560px) {
  .settings-row-2col {
    grid-template-columns: 1fr;
  }
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.settings-field input[type="text"],
.settings-field select,
.settings-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.settings-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.color-picker-wrap input[type="color"] {
  width: 38px;
  height: 36px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

.settings-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (max-width: 520px) {
  .settings-toggles-grid {
    grid-template-columns: 1fr;
  }
}

.settings-toggle-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
}

.settings-toggle-item input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.theme-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-preset-chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.theme-preset-chip:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Chat Bar Özel Stilleri (Dock Styles) */
.input-dock[data-dock-style="glass"] {
  background: rgba(19, 23, 36, 0.55) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.input-dock[data-dock-style="neon"] {
  border: 1px solid var(--accent-primary) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35), inset 0 0 12px rgba(59, 130, 246, 0.08) !important;
}

.input-dock[data-dock-style="floating"] {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.input-dock[data-dock-style="minimal"] {
  background: transparent !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   GELİŞMİŞ MODERN MODEL SEÇİCİ UI
   ========================================================================== */
.model-select-wrapper {
  position: relative;
  display: inline-block;
}

.model-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  height: 34px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.model-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.model-pill-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.model-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: #38bdf8;
}

.model-pill-name {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.model-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.model-pill-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-pill-btn.active .model-pill-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* ==========================================================================
   YENİ NESİL GELİŞMİŞ MODEL SEÇİCİ (PREMIUM UI MODAL)
   ========================================================================== */
.model-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modelOverlayFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-picker-overlay[hidden] {
  display: none !important;
}

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

.model-picker-container {
  width: 960px;
  max-width: 95vw;
  max-height: 90vh;
  max-height: 90dvh;
  background: #0f1322;
  background: linear-gradient(180deg, #13182b 0%, #0a0d18 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 60px rgba(56, 189, 248, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modelModalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modelModalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Üst Başlık & Arama */
.model-picker-head {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.model-picker-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.model-picker-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.model-picker-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.model-picker-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.model-picker-title p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.model-picker-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-picker-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

/* Arama Çubuğu */
.model-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.model-search-bar i.fa-magnifying-glass {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.model-search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.model-search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.model-search-badge {
  position: absolute;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
}

.model-search-badge kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: inherit;
}

/* Filtre Sekmeleri */
.model-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.model-filter-tabs::-webkit-scrollbar {
  display: none;
}

.model-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.model-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.model-filter-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

/* Modal Gövdesi & Izgara */
.model-picker-body {
  padding: 1.25rem 1.75rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1rem;
  flex: 1;
  min-height: 280px;
  max-height: calc(90vh - 230px);
}

.model-picker-body::-webkit-scrollbar {
  width: 6px;
}
.model-picker-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Gelişmiş Model Kartı */
.model-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: all 0.25s ease;
}

.model-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.model-card.selected {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15), inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.model-card.selected::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

/* Kart Üst Başlık Satırı */
.model-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.model-card-head-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.model-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.model-card:hover .model-card-icon-wrap {
  transform: scale(1.08) rotate(2deg);
}

.model-card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.model-card-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
}

.model-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.model-card-head-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.model-card-hotkey {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.model-card-context-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  text-transform: uppercase;
}

/* Model Açıklaması */
.model-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Yetenek Metrikleri (Visual Capability Meters) */
.model-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.model-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.model-metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.model-metric-val {
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.model-metric-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.model-metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Özellik Etiketleri (Feature Chips) */
.model-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.model-card-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}

/* Durum / Seçim Butonu Alt Satır */
.model-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.model-card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.model-card.selected .model-card-status-badge {
  color: #38bdf8;
}

.model-card:not(.selected) .model-card-status-badge {
  color: var(--text-muted);
}

.model-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.model-card.selected .model-card-action-btn {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.model-card:not(.selected) .model-card-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.model-card:not(.selected):hover .model-card-action-btn {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Modal Alt Bilgi Çubuğu */
.model-picker-footer {
  padding: 1rem 1.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.model-picker-active-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.model-picker-active-summary strong {
  color: #fff;
  font-weight: 700;
}

.model-picker-shortcuts-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.model-picker-shortcuts-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-family: inherit;
}

/* Boş Arama Sonucu Durumu */
.model-picker-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.6rem;
}

.model-picker-empty i {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
}

.sheet-grab-bar {
  display: none;
}

/* Mobil Responsive - Modern Bottom-Sheet Model Seçici */
@media (max-width: 768px) {
  .model-picker-overlay {
    padding: 0;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .model-picker-container {
    width: 100%;
    max-width: 100%;
    max-height: 84vh;
    max-height: 84dvh;
    border-radius: 24px 24px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    animation: modelSheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
  }

  @keyframes modelSheetSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .sheet-grab-bar {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 10px auto 2px;
    flex-shrink: 0;
  }

  .model-picker-head {
    padding: 0.65rem 1rem 0.65rem;
    gap: 0.6rem;
  }

  .model-picker-title-row {
    align-items: center;
  }

  .model-picker-title-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .model-picker-title h3 {
    font-size: 1.05rem;
    margin: 0;
  }

  .model-picker-title p {
    display: none;
  }

  .model-picker-close {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .model-search-bar {
    padding: 0 0.75rem;
    height: 36px;
    border-radius: 12px;
  }

  .model-search-bar input {
    font-size: 0.82rem;
  }

  .model-search-badge {
    display: none;
  }

  .model-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
    gap: 0.35rem;
  }

  .model-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .model-filter-chip {
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    white-space: nowrap;
    border-radius: 20px;
    flex-shrink: 0;
  }

  /* Mobil Model Kartları */
  .model-picker-body {
    grid-template-columns: 1fr;
    padding: 0.65rem 1rem 1rem;
    gap: 0.55rem;
    max-height: calc(84vh - 180px);
    max-height: calc(84dvh - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .model-card {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.035);
  }

  .model-card:active {
    transform: scale(0.98);
  }

  .model-card-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .model-card-name {
    font-size: 0.92rem;
  }

  .model-card-badge {
    font-size: 0.6rem;
    padding: 0.08rem 0.35rem;
  }

  .model-card-hotkey {
    display: none;
  }

  .model-card-desc {
    font-size: 0.76rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Mobilde gereksiz karmaşık çubukları ve etiketleri gizle */
  .model-card-metrics {
    display: none !important;
  }

  .model-card-tags {
    display: none !important;
  }

  .model-card-bottom {
    padding-top: 0.35rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .model-card-status-badge {
    font-size: 0.72rem;
  }

  .model-card-action-btn {
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
  }

  .model-picker-footer {
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .model-picker-shortcuts-hint {
    display: none;
  }

  .model-picker-active-summary {
    font-size: 0.75rem;
  }

  .header-model-tag {
    display: none;
  }

  .header-model-btn {
    padding: 0.25rem 0.5rem;
    height: 30px;
    font-size: 0.75rem;
  }

  .header-model-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   CHAT BAR GELİŞMİŞ KİŞİSELLEŞTİRME & KEYBINDS CSS
   ========================================================================== */
.input-dock.dock-size-compact {
  padding: 0.45rem 0.75rem !important;
}
.input-dock.dock-size-compact .prompt-textarea {
  font-size: 0.88rem !important;
  min-height: 38px !important;
}

.input-dock.dock-size-spacious {
  padding: 0.95rem 1.15rem !important;
}
.input-dock.dock-size-spacious .prompt-textarea {
  font-size: 1.02rem !important;
  min-height: 54px !important;
}

/* Send Button Stilleri */
.send-btn.send-style-rounded {
  border-radius: 10px !important;
}

.send-btn.send-style-neon {
  border-radius: 50% !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.5) !important;
  animation: pulseNeon 2s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.85), inset 0 0 12px rgba(255, 255, 255, 0.7); }
}

/* Keybinds UI */
.send-key-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.send-key-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-key-mode-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(56, 189, 248, 0.3);
}

.send-key-mode-card.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.send-key-mode-card input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: #38bdf8;
}

.send-key-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.send-key-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.send-key-title kbd,
.send-key-desc kbd,
.keybind-badge {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  padding: 0.12rem 0.42rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
}

.send-key-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.keybinds-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.keybind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.18s ease;
}

.keybind-row:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.keybind-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.keybind-label i {
  color: #38bdf8;
  width: 16px;
  text-align: center;
}

.keybind-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.keybind-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.keybind-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

.keybind-btn.recording {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
  animation: keybindRecordingPulse 1s infinite alternate;
}

@keyframes keybindRecordingPulse {
  from { box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
}

.keybind-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem;
  cursor: pointer;
  transition: color 0.18s ease;
}

.keybind-reset-btn:hover {
  color: #ef4444;
}




