/* ReviewHamster Tools — Sentiment Analysis Tool */

/* ── Brand tokens ─────────────────────────────────────────────── */
#rb-sentiment-analysis,
#rb-sentiment-analysis .rb-sa-wrapper {
  --rb-deep-purple:   #3B0078;
  --rb-bright-purple: #6115BF;
  --rb-turquoise:     #09B8BD;
  --rb-lime:          #7EDA3B;
  --rb-negative:      #CC3366;
  --rb-neutral:       #E8EBF0;
  --rb-bg:            #F6F7F9;
  --rb-card-bg:       #ffffff;
  --rb-text:          #1A1A2E;
  --rb-text-muted:    #6B7280;
  --rb-border:        #E5E7EB;
  --rb-gradient:      linear-gradient(91deg, var(--rb-deep-purple), var(--rb-turquoise));
  --rb-shadow-sm:     0 2px 8px rgba(59,0,120,.08), 0 1px 3px rgba(0,0,0,.06);
  --rb-shadow-md:     0 8px 24px rgba(59,0,120,.12), 0 2px 8px rgba(0,0,0,.08);
  --rb-shadow-lg:     0 20px 48px rgba(59,0,120,.18), 0 8px 16px rgba(0,0,0,.10);
  --rb-radius-sm:     12px;
  --rb-radius-md:     24px;
  --rb-radius-lg:     24px;
  --rb-radius-xl:     32px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rb-text);
}

/* ── Reset isolation ──────────────────────────────────────────── */
:where(#rb-sentiment-analysis) *,
:where(#rb-sentiment-analysis) *::before,
:where(#rb-sentiment-analysis) *::after { box-sizing: border-box; }

:where(#rb-sentiment-analysis) h1,:where(#rb-sentiment-analysis) h2,
:where(#rb-sentiment-analysis) h3,:where(#rb-sentiment-analysis) h4 {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 700; line-height: 1.2; margin: 0; padding: 0;
  color: var(--rb-text); background: none; border: none;
  letter-spacing: normal; text-transform: none;
}
:where(#rb-sentiment-analysis) p { margin: 0; padding: 0; font-family: 'Poppins', -apple-system, sans-serif; }
:where(#rb-sentiment-analysis) ul, :where(#rb-sentiment-analysis) ol { list-style: none; margin: 0; padding: 0; }
:where(#rb-sentiment-analysis) li { margin: 0; padding: 0; background: transparent; border: 0; }
:where(#rb-sentiment-analysis) li::before,:where(#rb-sentiment-analysis) li::after { content: none; }
/* text-decoration: none !important beats theme .page-content a rule without raising
   specificity for color/background, so component-level selectors still override. */
:where(#rb-sentiment-analysis) a { color: inherit; text-decoration: none !important; background: transparent; }
:where(#rb-sentiment-analysis) svg { display: block; overflow: visible; }

/* ── Wrapper & layout ─────────────────────────────────────────── */
.rb-sa-wrapper {
  position: relative; overflow: clip;
  background: var(--rb-bg);
  border-radius: var(--rb-radius-xl);
  padding: 28px 18px 40px;
  margin: 32px 0;
}
@media (min-width: 641px) { .rb-sa-wrapper { padding: 48px 40px 64px; } }

/* ── Orbs ─────────────────────────────────────────────────────── */
.rb-sa-wrapper .rb-orb { position: absolute; border-radius: 50%; pointer-events: none; opacity: .35; filter: blur(72px); z-index: 0; }
.rb-sa-wrapper .rb-orb-1 { width: 500px; height: 500px; top: -180px; left: -140px; background: radial-gradient(circle, var(--rb-bright-purple) 0%, transparent 70%); }
.rb-sa-wrapper .rb-orb-2 { width: 400px; height: 400px; bottom: -160px; right: -100px; background: radial-gradient(circle, var(--rb-turquoise) 0%, transparent 70%); }

/* ── Card base ────────────────────────────────────────────────── */
.rb-sa-wrapper .rb-card {
  position: relative; z-index: 1;
  background: var(--rb-card-bg);
  border-radius: var(--rb-radius-md);
  box-shadow: var(--rb-shadow-md);
  padding: 20px 18px; margin-bottom: 20px;
}
@media (min-width: 641px) { .rb-sa-wrapper .rb-card { padding: 28px 32px; } }

/* ── Utilities ────────────────────────────────────────────────── */
.rb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rb-subheadline { font-size: 16px; line-height: 1.6; color: var(--rb-text-muted); margin: 0 0 20px; max-width: 680px; }
.rb-trust-bar { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 24px; font-size: 13px; font-weight: 500; color: var(--rb-turquoise); }
.rb-field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--rb-text); margin: 0 0 8px; }
.rb-card-heading { position: relative; z-index: 1; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--rb-deep-purple); margin: 0 0 10px; }
@media (min-width: 641px) { .rb-card-heading { font-size: 28px; } }

/* Step badge */
.rb-step-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--rb-text-muted); background: #EBEBF0; border-radius: 20px; padding: 5px 12px; margin-bottom: 16px; }
.rb-step-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }
.rb-step-badge-done { color: #16A34A; background: rgba(34,197,94,.12); }
.rb-step-badge-done svg { background: #22C55E; border-radius: 50%; padding: 2px; color: #fff; width: 16px; height: 16px; flex-shrink: 0; }

/* Section label */
.rb-section-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rb-text-muted); margin-bottom: 14px; }

/* ── Search input ─────────────────────────────────────────────── */
.rb-combobox-wrapper { position: relative; }
.rb-input-row { display: flex; align-items: center; gap: 12px; border: 2px solid var(--rb-border); border-radius: var(--rb-radius-lg); padding: 14px 18px; background: #fff; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.rb-input-row:focus-within { border-color: var(--rb-turquoise); box-shadow: 0 0 0 4px rgba(9,184,189,.14); }
.rb-input-icon { color: var(--rb-text-muted); flex-shrink: 0; }
.rb-search-input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--rb-text); outline: none; }
.rb-search-input::placeholder { color: var(--rb-text-muted); font-weight: 400; }
.rb-spinner { display: none; width: 18px; height: 18px; border: 2px solid var(--rb-border); border-top-color: var(--rb-bright-purple); border-radius: 50%; animation: rb-spin .7s linear infinite; flex-shrink: 0; }
@keyframes rb-spin { to { transform: rotate(360deg); } }
.rb-clear-btn { background: none; border: none; cursor: pointer; color: var(--rb-text-muted); padding: 4px; min-width: 44px; min-height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; transition: background .15s, color .15s; }
.rb-clear-btn:hover { background: rgba(0,0,0,.08); color: var(--rb-text); }

/* ── Autocomplete dropdown ────────────────────────────────────── */
.rb-suggestions-list { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--rb-card-bg); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); box-shadow: var(--rb-shadow-lg); position: relative; z-index: 100; }
.rb-suggestion-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-left: 3px solid transparent; cursor: pointer; transition: background .15s; }
.rb-suggestion-item:hover, .rb-suggestion-item.rb-suggestion-active { background: linear-gradient(90deg, rgba(97,21,191,.08), rgba(9,184,189,.04)); }
.rb-suggestion-item.rb-suggestion-active .rb-suggestion-name { color: var(--rb-bright-purple); }
.rb-suggestion-pin { color: var(--rb-text-muted); flex-shrink: 0; }
.rb-suggestion-item-main { flex: 1; min-width: 0; }
.rb-suggestion-name { font-size: 14px; font-weight: 600; color: var(--rb-text); }
.rb-suggestion-name strong { color: var(--rb-bright-purple); }
.rb-suggestion-address { font-size: 12px; color: var(--rb-text-muted); margin-top: 2px; }
.rb-suggestion-rating { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--rb-lime); white-space: nowrap; flex-shrink: 0; }
.rb-review-count { font-weight: 400; color: var(--rb-text-muted); }
.rb-powered-by { margin: 6px 0 0; text-align: right; }
.rb-powered-by-label { font-size: 11px; color: var(--rb-text-muted); }
.rb-google-wordmark { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }

