/* PAI PREMIUM - CORE STYLE */

/* Block Source: Inline */
/* --- GPT SOFT DESIGN SYSTEM (V3 - CLEAN & PREMIUM) --- */
:root {
  /* Premium Dark Palette (Derin ve Mat) */
  --bg-app: #000000;
  /* Tam Siyah Zemin */
  --bg-sidebar: #171717;
  /* Sidebar için çok koyu gri */
  --bg-card: #212121;
  /* Kartlar için mat gri */
  --bg-elevated: #2f2f2f;
  /* Yükseltilmiş alanlar */
  --bg-hover: rgba(255, 255, 255, 0.06);
  /* Şeffaf hover */
  --bg-active: rgba(255, 255, 255, 0.1);
  /* Tıklama efekti */

  /* Typography (Okunaklı ve Modern) */
  --text-primary: #ECECEC;
  /* Kırık Beyaz (Göz yormaz) */
  --text-secondary: #B4B4B4;
  /* Orta Gri */
  --text-muted: #666666;
  /* Pasif Metin */

  /* Accents (Soft GPT Colors) */
  --accent-primary: #FFFFFF;
  /* Ana butonlar Beyaz (GPT Style) */
  --text-on-accent: #000000;
  /* Beyaz üstüne siyah yazı */
  --accent-red: #ff4d4d;
  /* Yumuşak Kırmızı */

  /* Borders & Radius (Yumuşaklık Sırrı) */
  --border-subtle: rgba(255, 255, 255, 0.08);
  /* Çok ince kenarlık */
  --border-input: rgba(255, 255, 255, 0.12);

  --radius-xl: 24px;
  /* Modal köşeleri */
  --radius-lg: 16px;
  /* Kart köşeleri */
  --radius-md: 12px;
  /* Buton köşeleri */
  --radius-sm: 8px;
  /* Küçük elemanlar */

  /* Shadows (Atmospheric) */
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* Modal Gölgesi */

  /* Animation */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font-sans: 'Lexend', sans-serif;
}

html, body, .app-container, #chatSection, .modal-overlay-container, #masterSettingsOverlay {
    height: 100dvh !important; 
    height: -webkit-fill-available !important; /* iOS Fallback */
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    overflow: hidden !important; 
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  
  /* --- MOBILE & ANDROID NATIVE OPTIMIZATIONS --- */
  
  /* Dokunmatik Geri Bildirimleri Native Gibi Yap */
  -webkit-tap-highlight-color: transparent;
  user-select: none; /* UI elementlerini seçilemez yap */
  -webkit-user-select: none;
  touch-action: pan-x pan-y; /* Zoom ve diğer gestures'i engelle */
  
  /* Lastik (Bounce) Efektini Kapat */
  overscroll-behavior: none;
  
  /* Safe Area (Çentik) Desteği */
  padding-top: max(10px, env(safe-area-inset-top)) !important;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  
  /* Font Render */
  text-rendering: optimizeLegibility;
}

body.chat-active {
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    width: 100vw !important;
}

/* Sadece metin içeren ve düzenlenebilir alanlarda seçime izin ver */
.message-content, 
.message-content *, 
input, 
textarea, 
[contenteditable="true"],
.selectable-text {
  user-select: text;
  -webkit-user-select: text;
}

/* --- GPT STYLE FLOATING LAYOUT --- */

/* Ana Arka Planı Karart (Overlay Etkisi İçin) */
#tabProfile {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 5000 !important;
}

/* Yüzen Beyaz/Gri Kutu (Ana Modal) */
.modern-profile-layout {
  width: 100% !important;
  max-width: 900px !important;
  /* Genişliği sınırla */
  height: 85vh !important;
  /* Ekranın %85'i kadar yükseklik */
  max-height: 800px !important;
  background-color: var(--bg-card) !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-float) !important;

  display: flex !important;
  flex-direction: row !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Sidebar (Sol Menü) */
.profile-sidebar {
  width: 260px !important;
  height: 100% !important;
  background-color: transparent !important;
  /* Kartın rengini alsın */
  border-right: 1px solid var(--border-subtle) !important;
  padding: 20px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
}

/* Sidebar Menü Elemanları (Fotoğraftaki gibi sade) */
.profile-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  margin-bottom: 4px !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s var(--ease-smooth) !important;
}

.profile-menu-item:hover {
  background-color: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}

