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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #16161f;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f8;
  --muted: #8888aa;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --up: #22c55e;
  --radius: 14px;
  --font: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background decoration ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logo image — height is the single constraint; width scales with aspect ratio */
.logo-img {
  height: clamp(40px, 5.5vw, 64px);
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img--footer {
  height: clamp(32px, 4vw, 48px);
  opacity: 0.85;
}

.header-cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.header-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 100px) 0 clamp(40px, 6vw, 64px);
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  line-height: 1.7;
}

/* ── Notify form ── */
.notify-form {
  display: flex;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.notify-form:focus-within {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.notify-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
}
.notify-form input::placeholder { color: var(--muted); }

.notify-form button {
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.notify-form button:hover { opacity: 0.88; }
.notify-form button:active { opacity: 0.75; }

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 12px;
}
.form-note.success { color: var(--up); }

/* ── Stats ── */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 40px);
  margin-top: clamp(36px, 6vw, 56px);
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 700;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Dashboard mock ── */
.preview {
  padding: 24px 0 clamp(48px, 8vw, 80px);
}

.dashboard-mock {
  border-radius: clamp(12px, 2vw, 18px);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #28c840; }
.mock-title {
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.mock-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.mock-left {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--border);
}

.mock-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mock-card.total { border-color: rgba(99,102,241,0.3); }
.mock-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.mock-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.mock-change {
  display: inline-block;
  font-size: 0.75rem;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 100px;
}
.mock-change.up { background: rgba(34,197,94,0.12); color: #4ade80; }
.mock-change.neutral { background: rgba(99,102,241,0.12); color: #a5b4fc; }

.mock-right {
  padding: 20px;
}

.mock-chart-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.mock-chart-label span {
  margin-left: 8px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.chart-svg {
  width: 100%;
  height: 90px;
  display: block;
  margin-bottom: 18px;
}

.mock-allocations { font-size: 0.82rem; }
.alloc-label { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.alloc-bars { display: flex; flex-direction: column; gap: 6px; }
.alloc-row {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Features ── */
.features {
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 20px);
  text-align: left;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── CTA section ── */
.cta-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(60px, 10vw, 100px);
}

.cta-box {
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  border: 1px solid rgba(99,102,241,0.25);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-box p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-form { max-width: 400px; }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */

/* Tablet: 481px – 768px */
@media (max-width: 768px) {
  header { padding: 12px 24px; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    /* Show cards in a row on tablet */
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mock-card { flex: 1 1 140px; }
}

/* Mobile: ≤ 480px */
@media (max-width: 480px) {
  header {
    padding: 10px 16px;
    gap: 12px;
  }

  .header-cta {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  /* Hero */
  h1 .h1-break { display: none; }   /* let headline wrap naturally */

  /* Email form: stack vertically */
  .notify-form {
    flex-direction: column;
    max-width: 100%;
    border-radius: 12px;
  }
  .notify-form input {
    padding: 13px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
  }
  .notify-form button {
    padding: 13px 20px;
    border-radius: 0 0 11px 11px;
    font-size: 0.9rem;
  }

  /* Stats: hide dividers, let stats wrap */
  .divider { display: none; }
  .stats {
    gap: 20px 28px;
  }

  /* Dashboard mock: single-column cards stacked */
  .mock-left {
    flex-direction: column;
  }
  .mock-card { flex: none; }

  /* Feature cards: full width with less padding */
  .feature-card { padding: 20px; }

  /* Footer: stack everything centered */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-links { justify-content: center; }
}

/* Very small screens: ≤ 360px */
@media (max-width: 360px) {
  .header-cta { display: none; }

  .mock-chart-label,
  .mock-allocations { font-size: 0.75rem; }

  .alloc-row { grid-template-columns: 50px 1fr 28px; }
}

/* ════════════════════════════════════════════
   NEPSE LIVE MARKET SECTION
   ════════════════════════════════════════════ */

.market {
  padding: clamp(48px, 7vw, 80px) 0;
}

/* ── Market top bar ── */
.market-top { margin-bottom: 24px; }

.market-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.market-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.market-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.live  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); animation: pulse-dot 2s infinite; }
.status-dot.mock  { background: #f59e0b; }
.status-dot.error { background: #f87171; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Index cards ── */
.market-indices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.index-name {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.index-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.index-chg {
  font-size: 0.78rem;
  font-weight: 500;
}
.index-chg.up      { color: #4ade80; }
.index-chg.down    { color: #f87171; }
.index-chg.neutral { color: var(--muted); }

/* ── Market controls ── */
.market-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.market-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--muted);
  flex: 1;
  max-width: 300px;
  transition: border-color 0.2s;
}
.market-search-wrap:focus-within {
  border-color: rgba(99,102,241,0.5);
  color: var(--text);
}

#stock-search {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font);
  width: 100%;
}
#stock-search::placeholder { color: var(--muted); }

.market-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.tab-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { background: var(--accent); color: #fff; }

/* ── Stocks table ── */
.stocks-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stocks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stocks-table thead tr {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.stocks-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.stocks-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}

.stocks-table tbody tr:last-child td { border-bottom: none; }

.stocks-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}
.stocks-table tbody tr:hover { background: rgba(99,102,241,0.06); }

/* Symbol + company cells */
.stock-symbol {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.stock-company {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-ltp { font-weight: 600; }

.stock-change.up   { color: #4ade80; }
.stock-change.down { color: #f87171; }
.stock-change.flat { color: var(--muted); }

.pct-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pct-badge.up   { background: rgba(34,197,94,0.12);  color: #4ade80; }
.pct-badge.down { background: rgba(248,113,113,0.12); color: #f87171; }
.pct-badge.flat { background: rgba(136,136,170,0.1);  color: var(--muted); }

.sector-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insights-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.insights-btn:hover {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.5);
  color: #fff;
}

/* Loading / empty states */
.stocks-loading td {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

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

.market-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

/* hide columns on small screens */
@media (max-width: 900px) { .hide-md { display: none; } }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .market-controls { flex-direction: column; align-items: stretch; }
  .market-search-wrap { max-width: 100%; }
  .market-tabs { overflow-x: auto; }
  .stocks-table th, .stocks-table td { padding: 9px 10px; }
  .index-val { font-size: 0.95rem; }
}

/* ════════════════════════════════════════════
   ANALYST INSIGHTS PANEL
   ════════════════════════════════════════════ */

.ins-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ins-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.ins-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: #0f0f18;
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.ins-panel.open {
  transform: translateX(0);
}

.ins-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Panel header ── */
.ins-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ins-symbol {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.ins-name {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2px 0 6px;
  line-height: 1.4;
}

.ins-sector-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.ins-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ins-close:hover { background: var(--surface-2); color: var(--text); }

/* ── Price row ── */
.ins-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.ins-ltp {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

.ins-change-col { display: flex; flex-direction: column; gap: 2px; }

.ins-chg  { font-size: 1rem; font-weight: 600; }
.ins-pchg { font-size: 0.85rem; }
.ins-chg.up,  .ins-pchg.up   { color: #4ade80; }
.ins-chg.down,.ins-pchg.down { color: #f87171; }

.ins-live-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: pulse-dot 2s infinite;
}

/* ── Metrics grid ── */
.ins-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ins-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ins-metric span { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.ins-metric strong { font-size: 0.9rem; font-weight: 600; }

/* ── 52-week range ── */
.ins-52w {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ins-52w-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.ins-52w-labels b { color: var(--text); }

.ins-52w-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: visible;
}

.ins-52w-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #f87171, #facc15, #4ade80);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.ins-52w-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  transition: left 0.6s ease;
}

.ins-52w-pos {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.ins-52w-pos b { color: var(--text); }

/* ── Badges row ── */
.ins-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ins-rec-badge {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}
.ins-rec-badge.buy        { background: rgba(34,197,94,0.15);  color: #4ade80; border-color: rgba(34,197,94,0.3); }
.ins-rec-badge.accumulate { background: rgba(74,222,128,0.1);  color: #86efac; border-color: rgba(74,222,128,0.25); }
.ins-rec-badge.hold       { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.ins-rec-badge.reduce     { background: rgba(251,146,60,0.12); color: #fdba74; border-color: rgba(251,146,60,0.3); }
.ins-rec-badge.sell       { background: rgba(248,113,113,0.12);color: #f87171; border-color: rgba(248,113,113,0.3); }

.ins-trend-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.ins-trend-badge.strong-up   { color: #4ade80; border-color: rgba(34,197,94,0.3); }
.ins-trend-badge.up          { color: #86efac; border-color: rgba(74,222,128,0.2); }
.ins-trend-badge.strong-down { color: #f87171; border-color: rgba(248,113,113,0.3); }
.ins-trend-badge.down        { color: #fca5a5; border-color: rgba(248,113,113,0.2); }

.ins-risk-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-left: auto;
}
.ins-risk-badge.high     { color: #f87171; border-color: rgba(248,113,113,0.3); }
.ins-risk-badge.moderate { color: #fdba74; border-color: rgba(251,146,60,0.3); }
.ins-risk-badge.low      { color: #86efac; border-color: rgba(74,222,128,0.2); }

/* ── Key levels ── */
.ins-levels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ins-levels-title {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.ins-levels-grid { padding: 6px 0; }

.level-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
}
.level-row span:last-child { font-weight: 600; font-family: var(--font-display); }

.level-row.resistance2 { border-left-color: #f87171; color: var(--muted); }
.level-row.resistance1 { border-left-color: rgba(248,113,113,0.5); color: var(--muted); }
.level-row.current-level {
  border-left-color: var(--accent);
  background: rgba(99,102,241,0.07);
  color: var(--text);
  font-weight: 600;
}
.level-row.support1 { border-left-color: rgba(74,222,128,0.5); color: var(--muted); }
.level-row.support2 { border-left-color: #4ade80; color: var(--muted); }

/* ── Analyst view ── */
.ins-analysis-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ins-analysis-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.ins-narrative {
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Disclaimer ── */
.ins-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ins-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