/* ── Daily counter (absolute top-right of the hero wrapper) ────── */
.rb-sa-counter-row { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 12px; color: var(--rb-text-muted); background: rgba(255,255,255,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 20px; padding: 3px 10px; min-height: 18px; line-height: 1.6; }
@media (min-width: 641px) { .rb-sa-counter-row { top: 20px; right: 24px; } }
.rb-sa-counter-urgent { color: var(--rb-negative); font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────────────── */
.rb-btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; padding: 11px 20px; min-height: 44px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .12s; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .rb-btn:hover { transform: translateY(-1px); } }
.rb-btn:active { transform: translateY(0); }
.rb-btn-copy { background: var(--rb-lime); color: #fff; box-shadow: 0 3px 10px rgba(126,218,59,.3); padding: 12px 22px; }
.rb-btn-ternary { background: #fff; color: var(--rb-text-muted); border: 1.5px solid var(--rb-text-muted); }
.rb-btn-ternary:hover { background: rgba(9,184,189,.06); }
.rb-btn-outline { background: #fff; color: var(--rb-bright-purple); border: 2px solid var(--rb-bright-purple); }
.rb-btn-outline:hover { background: rgba(97,21,191,.05); }
.rb-btn-upsell { background: #fff; color: var(--rb-deep-purple); box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 13px 26px; font-size: 15px; }
.rb-btn-upsell:hover { box-shadow: 0 8px 24px rgba(0,0,0,.22); }

/* Business card inside profile card */
.rb-sa-profile-card { background: linear-gradient(135deg, rgba(59,0,120,.04) 0%, rgba(9,184,189,.04) 100%); border: 1.5px solid rgba(97,21,191,.1); }
.rb-sa-profile-inner { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.rb-business-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--rb-deep-purple), var(--rb-bright-purple)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; font-weight: 700; color: #fff; }
.rb-business-avatar.rb-avatar--has-favicon { background: #fff; }
.rb-avatar-favicon { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; display: block; }
.rb-business-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--rb-text); }
.rb-business-address { font-size: 13px; color: var(--rb-text-muted); margin-top: 3px; }
.rb-business-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 5px; }
.rb-rating-star { color: var(--rb-lime); }
.rb-rating-value { color: var(--rb-lime); font-weight: 600; }
.rb-rating-count { color: var(--rb-text-muted); font-weight: 400; }

.rb-sa-analyze-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Loading state ────────────────────────────────────────────── */
.rb-sa-loading { position: relative; z-index: 1; text-align: center; padding: 40px 20px; }
.rb-sa-loading-bird { display: flex; justify-content: center; margin-bottom: 32px; }
.rb-sa-logo-loading { width: 180px; height: auto; display: block; animation: rb-sa-logo-pulse 2s ease-in-out infinite; }
@keyframes rb-sa-logo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(.97); } }

.rb-sa-steps-list { display: inline-flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 24px; }
.rb-sa-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--rb-text-muted); transition: color .3s; }
.rb-sa-step.rb-sa-step--active { color: var(--rb-bright-purple); }
.rb-sa-step.rb-sa-step--done { color: #16A34A; }
.rb-sa-step-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rb-border); flex-shrink: 0; transition: all .3s; }
.rb-sa-step--active .rb-sa-step-icon { border-color: var(--rb-bright-purple); border-top-color: transparent; animation: rb-spin .7s linear infinite; }
.rb-sa-step--done   .rb-sa-step-icon { border: none; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.rb-sa-icon-pending { border-color: #22C55E; background: rgba(34,197,94,.1); }

.rb-sa-tip { font-size: 15px; font-weight: 500; color: var(--rb-text); font-style: normal; line-height: 1.6; max-width: 540px; margin: 8px auto 0; padding: 16px 20px; background: rgba(97,21,191,.05); border: 1px solid rgba(97,21,191,.13); border-radius: 10px; text-align: left; transition: opacity 0.5s ease; }

/* ── Results layout ───────────────────────────────────────────── */
.rb-sa-results { position: relative; }
.rb-sa-results-main { position: relative; z-index: 1; }

/* Sticky side-nav (desktop) */
.rb-sa-sidenav { display: none; }
@media (min-width: 900px) {
  .rb-sa-results { display: grid; grid-template-columns: 160px 1fr; gap: 0 24px; }
  .rb-sa-sidenav { display: block; }
  .rb-sa-sidenav > ul { display: flex; flex-direction: column; gap: 4px; }
  .rb-sa-sidenav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--rb-text-muted); transition: all .15s; text-decoration: none; }
  .rb-sa-sidenav a:hover,
  .rb-sa-sidenav a.rb-sa-nav-active { background: rgba(97,21,191,.08); color: var(--rb-bright-purple); font-weight: 600; }
}

