/* RESULT HEADER */
.result-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  flex-wrap:wrap;
  gap:12px;
}

.ticker-title{
  margin:0;
  font-size:34px;
}

.company-sub{
  font-size:14px;
  color:var(--muted);
}

/* SENTIMENT PILL */
.sentiment-pill{
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
}

/* BIG SCORE HERO */
.score-hero-v2{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
  border-radius:20px;
  margin:20px 0;
  background:#f8fafc;
  border:1px solid var(--line);
}

/* SCORE NUMBER */
.score-big{
  font-size:72px;
  font-weight:900;
  line-height:1;
}

/* SCORE LABEL */
.score-label{
  font-size:14px;
  color:var(--muted);
  margin-top:6px;
}

/* COLOR STATES */
.score-positive{
  background:linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.score-negative{
  background:linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
}

.score-neutral{
  background:linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
}

:root{
  --bg:#0b1220;
  --bg-soft:#111a2b;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#4f8cff;
  --brand-2:#7c5cff;
  --green-bg:#dcfce7;
  --green-text:#166534;
  --red-bg:#fee2e2;
  --red-text:#991b1b;
  --gray-bg:#e5e7eb;
  --gray-text:#374151;
  --pill-bg:#eef2ff;
  --shadow:0 20px 45px rgba(2, 8, 23, 0.16);
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
}

body{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(79,140,255,.30), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(124,92,255,.28), transparent 28%),
    radial-gradient(circle at 50% 45%, rgba(59,130,246,.10), transparent 34%),
    linear-gradient(180deg, #121b33 0%, #10182d 35%, #0f172a 68%, #111827 100%);
  background-attachment:fixed;
}

.hero{
  padding:82px 20px 54px;
  background:transparent;
}

.hero-inner{
  max-width:1100px;
  margin:0 auto;
  color:#fff;
  padding:0 20px;
}

.hero-small{
  padding:50px 20px 30px;
}

.hero-small h1{
  font-size:36px;
}

.hero-small .hero-text{
  font-size:16px;
}

.eyebrow{
  margin:0 0 14px;
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero h1{
  margin:0 0 16px;
  font-size:56px;
  line-height:1.02;
  max-width:760px;
}

.hero-text{
  margin:0;
  max-width:760px;
  font-size:19px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}

.hero-search-wrap{
  margin-top:30px;
  width:100%;
}

.container{
  max-width:1100px;
  margin:0 auto 40px;
  padding:0 20px 40px;
}

.search-card,
.results-card,
.news-section,
.disclaimer{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.35);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.search-card{
  padding:26px;
  margin-top:-10px;
  margin-bottom:22px;
}

.hero-search-card{
  margin-top:0;
  margin-bottom:0;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 22px 55px rgba(2, 8, 23, 0.28);
}

.search-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.search-top h2,
.section-head h2{
  margin:0 0 8px;
  font-size:28px;
  color:#0f172a;
}

.muted{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.search-row{
  display:flex;
  gap:14px;
  margin-top:22px;
  flex-wrap:wrap;
}

.search-row input{
  flex:1;
  min-width:260px;
  padding:18px 18px;
  font-size:17px;
  border:1px solid var(--line);
  border-radius:18px;
  outline:none;
  background:#fff;
  transition:.18s ease;
}

.search-row input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 5px rgba(59,130,246,.14);
}

.search-row button{
  padding:18px 22px;
  min-width:170px;
  border:none;
  border-radius:18px;
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, opacity .12s ease;
}

.search-row button:hover{
  transform:translateY(-1px);
  opacity:.97;
}

.search-row button:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

.status-msg{
  min-height:22px;
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}

.results-card{
  padding:28px;
  margin-bottom:22px;
}

.empty-state{
  text-align:center;
  padding:26px 8px;
}

.empty-state h3{
  margin:0 0 10px;
  font-size:26px;
  color:#0f172a;
}

.empty-state p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.results-card h2{
  margin:0 0 14px;
  font-size:38px;
  color:#0f172a;
}

.result{
  display:inline-flex;
  align-items:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:22px;
  font-size:15px;
}

.bullish{
  background:var(--green-bg);
  color:var(--green-text);
}

.bearish{
  background:var(--red-bg);
  color:var(--red-text);
}

.mixed{
  background:var(--gray-bg);
  color:var(--gray-text);
}

.metrics-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin:18px 0 22px;
}

.metric-card{
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
}

.metric-label{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.metric-value{
  font-size:20px;
  font-weight:700;
  color:#0f172a;
  line-height:1.3;
}

.drivers-wrap{
  margin-top:12px;
  padding-top:6px;
}

.drivers-title{
  display:block;
  margin-bottom:10px;
  font-weight:700;
  color:#0f172a;
}

.drivers-list,
.headline-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.driver-pill,
.tag-pill,
.headline-impact,
.headline-signal{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  border:1px solid transparent;
}

.driver-pill,
.tag-pill,
.headline-impact{
  background:var(--pill-bg);
  color:#3730a3;
  border-color:#c7d2fe;
}

.headline-signal.bullish{
  background:var(--green-bg);
  color:var(--green-text);
}

.headline-signal.bearish{
  background:var(--red-bg);
  color:var(--red-text);
}

.headline-signal.mixed{
  background:var(--gray-bg);
  color:var(--gray-text);
}

.news-section{
  padding:26px;
}

.section-head{
  margin-bottom:18px;
}

.news-list{
  list-style:none;
  padding:0;
  margin:0;
}

.headline-item{
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-bottom:14px;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.headline-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.headline-source{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.headline-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.headline-title{
  line-height:1.6;
  font-size:16px;
}

.headline-title a{
  color:#0f172a;
  text-decoration:none;
  font-weight:700;
}

.headline-title a:hover{
  text-decoration:underline;
}

.headline-tags{
  margin-top:12px;
}

.disclaimer{
  margin-top:22px;
  padding:18px 20px;
  background:rgba(255,255,255,.9);
}

.disclaimer p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

@media (max-width: 720px){
  .hero{
    padding:58px 16px 40px;
  }

  .hero h1{
    font-size:38px;
  }

  .hero-text{
    font-size:16px;
  }

  .container{
    padding:0 16px 30px;
  }

  .results-card h2{
    font-size:30px;
  }

  .search-row button{
    width:100%;
  }

  .search-card,
  .results-card,
  .news-section,
  .disclaimer{
    border-radius:20px;
  }
}

.score-guide{
  margin-top:22px;
  padding:18px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:18px;
}

.score-guide h3{
  margin:0 0 14px;
  font-size:20px;
  color:#0f172a;
}

.score-guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
  margin-bottom:16px;
}

.score-guide-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}

.score-guide-label{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:8px;
}

.score-guide-value{
  font-size:18px;
  font-weight:700;
  margin-bottom:8px;
  color:#0f172a;
}

.score-guide-card p,
.score-note{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.score-scale{
  margin:16px 0 12px;
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
}

.scale-line{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

.scale-line span{
  display:inline-block;
  padding:8px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
}

.score-hero{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:18px;
  margin:6px 0 20px;
  align-items:stretch;
}

.score-hero-left,
.confidence-card,
.meter-card{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
}

.score-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:14px;
}

.score-number-wrap{
  display:flex;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.score-number-label{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
}

.score-number{
  font-size:56px;
  line-height:1;
  font-weight:800;
  margin-top:4px;
}

.meter-bullish{
  color:#15803d;
}

.meter-bearish{
  color:#b91c1c;
}

.meter-mixed{
  color:#374151;
}

.score-band{
  margin-top:12px;
  font-size:22px;
  font-weight:800;
  color:#0f172a;
}

.score-band-text{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.confidence-label{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:10px;
}

.confidence-value{
  font-size:30px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:10px;
}

.confidence-text{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.meter-card{
  margin:0 0 20px;
}

.meter-scale-head,
.meter-scale-foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

.meter-scale-head{
  margin-bottom:10px;
}

.sentiment-meter{
  position:relative;
  height:28px;
  margin:6px 0 8px;
}

.meter-track{
  position:absolute;
  inset:8px 0 8px 0;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #dc2626 0%,
    #f87171 18%,
    #e5e7eb 50%,
    #86efac 82%,
    #16a34a 100%
  );
}

.meter-pointer{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  width:16px;
  height:28px;
  border-radius:999px;
  background:#0f172a;
  box-shadow:0 4px 12px rgba(15,23,42,.2);
}

.meter-note{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.6;
}

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

  .score-number{
    font-size:48px;
  }

  .score-band{
    font-size:20px;
  }
}
.score-panel{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:18px;
  margin:8px 0 22px;
}

.score-panel-left,
.score-scale-card{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
}

.score-topline{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.score-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
}

.score-band-label{
  font-size:16px;
  font-weight:700;
  color:#0f172a;
}

.score-main-row{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:16px;
}

.score-number-card,
.score-explainer-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}

.score-number-label,
.score-explainer-title,
.score-scale-title,
.section-mini-title{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:8px;
  font-weight:700;
}

.score-number{
  font-size:58px;
  font-weight:800;
  line-height:1;
  color:#0f172a;
}

.score-explainer-card p,
.score-note,
.confidence-copy{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.confidence-inline{
  margin:10px 0 6px;
  color:#0f172a;
}

.sentiment-meter{
  position:relative;
  height:18px;
  margin:14px 0 12px;
}

.meter-track{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #dc2626 0%,
    #f87171 22%,
    #e5e7eb 50%,
    #86efac 78%,
    #16a34a 100%
  );
}

.meter-pointer{
  position:absolute;
  top:50%;
  transform:translate(-50%, -50%);
  width:18px;
  height:18px;
  border-radius:999px;
  background:#0f172a;
  border:3px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}

.meter-label-row,
.meter-band-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}

.meter-band-row{
  margin-top:8px;
}

.score-note{
  margin-top:14px;
}

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

  .score-main-row{
    grid-template-columns:1fr;
  }

  .score-number{
    font-size:48px;
  }
}

/* NAVBAR */
.top-nav{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(11,18,32,.7);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav-logo a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:18px;
}

.nav-links{
  display:flex;
  gap:18px;
}

.nav-links a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}

