:root {
  --text-scale: 1.5;
  --bg: #0a0c0f;
  --bg2: #0f1318;
  --bg3: #141820;
  --panel: rgba(15, 19, 26, 0.92);
  --border: rgba(255, 60, 60, 0.18);
  --border2: rgba(255, 60, 60, 0.08);
  --red: #ff3c3c;
  --red2: #ff6b6b;
  --orange: #ff8c42;
  --yellow: #ffd166;
  --blue: #3c9eff;
  --cyan: #06d6a0;
  --text: #e2e8f0;
  --text2: #8892a4;
  --text3: #4a5568;
  --critical: #ff1744;
  --high: #ff6d00;
  --medium: #ffab00;
  --low: #00e5ff;
  --glow2: 0 0 40px rgba(255, 60, 60, 0.15);
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: relative;
}

body.news-page-body {
  overflow-x: hidden;
  overflow-y: auto;
  width: auto;
  min-height: 100vh;
  height: auto;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: rgba(10, 12, 15, 0.97);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.38), transparent);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-logo 2s ease-in-out infinite;
  flex-shrink: 0;
}

.logo-icon-image {
  width: 2em;
  height: 2em;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

@keyframes pulse-logo {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.45), 0 0 0 0 rgba(255, 60, 60, 0.18);
  }
  50% {
    box-shadow: 0 0 26px rgba(255, 60, 60, 0.75), 0 0 0 8px rgba(255, 60, 60, 0.08);
  }
}

.logo-text {
  line-height: 1.1;
}

.logo-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(15px * var(--text-scale));
  letter-spacing: 1px;
  color: var(--text);
}

.logo-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(9px * var(--text-scale));
  color: var(--text3);
  letter-spacing: 0.5px;
}

.nav-divider {
  width: 1px;
  height: 42px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-divider-small {
  margin-left: 4px;
}

.nav-tabs {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.nav-tab {
  padding: 9px 18px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: calc(13px * var(--text-scale));
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: var(--red);
  background: rgba(255, 60, 60, 0.08);
  border-color: rgba(255, 60, 60, 0.2);
}

.header-stats {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.hstat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 8px 14px;
}

.hstat-icon {
  font-size: calc(14px * var(--text-scale));
}

.hstat-info {
  line-height: 1.1;
}

.hstat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(8px * var(--text-scale));
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hstat-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(15px * var(--text-scale));
  color: var(--text);
}

.hstat-val.red {
  color: var(--red);
}

.hstat-val.cyan {
  color: var(--cyan);
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(10px * var(--text-scale));
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

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

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--text3);
  transition: all 0.2s;
  border: none;
  background: none;
}

.lang-btn.active {
  background: var(--red);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

#map {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.leaflet-pane,
.leaflet-tile-pane,
.leaflet-layer {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: #0a0d12 !important;
}

.outbreak-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  pointer-events: auto;
  z-index: 1000 !important;
}

.leaflet-marker-icon {
  pointer-events: auto !important;
  z-index: 1000 !important;
}

.outbreak-marker::before,
.outbreak-marker::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}

.outbreak-marker::before {
  inset: -4px;
  opacity: 0.4;
}