/* Result cards: left accent bar */
.rb-sa-result-card { overflow: hidden; }
.rb-sa-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  /*background: var(--rb-turquoise);*/
}

/* Meta row (below profile recap) */
.rb-sa-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rb-sa-meta-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(97,21,191,.08); color: var(--rb-bright-purple); font-size: 12px; font-weight: 600; border-radius: 20px; }
.rb-sa-meta-badge-wrap { display: inline-flex; align-items: center; gap: 4px; }
#rb-sa-reviews-analyzed:empty ~ .rb-sa-tooltip-anchor { display: none; }
.rb-sa-tooltip-anchor { position: relative; display: inline-flex; align-items: center; cursor: default; }
.rb-sa-info-icon { width: 14px; height: 14px; color: var(--rb-bright-purple); opacity: 0.55; flex-shrink: 0; transition: opacity .15s; }
.rb-sa-tooltip-anchor:hover .rb-sa-info-icon,
.rb-sa-tooltip-anchor:focus-within .rb-sa-info-icon { opacity: 1; }
.rb-sa-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  pointer-events: none;
  z-index: 100;
  white-space: normal;
}
.rb-sa-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.rb-sa-tooltip-anchor:hover .rb-sa-tooltip,
.rb-sa-tooltip-anchor:focus-within .rb-sa-tooltip { display: block; }
.rb-sa-tendency-badge { padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 20px; background: rgba(9,184,189,.1); color: var(--rb-turquoise); }
.rb-sa-tendency-badge.rb-sa-tend-improving { background: rgba(34,197,94,.1); color: #16A34A; }
.rb-sa-tendency-badge.rb-sa-tend-declining { background: rgba(204,51,102,.1); color: var(--rb-negative); }
.rb-sa-cache-badge { padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 20px; background: rgba(9,184,189,.1); color: var(--rb-turquoise); }

/* AI summary */
.rb-sa-summary-text { font-size: 15px; line-height: 1.7; color: var(--rb-text); margin-bottom: 16px; }
.rb-sa-recs-heading { font-size: 13px; font-weight: 700; color: #6115BF; margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.rb-sa-recommendations { display: flex; flex-direction: column; gap: 12px; }
.rb-sa-rec-item { display: flex; gap: 16px; align-items: center; background: rgba(97,21,191,.06); border: 1px solid rgba(97,21,191,.2); border-radius: 12px; padding: 16px 20px; font-size: 14.5px; line-height: 1.65; color: var(--rb-text); box-shadow: 0 3px 12px rgba(97,21,191,.12); transition: box-shadow .25s ease, background .25s ease; }
.rb-sa-rec-item:hover { background: rgba(97,21,191,.1); box-shadow: 0 6px 20px rgba(97,21,191,.18); }
.rb-sa-rec-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #6115BF; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Donut chart */
.rb-sa-donut-wrap { display: flex; flex-direction: column; gap: 20px; align-items: center; }
@media (min-width: 500px) { .rb-sa-donut-wrap { flex-direction: row; } }
.rb-sa-donut-chart { width: 160px; height: 160px; flex-shrink: 0; }
.rb-sa-donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rb-sa-legend-item { display: flex; align-items: center; gap: 10px; }
.rb-sa-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rb-sa-legend-label { font-size: 14px; font-weight: 500; }
.rb-sa-legend-pct { font-size: 18px; font-weight: 700; margin-left: auto; }

/* Topic bars */
.rb-sa-topics { display: flex; flex-direction: column; gap: 12px; }
.rb-sa-topic { display: grid; grid-template-columns: 1fr 2fr 48px; align-items: center; gap: 10px; }
@media (max-width: 500px) { .rb-sa-topic { grid-template-columns: 1fr; gap: 4px; } }
.rb-sa-topic-name { font-size: 13px; font-weight: 600; color: var(--rb-text); }
.rb-sa-topic-bar-wrap { height: 12px; border-radius: 6px; overflow: hidden; display: flex; background: var(--rb-neutral); }
.rb-sa-topic-pos { background: var(--rb-lime); height: 100%; transition: width .4s ease; }
.rb-sa-topic-neg { background: var(--rb-negative); height: 100%; transition: width .4s ease; }
.rb-sa-topic-pct { font-size: 12px; font-weight: 600; color: var(--rb-text-muted); text-align: right; }

/* Quote cards */
.rb-sa-quotes-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .rb-sa-quotes-grid { grid-template-columns: 1fr 1fr; } }
.rb-sa-quotes-col { display: flex; flex-direction: column; gap: 12px; }
#rb-sa-pain-points, #rb-sa-highlights { display: flex; flex-direction: column; gap: 10px; }
.rb-sa-col-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.rb-sa-quote-card { border-radius: 10px; padding: 14px 16px; border: 1px solid var(--rb-border); box-shadow: var(--rb-shadow-sm); }
.rb-sa-quote-neg { background: rgba(204,51,102,.05); border-color: rgba(204,51,102,.18); }
.rb-sa-quote-pos { background: rgba(9,184,189,.05); border-color: rgba(9,184,189,.18); }
.rb-sa-quote-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rb-sa-quote-chip { font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 2px 8px; border-radius: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.04); color: var(--rb-text-muted); }
.rb-sa-quote-freq { flex-shrink: 0; font-size: 17px; font-weight: 800; border-radius: 8px; padding: 0 6px; line-height: 1.5; }
.rb-sa-quote-neg .rb-sa-quote-freq { color: #CC3366; background: rgba(204,51,102,.12); }
.rb-sa-quote-pos .rb-sa-quote-freq { color: #09B8BD; background: rgba(9,184,189,.12); }
.rb-sa-quote-body { position: relative; padding-left: 18px; }
.rb-sa-quote-mark { position: absolute; left: 0; top: -4px; font-size: 26px; line-height: 1; font-weight: 700; font-style: normal; color: var(--rb-border); }
.rb-sa-quote-text { font-size: 13px; line-height: 1.65; color: var(--rb-text-muted); font-style: italic; }

/* Trend chart */
.rb-sa-trend-wrap { position: relative; }
.rb-sa-trend-wrap canvas { max-height: 200px; }

/* CTA card — high specificity to beat .rb-sa-wrapper .rb-card (0-2-0) */
#rb-sentiment-analysis .rb-sa-cta-card {
  background: linear-gradient(90deg, var(--rb-bright-purple) 60%, var(--rb-turquoise) 90%);
  color: #fff;
  overflow: hidden;
}
#rb-sentiment-analysis .rb-sa-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.rb-sa-cta-inner { position: relative; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.rb-sa-cta-text { flex: 1; min-width: 220px; }
.rb-upsell-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; background: rgba(255,255,255,.15); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--rb-lime); margin-bottom: 10px; }
/* Lock headline + sub colour against theme h2/p rules */
#rb-sentiment-analysis .rb-sa-cta-headline { font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff !important; margin-bottom: 8px; background: none; }
#rb-sentiment-analysis .rb-sa-cta-sub     { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); }
/* Green CTA button — flex-shrink so it never wraps onto its own line alone */
#rb-sentiment-analysis .rb-sa-cta-card .rb-btn-copy { flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 15px; padding: 13px 28px; }

