/* ── HOMEPAGE INLINE SECTION ── */
#ghs-site #threat-map-section {
  background: var(--deep);
  padding: 0 0 0 0;
  border-top: 1px solid var(--border);
}
#ghs-site .tm-section-header {
  text-align: center;
  padding: 72px 80px 48px;
}
#ghs-site .tm-section-header h2 {
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════════
   GHS SECURITY — CYBER ATTACK HEAT MAP STYLES
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
#ghs-site .threat-map-hero {
  position: relative;
  padding: 140px 80px 72px;
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
#ghs-site .threat-map-hero-inner { position: relative; z-index: 2; }
#ghs-site .threat-map-title {
  font-family: var(--fe);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 14px auto 18px;
}
#ghs-site .threat-map-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Map section ── */
#ghs-site #threat-map-section {
  background: #080C12;
  padding: 0;
}

/* ── Status bar ── */
#ghs-site .tm-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #0A0E16;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
#ghs-site .tm-status-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#ghs-site .tm-status-right { flex-shrink: 0; }
#ghs-site .tm-sep { opacity: 0.3; }
#ghs-site .tm-statusbar a { color: var(--purple-b); text-decoration: none; }
#ghs-site .tm-statusbar a:hover { text-decoration: underline; }

/* Status dot */
#ghs-site .tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #555;
}
#ghs-site .tm-dot-live   { background: #28CA41; box-shadow: 0 0 6px #28CA41; animation: ghs-pulse 2s infinite; }
#ghs-site .tm-dot-loading { background: #FFD700; animation: ghs-pulse 1s infinite; }
#ghs-site .tm-dot-demo   { background: #FF8C00; }
#ghs-site .tm-dot-paused { background: #555; }
@keyframes ghs-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Pause button */
#ghs-site .tm-ctrl-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  font-family: var(--fb);
}
#ghs-site .tm-ctrl-btn:hover { background: rgba(107,45,139,.2); border-color: rgba(107,45,139,.4); color: #fff; }

/* ── Layout ── */
#ghs-site .tm-layout {
  display: flex;
  height: 620px;
}

/* ── Map area ── */
#ghs-site .tm-map-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #080C12;
  min-width: 0;
}
#ghs-site #ghsThreatMapSvg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Tooltip */
#ghs-site .tm-tooltip {
  position: absolute;
  background: rgba(13,17,23,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text);
  pointer-events: none;
  z-index: 100;
}

/* Legend */
#ghs-site .tm-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(8,10,15,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
}
#ghs-site .tm-legend-title { font-size: 10px; color: var(--muted); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
#ghs-site .tm-legend-bar {
  width: 120px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #1A2030, #8B1A1A, #FF1A1A);
  margin-bottom: 4px;
}
#ghs-site .tm-legend-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

/* ── Sidebar ── */
#ghs-site .tm-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #0A0E16;
  border-left: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#ghs-site .tm-sidebar::-webkit-scrollbar { width: 4px; }
#ghs-site .tm-sidebar::-webkit-scrollbar-thumb { background: rgba(107,45,139,.3); border-radius: 2px; }

/* Stats row */
#ghs-site .tm-stats-row {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#ghs-site .tm-stat {
  flex: 1;
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
#ghs-site .tm-stat:last-child { border-right: none; }
#ghs-site .tm-stat-val {
  font-family: var(--fe);
  font-size: 20px;
  font-weight: 800;
  color: var(--purple-b);
  line-height: 1;
  margin-bottom: 4px;
}
#ghs-site .tm-stat-lbl { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }

/* Panels */
#ghs-site .tm-panel {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 16px;
}
#ghs-site .tm-panel-hdr {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Top countries */
#ghs-site .tm-country-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  cursor: pointer;
  transition: opacity .15s;
}
#ghs-site .tm-country-row:hover { opacity: 0.75; }
#ghs-site .tm-cc-flag { font-size: 14px; flex-shrink: 0; }
#ghs-site .tm-cc-name { font-size: 11px; color: var(--muted); min-width: 70px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ghs-site .tm-cc-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
#ghs-site .tm-cc-bar { height: 100%; border-radius: 2px; transition: width .6s ease; }
#ghs-site .tm-cc-count { font-size: 10px; color: var(--muted); min-width: 36px; text-align: right; flex-shrink: 0; }

/* Attack categories */
#ghs-site .tm-cats { display: flex; flex-direction: column; gap: 7px; }
#ghs-site .tm-cat { display: flex; align-items: center; gap: 8px; font-size: 12px; }
#ghs-site .tm-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
#ghs-site .tm-cat-name { flex: 1; color: var(--muted); }
#ghs-site .tm-cat-val { font-weight: 600; color: var(--text); min-width: 32px; text-align: right; }

/* Live feed */
#ghs-site .tm-feed-panel { flex: 1; min-height: 0; }
#ghs-site #tmLiveFeed { max-height: 200px; overflow: hidden; }
#ghs-site .tm-feed-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  font-size: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: opacity .3s;
}
#ghs-site .tm-feed-new { background: rgba(107,45,139,0.08); }
#ghs-site .tm-feed-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
#ghs-site .tm-feed-time { color: var(--muted); min-width: 48px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#ghs-site .tm-feed-flag { font-size: 12px; flex-shrink: 0; }
#ghs-site .tm-feed-cc { color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ghs-site .tm-feed-type { font-weight: 600; min-width: 72px; text-align: right; flex-shrink: 0; white-space: nowrap; }
#ghs-site .tm-feed-target { color: var(--muted); flex-shrink: 0; }

/* Spinner */
#ghs-site .tm-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(107,45,139,.2);
  border-top-color: var(--purple-b);
  border-radius: 50%;
  animation: ghs-spin .8s linear infinite;
  margin: 12px auto;
}
@keyframes ghs-spin { to { transform: rotate(360deg); } }

/* Note */
#ghs-site .tm-note {
  padding: 12px 16px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #ghs-site .threat-map-hero { padding: 120px 48px 60px; }
  #ghs-site .tm-section-header { padding: 56px 48px 36px; }
  #ghs-site .tm-layout { flex-direction: column; height: auto; }
  #ghs-site .tm-map-wrap { height: 360px; }
  #ghs-site .tm-sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); max-height: 480px; }
}
@media (max-width: 768px) {
  #ghs-site .threat-map-hero { padding: 110px 24px 48px; }
  #ghs-site .tm-section-header { padding: 40px 24px 28px; }
  #ghs-site .tm-map-wrap { height: 260px; }
  #ghs-site .threat-map-title { letter-spacing: -1px; }
  #ghs-site .tm-legend { display: none; }
}
