:root {
  --red:        #dc143c;
  --red-dark:   #a50e2d;
  --red-light:  #fff0f3;
  --blue:       #003893;
  --blue-light: #eef2ff;
  --teal:       #0d9488;
  --green:      #16a34a;

  --bg:         #ffffff;
  --bg-page:    #f4f5f7;
  --bg-soft:    #f8f9fa;
  --bg-card:    #ffffff;
  --border:     #e5e7eb;
  --border-soft:#f3f4f6;

  --text:       #111827;
  --text-2:     #374151;
  --text-3:     #6b7280;
  --text-4:     #9ca3af;

  --footer-bg:   #111827;
  --footer-text: rgba(255,255,255,0.75);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.03);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
}

[data-theme="dark"] {
  --red:        #ff6b81;
  --red-dark:   #ff8fa0;
  --red-light:  rgba(220,20,60,0.14);
  --blue:       #7b93ff;
  --blue-light: rgba(0,56,147,0.22);
  --teal:       #2dd4bf;
  --green:      #4ade80;

  --bg:         #16171a;
  --bg-page:    #0f1012;
  --bg-soft:    #1c1d20;
  --bg-card:    #1c1d20;
  --border:     #2c2d31;
  --border-soft:#25262a;

  --text:       #f3f4f6;
  --text-2:     #d1d5db;
  --text-3:     #9ca3af;
  --text-4:     #6b7280;

  --footer-bg:   #0a0b0d;
  --footer-text: rgba(255,255,255,0.7);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
}

/* Fallback for no-JS visitors: honor system preference until the init script runs */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --red:        #ff6b81;
    --red-dark:   #ff8fa0;
    --red-light:  rgba(220,20,60,0.14);
    --blue:       #7b93ff;
    --blue-light: rgba(0,56,147,0.22);
    --teal:       #2dd4bf;
    --green:      #4ade80;
    --bg:         #16171a;
    --bg-page:    #0f1012;
    --bg-soft:    #1c1d20;
    --bg-card:    #1c1d20;
    --border:     #2c2d31;
    --border-soft:#25262a;
    --text:       #f3f4f6;
    --text-2:     #d1d5db;
    --text-3:     #9ca3af;
    --text-4:     #6b7280;
    --footer-bg:   #0a0b0d;
    --footer-text: rgba(255,255,255,0.7);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { text-decoration: none; }

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Nav */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.brand-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0b0b0b;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand {
  color: var(--red);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Language toggle (English default, Nepali via data-lang="np") */
html:not([data-lang="np"]) [data-lang-np] { display: none; }
html[data-lang="np"] [data-lang-en] { display: none; }

.nav-right { display: flex; align-items: center; gap: 6px; }

.lang-toggle {
  height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lang-toggle:hover { border-color: var(--red); color: var(--red); }

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

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all 0.15s ease;
}

.nav-links a:hover { color: var(--red); background: var(--red-light); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover { border-color: var(--red); color: var(--red); }

.theme-toggle svg { width: 17px; height: 17px; }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Thin tricolor accent bar (replaces the old three-bar flag stripe) */
.accent-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, var(--blue) 40%, var(--blue) 75%, var(--text-4) 75%, var(--text-4) 100%);
  opacity: 0.9;
}

main.wrap { padding: 32px 24px 80px; }

/* Hero: split 60/40 layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0 8px;
}

.hero-heading {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-subheading {
  margin: 0 0 20px;
  color: var(--text-3);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 46ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
  flex: none;
  animation: blink 1.8s ease-in-out infinite;
}

.hero-right { min-width: 0; }

.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 12px 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.pulse-eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pulse-card canvas { display: block; width: 100%; }

.pulse-caption {
  margin: 8px 0 0;
  text-align: center;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 500;
}

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-heading { font-size: 1.6rem; }
}

/* Cards */
.card-grid { display: flex; flex-direction: column; gap: 18px; }

