/* === PERSIST SECURITY - Cyber Intelligence === */

:root {
  --bg-primary: #0a0a0f;
  --bg-panel: rgba(0, 10, 20, 0.88);
  --bg-panel-hover: rgba(0, 20, 40, 0.95);
  --border-color: #004060;
  --border-glow: #006090;
  --text-primary: #e0e8f0;
  --text-secondary: #7090a0;
  --text-highlight: #00ff88;
  --text-title: #00e5ff;
  --color-ddos: #ff0040;
  --color-malware: #bf00ff;
  --color-exploit: #ff8c00;
  --color-scan: #00e5ff;
  --color-bruteforce: #ffff00;
  --color-phishing: #00ff88;
  --color-botnet: #ff0080;
  --glow-cyan: 0 0 10px rgba(0, 229, 255, 0.3);
  --glow-green: 0 0 10px rgba(0, 255, 136, 0.3);
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
}

/* === Light Mode Override === */
body.light-mode {
  --bg-primary: #e8ecf0;
  --bg-panel: rgba(220, 230, 240, 0.95);
  --bg-panel-hover: rgba(200, 215, 230, 0.98);
  --border-color: #a0b8cc;
  --border-glow: #5090c0;
  --text-primary: #1a2a3a;
  --text-secondary: #506878;
  --text-highlight: #007a44;
  --text-title: #006099;
  --glow-cyan: 0 0 8px rgba(0, 100, 160, 0.2);
  --glow-green: 0 0 8px rgba(0, 122, 68, 0.2);
}

body.light-mode #globe-container {
  background: radial-gradient(ellipse at center, #c8d8e8 0%, #e0e8f0 70%) !important;
}

body.light-mode .outage-card,
body.light-mode .attack-popup,
body.light-mode .popup-box {
  background: rgba(230, 238, 245, 0.96) !important;
  backdrop-filter: blur(10px);
}

body.light-mode .reg-card {
  background: rgba(235, 240, 248, 0.96) !important;
}

body.light-mode .reg-field input {
  background: rgba(255, 255, 255, 0.8);
  border-color: #a0b8cc;
  color: #1a2a3a;
}

body.light-mode .feed-item {
  background: rgba(210, 225, 240, 0.5);
}

body.light-mode .stat-box {
  background: rgba(210, 225, 240, 0.6);
}

body.light-mode .powered-badge {
  background: rgba(220, 230, 240, 0.85);
  color: #506878;
}

body.light-mode .powered-badge strong {
  color: #006099;
}

body.light-mode .header-logo {
  mix-blend-mode: normal;
  filter: brightness(1);
}

body.light-mode .target-item {
  background: rgba(210, 225, 240, 0.5);
  border-color: #a0b8cc;
}

body.light-mode ::-webkit-scrollbar-thumb { background: #a0b8cc; }

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }

/* === Header === */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  min-height: 50px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.15);
  transition: filter 0.3s;
}

.header-logo:hover {
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(0, 180, 255, 0.5));
}

.header-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border-color);
  padding-left: 14px;
}

.title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 4px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.15);
  white-space: nowrap;
}

.subtitle {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 3px;
}

.header-tagline {
  font-size: 10px;
  color: var(--text-title);
  letter-spacing: 1px;
  border-left: 1px solid var(--border-color);
  padding-left: 14px;
  opacity: 0.7;
  white-space: nowrap;
  text-shadow: var(--glow-cyan);
}