.profile-menu-item.active {
  background-color: var(--bg-hover) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.profile-menu-item i {
  font-size: 1.1rem !important;
  width: 20px !important;
  text-align: center !important;
  color: inherit !important;
  /* İkon rengi metinle aynı olsun */
}

/* Sağ İçerik Alanı */
.profile-main-content {
  flex: 1 !important;
  background-color: transparent !important;
  padding: 0 !important;
  overflow-y: auto !important;
  position: relative !important;
}

/* Mobilde Responsive Ayar */
@media (max-width: 768px) {
  #tabProfile {
    padding: 0 !important;
  }

  .modern-profile-layout {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    flex-direction: column !important;
  }

  .profile-sidebar {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 10px !important;
  }

  .profile-menu-item {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }
}

/* --- COMPONENTS --- */

/* Sidebar Menu */
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.profile-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.profile-menu-item.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.profile-menu-item i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
}

.profile-menu-item.active i {
  color: var(--accent-primary);
}

/* İçerik Paneli (Sadeleştirilmiş) */
.panel-card {
  background: transparent !important;
  /* Arka plan yok */
  border: none !important;
  /* Kenarlık yok */
  box-shadow: none !important;
  /* Gölge yok */
  padding: 40px 60px !important;
  /* Bol boşluk */
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* Başlık Alanı */
.panel-header {
  border-bottom: 1px solid var(--border-subtle) !important;
  padding-bottom: 20px !important;
  margin-bottom: 30px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.panel-header h2 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  /* Çok kalın değil */
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.panel-header p {
  display: none !important;
  /* Alt açıklamayı gizle, sadelik için */
}

/* Mobilde Padding Ayarı */
@media (max-width: 768px) {
  .panel-card {
    padding: 20px !important;
  }
}

/* Modern Soft Inputlar */
.input-modern,
.auth-input,
textarea,
select {
  width: 100% !important;
  padding: 12px 16px !important;
  background-color: transparent !important;
  border: 1px solid var(--border-input) !important;
  border-radius: 10px !important;
  /* Hafif yuvarlak */
  color: var(--text-primary) !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.input-modern:focus,
.auth-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
  /* Beyaz soft glow */
  outline: none !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Butonlar (GPT Style) */
.btn-modern,
.button {
  padding: 10px 20px !important;
  border-radius: 30px !important;
  /* Tam yuvarlak (Pill) */
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.2s var(--ease-smooth) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: none !important;
  /* Gölge yok, düz tasarım */
}

/* Primary Button (Beyaz) */
.btn-modern.primary,
.button.primary {
  background-color: var(--accent-primary) !important;
  color: var(--text-on-accent) !important;
}

.btn-modern.primary:hover,
.button.primary:hover {
  opacity: 0.9 !important;
  transform: scale(1.02) !important;
}

/* Secondary Button (Şeffaf/Gri) */
.btn-modern.secondary,
.button.secondary {
  background-color: transparent !important;
  border: 1px solid var(--border-input) !important;
  color: var(--text-primary) !important;
}

.btn-modern.secondary:hover,
.button.secondary:hover {
  background-color: var(--bg-hover) !important;
}

/* Danger Button (Sadece metin kırmızı veya kırmızı buton) */
.btn-modern.danger,
.button.danger {
  background-color: rgba(255, 77, 77, 0.1) !important;
  color: var(--accent-red) !important;
  border: 1px solid transparent !important;
}

.btn-modern.danger:hover,
.button.danger:hover {
  background-color: var(--accent-red) !important;
  color: white !important;
}

.btn-modern.secondary,
.button.secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-modern.secondary:hover,
.button.secondary:hover {
  background: var(--bg-active);
}

.btn-modern.danger,
.button.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-modern.danger:hover,
.button.danger:hover {
  background: #ef4444;
  color: white;
}

/* Liste Satırları */
.setting-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* Son elemanın alt çizgisini kaldır */
.setting-item:last-child {
  border-bottom: none !important;
}

.setting-item label {
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important;
  font-weight: 400 !important;
}

/* Select Kutuları (Minimal) */
.setting-item select {
  width: auto !important;
  padding: 8px 30px 8px 12px !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-secondary) !important;
  text-align: right !important;
  cursor: pointer !important;
  appearance: none !important;
  /* Varsayılan oku kaldır */
  /* Özel ok ikonu eklenebilir veya metin olarak bırakılabilir */
}

.setting-item select:hover {
  color: var(--text-primary) !important;
}

/* Badges */
.badge-membership {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Grid & Layouts */
.my-bots-grid,
.explore-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* --- C.AI MOBILE STYLE EXPLORE CARDS (REDESIGNED) --- */

/* Izgara Yapısı - Mobilde 2'li, PC'de esnek */
.explore-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Mobilde yan yana 2 tane */
  gap: 12px;
  padding: 10px;
  padding-bottom: 120px;
  /* Alt barın altında kalmasın */
}

@media (min-width: 768px) {
  .explore-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
  }
}

/* Kartın Kendisi - REVİZE EDİLDİ */
.personality-card-item:active {
  transform: scale(0.95) !important;
}

.explore-card-modern:active {
  transform: scale(0.98);
}

/* Kart Resmi (Üst kısım - Kare/Kompakt) */
.explore-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Dikey yerine Kare (Daha kısa Y ekseni) */
  position: relative;
  overflow: hidden;
  background-color: var(--bg-content);
}