.nav-links a:hover{
  color:#fff;
}

/* FOOTER */
.site-footer{
  margin-top:30px;
  padding:20px;
  background:rgba(255,255,255,.9);
  border-top:1px solid var(--line);
}

.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.footer-links{
  display:flex;
  gap:14px;
}

.footer-links a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
}

.footer-links a:hover{
  color:#0f172a;
}

.content-card{
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:22px;
  margin-bottom:18px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.content-card h2{
  margin-top:0;
  color:#0f172a;
}

.content-card p{
  color:#334155;
  line-height:1.7;
}

.content-page{
  padding-top:10px;
}

.content-page .content-card{
  max-width:940px;
  margin-left:auto;
  margin-right:auto;
}

/* ===== NEXT LEVEL RESULTS UI ===== */

.result-shell{
  display:block;
}

.result-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.result-header-left{
  min-width:0;
}

.result-header-right{
  display:flex;
  align-items:center;
}

.ticker-title{
  margin:0;
  font-size:40px;
  line-height:1;
  letter-spacing:-.02em;
}

.company-sub{
  margin-top:8px;
  color:var(--muted);
  font-size:15px;
}

.sentiment-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.hero-score-strip{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  margin:6px 0 22px;
  padding:22px;
  border-radius:24px;
  border:1px solid var(--line);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}

.hero-score-strip-left,
.hero-score-strip-right{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.65);
  border-radius:20px;
  padding:20px;
  backdrop-filter:blur(8px);
}

