/* =============================================
   MEDICOP × INTHERION — PRESENTATION
   Matched to: medicop-gallery.pages.dev
   Corporate Teal + Charcoal-Black palette
   ============================================= */

:root {
  --bg-primary: #0a0c0e;
  --bg-secondary: #0f1215;
  --bg-card: rgba(255,255,255,0.02);
  --accent: #009ea4;
  --accent-light: #00c8d0;
  --accent-dark: #003761;
  --text-white: #f0f0f0;
  --text-gray: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(0,158,164,0.25);
  --border-accent-hover: rgba(0,158,164,0.7);
  --green: #2ec4b6;
  --red: #e63946;
  --amber: #f4a261;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-gray);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }

h1,h2,h3,h4,h5,h6 { color: var(--text-white); font-weight: 700; letter-spacing: -0.02em; }

/* ==================== PARTICLES ==================== */
canvas#particles {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  z-index: 0;
  pointer-events: none;
}

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,12,14,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display:flex; align-items:center; gap:12px; }
.nav-logo img { height: 32px; }
.nav-logo span {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links { display:flex; gap:2rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width:100%; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,158,164,0.04) 0%, var(--bg-primary) 70%);
}

.hero::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(0,158,164,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,158,164,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-logos {
  display:flex; align-items:center; justify-content:center;
  gap:20px; margin-bottom:36px;
  opacity:0; animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
.hero-logos img { height:60px; opacity:.95; }

.hero-tag {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  display:flex; align-items:center; justify-content:center; gap:12px;
  opacity:0; animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-tag::before, .hero-tag::after {
  content:''; width:30px; height:1px; background:var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  opacity:0; animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero h1 .gold {
  color: var(--accent);
}

.hero p {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 40px;
  opacity:0; animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  opacity:0; animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-stat { text-align: center; }
.hero-stat .val {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
}
.hero-stat .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin-top: 4px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 12px 28px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
}

.btn-gold {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-gold:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,158,164,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  background: rgba(0,158,164,0.08);
  border-color: var(--accent);
  color: var(--text-white);
}

/* ==================== TICKER ==================== */
.ticker {
  overflow:hidden; white-space:nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative; z-index:1;
  background: var(--bg-primary);
}

.ticker-inner { display:inline-block; animation: scroll 25s linear infinite; }
.ticker-inner span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-right: 60px;
  text-transform: uppercase;
  font-weight: 500;
}

@keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ==================== SECTIONS ==================== */
section {
  padding: 100px 60px;
  position: relative; z-index:1;
  max-width: 1400px;
  margin: 0 auto;
}

.sec-tag {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display:flex; align-items:center; gap:12px;
}
.sec-tag::before { content:''; width:28px; height:1px; background:var(--accent); }

.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sec-sub {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 60px;
}

/* ==================== GRIDS ==================== */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

@media(max-width:1100px) { .grid-4{grid-template-columns:repeat(2,1fr);} }
@media(max-width:900px) {
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .hero{padding:120px 24px}
  section{padding:60px 24px}
  .hero-stats{flex-wrap:wrap;gap:24px}
  .nav{padding:12px 16px}
  .nav-links{display:none}
  .stat-row{grid-template-columns:repeat(2,1fr)}
  .ai-flow{grid-template-columns:1fr}
  .vr-grid{grid-template-columns:1fr}
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.card::before {
  content:''; position:absolute;
  top:0; left:-75%; width:50%; height:100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.02), transparent);
  transform: skewX(-25deg);
  transition: 0.7s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,158,164,0.06);
}
.card:hover::before { left:125%; }

.card .icon { font-size:1.8rem; margin-bottom:14px; }
.card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.card p { color:var(--text-gray); font-size:0.85rem; line-height:1.7; }

.inspired-link {
  display:inline-block; margin-top:10px;
  font-size:0.75rem; color:var(--accent);
  text-decoration:none; opacity:.5;
  transition: all 0.3s var(--ease);
}
.inspired-link:hover { opacity:1; text-decoration:underline; }

.card .tier {
  display:inline-block; margin-top:12px;
  padding:3px 12px; font-size:0.65rem;
  font-weight:700; letter-spacing:0.1em;
  border:1px solid; border-radius:4px;
  text-transform:uppercase;
}
.t1 { border-color:var(--green); color:var(--green); }
.t2 { border-color:var(--accent); color:var(--accent); }
.t3 { border-color:var(--amber); color:var(--amber); }

/* ==================== TABLES ==================== */
.comp-table, .inv-table {
  width:100%; border-collapse:collapse; font-size:0.85rem;
  border:1px solid var(--border); border-radius:10px; overflow:hidden;
}
.comp-table th, .inv-table th {
  background: rgba(0,158,164,0.06);
  color: var(--accent);
  padding: 12px 20px; text-align:left;
  font-weight:700; font-size:0.68rem;
  letter-spacing:0.15em; text-transform:uppercase;
  border-bottom: 1px solid var(--border);
}
.comp-table td, .inv-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-gray);
}
.comp-table tr:hover td, .inv-table tr:hover td { background:rgba(0,158,164,0.02); }
.comp-table .yes { color:var(--green); font-weight:600; }
.comp-table .no { color:var(--red); }