.explore-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Kart Bilgileri (Alt kısım - Sıkıştırılmış) */
.explore-card-info {
  padding: 10px 12px;
  /* Dikey boşluk azaltıldı */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-elevated);
}

/* --- YENİ: Glassmorphism Ekle Butonu (+) --- */
.explore-add-glass-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;

  /* Şeffaf ve Blurlu Zemin */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* İnce, zarif kenarlık */
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;

  /* Smooth Animasyon */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Yaylanma efekti */
  opacity: 0;
  /* Varsayılan gizli (hover ile gelir veya mobilde hep açık) */
  transform: scale(0.8);
}

/* Kartın üzerine gelince veya mobilde (medya sorgusu eklenebilir) butonu göster */
.explore-card-modern:hover .explore-add-glass-btn {
  opacity: 1;
  transform: scale(1);
}

/* Dokunmatik cihazlar için her zaman görünür yap */
@media (hover: none) {
  .explore-add-glass-btn {
    opacity: 1;
    transform: scale(1);
  }
}

.explore-add-glass-btn:active {
  background: rgba(255, 255, 255, 0.9);
  /* Tıklayınca parlasın */
  color: #000;
  transform: scale(0.9);
}

/* Başlık */
.explore-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Yaratıcı İsmi */
.explore-creator-line {
  font-size: 0.7rem;
  color: var(--accent-primary);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Açıklama (Taşmayı Önleyen Kısım) */
.explore-desc-line {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;

  /* ÇOK ÖNEMLİ: 2 Satırda Sınırlama */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  margin-bottom: 10px;
  flex-grow: 1;
  /* Boşluğu doldur */
}

/* Alt İstatistikler (Sohbet Sayısı vb.) */
.explore-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-input);
  padding-top: 8px;
  margin-top: auto;
  /* En alta it */
}

.explore-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Modal Overlay (Soft Backdrop) */
.modal-overlay-container,
#firebase-auth-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 250000 !important;
}

.modal-dialog-content,
.auth-card {
  background: var(--bg-card) !important;
  /* Varsayılan Desktop Ayarları */
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-float) !important;
  padding: 40px !important;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

/* --- MOBILE FULLSCREEN MODAL OVERRIDE --- */
@media (max-width: 768px) {
  .modal-dialog-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92dvh !important;
    border-radius: 32px 32px 0 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    
    /* İçerik Düzeni */
    display: flex !important;
    flex-direction: column !important;
    
    /* Animasyon (Aşağıdan Yukarı) */
    animation: slideUpNative 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    overflow: hidden !important;
  }
  
  .modal-header, .modal-footer-actions {
    flex-shrink: 0 !important;
    z-index: 10 !important;
  }

  /* İçerik kaydırma alanını optimize et */
  .modal-scrollable-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px !important;
    min-height: 0 !important;
  }

  .modal-footer-actions {
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }

  /* Overlay padding'ini kaldır */
  .modal-overlay-container {
    padding: 0 !important;
    align-items: flex-end !important; /* Alttan hizala */
    z-index: 250000 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(12px) !important;
  }
}

@keyframes slideUpNative {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Animations (Removed complex ones) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-panel.active {
  animation: fadeIn 0.3s ease-out;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .profile-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    z-index: 100;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
  }

  .profile-menu-item {
    flex-direction: column;
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 4px;
    white-space: nowrap;
  }

  .profile-menu-item i {
    font-size: 1.2rem;
  }

  .panel-card {
    padding: 20px;
  }
}




/* --- GLOBAL APP FEEL OPTIMIZATION (FLUTTER STYLE) --- */

/* 1. SCROLLBAR GİZLEME (Ama kaydırma çalışır) */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}
*::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Opera */
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* 2. FONT RENDERING (Keskinlik) */
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  /* iOS Tıklama Gecikmesini Kaldır */
  touch-action: manipulation; 
}

/* 3. SELECTION COLOR (Web Mavisini Kaldır) */
::selection {
  background-color: var(--accent-primary);
  color: #fff;
}

/* --- GLOBAL SOFT DESIGN ENFORCEMENT --- */
/* Force reset for any lingering robotic styles */

