/* ================================================================
   INVITIA INMOBILIARIAS — styles.css (v2)
   Dark Premium · Gold · Profile Modal · Cost Badges
   ================================================================ */

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

:root {
  --bg:          #090d18;
  --bg-side:     #0c1020;
  --bg-card:     #111827;
  --bg-hover:    #161e30;
  --bg-user:     #142040;
  --border:      #1c2540;
  --border-lt:   #21304e;

  --text:        #dde4f0;
  --text-2:      #7a8db5;
  --text-3:      #3d506e;

  --gold:        #c9a84c;
  --gold-lt:     #e5c76b;
  --gold-glow:   rgba(201,168,76,.18);

  --blue:        #3d8ef0;
  --blue-glow:   rgba(61,142,240,.12);
  --purple:      #9b6bf2;
  --purple-glow: rgba(155,107,242,.15);
  --green:       #22c55e;
  --green-glow:  rgba(34,197,94,.12);
  --red:         #ef4444;

  --sidebar-w:   270px;
  --chat-max:    780px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --ease:        .18s ease;
  --ease-slow:   .32s ease;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:          #f4f6fb;
  --bg-side:     #edf0f8;
  --bg-card:     #ffffff;
  --bg-hover:    #e8ecf5;
  --bg-user:     #dce8ff;
  --border:      #d0d8ec;
  --border-lt:   #bdc9e0;

  --text:        #1a2238;
  --text-2:      #4a5880;
  --text-3:      #8a97b8;

  --gold:        #b8922e;
  --gold-lt:     #d4a843;
  --gold-glow:   rgba(184,146,46,.18);

  --blue:        #1d6fd4;
  --blue-glow:   rgba(29,111,212,.1);
  --purple:      #7c50d8;
  --purple-glow: rgba(124,80,216,.12);
  --green:       #16a34a;
  --green-glow:  rgba(22,163,74,.12);
  --red:         #dc2626;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
button { font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ================================================================
   LAYOUT
   ================================================================ */
.app-container { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

/* ================================================================
   PROFILE MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 8, 18, 0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: slideUp .35s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.modal-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.modal-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: #08100a; box-shadow: 0 4px 14px var(--gold-glow);
}
.modal-logo-text { display: flex; flex-direction: column; }
.modal-logo-brand { font-size: 13px; font-weight: 800; letter-spacing:.06em; }
.modal-logo-sub { font-size: 9px; font-weight: 600; color: var(--gold); letter-spacing:.12em; text-transform:uppercase; }

.modal-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: var(--text-2); margin-bottom: 26px; line-height: 1.6; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11.5px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing:.05em;
  margin-bottom: 7px;
}
.form-group input,
.form-group select {
  width: 100%; padding: 11px 14px;
  background: var(--bg-hover); border: 1px solid var(--border-lt);
  border-radius: var(--radius); color: var(--text);
  font-size: 13.5px; outline: none;
  transition: border-color var(--ease);
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus { border-color: rgba(201,168,76,.45); }
.form-group select option { background: #111827; }

.modal-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #08100a; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all var(--ease); margin-top: 6px;
}
.modal-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }
.modal-btn:active { transform: translateY(0); }
.modal-privacy {
  font-size: 11px; color: var(--text-3); text-align: center;
  margin-top: 14px; line-height: 1.5;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--bg-side); border-right: 1px solid var(--border);
  overflow: hidden; transition: transform var(--ease-slow); z-index: 200;
}
.sidebar-header { padding: 18px 14px 14px; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.logo-icon-wrap {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: #08100a; flex-shrink: 0; box-shadow: 0 4px 14px var(--gold-glow);
}
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-brand { font-size: 14px; font-weight: 800; letter-spacing:.06em; color: var(--text); line-height: 1; }
.logo-sub { font-size: 8.5px; font-weight: 600; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); line-height: 1; }

.btn-new-chat {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #08100a; border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--ease); letter-spacing:.01em;
}
.btn-new-chat:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }
.btn-new-chat:active { transform: translateY(0); }

.sidebar-body { flex: 1; overflow-y: auto; padding: 14px 10px; }
.sidebar-body::-webkit-scrollbar { width: 3px; }
.sidebar-body::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 3px; }
.section-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing:.08em; color: var(--text-3); padding: 0 4px; margin-bottom: 8px;
}
.history-list { display: flex; flex-direction: column; gap: 2px; }
.empty-history {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 28px 12px; color: var(--text-3); font-size: 12px; text-align: center;
}
.history-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: var(--radius); cursor: pointer; transition: all var(--ease);
  color: var(--text-2); font-size: 13px; border: 1px solid transparent;
}
.history-item:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.history-item.active { background: var(--bg-hover); color: var(--text); border-color: var(--border-lt); }
.hi-icon { font-size: 14px; flex-shrink: 0; }
.hi-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.hi-del {
  opacity: 0; background: none; border: none; color: var(--text-3);
  cursor: pointer; padding: 2px 5px; border-radius: 4px;
  font-size: 12px; transition: all var(--ease);
}
.history-item:hover .hi-del { opacity: 1; }
.hi-del:hover { background: rgba(239,68,68,.15); color: var(--red); }

/* Sidebar Footer */
.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }

/* User Profile Card in sidebar */
.profile-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  cursor: pointer; transition: all var(--ease);
}
.profile-card:hover { border-color: var(--border-lt); }
.profile-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1a3055, #243a70);
  border: 1px solid var(--border-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.profile-info { min-width: 0; flex: 1; }
.profile-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: 10.5px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-edit { color: var(--text-3); font-size: 11px; cursor: pointer; flex-shrink: 0; }
.profile-edit:hover { color: var(--text-2); }

.model-status-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34,197,94,.5); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.status-text { display: flex; flex-direction: column; min-width: 0; }
.status-label { font-size: 9.5px; color: var(--text-3); text-transform:uppercase; letter-spacing:.05em; font-weight:500; }
.status-val { font-size: 11px; color: var(--text-2); font-weight: 500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.powered-by { font-size: 11px; color: var(--text-3); text-align: center; }
.powered-by strong { color: var(--text-2); font-weight:500; }

/* Mobile toggle */
.sidebar-toggle {
  display: none; position: fixed; top: 14px; left: 14px;
  z-index: 300; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px; color: var(--text-2);
  cursor: pointer; transition: all var(--ease);
}
.sidebar-toggle:hover { color: var(--text); border-color: var(--border-lt); }

/* ================================================================
   MAIN AREA
   ================================================================ */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* ================================================================
   WELCOME SCREEN
   ================================================================ */
.welcome-screen { flex: 1; overflow-y: auto; padding: 40px 24px; animation: fadeUp .45s ease; }
.welcome-inner { display: flex; flex-direction: column; align-items: center; max-width: 860px; margin: 0 auto; }
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

.welcome-logo-ring {
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(201,168,76,.1), transparent);
  border: 1px solid rgba(201,168,76,.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 22px; position: relative;
}
.welcome-logo-ring::after {
  content:''; position:absolute; inset:-6px;
  border-radius:50%; border:1px solid rgba(201,168,76,.08);
}
.welcome-title {
  font-size: 26px; font-weight: 800; letter-spacing:.04em;
  background: linear-gradient(135deg, var(--text), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px; text-align: center;
}
.welcome-sub { font-size: 15px; color: var(--text-2); text-align: center; max-width: 480px; line-height: 1.7; margin-bottom: 44px; }

/* Welcome user greeting */
.welcome-greeting {
  font-size: 13px; color: var(--gold); font-weight: 500;
  margin-bottom: 6px; text-align: center;
}

.suggestions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.sug-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 16px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all var(--ease); text-align: left; color: var(--text);
}
.sug-card:hover {
  border-color: var(--gold); background: var(--bg-hover); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 0 1px rgba(201,168,76,.08);
}
.sug-icon { font-size: 22px; line-height: 1; }
.sug-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.sug-desc { font-size: 12px; color: var(--text-2); }

/* ================================================================
   MESSAGES AREA
   ================================================================ */
.messages-area { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.messages-area::-webkit-scrollbar { width: 5px; }
.messages-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.messages-list { max-width: var(--chat-max); margin: 0 auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }

.msg-row { display: flex; gap: 12px; padding: 14px 0; animation: fadeMsg .28s ease; align-items: flex-start; }
.msg-row.user { flex-direction: row-reverse; }
@keyframes fadeMsg { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.msg-row.user .msg-avatar {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #08100a; font-size: 12px; font-weight: 700;
}
.msg-row.assistant .msg-avatar {
  background: linear-gradient(135deg, #122040, #1a2f5a);
  border: 1px solid var(--border-lt);
}

.msg-bubble {
  max-width: 86%; padding: 13px 17px;
  border-radius: var(--radius-lg); font-size: 14px; line-height: 1.72;
}
.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, var(--bg-user), #1a2e5a);
  border: 1px solid rgba(61,142,240,.18); border-bottom-right-radius: 3px;
}
.msg-row.assistant .msg-bubble {
  background: var(--bg-card); border: 1px solid var(--border);
  border-bottom-left-radius: 3px; flex: 1;
}

/* Markdown */
.msg-bubble h1,.msg-bubble h2,.msg-bubble h3 { color: var(--text); margin: 14px 0 6px; font-weight: 600; }
.msg-bubble h1{font-size:17px} .msg-bubble h2{font-size:15px} .msg-bubble h3{font-size:14px}
.msg-bubble p { margin: 0 0 8px; }
.msg-bubble p:last-child { margin: 0; }
.msg-bubble ul,.msg-bubble ol { padding-left: 20px; margin: 6px 0; }
.msg-bubble li { margin: 4px 0; }
.msg-bubble strong { color: var(--text); font-weight: 600; }
.msg-bubble em { color: var(--gold-lt); }
.msg-bubble code { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.msg-bubble table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.msg-bubble th { background: var(--bg-hover); padding: 7px 12px; border: 1px solid var(--border-lt); color: var(--text-2); font-weight: 600; font-size: 10.5px; text-transform:uppercase; letter-spacing:.05em; }
.msg-bubble td { padding: 7px 12px; border: 1px solid var(--border); }
.msg-bubble hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.msg-bubble a { color: var(--gold-lt); text-decoration: underline; }

/* ── Message Meta (model + cost) ── */
.msg-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.model-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 20px; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing:.04em;
}
.model-badge.basic { background: var(--blue-glow); color: var(--blue); border: 1px solid rgba(61,142,240,.22); }
.model-badge.advanced { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(155,107,242,.22); }
.model-badge .bd { width: 5px; height: 5px; border-radius: 50%; }
.model-badge.basic .bd { background: var(--blue); }
.model-badge.advanced .bd { background: var(--purple); }

.cost-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 20px; font-size: 10.5px; font-weight: 500;
  background: rgba(201,168,76,.07); color: var(--gold);
  border: 1px solid rgba(201,168,76,.18);
}
.token-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 20px; font-size: 10.5px; font-weight: 500;
  background: rgba(255,255,255,.03); color: var(--text-3);
  border: 1px solid var(--border);
}

/* Typing indicator */
.typing-row { align-items: center; }
.typing-indicator { display: flex; gap: 5px; padding: 6px 2px; }
.typing-dot { width: 7px; height: 7px; background: var(--text-3); border-radius: 50%; animation: bounce 1.3s infinite ease-in-out; }
.typing-dot:nth-child(1){animation-delay:0s}
.typing-dot:nth-child(2){animation-delay:.18s}
.typing-dot:nth-child(3){animation-delay:.36s}
@keyframes bounce { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-7px);opacity:1} }