.lang-toggle-btn {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-title);
  background: rgba(0, 40, 60, 0.5);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle-btn:hover {
  background: rgba(0, 60, 90, 0.7);
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

.theme-toggle-btn {
  font-size: 16px;
  color: var(--text-title);
  background: rgba(0, 40, 60, 0.5);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: rgba(0, 60, 90, 0.7);
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

.header-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.stat-box {
  text-align: center;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: rgba(0, 20, 40, 0.5);
}

.stat-label {
  display: block;
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-highlight);
  text-shadow: var(--glow-green);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row;
  padding: 8px 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffff00;
  box-shadow: 0 0 6px #ffff00;
  transition: all 0.3s;
}

.status-dot.connected {
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}

.status-dot.disconnected {
  background: #ff0040;
  box-shadow: 0 0 10px #ff0040;
}

/* === Main Layout === */
#main {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* === Panels === */
.panel {
  width: 260px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}

#panel-right {
  width: 340px;
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-title);
  letter-spacing: 2px;
  padding: 12px 15px 8px;
  border-bottom: 1px solid rgba(0, 64, 96, 0.5);
  text-shadow: var(--glow-cyan);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

/* === Israel Attack Data Section === */
.israel-section {
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.israel-section:hover {
  background: var(--bg-panel-hover);
  border-top-color: var(--border-glow);
  box-shadow: inset 0 0 20px rgba(0, 100, 200, 0.1);
}

.israel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.israel-24h-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(0, 100, 200, 0.3);
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text-title);
  letter-spacing: 1px;
}

.israel-total-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 8px;
}

.israel-flag-large {
  font-size: 28px;
  filter: drop-shadow(0 0 6px rgba(0, 100, 200, 0.4));
}

.israel-total-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.israel-total-label {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.israel-total-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-highlight);
  text-shadow: var(--glow-green);
}

.israel-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(0, 64, 96, 0.3);
  margin-bottom: 8px;
}

.israel-rate-label {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.israel-rate-value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-title);
}

.israel-types {
  padding: 0;
}

.israel-type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 11px;
}

.israel-type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.israel-type-name {
  flex: 1;
  letter-spacing: 1px;
}

.israel-type-count {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-highlight);
}

.israel-sub-title {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-title);
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 6px;
  text-shadow: var(--glow-cyan);
}

.israel-sources {
  padding: 0;
}

.israel-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 11px;
}

.israel-source-name {
  color: var(--text-secondary);
}

.israel-source-count {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-highlight);
}

/* === Service Outage Card === */
.outage-card {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 260px;
  max-height: 420px;
  background: rgba(5, 10, 18, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 60, 100, 0.15);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.outage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.outage-title {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-title);
  letter-spacing: 2px;
  text-shadow: var(--glow-cyan);
}

.outage-badge {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}

.outage-badge.has-issues {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
  border-color: rgba(255, 200, 0, 0.3);
}

.outage-badge.major-outage {
  background: rgba(255, 0, 64, 0.15);
  color: #ff0040;
  border-color: rgba(255, 0, 64, 0.3);
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.outage-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
}

.outage-loading {
  color: var(--text-secondary);
  font-size: 10px;
  text-align: center;
  padding: 20px 0;
}

.outage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 3px;
  transition: background 0.2s;
}

.outage-item:hover {
  background: rgba(0, 40, 60, 0.4);
}

.outage-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}

