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

:root {
  /* ── Natural Warm Slate palette — muted, calm, human-feeling ── */
  --bg-color:           #111113;   /* warm near-black                */
  --bg-color-secondary: #1b1b20;   /* panel surfaces                 */
  --text-primary:       #d8d8e2;   /* soft off-white, easy on eyes   */
  --text-secondary:     #76768a;   /* muted gray-blue                */
  --accent-primary:     #7475b8;   /* desaturated indigo — no neon   */
  --accent-hover:       #6162a0;   /* slightly deeper on hover       */
  --accent-light:       rgba(116, 117, 184, 0.09);
  --border-color:       #26262e;   /* very subtle boundary lines     */
  --sidebar-width:      260px;

  /* Typography */
  --font-family: 'Outfit', sans-serif;

  /* Sizing and Layout */
  --navbar-height:       70px;
  --max-content-width: 100%;

  /* Shadows — barely there, depth without glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast:   0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* ── Light theme — warm white + slate ─────────────────────────────────────── */

[data-theme="light"] {
  --bg-color:           #f4f4f6;
  --bg-color-secondary: #ffffff;
  --text-primary:       #1c1c28;
  --text-secondary:     #6b6b80;
  --accent-primary:     #5c5e9e;
  --accent-hover:       #4a4c85;
  --accent-light:       rgba(92, 94, 158, 0.09);
  --border-color:       #e2e2e9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.1),  0 3px 8px rgba(0, 0, 0, 0.07);
}

/* ── System preference ─────────────────────────────────────────────────────── */

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-color:           #f4f4f6;
    --bg-color-secondary: #ffffff;
    --text-primary:       #1c1c28;
    --text-secondary:     #6b6b80;
    --accent-primary:     #5c5e9e;
    --accent-hover:       #4a4c85;
    --accent-light:       rgba(92, 94, 158, 0.09);
    --border-color:       #e2e2e9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.1),  0 3px 8px rgba(0, 0, 0, 0.07);
  }
}

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

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

/* Scrollbar styling */

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

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

::-webkit-scrollbar-thumb {
  background: #444444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Utilities */

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

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;
}

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

.chat-input-wrapper.chat-view {
  margin-top: 0;
  padding: 0.5rem 1.5rem 1.25rem;
  background: var(--bg-color); /* Matches body to avoid transparency issues */
  position: relative;
  z-index: 10;
  width: 100%;
}

.chat-input-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.chat-input-container:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.action-btn {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

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

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: #9aa0a6;
}

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

.send-btn {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.send-btn.active {
  background-color: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

.send-btn.active:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  text-align: center;
}

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

.chat-input-container.disabled {
  opacity: 0.5;
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  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); }

.minimal-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--bg-color-primary, #ffffff);
  color: var(--text-primary, #1e293b);
  box-sizing: border-box;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Minimal Header */
.minimal-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background-color: var(--bg-color-secondary, #f8fafc);
  flex-shrink: 0;
}

.minimal-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.minimal-header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.minimal-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.minimal-clear-btn {
  background: transparent;
  border: 1px solid var(--border-color, #cbd5e1);
  color: var(--text-secondary, #64748b);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.minimal-clear-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* 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;
}

/* Empty 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;
}

.minimal-empty-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.minimal-empty-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #0f172a);
}

.minimal-empty-header p {
  font-size: 0.95rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.minimal-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
}

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

.minimal-suggestion-card {
  background: var(--bg-color-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.minimal-suggestion-card:hover {
  border-color: #7c5cfc;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.12);
  transform: translateY(-2px);
}

.minimal-suggestion-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary, #334155);
  line-height: 1.4;
}

/* Message Rows */
.minimal-msg-row {
  display: flex;
  gap: 0.85rem;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.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-color: #f1f5f9;
  color: #475569;
}

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

.minimal-msg-content {
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 80%;
  box-sizing: border-box;
}

.minimal-msg-row.user .minimal-msg-content {
  background-color: #7c5cfc;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

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

.minimal-msg-row.bot .minimal-msg-content {
  background-color: var(--bg-color-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-primary, #1e293b);
  border-bottom-left-radius: 2px;
}

/* Minimal Options List */
.minimal-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.minimal-option-btn {
  background-color: #ffffff;
  border: 1px solid #7c5cfc;
  color: #7c5cfc;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.minimal-option-btn:hover {
  background-color: #7c5cfc;
  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-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
  z-index: 10;
}

.minimal-scroll-down-btn:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Input Area */
.minimal-input-area {
  padding: 0.75rem 1.25rem 1.25rem;
  background-color: var(--bg-color-primary, #ffffff);
  border-top: 1px solid var(--border-color, #e2e8f0);
  flex-shrink: 0;
}
.app-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg-color);
}

/* Guest Welcome Screen */
.guest-welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05), transparent 60%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
}

.guest-welcome-card {
  background: #1e1e2d;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: welcomeFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.guest-welcome-logo {
  width: 72px;
  height: 72px;
  background: rgba(167, 139, 250, 0.08);
  border: 1.5px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px rgba(167, 139, 250, 0.1);
  transition: transform 0.3s ease;
}

.guest-welcome-logo:hover {
  transform: scale(1.05);
}

.guest-welcome-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.guest-welcome-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.guest-welcome-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.guest-welcome-form {
  width: 100%;
}

.guest-welcome-form .input-group {
  width: 100%;
  margin-bottom: 1.5rem;
}

.guest-welcome-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  text-align: center;
  transition: all 0.2s ease;
}

.guest-welcome-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.guest-welcome-form input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary, #a78bfa);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.guest-welcome-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary, #a78bfa), #8b5cf6);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  transition: all 0.2s ease;
}

.guest-welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, var(--accent-hover, #c084fc), #7c3aed);
}

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

/* App loading screen */
.app-loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(167, 139, 250, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-primary, #a78bfa);
  animation: spin 1s ease-in-out infinite;
}

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