:root {
  color-scheme: dark;
  accent-color: #f97316;
  --bg: #000000;
  --bg-panel: #07090d;
  --bg-hover: rgba(24, 24, 27, 0.72);
  --bg-selected: rgba(249, 115, 22, 0.08);
  --border: rgba(39, 39, 42, 0.9);
  --border-strong: rgba(63, 63, 70, 0.95);
  --text: #e5e7eb;
  --text-strong: #f9fafb;
  --muted: #9ca3af;
  --accent-orange: #f97316;
  --accent-cyan: #22d3ee;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #0d1117 0%, #000000 70%);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  scrollbar-color: #374151 transparent;
}

::selection {
  background: rgba(249, 115, 22, 0.28);
  color: #fafafa;
}

*:focus-visible {
  outline: 1px solid rgba(249, 115, 22, 0.75);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

/* 3 Sütunlu Ana Terminal Kabuğu */
.terminal-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

/* Mobil Header & Sekmeler */
.mobile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.94);
  flex-shrink: 0;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.tab-btn.is-active {
  border-color: var(--accent-orange);
  color: var(--text-strong);
  background: rgba(249, 115, 22, 0.12);
}

.panel-view {
  display: none;
  min-height: 0;
}

.panel-view.is-active-mobile {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Sol Kenar Çubuğu */
.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.92);
}

.brand-block {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.brand-logo-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.22));
}

.brand-logo-mobile {
  width: 24px;
  height: 24px;
}

.brand-title-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--accent-orange);
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.brand-morse-strip {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  opacity: 0.9;
}

.morse-hi {
  color: var(--accent-orange);
  font-weight: 700;
}

.morse-cy {
  color: #38bdf8;
}

.logo-beacon-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoBeaconPulse 2.4s ease-in-out infinite;
}

@keyframes logoBeaconPulse {
  0%, 100% {
    opacity: 0.24;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.25);
  }
}

.live-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 3px;
  padding: 0.12rem 0.38rem;
}

.brand-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.group-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.chip-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chip-btn {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.38rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.chip-btn.is-active {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.14);
  color: var(--text-strong);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  padding: 0.36rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-row-btn:hover {
  color: var(--text-strong);
  background: rgba(39, 39, 42, 0.45);
}

.filter-row-btn.is-active {
  color: var(--text-strong);
  background: rgba(249, 115, 22, 0.12);
  border-left-color: var(--accent-orange);
}

.filter-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-row-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pipeline-note {
  margin: 0.15rem 0 0;
  font-size: 0.66rem;
  color: var(--muted);
}

/* Kontroller */
.ctrl-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ctrl-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-strong);
}

.ctrl-btn-compact {
  padding: 0.3rem 0.52rem;
  font-size: 0.7rem;
}

.ctrl-btn-accent {
  border-color: rgba(249, 115, 22, 0.55);
  color: var(--accent-orange);
}

.ctrl-btn-accent.is-on,
.ctrl-btn.is-on {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.6);
  color: var(--green);
}

.ctrl-btn-warn {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.full-width {
  width: 100%;
}

.ctrl-select {
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.74rem;
  padding: 0.42rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
}

.ctrl-select:focus {
  border-color: var(--accent-orange);
  outline: none;
}

/* Orta Akış Paneli */
.feed-panel {
  background: rgba(0, 0, 0, 0.78);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 5, 8, 0.95);
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 160px;
}

.search-prompt {
  position: absolute;
  left: 0.65rem;
  color: var(--accent-orange);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.44rem 0.65rem 0.44rem 2.1rem;
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.search-input::placeholder {
  color: #6b7280;
}

.search-input:focus {
  border-color: var(--accent-orange);
  outline: none;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.48rem;
  border-radius: 3px;
  background: rgba(39, 39, 42, 0.8);
  color: var(--text);
}

.sse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-panel);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  display: inline-block;
}

