:root {
  --primary: #3d7ef2;
  --primary-dark: #2b5fc7;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #1c2333;
  --text-muted: #5c6577;
  --border: #e4e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 35, 51, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

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

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav > a:not(.btn):hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(61, 126, 242, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #eef3fd 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.card-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.card-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe4ee;
}

.card-window-bar span:first-child {
  background: #f47e7e;
}

.card-window-bar span:nth-child(2) {
  background: #f2c14e;
}

.card-window-bar span:nth-child(3) {
  background: #6fce74;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}

.file-icon {
  font-size: 1.3rem;
}

.file-row div {
  flex: 1;
  min-width: 0;
}

.file-row strong {
  display: block;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.file-state {
  color: var(--primary);
  font-weight: 700;
}

.upload-box {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
}

.upload-box span {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

/* Sections */
.features,
.pricing,
.faq {
  padding: 80px 0;
}

.features h2,
.pricing h2,
.faq h2,
.cta h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing {
  background: var(--bg-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 34px rgba(61, 126, 242, 0.18);
  position: relative;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.price-card li {
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}

.price-card li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

.price-card .btn {
  text-align: center;
}

/* CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #5a94f5 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 26px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.cta .btn-primary:hover {
  background: #eef3fd;
}

.wait-form {
  max-width: 680px;
  margin: 0 auto;
}

.wait-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.wait-row input,
.wait-row select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
}

.wait-row input {
  flex: 1 1 240px;
  min-width: 0;
}

.wait-row input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.wait-row input:focus,
.wait-row select:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.wait-row select option {
  color: #1c2333;
}

.wait-error {
  margin-top: 14px;
  color: #ffe0e0;
  font-size: 0.9rem;
}

.wait-success {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
}

.wait-success strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.wait-success span {
  opacity: 0.92;
}

.wait-success b {
  font-size: 1.15rem;
}

@media (max-width: 560px) {
  .wait-row select {
    flex: 1 1 100%;
  }
}

/* FAQ */
.faq-item {
  max-width: 720px;
  margin: 0 auto 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 20px;
}

.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "▾";
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #161b28;
  color: #a8b0c0;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 6px;
}

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

.footer-links a {
  color: #a8b0c0;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .main-nav > a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Service status ===== */
.status {
  padding: 80px 0;
}

.status h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.status-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.status-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.status-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.status-card h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.status-big {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.status-small {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-tz {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--text-muted);
}

.status-card .meter-track {
  margin-top: 10px;
  margin-bottom: 0;
}

html.dark .status-card {
  background: #1a2233;
}

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

@media (max-width: 560px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Dark theme ===== */
html.dark {
  --bg: #0f1420;
  --bg-soft: #171e2e;
  --text: #e8ecf5;
  --text-muted: #9aa4ba;
  --border: #26324a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html.dark .site-header {
  background: rgba(15, 20, 32, 0.9);
}

html.dark .hero {
  background: linear-gradient(180deg, #131a2b 0%, #0f1420 100%);
}

html.dark .feature-card,
html.dark .price-card,
html.dark .demo-card,
html.dark .faq-item,
html.dark .card-window,
html.dark .upload-box {
  background: #1a2233;
}

html.dark .btn-ghost {
  background: #1a2233;
  color: var(--text);
  border-color: var(--border);
}

html.dark .feature-icon {
  background: #232c42;
  border-color: var(--border);
}

html.dark .file-row {
  border-color: var(--border);
}

html.dark .faq-item summary {
  color: var(--text);
}

/* ===== Rotator / typing ===== */
.rotator {
  color: var(--primary);
}

.rotator .caret {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  background: var(--primary);
  animation: blink 0.9s steps(1) infinite;
  vertical-align: baseline;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ===== Theme toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

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

.theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: block;
}

/* ===== Upload / file list ===== */
.upload-box {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-box.dragover {
  border-color: var(--primary);
  background: rgba(61, 126, 242, 0.08);
}

.upload-progress {
  margin-top: 12px;
}

.upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #5a94f5);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.upload-progress small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.file-list {
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  animation: slideIn 0.25s ease;
}

.file-list li .fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list li .fsize {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.8rem;
}

.file-list li .fstate {
  color: var(--primary);
  font-weight: 700;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Demo section ===== */
.demo {
  padding: 80px 0;
  background: var(--bg-soft);
}

.demo h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.demo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.meter-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.meter-head strong {
  font-size: 1.5rem;
}

.meter-head span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meter-track {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.meter-track.small {
  height: 6px;
  margin-bottom: 6px;
  margin-top: 4px;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #5a94f5);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.meter-fill.accent {
  background: linear-gradient(90deg, #12b76a, #53d292);
}

.device {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.device:last-child {
  border-bottom: none;
}

.device > span {
  font-size: 1.3rem;
}

.device-info {
  flex: 1;
}

.device-info small {
  color: var(--text-muted);
}

.demo-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.speed-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.speed-readout strong {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.speed-readout span {
  color: var(--text-muted);
}

#speedRun {
  margin-top: 16px;
}

.speed-test.running #speedRun {
  pointer-events: none;
  opacity: 0.6;
}

/* ===== Billing toggle ===== */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.billing-toggle button {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.billing-toggle button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.billing-toggle button em {
  font-style: normal;
  font-size: 0.8rem;
  color: #12b76a;
  margin-left: 4px;
}

.billing-toggle button.active em {
  color: #d9ffe9;
}

html.dark .billing-toggle button {
  background: #1a2233;
}

html.dark .billing-toggle button.active {
  background: var(--primary);
}

/* ===== News form ===== */
.news-form {
  margin-top: 18px;
}

.news-form label {
  display: block;
  font-size: 0.85rem;
  color: #a8b0c0;
  margin-bottom: 8px;
}

.news-row {
  display: flex;
  gap: 8px;
  max-width: 380px;
}

.news-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2c3752;
  background: #1d2435;
  color: #fff;
  font-size: 0.92rem;
}

.news-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.news-success {
  color: #53d292;
  font-size: 0.88rem;
  margin-top: 8px;
}

.news-error {
  color: #f47e7e;
  font-size: 0.88rem;
  margin-top: 8px;
}

/* ===== Панель активности ===== */
.live-monitor {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 90;
  user-select: none;
  font-size: 0.82rem;
  display: none;
}

.live-monitor.open {
  display: block;
}

html.dark .live-monitor {
  background: rgba(23, 30, 46, 0.96);
}

.live-monitor-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.live-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.monitor-toggle {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.monitor-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.monitor-toggle.on {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.monitor-close {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.monitor-close:hover {
  color: var(--text);
  border-color: var(--border);
}

.live-counters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.live-counters div {
  text-align: center;
}

.live-counters strong {
  display: block;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.live-counters span {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  margin-bottom: 10px;
}

.sparkline i {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(61, 126, 242, 0.25));
  border-radius: 2px 2px 0 0;
  transition: height 0.4s ease;
}

.live-feed {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow: hidden;
}

.live-feed li {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
  animation: feedIn 0.3s ease;
  overflow: hidden;
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.live-feed .lbl {
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.live-feed .path {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  direction: rtl;
  text-align: left;
}

.live-feed .meta {
  flex-shrink: 0;
  color: #12b76a;
  font-variant-numeric: tabular-nums;
}

/* ===== Feedback widget ===== */
.feedback-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 8px 14px;
  z-index: 90;
}

html.dark .feedback-widget {
  background: rgba(23, 30, 46, 0.96);
}

.feedback-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.feedback-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: transform 0.15s;
}

.feedback-btn:hover {
  transform: scale(1.25);
}

.feedback-btn.pop {
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5) rotate(12deg);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #161b28;
  color: #e8ecf5;
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 460px;
  width: calc(100% - 40px);
  z-index: 100;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: #e8ecf5;
  border-color: #3a4663;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #161b28;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 120;
  font-size: 0.9rem;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 720px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .live-monitor {
    display: none;
  }

  .feedback-widget {
    bottom: 80px;
  }

  .cookie-banner {
    bottom: 80px;
  }
}