/* Restart button row */
.rb-sa-restart-row { text-align: center; padding-top: 8px; margin-bottom: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rb-sa-pdf-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Floating nav trigger (mobile) — hidden by default, shown only on mobile */
#rb-sentiment-analysis .rb-sa-nav-trigger {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px; height: 48px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--rb-bright-purple);
  color: #fff;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--rb-shadow-md);
  z-index: 500;
  flex-shrink: 0;
}
@media (max-width: 899px) {
  #rb-sentiment-analysis .rb-sa-results:not([hidden]) .rb-sa-nav-trigger { display: flex; }
}
.rb-sa-sidenav.rb-sa-nav-open {
  display: block;
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: #fff;
  border-radius: var(--rb-radius-md);
  box-shadow: var(--rb-shadow-lg);
  padding: 12px 8px;
  z-index: 499;
  min-width: 180px;
}
.rb-sa-sidenav.rb-sa-nav-open > ul { display: flex; flex-direction: column; gap: 2px; }
.rb-sa-sidenav.rb-sa-nav-open a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--rb-text); }
.rb-sa-sidenav.rb-sa-nav-open a:hover { background: rgba(97,21,191,.08); color: var(--rb-bright-purple); }

/* ── Toast ────────────────────────────────────────────────────── */
.rb-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--rb-text); color: #fff; padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; white-space: nowrap; }
.rb-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── High-specificity overrides (ID = 1-0-0 base) ────────────── */
#rb-sentiment-analysis .rb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; min-height: 44px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; border-radius: 10px; white-space: nowrap; cursor: pointer; text-decoration: none; border: none; transition: transform .12s, box-shadow .12s; -webkit-user-select: none; user-select: none; width: auto; }
#rb-sentiment-analysis .rb-sa-analyze-btn { font-size: 18px; }
#rb-sentiment-analysis .rb-btn-copy     { background: var(--rb-lime);          color: #fff;                    border: none; }
#rb-sentiment-analysis .rb-btn-outline  { background: #fff;                    color: var(--rb-bright-purple); border: 2px solid var(--rb-bright-purple); }
#rb-sentiment-analysis .rb-btn-ternary  { background: #fff;                    color: var(--rb-text-muted);    border: 1.5px solid var(--rb-text-muted); }
#rb-sentiment-analysis .rb-btn-upsell   { background: #fff;                    color: var(--rb-deep-purple);   border: none; }
#rb-sentiment-analysis .rb-btn-copy:hover    { background: var(--rb-lime);         color: #fff; }
#rb-sentiment-analysis .rb-btn-outline:hover { background: var(--rb-bright-purple); color: #fff; border-color: var(--rb-bright-purple); }
#rb-sentiment-analysis .rb-btn-ternary:hover { background: var(--rb-text-muted);   color: #fff; }
#rb-sentiment-analysis .rb-btn-upsell:hover  { background: #f5f5f8;                color: var(--rb-deep-purple); }
#rb-sentiment-analysis input.rb-search-input { border: none; width: auto; padding: 0; background: transparent; box-shadow: none; border-radius: 0; outline: none; }
#rb-sentiment-analysis input.rb-search-input:focus { border: none; outline: none; box-shadow: none; }
#rb-sentiment-analysis a { color: inherit; text-decoration: none; }
#rb-sentiment-analysis a:hover, #rb-sentiment-analysis a:visited { text-decoration: none; }
/* Sidenav link colors — beat generic (1,0,1) rule above so active/hover highlight shows */
#rb-sentiment-analysis .rb-sa-sidenav a { color: var(--rb-text-muted); }
#rb-sentiment-analysis .rb-sa-sidenav a:hover,
#rb-sentiment-analysis .rb-sa-sidenav a.rb-sa-nav-active { color: var(--rb-bright-purple); }
#rb-sentiment-analysis .rb-sa-sidenav.rb-sa-nav-open a { color: var(--rb-text); }
#rb-sentiment-analysis .rb-sa-sidenav.rb-sa-nav-open a:hover { color: var(--rb-bright-purple); }
#rb-sentiment-analysis *:focus-visible { outline: 3px solid var(--rb-bright-purple); outline-offset: 2px; }
#rb-sentiment-analysis input.rb-search-input:focus-visible { outline: none; }
#rb-sentiment-analysis .rb-clear-btn { background: none; border: none; cursor: pointer; color: var(--rb-text-muted); padding: 4px; min-width: 44px; min-height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: none; width: auto; }
#rb-sentiment-analysis .rb-clear-btn:hover { background: rgba(0,0,0,.08); color: var(--rb-text); border: none; box-shadow: none; }