.card, .post-card, .page-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease forwards;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(220,20,60,0.25);
}

.card-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; color: var(--text); }

.card-date {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.card-excerpt { margin: 0 0 14px; color: var(--text-2); line-height: 1.6; }

.card-link { color: var(--red); font-weight: 700; font-size: 0.88rem; }

/* Featured (latest) card */
.featured-card { padding: 40px 44px; min-height: 220px; margin-bottom: 4px; }
.featured-card .card-title { font-size: 1.7rem; line-height: 1.25; margin-bottom: 10px; }
.featured-card .card-date { font-size: 0.85rem; }
.featured-card .card-excerpt { font-size: 1rem; }

/* Section divider */
.section-divider { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

/* Mini grid: last 10 days, 5 columns x 2 rows */
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.mini-card {
  padding: 10px 0 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  aspect-ratio: 1 / 1.3;
  overflow: hidden;
}
.mini-card:hover { border: none; }
.mini-card .card-date { font-size: 0.65rem; margin: 0 0 4px; flex: 0 0 auto; padding: 0 10px; }
.mini-card .card-title {
  font-size: 0.83rem;
  margin: 0 0 6px;
  flex: 0 0 auto;
  width: 100%;
  padding: 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-wc {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: block;
}

.mini-visits {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
}
.mini-visits svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.75; }

.archive-visits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  margin: -6px 0 12px;
}
.archive-visits svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.75; }

.archive-link-row { text-align: center; margin-top: 30px; }
.archive-link { color: var(--red); font-weight: 700; font-size: 0.92rem; }
.archive-link:hover { color: var(--red-dark); }

.archive-header { text-align: center; margin: 4px 0 28px; }
.archive-sub { color: var(--text-3); font-size: 0.92rem; margin: 6px 0 0; }
.archive-empty { color: var(--text-3); text-align: center; padding: 20px 0; }

@media (max-width: 700px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

.post-card, .page-card { animation-delay: 0s; }

.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  border: 1px solid rgba(220,20,60,0.2);
  color: var(--red);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.post-title, .page-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; }

.post-date {
  color: var(--text-3);
  margin: 0 0 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.post-content p, .page-content p { line-height: 1.75; margin: 0 0 18px; color: var(--text-2); }

.post-content h2 {
  margin: 30px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px solid var(--red-light);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-content h2:first-child { margin-top: 0; }

.post-content h2 img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
}

.post-content ol, .post-content ul { padding-left: 20px; margin: 0 0 20px; }

.post-content li { margin-bottom: 12px; line-height: 1.65; color: var(--text-2); }

.post-content li strong { color: var(--text); }

.post-content li code {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.post-content a, .page-content a { color: var(--red); font-weight: 500; }

/* Share buttons */
.share-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-right: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.share-btn svg { width: 14px; height: 14px; }

.share-btn:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.share-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.outlet-box { position: relative; }

.outlet-share-row {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.outlet-share-row .share-btn {
  width: 26px;
  height: 26px;
  background: var(--bg-card);
}

.outlet-share-row .share-btn svg { width: 12px; height: 12px; }

@media (max-width: 620px) {
  .outlet-share-row { position: static; justify-content: flex-end; margin-bottom: 10px; }
}

/* Outlet boxes: narrow rotated-label sidebar + wide headline column */
.outlet-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0 0 22px;
}

.outlet-side {
  flex: 0 0 60px;
  width: 60px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 0;
}

.outlet-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
}

.outlet-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
}

.outlet-items {
  flex: 1;
  min-width: 0;
  padding: 24px 46px 24px 26px;
}