/* ==================== SHOWCASE ==================== */
.showcase {
  position:relative;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden; margin-top:32px;
}
.showcase img {
  width:100%; display:block;
  transition: all 0.5s var(--ease);
  filter: brightness(0.92);
}
.showcase:hover img { transform:scale(1.02); filter:brightness(1); }

.showcase .overlay {
  position:absolute; bottom:0; left:0; right:0;
  padding:28px;
  background: linear-gradient(to top, rgba(10,12,14,0.95) 0%, transparent 100%);
}
.showcase .overlay h3 { font-size:1.15rem; margin-bottom:6px; }
.showcase .overlay p { color:var(--text-gray); font-size:0.88rem; }

/* ==================== STAT ROW ==================== */
.stat-row {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:20px; margin:48px 0;
}
.stat-box {
  text-align:center; padding:24px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:10px;
  transition: all 0.35s var(--ease);
}
.stat-box:hover { border-color:var(--border-accent-hover); }
.stat-box .num {
  font-size:1.8rem; font-weight:800;
  color: var(--accent);
}
.stat-box .lbl {
  font-size:0.65rem; color:var(--text-muted);
  letter-spacing:0.15em; margin-top:4px;
  text-transform:uppercase; font-weight:500;
}

/* ==================== AI FLOW ==================== */
.ai-flow {
  display:grid; grid-template-columns:1fr 1fr;
  gap:36px; align-items:center;
}
.ai-flow .ai-img {
  width:100%; border:1px solid var(--border);
  border-radius:10px;
  filter:brightness(0.92);
  transition: all 0.4s var(--ease);
}
.ai-flow .ai-img:hover { filter:brightness(1); box-shadow:0 12px 32px rgba(0,158,164,0.06); }

.ai-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.ai-list li {
  display:flex; gap:12px; align-items:flex-start;
  padding:16px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:8px;
  transition: all 0.35s var(--ease);
}
.ai-list li:hover { border-color:var(--border-accent-hover); transform:translateX(4px); }
.ai-list .n {
  min-width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,158,164,0.08);
  color:var(--accent); font-weight:800;
  font-size:0.8rem; border-radius:6px;
}
.ai-list h4 { font-size:0.9rem; margin-bottom:4px; }
.ai-list p { color:var(--text-gray); font-size:0.8rem; }

/* ==================== VR GRID ==================== */
.vr-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:32px; }
.vr-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:10px; padding:22px;
  text-align:center;
  transition: all 0.35s var(--ease);
  position:relative; overflow:hidden;
}
.vr-card::before {
  content:''; position:absolute;
  top:0; left:-75%; width:50%; height:100%;
  background:linear-gradient(to right, transparent, rgba(255,255,255,0.02), transparent);
  transform:skewX(-25deg); transition:0.7s ease;
  pointer-events:none;
}
.vr-card:hover { border-color:var(--border-accent-hover); transform:translateY(-4px); box-shadow:0 10px 28px rgba(0,158,164,0.05); }
.vr-card:hover::before { left:125%; }
.vr-card .vi { font-size:1.8rem; margin-bottom:10px; }
.vr-card h4 { font-size:0.85rem; margin-bottom:6px; }
.vr-card p { font-size:0.78rem; color:var(--text-gray); }

