/* ==========================================================================
   AmbaGo AI — Ultra Lightweight & High-Performance Responsive CSS
   Optimized for maximum speed, 60/120fps fluid glass visuals & mobile devices
   ========================================================================== */

:root {
  /* Color Palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Lightweight Glass Styling (Low GPU overhead) */
  --bg-app: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass-nav: rgba(255, 255, 255, 0.82);
  --glass-border: 1px solid rgba(226, 232, 240, 0.8);
  --glass-border-focus: 1px solid rgba(59, 130, 246, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 180ms ease;
  --transition-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

/* ==========================================================================
   PERFORMANCE-OPTIMIZED LIGHTWEIGHT BACKGROUND
   ========================================================================== */
.fluid-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(243, 232, 255, 0.45) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(224, 242, 254, 0.4) 0px, transparent 50%),
    #f8fafc;
}

/* App Layout Grid (Dynamic Viewport Height for mobile keyboard & status bar) */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ==========================================================================
   HALAMAN BERANDA (LANDING PAGE)
   ========================================================================== */
.landing-page-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: transparent;
  scroll-behavior: smooth;
}

/* Landing Top Navigation */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-glass-nav);
  border-bottom: var(--glass-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.landing-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-logo-orb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}

.landing-logo-svg {
  width: 24px;
  height: 24px;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
}

.landing-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.landing-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  padding: 1px 6px;
  border-radius: 6px;
}

.landing-brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-landing-google-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-landing-google-nav:hover {
  background: #f8fafc;
  border-color: var(--blue-500);
  transform: translateY(-1px);
}

.btn-landing-chat-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-landing-chat-nav:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  transform: translateY(-1px);
}

/* Landing Content Container */
.landing-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Hero Section */
.landing-hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 20px;
}

.landing-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.landing-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
}

/* Hero CTA Buttons */
.landing-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  width: 100%;
}

.btn-landing-hero-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.btn-landing-hero-google:hover {
  background: #f8fafc;
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
}

.btn-landing-hero-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(239, 246, 255, 0.95);
  color: var(--blue-700);
  font-size: 0.98rem;
  font-weight: 700;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  transition: all var(--transition-fast);
}

.btn-landing-hero-chat:hover {
  background: #dbeafe;
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

/* Prompt Quick Cards */
.landing-prompt-cards-wrap {
  width: 100%;
  max-width: 840px;
  text-align: left;
}

.landing-prompt-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-align: center;
}

.landing-prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.landing-prompt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all var(--transition-fast);
}

.landing-prompt-card:hover {
  background: #ffffff;
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prompt-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.prompt-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
  line-height: 1.35;
}

