/* ============================================================
   Social Insight — uslublar
   Dizayn: ochiq "aurora" fon, chuqur indigo sidebar (qora emas),
   platformaga moslashuvchi aksent ranglar.
   ============================================================ */

:root {
  /* Neytral asos */
  --bg: #f4f3fb;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --ink: #211d36;
  --ink-soft: #4a4565;
  --muted: #6f6a90;
  --line: #ece9f6;
  --line-strong: #ddd8ee;

  /* Sidebar (chuqur indigo — qora EMAS) */
  --side-1: #221b41;
  --side-2: #2c2350;
  --side-ink: #cfc9ee;
  --side-ink-dim: #8e87b8;

  /* Brend / standart aksent */
  --accent: #6d4aff;
  --accent-2: #9d7bff;
  --accent-soft: #efebff;
  --accent-grad: linear-gradient(135deg, #7c5cff, #6d4aff);

  /* Kayfiyat ranglari */
  --pos: #10b981;
  --neu: #d4a72c;
  --neg: #f43f6e;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 30, 80, .05), 0 4px 14px rgba(40, 30, 80, .05);
  --shadow-md: 0 8px 30px rgba(45, 30, 90, .09);
  --shadow-lg: 0 20px 60px rgba(45, 30, 90, .14);
  --side-width: 264px;
}
a{
  text-decoration: none;
}
/* Platformaga qarab aksentni almashtiramiz */
body[data-platform="instagram"] {
  --accent: #dd2a7b; --accent-2: #f58529; --accent-soft: #fdeaf3;
  --accent-grad: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}
body[data-platform="youtube"] {
  --accent: #f0002e; --accent-2: #ff5a5a; --accent-soft: #ffe9ec;
  --accent-grad: linear-gradient(135deg, #ff5a5a, #f0002e);
}
body[data-platform="telegram"] {
  --accent: #1f9fd6; --accent-2: #2ec0ef; --accent-soft: #e4f5fd;
  --accent-grad: linear-gradient(135deg, #2ec0ef, #1f9fd6);
}
body[data-platform="facebook"] {
  --accent: #1877f2; --accent-2: #4f9bff; --accent-soft: #e8f1ff;
  --accent-grad: linear-gradient(135deg, #4f9bff, #1877f2);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Aurora fon ---- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-1 { width: 540px; height: 540px; top: -160px; left: -120px;
  background: radial-gradient(circle, #c9b8ff, transparent 70%); }
.blob-2 { width: 460px; height: 460px; top: 20%; right: -140px;
  background: radial-gradient(circle, #ffd0e6, transparent 70%); opacity: .5; }
.blob-3 { width: 520px; height: 520px; bottom: -200px; left: 30%;
  background: radial-gradient(circle, #bfeede, transparent 70%); opacity: .45; }

/* ============ LAYOUT ============ */
.layout { display: flex; min-height: 100vh; }

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--side-width);
  flex-shrink: 0;
  background: linear-gradient(185deg, var(--side-1), var(--side-2));
  color: var(--side-ink);
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 6px 0 40px rgba(34, 27, 65, .18);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 6px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px -6px var(--accent);
  transition: background .4s ease;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
.brand-sub { font-size: 11.5px; color: var(--side-ink-dim); letter-spacing: .02em; }

.nav { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.nav-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--side-ink-dim); margin: 0 0 8px 12px; font-weight: 600;
}

.nav-item {
  display: flex; align-items: center; gap: 13px;
  width: 100%; border: 0; cursor: pointer;
  background: transparent; color: var(--side-ink);
  padding: 12px 14px; border-radius: 13px;
  font-family: "Inter", sans-serif; font-size: 14.5px; font-weight: 500;
  text-align: left; position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); transform: translateX(2px); }
.nav-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .08); color: #fff;
  transition: background .18s ease;
}
.nav-name { flex: 1; }
.nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: transparent; transition: background .2s ease;
}

/* faol element platforma rangini oladi */
.nav-item.active {
  background: rgba(255, 255, 255, .1);
  color: #fff; font-weight: 600;
}
.nav-item.active .nav-ico { background: var(--accent-grad); box-shadow: 0 6px 16px -6px var(--accent); }
.nav-item.active .nav-dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* har ikon o'z brend rangida (hoverda) */
.ico-instagram { color: #f59abf; }
.ico-youtube { color: #ff8a8a; }
.ico-telegram { color: #7fd4f5; }
.ico-facebook { color: #93bdff; }
.nav-item.active .nav-ico svg { color: #fff; }

.sidebar-foot { margin-top: auto; padding: 14px 8px 4px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  padding: 9px 14px; border-radius: 999px; font-size: 12.5px; color: var(--side-ink);
}
.status-glow {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ============ MAIN ============ */
.main { flex: 1; padding: 34px clamp(20px, 4vw, 56px) 70px; max-width: 1180px; margin-inline: auto; width: 100%; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 33px); margin: 0; letter-spacing: -.02em; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 540px; }
.platform-badge {
  flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--accent-grad); padding: 7px 15px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px var(--accent); transition: background .4s ease;
}

/* ============ HERO ============ */
.hero { margin-bottom: 30px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent-grad); transition: background .4s ease;
}
.hero-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 11px; }
.input-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.input-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.input-ico svg { width: 21px; height: 21px; }
.url-input {
  flex: 1; min-width: 220px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); border-radius: 13px; padding: 13px 16px;
  font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.url-input::placeholder { color: #a9a4c0; }
.url-input:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.analyze-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 0; color: #fff; background: var(--accent-grad);
  padding: 13px 22px; border-radius: 13px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 12px 26px -10px var(--accent);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s;
}
.analyze-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.analyze-btn:active { transform: translateY(0); }
.analyze-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-arrow { transition: transform .2s; }
.analyze-btn:hover .btn-arrow { transform: translateX(3px); }
.hero-hint { margin: 13px 0 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.hero-hint.warn { color: #b4791b; }

/* ============ EMPTY / LOADING / ERROR ============ */
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-art { position: relative; width: 120px; height: 120px; margin: 0 auto 24px; }
.empty-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-soft); }
.empty-art .r1 { animation: spin 9s linear infinite; }
.empty-art .r2 { inset: 14px; border-color: var(--line-strong); animation: spin 7s linear infinite reverse; }
.empty-art .r3 { inset: 28px; border-color: var(--accent-soft); animation: spin 5s linear infinite; }
.empty-core {
  position: absolute; inset: 38px; border-radius: 50%; background: var(--accent-grad);
  color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px var(--accent);
}
.empty-state h2 { font-family: "Sora", sans-serif; color: var(--ink); margin: 0 0 8px; font-size: 20px; }
.empty-state p { max-width: 440px; margin: 0 auto; font-size: 14.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state { text-align: center; padding: 60px 20px; }
.loader { display: inline-flex; gap: 8px; margin-bottom: 20px; }
.loader span {
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  animation: bounce 1.1s infinite ease-in-out;
}
.loader span:nth-child(2) { animation-delay: .15s; background: var(--accent-2); }
.loader span:nth-child(3) { animation-delay: .3s; background: var(--accent); opacity: .7; }
@keyframes bounce { 0%,80%,100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
#loadingText { color: var(--ink-soft); font-weight: 500; margin: 0 0 18px; }
.progress-track { max-width: 320px; margin: 0 auto; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent-grad); transition: width .4s ease; }

.error-state { text-align: center; padding: 50px 20px; }
.error-ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: #ffe9ec; color: var(--neg); font-size: 30px; font-weight: 700;
  display: grid; place-items: center;
}
.error-state h3 { font-family: "Sora", sans-serif; margin: 0 0 8px; color: var(--ink); }
.error-state p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.retry-btn {
  border: 1.5px solid var(--accent); color: var(--accent); background: #fff; cursor: pointer;
  padding: 10px 22px; border-radius: 12px; font-weight: 600; font-family: "Inter", sans-serif;
  transition: background .15s, color .15s;
}
.retry-btn:hover { background: var(--accent); color: #fff; }

/* ============ RESULTS ============ */
.results { display: flex; flex-direction: column; gap: 20px; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.banner { padding: 13px 18px; border-radius: 14px; font-size: 13.5px; }
.banner-sample { background: #fff5e6; color: #92600c; border: 1px solid #ffe0b0; }
.banner-demo { background: var(--accent-soft); color: var(--ink-soft); border: 1px solid var(--line-strong); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.card-eyebrow {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 14px;
}

.grid-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* post card */
.post-title { font-family: "Sora", sans-serif; font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.post-author { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.post-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.metric {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; min-width: 78px;
}
.metric .m-val { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.metric .m-key { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.post-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.post-link:hover { text-decoration: underline; }

/* score / gauge */
.score-card { display: flex; flex-direction: column; }
.gauge-wrap { position: relative; width: 200px; max-width: 100%; margin: 4px auto 8px; }
.gauge { width: 100%; height: auto; display: block; }
.gauge-center { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge-value { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 38px; line-height: 1; color: var(--ink); }
.gauge-tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.sentiment-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 14px 0 12px; background: var(--line); }
.sentiment-bar span { display: block; height: 100%; transition: width .6s ease; }
.sentiment-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }

/* summary */
.summary-card { background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.summary-text { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* themes */
.themes { display: flex; flex-direction: column; gap: 10px; }
.theme-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 14px;
}
.theme-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.theme-name { flex: 1; font-size: 14px; font-weight: 500; }
.theme-count { font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; }

/* emotions */
.emotions { display: flex; flex-direction: column; gap: 14px; }
.emotion { }
.emotion-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.emotion-head .e-name { font-weight: 500; color: var(--ink-soft); }
.emotion-head .e-val { font-weight: 700; color: var(--ink); font-family: "Sora", sans-serif; }
.emotion-track { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.emotion-fill { height: 100%; border-radius: 99px; background: var(--accent-grad); width: 0; transition: width .7s cubic-bezier(.2,.8,.2,1); }

/* questions */
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-soft); }
.q-list li::before {
  content: "?"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* comments */
.comments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 13px; padding: 14px 16px;
}
.comment-author { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.comment-text { font-size: 14px; color: var(--ink); margin: 0 0 8px; line-height: 1.55; }
.comment-reason { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 7px; }

/* recommendations */
.rec-card { background: linear-gradient(180deg, #fff, var(--surface-2)); }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rec-list li { position: relative; padding-left: 32px; font-size: 14.5px; color: var(--ink-soft); }
.rec-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 7px; background: var(--accent-grad); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* export */
.export-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.export-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; color: #fff; background: var(--accent-grad);
  padding: 14px 24px; border-radius: 14px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 30px -12px var(--accent);
  transition: transform .16s, filter .16s;
}
.export-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.export-btn:disabled { opacity: .6; cursor: progress; }
.export-note { font-size: 13px; color: var(--muted); }

/* ============ MOBILE NAV ============ */
.menu-toggle {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  align-items: center; justify-content: center;
}
.scrim { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .grid-top, .grid-two, .comments { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 70;
    transform: translateX(-100%); transition: transform .3s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(34, 27, 65, .45); backdrop-filter: blur(2px);
  }
  .main { padding: 70px 18px 60px; }
  .topbar { flex-direction: column; }
  .input-row { flex-direction: column; align-items: stretch; }
  .input-ico { display: none; }
  .analyze-btn { justify-content: center; }
}

/* ============ A11Y ============ */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ LOGIN PANEL (Instagram / Telegram) ============ */
.login-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden; margin-bottom: 30px;
  animation: rise .4s ease both; max-width: 560px;
}
.login-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent-grad);
}
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.login-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.login-title { font-family: "Sora", sans-serif; font-size: 19px; margin: 0; color: var(--ink); }
.login-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input {
  border: 1.5px solid var(--line-strong); background: var(--surface-2);
  border-radius: 12px; padding: 12px 14px; font-family: "Inter", sans-serif;
  font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }

.login-note { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.login-note code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.login-note.warn { color: #92600c; background: #fff5e6; border: 1px solid #ffe0b0; padding: 11px 14px; border-radius: 11px; }
.login-note.warn a { color: #92600c; font-weight: 600; }
.login-error { font-size: 13px; color: var(--neg); background: #ffe9ec; border: 1px solid #ffd0d6; padding: 10px 14px; border-radius: 11px; margin: 0; }

.login-btn {
  align-self: flex-start; border: 0; cursor: pointer; color: #fff;
  background: var(--accent-grad); padding: 12px 26px; border-radius: 12px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 12px 26px -10px var(--accent); transition: transform .16s, filter .16s;
}
.login-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.login-btn:disabled { opacity: .6; cursor: progress; transform: none; }

.demo-link {
  margin-top: 18px; background: transparent; border: 0; cursor: pointer;
  color: var(--accent); font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 600;
  padding: 4px 0; text-align: left;
}
.demo-link:hover { text-decoration: underline; }

/* hero header + logged-in chip */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.logged-chip {
  font-size: 12px; font-weight: 600; color: var(--pos);
  background: #e7f8f1; border: 1px solid #bdedd9; padding: 4px 12px; border-radius: 999px;
}
