@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color:           transparent;
  --bg-color-secondary: rgba(255, 255, 255, 0.04);
  --text-primary:       #ffffff;
  --text-secondary:     rgba(255, 255, 255, 0.70);
  --accent-primary:     #0d9488;
  --accent-hover:       #0f766e;
  --accent-light:       rgba(13, 148, 136, 0.15);
  --border-color:       rgba(255, 255, 255, 0.10);
  --sidebar-width:      260px;
  --font-family:        'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --navbar-height:      70px;
  --max-content-width:  100%;
}

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

html, body, #root {
  background: transparent !important;
  background-color: transparent !important;
  height: 100%;
  width: 100%;
  color: #ffffff;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: transparent !important;
  background-color: transparent !important;
}

#root {
  background: transparent !important;
}

/* Scrollbar */

::-webkit-scrollbar { width: 5px; height: 5px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }

button { font-family: var(--font-family); cursor: pointer; border: none; background: none; }

input, textarea { font-family: var(--font-family); }
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-color-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  transition: width var(--transition-normal), padding var(--transition-normal), border-right var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 0;
  padding: 1.5rem 0;
  border-right: 0px solid transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar-header {
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.sidebar-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sidebar-new-chat {
  margin-bottom: 2rem;
}

.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.new-chat-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--text-primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
  letter-spacing: 0.05em;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  color: var(--text-primary);
  position: relative;
}

.conversation-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.conversation-item.active {
  background-color: var(--accent-light);
  color: var(--accent-primary);
  font-weight: 500;
}

.conversation-item.active::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 10%;
  height: 80%;
  width: 4px;
  background-color: var(--accent-primary);
  border-radius: 0 4px 4px 0;
}

.conv-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.conversation-item.active .conv-icon {
  color: var(--accent-primary);
}

.conv-title {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.delete-conv-btn {
  opacity: 0;
  color: var(--text-secondary);
  padding: 0.25rem;
  border-radius: 4px;
}

.conversation-item:hover .delete-conv-btn {
  opacity: 1;
}

.delete-conv-btn:hover {
  color: var(--accent-primary);
  background-color: rgba(229, 9, 20, 0.1);
}

/* ── Sidebar footer / user chip ───────────────────────────────────────────── */

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.user-profile:hover {
  background-color: rgba(139, 92, 246, 0.08);
}

/* Small avatar (chip) */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow var(--transition-fast);
}

.avatar-user {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #5a5c98 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px rgba(116, 117, 184, 0.2);
}

.user-profile:hover .avatar-user {
  box-shadow: 0 0 0 2px rgba(116, 117, 184, 0.3);
}

.avatar-guest {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.avatar-initials {
  line-height: 1;
  user-select: none;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.username {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.user-plan-guest {
  color: #f59e0b;
  font-weight: 500;
}

.settings-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.user-profile:hover .settings-icon {
  opacity: 1;
}

/* ── Profile modal overlay ─────────────────────────────────────────────────── */

.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInOverlay 0.15s ease;
}

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

.profile-modal {
  background: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideUpModal 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Modal header bar */
.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.profile-close-btn:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

/* Avatar hero */
.profile-avatar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem 1.4rem 1.2rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.avatar-user {
  font-size: 1.6rem;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(116, 117, 184, 0.18);
}

.profile-avatar.avatar-guest {
  width: 72px;
  height: 72px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
}

.profile-avatar-initials {
  line-height: 1;
  user-select: none;
}

.profile-avatar-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Field rows */
.profile-fields {
  padding: 0.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  flex-shrink: 0;
  max-width: 52%;
}

/* Right-side container for value + action buttons */
.profile-field-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.profile-field-value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.profile-field-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-field-muted {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Pencil edit trigger */
.profile-edit-pencil {
  display: flex;
  align-items: center;
  padding: 0.22rem;
  border-radius: 5px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.profile-field-editable:hover .profile-edit-pencil {
  opacity: 1;
}

.profile-edit-pencil:hover {
  color: var(--accent-primary);
  background: var(--accent-light);
}

/* Inline edit row */
.profile-edit-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}

.profile-name-input {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--accent-primary);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-family);
  padding: 0.3rem 0.6rem;
  outline: none;
  min-width: 0;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.15);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-name-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22);
}