.outbreak-marker::after {
  inset: -8px;
  opacity: 0.2;
  animation-delay: 0.5s;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.marker-critical {
  background: radial-gradient(circle, #ff1744, #aa0020);
}

.marker-critical::before,
.marker-critical::after {
  background: #ff1744;
}

.marker-high {
  background: radial-gradient(circle, #ff6d00, #aa4500);
}

.marker-high::before,
.marker-high::after {
  background: #ff6d00;
}

.marker-medium {
  background: radial-gradient(circle, #ffab00, #aa7200);
}

.marker-medium::before,
.marker-medium::after {
  background: #ffab00;
}

.marker-low {
  background: radial-gradient(circle, #00bcd4, #007a87);
}

.marker-low::before,
.marker-low::after {
  background: #00bcd4;
}

#news-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 300px;
  max-height: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 500;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow2);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

#news-panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(13px * var(--text-scale));
  letter-spacing: 0.5px;
  color: var(--text);
}

#data-panel {
  position: fixed;
  top: 84px;
  right: -440px;
  width: 440px;
  bottom: 0;
  background: var(--panel);
  border-left: 1px solid var(--border);
  z-index: 600;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

#data-panel.open {
  right: 0;
}

.data-panel-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-panel-title,
.popup-country {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.data-panel-title {
  font-size: calc(15px * var(--text-scale));
  letter-spacing: 0.5px;
}

.data-panel-drag-handle {
  display: none;
  padding: 10px 0 6px;
  align-items: center;
  justify-content: center;
}

.data-panel-drag-bar {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.data-panel-sub,
.legend-title,
.popup-stat-label {
  font-size: calc(9px * var(--text-scale));
  color: var(--text3);
}

.data-panel-sub {
  margin-top: 2px;
}

.table-filters {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 5px;
  color: var(--text2);
  font-family: 'Exo 2', sans-serif;
  font-size: calc(11px * var(--text-scale));
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  flex: 1;
  min-width: 100px;
}

.filter-select:focus {
  border-color: var(--red);
}

.data-table-wrap {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 60, 60, 0.3) transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  position: sticky;
  top: 0;
  background: rgba(10, 12, 15, 0.98);
  z-index: 10;
}

.data-table th {
  padding: 8px 10px;
  text-align: left;
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(9px * var(--text-scale));
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 10px;
  font-size: calc(12px * var(--text-scale));
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(255, 60, 60, 0.05);
}

.flag-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag {
  font-size: calc(14px * var(--text-scale));
  flex-shrink: 0;
}

.status-badge {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.3px;
  font-weight: 700;
  display: inline-block;
}

.status-active {
  background: rgba(255, 23, 68, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.status-monitoring {
  background: rgba(255, 171, 0, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.status-observation {
  background: rgba(60, 158, 255, 0.2);
  color: #7dc4ff;
  border: 1px solid rgba(60, 158, 255, 0.3);
}

.cases-num {
  font-size: calc(13px * var(--text-scale));
}

.cases-critical { color: var(--critical); }
.cases-high { color: var(--orange); }
.cases-medium { color: var(--yellow); }
.cases-low { color: var(--blue); }

.time-cell {
  font-size: calc(10px * var(--text-scale));
  font-family: 'Share Tech Mono', monospace;
  color: var(--text3);
}

.row-arrow {
  color: var(--text3);
  font-size: calc(10px * var(--text-scale));
}

.empty-cell {
  text-align: center;
  color: var(--text2);
  padding: 24px 10px;
}

.panel-title .icon,
.toolbar-btn .icon {
  font-size: calc(14px * var(--text-scale));
}

.panel-action {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: calc(11px * var(--text-scale));
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Share Tech Mono', monospace;
  transition: color 0.2s;
  padding: 2px 4px;
  border-radius: 3px;
  text-decoration: none;
}

.panel-action:hover {
  color: var(--red);
}

.news-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 60, 60, 0.3) transparent;
}

.news-list {
  flex: 1;
}

.news-list::-webkit-scrollbar {
  width: 3px;
}

.news-list::-webkit-scrollbar-thumb {
  background: rgba(255, 60, 60, 0.3);
  border-radius: 2px;
}

.news-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.news-item:hover {
  background: rgba(255, 60, 60, 0.05);
}

.news-time {
  font-family: 'Share Tech Mono', monospace;
  color: var(--text3);
  font-size: calc(9px * var(--text-scale));
  flex-shrink: 0;
  padding-top: 2px;
  line-height: 1.4;
  white-space: pre;
}

.news-content {
  flex: 1;
}

.news-title-link,
.news-card-title-link {
  text-decoration: none;
  color: inherit;
}

.news-title-link:hover .news-title,
.news-card-title-link:hover {
  color: var(--red2);
}

.news-title {
  font-size: calc(12px * var(--text-scale));
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}

.news-tag,
.status-badge,
.legend-title,
.hstat-label,
.popup-stat-label {
  font-family: 'Share Tech Mono', monospace;
}

.news-tag {
  font-size: calc(9px * var(--text-scale));
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
}

.tag-epi {
  background: rgba(255, 60, 60, 0.15);
  color: var(--red2);
}

.tag-health {
  background: rgba(6, 214, 160, 0.12);
  color: var(--cyan);
}

.tag-region {
  background: rgba(60, 158, 255, 0.12);
  color: var(--blue);
}

.tag-science {
  background: rgba(255, 209, 102, 0.12);
  color: var(--yellow);
}

.popup-country {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.legend-title,
.popup-stat-label {
  font-size: calc(9px * var(--text-scale));
  color: var(--text3);
}

.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(14px * var(--text-scale));
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(255, 60, 60, 0.15);
  color: var(--red);
  border-color: var(--border);
}

.status-badge {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: calc(9px * var(--text-scale));
  letter-spacing: 0.3px;
  font-weight: 700;
  display: inline-block;
}

.status-active {
  background: rgba(255, 23, 68, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.status-monitoring {
  background: rgba(255, 171, 0, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.status-observation {
  background: rgba(60, 158, 255, 0.2);
  color: #7dc4ff;
  border: 1px solid rgba(60, 158, 255, 0.3);
}

.popup-stat-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.news-page-shell {
  min-height: 100vh;
  padding: 124px 32px 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 60, 60, 0.18), transparent 28%),
    linear-gradient(180deg, #090b0e 0%, #0f1318 100%);
}

.news-page-hero,
.news-detail-header,
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.news-page-hero {
  margin-bottom: 28px;
}

.news-kicker {
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 10px;
}

.news-page-title,
.news-detail-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.news-page-title {
  font-size: calc(42px * var(--text-scale));
  margin-bottom: 8px;
}

.news-page-subtitle {
  max-width: 720px;
  color: var(--text2);
  font-size: calc(16px * var(--text-scale));
  line-height: 1.6;
}

.news-back-link,
.news-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.2s;
}

.news-back-link:hover,
.news-card-link:hover {
  border-color: rgba(255, 60, 60, 0.35);
  color: var(--red2);
}

.news-back-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.news-card,
.news-detail-card {
  background: rgba(15, 19, 26, 0.92);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.news-card-time {
  color: var(--text3);
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(11px * var(--text-scale));
}

.news-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(17px * var(--text-scale));
  line-height: 1.1;
  margin-bottom: 12px;
}

.news-card-summary,
.news-detail-body {
  color: var(--text2);
  line-height: 1.7;
}

.news-card-summary {
  margin-bottom: 20px;
}

.news-detail-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.news-detail-card {
  overflow: visible;
}

.news-detail-header {
  margin-bottom: 20px;
}

.news-detail-title {
  font-size: calc(31px * var(--text-scale));
  margin-bottom: 18px;
}

.news-detail-body p {
  font-size: calc(15px * var(--text-scale));
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-trust-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.article-trust-item,
.page-panel,
.feedback-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 20px;
}

.article-trust-item strong,
.author-meta h3 {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(22px * var(--text-scale));
  color: var(--text);
  margin-bottom: 6px;
}

.article-trust-item p,
.author-role,
.author-credentials,
.author-bio,
.medical-disclaimer,
.feedback-field span,
.feedback-success,
.feedback-error,
.cookie-banner p,
.rsya-placeholder-inner {
  color: var(--text2);
}

.article-trust-label {
  display: inline-block;
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(10px * var(--text-scale));
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red2);
}

.medical-disclaimer {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--red2);
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.08);
  line-height: 1.65;
}

.inline-link {
  color: var(--red2);
  text-decoration: none;
}

.inline-link:hover {
  color: var(--text);
}

.news-ad-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 18px;
  margin: 0 0 24px;
}

.news-ad-slot {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 60, 60, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 60, 60, 0.08), rgba(60, 158, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.news-ad-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(10px * var(--text-scale));
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red2);
}

.news-ad-slot strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(22px * var(--text-scale));
  color: var(--text);
}

.news-ad-slot p {
  color: var(--text2);
  font-size: calc(14px * var(--text-scale));
  line-height: 1.6;
}

.rsya-placeholder {
  min-height: 110px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsya-placeholder-inner {
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(11px * var(--text-scale));
  text-align: center;
  letter-spacing: 0.4px;
}

.news-related-section {
  margin-top: 28px;
  padding-bottom: 32px;
}

.news-related-header {
  margin-bottom: 20px;
}

.news-related-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(34px * var(--text-scale));
  line-height: 1.1;
}

.news-related-grid {
  align-items: stretch;
}

.news-related-card {
  display: flex;
  flex-direction: column;
}

.author-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.author-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.02);
}

