/* ========================================================================
   ALU Match — "Dusk Bloom" theme
   Warm coral → rose → violet gradient on deep plum-black.
   Inspired by sunset palettes + soft-tech pastels (2026 dating-app trends).
   ======================================================================== */

:root {
  /* Surfaces — warm plum, never pure black */
  --bg-deep:      #271A3D;          /* base canvas (warm plum) */
  --bg-deep-2:    #361E4A;          /* mid */
  --bg-deep-3:    #4A1F4F;          /* low — sunset wine */
  --bg-surface:   #2B1E45;          /* card */
  --bg-elevated:  #382955;          /* hover/active surface */
  --bg-input:     #1F1535;          /* slightly recessed input */

  /* Lines */
  --border:       #4A3A6E;
  --border-soft:  #57467F;
  --border-hi:    #6D5996;

  /* Text */
  --text:         #F5F0FF;
  --text-muted:   #9A92B5;
  --text-dim:     #6B6385;
  --text-placeholder: #574E75;

  /* Brand — warm dusk */
  --brand-coral:  #FF8A5B;
  --brand-rose:   #FF3D6E;
  --brand-violet: #8B5CF6;
  --brand:        #FF3D6E;          /* primary anchor */
  --brand-hover:  #E92760;
  --brand-soft:   rgba(255, 61, 110, 0.15);
  --brand-ring:   rgba(255, 61, 110, 0.22);
  --brand-glow:   rgba(255, 61, 110, 0.32);
  --brand-grad:   linear-gradient(135deg, #FF8A5B 0%, #FF3D6E 55%, #8B5CF6 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(255, 138, 91, 0.18), rgba(139, 92, 246, 0.18));

  /* Status */
  --success:      #34D9A0;
  --success-soft: rgba(52, 217, 160, 0.12);
  --warning:      #FFB547;
  --warning-soft: rgba(255, 181, 71, 0.12);
  --danger:       #FF5470;
  --danger-soft:  rgba(255, 84, 112, 0.14);
}

* { box-sizing: border-box; }
*::selection { background: var(--brand-rose); color: #FFFFFF; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 55%, var(--bg-deep-3) 100%);
  background-attachment: fixed;
}

/* Ambient dusk glow — coral, rose and violet blooms layered over the canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1200px 720px at 88% -6%, rgba(255, 138, 91, 0.28) 0%, transparent 55%),
    radial-gradient(900px  640px at 10% 12%, rgba(255, 61, 110, 0.20) 0%, transparent 60%),
    radial-gradient(1100px 760px at 8% 108%, rgba(139, 92, 246, 0.28) 0%, transparent 60%),
    radial-gradient(900px  600px at 95% 95%, rgba(255, 138, 91, 0.18) 0%, transparent 60%),
    radial-gradient(700px  500px at 50% 50%, rgba(255, 61, 110, 0.10) 0%, transparent 70%);
}

a { color: var(--brand-rose); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand-coral); text-decoration: underline; }

.app-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; padding: 14px 14px 60px; gap: 14px; }
}

/* ───── App sidebar (left rail) ───── */
.app-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 18px 14px 16px;
  background: rgba(43, 30, 69, 0.65);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(20, 8, 40, 0.45);
  max-height: calc(100vh - 40px);
  overflow: hidden;
}
.app-sidebar .brand { padding: 6px 6px 14px; }
.app-sidebar .sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px 10px;
}
.app-sidebar .sidebar-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0 12px 8px;
}
.app-sidebar .nav-spacer { flex: 1; }

/* Sidebar topbar that only appears on narrow screens */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(43, 30, 69, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.mobile-topbar .brand .logo { width: 38px; height: 38px; }
.mobile-topbar .brand .logo svg { width: 24px; height: 24px; }
.mobile-topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background .15s, border-color .15s, transform .12s;
}
.icon-btn:hover { background: var(--border); border-color: var(--border-hi); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn .dot {
  position: absolute;
  top: 8px; right: 8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-rose);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-deep);
  line-height: 1;
}

@media (max-width: 980px) {
  .app-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .app-sidebar .brand { padding: 0; flex-shrink: 0; }
  .app-sidebar .brand > div:not(.logo) { display: none; }
  .app-sidebar .sidebar-divider { display: none; }
  .app-sidebar .sidebar-section-label { display: none; }
  .app-sidebar .nav-spacer { display: none; }
  .app-sidebar .nav { flex-direction: row; flex-wrap: nowrap; }
}

