/* -------------------------------------------------------------
 * xnetich.com.tr - Özel CSS Tasarım Dosyası
 * Guns.lol Tarzı Neon Vurgular, Animasyonlar ve Responsive Düzenler
 * ------------------------------------------------------------- */

/* Temel CSS Değişkenleri (Gerekirse JS ile Dinamik Güncellenir) */
:root {
  --bg-primary: #07070d;
  --bg-card: rgba(13, 11, 25, 0.45);
  --bg-card-hover: rgba(22, 19, 41, 0.6);
  --bg-widget: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.06);
  
  --accent-color: #a855f7; /* Varsayılan Mor Vurgu */
  --accent-glow: rgba(168, 85, 247, 0.45);
  --accent-glow-intense: rgba(168, 85, 247, 0.7);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  --card-glow: 0 0 50px rgba(168, 85, 247, 0.12);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* Sıfırlamalar ve Temel Yapı */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.3);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-glow-intense);
}

/* Arka Plan Canvası */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* -------------------------------------------------------------
 * 1. GİRİŞ EKRANI (CLICK TO ENTER OVERLAY)
 * ------------------------------------------------------------- */
#enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #030307;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

#enter-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.enter-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 20px var(--accent-glow-intense);
  margin-bottom: 15px;
  animation: titlePulse 2.5s infinite alternate;
}

.enter-prompt {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.8;
  animation: promptBlink 1.5s infinite ease-in-out;
}

/* -------------------------------------------------------------
 * 2. ANA PROFİL KARTI (GLASSMORPHISM CARD)
 * ------------------------------------------------------------- */
.profile-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 40px;
  box-shadow: var(--card-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

/* Giriş sonrası animasyon */
.profile-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: cardFloat 6s ease-in-out infinite;
}

/* Profil Üst Alanı */
.profile-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px var(--accent-glow);
  transition: var(--transition-smooth);
}

.profile-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px var(--accent-glow-intense);
}

/* Doğrulanmış Badge */
.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background-color: var(--accent-color);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: badgePulse 2s infinite;
}

.name-container {
  margin-bottom: 8px;
}

.display-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, var(--accent-color), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 4s linear infinite;
  display: inline-block;
}

.username {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-top: 2px;
}

/* Rozetler */
.badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.badge:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 80%;
  line-height: 1.4;
}

/* -------------------------------------------------------------
 * 3. MENÜ / TABS NAVİGASYON
 * ------------------------------------------------------------- */
.profile-nav {
  display: flex;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 5px;
  gap: 5px;
  margin-bottom: 30px;
}

.nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-link-dashboard {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.nav-link-dashboard:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

/* -------------------------------------------------------------
 * 4. TABS İÇERİK YAPISI VE ANIMASYONLARI
 * ------------------------------------------------------------- */
.profile-content {
  width: 100%;
  min-height: 280px;
  position: relative;
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
  display: block;
}

/* 1. TAB: BIO İÇERİK */
.short-bio {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 25px;
}

/* Sosyal Medya İkonları */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--hover-shadow, rgba(255,255,255,0.1));
  border-color: var(--hover-color, #fff);
  background: rgba(255, 255, 255, 0.05);
}

/* Müzik Çalar Widgetı */
.music-player {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 45%;
}

.music-cover {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: diskRotate 12s linear infinite;
  animation-play-state: paused;
}

.music-cover.playing {
  animation-play-state: running;
}

.song-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  justify-content: flex-end;
}

.player-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-color);
}

.progress-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  flex-grow: 1;
  max-width: 140px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 8px var(--accent-color);
}

.time-display {
  font-size: 0.75rem;
  color: var(--text-dark);
  min-width: 60px;
  text-align: center;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.volume-slider {
  width: 60px;
  height: 3px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 5px var(--accent-color);
}

/* İstatistik Widgetları */
.widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.widget {
  background: var(--bg-widget);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.widget:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.widget-icon {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.widget-info {
  display: flex;
  flex-direction: column;
}

.widget-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.widget-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 2. TAB: HAKKIMDA İÇERİK */
.about-container h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #fff;
  border-left: 3px solid var(--accent-color);
  padding-left: 10px;
}

.about-container h3:first-of-type {
  margin-top: 0;
}

.about-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Yetenek Barı */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.skill-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-percent {
  color: var(--accent-color);
  font-weight: 600;
}

.skill-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-color), #c084fc);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.1, 1, 0.1, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* 3. TAB: EKİP İÇERİK */
.friends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.friend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: var(--transition-smooth);
}

.friend-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.friend-left {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 80%;
}

.friend-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  object-fit: cover;
}