/* ── Mobile responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .rb-sa-analyze-row { flex-direction: column; }
  .rb-sa-analyze-row .rb-btn { width: 100%; justify-content: center; }
  #rb-sentiment-analysis .rb-clear-btn { min-width: 36px; min-height: 36px; width: 36px; height: 36px; padding: 2px; }
}

/* ── Narrow phone (320–480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .rb-sa-wrapper { padding: 20px 12px 32px; }
  .rb-sa-wrapper .rb-card { padding: 16px 14px; }
  .rb-card-heading { font-size: 20px; }
  .rb-subheadline { font-size: 14px; }
  .rb-sa-tip { padding: 12px 14px; font-size: 14px; }
  .rb-sa-donut-chart { width: 130px; height: 130px; }
  .rb-sa-rec-item { padding: 12px 14px; gap: 12px; font-size: 13.5px; }
  .rb-sa-rec-num { width: 28px; height: 28px; font-size: 12px; }
  .rb-sa-quote-card { padding: 12px 12px; }
  .rb-sa-cta-inner { gap: 16px; }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rb-sa-logo-loading, .rb-spinner, .rb-sa-step--active .rb-sa-step-icon { animation: none; }
  .rb-btn:hover, .rb-btn:active { transform: none; }
  .rb-sa-topic-pos, .rb-sa-topic-neg { transition: none; }
}

/* ── Print / Save as PDF ──────────────────────────────────────── */
@media print {
  /* Preserve brand colors in print output */
  #rb-sentiment-analysis { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Hide everything except the results content */
  #rb-sentiment-analysis .rb-sa-search-card,
  #rb-sentiment-analysis .rb-sa-profile-card,
  #rb-sentiment-analysis .rb-sa-loading,
  #rb-sentiment-analysis .rb-sa-sidenav,
  #rb-sentiment-analysis .rb-sa-nav-trigger,
  #rb-sentiment-analysis .rb-sa-restart-row,
  #rb-sentiment-analysis .rb-sa-cta-card,
  #rb-sentiment-analysis .rb-toast { display: none !important; }

  /* Collapse grid → single column, remove background orbs */
  #rb-sentiment-analysis .rb-sa-results { display: block !important; }
  #rb-sentiment-analysis .rb-sa-results-main { margin-top: 0; }
  #rb-sentiment-analysis .rb-sa-wrapper { padding: 0; background: none; }
  #rb-sentiment-analysis .rb-orb { display: none; }

  /* Cards: no shadows, keep border, avoid mid-card page breaks */
  #rb-sentiment-analysis .rb-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
    margin-bottom: 16pt;
  }

  /* Trend/donut canvas: constrain to page width */
  #rb-sentiment-analysis canvas { max-width: 100%; height: auto !important; }
}

