body {
  font-family: Arial, sans-serif;
  max-width: 1400px;
  margin: 50px auto;
  padding: 20px;
  background: #000000;
  color: #e0e0e0;
}

#siteTitle {
  color: #4dd0ff;
  font-size: 42px;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 12px rgba(77, 208, 255, 0.6);
}

#siteTagline {
  text-align: center;
  color: #8b96ad;
  font-size: 16px;
  margin-top: -10px;
  margin-bottom: 30px;
  font-weight: normal;
}

#cb-your-ip {
  text-align: center;
  color: var(--cb-muted, #8b96ad);
  font-size: 14px;
  font-family: monospace;
  margin-top: -20px;
  margin-bottom: 30px;
}

#cb-ip-value {
  color: var(--cb-accent, #4fd1c5);
}

#toolTitle {
  color: #4dd0ff;
  font-size: 20px;
  text-align: center;
  margin-top: 5px;
  font-weight: normal;
}

button {
  background: #4dd0ff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 16px;
  background: #111827;
  color: #e0e0e0;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  word-break: break-all;
  gap: 10px;
  border: 1px solid #4dd0ff;
}

.copy-btn {
  background: #4dd0ff;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}

.copy-btn:hover {
  opacity: 0.85;
}

.copy-btn.copied {
  background: #2e7d32;
  color: #fff;
}

/* ==========================================================================
   Added for the two-column dashboard layout + Threat Intel Feed widget
   Paste everything below this line onto the END of your existing style.css
   ========================================================================== */

.cb-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .cb-dashboard {
    grid-template-columns: 1fr;
  }
}

.cb-widget {
  --cb-bg: #0f1420;
  --cb-panel-bg: #161d2e;
  --cb-border: #263048;
  --cb-text: #e4e9f2;
  --cb-muted: #8b96ad;
  --cb-accent: #4fd1c5;
  --cb-critical: #ff5c5c;
  --cb-high: #ffb020;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cb-bg);
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-radius: 10px;
  padding: 20px;
}

.cb-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cb-widget__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cb-widget__updated {
  font-size: 0.75rem;
  color: var(--cb-muted);
}

/* Stacked single column since the widget now lives in half the page width */
.cb-widget .cb-widget__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cb-panel {
  background: var(--cb-panel-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 14px;
  min-height: 80px;
}

.cb-panel h3 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cb-muted);
}

.cb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.cb-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cb-border);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cb-list li:last-child {
  border-bottom: none;
}

.cb-list a {
  color: var(--cb-text);
  text-decoration: none;
}

.cb-list a:hover {
  color: var(--cb-accent);
  text-decoration: underline;
}

.cb-list .cb-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--cb-muted);
}

.cb-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.cb-badge--critical {
  background: rgba(255, 92, 92, 0.15);
  color: var(--cb-critical);
}

.cb-badge--high {
  background: rgba(255, 176, 32, 0.15);
  color: var(--cb-high);
}

.cb-badge--ransomware {
  background: rgba(255, 92, 92, 0.25);
  color: var(--cb-critical);
}

.cb-widget__error {
  margin-top: 14px;
  color: var(--cb-critical);
  font-size: 0.85rem;
}

.cb-empty {
  color: var(--cb-muted);
  font-size: 0.85rem;
}

.cb-dns-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cb-dns-input-row input[type="text"] {
  flex: 1;
  background: var(--cb-panel-bg);
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.cb-dns-input-row select {
  background: var(--cb-panel-bg);
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.9rem;
}

.cb-dns-input-row button {
  margin: 0;
}

.cb-dns-result {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.cb-dns-status {
  font-size: 0.8rem;
  color: var(--cb-muted);
  margin-bottom: 10px;
}

.cb-vt-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cb-vt-tab {
  background: var(--cb-panel-bg, #161d2e);
  color: var(--cb-muted, #8b96ad);
  border: 1px solid var(--cb-border, #263048);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0;
}

.cb-vt-tab.active {
  background: var(--cb-accent, #4fd1c5);
  color: #000;
  border-color: var(--cb-accent, #4fd1c5);
}

.cb-vt-panel {
  display: none;
}

.cb-vt-panel.active {
  display: block;
}

.cb-vt-warning {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid #34d399;
  color: #34d399;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.cb-vt-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.cb-vt-input-row input[type="text"] {
  flex: 1;
  background: var(--cb-panel-bg, #161d2e);
  color: var(--cb-text, #e4e9f2);
  border: 1px solid var(--cb-border, #263048);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.cb-vt-input-row input[type="file"] {
  flex: 1;
  color: var(--cb-muted, #8b96ad);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.cb-vt-input-row input[type="file"]::file-selector-button {
  background: var(--cb-accent, #4fd1c5);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: opacity 0.15s ease;
}

.cb-vt-input-row input[type="file"]::file-selector-button:hover {
  opacity: 0.85;
}

/* Safari / older WebKit fallback */
.cb-vt-input-row input[type="file"]::-webkit-file-upload-button {
  background: var(--cb-accent, #4fd1c5);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

.cb-vt-input-row button {
  margin: 0;
  white-space: nowrap;
}

.cb-vt-status {
  font-size: 0.8rem;
  color: var(--cb-muted, #8b96ad);
  margin-bottom: 10px;
}

.cb-vt-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cb-vt-stat {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--cb-panel-bg, #161d2e);
  border: 1px solid var(--cb-border, #263048);
}

.cb-vt-stat--malicious {
  color: var(--cb-critical, #ff5c5c);
  border-color: var(--cb-critical, #ff5c5c);
}

.cb-vt-stat--suspicious {
  color: var(--cb-high, #ffb020);
  border-color: var(--cb-high, #ffb020);
}

.cb-center-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cb-speedtest-gauges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cb-gauge {
  position: relative;
  width: 140px;
  height: 140px;
}

.cb-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cb-gauge-track {
  fill: none;
  stroke: var(--cb-border, #263048);
  stroke-width: 12;
}

.cb-gauge-progress {
  fill: none;
  stroke: var(--cb-accent, #4fd1c5);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 0.3s ease;
}

.cb-gauge-progress.cb-gauge-upload {
  stroke: #ffb020;
}

.cb-gauge-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cb-gauge-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cb-text, #e4e9f2);
  font-family: monospace;
}

.cb-gauge-unit {
  font-size: 0.7rem;
  color: var(--cb-muted, #8b96ad);
}

.cb-gauge-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cb-muted, #8b96ad);
  text-align: center;
  margin-top: 6px;
}

.cb-speedtest-ping {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--cb-text, #e4e9f2);
}

.cb-speedtest-ping span {
  font-family: monospace;
  font-weight: 700;
}

.cb-speedtest-status {
  text-align: center;
  font-size: 0.8rem;
  color: var(--cb-muted, #8b96ad);
  margin-bottom: 14px;
  min-height: 1em;
}

#cb-speedtest-start {
  display: block;
  margin: 0 auto;
}

#matrix-rain-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020403;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

#matrix-rain-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

