/* ═══════════════════════════════════════════════════════════════════════════
   ChemYukti - Design System
   Brand: CHEM logo - Deep Navy #0D1A44 · Gold #C5903A
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy-950:  #06101F;
  --navy-900:  #0A1528;
  --navy-800:  #0D1A44;   /* CHEM logo background */
  --navy-700:  #152254;
  --navy-600:  #1E3070;
  --gold-500:  #C5903A;   /* CHEM logo ring */
  --gold-400:  #D4A355;
  --gold-300:  #E8B870;
  --gold-100:  rgba(197, 144, 58, 0.12);
  --gold-ring: rgba(197, 144, 58, 0.25);
  --gold-glow: rgba(197, 144, 58, 0.08);

  --text-100: #F5F0E8;
  --text-300: #C8C2B8;
  --text-500: #8A9BB0;
  --text-700: #4A5568;

  --glass-bg:     rgba(13, 26, 68, 0.55);
  --glass-border: rgba(197, 144, 58, 0.18);
  --glass-hover:  rgba(13, 26, 68, 0.75);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-gold: 0 0 0 1px rgba(197,144,58,.25), 0 4px 24px rgba(0,0,0,.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-950);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(197,144,58,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(13,26,68,.8) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-100);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text-100); font-weight: 700; line-height: 1.2; }
p  { color: var(--text-300); }
a  { color: var(--gold-400); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-300); }

.text-gold   { color: var(--gold-500) !important; }
.text-muted  { color: var(--text-500) !important; }
.text-white  { color: var(--text-100) !important; }
.text-secondary { color: var(--text-500) !important; }

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-100) 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* ── Glass Card ──────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(197, 144, 58, 0.35);
}
.glass-card-flat { border-radius: var(--radius-md); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.glass-nav {
  background: rgba(6, 16, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 144, 58, 0.15);
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(197, 144, 58, 0.4);
}
.navbar-brand .brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.01em;
}
.navbar-brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-link {
  color: var(--text-300) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-400) !important;
  background: var(--gold-glow);
}
.nav-link.dropdown-toggle::after { border-color: var(--text-500) transparent transparent; }

.dropdown-menu {
  background: rgba(8, 14, 28, 0.97) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem !important;
  margin-top: 6px !important;
  backdrop-filter: blur(20px);
}
.dropdown-item {
  color: var(--text-300) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--gold-glow) !important;
  color: var(--gold-400) !important;
}
.dropdown-divider { border-color: var(--glass-border) !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { border-radius: var(--radius-md); font-weight: 600; transition: var(--transition); }

.btn-primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197,144,58,0.4);
}