/* ── Below-the-fold help content ─────────────────────────────────────────── */
/* All selectors scoped under #rb-sentiment-analysis so the existing
   :where(#rb-sentiment-analysis) reset block (box-sizing, heading, p, ul, li, a)
   applies here too, and theme / reset.css rules cannot override our styles. */

#rb-sentiment-analysis .rb-help-content {
  margin-top: 56px;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--rb-text, #1A1A2E);
  padding: 10px;
}
#rb-sentiment-analysis .rb-help-content .rb-section {
  margin-bottom: 48px;
}
#rb-sentiment-analysis .rb-help-content .rb-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-deep-purple, #3B0078);
  margin: 0 0 16px;
  background: none;
  border: none;
  padding: 0;
}
#rb-sentiment-analysis .rb-help-content .rb-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  background: none;
  border: none;
  padding: 0;
}
#rb-sentiment-analysis .rb-help-content .rb-section p {
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px;
  padding: 0;
}
#rb-sentiment-analysis .rb-help-content .rb-section a {
  color: var(--rb-bright-purple, #6115BF);
  text-decoration: underline !important;
}
#rb-sentiment-analysis .rb-help-content .rb-section a:hover {
  color: var(--rb-deep-purple, #3B0078);
}

#rb-sentiment-analysis .rb-help-content .rb-steps { display: flex; flex-direction: column; gap: 18px; }
#rb-sentiment-analysis .rb-help-content .rb-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
#rb-sentiment-analysis .rb-help-content .rb-step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rb-bright-purple, #6115BF);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(97,21,191,.3);
}
#rb-sentiment-analysis .rb-help-content .rb-step-content { flex: 1; }
#rb-sentiment-analysis .rb-help-content .rb-step-content h3 { margin-top: 0; }

#rb-sentiment-analysis .rb-help-content .rb-practice-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
#rb-sentiment-analysis .rb-help-content .rb-practice-list li {
  padding: 14px 18px;
  background: var(--rb-bg, #F6F7F9);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}
#rb-sentiment-analysis .rb-help-content .rb-practice-list li::before { content: none; }

#rb-sentiment-analysis .rb-help-content .rb-upsell-inline-card {
  background: linear-gradient(135deg, rgba(59,0,120,.05) 0%, rgba(9,184,189,.05) 100%);
  border: 1.5px solid rgba(97,21,191,.15);
  border-radius: var(--rb-radius-md, 18px);
  padding: 24px 28px;
  margin-top: 18px;
}
#rb-sentiment-analysis .rb-help-content .rb-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
#rb-sentiment-analysis .rb-help-content .rb-feature-list li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin: 0;
  background: transparent;
}
#rb-sentiment-analysis .rb-help-content .rb-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rb-turquoise, #09B8BD);
  font-weight: 700;
}
#rb-sentiment-analysis .rb-help-content .rb-hint {
  font-size: 12px;
  color: var(--rb-text-muted, #6B7280);
  margin: 12px 0 0;
  padding: 0;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
#rb-sentiment-analysis .rb-faq-list { display: flex; flex-direction: column; gap: 8px; }
#rb-sentiment-analysis .rb-faq-item {
  background: #fff;
  border: 1.5px solid var(--rb-border, #E5E7EB);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
#rb-sentiment-analysis .rb-faq-item:has(.rb-faq-question[aria-expanded="true"]) {
  border-color: var(--rb-bright-purple, #6115BF);
  box-shadow: 0 4px 16px rgba(97,21,191,.1);
}
#rb-sentiment-analysis .rb-faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  box-shadow: none;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--rb-text, #1A1A2E);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: color .15s;
  border-radius: 0;
  outline: none;
  min-height: 0;
  text-decoration: none;
}
#rb-sentiment-analysis .rb-faq-question:hover,
#rb-sentiment-analysis .rb-faq-question[aria-expanded="true"] { color: var(--rb-bright-purple, #6115BF); }
#rb-sentiment-analysis .rb-faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--rb-bright-purple, #6115BF);
  flex-shrink: 0;
  line-height: 1;
}
#rb-sentiment-analysis .rb-faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}
#rb-sentiment-analysis .rb-faq-answer[hidden] { display: none; }
#rb-sentiment-analysis .rb-faq-answer p { margin: 0; padding: 0; }

#rb-sentiment-analysis *:focus-visible { outline: 3px solid var(--rb-bright-purple); outline-offset: 2px; }
#rb-sentiment-analysis .rb-faq-question:focus-visible { outline-offset: -3px; }

@media print {
  #rb-sentiment-analysis .rb-help-content { display: none !important; }
}