/* ================================================================
   INPUT SECTION
   ================================================================ */
.input-section { padding: 12px 24px 18px; border-top: 1px solid var(--border); background: var(--bg); }

.file-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 8px;
  background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: var(--radius);
}
.file-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(155,107,242,.1); border: 1px solid rgba(155,107,242,.25);
  border-radius: 20px; padding: 3px 10px 3px 8px;
  color: var(--purple); font-size: 12px; font-weight: 500;
}
.file-remove { background: none; border: none; color: var(--purple); cursor: pointer; opacity:.7; transition: opacity var(--ease); font-size: 12px; padding: 0; }
.file-remove:hover { opacity: 1; }
.model-upgrade-badge { display: flex; align-items: center; gap: 6px; color: var(--purple); font-size: 11px; font-weight: 500; }
.upgrade-dot { width: 6px; height: 6px; background: var(--purple); border-radius: 50%; animation: blink 1.4s infinite; }

.input-wrap { max-width: var(--chat-max); margin: 0 auto; }
.input-box {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-lt);
  border-radius: var(--radius-xl); padding: 10px 10px 10px 14px;
  transition: border-color var(--ease);
}
.input-box:focus-within { border-color: rgba(201,168,76,.35); }

.attach-btn {
  color: var(--text-3); cursor: pointer; padding: 5px;
  border-radius: 8px; transition: all var(--ease); flex-shrink: 0;
  display: flex; align-items: center; margin-bottom: 2px;
}
.attach-btn:hover { color: var(--text-2); background: var(--bg-hover); }