.hero-score-kicker,
.hero-confidence-label{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  margin-bottom:8px;
}

.hero-score-value{
  font-size:76px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  color:#0f172a;
}

.hero-score-caption{
  margin-top:10px;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}

.hero-confidence-value{
  font-size:34px;
  line-height:1.1;
  font-weight:900;
  color:#0f172a;
  margin-bottom:10px;
}

.hero-confidence-copy{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size:14px;
}

.score-tone-strong-bull{
  background:linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.score-tone-bull{
  background:linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.score-tone-neutral{
  background:linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.score-tone-bear{
  background:linear-gradient(135deg, #fff7f7 0%, #fee2e2 100%);
}

.score-tone-strong-bear{
  background:linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.premium-score-panel{
  margin-top:0;
}

.premium-score-main-row{
  align-items:stretch;
}

.score-number-card{
  position:relative;
  overflow:hidden;
}

.score-number-card::after{
  content:"";
  position:absolute;
  inset:auto -30px -30px auto;
  width:120px;
  height:120px;
  border-radius:999px;
  background:rgba(255,255,255,.45);
  filter:blur(20px);
}

.score-number-mini{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}

.premium-meter{
  overflow:visible;
}

.meter-glow{
  position:absolute;
  top:50%;
  transform:translate(-50%, -50%);
  width:34px;
  height:34px;
  border-radius:999px;
  opacity:.28;
  filter:blur(8px);
  pointer-events:none;
}

.meter-glow.score-tone-strong-bull,
.meter-glow.score-tone-bull{
  background:#22c55e;
}

.meter-glow.score-tone-strong-bear,
.meter-glow.score-tone-bear{
  background:#ef4444;
}

.meter-glow.score-tone-neutral{
  background:#64748b;
}

.meter-legend{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}

.meter-legend span{
  display:block;
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
}

.legend-bear{
  text-align:left;
}

.legend-neutral{
  text-align:center;
}

.legend-bull{
  text-align:right;
}

.premium-metrics-grid{
  margin-top:4px;
}

.metric-card{
  transition:transform .14s ease, box-shadow .14s ease;
}

.metric-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(15,23,42,.08);
}

.premium-headline-item{
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.premium-headline-item:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(15,23,42,.08);
  border-color:#cbd5e1;
}

.headline-main-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:start;
}

.headline-score-chip{
  min-width:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  font-size:14px;
  font-weight:900;
  line-height:1;
  border:1px solid transparent;
}

.headline-score-chip.score-tone-strong-bull,
.headline-score-chip.score-tone-bull{
  color:#166534;
  background:#dcfce7;
  border-color:#86efac;
}

.headline-score-chip.score-tone-strong-bear,
.headline-score-chip.score-tone-bear{
  color:#991b1b;
  background:#fee2e2;
  border-color:#fca5a5;
}

.headline-score-chip.score-tone-neutral{
  color:#374151;
  background:#e5e7eb;
  border-color:#cbd5e1;
}

@media (max-width: 900px){
  .hero-score-strip{
    grid-template-columns:1fr;
  }

  .hero-score-value{
    font-size:60px;
  }
}

@media (max-width: 720px){
  .ticker-title{
    font-size:32px;
  }

  .hero-score-strip{
    padding:16px;
    border-radius:20px;
  }

  .hero-score-strip-left,
  .hero-score-strip-right{
    padding:16px;
    border-radius:16px;
  }

  .hero-score-value{
    font-size:54px;
  }

  .hero-confidence-value{
    font-size:28px;
  }

  .headline-main-row{
    grid-template-columns:1fr;
  }

  .headline-score-chip{
    width:max-content;
  }

  .meter-legend{
    grid-template-columns:1fr;
  }

  .legend-bear,
  .legend-neutral,
  .legend-bull{
    text-align:left;
  }
}