.friend-details {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.friend-role {
  font-size: 0.78rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.friend-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.friend-discord-btn {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  color: #5865F2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.friend-discord-btn:hover {
  background: #5865F2;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

/* 4. TAB: BOTLAR İÇERİK */
.bots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.bot-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.bot-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}

.bot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Durum Noktası */
.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.status-dot.online { background-color: #22c55e; }
.status-dot.idle { background-color: #eab308; }
.status-dot.dnd { background-color: #ef4444; }
.status-dot.offline { background-color: #64748b; }

.bot-title-group {
  display: flex;
  flex-direction: column;
}

.bot-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.bot-tag {
  font-size: 0.72rem;
  background: var(--accent-color);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.bot-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.bot-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.bot-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.bot-stat i {
  color: var(--accent-color);
}

.bot-invite-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent-color);
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.bot-invite-btn:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer / Alt Kısım */
.profile-footer {
  width: 100%;
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.profile-footer p {
  font-size: 0.75rem;
  color: var(--text-dark);
}

/* -------------------------------------------------------------
 * 5. KARE ANIMASYONLARI & KEYFRAMES
 * ------------------------------------------------------------- */
@keyframes titlePulse {
  0% { text-shadow: 0 0 10px var(--accent-glow); transform: scale(0.98); }
  100% { text-shadow: 0 0 25px var(--accent-glow-intense); transform: scale(1.02); }
}

@keyframes promptBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes rainbowText {
  to { background-position: 200% center; }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 12px 3px var(--accent-glow-intense); }
}

@keyframes diskRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* -------------------------------------------------------------
 * 6. DİNAMİK / DUYARLI UYUMLULUK (RESPONSIVE)
 * ------------------------------------------------------------- */
@media (max-width: 640px) {
  .profile-card {
    padding: 24px 20px;
    width: 95%;
  }
  
  .display-name {
    font-size: 1.8rem;
  }
  
  .profile-nav {
    flex-wrap: wrap;
    gap: 3px;
  }
  
  .nav-btn {
    font-size: 0.82rem;
    padding: 8px 4px;
    flex-basis: 48%; /* 2x2 düzen */
  }
  
  .widgets-grid {
    grid-template-columns: 1fr;
  }
  
  .bots-grid {
    grid-template-columns: 1fr;
  }
  
  .music-player {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .player-left {
    max-width: 100%;
  }
  
  .player-controls {
    justify-content: space-between;
  }
  
  .progress-container {
    max-width: none;
  }
}

/* -------------------------------------------------------------
 * 7. ABUZER AI CHAT INTERFACE (CHATGPT-STYLE PURPLE EDITION)
 * ------------------------------------------------------------- */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 520px;
  background: rgba(10, 8, 20, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(168, 85, 247, 0.05);
  margin-top: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chat-header-modes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(168, 85, 247, 0.03);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  flex-wrap: wrap;
  gap: 10px;
  z-index: 5;
}

.chat-mode-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-modes {
  display: flex;
  gap: 8px;
}

.mode-btn {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
  outline: none;
}

.mode-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-main);
  border-color: rgba(168, 85, 247, 0.3);
}

.mode-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-behavior: smooth;
}

/* ChatGPT Welcome Screen */
.chat-welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  animation: welcomeFadeIn 0.6s ease-out;
  padding: 20px;
}

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

.chat-welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.2);
  animation: welcomePulse 3s infinite alternate;
}

@keyframes welcomePulse {
  0% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
  100% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.45); border-color: rgba(168, 85, 247, 0.6); }
}

.chat-welcome-icon i {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.chat-welcome-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.chat-welcome-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.chat-suggested-prompts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggested-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-btn:hover {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

/* Chat Messages Bubbles */
.chat-msg {
  display: flex;
  gap: 16px;
  max-width: 88%;
  animation: messageFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.system-msg {
  align-self: flex-start;
}

.chat-avatar-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.system-msg .chat-avatar-wrapper {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.chat-msg.user-msg .chat-avatar-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.chat-avatar-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.chat-msg.system-msg .chat-avatar-icon {
  color: var(--accent-color);
}

.msg-bubble-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-family: var(--font-main);
  position: relative;
  word-break: break-word;
}

/* System (Abuzer) Response Style */
.chat-msg.system-msg .msg-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-top-left-radius: 4px;
}

/* User Message Style (Always Purple Theme) */
.chat-msg.user-msg .msg-bubble {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.08);
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.chat-msg.user-msg .msg-meta {
  justify-content: flex-end;
}

.speak-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  transition: var(--transition-fast);
  outline: none;
}

.speak-btn:hover {
  color: var(--accent-color);
  background: rgba(168, 85, 247, 0.08);
}

/* Pill-Shaped Input Area - ChatGPT Style */
.chat-input-area {
  display: flex;
  padding: 16px 24px 24px 24px;
  background: transparent;
  border-top: none;
  align-items: center;
  width: 100%;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 28px;
  padding: 6px 8px 6px 20px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  background: rgba(255, 255, 255, 0.06);
}

#chat-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 8px 0 !important;
  color: var(--text-main) !important;
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none !important;
  box-shadow: none !important;
}

#chat-input::placeholder {
  color: var(--text-dark);
}

#chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  outline: none;
}

/* Highlight send button when user types (handled by JS toggling class active) */
#chat-send-btn.active {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

#chat-send-btn:hover {
  transform: scale(1.05);
}

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

/* Typing Indicator (Purple Themed) */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
  opacity: 0.7;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Code highlight blocks within chat bubbles */
.msg-bubble code {
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
}

/* Responsive adjustment for chat container height on smaller screens */
@media (max-width: 640px) {
  .chat-container {
    height: 460px;
  }
  .chat-header-modes {
    padding: 10px 14px;
  }
  .chat-modes {
    flex-wrap: wrap;
  }
  .mode-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .chat-welcome-title {
    font-size: 1.3rem;
  }
  .chat-welcome-subtitle {
    font-size: 0.85rem;
  }
  .suggested-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    max-width: 100%;
  }
  .chat-input-area {
    padding: 10px 15px 15px 15px;
  }
}