.prompt-arrow {
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.landing-prompt-card:hover .prompt-arrow {
  transform: translateX(3px);
}

/* Features Section */
.landing-features-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.feature-card {
  padding: 24px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  background: #ffffff;
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Landing CTA Banner */
.landing-cta-banner {
  width: 100%;
}

.landing-cta-card {
  padding: 38px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cta-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 20px;
}

.btn-landing-cta-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #ffffff;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-landing-cta-google:hover {
  background: #f8fafc;
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.landing-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: var(--glass-border);
}

/* ==========================================================================
   CHAT APPLICATION VIEW
   ========================================================================== */
.chat-app-view {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Sidebar Backdrop (Mobile overlay) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
}

.sidebar-backdrop.active {
  display: block;
}

/* Sidebar Component */
.sidebar {
  width: 270px;
  min-width: 270px;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: var(--glass-border);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform var(--transition-smooth);
}

.sidebar.collapsed {
  transform: translateX(-100%);
  width: 0;
  min-width: 0;
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-orb {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 5px;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Sidebar Action: New Chat */
.sidebar-action-wrap {
  padding: 4px 12px 10px;
}

.new-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.new-chat-btn:hover {
  border-color: var(--blue-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.shortcut-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-600);
  font-family: var(--font-mono);
}

/* Search Box */
.search-box-wrap {
  padding: 0 12px 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 10px;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  color: var(--text-main);
}

.clear-search-btn {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 2px 4px;
}

/* History List */
.history-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
}

.history-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px 4px;
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  border-color: rgba(226, 232, 240, 0.8);
}

.history-item.active {
  background: #ffffff;
  color: var(--blue-700);
  border-color: var(--blue-200);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.history-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 4px;
}

.history-item-actions {
  display: none;
  align-items: center;
  gap: 2px;
}

.history-item:hover .history-item-actions,
.history-item.active .history-item-actions {
  display: flex;
}

.item-action-btn {
  padding: 3px;
  border-radius: 5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-action-btn:hover {
  color: var(--text-main);
  background: rgba(37, 99, 235, 0.08);
}

.empty-history-text {
  padding: 20px 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Sidebar Footer & User Card */
.sidebar-footer {
  padding: 10px 12px;
  border-top: var(--glass-border);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.sidebar-account-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 7px;
  border-radius: 6px;
}

.sidebar-account-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #059669;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.sidebar-user-card:hover {
  border-color: var(--blue-300, #93c5fd);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.user-avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-settings-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 4px;
}

.user-settings-icon:hover {
  color: var(--blue-600);
}

/* ==========================================================================
   CHAT TOP NAVBAR & CONTROLS
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.top-navbar {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  z-index: 40;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.icon-button:hover {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
  display: none;
}

.nav-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-back-home-btn:hover {
  background: #dbeafe;
}

/* Nav Auth Google Login / Chip */
.nav-auth-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-google-login-btn:hover {
  background: #dbeafe;
}

.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.nav-user-chip:hover {
  border-color: var(--blue-400);
}

.nav-user-avatar-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-initials {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
}

.nav-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firebase-sync-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   CHAT VIEWPORT & MESSAGES
   ========================================================================== */
.chat-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}

.chat-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 16px 140px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Empty State */
.empty-state {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 0 16px;
}

.empty-logo-wrap {
  margin-bottom: 18px;
}

.orb-visual {
  width: 64px;
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.3);
}

.orb-ring-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.4) 0%, transparent 70%);
}

.orb-core {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.orb-core-svg {
  width: 24px;
  height: 24px;
}

.empty-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text-main);
}

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

/* Messages List */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.message-row {
  display: flex;
  width: 100%;
}

/* User Message */
.message-row.user-row {
  justify-content: flex-end;
}

.user-bubble-wrap {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  word-break: break-word;
  white-space: pre-wrap;
}

.message-meta-user {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding-right: 2px;
}

/* Assistant Message */
.message-row.assistant-row {
  justify-content: flex-start;
}

.assistant-bubble-wrap {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.assistant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffffff;
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

.assistant-avatar svg {
  width: 20px;
  height: 20px;
}

.assistant-body {
  flex: 1;
  min-width: 0;
}

.assistant-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.assistant-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.assistant-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.assistant-markdown-content {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--text-main);
  word-break: break-word;
}

/* Thinking Indicator (3 Bouncing Dots) */
.thinking-container {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: var(--glass-border);
  border-radius: 10px;
  margin-top: 2px;
}

.thinking-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 12px;
}

.thinking-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
  display: inline-block;
  animation: thinkDot 1.1s infinite ease-in-out;
}