/* ── Competitive Benchmark stripe (Block H) ───────────────────── */
#rb-sentiment-analysis .rb-sa-bench-card .rb-section-label {
  display: flex; align-items: center; gap: 7px;
}
#rb-sentiment-analysis .rb-sa-bench-card .rb-section-label svg {
  color: var(--rb-bright-purple);
}

/* Loading skeleton */
#rb-sentiment-analysis .rb-sa-bench-loading {
  padding: 10px 0 6px;
}
#rb-sentiment-analysis .rb-sa-bench-loading[hidden] { display: none; }

#rb-sentiment-analysis .rb-sa-bench-progress-title {
  font-size: 13px; color: var(--rb-text-muted);
  margin: 0 0 12px; font-weight: 500;
}

#rb-sentiment-analysis .rb-sa-bench-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}

#rb-sentiment-analysis .rb-sa-bench-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--rb-text-muted);
  transition: color .25s;
}
#rb-sentiment-analysis .rb-sa-bench-step--active {
  color: var(--rb-text); font-weight: 500;
}
#rb-sentiment-analysis .rb-sa-bench-step--done {
  color: var(--rb-text-muted);
}

/* Step icon: 18×18 circle */
#rb-sentiment-analysis .rb-sa-bench-step-icon {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}

/* Pending — grey ring */
#rb-sentiment-analysis .rb-sa-bench-step--pending .rb-sa-bench-step-icon {
  border: 2px solid var(--rb-border);
}

/* Active — spinning purple ring */
#rb-sentiment-analysis .rb-sa-bench-step--active .rb-sa-bench-step-icon {
  border: 2px solid var(--rb-border);
  border-top-color: var(--rb-bright-purple);
  animation: rb-spin .7s linear infinite;
}

/* Done — green filled circle with white checkmark */
#rb-sentiment-analysis .rb-sa-bench-step--done .rb-sa-bench-step-icon {
  background: #22c55e;
  border: 2px solid #22c55e;
  position: relative;
}
#rb-sentiment-analysis .rb-sa-bench-step--done .rb-sa-bench-step-icon::after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  width: 4px; height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* Keyword pill row */
#rb-sentiment-analysis .rb-sa-bench-kw-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
#rb-sentiment-analysis .rb-sa-bench-kw-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
#rb-sentiment-analysis .rb-sa-bench-kw-text {
  font-size: 15px; font-weight: 700; color: var(--rb-text);
  background: linear-gradient(135deg, rgba(97,21,191,.08), rgba(9,184,189,.08));
  border: 1px solid rgba(97,21,191,.18);
  border-radius: 8px; padding: 5px 12px;
}
#rb-sentiment-analysis .rb-sa-bench-kw-badge {
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 3px 10px; letter-spacing: .02em;
}
#rb-sentiment-analysis .rb-sa-bench-kw-badge--ok {
  background: rgba(9,184,189,.12); color: #0a9498;
  border: 1px solid rgba(9,184,189,.3);
}
#rb-sentiment-analysis .rb-sa-bench-kw-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
#rb-sentiment-analysis .rb-sa-bench-chip {
  font-size: 12px; font-weight: 500; color: var(--rb-text-muted);
  background: var(--rb-bg); border: 1px solid var(--rb-border);
  border-radius: 20px; padding: 3px 10px;
}
#rb-sentiment-analysis .rb-sa-bench-chip--local {
  background: rgba(97,21,191,.07); border-color: rgba(97,21,191,.2);
  color: var(--rb-bright-purple);
}

/* Bars label */
#rb-sentiment-analysis .rb-sa-bench-bars-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--rb-text-muted);
  margin-bottom: 14px;
}

/* Bar list */
#rb-sentiment-analysis .rb-sa-bench-bars {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
#rb-sentiment-analysis .rb-sa-bench-bar-item {
  display: grid;
  grid-template-columns: minmax(90px, 160px) 1fr;
  align-items: center; gap: 10px;
}
#rb-sentiment-analysis .rb-sa-bench-bar-label {
  font-size: 13px; font-weight: 500; color: var(--rb-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#rb-sentiment-analysis .rb-sa-bench-bar-label a {
  color: var(--rb-text-muted);
}
#rb-sentiment-analysis .rb-sa-bench-bar-label a:hover {
  color: var(--rb-bright-purple);
}
#rb-sentiment-analysis .rb-sa-bench-bar-item--own .rb-sa-bench-bar-label {
  font-weight: 700; color: var(--rb-bright-purple);
}
#rb-sentiment-analysis .rb-sa-bench-bar-track-wrap {
  display: flex; align-items: center; gap: 8px;
}
#rb-sentiment-analysis .rb-sa-bench-bar-track {
  flex: 1; height: 10px; background: var(--rb-bg);
  border-radius: 6px; overflow: hidden;
}
#rb-sentiment-analysis .rb-sa-bench-bar-fill {
  height: 100%; border-radius: 6px;
  background: var(--rb-border);
  transition: width .6s ease;
}
#rb-sentiment-analysis .rb-sa-bench-bar-item--own .rb-sa-bench-bar-fill {
  background: linear-gradient(90deg, var(--rb-bright-purple), var(--rb-turquoise));
}
#rb-sentiment-analysis .rb-sa-bench-bar-count {
  font-size: 12px; font-weight: 600; color: var(--rb-text);
  min-width: 32px; text-align: right; white-space: nowrap;
}
#rb-sentiment-analysis .rb-sa-bench-bar-item--own .rb-sa-bench-bar-count {
  color: var(--rb-bright-purple);
}