.author-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.22), rgba(60, 158, 255, 0.12));
  border: 1px solid rgba(255, 60, 60, 0.22);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(22px * var(--text-scale));
}

.author-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: calc(14px * var(--text-scale));
}

.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-row strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(20px * var(--text-scale));
  display: block;
  color: var(--text);
}

.author-row p {
  font-size: calc(12px * var(--text-scale));
  color: var(--text2);
}

.author-avatar.author-avatar-letter {
  color: var(--red2);
}

.author-avatar:not(.author-avatar-letter) {
  object-fit: cover;
  background: transparent;
}

.author-role {
  margin-bottom: 8px;
}

.author-credentials {
  margin-bottom: 8px;
}

.trust-panel,
.feedback-section {
  margin-top: 28px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-field span {
  font-size: calc(12px * var(--text-scale));
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: rgba(10, 12, 15, 0.75);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: rgba(255, 60, 60, 0.35);
}

.feedback-submit {
  align-self: flex-start;
}

.feedback-success,
.feedback-error {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.feedback-success {
  border: 1px solid rgba(6, 214, 160, 0.3);
  background: rgba(6, 214, 160, 0.08);
}

.feedback-error {
  border: 1px solid rgba(255, 60, 60, 0.3);
  background: rgba(255, 60, 60, 0.08);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 15, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: calc(22px * var(--text-scale));
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pagination-bar {
  margin-top: 24px;
}

.pagination-current {
  color: var(--text2);
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(12px * var(--text-scale));
}

#bottom-bar {
  display: none;
}

#bottom-bar-row {
  display: flex;
  gap: 8px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: calc(12px * var(--text-scale));
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
}

.toolbar-btn:hover {
  color: var(--text);
  border-color: rgba(255, 60, 60, 0.3);
  background: rgba(15, 19, 26, 0.98);
}

.toolbar-btn.active {
  color: var(--cyan);
  border-color: rgba(6, 214, 160, 0.3);
  background: rgba(6, 214, 160, 0.06);
}

#legend {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  z-index: 499;
  backdrop-filter: blur(12px);
  display: block;
}