/* ───── Brand / Logo ───── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad);
  box-shadow:
    0 10px 26px rgba(255, 61, 110, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.brand .logo svg { width: 28px; height: 28px; display: block; }

.brand-title {
  font-size: 18px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}
.brand-sub {
  display: block;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
  position: relative;
}
.nav button svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.nav button .nav-label { flex: 1; }
.nav button .nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-rose);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.nav button:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.nav button:hover svg { opacity: 1; }
.nav button.active {
  color: #FFFFFF;
  background: var(--brand-grad);
  box-shadow: 0 6px 18px var(--brand-glow);
}
.nav button.active svg { opacity: 1; }
.nav button.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 980px) {
  .nav button .nav-label { display: none; }
  .nav button { padding: 9px 11px; gap: 6px; }
}

/* ───── Cards ───── */
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) ,
    rgba(43, 30, 69, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow:
    0 12px 36px rgba(20, 8, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.center-wrap {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
}
.auth-card { width: min(440px, 100%); }

h1, h2, h3 { margin: 0 0 12px; color: var(--text); letter-spacing: -0.4px; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.18; }
h2 { font-size: 20px; font-weight: 700; }
.muted { color: var(--text-muted); }
.hr { height: 1px; background: var(--border); margin: 18px 0; }

/* ───── Forms ───── */
label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-placeholder); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
textarea { min-height: 88px; resize: vertical; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  font-family: inherit;
  letter-spacing: -0.1px;
  color: #FFFFFF;
  background: var(--brand-grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: 0 10px 26px var(--brand-glow);
  transition: transform .12s ease, box-shadow .15s ease, background-position .35s ease;
}
.btn:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px var(--brand-glow);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn.ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--border);
  border-color: var(--border-hi);
}
.btn.full { width: 100%; }
.btn.warn {
  background: var(--warning);
  color: #1B1206;
  box-shadow: 0 10px 26px rgba(255, 181, 71, 0.32);
}
.btn.warn:hover { background: #FFA61F; transform: translateY(-1px); }
.btn.danger {
  background: var(--danger);
  box-shadow: 0 10px 26px rgba(255, 84, 112, 0.28);
}
.btn.danger:hover { background: #F43756; }
.btn.success {
  background: var(--success);
  color: #062019;
  box-shadow: 0 10px 26px rgba(52, 217, 160, 0.28);
}
.btn.success:hover { background: #20C58C; }

/* ───── Toast ───── */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: var(--bg-deep);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 50;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ───── Discover grid ───── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.profile-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) ,
    rgba(43, 30, 69, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand-grad-soft);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-rose);
  box-shadow: 0 16px 40px rgba(255, 61, 110, 0.18);
}
.profile-card:hover::before { opacity: 1; }
.profile-card > * { position: relative; z-index: 1; }

.avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 32px;
  color: var(--text);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: #D6D0EE;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.score { color: var(--success); font-weight: 800; font-size: 11.5px; }

/* ───── Chat layout ───── */
.chat-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 130px);
  min-height: 540px;
}
@media (max-width: 820px) {
  .chat-shell { grid-template-columns: 1fr; height: auto; min-height: 70vh; }
}

.sidebar {
  padding: 16px;
  overflow-y: auto;
}
.sidebar h2 { margin: 0 0 14px; font-size: 17px; }

.session-item {
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: background .12s ease, border-color .12s ease;
  margin-bottom: 3px;
  border: 1px solid transparent;
}
.session-item:hover { background: var(--bg-elevated); }
.session-item.active {
  background: var(--bg-elevated);
  border-color: var(--brand-rose);
  box-shadow: inset 3px 0 0 var(--brand-coral);
}
.session-item .avatar {
  width: 42px; height: 42px;
  font-size: 20px;
  border-width: 1.5px;
}

/* ───── Chat main ───── */
.chat-main {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: rgba(43, 30, 69, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  height: 100%;
}
.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 138, 91, 0.06), transparent);
  flex-shrink: 0;
}
.chat-header .avatar {
  width: 40px; height: 40px;
  font-size: 18px;
  border-width: 1.5px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex; flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(255, 138, 91, 0.10), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
    rgba(31, 21, 53, 0.6);
}

/* Bubbles */
.bubble {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  background: var(--bg-elevated);
  color: var(--text);
  line-height: 1.42;
  font-size: 14.5px;
  font-weight: 500;
  word-wrap: break-word;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  margin-bottom: 2px;
  animation: bubble-in .2s ease-out;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--brand-grad);
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 20px;
  box-shadow: 0 6px 18px var(--brand-glow);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-input {
  display: flex; gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(139, 92, 246, 0.07), transparent);
  flex-shrink: 0;
}
.chat-input input {
  flex: 1;
  background: var(--bg-elevated);
  border-color: var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14.5px;
}
.chat-input input:focus {
  background: var(--bg-input);
  border-color: var(--brand-rose);
}
.chat-input .btn {
  border-radius: 999px;
  padding: 12px 22px;
}