/* Gap message */
#rb-sentiment-analysis .rb-sa-bench-gap {
  font-size: 14px; line-height: 1.55;
  border-radius: 10px; padding: 12px 16px;
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}
#rb-sentiment-analysis .rb-sa-bench-gap--behind {
  background: rgba(204,51,102,.07); border: 1px solid rgba(204,51,102,.2);
  color: #8b1a3e;
}
#rb-sentiment-analysis .rb-sa-bench-gap--ahead {
  background: rgba(9,184,189,.07); border: 1px solid rgba(9,184,189,.2);
  color: #0a7a7d;
}
#rb-sentiment-analysis .rb-sa-bench-gap-icon {
  font-size: 16px; flex-shrink: 0; margin-top: 1px;
}

/* NEW badge */
#rb-sentiment-analysis .rb-sa-bench-new-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--rb-bright-purple), var(--rb-turquoise));
  color: #fff; border-radius: 20px; padding: 2px 8px;
  vertical-align: middle; margin-left: 6px;
}

/* Lead paragraph */
#rb-sentiment-analysis .rb-sa-bench-intro {
  font-size: 14px; color: var(--rb-text-muted); line-height: 1.6;
  margin: 0 0 18px;
}

/* Stat tiles */
#rb-sentiment-analysis .rb-sa-bench-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 24px;
}
#rb-sentiment-analysis .rb-sa-bench-stat {
  background: var(--rb-bg); border: 1px solid var(--rb-border);
  border-radius: 12px; padding: 14px 16px;
  text-align: center;
}
#rb-sentiment-analysis .rb-sa-bench-stat--gap {
  background: rgba(204,51,102,.06); border-color: rgba(204,51,102,.2);
}
#rb-sentiment-analysis .rb-sa-bench-stat--ahead {
  background: rgba(9,184,189,.06); border-color: rgba(9,184,189,.2);
}
#rb-sentiment-analysis .rb-sa-bench-stat-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--rb-text-muted); margin-bottom: 6px;
}
#rb-sentiment-analysis .rb-sa-bench-stat-value {
  font-size: 22px; font-weight: 800; color: var(--rb-text); line-height: 1.1;
}
#rb-sentiment-analysis .rb-sa-bench-stat--gap .rb-sa-bench-stat-value { color: #8b1a3e; }
#rb-sentiment-analysis .rb-sa-bench-stat--ahead .rb-sa-bench-stat-value { color: #0a7a7d; }
#rb-sentiment-analysis .rb-sa-bench-stat-sub {
  font-size: 11px; color: var(--rb-text-muted); margin-top: 3px;
}

/* Rank badge on bars */
#rb-sentiment-analysis .rb-sa-bench-bar-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800; color: #fff;
  flex-shrink: 0; margin-right: 6px; vertical-align: middle;
}
#rb-sentiment-analysis .rb-sa-bench-bar-rank--1 { background: #F59E0B; }
#rb-sentiment-analysis .rb-sa-bench-bar-rank--2 { background: #94A3B8; }
#rb-sentiment-analysis .rb-sa-bench-bar-rank--3 { background: #C2784A; }
#rb-sentiment-analysis .rb-sa-bench-bar-rank--4 { background: #CBD5E1; color: #64748B; }

/* Placeholder bar */
#rb-sentiment-analysis .rb-sa-bench-bar-item--placeholder {
  opacity: .4;
}
#rb-sentiment-analysis .rb-sa-bench-bar-item--placeholder .rb-sa-bench-bar-fill {
  background: repeating-linear-gradient(
    90deg,
    var(--rb-border) 0, var(--rb-border) 6px,
    transparent 6px, transparent 12px
  );
}

/* Dashed separator before own bar */
#rb-sentiment-analysis .rb-sa-bench-sep {
  border: none; border-top: 2px dashed var(--rb-border);
  margin: 14px 0;
}

/* Gradient CTA bar */
#rb-sentiment-analysis .rb-sa-bench-cta-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, rgba(97,21,191,.08) 0%, rgba(9,184,189,.08) 100%);
  border: 1px solid rgba(97,21,191,.15);
  border-radius: 14px; padding: 18px 20px;
  margin-top: 8px;
}
#rb-sentiment-analysis .rb-sa-bench-cta-copy {
  font-size: 14px; font-weight: 600; color: var(--rb-text);
  line-height: 1.5; margin: 0; flex: 1 1 200px;
}

@media (min-width: 641px) {
  #rb-sentiment-analysis .rb-sa-bench-bar-item {
    grid-template-columns: minmax(120px, 200px) 1fr;
  }
  #rb-sentiment-analysis .rb-sa-bench-stats {
    gap: 14px;
  }
}
@media (max-width: 480px) {
  #rb-sentiment-analysis .rb-sa-bench-stats {
    grid-template-columns: 1fr;
  }
  #rb-sentiment-analysis .rb-sa-bench-cta-bar {
    flex-direction: column; align-items: stretch;
  }
  #rb-sentiment-analysis .rb-sa-bench-cta-copy {
    flex: none;
  }
  #rb-sentiment-analysis .rb-sa-bench-gap {
    display: block;
  }
  #rb-sentiment-analysis .rb-sa-bench-gap-icon {
    margin-right: 6px; margin-top: 0;
  }
}