.msg-textarea {
  flex: 1; background: none; border: none; outline: none;
  resize: none; color: var(--text); font-size: 14px; line-height: 1.6;
  max-height: 180px; overflow-y: auto; padding: 4px 0; min-height: 30px;
}
.msg-textarea::placeholder { color: var(--text-3); }
.msg-textarea::-webkit-scrollbar { width: 3px; }
.msg-textarea::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.input-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.model-pill {
  display: flex; align-items: center; gap: 5px; padding: 4px 9px;
  border-radius: 20px; background: var(--bg-hover); border: 1px solid var(--border);
  font-size: 10.5px; font-weight: 600; color: var(--text-2); cursor: default;
  transition: all var(--ease); white-space: nowrap;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pill-dot.basic { background: var(--blue); box-shadow: 0 0 5px var(--blue); }
.pill-dot.advanced { background: var(--purple); box-shadow: 0 0 5px var(--purple); }

.send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border: none; cursor: pointer; color: #08100a;
  transition: all var(--ease); flex-shrink: 0;
}
.send-btn:hover:not(:disabled) { transform: scale(1.07); box-shadow: 0 4px 14px var(--gold-glow); }
.send-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.disclaimer { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 10px; max-width: var(--chat-max); margin-left: auto; margin-right: auto; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 18px; border-radius: var(--radius);
  background: #2d0a0a; border: 1px solid #5a1010;
  color: #f87171; font-size: 13px; font-weight: 500;
  animation: toastIn .3s ease; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: 360px;
}
.toast.info { background: #0a1a2d; border-color: #1a3a6e; color: var(--blue); }
@keyframes toastIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .suggestions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .suggestions-grid { grid-template-columns: 1fr; }
  .welcome-title { font-size: 20px; }
  .input-section { padding: 10px 12px 14px; }
  .messages-list { padding: 12px 16px; }
  .modal-box { padding: 28px 20px; margin: 12px; }
}

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.sidebar-actions { margin-bottom: 10px; }