.status-live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.status-connecting {
  background: var(--yellow);
}

.status-error {
  background: var(--red);
}

/* Haber Satırları */
.feed-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.feed-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.feed-row {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(39, 39, 42, 0.75);
  border-left: 2px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
}

.feed-row:hover {
  background: var(--bg-hover);
  border-left-color: rgba(156, 163, 175, 0.65);
}

.feed-row.is-featured {
  background: rgba(24, 24, 27, 0.55);
  border-left-color: var(--accent-orange);
  padding: 1rem 0.95rem;
}

.feed-row.is-selected {
  background: var(--bg-selected);
  border-left-color: var(--accent-orange);
}

.feed-item-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 72px;
}

.feed-row.flash-red {
  animation: flash-red 0.9s ease-in-out 2;
}

.feed-row.flash-green {
  animation: flash-green 0.9s ease-in-out 2;
}

@keyframes flash-red {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(239, 68, 68, 0.28);
  }
}

@keyframes flash-green {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(34, 197, 94, 0.25);
  }
}

.row-main {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.row-time {
  flex-shrink: 0;
  width: 3.1rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.badge-latest {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.18);
  border-radius: 3px;
  padding: 0.08rem 0.35rem;
}

.row-title {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 500;
}

.feed-row.is-featured .row-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-left: 3.65rem;
}

.score-pill {
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
  border: 1px solid transparent;
}

.score-hot {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
}

.score-warm {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.35);
}

.score-cool {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

.score-neutral {
  color: #d1d5db;
  background: rgba(75, 85, 99, 0.25);
  border-color: rgba(75, 85, 99, 0.45);
}

.source-tag {
  font-size: 0.69rem;
  color: var(--muted);
}

.cat-tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.38rem;
  border-radius: 3px;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.x-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.06rem 0.34rem;
  border-radius: 3px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.1);
}

/* Sağ Endeks ve Detay Paneli */
.right-panel {
  border-left: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.92);
}

.right-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-panel);
  padding: 0.85rem;
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.card-sub {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.tension-pill {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.gauge-wrap {
  position: relative;
  margin-top: 0.25rem;
}

.gauge-track {
  height: 14px;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    #22c55e 0%,
    #84cc16 25%,
    #eab308 50%,
    #f97316 75%,
    #ef4444 100%
  );
}

.gauge-needle {
  position: absolute;
  top: -4px;
  left: 50%;
  height: 22px;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transition: left 0.4s ease-out;
}

.gauge-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.gauge-bound {
  font-size: 0.68rem;
  font-weight: 600;
}

.gauge-low {
  color: var(--green);
}

.gauge-high {
  color: var(--red);
}

.gauge-number {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.stat-box {
  border: 1px solid rgba(39, 39, 42, 0.75);
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.stat-lbl {
  font-size: 0.66rem;
  color: var(--muted);
}

.stat-val {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.val-green {
  color: var(--green);
}

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

/* 7 Günlük Trend */
.trend-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.trend-avg {
  color: var(--muted);
}

.trend-delta {
  font-weight: 700;
}

.trend-svg {
  width: 100%;
  height: 68px;
  margin-top: 0.55rem;
  display: block;
}

.trend-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-top: 0.35rem;
  text-align: center;
}

.trend-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}

.trend-day-val {
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.trend-day-lbl {
  font-size: 0.58rem;
  color: var(--muted);
}

/* Detay Kartı */
.detail-section {
  flex: 1;
}

.detail-body {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.detail-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-lang-block {
  border: 1px solid rgba(39, 39, 42, 0.85);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  background: rgba(0, 0, 0, 0.5);
}

.detail-lang-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.28rem;
  letter-spacing: 0.06em;
}

.detail-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-strong);
  word-break: break-word;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.metric-chip {
  border: 1px solid rgba(39, 39, 42, 0.85);
  border-radius: 4px;
  padding: 0.42rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.metric-k {
  font-size: 0.62rem;
  color: var(--muted);
}

.metric-v {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tweet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.12);
  color: var(--text-strong);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tweet-link:hover {
  background: rgba(249, 115, 22, 0.22);
  border-color: var(--accent-orange);
}

/* ============================================================
   Taktik Dünya Haritası (Model A: Bölünmüş Orta Panel)
   ============================================================ */
.map-section {
  display: flex;
  flex-direction: column;
  height: 225px;
  min-height: 185px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 90% 80% at 50% 45%, #070a10 0%, #000000 85%);
  position: relative;
  overflow: hidden;
}

.map-section.is-collapsed {
  height: auto;
  min-height: 0;
}

.map-section.is-collapsed .map-stage {
  display: none;
}

.map-section.is-expanded {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-bottom: 0;
}

.feed-panel.map-is-expanded #feed-list {
  display: none;
}

.map-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-bottom: 1px solid rgba(39, 39, 42, 0.75);
  background: rgba(4, 6, 10, 0.92);
  flex-shrink: 0;
  z-index: 4;
}

.map-hud-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 200px;
}