.btn-glass {
  background: rgba(197, 144, 58, 0.08);
  border: 1px solid var(--gold-ring);
  color: var(--gold-400);
}
.btn-glass:hover {
  background: rgba(197, 144, 58, 0.18);
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
}
.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}
.btn-danger-soft:hover { background: rgba(239, 68, 68, 0.25); color: #FCA5A5; }

.btn-success-soft {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
}
.btn-success-soft:hover { background: rgba(34, 197, 94, 0.25); color: #86EFAC; }

/* ── Badges & Pills ──────────────────────────────────────────────────────── */
.badge-gold {
  background: var(--gold-100);
  border: 1px solid var(--gold-ring);
  color: var(--gold-400);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-navy {
  background: rgba(21, 34, 84, 0.7);
  border: 1px solid rgba(30, 48, 112, 0.5);
  color: var(--text-300);
  font-size: 0.68rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.badge-pending  { background: rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.3); color:#FDE68A; font-size:.7rem; padding:.25rem .7rem; border-radius:999px; }
.badge-approved { background: rgba(34,197,94,.12);  border:1px solid rgba(34,197,94,.3);  color:#86EFAC; font-size:.7rem; padding:.25rem .7rem; border-radius:999px; }
.badge-rejected { background: rgba(239,68,68,.12);  border:1px solid rgba(239,68,68,.3);  color:#FCA5A5; font-size:.7rem; padding:.25rem .7rem; border-radius:999px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(197, 144, 58, 0.35);
  border-radius: var(--radius-md);
  color: var(--text-100);
  padding: 0.65rem 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-500);
  color: var(--text-100);
  box-shadow: 0 0 0 3px rgba(197, 144, 58, 0.15);
  outline: none;
}
.form-control::placeholder { color: var(--text-500); }
/* Native dropdown options render on a system surface - force readable colours
   so the voice chooser and all selects are visible in dark mode. */
.form-select option, .form-control option { color: #1A2238; background: #ffffff; }
.form-label { color: var(--text-300); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.form-text  { color: var(--text-500); font-size: 0.8rem; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.875rem;
}
.alert-info    { background: rgba(56,189,248,.1); color: #7DD3FC; }
.alert-warning { background: rgba(251,191,36,.1); color: #FDE68A; }
.alert-danger  { background: rgba(239,68,68,.1);  color: #FCA5A5; }
.alert-success { background: rgba(34,197,94,.1);  color: #86EFAC; }
.alert-gold    { background: var(--gold-100); border: 1px solid var(--gold-ring); color: var(--gold-300); }

/* ── Forum ───────────────────────────────────────────────────────────────── */
.forum-tab-nav {
  display: flex;
  gap: 6px;
  background: rgba(6,16,31,0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 5px;
}
.forum-tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-500);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.forum-tab-btn.active {
  background: var(--gold-100);
  color: var(--gold-400);
  border: 1px solid var(--gold-ring);
}
.forum-tab-btn:hover:not(.active) {
  background: rgba(197,144,58,0.05);
  color: var(--text-300);
}

.forum-post-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.forum-post-card:hover {
  background: var(--glass-hover);
  border-left-color: var(--gold-500);
  transform: translateX(2px);
}
.forum-post-card.pending { border-left-color: rgba(251,191,36,.5); opacity: 0.75; }
.forum-post-card.rejected { border-left-color: rgba(239,68,68,.5); opacity: 0.6; }

.forum-post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.forum-post-title a { color: inherit; }
.forum-post-title a:hover { color: var(--gold-400); }

.forum-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-500);
  flex-wrap: wrap;
}
.forum-post-meta .sep { opacity: 0.4; }

.forum-reply-card {
  background: rgba(6,16,31,0.5);
  border: 1px solid rgba(197,144,58,0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}
.forum-reply-card.pending { opacity: 0.65; border-color: rgba(251,191,36,.15); }

.empty-forum {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-500);
}
.empty-forum i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 1rem; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.admin-stat-card:hover { background: var(--glass-hover); }
.admin-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.admin-stat-label { font-size: 0.8rem; color: var(--text-500); text-transform: uppercase; letter-spacing: 0.08em; }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 0.875rem;
}
.admin-table th {
  color: var(--text-500);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
  padding: 0.85rem 1rem;
  color: var(--text-300);
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td:first-child { border-left: 1px solid var(--glass-border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.admin-table td:last-child  { border-right: 1px solid var(--glass-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.admin-table tr:hover td { background: var(--glass-hover); }

.admin-sidebar {
  background: rgba(6,16,31,0.8);
  border-right: 1px solid var(--glass-border);
  min-height: calc(100vh - 70px);
  padding: 1.5rem 0;
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1.25rem;
  color: var(--text-500);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.admin-sidebar-link:hover, .admin-sidebar-link.active {
  color: var(--gold-400);
  background: var(--gold-glow);
  border-left-color: var(--gold-500);
}
.admin-sidebar-link i { font-size: 1rem; opacity: 0.8; }

/* ── Testimonial Carousel ────────────────────────────────────────────────── */
.testimonial-carousel .carousel-item { padding: 1rem 0; }
.carousel-indicators [data-bs-target] {
  width: 8px !important;
  height: 8px !important;
  border-radius: 4px !important;
  background-color: rgba(197,144,58,.35) !important;
  border: none !important;
  transition: width .2s, background .2s !important;
  opacity: 1 !important;
}
.carousel-indicators .active {
  width: 22px !important;
  background-color: var(--gold-500) !important;
}

/* ── Gold accent divider ─────────────────────────────────────────────────── */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  border: none;
  margin: 2rem 0;
  opacity: 0.4;
}

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stat-pill {
  background: var(--gold-glow);
  border: 1px solid var(--gold-ring);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
}
.stat-pill-num   { font-size: 1.8rem; font-weight: 800; color: var(--gold-500); display: block; line-height: 1; }
.stat-pill-label { font-size: 0.72rem; color: var(--text-500); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Back button ─────────────────────────────────────────────────────────── */
.back-button {
  position: fixed;
  top: 84px;
  left: 18px;
  z-index: 999;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer-glass {
  background: rgba(6, 16, 31, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
  margin-top: 5rem;
}
.footer-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text-100); }
.footer-tagline   { font-size: 0.8rem; color: var(--text-500); letter-spacing: 0.06em; }
.footer-link { color: var(--text-500); font-size: 0.875rem; display: block; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-link:hover { color: var(--gold-400); padding-left: 4px; }
.footer-heading { color: var(--text-300); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-divider { border-color: rgba(197,144,58,0.12); margin: 2rem 0 1rem; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.7s ease forwards; }

@keyframes goldPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.animate-pulse-gold { animation: goldPulse 2.5s ease-in-out infinite; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.border-gold  { border-color: var(--gold-ring) !important; }
.bg-navy      { background: var(--navy-800) !important; }
.bg-glass     { background: var(--glass-bg) !important; }
.rounded-xl   { border-radius: var(--radius-xl) !important; }

.object-fit-cover { object-fit: cover; }

/* scroll snap for mobile */
@media (max-width: 768px) {
  .hero-heading { font-size: 2.2rem; }
  .admin-sidebar { min-height: auto; border-right: none; border-bottom: 1px solid var(--glass-border); }
  .back-button { top: 72px; left: 10px; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   APPEND THIS BLOCK to the bottom of app/static/css/style.css
   These are compatibility utilities referenced in templates.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Accent aliases (used by existing templates) ─────────────────────────── */
.text-accent    { color: var(--gold-500) !important; }
.border-accent  { border-color: var(--gold-500) !important; }
.bg-accent      { background-color: var(--gold-500) !important; }

/* ── Hover lift (used by Goal cards) ────────────────────────────────────────*/
.hover-up {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease;
}
.hover-up:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(197, 144, 58, 0.15);
}

/* ── Hero logo - large CHEM badge in the hero section ───────────────────── */
.hero-logo {
  width:  200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(197, 144, 58, 0.45);
  box-shadow:
    0 0 0 8px  rgba(197, 144, 58, 0.06),
    0 0 0 16px rgba(197, 144, 58, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* ── Italic helper ───────────────────────────────────────────────────────── */
.italic { font-style: italic; }

/* ── Goal icon size override (Bootstrap display-4 is very large for icons) ─*/
.goal-icon {
  font-size: 2.4rem;
  color: var(--gold-500);
  display: block;
  margin-bottom: 1rem;
}

/* ── Quote border-left accent ────────────────────────────────────────────── */
.quote-block {
  border-left: 4px solid var(--gold-500);
  padding: 1rem 1.25rem;
  background: var(--gold-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Ecosystem offer list ────────────────────────────────────────────────── */
.offer-list li::marker { color: var(--gold-500); }
.offer-check { color: var(--gold-500); }

/* ── Rounded-4 Bootstrap override with custom value ─────────────────────── */
.rounded-4 { border-radius: var(--radius-lg) !important; }

/* ── bg-opacity-5 workaround for non-Bootstrap colours ──────────────────── */
.bg-gold-soft { background: var(--gold-glow) !important; }
/* ── Light theme (toggleable) ───────────────────────────────────────────── */
html[data-theme="light"] {
  --navy-950:  #FFFDF7;   /* creamy white */
  --navy-900:  #FBF7EE;
  --navy-800:  #FFFFFF;
  --navy-700:  #F6F1E6;
  --navy-600:  #EFE7D6;

  --text-100: #1A2238;
  --text-300: #34405C;
  --text-500: #5A6B85;
  --text-700: #9AA6B8;

  --glass-bg:     rgba(255, 255, 255, 0.92);
  --glass-border: rgba(197, 144, 58, 0.30);
  --glass-hover:  rgba(255, 255, 255, 0.98);

  --shadow-gold: 0 0 0 1px rgba(197,144,58,.20), 0 4px 24px rgba(13,26,68,.10);
}
html[data-theme="light"] body {
  background: #FFFDF7;            /* full creamy white */
  background-image: none;
  color: var(--text-100);
}
html[data-theme="light"] .glass-nav { background: rgba(255,253,247,.92); border-bottom: 1px solid rgba(197,144,58,.2); }
html[data-theme="light"] .navbar .nav-link,
html[data-theme="light"] .navbar-brand .brand-text { color: var(--text-100) !important; }
html[data-theme="light"] .footer-glass { background: var(--navy-900); }
html[data-theme="light"] p { color: var(--text-300); }

/* Dropdowns must be readable in light mode (fixes invisible sublinks) */
html[data-theme="light"] .dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid rgba(197,144,58,.30) !important;
  box-shadow: 0 8px 28px rgba(13,26,68,.12);
}
html[data-theme="light"] .dropdown-item { color: #1A2238 !important; }
html[data-theme="light"] .dropdown-item:hover { background: rgba(197,144,58,.12) !important; color: #8a6312 !important; }
html[data-theme="light"] .dropdown-header { color: #8a6312 !important; }
/* Glass cards and forms readable on cream */
html[data-theme="light"] .glass-card { background: rgba(255,255,255,.94); border-color: rgba(197,144,58,.22); }
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select { background: #fff; color: #1A2238; border-color: rgba(13,26,68,.18); }
html[data-theme="light"] .form-control::placeholder { color: #9AA6B8; }
html[data-theme="light"] .table { color: #1A2238; }

/* Theme toggle button */
.theme-toggle {
  background: transparent; border: 1px solid var(--gold-ring);
  color: var(--gold-400); width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.theme-toggle:hover { background: var(--gold-100); }
html[data-theme="light"] .theme-toggle .bi-moon-stars,
html[data-theme="dark"]  .theme-toggle .bi-sun { display: none; }

/* ── ChemYukti assistant bot widget ─────────────────────────────────────── */
#cyBot { position: fixed; bottom: 20px; right: 20px; z-index: 1080; }
#cyBotToggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: #06101F; font-size: 1.5rem; box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center;
}
#cyBotPanel {
  position: absolute; bottom: 72px; right: 0; width: min(360px, 88vw);
  height: 460px; display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.cy-bot-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid var(--glass-border);
  color: var(--text-100); font-weight: 600; font-size: .9rem;
}
.cy-bot-head button { background: none; border: none; color: var(--text-300); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cy-bot-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.cy-bot-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .85rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cy-bot-msg.bot { align-self: flex-start; background: var(--gold-glow); border: 1px solid var(--gold-ring); color: var(--text-200, var(--text-100)); }
.cy-bot-msg.user { align-self: flex-end; background: var(--navy-700); color: var(--text-100); }
.cy-bot-input { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--glass-border); }
.cy-bot-input input { flex: 1; background: var(--navy-900); border: 1px solid var(--glass-border); border-radius: 999px; padding: .5rem .9rem; color: var(--text-100); font-size: .85rem; }
.cy-bot-input input:focus { outline: none; border-color: var(--gold-ring); }
.cy-bot-input button { border: none; background: var(--gold-400); color: #06101F; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