/* ───── Reveal banner ───── */
.reveal-banner {
  margin: 14px 18px;
  padding: 13px 16px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.reveal-banner.locked {
  background: var(--warning-soft);
  border-color: rgba(255, 181, 71, 0.38);
  color: #FFD68A;
}
.reveal-banner.unlocked {
  background: var(--success-soft);
  border-color: rgba(52, 217, 160, 0.38);
  color: #8EEAC5;
}

.identity-panel {
  padding: 16px 20px;
  border-top: 1px dashed var(--border);
  background: linear-gradient(180deg, rgba(255, 138, 91, 0.08), rgba(139, 92, 246, 0.08));
}
.identity-row {
  display: flex; gap: 12px; margin: 6px 0;
  font-size: 14px; color: var(--text);
}
.identity-row span:first-child {
  color: var(--text-muted);
  width: 130px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center;
}

/* ───── Tag input ───── */
.tag-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
  transition: border-color .15s, box-shadow .15s;
}
.tag-input:focus-within {
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.tag-input input {
  background: transparent;
  border: 0;
  flex: 1;
  min-width: 140px;
  padding: 4px 4px;
  box-shadow: none !important;
}
.tag-input input:focus { background: transparent; box-shadow: none; }
.tag {
  background: var(--brand-soft);
  border: 1px solid rgba(255, 61, 110, 0.38);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag button {
  background: transparent; border: 0;
  color: #D6D0EE; cursor: pointer; padding: 0;
  font-size: 16px; line-height: 1;
}
.tag button:hover { color: var(--brand-coral); }

/* ───── Misc ───── */
.hidden { display: none !important; }
.empty {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: #D6D0EE;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

/* Scrollbars */
.chat-body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.chat-body::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

/* ───── Notifications ───── */
.notifications-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.notifications-list {
  display: flex; flex-direction: column; gap: 10px;
}
.notif-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(43, 30, 69, 0.55);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, transform .12s;
  cursor: pointer;
  position: relative;
}
.notif-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.notif-item.unread {
  background: linear-gradient(135deg, rgba(255, 138, 91, 0.10), rgba(139, 92, 246, 0.12));
  border-color: rgba(255, 61, 110, 0.35);
}
.notif-item.unread::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--brand-rose);
}
.notif-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--brand-grad);
  color: #FFFFFF;
  box-shadow: 0 6px 18px var(--brand-glow);
}
.notif-icon.muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: none;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.notif-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.notif-time {
  font-size: 11px; color: var(--text-dim); font-weight: 600;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ===========================================================
   LIGHT THEME — flip the canvas to a warm cream wash
   =========================================================== */
[data-theme="light"] {
  --bg-deep:      #FFF6F2;
  --bg-deep-2:    #FFEDF1;
  --bg-deep-3:    #F4E9FB;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #FFF1EF;
  --bg-input:     #FFFAF7;

  --border:       #ECDDE7;
  --border-soft:  #DCC9D7;
  --border-hi:    #C7AFC1;

  --text:         #2A1B3D;
  --text-muted:   #6E5C7D;
  --text-dim:     #9885A6;
  --text-placeholder: #BDA9CC;

  --brand-soft:   rgba(255, 61, 110, 0.10);
  --brand-ring:   rgba(255, 61, 110, 0.20);
  --brand-glow:   rgba(255, 61, 110, 0.22);
  --brand-grad-soft: linear-gradient(135deg, rgba(255, 138, 91, 0.10), rgba(139, 92, 246, 0.10));

  --success-soft: rgba(20, 160, 110, 0.12);
  --warning-soft: rgba(217, 130, 0, 0.14);
  --danger-soft:  rgba(220, 50, 80, 0.10);
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(1200px 720px at 88% -6%, rgba(255, 138, 91, 0.32) 0%, transparent 55%),
    radial-gradient(900px  640px at 10% 12%, rgba(255, 61, 110, 0.18) 0%, transparent 60%),
    radial-gradient(1100px 760px at 8% 108%, rgba(139, 92, 246, 0.22) 0%, transparent 60%),
    radial-gradient(900px  600px at 95% 95%, rgba(255, 138, 91, 0.22) 0%, transparent 60%);
}

[data-theme="light"] .app-sidebar,
[data-theme="light"] .mobile-topbar {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 40px rgba(190, 140, 170, 0.18);
}
[data-theme="light"] .card,
[data-theme="light"] .profile-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 36px rgba(190, 140, 170, 0.16);
}
[data-theme="light"] .chat-main {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(190, 140, 170, 0.14);
}
[data-theme="light"] .chat-body {
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(255, 138, 91, 0.16), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(255, 246, 242, 0.85);
}
[data-theme="light"] .bubble { background: #F4ECF5; color: var(--text); }
[data-theme="light"] .toast { background: var(--text); color: #FFFFFF; }
[data-theme="light"] .reveal-banner.locked  { color: #8A5A00; }
[data-theme="light"] .reveal-banner.unlocked { color: #00684A; }
[data-theme="light"] .notif-item { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .notif-item.unread {
  background: linear-gradient(135deg, rgba(255, 138, 91, 0.14), rgba(139, 92, 246, 0.14));
}
[data-theme="light"] .chip,
[data-theme="light"] .badge,
[data-theme="light"] .icon-btn { color: var(--text); }
[data-theme="light"] .icon-btn .dot { border-color: #FFFFFF; }
[data-theme="light"] .session-item.active {
  background: rgba(255, 138, 91, 0.08);
}
[data-theme="light"] .tag { color: var(--text); }
[data-theme="light"] .tag button { color: var(--text-muted); }
[data-theme="light"] .btn.warn { color: #FFFFFF; }