/* 1. Reset Borders & Radius */
.card,
.panel-card,
.bot-card,
.auth-card,
.modal-dialog-content,
.input-modern,
.auth-input,
textarea,
input[type="text"],
input[type="password"] {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-subtle) !important;
  /* Force thin subtle border */
  box-shadow: var(--shadow-sm) !important;
  /* Kill neon glows */
}

/* 2. Soften Inputs */
input:focus,
textarea:focus,
select:focus,
.input-modern:focus,
.auth-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
  /* Soft ring instead of glow */
  background-color: var(--bg-app) !important;
}

/* 3. Soften Buttons */
button,
.button,
.btn-modern {
  border-radius: var(--radius-lg) !important;
  text-transform: none !important;
  /* Remove robotic uppercase */
  letter-spacing: 0 !important;
  /* Normal spacing */
  font-weight: 500 !important;
  /* Lighter weight */
  box-shadow: none !important;
  text-shadow: none !important;
  /* Kill text neon */
}

button:hover,
.button:hover,
.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
}

/* 4. Remove Neon Text/Box Shadows Globally */
* {
  text-shadow: none !important;
}

/* Exception for specific accent text if needed, but keeping it clean for now */

/* 5. Scrollbars (Soft & Thin) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-active);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 6. Specific Legacy Overrides */
.sidebar-avatar,
.bot-card-img {
  border: none !important;
  /* Remove avatar borders */
  box-shadow: var(--shadow-md) !important;
}

/* 7. Modal Backdrops */
.modal-overlay-container,
#firebase-auth-overlay {
  background: rgba(0, 0, 0, 0.4) !important;
  /* Lighter backdrop */
  backdrop-filter: blur(12px) !important;
  /* Stronger blur for focus */
}

/* 8. Toast Notifications */
#toastNotificationPopup {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-float) !important;
  font-family: var(--font-sans) !important;
}



/* --- LIGHT THEME (White Dove Edition) --- */
body.light-theme {
  /* Base Colors - White Dove (#fcfcf9) */
  --bg-app: #fcfcf9;
  --bg-sidebar: #fcfcf9;
  --bg-card: #fcfcf9;
  --bg-hover: #f1f5f9;
  /* Slate-100 */
  --bg-active: #e2e8f0;
  /* Slate-200 */

  /* Text */
  --text-primary: #18181b;
  /* Zinc-900 */
  --text-secondary: #52525b;
  /* Zinc-600 */
  --text-muted: #a1a1aa;
  /* Zinc-400 */

  /* Accents */
  --accent-primary: #3b82f6;
  /* Blue-500 */
  --accent-hover: #2563eb;
  /* Blue-600 */
  --accent-soft: rgba(59, 130, 246, 0.1);

  /* Borders & Shadows */
  --border-subtle: #e4e4e7;
  /* Zinc-200 */
  --border-focus: rgba(59, 130, 246, 0.4);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Light Theme Specific Component Fixes */
body.light-theme .profile-sidebar {
  border-right-color: var(--border-subtle);
}

/* --- ULTRA MODERN KART (Apple Style) --- */
.personality-card-item {
  border-radius: 24px !important; /* Daha yuvarlak köşeler */
  border: 1px solid var(--border-color) !important;
  background-color: var(--bg-card) !important;
  /* Yumuşak, yayvan gölge */
  box-shadow: 0 2px 5px rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.02) !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover: Hafif yukarı kalkma ve gölge artışı */
.personality-card-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
  border-color: var(--accent-primary) !important; /* Kenarlık rengi değişsin */
}

/* Avatar: Squircle (Karemsi Yuvarlak) */
.personality-card-avatar-wrapper {
  width: 60px !important;
  height: 60px !important;
  border-radius: 18px !important; /* Modern Squircle */
  box-shadow: none !important; /* Avatar gölgesini kaldır, temiz olsun */
  border: 1px solid rgba(0,0,0,0.05) !important;
}

/* İsim */
.personality-card-name {
  font-size: 1.05rem !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 4px !important;
}

/* Açıklama */
.personality-card-tags {
  font-size: 0.85rem !important;
  opacity: 0.7 !important;
  line-height: 1.4 !important;
}

/* Light Theme Özel Ayarları */
body.light-theme .personality-card-item {
  background-color: #ffffff !important;
  border-color: #f1f5f9 !important; /* Çok silik kenarlık */
}


body.light-theme .input-modern,
body.light-theme .auth-input {
  background: #fcfcfc;
  border-color: var(--border-subtle);
}

body.light-theme .input-modern:focus,
body.light-theme .auth-input:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
}



/* Block Extracted */