.thinking-indicator span:nth-child(1) { animation-delay: 0s; }
.thinking-indicator span:nth-child(2) { animation-delay: 0.15s; }
.thinking-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes thinkDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Assistant Message Actions */
.message-actions-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.msg-act-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.msg-act-btn:hover {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.msg-act-btn.copied {
  color: #10b981;
}

/* Markdown Styling */
.assistant-markdown-content p { margin-bottom: 10px; }
.assistant-markdown-content p:last-child { margin-bottom: 0; }
.assistant-markdown-content h1,
.assistant-markdown-content h2,
.assistant-markdown-content h3 {
  color: var(--text-main);
  font-weight: 700;
  margin: 14px 0 6px;
}
.assistant-markdown-content h1 { font-size: 1.25rem; }
.assistant-markdown-content h2 { font-size: 1.12rem; }
.assistant-markdown-content h3 { font-size: 1rem; }
.assistant-markdown-content ul,
.assistant-markdown-content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.assistant-markdown-content li { margin-bottom: 3px; }
.assistant-markdown-content blockquote {
  border-left: 3px solid var(--blue-600);
  padding: 6px 12px;
  margin: 10px 0;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}
.assistant-markdown-content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-700);
}

.code-block-wrapper {
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  border: var(--glass-border);
  background: #f8fafc;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: #f1f5f9;
  border-bottom: var(--glass-border);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 5px;
}

.code-copy-btn:hover {
  background: #ffffff;
  color: var(--text-main);
}

.code-block-wrapper pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
}

.code-block-wrapper pre code {
  background: transparent !important;
  padding: 0 !important;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 8px;
  border: var(--glass-border);
  background: #ffffff;
}

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

.assistant-markdown-content th {
  background: #f1f5f9;
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: var(--glass-border);
}

.assistant-markdown-content td {
  padding: 8px 12px;
  border-bottom: var(--glass-border);
}

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

/* ==========================================================================
   COMPOSER (STICKY FLOATING BOTTOM)
   ========================================================================== */
.composer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  display: flex;
  justify-content: center;
  z-index: 30;
}