#legend.hidden {
  display: none;
}

.legend-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(11px * var(--text-scale));
  color: var(--text2);
}

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

.leaflet-popup-content-wrapper {
  background: rgba(10, 12, 18, 0.97) !important;
  border: 1px solid rgba(255, 60, 60, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 60, 60, 0.15) !important;
  backdrop-filter: blur(16px);
}

.leaflet-popup-content {
  color: var(--text) !important;
  font-family: 'Exo 2', sans-serif !important;
}

.leaflet-popup-tip {
  background: rgba(10, 12, 18, 0.97) !important;
  border: 1px solid rgba(255, 60, 60, 0.3) !important;
}

.leaflet-popup-close-button {
  color: var(--text3) !important;
  font-size: calc(16px * var(--text-scale)) !important;
}

.leaflet-popup-close-button:hover {
  color: var(--red) !important;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.popup-flag {
  font-size: calc(20px * var(--text-scale));
}

.popup-country {
  font-size: calc(14px * var(--text-scale));
}

.popup-region {
  font-size: calc(11px * var(--text-scale));
  color: var(--text3);
}

.popup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.popup-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 7px 10px;
}

.popup-stat-label {
  text-transform: uppercase;
  margin-bottom: 3px;
}

.popup-stat-val {
  font-size: calc(16px * var(--text-scale));
  color: var(--text);
}

.popup-stat-val.red {
  color: var(--red);
}

.popup-stat-val.orange {
  color: var(--orange);
}

.popup-stat-val.cyan {
  color: var(--cyan);
}