/* Save / Cancel buttons next to input */
.profile-edit-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.profile-edit-action.save {
  background: var(--accent-primary);
  color: #fff;
}

.profile-edit-action.save:hover {
  background: var(--accent-hover);
}

.profile-edit-action.cancel {
  background: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.profile-edit-action.cancel:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Lock badge — marks read-only fields managed by the website */
.profile-lock-badge {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Last field: no bottom border */
.profile-field-last {
  border-bottom: none !important;
}

/* Info note for logged-in users */
.profile-info-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.8;
}


/* Session badges in field value */
.session-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.session-auth {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.session-guest {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Guest note at bottom */
.profile-guest-note {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

/* ── Modal tabs ──────────────────────────────────────────────────────────── */

.profile-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-color);
  border-radius: 8px;
  padding: 0.2rem;
}

.profile-tab {
  flex: 1;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-tab:hover {
  color: var(--text-primary);
}

.profile-tab.active {
  background: var(--bg-color-secondary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── Preferences tab body ────────────────────────────────────────────────── */

.pref-body {
  padding: 0.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 440px;
  overflow-y: auto;
}

.pref-section {
  padding: 1.1rem 0 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.pref-section:last-child {
  border-bottom: none;
}

.pref-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.pref-section-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.pref-row-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Toggle button group (System / Light / Dark, Concise / Balanced / Detailed) */
.pref-toggle-group {
  display: flex;
  gap: 0.2rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.18rem;
}

.pref-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pref-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.06);
}

.pref-toggle-btn.active {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}

/* Model select dropdown */
.pref-select {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--font-family);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 170px;
}

.pref-select:focus,
.pref-select:hover {
  border-color: var(--accent-primary);
}






.chat-input-wrapper {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
}

.chat-input-wrapper.hero-view {
  margin-top: 1.5rem;
  padding: 0 1.5rem;
  background: transparent !important;
}

.chat-input-wrapper.chat-view {
  margin-top: 0;
  padding: 0.25rem 0.5rem 0.5rem;
  background: transparent !important;
  background-color: transparent !important;
  position: relative;
  z-index: 10;
  width: 100%;
}

.chat-input-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px;
  padding: 0.4rem 0.85rem;
  width: 100%;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.chat-input-container:focus-within {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(20, 184, 166, 0.6) !important;
}

.action-btn {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.action-btn.listening {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.15);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  resize: none;
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.send-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.send-btn.active {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.send-btn.active:hover {
  background: #0f766e !important;
  transform: translateY(-1px);
}

.input-hint {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.40);
  margin-top: 0.65rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

/* Disabled Input Layout styling */
.chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-input-container.disabled {
  opacity: 0.4;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  pointer-events: none;
  cursor: not-allowed;
}

.chat-input-container.disabled .action-btn,
.chat-input-container.disabled .send-btn {
  opacity: 0.3;
}
.chat-view-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.empty-chat-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  gap: 0.5rem;
  text-align: center;
  padding: 0.5rem;
}

.sparkle-icon {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.empty-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.empty-chat-simple h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-chat-simple p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
}

.message-row {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-row.user .message-avatar {
  background-color: var(--accent-primary);
  color: white;
}

.message-row.bot .message-avatar {
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.message-content {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding-top: 0.25rem;
}

.typing-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

.chat-input-area {
  width: 100%;
}
.markdown-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.markdown-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Inline code ────────────────────────────────────────────── */
.markdown-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: rgba(167, 139, 250, 0.10);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 5px;
  padding: 0.15em 0.45em;
}

/* ── Fenced code blocks (``` ``` ) ──────────────────────────── */
.markdown-body pre {
  background: #0f0f12;
  border: 1px solid #2a2b35;
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  overflow-x: auto;
  position: relative;
}

.markdown-body pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  background: transparent;
  border: none;
  padding: 0;
  color: #d4d4d4;
}

/* ── Blockquote ─────────────────────────────────────────────── */
.markdown-body blockquote {
  border-left: 3px solid var(--accent-primary);
  background: rgba(167, 139, 250, 0.06);
  margin: 1rem 0;
  padding: 0.75rem 1.1rem;
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.markdown-body blockquote p {
  margin-bottom: 0;
}

/* ── Tables ─────────────────────────────────────────────────── */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.markdown-body th {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
}

.markdown-body td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.markdown-body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Horizontal rule ────────────────────────────────────────── */
.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* ── Links ──────────────────────────────────────────────────── */
.markdown-body a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.markdown-body a:hover {
  color: var(--accent-hover);
}


.chat-view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-model-badge {
  color: var(--accent-primary);
  background-color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.model-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}

.chat-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--bg-color);
}

.topbar-icon-btn:hover {
  background: var(--bg-color-secondary);
  color: var(--text-primary);
}

.empty-chat-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.25rem 1rem 0;
}

.empty-chat-simple {
  margin-bottom: 0.75rem;
  text-align: center;
}

.sparkle-icon {
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.empty-logo-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.empty-chat-simple h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.empty-chat-simple p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.35;
}

.empty-chat-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 1000px;
  width: 100%;
  padding: 0 1rem;
  margin-top: 0.25rem;
}

.suggestion-card {
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.suggestion-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.suggestion-svg-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.suggestion-card:hover .suggestion-svg-icon {
  transform: scale(1.12);
}

.suggestion-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

/* Interactive Option Buttons & Custom Dialog Card */
.custom-dialog-card {
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-wrap;
}

.dialog-header span {
  white-space: pre-wrap;
}

.dialog-header-icon {
  background: var(--accent-light);
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.dialog-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dialog-option-row {
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

.dialog-option-row .option-number {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.dialog-option-row:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.dialog-option-row:hover .option-number {
  background: var(--accent-hover);
  color: #ffffff;
  transform: scale(1.05);
}

.dialog-option-row.selected {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 0 1.5px var(--accent-primary);
}

.dialog-option-row.selected .option-number {
  background: var(--accent-primary);
  color: #ffffff;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-color);
}

.dialog-skip-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  transition: all 0.15s ease;
}

.dialog-skip-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-color);
}
.dialog-submit-btn {
  background: var(--accent-primary);
  border: none;
  border-radius: 6px;
  color: #141416;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
  transition: background 0.15s ease;
}

.dialog-submit-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.dialog-submit-btn:disabled {
  background: #222222;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}

/* Dialog Custom Typing Box */
.dialog-custom-input-container {
  margin-top: 0.5rem;
  width: 100%;
}

.dialog-custom-input {
  width: 100%;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.dialog-custom-input:focus {
  border-color: var(--accent-primary);
}

/* Prompt Settings Modal Styles */
.prompt-settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.prompt-settings-modal {
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-header .close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-header .close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  max-height: 70vh;
}

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

.settings-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.preset-select,
.prompt-textarea,
.filter-input {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  padding: 0.75rem;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.preset-select:focus,
.prompt-textarea:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.prompt-textarea {
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.15);
}

.modal-footer button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-footer .cancel-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.modal-footer .cancel-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.modal-footer .save-btn {
  background: var(--accent-primary);
  border: none;
  color: #141416;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
}

.modal-footer .save-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ── Toast Notification ───────────────────────────────────────── */
@keyframes toastInOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(12px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(6px); }
}

.toast-notification {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #18181b;
  border: 1px solid #7c5cfc;
  color: #ffffff;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.25);
  animation: toastInOut 2.5s ease forwards;
}

/* ── Streaming Cursor (blinks on last bot message while generating) ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.streaming-cursor::after {
  content: '▋';
  display: inline-block;
  color: var(--accent-primary, #a78bfa);
  animation: blink 0.9s step-start infinite;
  margin-left: 2px;
  font-size: 0.9em;
  vertical-align: baseline;
}

/* ── Scroll to Bottom Down Arrow Button ── */
.scroll-down-btn {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface-elevated, #2a2a35);
  border: 1px solid var(--border-color, #3f3f46);
  color: var(--text-secondary, #a1a1aa);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.scroll-down-btn:hover {
  background-color: var(--surface-hover, #373747);
  color: var(--text-primary, #ffffff);
  border-color: var(--accent-primary, #a78bfa);
  transform: translateX(-50%) translateY(-2px);
}

/* Minimize / Maximize dialog styles */
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dialog-header-text {
  flex: 1;
  margin-right: 0.75rem;
}

.dialog-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition-fast, 0.15s);
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dialog-toggle-btn:hover {
  background: var(--accent-primary, #a78bfa);
  color: #000000;
  border-color: var(--accent-primary, #a78bfa);
  transform: scale(1.08);
}

.custom-dialog-card.minimized {
  gap: 0;
  padding: 0.85rem 1.25rem;
}

/* User action buttons below user text bubble */
.user-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.user-action-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a1a1aa);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s);
}

.user-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #ffffff);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bot action buttons below bot text bubble */
.bot-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-left: 0.25rem;
}

.bot-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #a1a1aa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast, 0.15s);
}

.bot-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #ffffff);
}

/* Highlighting Liked/Disliked states */
.bot-action-btn.active-like {
  color: #4ade80 !important; /* Green */
}

.bot-action-btn.active-dislike {
  color: #f87171 !important; /* Red */
}

/* Inline Edit Box Styles */
.inline-edit-container {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-elevated, #1f1f2e);
  border: 1px solid var(--border-color, #3f3f46);
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.inline-edit-textarea {
  background-color: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.inline-edit-textarea:focus {
  border-color: #3b82f6; /* Blue outline */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.inline-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-edit-subtext {
  display: flex;
  align-items: center;
  color: #a1a1aa;
  font-size: 0.82rem;
  flex: 1;
  min-width: 250px;
  line-height: 1.35;
}

.inline-edit-info-icon {
  color: #a1a1aa;
  margin-right: 8px;
  flex-shrink: 0;
}

.inline-edit-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.inline-edit-btn {
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}

.inline-edit-btn.cancel {
  background-color: #27272a;
  color: #ffffff;
}

.inline-edit-btn.cancel:hover {
  background-color: #3f3f46;
}

.inline-edit-btn.save {
  background-color: #ffffff;
  color: #09090b;
}

.inline-edit-btn.save:hover {
  background-color: #e4e4e7;
}

.inline-edit-btn.save:disabled {
  background-color: #27272a;
  color: #71717a;
  cursor: not-allowed;
}

/* Variant Navigation Buttons */
.variant-nav-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2px 6px;
  margin-left: 0.5rem;
}

.variant-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #a1a1aa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.variant-nav-btn:hover:not(:disabled) {
  color: var(--text-primary, #ffffff);
  background-color: rgba(255, 255, 255, 0.08);
}

.variant-nav-btn:disabled {
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

.variant-nav-label {
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.78rem;
  font-weight: 500;
  user-select: none;
}

/* Resizable Split Pane Layout */
.chat-split-body-container {
  display: flex;
  flex: 1;
  width: 100%;
  height: calc(100% - 64px); /* Subtract topbar height */
  overflow: hidden;
  position: relative;
}

.chat-left-pane {
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-left-pane .chat-messages-area {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}

/* Vertical Splitter Divider */
.chat-layout-splitter {
  width: 6px;
  background-color: var(--border-color, rgba(255, 255, 255, 0.08));
  cursor: col-resize;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 10;
  height: 100%;
}

.chat-layout-splitter:hover,
.chat-layout-splitter.resizing {
  background-color: var(--accent-primary, #a78bfa);
}

.chat-right-pane {
  height: 100%;
  background: var(--bg-color-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 360px;
  width: 400px;
  max-width: 500px;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
}

.chat-right-pane-inner {
  padding: 0.85rem;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* Override standard dialog padding/margin when placed in right sidebar */
.chat-right-pane-inner .custom-dialog-card {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  gap: 1.25rem;
}

.chat-right-pane-inner .dialog-options-list {
  max-height: none;
  flex: 1;
  overflow-y: auto;
}

.chat-right-pane-inner .dialog-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.chat-right-pane-inner .dialog-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gmail button styling */
.topbar-gmail-btn {
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.15);
  color: var(--accent-primary, #a78bfa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast, 0.15s) ease;
  margin-right: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-gmail-btn:hover {
  background: var(--accent-primary, #a78bfa);
  color: #000000;
  border-color: var(--accent-primary, #a78bfa);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(167, 139, 250, 0.25);
}

.topbar-gmail-btn:active {
  transform: translateY(0);
}

/* Disabled input area & tooltip */
.chat-left-pane .chat-input-area.disabled-mode-layout {
  padding: 1rem 1.5rem;
  background-color: transparent;
  border-top: none;
}

.disabled-mode-layout .chat-input-container {
  opacity: 0.45;
  cursor: not-allowed !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.disabled-mode-layout .chat-input-container * {
  cursor: not-allowed !important;
}

.disabled-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--accent-primary, #a78bfa);
  color: #000000;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  z-index: 100;
  width: max-content;
  max-width: 320px;
  line-height: 1.35;
}

.disabled-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent-primary, #a78bfa) transparent transparent transparent;
}

.disabled-input-wrapper:hover .disabled-hover-tooltip,
.disabled-input-wrapper:focus-within .disabled-hover-tooltip,
.disabled-input-wrapper:active .disabled-hover-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Splitter Collapse Button */
.chat-layout-splitter {
  position: relative;
}

.splitter-collapse-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent-primary, #a78bfa);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.splitter-collapse-btn:hover {
  background-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.15) rotate(180deg);
  box-shadow: 0 6px 12px rgba(167, 139, 250, 0.4);
}

.splitter-collapse-btn svg {
  transition: transform 0.2s ease;
}

/* Floating Expand Dialog Button */
.floating-expand-dialog-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent-primary, #7c5cfc);
  color: #ffffff;
  border: none;
  border-radius: 24px 0 0 24px;
  padding: 14px 20px 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: -4px 0 16px rgba(124, 92, 252, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-expand-dialog-btn:hover {
  background-color: #ffffff;
  color: var(--accent-primary, #7c5cfc);
  box-shadow: -4px 0 20px rgba(124, 92, 252, 0.6);
  padding-left: 22px;
}


/* Blinking Pulse Animation */
.pulsing-highlight {
  animation: buttonPulse 2s infinite ease-in-out;
}

@keyframes buttonPulse {
  0% {
    box-shadow: -4px 0 8px rgba(167, 139, 250, 0.4);
    opacity: 0.95;
  }
  50% {
    box-shadow: -4px 0 24px rgba(167, 139, 250, 0.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    box-shadow: -4px 0 8px rgba(167, 139, 250, 0.4);
    opacity: 0.95;
  }
}


/* ── Insight pane: query-aware proof callout + audit CTA ───────────────────── */
/* Occupies roughly the top fifth of the collapsible pane, so it reads as a
   deliberate credibility panel rather than a thin strip. */
.insight-pane {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  background: var(--accent-light);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.insight-pane-body { display: flex; flex-direction: column; gap: 6px; }
.insight-pane-metric { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.insight-pane-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent-primary);
  letter-spacing: -1px;
}
.insight-pane-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.insight-pane-call {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary, #f4f4f5);
}
.insight-pane-cta {
  width: 100%;
  border: none;
  background: #7c5cfc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.insight-pane-cta:hover { background: #6d4ef0; transform: translateY(-1px); }

/* Default (non-split) layout: sits above the input, single row to save height */
.chat-container > .insight-pane {
  flex-direction: row;
  align-items: center;
  min-height: 0;
  margin: 0 16px 8px 16px;
  padding: 10px 16px;
}
.chat-container > .insight-pane .insight-pane-body { flex: 1; gap: 3px; }
.chat-container > .insight-pane .insight-pane-num { font-size: 20px; }
.chat-container > .insight-pane .insight-pane-cta { width: auto; flex-shrink: 0; }

@media (max-width: 640px) {
  .insight-pane-call { font-size: 12.5px; }
  .chat-container > .insight-pane .insight-pane-call { display: none; }
}

/* ── Proof strip: rotating metrics + audit CTA ─────────────────────────────── */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  margin: 0.6rem auto 0.2rem;
  max-width: 1000px;
  width: 100%;
  border: 1px solid rgba(124, 92, 252, 0.28);
  border-left: 3.5px solid #7c5cfc;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.13), rgba(124, 92, 252, 0.04));
  border-radius: 12px;
  min-height: 52px;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(124, 92, 252, 0.08), inset 0 0 12px rgba(124, 92, 252, 0.02);
}
.proof-strip-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  animation: proofFade 0.45s ease;
}
@keyframes proofFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.proof-strip-num {
  font-size: 24px;
  font-weight: 800;
  color: #7c5cfc;
  letter-spacing: -0.5px;
  line-height: 1.05;
}
.proof-strip-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f4f4f5);
  text-overflow: ellipsis;
  overflow: hidden;
}
.proof-strip-cta {
  flex-shrink: 0;
  border: none;
  background: #7c5cfc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.proof-strip-cta:hover { background: #6d4ef0; transform: translateY(-1px); }
@media (max-width: 560px) {
  .proof-strip-label { display: none; }
}

.bot-avatar-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ── Email Options Modal ────────────────────────────── */
.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.email-modal-card {
  background: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.email-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.email-modal-header-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.email-modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.email-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.email-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.email-input-group input {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.email-input-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.email-direct-send-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.email-direct-send-btn {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(116, 117, 184, 0.25);
}

.email-direct-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(116, 117, 184, 0.35);
}

.email-direct-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-send-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.email-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.2rem 0;
}

.email-divider::before,
.email-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.email-divider span {
  padding: 0 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.email-providers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.email-provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.email-provider-card:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.email-provider-card.gmail svg { color: #ea4335; }
.email-provider-card.outlook svg { color: #0078d4; }
.email-provider-card.yahoo svg { color: #6001d2; }
.email-provider-card.mailto svg { color: var(--accent-primary); }

/* ── MinimalChatView.css — 100% Transparent Bubbles & Elements ── */

.minimal-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Messages Area ────────────────────────────────────────────── */
.minimal-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  scroll-behavior: smooth;
  background: transparent !important;
  background-color: transparent !important;
}

/* ── Empty / Welcome State ────────────────────────────────────── */
.minimal-empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  max-width: 760px;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  background: transparent !important;
}

.minimal-empty-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.minimal-empty-logo:hover {
  transform: scale(1.05);
}

.minimal-empty-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
}

.minimal-empty-header p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 1.75rem;
  line-height: 1.55;
  font-family: 'Outfit', sans-serif;
}

/* Suggestion grid — 2 cols */
.minimal-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  background: transparent !important;
}

@media (max-width: 560px) {
  .minimal-suggestions-grid { grid-template-columns: 1fr; }
}

.minimal-suggestion-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.minimal-suggestion-card:hover {
  border-color: rgba(20, 184, 166, 0.6) !important;
  background: rgba(20, 184, 166, 0.08) !important;
  transform: translateY(-2px);
}

.minimal-suggestion-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  font-family: 'Outfit', sans-serif;
}

/* ── Message Rows ─────────────────────────────────────────────── */
.minimal-msg-row {
  display: flex;
  gap: 0.85rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  background: transparent !important;
}

.minimal-msg-row.user {
  flex-direction: row-reverse;
}

.minimal-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.minimal-avatar-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.minimal-msg-content {
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 82%;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

/* User bubble — Transparent with subtle translucent border (No solid colors) */
.minimal-msg-row.user .minimal-msg-content {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px;
  box-shadow: none !important;
}

.minimal-msg-row.user .minimal-msg-content p {
  margin: 0;
  color: #ffffff;
}

/* Bot bubble — Transparent with subtle translucent border */
.minimal-msg-row.bot .minimal-msg-content {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  border-bottom-left-radius: 4px;
  box-shadow: none !important;
}

/* Markdown inside bot bubble */
.minimal-msg-row.bot .minimal-msg-content p { color: rgba(255, 255, 255, 0.92); margin: 0 0 0.5rem; }
.minimal-msg-row.bot .minimal-msg-content p:last-child { margin-bottom: 0; }
.minimal-msg-row.bot .minimal-msg-content a { color: #14b8a6; font-weight: 600; text-decoration: underline; }
.minimal-msg-row.bot .minimal-msg-content strong { color: #ffffff; font-weight: 700; }
.minimal-msg-row.bot .minimal-msg-content ul,
.minimal-msg-row.bot .minimal-msg-content ol { padding-left: 1.25rem; color: rgba(255, 255, 255, 0.90); }
.minimal-msg-row.bot .minimal-msg-content li { color: rgba(255, 255, 255, 0.90); margin-bottom: 0.25rem; }
.minimal-msg-row.bot .minimal-msg-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
  color: #14b8a6;
}
.minimal-msg-row.bot .minimal-msg-content pre {
  background: rgba(0, 0, 0, 0.3);
  color: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

/* Streaming cursor */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.streaming-cursor::after {
  content: '▋';
  display: inline-block;
  animation: blink 0.85s step-end infinite;
  color: #14b8a6;
  margin-left: 2px;
}

/* ── Inline Option Buttons — Transparent style ───────────────── */
.minimal-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.minimal-option-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(20, 184, 166, 0.4) !important;
  color: #14b8a6;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.minimal-option-btn:hover {
  background: rgba(20, 184, 166, 0.15) !important;
  border-color: #14b8a6 !important;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Scroll Down Button ───────────────────────────────────────── */
.minimal-scroll-down-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  z-index: 10;
}

.minimal-scroll-down-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Input Area ───────────────────────────────────────────────── */
.minimal-input-area {
  padding: 0.75rem 1.25rem 1.25rem;
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
/* ── App.css — Transparent Box Container with Low-Brightness Muted Colors ── */

.app-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: transparent !important;
  background-color: transparent !important;
}

/* ── Guest Welcome Screen ─────────────────────────────────── */
.guest-welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: transparent !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Transparent Box Container */
.guest-welcome-card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: welcomeFadeIn 0.4s ease forwards;
}

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

/* Logo */
.guest-welcome-logo {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: transparent !important;
}

.guest-welcome-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Heading */
.guest-welcome-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.45rem;
  line-height: 1.2;
}

/* Subheading */
.guest-welcome-card > p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* Form */
.guest-welcome-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.input-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guest-welcome-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.guest-welcome-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.guest-welcome-form input:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}

.guest-welcome-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.7);
}

/* Muted Low-Brightness Button */
.guest-welcome-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #0d9488;  /* Muted, low-brightness elegant teal */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

.guest-welcome-btn:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.guest-welcome-btn:active {
  transform: translateY(0);
}

/* Privacy note */
.guest-welcome-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.40);
  margin: 0.25rem 0 0;
  text-align: center;
}

/* ── App loading screen ─────────────────────────────────── */
.app-loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: transparent !important;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #0d9488;
  animation: spin 0.9s ease-in-out infinite;
}

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