.composer-glass-box {
  width: 100%;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
  padding: 6px 8px 6px 16px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.composer-glass-box:focus-within {
  background: #ffffff;
  border-color: var(--blue-500);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.15), 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.composer-textarea {
  flex: 1;
  max-height: 160px;
  min-height: 24px;
  resize: none;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
  padding: 5px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.composer-textarea::placeholder {
  color: var(--text-muted);
}

.composer-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.composer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.voice-btn {
  color: var(--text-muted);
}
.voice-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}
.voice-btn.recording {
  color: #ef4444;
  background: #fee2e2;
}

.send-btn {
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.send-btn:hover:not(:disabled) {
  background: var(--blue-700);
  transform: scale(1.03);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.send-btn .stop-icon { display: none; }

.composer-glass-box.generating .send-btn {
  background: #ef4444;
  color: #ffffff;
  opacity: 1 !important;
}
.composer-glass-box.generating .send-btn .send-icon { display: none; }
.composer-glass-box.generating .send-btn .stop-icon { display: block; }

/* ==========================================================================
   MODALS (LOGIN, PROFILE, SETTINGS, ETC.)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.modal-confirm { max-width: 400px; }

.modal-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--glass-border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-close-btn:hover { color: var(--text-main); }

.modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.setting-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 6px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: var(--glass-border);
}
.setting-item:last-child { border-bottom: none; }

.setting-label { font-size: 0.86rem; font-weight: 600; color: var(--text-main); }
.setting-desc { font-size: 0.72rem; color: var(--text-secondary); }

.form-select, .form-input {
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-main);
  font-size: 0.82rem;
}
.form-select:focus, .form-input:focus {
  border-color: var(--blue-500);
}
.form-input { width: 100%; }

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 22px;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .2s;
}
input:checked + .slider { background-color: var(--blue-600); }
input:checked + .slider:before { transform: translateX(18px); }

/* Common Buttons */
.btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-primary { background: var(--blue-600); color: #ffffff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-secondary { background: #f8fafc; border: var(--glass-border); color: var(--text-main); }
.btn-secondary:hover { background: #f1f5f9; }
.btn-danger { background: #fee2e2; color: #ef4444; border: 1px solid #fca5a5; }
.btn-danger:hover { background: #ef4444; color: #ffffff; }

/* Google Login Card */
.login-card {
  max-width: 420px;
  padding: 24px 20px 20px;
  position: relative;
  text-align: center;
}
.login-close-btn { position: absolute; top: 12px; right: 12px; }
.login-header { margin-bottom: 20px; }
.login-logo-orb {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.login-orb-svg { width: 36px; height: 36px; }
.login-title { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.login-subtitle { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.4; }
.login-body { display: flex; flex-direction: column; gap: 12px; }

.btn-google-login-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.btn-google-login-action:hover {
  background: #f8fafc;
  border-color: var(--blue-500);
}

.btn-fast-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  background: #eff6ff;
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  transition: all var(--transition-fast);
}
.btn-fast-auth:hover { background: #dbeafe; }

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 4px 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.login-divider span {
  padding: 0 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.email-login-box { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-field-wrap label { font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 3px; }
.input-field-wrap input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.84rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.email-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }

.btn-guest-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
}
.btn-guest-link:hover { color: var(--blue-600); text-decoration: underline; }

.firebase-config-badge {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: left;
}
.fb-badge-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.fb-status-pulse { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.fb-badge-title { font-size: 0.75rem; font-weight: 700; color: #0f172a; }
.fb-badge-grid { font-size: 0.7rem; color: var(--text-secondary); }
.fb-badge-grid .fb-label { color: var(--text-muted); font-weight: 600; }
.fb-badge-grid .fb-val { font-family: var(--font-mono); }

/* Account Modal */
.account-card { max-width: 440px; }
.account-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.account-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}
.account-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.account-email { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.account-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-google { background: #f1f5f9; color: #334155; }
.badge-firebase { background: #eff6ff; color: var(--blue-700); }

.account-details-list { display: flex; flex-direction: column; gap: 8px; }
.account-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.78rem;
}
.account-detail-row .detail-label { color: var(--text-secondary); font-weight: 500; }
.account-detail-row .detail-value { font-weight: 600; color: var(--text-main); }
.account-detail-row .mono-val { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue-700); }
.account-detail-row .text-success { color: #059669; }

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast-message {
  padding: 8px 14px;
  background: #ffffff;
  border: var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

/* Font Size Settings */
body.font-compact .assistant-markdown-content,
body.font-compact .user-bubble { font-size: 0.86rem; }
body.font-large .assistant-markdown-content,
body.font-large .user-bubble { font-size: 1.02rem; }

/* ==========================================================================
   CONSOLIDATED ULTRA-RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  /* Landing page mobile optimization */
  .landing-nav-inner {
    padding: 10px 14px;
  }
  .landing-brand-tag {
    display: none;
  }
  .landing-content {
    padding: 28px 14px 48px;
    gap: 40px;
  }
  .landing-hero-title {
    font-size: 2rem;
  }
  .landing-hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .landing-hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-landing-hero-google,
  .btn-landing-hero-chat {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 18px 16px;
  }

  /* Chat app mobile layout */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .close-sidebar-btn {
    display: flex;
  }
  .desktop-sidebar-toggle {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  .top-navbar {
    padding: 0 10px;
  }
  .nav-back-home-btn span {
    display: none;
  }
  .nav-back-home-btn {
    padding: 6px;
  }

  .chat-inner {
    padding: 14px 10px 130px;
  }
  .user-bubble-wrap {
    max-width: 88%;
  }
  .composer-container {
    padding: 0 8px calc(8px + env(safe-area-inset-bottom));
  }
  .composer-glass-box {
    border-radius: 20px;
    padding: 6px 6px 6px 12px;
  }
  .empty-title {
    font-size: 1.55rem;
  }
  .empty-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .btn-landing-google-nav span {
    display: none;
  }
  .btn-landing-google-nav {
    padding: 7px 10px;
  }
  .btn-landing-chat-nav {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .nav-google-login-btn span {
    display: none;
  }
  .nav-google-login-btn {
    padding: 6px 8px;
  }
  .landing-prompt-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
}