.outlet-items ol, .outlet-items ul { margin: 0; padding-left: 20px; }
.outlet-items li {
  margin-bottom: 14px;
  padding: 4px 6px;
  margin-left: -6px;
  margin-right: -6px;
  border-radius: 8px;
  transition: background-color .2s ease;
  cursor: default;
}
.outlet-items li:last-child { margin-bottom: 0; }
.outlet-items li:hover,
.outlet-items li.expanded {
  background: var(--bg-soft);
}
.hl-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.55;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.hl-detail p { margin: 0; }
.outlet-items li:hover .hl-detail,
.outlet-items li.expanded .hl-detail {
  max-height: 260px;
  opacity: 1;
  margin-top: 8px;
}
.outlet-items li:hover strong,
.outlet-items li.expanded strong { color: var(--red); }

@media (max-width: 620px) {
  .outlet-box { flex-direction: column; }
  .outlet-side {
    flex-direction: row;
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .outlet-name { writing-mode: horizontal-tb; transform: none; }
  .outlet-items { padding: 18px 20px; }
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--red-dark); }

/* --- National Sentiment Quantified (homepage, next to Latest digest) --- */
.latest-digest-row { display: flex; align-items: stretch; gap: 24px; }
.latest-digest-col { flex: 1 1 50%; min-width: 0; }
.sentiment-col {
  flex: 1 1 50%; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  padding: 16px 16px 14px; overflow: hidden;
}
.sentiment-col-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 6px; text-align: center; flex: 0 0 auto; line-height: 1.35;
}
.sentiment-col-label .line-1 { display: block; color: var(--red); font-size: 0.72rem; }
.sentiment-col-label .line-2 { display: block; }
.gauge-cell { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.gauge-cell.today { flex: 2.4 1 0; }
.gauge-cell.yesterday { flex: 1.5 1 0; }
.gauge-cell img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gauge-divider { flex: 0 0 auto; height: 2px; background: var(--red); border: none; margin: 0 0 2px; opacity: 0.85; }
.sentiment-share-row { flex: 0 0 auto; justify-content: center; margin-top: 8px; }
.featured-card { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 780px) {
  .latest-digest-row { flex-direction: column; }
  .sentiment-col { flex: 0 0 auto; }
  /* flex-basis must be reset to auto here, otherwise the base rule's
     "flex: 2.4 1 0" / "flex: 1.5 1 0" (basis 0) wins over height and the
     gauges collapse to 0px tall on mobile, even though the label and
     share-row above/below them render fine. */
  .gauge-cell.today { flex: 0 0 auto; height: 300px; }
  .gauge-cell.yesterday { flex: 0 0 auto; height: 110px; }
}


/* Footer */
.site-footer { background: var(--footer-bg); padding: 0; margin-top: 24px; }

.footer-inner {
  display: flex;
  align-items: stretch;
  text-align: left;
}

.footer-logo-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { height: 75%; width: auto; max-width: 100%; object-fit: contain; display: block; }

.footer-middle {
  flex: 3 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 44px;
}

.footer-desc {
  color: var(--footer-text);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 0 16px;
  line-height: 1.65;
}

.footer-divider { width: 64px; height: 1px; background: rgba(255,255,255,0.16); margin: 0 0 16px; }

.footer-sources {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.footer-sources-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-align: center;
}

.footer-source-item {
  color: var(--footer-text);
  font-size: 0.76rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-contact { margin: 0 0 6px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.footer-contact a { color: #fff; font-weight: 600; }

.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin: 0; }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo-col {
    width: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    justify-content: center;
  }
  .footer-logo { height: 48px; max-width: none; }
  .footer-middle { align-items: center; padding: 24px 20px; }
  .footer-divider { margin: 0 auto 12px; }
  .footer-sources {
    width: auto;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }
  .footer-sources-label { justify-content: center; width: 100%; margin-bottom: 4px; }
  .footer-source-item {
    width: auto;
    padding: 2px 9px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .brand { font-size: 1.05rem; }
  .card, .post-card, .page-card { padding: 20px 20px; }
}

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
  z-index: 500;
}
.scroll-top-btn svg { width: 18px; height: 18px; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--red-dark); }

@media (max-width: 600px) {
  .scroll-top-btn { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}