.outage-status-dot.operational {
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.outage-status-dot.degraded {
  background: #ffc800;
  box-shadow: 0 0 6px rgba(255, 200, 0, 0.5);
}

.outage-status-dot.partial {
  background: #ff8c00;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.outage-status-dot.major {
  background: #ff0040;
  box-shadow: 0 0 6px rgba(255, 0, 64, 0.5);
  animation: dot-blink 1s ease-in-out infinite;
}

.outage-status-dot.unknown {
  background: #555;
  box-shadow: none;
}

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

.outage-service-name {
  flex: 1;
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outage-status-text {
  font-size: 9px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.outage-status-text.operational { color: #00ff88; }
.outage-status-text.degraded { color: #ffc800; }
.outage-status-text.partial { color: #ff8c00; }
.outage-status-text.major { color: #ff0040; }
.outage-status-text.unknown { color: #555; }

.outage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-top: 1px solid rgba(0, 64, 96, 0.3);
}

.outage-updated {
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.outage-refresh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-title);
  opacity: 0;
  transition: opacity 0.3s;
}

.outage-refresh-dot.active {
  opacity: 1;
  animation: refresh-spin 0.6s linear;
}

@keyframes refresh-spin {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* === Attack Type Items === */
.attack-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 64, 96, 0.2);
}

.attack-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.attack-type-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.attack-type-count {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-highlight);
}

.attack-type-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}

.attack-type-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* === Source/Target Country Items === */
.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
}

.country-item .country-name {
  color: var(--text-secondary);
}

.country-item .country-count {
  color: var(--text-highlight);
  font-family: var(--font-display);
  font-size: 12px;
}

/* === Live Feed === */
.feed-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(0, 20, 40, 0.4);
  border-radius: 4px;
  border-left: 4px solid var(--border-color);
  font-size: 12px;
  line-height: 1.5;
  animation: feed-slide-in 0.8s ease-out;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.feed-item:hover {
  background: rgba(0, 50, 70, 0.7);
  border-left-width: 5px;
  transform: translateX(-2px);
}

@keyframes feed-slide-in {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-time {
  color: var(--text-secondary);
  font-size: 10px;
}

.feed-type {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.feed-route {
  color: var(--text-primary);
  margin-top: 3px;
  font-size: 12px;
}

.feed-detail {
  color: var(--text-secondary);
  font-size: 10px;
  margin-top: 2px;
}

/* === Attack Detail Popup === */
.attack-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popup-overlay-in 0.2s ease-out;
}

@keyframes popup-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.attack-popup {
  background: linear-gradient(135deg, #0a1520 0%, #0d1f30 100%);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 0;
  min-width: 420px;
  max-width: 520px;
  box-shadow: 0 0 40px rgba(0, 100, 150, 0.3), 0 0 80px rgba(0, 60, 100, 0.15);
  animation: popup-scale-in 0.25s ease-out;
  overflow: hidden;
}

@keyframes popup-scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.popup-attack-type {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
}

.popup-close {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.popup-close:hover {
  color: #ff4060;
  border-color: #ff4060;
  background: rgba(255, 64, 96, 0.1);
}

.popup-body {
  padding: 18px 20px;
}

.popup-section {
  margin-bottom: 16px;
}

.popup-section:last-child {
  margin-bottom: 0;
}

.popup-section-title {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-title);
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: var(--glow-cyan);
}

.popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}

.popup-label {
  color: var(--text-secondary);
}

.popup-value {
  color: var(--text-primary);
  font-weight: bold;
}

.popup-ip {
  font-family: var(--font-mono);
  color: var(--text-highlight);
  font-size: 12px;
}

.popup-severity {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.popup-severity-bar {
  display: inline-block;
  width: 6px;
  height: 12px;
  border-radius: 1px;
  opacity: 0.25;
}

.popup-severity-bar.active {
  opacity: 1;
}

.popup-arrow {
  text-align: center;
  font-size: 20px;
  color: var(--text-title);
  padding: 4px 0;
  letter-spacing: 4px;
}

/* === Globe Container === */
#globe-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#globe-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse at center, #0a1628 0%, #050510 70%);
}

.powered-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1000;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  background: rgba(5, 10, 18, 0.75);
  border: 1px solid rgba(0, 64, 96, 0.4);
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.powered-badge strong {
  color: var(--text-title);
}

.powered-badge:hover {
  background: rgba(0, 30, 50, 0.9);
  border-color: var(--border-glow);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(0, 100, 150, 0.25);
}

.globe-lock-indicator {
  position: absolute;
  bottom: 44px;
  right: 14px;
  z-index: 1000;
  font-family: var(--font-display);
  font-size: 9px;
  color: #ffff00;
  letter-spacing: 1px;
  background: rgba(5, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 0, 0.3);
  padding: 5px 12px;
  border-radius: 4px;
  pointer-events: auto;
  cursor: pointer;
  display: none;
  animation: lock-fade-in 0.3s ease-out;
}

.globe-lock-indicator:hover {
  background: rgba(255, 255, 0, 0.1);
}

@keyframes lock-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

#globe-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* === Bottom Panel === */
#panel-bottom {
  display: flex;
  align-items: center;
  padding: 6px 20px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  z-index: 10;
  min-height: 36px;
  gap: 15px;
}

.panel-title-inline {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-title);
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow: var(--glow-cyan);
}

#top-targets-bar {
  display: flex;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(0, 40, 60, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  white-space: nowrap;
  font-size: 10px;
  transition: all 0.3s;
}

.target-item:hover {
  background: rgba(0, 60, 90, 0.6);
  border-color: var(--border-glow);
}

.target-flag {
  font-size: 14px;
}

.target-name {
  color: var(--text-primary);
  letter-spacing: 1px;
}

.target-count {
  color: var(--text-highlight);
  font-family: var(--font-display);
  font-size: 11px;
}

.target-bar {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.target-bar-fill {
  height: 100%;
  background: var(--text-title);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* === Responsive === */
@media (max-width: 1200px) {
  .panel { width: 220px; }
  .header-tagline { display: none; }
}

@media (max-width: 900px) {
  #header {
    flex-wrap: wrap;
    padding: 6px 12px;
    gap: 6px;
  }
  .header-left { gap: 8px; }
  .header-logo { height: 36px; }
  .title { font-size: 11px; letter-spacing: 2px; }
  .header-branding { padding-left: 8px; }
  .header-tagline { display: none; }
  .header-stats {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-box { padding: 3px 8px; }
  .stat-value { font-size: 13px; }
  .stat-label { font-size: 7px; }
  .subtitle { display: none; }

  #main { flex-direction: column; }
  #panel-left {
    width: 100%;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
  #panel-left .panel-content { max-height: 120px; }
  #panel-right {
    width: 100%;
    max-height: 200px;
    border-left: none;
    border-top: 1px solid var(--border-color);
    order: 3;
  }
  #globe-wrapper { min-height: 300px; order: 1; }
  .israel-section { width: 100%; }

  .outage-card {
    width: 200px;
    max-height: 300px;
    font-size: 10px;
  }

  .powered-badge { font-size: 8px; padding: 4px 8px; }

  #panel-bottom {
    flex-wrap: wrap;
    padding: 4px 10px;
    gap: 6px;
  }

  .attack-popup, .popup-box { min-width: 90vw; max-width: 95vw; }
}

@media (max-width: 480px) {
  .header-stats { display: none; }
  .header-logo { height: 30px; }
  .title { font-size: 10px; }
  #panel-left { max-height: 250px; }
  .outage-card { display: none; }
  .lang-toggle-btn { padding: 4px 8px; font-size: 9px; }
}

/* === Registration Overlay === */
.reg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.reg-card {
  width: 420px;
  max-width: 95vw;
  background: rgba(5, 10, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 30px;
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.15), 0 0 80px rgba(0, 100, 180, 0.1);
  animation: reg-card-in 0.35s ease-out;
}

@keyframes reg-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reg-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.reg-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.15);
}

.reg-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-title);
  letter-spacing: 2px;
  text-shadow: var(--glow-cyan);
  margin: 0;
}

.reg-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.reg-field {
  margin-bottom: 14px;
}

.reg-field input {
  width: 100%;
  padding: 10px;
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reg-field input:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.reg-field input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.reg-error {
  display: block;
  color: #ff0040;
  font-size: 11px;
  margin-top: 4px;
  min-height: 0;
}

.reg-submit {
  width: 100%;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-title);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--text-title);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.reg-submit:hover {
  background: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.reg-skip-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.reg-skip-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(0, 60, 90, 0.3);
}

.reg-whatsapp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 10px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 4px;
  transition: all 0.2s;
}

.reg-whatsapp-label:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
}

.reg-whatsapp-label input[type="checkbox"] {
  accent-color: #25d366;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.reg-whatsapp-label strong {
  color: #25d366;
}

.reg-whatsapp-icon {
  font-size: 16px;
}

.reg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === Welcome Toast === */
.welcome-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 12px 30px;
  border-radius: 6px;
  z-index: 99999;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