.map-hud-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.map-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.48rem;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.65);
  white-space: nowrap;
}

.map-mode-badge.mode-breaking {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.85);
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  animation: hud-pulse 1.1s ease-in-out infinite;
}

.map-mode-badge.mode-radar {
  color: #7dd3fc;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 116, 144, 0.14);
}

.map-mode-badge.mode-selected {
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.16);
}

@keyframes hud-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.68;
  }
}

.map-hover-label {
  font-size: 0.68rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
}

.map-canvas-box {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.world-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
}

.world-map-svg:focus {
  outline: none;
}

.map-canvas-box.is-panning .world-map-svg {
  cursor: grabbing;
}

.map-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  fill: none;
}

.map-country-path {
  fill: #07090d;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.55;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transition: fill 0.28s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.map-country-path:focus,
.map-country-path:focus-visible {
  outline: none;
}

.map-country-path:hover,
.map-country-path:focus-visible {
  stroke: var(--accent-orange);
  stroke-width: 1.25;
}

.map-country-path.is-active-breaking {
  fill: rgba(239, 68, 68, 0.48);
  stroke: #ffffff;
  stroke-width: 1.4;
}

.map-country-path.is-active-peace {
  fill: rgba(34, 197, 94, 0.44);
  stroke: #ffffff;
  stroke-width: 1.35;
}

.map-country-path.is-active-selected {
  fill: rgba(249, 115, 22, 0.42);
  stroke: #ffffff;
  stroke-width: 1.3;
}

.map-country-path.is-active-radar {
  fill: rgba(56, 189, 248, 0.28);
  stroke: #7dd3fc;
  stroke-width: 1.15;
}

.map-country-path.is-secondary-target {
  fill: rgba(249, 115, 22, 0.24);
  stroke: #fdba74;
  stroke-width: 1.05;
}

.map-arc {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: arc-flow 1.4s linear infinite;
}

@keyframes arc-flow {
  from {
    stroke-dashoffset: 18;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.map-leader-line {
  fill: none;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.map-leader-line.is-radar {
  stroke-dasharray: 4 3;
}

.shock-ring {
  fill: none;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: shock-expand 1.9s ease-out infinite;
}

.shock-ring-delay-1 {
  animation-delay: 0.6s;
}

.shock-ring-delay-2 {
  animation-delay: 1.2s;
}

@keyframes shock-expand {
  0% {
    transform: scale(0.7);
    opacity: 0.95;
  }
  100% {
    transform: scale(5.2);
    opacity: 0;
  }
}

.radar-ring {
  fill: none;
  stroke-width: 1;
  opacity: 0.72;
}

.map-country-svg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
}

.map-canvas-box.is-panning .map-country-path {
  cursor: grabbing;
}

/* Harita Haber Baloncuğu (HUD Callout) */
.map-callout {
  position: absolute;
  width: min(335px, 54%);
  padding: 0.55rem 0.72rem;
  border-radius: 5px;
  background: rgba(5, 7, 11, 0.93);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.85);
  z-index: 6;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.map-callout.is-dragging {
  cursor: grabbing;
  opacity: 0.96;
  transition: none;
}

.map-callout:hover {
  background: rgba(12, 16, 24, 0.97);
}

/* Harita Zoom & Varsayılan Görünüm Kontrolleri */
.map-nav-controls {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(4px);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.map-nav-btn {
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.52rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.map-nav-btn:last-child {
  border-right: 0;
}

.map-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.map-nav-reset {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  min-width: 3.4rem;
}

.map-nav-reset.is-modified {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.12);
}

.map-nav-reset.is-modified:hover {
  background: rgba(249, 115, 22, 0.22);
  color: #ffffff;
}

.map-callout.callout-breaking {
  border: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.38), 0 8px 28px rgba(0, 0, 0, 0.9);
}

.map-callout.callout-breaking-peace {
  border: 2px solid #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.34), 0 8px 28px rgba(0, 0, 0, 0.9);
}

.map-callout.callout-selected {
  border: 1.5px solid #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.28), 0 8px 26px rgba(0, 0, 0, 0.9);
}

.map-callout.callout-radar {
  border: 1px dashed rgba(56, 189, 248, 0.6);
  background: rgba(5, 8, 14, 0.86);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.78);
}

.callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.callout-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout-breaking .callout-badge {
  color: #fca5a5;
}

.callout-breaking-peace .callout-badge {
  color: #86efac;
}

.callout-selected .callout-badge {
  color: #fdba74;
}

.callout-radar .callout-badge {
  color: #7dd3fc;
}

.callout-score {
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.callout-country {
  font-size: 0.67rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.18rem;
}

.callout-text {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.38;
  color: var(--text);
  word-break: break-word;
}

.callout-timer-track {
  margin-top: 0.35rem;
  height: 2px;
  width: 100%;
  background: rgba(56, 189, 248, 0.16);
  border-radius: 9999px;
  overflow: hidden;
}

.callout-timer-bar {
  height: 100%;
  width: 100%;
  background: #38bdf8;
  transform-origin: left center;
  animation: radar-countdown 15s linear forwards;
}

@keyframes radar-countdown {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Ülke İstihbarat Açılır Penceresi */
.country-modal {
  position: absolute;
  inset: 0.55rem;
  margin: auto;
  max-width: 620px;
  max-height: calc(100% - 1.1rem);
  display: flex;
  flex-direction: column;
  background: rgba(5, 7, 11, 0.97);
  border: 1px solid rgba(249, 115, 22, 0.65);
  border-radius: 6px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.95);
  z-index: 12;
  overflow: hidden;
}

.country-modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.9);
  flex-shrink: 0;
}

.country-modal-title-wrap {
  min-width: 0;
}

.country-modal-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.country-modal-meta {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.country-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.country-modal-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.country-modal-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.country-modal-item:hover {
  background: var(--bg-hover);
}

.country-modal-item-title {
  font-size: 0.76rem;
  color: var(--text-strong);
  line-height: 1.4;
}

.country-modal-item-meta {
  font-size: 0.65rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Masaüstü 3 Sütun Yerleşimi */
@media (min-width: 960px) {
  .mobile-header {
    display: none;
  }

  .terminal-shell {
    flex-direction: row;
  }

  .panel-view {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    width: 260px;
    flex-shrink: 0;
  }

  .feed-panel {
    flex: 1 1 auto;
    min-width: 0;
  }

  .right-panel {
    width: 350px;
    flex-shrink: 0;
  }

  .map-section {
    height: clamp(245px, 41vh, 395px);
  }

  .map-section.is-collapsed {
    height: auto;
  }

  .map-section.is-expanded {
    height: auto;
  }
}