/* ==================== FIRST MOVER ==================== */
.first-mover {
  background: var(--bg-card);
  border: 1px solid var(--border-accent-hover);
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.first-mover::before {
  content:''; position:absolute;
  top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

/* ==================== FOOTER ==================== */
.footer {
  text-align:center; padding:80px 60px;
  border-top:1px solid var(--border);
  position:relative; z-index:1;
  background: var(--bg-primary);
}
.footer h2 { font-size:2rem; font-weight:800; margin-bottom:12px; }
.footer p { color:var(--text-gray); margin-bottom:28px; font-size:1rem; }
.footer .logos { display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:24px; }
.footer .logos img { height:40px; opacity:.8; }
.footer .sub {
  font-size:0.65rem; color:var(--text-muted);
  letter-spacing:0.2em; margin-top:20px;
  text-transform:uppercase; font-weight:500;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}

.fade {
  opacity:0; transform:translateY(20px);
  transition: all 0.6s var(--ease);
}
.fade.v { opacity:1; transform:translateY(0); }

/* ==================== TYPOGRAPHY & GENERAL GLOWS ==================== */
h1, h2, h3, h4, .sec-title, .nav-logo span {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* Glassmorphic Nav Upgrade */
.nav {
  background: rgba(10, 12, 14, 0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 158, 164, 0.1) !important;
}

/* Button Glow & Block */
.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ==================== CONFIGURATOR WIDGET ==================== */
.configurator-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.configurator-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

@media(max-width: 900px) {
  .configurator-inner {
    grid-template-columns: 1fr;
  }
}

.configurator-preview {
  position: relative;
  background: #06080a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

@media(max-width: 900px) {
  .configurator-preview {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 280px;
  }
}

.configurator-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.configurator-preview:hover img {
  transform: scale(1.01);
}

.preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 158, 164, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

/* LED Light Glow Simulation */
.led-glow-overlay {
  position: absolute;
  top: 42%;
  left: 43%;
  width: 14%;
  height: 6%;
  background: rgba(0, 200, 208, 0.6);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: bluePulse 1.8s infinite alternate;
  transition: opacity 0.3s ease, left 0.3s ease;
}

.led-glow-overlay.inactive {
  opacity: 0;
}

@keyframes bluePulse {
  0% { transform: scale(1); opacity: 0.4; filter: blur(8px); }
  100% { transform: scale(1.3); opacity: 0.9; filter: blur(14px); }
}

.configurator-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 18, 21, 0.7);
  backdrop-filter: blur(12px);
}

.panel-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.panel-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 4px;
}

.panel-header .model-name {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.option-group {
  margin-bottom: 22px;
}

.option-group label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.selector-options {
  display: flex;
  gap: 10px;
}

.select-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-gray);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.select-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.select-btn.active {
  background: rgba(0, 158, 164, 0.08);
  border-color: var(--accent);
  color: var(--accent-light);
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}

.color-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
}

.color-dot.silver::after { background: #cfd4da; }
.color-dot.yellow::after { background: #e3bd27; }

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 158, 164, 0.4);
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.toggle-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.toggle-option label {
  margin-bottom: 0;
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.config-summary {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.price-row.total {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 800;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.price-row.total span:last-child {
  color: var(--accent-light);
  font-family: 'Space Grotesk', sans-serif;
}

/* ==================== AI CHATBOT CONSOLE ==================== */
.chat-console {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.chat-header {
  padding: 12px 18px;
  background: #0b0d10;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
  animation: dotGlow 1.5s infinite alternate;
}

@keyframes dotGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.chat-model {
  font-size: 0.62rem;
  background: rgba(0, 158, 164, 0.1);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.ai { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.chat-message .message-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  border-radius: 8px;
}

.chat-message.ai .message-bubble {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border);
  border-top-left-radius: 2px;
}

.chat-message.user .message-bubble {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-top-right-radius: 2px;
}

/* Typing Indicator */
.chat-message.typing .message-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.chat-message.typing .dot {
  width: 5px;
  height: 5px;
  background: var(--text-gray);
  border-radius: 50%;
  animation: typingDot 1s infinite alternate;
}
.chat-message.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0% { transform: translateY(0); opacity: 0.3; }
  100% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.03);
  background: rgba(10, 12, 14, 0.2);
}

.chat-chip {
  background: rgba(0, 158, 164, 0.05);
  border: 1px solid rgba(0, 158, 164, 0.15);
  color: var(--accent-light);
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chat-chip:hover:not(.disabled) {
  background: rgba(0, 158, 164, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chat-chip.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.chat-chip.disabled {
  opacity: 0.5;
  cursor: default;
}

.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #0b0d10;
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 4px 4px 12px;
}

.chat-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 0.78rem;
}

.chat-input-wrapper .send-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* ==================== ROI CALCULATOR ==================== */
.roi-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media(max-width: 768px) {
  .roi-calc-grid {
    grid-template-columns: 1fr;
  }
}

.roi-slider-card {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-white);
  font-weight: 600;
}

.slider-value {
  color: var(--accent-light);
}

.roi-slider-card input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  background: rgba(255,255,255,0.08);
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.slider-hint {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.3;
}

.roi-breakdown {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 158, 164, 0.03);
  border: 1px solid rgba(0, 158, 164, 0.1);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 0.78rem;
}

@media(max-width: 768px) {
  .roi-breakdown {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

.breakdown-item span {
  color: var(--text-gray);
  margin-right: 6px;
}

@media(max-width: 900px) {
  .roi-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}
@media(max-width: 480px) {
  .roi-results-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================== GLOBAL NOTIFICATIONS ==================== */
.config-notify {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 18, 21, 0.9);
  border: 1px solid var(--border-accent-hover);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  z-index: 1000;
  max-width: 380px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.config-notify.show {
  transform: translateY(0);
  opacity: 1;
}

.config-notify .notify-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.config-notify strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-white);
  margin-bottom: 2px;
}

.config-notify p {
  font-size: 0.72rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.4;
}

/* Competitor and Investment table dashboard feel */
.comp-table th, .inv-table th {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.comp-table tr:last-child td:first-child, .inv-table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.comp-table tr:last-child td:last-child, .inv-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
