body {
  font-family: Inter, sans-serif;
  background: #07090e;
  color: #f8fafc;
}

.glow-green { box-shadow: 0 0 25px rgba(0, 255, 102, .15); }
.glow-card { box-shadow: 0 4px 20px -2px rgba(0, 0, 0, .5); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { border-radius: 4px; background: #334155; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.main-tab.active {
  background: linear-gradient(90deg, #00ff66, #10b981);
  color: #07090e;
  box-shadow: 0 10px 24px rgba(0, 255, 102, .16);
}
.header-tab.active { color: #00ff66; }
.firm-card[hidden], .tab-panel[hidden] { display: none !important; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(420px, calc(100% - 40px));
  border: 1px solid rgba(0, 255, 102, .4);
  border-radius: 12px;
  background: #1e293b;
  color: white;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(120px);
  transition: .3s ease;
}
.toast.show { opacity: 1; transform: none; }

.compare-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(0, 255, 102, .4);
  border-radius: 14px;
  background: #0f172a;
  padding: 12px 14px 12px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  transform: translateX(-50%);
}
.compare-dock[hidden] { display: none; }
.compare-dock button { border: 0; border-radius: 10px; background: #00ff66; color: #07090e; padding: 10px 14px; font-weight: 900; }

dialog {
  width: min(900px, calc(100% - 24px));
  border: 1px solid #334155;
  border-radius: 20px;
  background: #0f172a;
  color: white;
  padding: 24px;
}
dialog::backdrop { background: rgba(2, 6, 13, .78); backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog-head h2 { font-size: 22px; font-weight: 800; }
.dialog-head button { border: 0; background: transparent; color: white; font-size: 28px; cursor: pointer; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid #334155; padding: 12px; text-align: left; font-size: 12px; white-space: pre-line; }
.compare-table th:first-child, .compare-table td:first-child { color: #94a3b8; font-size: 10px; font-weight: 800; }

.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: min(560px, calc(100% - 40px));
  border: 1px solid #334155;
  border-radius: 16px;
  background: #0f172a;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}
.consent-banner p { margin: 8px 0 16px; color: #94a3b8; font-size: 12px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 9px; }
.consent-actions button, .privacy-settings { border-radius: 9px; padding: 9px 12px; font-weight: 800; }
.consent-primary { border: 0; background: #00ff66; color: #07090e; }
.consent-secondary, .privacy-settings { border: 1px solid #334155; background: #1e293b; color: #e2e8f0; }
.privacy-settings { position: fixed; left: 14px; bottom: 14px; z-index: 50; font-size: 10px; }

.ad-banner { width: min(1280px, calc(100% - 32px)); margin: 24px auto; }
.grid > .ad-banner { grid-column: 1 / -1; width: 100%; margin: 0; }
.ad-banner a, .code-banner { position: relative; display: block; overflow: hidden; border: 1px solid #334155; border-radius: 16px; background: #0f172a; }
.ad-banner img { display: block; width: 100%; height: auto; }
.ad-banner iframe { display: block; width: 100%; height: 190px; border: 0; }
.ad-banner span { position: absolute; right: 8px; bottom: 8px; border-radius: 5px; background: rgba(2, 6, 23, .85); color: #94a3b8; padding: 3px 6px; font-size: 8px; font-weight: 700; text-transform: uppercase; }

@media (max-width: 640px) {
  .consent-actions { flex-direction: column-reverse; }
  .compare-dock { width: calc(100% - 24px); justify-content: space-between; }
}