.leaflet-control-zoom {
  border: 1px solid rgba(255, 60, 60, 0.2) !important;
  background: rgba(10, 12, 15, 0.9) !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: var(--text2) !important;
  border-color: rgba(255, 60, 60, 0.15) !important;
  font-size: calc(16px * var(--text-scale)) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(255, 60, 60, 0.1) !important;
  color: var(--red) !important;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

#toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(10, 12, 18, 0.97);
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: calc(11px * var(--text-scale));
  color: var(--cyan);
  z-index: 9000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 12, 15, 0.97);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 600;
    backdrop-filter: blur(12px);
  }

  .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s;
    border-radius: 8px;
    flex: 1;
    max-width: 100px;
  }

  #data-btn {
    position: relative;
  }

  #data-btn::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255, 60, 60, 0.15), transparent 70%);
    opacity: 0.6;
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
  }

  #data-btn.active::after {
    animation: none;
    opacity: 0;
  }

  .nav-btn:active {
    background: rgba(255, 60, 60, 0.1);
  }

  .nav-btn.active {
    color: var(--red);
  }

  .nav-icon {
    font-size: 24px;
    line-height: 1;
  }

  .nav-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  #mobile-menu-panel {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    z-index: 599;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    max-height: 50vh;
    overflow-y: auto;
  }

  #mobile-menu-panel.open {
    transform: translateY(0);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border2);
    position: sticky;
    top: 0;
    background: var(--panel);
  }

  .mobile-menu-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
  }

  .mobile-menu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
  }

  .mobile-stat-icon {
    font-size: 18px;
  }

  .mobile-stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: var(--text3);
    text-transform: uppercase;
  }

  .mobile-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
  }

  .mobile-stat-val.red {
    color: var(--red);
  }

  .mobile-menu-links {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: var(--text2);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
  }

  .mobile-menu-link:hover {
    background: rgba(255, 60, 60, 0.1);
    color: var(--red);
  }

  #header {
    padding: 0 10px;
    gap: 8px;
    height: 56px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: calc(13px * 0.95);
  }

  .nav-tab {
    font-size: calc(13px * 0.95);
  }

  .lang-btn {
    font-size: calc(11px * 0.95);
  }

  .panel-title,
  .toolbar-btn,
  .news-title,
  .news-card-summary,
  .news-card-time,
  .news-tag,
  .legend-item,
  .popup-country,
  .popup-region,
  .popup-stat-val,
  .popup-stat-label,
  .status-badge,
  .pagination-current,
  #toast {
    font-size: 70%;
  }

  .logo-sub,
  .nav-tabs,
  .hstat {
    display: none;
  }

  .online-badge {
    display: flex;
    margin-left: auto;
    margin-right: 8px;
  }

  #map {
    top: 56px;
  }

  #news-panel {
    bottom: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 200px;
  }

  #data-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--border);
    z-index: 800;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #data-panel.open {
    right: auto;
    transform: translateY(0);
  }

  .data-panel-drag-handle {
    display: flex;
  }

  #bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 12, 15, 0.97);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 600;
    backdrop-filter: blur(12px);
    gap: 0;
  }

  .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s;
    border-radius: 8px;
    flex: 1;
    max-width: 100px;
  }

  .nav-btn:active {
    background: rgba(255, 60, 60, 0.1);
  }

  .nav-btn.active {
    color: var(--red);
  }

  .nav-icon {
    font-size: 24px;
    line-height: 1;
  }

  .nav-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  #mobile-menu-panel {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    z-index: 599;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    max-height: 50vh;
    overflow-y: auto;
  }

  #mobile-menu-panel.open {
    transform: translateY(0);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border2);
    position: sticky;
    top: 0;
    background: var(--panel);
  }

  .mobile-menu-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
  }

  .mobile-menu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
  }

  .mobile-stat-icon {
    font-size: 18px;
  }

  .mobile-stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: var(--text3);
    text-transform: uppercase;
  }

  .mobile-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
  }

  .mobile-stat-val.red {
    color: var(--red);
  }

  .mobile-menu-links {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: var(--text2);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
  }

  .mobile-menu-link:hover {
    background: rgba(255, 60, 60, 0.1);
    color: var(--red);
  }

  .toolbar-btn span {
    display: none;
  }

  .legend-item,
  .popup-country,
  .popup-region,
  .popup-stat-val,
  .popup-stat-label {
    font-size: 70%;
  }

  #legend {
    display: none;
  }

  .news-page-shell {
    padding: 104px 16px 20px;
  }

  .news-page-title {
    font-size: calc(32px * 0.95);
  }

  .news-detail-title {
    font-size: calc(34px * 0.95);
  }

  .news-ad-grid {
    grid-template-columns: 1fr;
  }

  .article-trust-panel,
  .author-grid,
  .feedback-grid,
  .cookie-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .news-page-subtitle,
  .news-detail-body p,
  .news-card-title {
    font-size: 70%;
  }

  .news-page-hero,
  .news-detail-header,
  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