.theme-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 13px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-2); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all var(--ease); text-align: left;
}
.theme-toggle:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--bg-hover);
}
#theme-icon { font-size: 14px; line-height: 1; }

/* ================================================================
   LIGHT MODE SPECIFIC FIXES
   ================================================================ */
[data-theme="light"] .modal-overlay {
  background: rgba(200, 210, 230, 0.82);
}
[data-theme="light"] .welcome-title {
  background: linear-gradient(135deg, #1a2238, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .form-group select option {
  background: #ffffff; color: #1a2238;
}
[data-theme="light"] .msg-row.assistant .msg-avatar {
  background: linear-gradient(135deg, #c8d8f0, #d8e6ff);
  border: 1px solid var(--border-lt);
}
[data-theme="light"] .msg-row.user .msg-bubble {
  background: linear-gradient(135deg, #dce8ff, #c8d8f5);
  border: 1px solid rgba(29,111,212,.2);
}
[data-theme="light"] .modal-box {
  box-shadow: 0 24px 64px rgba(100,130,180,.2);
}
[data-theme="light"] .toast {
  background: #fff0f0; border-color: #fca5a5; color: #b91c1c;
}
[data-theme="light"] .toast.info {
  background: #eff6ff; border-color: #93c5fd; color: #1d4ed8;
}

