
/* ==============================================================================
   ASTROSEISMIK 100% UNIFIED TYPOGRAPHY & FONT HIERARCHY SYSTEM
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html, button, input, select, textarea {
  font-family: var(--font-body) !important;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings: Cinzel */
h1, h2, h3, h4, h5, h6,
.app-title, .section-title, .page-title, .card-title,
.sw-title, .fc-title-group h3, .bt-title-group h3,
.cxray-title-wrap h3, .heatmap-header-left h3, .crd-title-wrap h3,
.cxray-sec-title, .rep-sec-title {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.35px;
}

h1 { font-size: 1.45rem !important; }
h2 { font-size: 1.25rem !important; }
h3, .sw-title, .fc-title-group h3, .bt-title-group h3, .cxray-title-wrap h3, .heatmap-header-left h3 {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
}
h4, .exec-zone-title, .crd-title-wrap h3, .rep-sheet h2 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

/* Sub-titles / Card Headers / Item Titles */
.fc-name, .bt-card-title strong, .eii-title, .hist-title, .sc-card-head strong,
.fault-name, .mc-name, .rab-title, .dom-name, .h-theme-title, .rc-title {
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Body Descriptions & Paragraphs */
p, .sw-note span, .fc-benchmark, .eii-desc, .hist-col, .dom-desc-box, .h-desc,
.sw-desc, .fc-status-row, .bt-analysis, .eclipse-desc, .cxray-sc-card p,
.rep-meta-box, .rep-aspects-list, .dom-desc-box div, .fault-desc, .cm-desc {
  font-family: var(--font-body) !important;
  font-size: 0.77rem !important;
  line-height: 1.48 !important;
  color: #cbd5e1 !important;
}

/* Micro-Kickers / Labels / Metadata / Chips */
.guide-kicker, .sw-box-lbl, .fc-lbl, .ss-label, .ht-meta, .v-chip, .badge,
.fc-type, .mc-cities, .mc-res, .fault-segments, .hist-others-title, .bt-meta-row,
.rep-footer, .map-status-strip, .h-trigger-bar, .h-sector-tag, .rc-sub-title,
.hl-item, .cm-lbl, .exec-zone-tag, .ht-head {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
}

/* Numbers / Metrics / Monospace */
.sw-box-val, .fc-score-val, .bt-score-big, .ht-score, .stat-strip-item strong,
.exec-score-val, .exec-mw-val, .bt-sim-pct, .fc-val, .hm-pct, .sc-badge,
.bt-rank-tag, .fc-code, .sw-badge, .cxray-badge, .ht-day, .map-date-picker,
.hm-stat-chip, .dom-score, .h-score-box strong, .rep-table, .rc-clean-list {
  font-family: var(--font-mono) !important;
}

/* ==========================================================================
   ASTRO - MUNDANE ASTROLOGY & ASTROPHYSICAL PLATFORM (v3.2)
   Brand: ASTRO (Minimal, Sleek, Zero Internal Scrollbars, High Precision)
   ========================================================================== */

:root {
  --bg-deep: #060813;
  --bg-card: rgba(13, 17, 36, 0.9);
  --bg-card-hover: rgba(20, 26, 52, 0.98);
  --bg-surface: #0a0d20;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  --accent-cyan: #00f0ff;
  --accent-gold: #ffb703;
  --accent-red: #ff3366;
  --accent-green: #06d6a0;
  --accent-purple: #9d4edd;

  --text-main: #f1f4ff;
  --text-muted: #95a2c7;
  --text-dim: #5a668c;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060813;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

#starsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.22;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.orb-primary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -100px;
  left: 15%;
}

.orb-secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  bottom: 5%;
  right: 10%;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= TOPBAR: TÜRKİYE & ÇEVRESİ SON DEPREM TICKER ================= */
.quake-topbar {
  background: linear-gradient(90deg, rgba(6, 9, 20, 0.98) 0%, rgba(12, 17, 36, 0.96) 50%, rgba(6, 9, 20, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 105;
  width: 100%;
  font-size: 0.78rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding-top: env(safe-area-inset-top, 0px);
}

.quake-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  height: auto;
  max-width: 100%;
  padding: 8px 1.25rem;
  gap: 0.75rem;
  box-sizing: border-box;
}

/* Static Left Header Badge */
.quake-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 3px 8px;
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ff3366;
  user-select: none;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3366;
  box-shadow: 0 0 8px #ff3366;
  animation: liveDotPulse 1.4s ease-in-out infinite alternate;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.85); opacity: 0.7; box-shadow: 0 0 4px #ff3366; }
  100% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #ff3366; }
}

.quake-badge-text {
  font-size: 0.70rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quake-badge-sub {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

/* Marquee / Viewport & Masks */
.quake-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
}

.quake-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  animation: quakeTickerScroll 95s linear infinite;
  will-change: transform;
}

.quake-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes quakeTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-loading {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 1rem;
}

/* ================= EARTHQUAKE ITEMS IN TICKER ================= */

/* Standard / Non-Yeni Quake Item (Neutral / Monochromatic sleek dark) */
.quake-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quake-ticker-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.quake-mag-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quake-loc-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quake-meta-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ================= SPECIAL: "YENİ" ETİKETLİ DEPREMLER (CANLI & RENKLİ GÖSTERİM) ================= */
.quake-ticker-item.is-new {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.18) 0%, rgba(255, 183, 3, 0.14) 100%);
  border: 1px solid rgba(255, 51, 102, 0.55);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.25), inset 0 0 8px rgba(255, 51, 102, 0.1);
  position: relative;
}

.quake-ticker-item.is-new:hover {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.26) 0%, rgba(255, 183, 3, 0.22) 100%);
  border-color: #ff3366;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.45);
}

/* Vibrant "YENİ" Tag */
.quake-tag-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  background: linear-gradient(135deg, #ff3366, #ff0055);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.7);
  animation: pulseNewTag 1.6s infinite alternate ease-in-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes pulseNewTag {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 6px rgba(255, 51, 102, 0.6);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.95);
  }
}

/* Vibrant Mag Badge for "Yeni" */
.quake-ticker-item.is-new .quake-mag-badge {
  background: linear-gradient(135deg, #ff3366 0%, #ff7b00 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.quake-ticker-item.is-new .quake-loc-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 183, 3, 0.4);
}

.quake-ticker-item.is-new .quake-meta-text {
  color: #fde047;
  font-weight: 500;
}

/* Topbar Controls / Actions */
.quake-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.topbar-action-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

.topbar-action-btn.audio-on {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.topbar-action-btn.notify-on {
  background: rgba(255, 183, 3, 0.14);
  border-color: rgba(255, 183, 3, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.35);
}

.topbar-action-btn.notif-center-btn {
  position: relative;
}

.notif-unread-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: 1px solid #060814;
  box-shadow: 0 0 6px #ff3366;
  animation: unreadDotPulse 1.6s infinite ease-in-out;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .quake-badge-sub {
    display: none;
  }
  .quake-topbar-badge {
    padding: 2px 6px;
  }
  .quake-loc-text {
    max-width: 140px;
  }
}

/* ================= ASTRO HEADER & LOGO ================= */
.app-header {
  background: rgba(9, 12, 26, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem;
  gap: 0.6rem;
  width: 100%;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Futuristic Astroseismic Orbital Emblem */
.astroseismic-emblem {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(15, 23, 42, 0.9) 80%);
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), inset 0 0 8px rgba(0, 240, 255, 0.2);
}

.emblem-core {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff3366;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3366, 0 0 4px #ffffff;
  animation: corePulse 1.8s ease-in-out infinite alternate;
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.6);
  pointer-events: none;
}

.emblem-ring.ring-1 {
  width: 24px;
  height: 24px;
  animation: rotateRing 8s linear infinite;
}

.emblem-ring.ring-2 {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 183, 3, 0.5);
  animation: rotateRingRev 12s linear infinite;
}

.emblem-icon {
  font-size: 0.75rem;
  color: #00f0ff;
  z-index: 2;
  opacity: 0.85;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes corePulse {
  0% { transform: scale(0.8); opacity: 0.7; box-shadow: 0 0 6px #ff3366; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #ff3366, 0 0 6px #ffffff; }
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.brand-title-accent {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #ff3366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.brand-badge-version {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffd166;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Secondary Topbar Info Navigation */
.header-info-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.info-nav-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 2px;
}

.info-nav-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
}

.info-nav-btn:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  color: #fff !important;
  border-color: var(--accent-cyan) !important;
}

.info-nav-btn.active {
  background: rgba(0, 240, 255, 0.16) !important;
  color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2) !important;
}

/* Main Navigation Bar */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  background: rgba(5, 7, 18, 0.6);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid var(--border-glow);
}

.text-danger { color: var(--accent-red); }
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }

/* ================= MAIN CONTENT ================= */
.main-content {
  padding: 1.8rem 1.5rem 4rem;
}

.view-panel {
  display: none;
  animation: viewFade 0.3s ease-out;
}

.view-panel.active {
  display: block;
}

/* Custom Leaflet Tooltips */
.leaflet-tooltip.custom-map-tooltip {
  background: rgba(10, 15, 30, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 8px !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 240, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  padding: 6px 10px !important;
}

.leaflet-tooltip-top.custom-map-tooltip::before {
  border-top-color: rgba(0, 240, 255, 0.3) !important;
}
.leaflet-tooltip-bottom.custom-map-tooltip::before {
  border-bottom-color: rgba(0, 240, 255, 0.3) !important;
}
.leaflet-tooltip-left.custom-map-tooltip::before {
  border-left-color: rgba(0, 240, 255, 0.3) !important;
}
.leaflet-tooltip-right.custom-map-tooltip::before {
  border-right-color: rgba(0, 240, 255, 0.3) !important;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.view-lead h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.view-lead p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================= 0. DAILY FORECAST STYLES ================= */
.daily-header-card {
  background: linear-gradient(135deg, rgba(18, 25, 54, 0.9), rgba(10, 14, 32, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.daily-header-left h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: #fff;
  margin: 0.3rem 0;
}

.daily-header-left p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.daily-header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.domains-prob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.domain-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.dom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dom-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dom-score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
}

.dom-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.dom-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}

.dom-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================= 0.5 12 ZODIAC INDIVIDUAL IMPACT ================= */
.zodiac-impact-section {
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.85), rgba(10, 14, 32, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.zodiac-impact-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin: 0.2rem 0;
}

.zodiac-impact-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.z-impact-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.z-impact-datepicker-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.z-impact-datepicker-box:hover,
.z-impact-datepicker-box:focus-within {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.z-impact-datepicker-box .clean-date-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  padding: 3px 6px;
  outline: none;
  cursor: pointer;
}

.z-impact-datepicker-box .chip {
  font-size: 0.72rem;
  padding: 3px 8px;
  margin: 0;
  cursor: pointer;
}

.zodiac-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zodiac-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.zodiac-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.zodiac-chip.active {
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.z-symbol {
  color: var(--accent-gold);
  font-size: 1rem;
}

.zodiac-result-card {
  background: rgba(8, 11, 26, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.z-impact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.z-impact-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.z-big-symbol {
  font-size: 2rem;
  color: var(--accent-gold);
  line-height: 1;
}

.z-impact-title-group h4 {
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.z-sub-house {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.z-harmony-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.z-harm-score {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 900;
}

.z-harm-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.z-domains-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0.9rem 0;
}

@media (max-width: 900px) {
  .z-domains-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.z-domain-metric-box {
  background: rgba(10, 14, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.z-dm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.z-dm-head strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.z-dm-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.z-dm-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.z-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 850px) {
  .z-impact-grid {
    grid-template-columns: 1fr;
  }
}

.z-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.z-col strong {
  color: #fff;
}

.z-col p {
  color: var(--text-muted);
  line-height: 1.5;
}

.daily-bottom-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .daily-bottom-layout {
    grid-template-columns: 1fr;
  }
}

.daily-hourly-card, .daily-advice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-update-time-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: liveBlink 1.2s infinite;
}

.hourly-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hourly-item {
  background: rgba(10, 14, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
}

.hourly-item:hover {
  background: rgba(15, 22, 48, 0.85);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.hourly-item.active-hourly-window {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(114, 9, 183, 0.12));
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.18);
}

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

.h-theme-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.h-theme-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}

.h-sector-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.h-time-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.h-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
}

.h-now-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #00f0ff, #7209b7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  animation: activeWindowGlow 2s infinite ease-in-out;
}

.h-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: liveBlink 0.9s infinite;
}

@keyframes activeWindowGlow {
  0% { transform: scale(0.97); box-shadow: 0 0 6px rgba(0, 240, 255, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 14px rgba(0, 240, 255, 0.8); }
  100% { transform: scale(0.97); box-shadow: 0 0 6px rgba(0, 240, 255, 0.4); }
}

.h-trigger-bar {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.h-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.h-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.h-score-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.h-score-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.h-mini-bar-bg {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.h-mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.h-action-tip {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Strategic Roadmap Multi-Category Grid */
.roadmap-categories-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.roadmap-category-card {
  background: rgba(10, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.2s ease;
}

.roadmap-category-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid;
}

.rc-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rc-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rc-sub-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rc-clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rc-clean-list li {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.rc-clean-list li i {
  margin-top: 3px;
  font-size: 0.74rem;
  flex-shrink: 0;
}

/* ================= 0.8 LIVE & RECENT EARTHQUAKES STYLING ================= */
.live-pulse-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: liveBlink 1.5s infinite ease-in-out;
}

@keyframes liveBlink {
  0% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.4; transform: scale(0.85); }
}

/* EMSC WebSocket Status Badge */
.ws-live-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s ease;
}

.ws-active {
  color: var(--accent-green) !important;
  background: rgba(6, 214, 160, 0.1) !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 10px rgba(6, 214, 160, 0.25);
}

.ws-error {
  color: var(--accent-gold) !important;
  background: rgba(255, 183, 3, 0.1) !important;
  border-color: var(--accent-gold) !important;
}

.ws-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.dot-online {
  background: var(--accent-green) !important;
  box-shadow: 0 0 8px var(--accent-green);
  animation: liveBlink 1.2s infinite;
}

.dot-offline {
  background: var(--accent-gold) !important;
  animation: liveBlink 0.6s infinite;
}

/* ================= LIVE SEISMIC STATS BAR (COMPACT MOBILE & DESKTOP) ================= */
.quake-stats-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(14, 20, 44, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.q-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.q-stat-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
}

.q-stat-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

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

.live-refresh-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.live-refresh-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ================= LIVE FILTERS BAR (ULTRA-CLEAN SEGMENTED & SCROLLABLE) ================= */
.quake-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  background: rgba(10, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
}

/* 1. Region Segmented Bar */
.region-segmented-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  width: 100%;
}

.region-seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.3rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.region-seg-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(0, 119, 182, 0.35) 100%);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.2);
}

.region-seg-btn .filter-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #38bdf8;
}

.region-seg-btn.active .filter-count {
  color: #ffffff;
}

/* 2 & 3. Horizontal Scrollable Chips Row */
.filter-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
}

.filter-mini-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px 0;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.q-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.q-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.q-filter-btn.active {
  background: rgba(0, 240, 255, 0.16);
  color: #fff;
  border-color: var(--accent-cyan, #00f0ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.filter-count {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 1px;
  color: var(--accent-cyan, #38bdf8);
}

.q-filter-btn.active .filter-count {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

.q-filter-btn:hover .filter-count {
  opacity: 1;
}

.lq-region-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* 30-Minute YENİ Badge */
.lq-new-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff0055, #ff5500);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
  letter-spacing: 0.5px;
  animation: newGlow 2s infinite ease-in-out;
}

.new-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #fff;
  animation: liveBlink 1s infinite;
}

@keyframes newGlow {
  0% { transform: scale(0.97); box-shadow: 0 0 6px rgba(255, 0, 85, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 14px rgba(255, 0, 85, 0.8); }
  100% { transform: scale(0.97); box-shadow: 0 0 6px rgba(255, 0, 85, 0.4); }
}

.is-fresh-quake {
  border-color: rgba(255, 0, 85, 0.35) !important;
}

.q-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.region-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  flex-shrink: 0;
  animation: unreadDotPulse 1.4s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes unreadDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.dot-yellow { background: var(--accent-gold); }
.dot-orange { background: #fb8500; }
.dot-red { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.dot-purple { background: #d946ef; box-shadow: 0 0 8px #d946ef; }

.live-quakes-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-quake-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.live-quake-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.lq-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  min-width: 280px;
}

.lq-mag-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border: 1px solid;
}

.lq-mag-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.lq-mag-unit {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Magnitude Color Themes */
.mag-heavy {
  background: rgba(255, 51, 102, 0.18);
  border-color: var(--accent-red) !important;
  color: var(--accent-red);
}

.mag-heavy-card {
  border-color: rgba(255, 51, 102, 0.4) !important;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(12, 16, 36, 0.95)) !important;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.15);
}

.mag-strong {
  background: rgba(251, 133, 0, 0.18);
  border-color: #fb8500 !important;
  color: #fb8500;
}

.mag-strong-card {
  border-color: rgba(251, 133, 0, 0.35) !important;
}

.mag-moderate {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold);
}

.mag-light {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan) !important;
  color: var(--accent-cyan);
}

/* Pulsing Alert Ring for 6.0+ Mw */
.quake-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent-red);
  animation: qPulse 1.8s infinite ease-out;
  pointer-events: none;
}

@keyframes qPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

.lq-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lq-loc {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.lq-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.lq-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lq-impact-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}

.mag-heavy-tag {
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--accent-red);
}

.mag-strong-tag {
  color: #fb8500;
  background: rgba(251, 133, 0, 0.15);
  border-color: #fb8500;
}

.mag-moderate-tag {
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.12);
  border-color: var(--accent-gold);
}

.mag-light-tag {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
}

.lq-actions-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.lq-combo-btn {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
  color: #f1f5f9 !important;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  line-height: 1.2 !important;
  outline: none !important;
}

.lq-btn-map {
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

.lq-btn-map:hover {
  background: rgba(56, 189, 248, 0.28) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}

.lq-btn-cosmic {
  border-color: rgba(255, 183, 3, 0.5) !important;
  color: #fbbf24 !important;
  background: rgba(255, 183, 3, 0.12) !important;
}

.lq-btn-cosmic:hover {
  background: rgba(255, 183, 3, 0.28) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.4) !important;
}

.lq-inspect-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lq-inspect-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ================= 1. GUIDE BANNER ================= */
.guide-banner {
  background: linear-gradient(135deg, rgba(18, 24, 50, 0.9), rgba(10, 14, 32, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.guide-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.guide-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.guide-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 1050px;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.guide-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.g-pillar-card {
  background: rgba(8, 11, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.g-pillar-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.g-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g-pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.g-pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.g-pillar-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.g-trigger-timeline-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }
}

.g-step {
  background: rgba(8, 10, 24, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
}

.g-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #03081a;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.g-step h4 {
  font-size: 0.96rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.g-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================= 2. SIMILARITY SCANNER (CLEAN & SLEEK) ================= */
.similarity-scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.scanner-header h3 {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.scanner-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scanner-date-picker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.clean-date-input {
  background: #080b1a;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.clean-date-input:focus {
  border-color: var(--accent-cyan);
}

.date-stepper-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.date-stepper-row .clean-date-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.95rem;
  padding: 0.55rem 0.6rem;
  letter-spacing: 0.5px;
}

.date-step-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.date-step-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.date-step-btn:active {
  transform: scale(0.96);
}

.scanner-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.4rem;
}

.sim-result-item {
  background: rgba(10, 14, 32, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sim-result.asp-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

/* Dynamic Aspect Balance & Legend Card */
.aspect-balance-box {
  width: 100%;
  max-width: 580px;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.85), rgba(8, 12, 28, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.aspect-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.balance-score-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.b-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
}

.b-red {
  color: #ff8fa3;
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.35);
}

.b-green {
  color: #70e000;
  background: rgba(6, 214, 160, 0.12);
  border-color: rgba(6, 214, 160, 0.35);
}

.b-gray {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.balance-verdict-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.45;
}

.balance-danger {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.25);
  color: #ffd6df;
}

.balance-calm {
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: #d8f3dc;
}

.balance-neutral {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #e0f2fe;
}

.aspect-legend-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
}

.asp-leg-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.asp-leg-col strong {
  font-size: 0.76rem;
}

.asp-leg-col p {
  color: var(--text-dim);
  line-height: 1.4;
}

.sim-result-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.sim-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sim-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sim-mag-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.sim-meta-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.sim-rate-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.sim-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.sim-notes-clean {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sim-notes-clean strong {
  color: #fff;
}

.sim-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sim-silent-row {
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
}

.sim-damping-row {
  background: rgba(255, 183, 3, 0.04);
  border-left: 3px solid var(--accent-gold);
}

.sim-tag-lead {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sim-tag-body {
  color: var(--text-muted);
}

/* ================= 3. EARTHQUAKES ARCHIVE ================= */
.section-title-bar {
  margin-bottom: 1.5rem;
}

.section-title-bar h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
}

.section-title-bar p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.disaster-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: rgba(10, 14, 32, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
}

.disaster-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.disaster-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.disaster-filter-btn.active {
  background: rgba(0, 240, 255, 0.14);
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.earthquakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.4rem;
}

.quake-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.25s ease;
  position: relative;
}

.quake-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.quake-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.q-location {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.q-mag-inline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.3);
  padding: 1px 7px;
  border-radius: 4px;
}

.q-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.q-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
}

.q-detail-row strong {
  color: #fff;
  font-size: 0.84rem;
}

.q-detail-row p {
  color: var(--text-muted);
  line-height: 1.45;
}

.q-btn-inspect {
  margin-top: 0.4rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.q-btn-inspect:hover {
  background: var(--accent-cyan);
  color: #03081a;
}

/* ================= 4. SIMULATOR CLEAN ================= */
.sim-clean-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

.sim-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.3);
}

.chip-now {
  background: rgba(6, 214, 160, 0.12);
  color: var(--accent-green);
  border-color: rgba(6, 214, 160, 0.3);
}

.voltage-card-clean {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(20, 26, 54, 0.8));
  border-color: rgba(255, 51, 102, 0.25);
}

.voltage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #fff;
}

.voltage-top strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-red);
}

.v-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.v-fill {
  height: 100%;
  background: linear-gradient(90deg, #06d6a0, #ffb703 60%, #ff3366 85%);
  border-radius: 4px;
}

.v-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.planet-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.p-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.p-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.p-row-danger {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.18), rgba(20, 15, 35, 0.6)) !important;
  border: 1px solid rgba(255, 51, 102, 0.38) !important;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.15);
}

.p-row-danger:hover {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.28), rgba(30, 20, 50, 0.8)) !important;
  border-color: var(--accent-red) !important;
}

.p-danger-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Floating Tooltip on Canvas Hover */
.wheel-tooltip-floating {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  background: rgba(6, 9, 22, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  animation: toolFade 0.15s ease-out;
}

@keyframes toolFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Click Detail Popover (Wide & Multi-Column Layout) */
.wheel-detail-popover {
  width: 100%;
  max-width: 100%;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.95), rgba(8, 12, 28, 0.98));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: viewFade 0.25s ease-out;
}

.wd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.wd-title-wrap {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wd-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.wd-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.wd-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wd-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.wd-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wd-col-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.wd-col-box strong {
  font-size: 0.78rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wd-col-box p {
  color: var(--text-muted);
  line-height: 1.4;
}

.wd-span-full {
  grid-column: 1 / -1;
}

.wd-aspects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.wd-aspect-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid;
}

.sim-main-wheel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-header-clean {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.wheel-header-clean h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
}

.wheel-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-clean {
  display: flex;
  gap: 0.8rem;
  font-size: 0.74rem;
}

.leg-sq { color: var(--accent-red); }
.leg-op { color: #ff0054; }
.leg-tr { color: var(--accent-green); }

.wheel-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: block;
}

#zodiacWheelCanvas {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.active-aspects-clean {
  width: 100%;
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.asp-chip {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  transition: transform 0.2s ease;
}

.asp-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* Dynamic Aspect Balance & Legend Card (Wide & Compact) */
.aspect-balance-box {
  width: 100%;
  max-width: 100%;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.85), rgba(8, 12, 28, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aspect-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.balance-score-pills {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.b-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid;
  white-space: nowrap;
}

.b-red {
  color: #ff8fa3;
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.35);
}

.b-green {
  color: #70e000;
  background: rgba(6, 214, 160, 0.12);
  border-color: rgba(6, 214, 160, 0.35);
}

.b-gray {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.balance-verdict-box {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
}

.balance-danger {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.25);
  color: #ffd6df;
}

.balance-calm {
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: #d8f3dc;
}

.balance-neutral {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #e0f2fe;
}

.aspect-legend-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.asp-leg-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.74rem;
  min-width: 0;
  box-sizing: border-box;
}

.asp-leg-col strong {
  font-size: 0.76rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.asp-leg-col p {
  color: var(--text-dim);
  line-height: 1.38;
  margin: 0;
  word-break: break-word;
}

/* ================= MOON PHASE WIDGET ================= */
.moon-phase-card-clean {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.06), rgba(16, 22, 50, 0.85));
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge-moon-illum {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

.moon-phase-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.moon-phase-icon-glow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 100, 0.25), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 200, 50, 0.2);
}

.moon-phase-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.moon-phase-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moon-phase-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
}

.moon-angular-diff {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.moon-tidal-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mt-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mt-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.mt-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.fill-danger { background: linear-gradient(90deg, #ffb703, #ff3366); }
.fill-gold { background: linear-gradient(90deg, #06d6a0, #ffb703); }
.fill-green { background: #06d6a0; }

.moon-seismic-note {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  background: rgba(0, 240, 255, 0.04);
  border-left: 2px solid var(--accent-cyan);
  padding: 0.4rem 0.6rem;
  border-radius: 0 4px 4px 0;
}

.wheel-moon-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.28);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.74rem;
  color: #ffda79;
  margin-top: 0.3rem;
}

/* ================= KOZMİK SİSMİK RÖNTGEN EVALUATION SECTION ================= */
.cxray-container {
  width: 100%;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cxray-header-card {
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.95), rgba(8, 12, 28, 0.98));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cxray-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.cxray-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-top: 0.2rem;
}

.cxray-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cxray-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.threat-critical {
  background: rgba(255, 51, 102, 0.18);
  border-color: rgba(255, 51, 102, 0.45);
  color: #ff8fa3;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.2);
}

.threat-high {
  background: rgba(255, 183, 3, 0.16);
  border-color: rgba(255, 183, 3, 0.4);
  color: #ffe066;
}

.threat-medium {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #64dfdf;
}

.threat-calm {
  background: rgba(6, 214, 160, 0.12);
  border-color: rgba(6, 214, 160, 0.35);
  color: #70e000;
}

.cxray-mw-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 183, 3, 0.2));
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cxray-mw-badge strong {
  color: #ff4d6d;
  font-size: 0.92rem;
}

.cxray-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ss-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.stat-strip-item strong {
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.cxray-verdict-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Faults Grid */
.cxray-sec-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cxray-faults-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fault-card {
  background: rgba(16, 22, 50, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.fault-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.fault-high {
  border-left: 3px solid var(--accent-red) !important;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(16, 22, 50, 0.8)) !important;
}

.fault-normal {
  border-left: 3px solid var(--accent-green) !important;
}

.fault-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fault-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.fault-pct {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.fault-track {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.fault-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.fault-segments {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.fault-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 1999 Historical Box */
.cxray-historical-box {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.07), rgba(16, 22, 50, 0.9));
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 183, 3, 0.2);
  padding-bottom: 0.5rem;
}

.hist-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hist-sim-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid;
}

.sim-critical {
  color: #ffe066;
  background: rgba(255, 183, 3, 0.15);
  border-color: rgba(255, 183, 3, 0.4);
}

.sim-medium {
  color: #64dfdf;
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
}

.hist-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hist-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.42;
}

.hist-col strong {
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hist-col p {
  color: var(--text-muted);
}

.hist-others-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 183, 3, 0.18);
  padding-top: 0.85rem;
  margin-top: 0.4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hist-others-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  word-break: break-word;
  line-height: 1.35;
}

.hist-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hist-mini-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}

.hist-mini-card:hover {
  background: rgba(255, 183, 3, 0.12);
  border-color: rgba(255, 183, 3, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hm-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hm-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.hm-meta {
  font-size: 0.7rem;
  color: var(--accent-gold);
}

.hm-sig {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Eclipse Trigger Box */
.cxray-eclipse-box {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid;
}

.cxray-eclipse-box.critical {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.12), rgba(20, 15, 40, 0.7));
  border-color: rgba(255, 51, 102, 0.35);
}

.cxray-eclipse-box.warning {
  background: rgba(255, 183, 3, 0.08);
  border-color: rgba(255, 183, 3, 0.3);
}

.cxray-eclipse-box.normal {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
}

.eclipse-head {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.eclipse-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Scenarios Grid */
.cxray-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.cxray-sc-card {
  background: rgba(16, 22, 50, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.sc-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #fff;
}

.sc-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.cxray-sc-card p {
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .cxray-stat-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cxray-faults-grid {
    grid-template-columns: 1fr;
  }
  .hist-body {
    grid-template-columns: 1fr;
  }
  .cxray-scenarios-grid {
    grid-template-columns: 1fr;
  }
  .hist-others-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .aspect-legend-mini-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .asp-leg-col {
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .asp-leg-col:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* ================= 5. FORMULA CARDS CLEAN ================= */
.formula-cards-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.f-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.f-fuel { border-top: 3px solid var(--accent-gold); }
.f-target { border-top: 3px solid var(--accent-purple); }
.f-spark { border-top: 3px solid var(--accent-red); }

.f-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
}

.f-icon {
  font-size: 1.8rem;
}

.f-fuel .f-icon { color: var(--accent-gold); }
.f-target .f-icon { color: var(--accent-purple); }
.f-spark .f-icon { color: var(--accent-red); }

.f-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
}

.f-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.f-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.case-h-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.case-h-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-top: 0.3rem;
}

.case-h-steps {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ================= 6. ASTROPHYSICS & SCIENCE VIEW ================= */
.science-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.science-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sc-physics { border-top: 3px solid var(--accent-cyan); }
.sc-astro { border-top: 3px solid var(--accent-gold); }

.sc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.sc-header i {
  font-size: 1.8rem;
}

.sc-header h3 {
  font-size: 1.1rem;
  color: #fff;
}

.sc-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.88rem;
}

.sc-list li {
  color: var(--text-muted);
  line-height: 1.55;
}

.sc-list strong {
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

.hybrid-synthesis-card {
  background: linear-gradient(135deg, rgba(16, 22, 50, 0.9), rgba(8, 12, 28, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.h-syn-head {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
}

.h-syn-head h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  margin-top: 0.3rem;
}

.h-syn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.h-syn-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.h-syn-box i {
  font-size: 1.4rem;
}

.h-syn-box h4 {
  font-size: 0.95rem;
  color: #fff;
}

.h-syn-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================= 6.5 EXPERT RADAR CLEAN ================= */
.expert-filters-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.exp-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.exp-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.exp-filter-btn.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.x-tweet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.x-tweet-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.x-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.x-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.x-user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.x-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.x-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.x-verified-icon {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.x-handle {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.x-sub-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-date-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.x-topic-highlight {
  font-size: 0.84rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

.x-topic-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 4px;
}

.x-tweet-body {
  font-size: 0.85rem;
  color: #d1d8f0;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.x-hashtags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.x-hashtag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.x-astro-verification {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.x-verif-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.x-verif-desc {
  color: var(--text-muted);
}

.x-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.x-footer-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x-feed-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.73rem;
}

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

.x-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.x-action-btn:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.x-reels-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.32rem 0.78rem;
  font-size: 0.73rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.x-reels-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55);
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.x-reels-card-btn:active {
  transform: translateY(0);
}

.x-reels-card-btn i {
  font-size: 0.82rem;
}

/* ================= 7. ACADEMY CLEAN ================= */
.academy-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.acad-sec {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sec-head {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.clean-list li {
  color: var(--text-muted);
}

.clean-list strong {
  color: #fff;
}

/* ================= 8. GENERATOR CLEAN ================= */
.gen-clean-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.gen-inputs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.g-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.g-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.clean-select {
  background: #080b1a;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.clean-select:focus {
  border-color: var(--accent-cyan);
}

.gen-output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gen-out-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.gen-output-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
}

.gen-out-eq {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.gen-out-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gen-out-risk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.risk-badge-red {
  color: var(--accent-red);
  font-family: var(--font-mono);
}

/* ================= TASK 1: COSMIC VOLTAGE & SEISMIC BAROMETER STYLES ================= */
.cosmic-voltage-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 17, 36, 0.95) 0%, rgba(20, 15, 38, 0.9) 100%);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 51, 102, 0.08);
  position: relative;
  overflow: hidden;
}

.cosmic-voltage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #ff3366, #ffb703, #00f0ff);
}

.voltage-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-dial-container {
  position: relative;
  width: 200px;
  height: 110px;
  display: flex;
  justify-content: center;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-bg-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge-fill-arc {
  fill: none;
  stroke: url(#voltageGradient, #ff3366);
  stroke: #ff3366;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.6));
}

.gauge-needle {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 4px;
  height: 68px;
  background: linear-gradient(to top, #ffffff, #ff3366);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(45deg);
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.8);
  z-index: 2;
}

.gauge-center-cap {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 3px solid #ff3366;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3366;
  z-index: 3;
}

.gauge-score-box {
  position: absolute;
  bottom: -22px;
  text-align: center;
}

.gauge-score-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 51, 102, 0.8);
}

.gauge-score-unit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gauge-level-tags {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.6rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.voltage-details-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.voltage-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 20px;
  color: #ff3366;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: fit-content;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.voltage-details-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
}

.voltage-details-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.voltage-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.v-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.v-chip strong {
  color: #fff;
}

/* ================= TASK 2: INTERACTIVE LEAFLET MAP VIEW STYLES ================= */
.seismic-map-container {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.seismic-map-element {
  width: 100%;
  height: 100%;
  background: #060914;
}

/* Dark mode leaflet tiles filter */
.leaflet-tile {
  filter: brightness(0.85) contrast(1.2) saturate(0.8) hue-rotate(200deg);
}

.map-overlay-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 1000;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.moi-badge {
  background: rgba(9, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.legend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.leg-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Custom Pulsing Leaflet Marker */
.pulse-marker-icon {
  border-radius: 50%;
  animation: markerRipple 1.8s infinite ease-out;
}

@keyframes markerRipple {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.8); }
  70% { box-shadow: 0 0 0 15px rgba(255, 51, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

/* ================= TASK 3: ASTRO-SEISMIC TIME MACHINE STYLES ================= */
.timemachine-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tm-preset-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.tm-presets-scroll {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tm-control-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tm-control-left h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.tm-control-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tm-control-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tm-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tm-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.tm-box-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tm-planets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.tm-planets-table td, .tm-planets-table th {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-breakdown-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tm-breakdown-text strong {
  color: #fff;
}

/* ================= TASK 5: CITY RISK RADAR STYLES ================= */
.city-selector-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.city-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.city-chip-btn:hover, .city-chip-btn.active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(0, 240, 255, 0.15));
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.4);
}

.city-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.city-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
}

.city-stats-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 992px) {
  .city-stats-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .city-stats-3col {
    grid-template-columns: 1fr;
  }
}

.city-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.city-stat-box label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.city-stat-box strong {
  font-size: 1.05rem;
  color: #fff;
}

.city-narrative-box {
  background: rgba(157, 78, 221, 0.06);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= TASK 6: SOCIAL CARD EXPORT MODAL STYLES ================= */
.astro-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.export-modal-box {
  background: #080c1f;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 95%;
  padding: 1.25rem;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.15);
}

.astro-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.astro-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.export-preview-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #020308;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  max-height: 520px;
  overflow: auto;
}

.export-preview-wrapper canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

.export-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.export-report-btn {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.export-report-btn:hover {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.4), rgba(0, 240, 255, 0.4));
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

/* ================= FOOTER ================= */
.app-footer {
  background: rgba(6, 8, 20, 0.96);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-left strong {
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-enigma-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
}

.footer-enigma-link:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ================= ENHANCED MOBILE RESPONSIVE QUERIES ================= */
@media (max-width: 1024px) {
  .cosmic-voltage-card, .tm-result-grid, .guide-steps-grid, .formula-cards-clean, .science-compare-grid, .h-syn-grid, .academy-simple-grid, .sim-clean-layout, .gen-clean-grid, .daily-bottom-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.85rem;
  }

  .header-inner {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .header-info-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .info-nav-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.74rem;
    padding: 3px 8px;
  }

  .main-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav .nav-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .quake-topbar-inner {
    padding: 0 0.5rem;
    font-size: 0.72rem;
  }

  .quake-topbar-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .daily-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .daily-header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .clean-date-input {
    width: 100%;
  }

  .voltage-details-content h3 {
    font-size: 1.1rem;
  }

  .tm-control-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .tm-control-right {
    width: 100%;
  }

  .tm-presets-scroll, .city-selector-bar, .zodiac-chips-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .city-chip-btn, .zodiac-chip, .tm-presets-scroll .chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* ================= SIMULATOR & ZODIAC WHEEL MOBILE / PWA FIXES ================= */
  .sim-clean-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sim-main-wheel {
    order: 1 !important;
    padding: 1.1rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }

  .sim-sidebar {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1rem !important;
  }

  .wheel-header-clean {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }

  .wheel-header-clean h3 {
    font-size: 1.15rem !important;
  }

  .wheel-sub {
    font-size: 0.74rem !important;
  }

  .legend-clean {
    flex-wrap: wrap !important;
    gap: 0.4rem 0.75rem !important;
    font-size: 0.7rem !important;
  }

  .wheel-box-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    overflow: hidden !important;
  }

  .wheel-box {
    width: 100% !important;
    max-width: min(88vw, 420px) !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #zodiacWheelCanvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  .active-aspects-clean {
    width: 100% !important;
    gap: 0.35rem !important;
    justify-content: center !important;
    margin-top: 0.9rem !important;
  }

  .active-aspects-clean .asp-chip {
    font-size: 0.7rem !important;
    padding: 3px 7px !important;
  }

  .aspect-balance-box {
    padding: 0.9rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .aspect-balance-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .cxray-header-card,
  .cxray-historical-box {
    padding: 0.85rem 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .cxray-title-wrap h3 {
    font-size: 1rem !important;
    word-break: break-word !important;
  }

  .hist-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .hist-title {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }

  .hist-sim-pill {
    font-size: 0.7rem !important;
    padding: 2px 7px !important;
  }

  .hist-others-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 0.65rem !important;
  }

  .hist-others-title {
    font-size: 0.75rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }

  .hist-others-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hist-mini-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.55rem 0.75rem !important;
  }

  .aspect-legend-mini-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .asp-leg-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 0.55rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .asp-leg-col:last-child {
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }

  .asp-leg-col strong {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    font-size: 0.75rem !important;
  }

  .asp-leg-col p {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  .wheel-detail-popover {
    padding: 0.9rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .wd-grid-3, .wd-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .quick-chips {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .quick-chips .chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Mobile Performance & Smooth Scrolling */
  .glow-orb {
    filter: blur(40px) !important;
    width: 220px !important;
    height: 220px !important;
    opacity: 0.14 !important;
  }

  #starsCanvas {
    opacity: 0.75;
  }
}

/* ================= QUAKE COSMIC MODAL & COMBO ENGINE ================= */
.quake-cosmic-modal-box {
  background: linear-gradient(145deg, #090d24, #050716);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
  max-height: 92vh;
  overflow-y: auto;
}

.qcm-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qcm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.qcm-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .qcm-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qcm-meta-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.qcm-meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.qcm-meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.qcm-dominant-box {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(255, 183, 3, 0.08));
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.qcm-dominant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.qcm-dominant-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qcm-aspect-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.qcm-aspect-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.qcm-voltage-row {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qcm-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.qcm-act-btn {
  flex: 1;
  min-width: 160px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.qcm-btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 240, 255, 0.1));
  border-color: var(--accent-cyan);
  color: #fff;
}

.qcm-btn-primary:hover {
  background: var(--accent-cyan);
  color: #060814;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.qcm-btn-secondary {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(255, 183, 3, 0.1));
  border-color: var(--accent-gold);
  color: #fff;
}

.qcm-btn-secondary:hover {
  background: var(--accent-gold);
  color: #060814;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

/* Wheel Focused Quake Context Banner */
.wheel-focused-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 51, 102, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: fadeInDown 0.3s ease;
}

.wfb-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wfb-pill {
  background: #ff3366;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.wfb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.wfb-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.wfb-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wfb-clear-btn:hover {
  background: rgba(255, 51, 102, 0.25);
  border-color: #ff3366;
  color: #fff;
}

/* Historical Quake Actions Combo */
.q-actions-combo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.q-combo-btn {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.q-combo-btn:hover {
  transform: translateY(-1px);
}

/* ================= 9.0 NOTIFICATIONS CENTER MODAL / DRAWER ================= */
.notif-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  animation: fadeInModal 0.25s ease;
}

.notif-drawer-box {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #080d1e;
  border-left: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.notif-drawer-header {
  padding: 1.1rem 1.25rem;
  background: rgba(13, 19, 43, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notif-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.notif-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notif-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.notif-item:hover {
  background: rgba(22, 33, 62, 0.95);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.12);
}

.notif-item.is-unread {
  background: rgba(16, 26, 56, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-left: 4px solid #00f0ff;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

.notif-item.is-quake.is-unread {
  border-left: 4px solid #ff0055;
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.15);
}

.notif-item.is-cosmic.is-unread {
  border-left: 4px solid #a855f7;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.notif-item.is-read {
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid rgba(255, 255, 255, 0.15);
  opacity: 0.8;
}

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

.notif-badges-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-badge {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-quake {
  background: rgba(255, 0, 85, 0.16);
  color: #ff3366;
  border: 1px solid rgba(255, 0, 85, 0.35);
}

.badge-quake.mag-high {
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.3) 0%, rgba(255, 75, 43, 0.35) 100%);
  color: #ff0055;
  border: 1px solid #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.4);
  animation: unreadDotPulse 1.8s infinite alternate;
}

.badge-quake.mag-med {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-quake.mag-low {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-cosmic {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.28) 100%);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.notif-distance-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.notif-distance-pill.dist-close {
  background: rgba(255, 0, 85, 0.18);
  color: #ff3366;
  border-color: #ff3366;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.3);
}

.notif-time {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.notif-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notif-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
}

.notif-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.notif-card-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  user-select: none;
}

.notif-card-action-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateY(-1px);
}

.notif-card-action-btn.btn-accent {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.notif-card-action-btn.btn-accent:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00f0ff;
  flex-shrink: 0;
}

.notif-read-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notif-read-toggle-btn:hover {
  transform: scale(1.15);
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
}

/* ================= 9.1 TOPBAR SETTINGS DROPDOWN ================= */
.topbar-settings-wrapper {
  position: relative;
  display: inline-flex;
}

.topbar-settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  max-width: calc(100vw - 16px);
  background: #0d122b;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 999999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInModal 0.2s ease;
}

.topbar-settings-dropdown.is-open {
  display: flex !important;
}

.settings-dropdown-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.settings-menu-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

.settings-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-toggle-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-state-on {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.badge-state-off {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-menu-item.action-clear:hover,
.settings-menu-item.action-logout:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: rgba(255, 51, 102, 0.45);
  color: #ff3366;
}

.topbar-settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 265px;
  background: #0d122b;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInModal 0.2s ease;
}

.settings-submenu-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.settings-submenu-box:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.06);
}

.settings-select-threshold {
  background: #080c1d;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  min-width: 78px;
  text-align: center;
}

.settings-select-threshold:hover,
.settings-select-threshold:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.settings-select-threshold option {
  background: #0d122b;
  color: #fff;
  font-weight: 600;
}

/* ================= 9.2 USER AUTH, PROFILE & RBAC MODALS ================= */
.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-user-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.topbar-user-btn.is-logged-in {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.topbar-user-btn.is-logged-in:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.user-btn-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  animation: fadeInModal 0.2s ease;
}

.astro-modal-backdrop.is-open {
  display: flex;
}

.astro-modal-dialog {
  background: #0d122b;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  color: #e2e8f0;
}

.astro-modal-dialog.modal-wide {
  max-width: 780px;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ff3366;
}

.modal-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.modal-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab-btn.is-active {
  color: #00f0ff;
  border-bottom-color: #00f0ff;
}

.form-group-custom {
  margin-bottom: 1rem;
  text-align: left;
}

.form-label-custom {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-custom {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #080c1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input-custom:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.form-input-custom:disabled, .form-input-custom[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
}

.btn-primary-custom {
  width: 100%;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-danger-custom {
  padding: 0.5rem 0.85rem;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: var(--radius-sm);
  color: #ff3366;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-custom:hover {
  background: rgba(255, 51, 102, 0.3);
  color: #fff;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-superadmin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.role-admin {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(37, 99, 235, 0.25) 100%);
  color: #00f0ff;
  border: 1px solid #00f0ff;
}

.admin-section-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 1.2rem 0 0.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-drawer-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.notif-refresh-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notif-refresh-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.95rem;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: #ff3366;
  color: #fff;
}

.admin-users-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  margin-top: 0.6rem;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.admin-users-table th {
  background: rgba(16, 22, 50, 0.95);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  white-space: nowrap;
  vertical-align: middle;
}

.admin-users-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  white-space: nowrap;
  color: #cbd5e1;
}

.admin-users-table tr:last-child td {
  border-bottom: none;
}

.admin-users-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.admin-role-select {
  background: #080c1d;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.admin-role-select:hover, .admin-role-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.astro-modal-dialog.modal-wide {
  max-width: 1180px;
  width: 95vw;
}

.admin-stat-card {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-stat-card:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
}

.admin-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.notif-mark-all-btn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notif-mark-all-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.notif-clear-all-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notif-clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.notif-dismiss-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  opacity: 0.65;
}

.notif-dismiss-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.15);
  opacity: 1;
}

.expert-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.expert-action-bar .expert-filters-bar {
  margin-bottom: 0;
}

.expert-sync-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(157, 78, 221, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
  white-space: nowrap;
}

.expert-sync-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(157, 78, 221, 0.35));
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.expert-sync-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}



/* ==========================================================================
   NOTIFICATION SETTINGS MODAL & CARDS
   ========================================================================== */
.notif-settings-dialog {
  max-width: 520px;
}

.notif-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.25s ease;
}

.notif-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.notif-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notif-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.notif-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-card-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

.notif-card-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.notif-card-toggle-btn:hover {
  transform: scale(1.05);
}

.notif-card-toggle-btn:active {
  transform: scale(0.95);
}

.notif-card-body {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.notif-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.notif-option-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notif-select {
  background: #080c1d !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.76rem !important;
  font-weight: 700;
  cursor: pointer;
}

.notif-select:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

.notif-hint {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.notif-test-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notif-test-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  color: #fff;
}



/* ================= NOAA & PWA MOBILE RESPONSIVE FIXES ================= */
.noaa-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .quake-topbar {
    height: auto !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
  }
  .quake-topbar-inner {
    min-height: 52px !important;
    height: auto !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .noaa-text-full {
    display: none !important;
  }
  .noaa-text-mobile {
    display: inline !important;
  }
  .quake-badge-sub {
    display: none !important;
  }
  .quake-topbar-badge {
    padding: 2px 5px !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .quake-topbar-actions {
    margin-left: auto;
    flex-shrink: 0;
    gap: 5px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
  }
  .topbar-action-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.76rem !important;
    border-radius: 7px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .tremor-topbar-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
  }
  .seismograph-topbar-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
  }
  .topbar-settings-dropdown {
    right: 0;
    top: calc(100% + 6px);
    width: 240px;
    max-width: 90vw;
  }
}

@media (max-width: 480px) {
  .tremor-topbar-text, .seismograph-topbar-text {
    display: none !important;
  }
  .tremor-topbar-btn, .seismograph-topbar-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .topbar-action-btn {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ==============================================================================
   ASTROSEİSMİK LUXURY COSMIC GLASS SWEETALERT2 THEME
   ============================================================================== */
.swal2-container {
  z-index: 999999 !important;
  font-family: var(--font-body);
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(3, 7, 18, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* Modal Popup Body */
.swal2-popup.astro-swal-popup,
.swal2-popup:not(.swal2-toast) {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96) 0%, rgba(9, 14, 28, 0.98) 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 45px rgba(112, 0, 255, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
  padding: 2.2rem 2rem !important;
  max-width: 480px !important;
  width: 92% !important;
}

/* Title */
.swal2-title.astro-swal-title,
.swal2-popup:not(.swal2-toast) .swal2-title {
  font-family: var(--font-heading);
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.6px !important;
  margin: 0.8rem 0 0.4rem 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}

/* Content / Body Text */
.swal2-html-container.astro-swal-html,
.swal2-popup:not(.swal2-toast) .swal2-html-container {
  font-size: 0.94rem !important;
  color: #94a3b8 !important;
  line-height: 1.65 !important;
  margin: 0.6rem 0 1.4rem 0 !important;
}

/* Sleek Icon Styling & Neon Rings */
.swal2-icon {
  margin: 0.5rem auto 1rem auto !important;
  border-width: 3px !important;
}

.swal2-icon.swal2-success,
.astro-swal-icon-success {
  border-color: #00f0ff !important;
  color: #00f0ff !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #00f0ff !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(0, 240, 255, 0.4) !important;
}

.swal2-icon.swal2-error,
.astro-swal-icon-error {
  border-color: #ff3366 !important;
  color: #ff3366 !important;
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.4) !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #ff3366 !important;
}

.swal2-icon.swal2-warning,
.astro-swal-icon-warning {
  border-color: #ffd166 !important;
  color: #ffd166 !important;
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.35) !important;
}

.swal2-icon.swal2-info,
.astro-swal-icon-info {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35) !important;
}

.swal2-icon.swal2-question,
.astro-swal-icon-question {
  border-color: #c084fc !important;
  color: #c084fc !important;
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.35) !important;
}

/* Action Buttons Container */
.swal2-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.85rem !important;
  margin-top: 1.25rem !important;
  width: 100% !important;
}

/* Buttons */
.swal2-styled.swal2-confirm,
.astro-swal-confirm-btn {
  background: linear-gradient(135deg, #7000ff 0%, #00e5ff 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.4px !important;
  padding: 0.75rem 1.8rem !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.swal2-styled.swal2-confirm:hover,
.astro-swal-confirm-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 25px rgba(0, 229, 255, 0.6) !important;
  filter: brightness(1.1) !important;
}

.swal2-styled.swal2-cancel,
.astro-swal-cancel-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.swal2-styled.swal2-cancel:hover,
.astro-swal-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Close Button (if used) */
.swal2-close {
  color: #64748b !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  top: 14px !important;
  right: 14px !important;
}
.swal2-close:hover {
  color: #00f0ff !important;
  transform: rotate(90deg) !important;
}

/* Inputs / Selects inside SweetAlert */
.swal2-input,
.swal2-select,
.swal2-textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4) !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1rem !important;
}
.swal2-input:focus,
.swal2-select:focus,
.swal2-textarea:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35) !important;
  outline: none !important;
}

/* ================= TOAST NOTIFICATIONS ================= */
.swal2-popup.swal2-toast,
.swal2-popup.astro-swal-toast {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(9, 14, 28, 0.98) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.85), 0 0 25px rgba(112, 0, 255, 0.22) !important;
  padding: 0.85rem 1.25rem !important;
  gap: 0.6rem !important;
  align-items: center !important;
}

.swal2-popup.swal2-toast .swal2-title,
.astro-swal-toast-title {
  font-size: 0.9rem !important;
  color: #f8fafc !important;
  font-family: var(--font-body);
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
  margin: 0 !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
}

.swal2-timer-progress-bar,
.astro-swal-toast-progress {
  background: linear-gradient(90deg, #7000ff 0%, #00e5ff 100%) !important;
  height: 3px !important;
}

/* =========================================================================
   INSTAGRAM REELS (9:16 - 1080x1920) SUPERADMIN PAYLAŞIM KARTI
   ========================================================================= */

.reels-modal-box {
  max-width: 760px;
  width: 95%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #060919;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.reels-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.reels-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reels-header-title i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reels-header-title h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.reels-header-title p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.reels-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.8rem;
}

.reels-tool-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reels-tool-item label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.reels-select {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  background: #0d132b;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #fff;
  outline: none;
}

.reels-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: auto;
}

.reels-download-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  font-size: 0.8rem !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4) !important;
  transition: all 0.2s ease !important;
}

.reels-download-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6) !important;
}

.reels-copy-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 12px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  transition: all 0.2s ease !important;
}

.reels-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* Scaled Viewport for 9:16 Preview */
.reels-preview-viewport {
  width: 454px;
  height: 808px;
  margin: 0.5rem auto 0;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  background: #060814;
  position: relative;
  flex-shrink: 0;
}

.reels-preview-scaler {
  width: 1080px;
  height: 1920px;
  transform: scale(0.42037);
  transform-origin: top left;
  user-select: none;
}

@media (max-width: 520px) {
  .reels-preview-viewport {
    width: 324px;
    height: 576px;
  }
  .reels-preview-scaler {
    transform: scale(0.3);
  }
}

/* Native 1080x1920 Canvas */
.reels-card-canvas {
  width: 1080px;
  height: 1920px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  color: #ffffff;
  padding: 60px;
  background: #060919;
}

/* Themes */
.reels-card-canvas.theme-cosmic-night {
  background: radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.18) 0%, transparent 50%),
              linear-gradient(180deg, #050816 0%, #080d24 45%, #040612 100%);
}

.reels-card-canvas.theme-seismic-red {
  background: radial-gradient(circle at 15% 15%, rgba(239, 68, 68, 0.24) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
              linear-gradient(180deg, #120609 0%, #1c0a10 45%, #080305 100%);
}

.reels-card-canvas.theme-royal-gold {
  background: radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.16) 0%, transparent 50%),
              linear-gradient(180deg, #090c1a 0%, #131424 45%, #060812 100%);
}

/* ==============================================================================
   🚨 CROWDSOURCED TREMOR REPORTING & SEISMIC EARLY WARNING STYLES
   ============================================================================== */

.tremor-topbar-btn {
  width: auto !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(255, 51, 102, 0.15) !important;
  border: 1.5px solid rgba(255, 51, 102, 0.5) !important;
  color: #ff3366 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0 0.95rem !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.tremor-topbar-btn:hover {
  background: rgba(255, 51, 102, 0.28) !important;
  border-color: #ff3366 !important;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.5) !important;
  transform: translateY(-1px);
}

.seismograph-topbar-btn {
  width: auto !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.5) !important;
  color: #00f0ff !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0 0.95rem !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.seismograph-topbar-btn:hover {
  background: rgba(0, 240, 255, 0.25) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45) !important;
  transform: translateY(-1px);
}

.tremor-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3366;
  box-shadow: 0 0 8px #ff3366;
  display: inline-block;
  animation: tremorPulseDot 1.4s infinite ease-in-out;
}

@keyframes tremorPulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px #ff3366; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px #ff3366, 0 0 20px rgba(255, 51, 102, 0.6); }
}

@media (max-width: 640px) {
  .tremor-topbar-text {
    display: none;
  }
  .tremor-topbar-btn {
    padding: 0.35rem 0.55rem !important;
  }
}

/* Floating Action Button (FAB) */
.btn-tremor-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92) 0%, rgba(185, 28, 28, 0.96) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 120, 150, 0.55);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.45), 0 0 18px rgba(255, 51, 102, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-tremor-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 34px rgba(239, 68, 68, 0.65), 0 0 26px rgba(255, 51, 102, 0.55);
  border-color: #ffffff;
}

.btn-tremor-fab:active {
  transform: translateY(1px) scale(0.97);
}

.tremor-fab-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 999px;
  border: 2px solid rgba(255, 51, 102, 0.7);
  animation: tremorFabPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes tremorFabPulseRing {
  0% { transform: scale(0.98); opacity: 0.9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 768px) {
  .btn-tremor-fab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
}

/* Early Warning Fullscreen / Modal Overlay */
.early-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: ewFadeIn 0.3s ease-out;
}

@keyframes ewFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.early-warning-card {
  max-width: 520px;
  width: 100%;
  background: linear-gradient(180deg, #150810 0%, #0c050c 100%);
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.5), inset 0 0 30px rgba(239, 68, 68, 0.15);
  box-sizing: border-box;
  position: relative;
  animation: ewCardPulse 2s infinite ease-in-out;
}

@keyframes ewCardPulse {
  0%, 100% { border-color: #ef4444; box-shadow: 0 0 40px rgba(239, 68, 68, 0.4); }
  50% { border-color: #ff0055; box-shadow: 0 0 70px rgba(255, 0, 85, 0.7); }
}

.ew-beacon-icon {
  font-size: 2.8rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 24px #ef4444;
}

.ew-badge-urgent {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}

.ew-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
}

.ew-subtext {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.ew-countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.4rem;
}

.ew-cd-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ew-cd-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ff3366;
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.8);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.ew-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.ew-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #ff0055 100%);
  border-radius: 999px;
  transition: width 1s linear;
}

.ew-advice-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.ew-advice-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ew-advice-box ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.ew-advice-box li {
  margin-bottom: 0.3rem;
}

.ew-dismiss-btn {
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ew-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* ==========================================================================
   📊 MASA BAŞI SİSMOGRAF & P-DALGASI SENSÖR MODALI
   ========================================================================== */
.seismograph-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  animation: seismoFadeIn 0.25s ease-out;
}

@keyframes seismoFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.seismograph-modal-card {
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0a0f24 0%, #050814 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.15);
  box-sizing: border-box;
  position: relative;
}

.seismograph-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seismograph-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.seismograph-header-icon {
  font-size: 1.8rem;
  color: #00f0ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.seismograph-modal-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.seismograph-modal-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0.2rem 0 0 0;
}

.seismograph-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.seismograph-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

/* Durum Rozeti */
.seismograph-status-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

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

.seismo-status-off {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
.seismo-status-off .seismo-status-dot {
  background: #64748b;
}

.seismo-status-calibrating {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.seismo-status-calibrating .seismo-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: seismoPulseDot 1.2s infinite;
}

.seismo-status-listening {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}
.seismo-status-listening .seismo-status-dot {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: seismoPulseDot 1.5s infinite;
}

.seismo-status-moving {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.seismo-status-moving .seismo-status-dot {
  background: #ef4444;
}

.seismo-status-alert {
  background: rgba(239, 68, 68, 0.25);
  border: 1.5px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: seismoAlertPulse 1s infinite;
}
.seismo-status-alert .seismo-status-dot {
  background: #ff0055;
  box-shadow: 0 0 14px #ff0055;
}

@keyframes seismoPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes seismoAlertPulse {
  0%, 100% { border-color: #ef4444; }
  50% { border-color: #ff0055; box-shadow: 0 0 25px rgba(255, 0, 85, 0.8); }
}

/* Kanvas Alanı */
.seismograph-canvas-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: #02040a;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#seismographCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.seismograph-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.seismo-canvas-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #00f0ff;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  pointer-events: none;
}

/* Metrik Kutuları */
.seismograph-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.seismo-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.seismo-metric-lbl {
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.seismo-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.seismo-unit {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

/* Ayarlar & Kontroller */
.seismograph-controls-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.seismo-control-row {
  margin-bottom: 0.75rem;
}

.seismo-ctrl-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.seismo-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
}

.seismo-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 10px #00f0ff;
}

.seismo-options-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.seismo-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
}

.seismograph-guide-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.45;
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.15rem;
}

.seismograph-action-row {
  width: 100%;
}

.btn-seismo-toggle {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #00f0ff 0%, #00a8ff 100%);
  border: none;
  border-radius: 12px;
  color: #040817;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
}

.btn-seismo-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 240, 255, 0.5);
}

.btn-seismo-toggle.btn-seismo-active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-seismo-toggle.btn-seismo-active:hover {
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.6);
}

@media (max-width: 600px) {
  .seismograph-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .seismo-options-row {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ==============================================================================
   ⚡ EMSC WEBSOCKET SİSMİK ERKEN UYARI & MMI MODAL STILLERİ
   ============================================================================== */
.emsc-ew-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: emscEwFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes emscEwFade {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.emsc-ew-card {
  max-width: 560px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #150914 0%, #09040a 100%);
  border: 2px solid #ff3366;
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 0 60px rgba(255, 51, 102, 0.4), inset 0 0 30px rgba(255, 51, 102, 0.1);
  box-sizing: border-box;
  animation: emscCardGlow 2.5s infinite ease-in-out;
}

@keyframes emscCardGlow {
  0%, 100% { border-color: #ff3366; box-shadow: 0 0 45px rgba(255, 51, 102, 0.35); }
  50% { border-color: #f59e0b; box-shadow: 0 0 75px rgba(245, 158, 11, 0.55); }
}

.emsc-ew-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.emsc-ew-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.emsc-ew-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.emsc-ew-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.emsc-ew-main-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.emsc-mag-badge {
  flex-shrink: 0;
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ff3366 0%, #ef4444 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(255, 51, 102, 0.6);
  line-height: 1;
}

.emsc-ew-info {
  flex: 1;
}

.emsc-ew-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  line-height: 1.25;
}

.emsc-ew-distance {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* MMI Şiddet Kutusu */
.emsc-mmi-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.emsc-mmi-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.emsc-mmi-val-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.45rem;
}

.emsc-mmi-val-badge.mmi-light {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.emsc-mmi-val-badge.mmi-moderate {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fb923c;
}

.emsc-mmi-val-badge.mmi-strong {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  animation: seismoPulseDot 1.4s infinite;
}

.emsc-mmi-val-badge.mmi-severe {
  background: rgba(220, 38, 38, 0.35);
  border: 1.5px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  animation: seismoAlertPulse 1s infinite;
}

.emsc-mmi-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* S-Dalgası Geri Sayım Kutusu */
.emsc-countdown-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 51, 102, 0.4);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.emsc-cd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.emsc-cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.emsc-cd-elapsed {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fbbf24;
  font-weight: 600;
}

.emsc-cd-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ff3366;
  font-family: var(--font-mono);
  text-shadow: 0 0 22px rgba(255, 51, 102, 0.8);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.emsc-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.emsc-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 60%, #ff0055 100%);
  border-radius: 999px;
  transition: width 1s linear;
}

.emsc-advice-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.emsc-advice-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.emsc-advice-box ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.emsc-advice-box li {
  margin-bottom: 0.25rem;
}

.emsc-btn-dismiss {
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.emsc-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.emsc-btn-mute {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid #ff3366;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  animation: pulseMuteGlow 1.2s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

@keyframes pulseMuteGlow {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.02); box-shadow: 0 0 35px rgba(239, 68, 68, 0.9); }
}

/* ================= SİSMİK UYARI & ALARM AYARLARI MODAL STYLES ================= */
.astro-settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.astro-settings-modal-card {
  background: linear-gradient(165deg, #0d1326 0%, #060914 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.settings-modal-header {
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 240, 255, 0.04);
}

.settings-modal-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.settings-modal-title i {
  font-size: 1.4rem;
}

.settings-modal-title h3 {
  font-family: var(--font-heading, 'Cinzel', sans-serif);
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.settings-modal-title p {
  font-size: 0.76rem;
  color: var(--text-dim, #94a3b8);
  margin: 0;
}

.settings-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.settings-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  border-color: #ef4444;
}

.settings-modal-body {
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.settings-card-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.section-desc {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.section-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

.switch-toggle input:checked + .slider {
  background-color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #060914;
}

.switch-toggle .slider.round {
  border-radius: 34px;
}

.switch-toggle .slider.round:before {
  border-radius: 50%;
}

/* Smart Tier Legend */
.smart-tier-legend {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.tier-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.tier-light .tier-badge { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tier-alert .tier-badge { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tier-critical .tier-badge { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }

/* Setting Fields */
.setting-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.setting-field-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.astro-select {
  background: #080c1b;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #f1f5f9;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.astro-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Test Buttons */
.test-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.btn-test-tier {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-tier-light {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.btn-tier-light:hover { background: rgba(16, 185, 129, 0.22); }

.btn-tier-alert {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.btn-tier-alert:hover { background: rgba(245, 158, 11, 0.22); }

.btn-tier-critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 100%);
  border-color: #ef4444;
  color: #ff6b81;
}
.btn-tier-critical:hover { background: rgba(239, 68, 68, 0.45); }

.btn-tier-mute {
  background: #dc2626;
  color: #fff;
  border-color: #ff3366;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
  animation: pulseMuteGlow 1s infinite alternate;
}

/* Location Status */
.location-status-badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.permission-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-perm-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-perm-action:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
}

.settings-modal-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.btn-settings-save {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #00f0ff 0%, #0077b6 100%);
  border: none;
  color: #060914;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-settings-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.5);
}

/* ==============================================================================
   📱 NATIVE MOBILE NAVIGATION BAR & ULTRA-CLEAN MOBILE HEADER
   ============================================================================== */

/* Desktop defaults: Hide mobile-only elements */
.mobile-topbar-logo {
  display: none;
}
.mobile-bottom-nav {
  display: none;
}

.topbar-left-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Mini Logo for Mobile Topbar */
.emblem-mini {
  width: 26px !important;
  height: 26px !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
}

.emblem-mini .emblem-icon {
  font-size: 0.65rem !important;
}

.mobile-logo-text {
  font-family: var(--font-heading, 'Cinzel', sans-serif);
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

@media (max-width: 768px) {
  /* 1. Ultra Compact Topbar & Header */
  .mobile-topbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
  }

  .header-inner {
    display: none !important;
  }

  .app-header {
    border-bottom: none !important;
    background: transparent !important;
  }

  .quake-topbar {
    background: rgba(6, 9, 20, 0.96) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
  }

  .quake-topbar-inner {
    min-height: 50px !important;
    padding: 6px 10px !important;
  }

  /* Desktop-only action items in topbar hidden on mobile */
  .seismograph-topbar-btn,
  .telegram-channel-btn {
    display: none !important;
  }

  /* 2. Main Content Safe Spacing */
  main.main-content {
    padding-top: 0.6rem !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 15px)) !important;
  }

  /* 3. Native Frosted Glass Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(6, 9, 22, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.08);
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 10px);
    height: calc(56px + env(safe-area-inset-bottom, 10px));
    box-sizing: border-box;
    align-items: center;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item .nav-icon-wrap {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.2s ease;
  }

  .mobile-nav-item span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
  }

  .mobile-nav-item.active {
    color: #00f0ff;
  }

  .mobile-nav-item.active .nav-icon-wrap {
    transform: translateY(-2px);
    color: #00f0ff;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
  }

  .mobile-nav-item.active span {
    font-weight: 800;
    color: #ffffff;
  }

  .mobile-nav-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 10px #00f0ff;
  }
}

/* ================= TOOLS VIEW PANEL & GRID ================= */
#tools-view {
  padding-bottom: 2rem;
}

.tools-grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.6rem;
}

@media (min-width: 769px) {
  .tools-grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.tool-card-btn {
  background: rgba(13, 19, 38, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tool-card-btn:active, .tool-card-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.25);
}

.tool-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.icon-cyan { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-slate { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.icon-twitter { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); }
.icon-telegram { background: rgba(34, 158, 217, 0.15); color: #229ED9; border: 1px solid rgba(34, 158, 217, 0.3); }

.tool-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.tool-card-info strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.tool-card-info span {
  font-size: 0.67rem;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

.mobile-subview-back-bar {
  display: none;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .mobile-subview-back-bar {
    display: block;
  }
}

.btn-back-to-tools {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #38bdf8;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-back-to-tools:active {
  background: rgba(0, 240, 255, 0.15);
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .seismic-map-container {
    height: calc(100vh - 165px) !important;
    min-height: 420px !important;
    margin-bottom: 0.5rem !important;
    border-radius: 14px !important;
  }
}

/* =========================================================================
   ⚡ MOBILE PERFORMANCE & GPU ACCELERATION OPTIMIZATION
   ========================================================================= */
@media (max-width: 768px) {
  .topbar, 
  .astro-modal-dialog, 
  .tool-card-btn, 
  .seismic-card,
  .reels-modal-box,
  .early-warning-overlay,
  .early-warning-card,
  .seismograph-modal-overlay,
  .seismograph-modal-card,
  .btn-tremor-fab {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  
  .topbar {
    background: #06090e !important;
  }
  
  /* Fix 100% pinned mobile bottom nav bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    background: #06090e !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-top: 1px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important;
    height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    transform: none !important;
  }
  
  .astro-modal-backdrop,
  .early-warning-overlay,
  .seismograph-modal-overlay {
    background: rgba(4, 7, 20, 0.94) !important;
  }
}








/* ==============================================================================
   30 GÜNLÜK SİSMİK RISK ISI HARİTASI (HEATMAP WIDGET)
   ============================================================================== */
.monthly-heatmap-section {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.heatmap-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.heatmap-header-left h3 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.3rem 0 0.2rem 0;
}

.heatmap-header-left p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.heatmap-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hm-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.hm-stat-chip.stat-critical {
  border-color: #ff3366;
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
}

.hm-stat-chip.stat-high {
  border-color: #ffb703;
  background: rgba(255, 183, 3, 0.15);
  color: #ffb703;
}

.heatmap-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hl-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
}

.hl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hl-calm .hl-dot { background: #06d6a0; box-shadow: 0 0 6px rgba(6, 214, 160, 0.6); }
.hl-normal .hl-dot { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.hl-high .hl-dot { background: #ffb703; box-shadow: 0 0 6px rgba(255, 183, 3, 0.6); }
.hl-critical .hl-dot { background: #ff3366; box-shadow: 0 0 6px rgba(255, 51, 102, 0.8); }

.export-report-btn {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.export-report-btn:hover {
  background: rgba(255, 51, 102, 0.35);
  border-color: #ff3366;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.monthly-heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
}

.heat-tile {
  background: rgba(16, 22, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.heat-tile:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.heat-tile.tile-active {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

.heat-tile.heat-critical {
  border-left: 3px solid #ff3366;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.12), rgba(16, 22, 50, 0.7));
}

.heat-tile.heat-high {
  border-left: 3px solid #ffb703;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(16, 22, 50, 0.7));
}

.heat-tile.heat-normal {
  border-left: 3px solid #38bdf8;
}

.heat-tile.heat-calm {
  border-left: 3px solid #06d6a0;
}

.ht-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.ht-date {
  font-family: var(--font-body);
  font-weight: 700;
  color: #ffffff;
}

.ht-day {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
}

.ht-score {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.ht-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  overflow: hidden;
}

.heat-critical .ht-bar-fill { background: #ff3366; }
.heat-high .ht-bar-fill { background: #ffb703; }
.heat-normal .ht-bar-fill { background: #38bdf8; }
.heat-calm .ht-bar-fill { background: #06d6a0; }

.ht-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.ht-zone {
  font-weight: 700;
  color: #e2e8f0;
}

.ht-today-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  background: #38bdf8;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ht-pulse-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #ff3366;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3366;
  animation: pulseNeon 1.5s infinite;
}

/* ================= İL BAZLI SİSMİK RADAR (CITY RADAR STYLES) ================= */
.city-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.35rem 0.2rem;
}

.city-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.city-chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #ffffff;
  transform: translateY(-1px);
}

.city-chip.active-city-chip {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(6, 182, 212, 0.25)) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.city-detail-card {
  background: var(--bg-card, rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 16px);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.crd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crd-title-wrap h3 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0.25rem 0 0.25rem 0;
}

.crd-title-wrap p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.crd-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.cm-card {
  background: rgba(16, 22, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cm-lbl {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cm-val {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.cm-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ================= RESMİ RAPOR (PDF / PRINT STYLES) ================= */
.report-modal-box {
  max-width: 860px;
  width: 95%;
  background: #0b101e;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
}

.report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.rm-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rm-print-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.rm-print-btn:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

.rep-sheet {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rep-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
}

.rep-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rep-logo {
  font-size: 1.8rem;
  color: #38bdf8;
}

.rep-meta-box {
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.rep-alert-box {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.rab-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.rab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #e2e8f0;
}

.rep-sec-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rep-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.rep-table th, .rep-table td {
  padding: 7px 9px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-table th {
  background: rgba(0, 0, 0, 0.3);
  color: #38bdf8;
  font-weight: 700;
}

.rep-aspects-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.rep-asp-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 9px;
  border-radius: 6px;
  border-left: 2px solid #a855f7;
}

.rep-footer {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.7rem;
}

.rep-sign {
  text-align: right;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 4px;
}

/* ==============================================================================
   MAP HISTORICAL DATE SELECTOR & TIMELINE CONTROLS
   ============================================================================== */
.map-date-bar {
  background: rgba(13, 17, 36, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.map-date-main-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

.map-preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-preset-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}

.map-preset-pill.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.map-date-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-date-picker {
  background: rgba(6, 8, 19, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.map-date-picker:focus {
  border-color: var(--accent-cyan);
}

.map-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.45rem;
}

.map-status-strip strong {
  color: #fff;
}

/* ==============================================================================
   NOAA SWPC CANLI UZAY HAVASI & JEOMANYETİK İNDÜKSİYON KARTI
   ============================================================================== */
.space-weather-card {
  background: linear-gradient(135deg, rgba(13, 17, 38, 0.92), rgba(7, 10, 24, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.sw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.65rem;
}

.sw-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.sw-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: swPulseAnim 1.8s infinite;
}

@keyframes swPulseAnim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sw-box {
  background: rgba(6, 8, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.sw-box:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.sw-box-lbl {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-box-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.sw-box-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.sw-note {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ==============================================================================
   6 SİSMOTEKTONİK KORİDOR & DİNGİNLİK (QUIESCENCE) RADARI
   ============================================================================== */
.fault-corridors-section {
  background: linear-gradient(135deg, rgba(13, 17, 36, 0.92), rgba(8, 11, 24, 0.95));
  border: 1px solid rgba(255, 183, 3, 0.22);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.fc-header {
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.65rem;
}

.fc-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fc-title-group h3 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.4px;
}

.fc-title-group p {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.85rem;
}

.fc-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.fc-card:hover {
  border-color: rgba(255, 183, 3, 0.35);
  transform: translateY(-1px);
}

.fc-card.border-danger {
  border-color: rgba(255, 51, 102, 0.4);
}

.fc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.fc-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
}

.fc-name {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.fc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.fc-badge-critical {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.fc-badge-high {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.fc-badge-normal {
  background: rgba(6, 214, 160, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.fc-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.fc-track-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.fc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

.fc-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-lbl {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fc-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.fc-benchmark {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.fc-status-row {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.35rem;
}

/* ==============================================================================
   120 YILLIK TARİHSEL MEGA DEPREM BACKTEST MOTORU
   ============================================================================== */
.backtest-section {
  background: linear-gradient(135deg, rgba(13, 17, 36, 0.92), rgba(18, 12, 34, 0.95));
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.bt-header {
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.65rem;
}

.bt-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bt-title-group h3 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.4px;
}

.bt-title-group p {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.bt-summary-banner {
  background: rgba(6, 8, 19, 0.8);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bt-sb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}

.bt-sb-right {
  text-align: right;
  font-family: var(--font-body);
}

.bt-score-big {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.bt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.85rem;
}

.bt-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.bt-card:hover {
  border-color: rgba(157, 78, 221, 0.4);
  transform: translateY(-1px);
}

.bt-card-topmatch {
  border-color: rgba(255, 183, 3, 0.4);
  background: linear-gradient(135deg, rgba(16, 14, 32, 0.8), rgba(8, 10, 22, 0.8));
}

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

.bt-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bt-rank-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(157, 78, 221, 0.18);
  color: #c084fc;
  border: 1px solid rgba(157, 78, 221, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}

.bt-card-title strong {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #fff;
}

.bt-sim-pct {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
}

.bt-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bt-signature {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.bt-analysis {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bt-action-row {
  margin-top: 0.2rem;
}

.bt-load-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.bt-load-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}


/* ==============================================================================
   4 KATMANLI HİBRİT TAHMİN MOTORU // ASTRO-SİSMİK TEŞHİS (.cxray- STYLES)
   ============================================================================== */
.cxray-header-card {
  background: linear-gradient(135deg, rgba(13, 17, 36, 0.92), rgba(8, 11, 24, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-md, 14px);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cxray-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.cxray-title-wrap h3 {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.25rem 0 0 0;
  letter-spacing: 0.4px;
}

.cxray-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cxray-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.cxray-badge.threat-critical, .cxray-badge.threat-level-red {
  border-color: var(--accent-red);
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
}

.cxray-badge.threat-high, .cxray-badge.threat-level-orange, .cxray-badge.threat-level-gold {
  border-color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
}

.cxray-badge.threat-normal, .cxray-badge.threat-level-green {
  border-color: var(--accent-green);
  background: rgba(6, 214, 160, 0.15);
  color: var(--accent-green);
}

.cxray-mw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.35);
  color: #c084fc;
}

.cxray-mw-badge strong {
  font-family: var(--font-mono);
  color: #fff;
}

/* Executive Alert Card */
.cxray-exec-alert-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 51, 102, 0.25);
  border-radius: var(--radius-sm, 8px);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exec-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.6rem;
}

.exec-zone-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.5px;
}

.exec-zone-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0 0;
}

.exec-alert-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.exec-mw-box, .exec-score-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.exec-mw-val, .exec-score-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.exec-key-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.exec-insight-item {
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eii-title {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eii-desc {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.exec-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.45rem;
}

.exec-footer-meta strong {
  color: #ffffff;
}

/* Stat Strip */
.cxray-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.stat-strip-item {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-strip-item strong {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
}

/* Verdict Banner */
.cxray-verdict-banner {
  background: rgba(255, 183, 3, 0.1);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.cxray-verdict-banner p {
  margin: 0;
}

.cxray-verdict-banner strong {
  color: #ffffff;
}

.cxray-verdict-banner.threat-critical {
  border-left-color: var(--accent-red);
  background: rgba(255, 51, 102, 0.1);
}

.cxray-verdict-banner.threat-normal {
  border-left-color: var(--accent-green);
  background: rgba(6, 214, 160, 0.1);
}

/* Sections & Grids */
.cxray-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cxray-sec-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.cxray-meridian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.meridian-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
}

.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-name {
  font-weight: 700;
  color: #ffffff;
}

.mc-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
}

.mc-cities {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.mc-res {
  color: #cbd5e1;
  font-size: 0.72rem;
}

.cxray-faults-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.fault-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
}

.fault-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fault-name {
  font-weight: 700;
  color: #ffffff;
}

.fault-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
}

.fault-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.fault-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.fault-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fault-meta-row strong {
  color: #ffffff;
}

.fault-segments {
  font-size: 0.7rem;
  color: #94a3b8;
}

.fault-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Historical Box */
.cxray-historical-box {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.hist-title {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hist-sim-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.hist-sim-pill.sim-critical {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.hist-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.hist-col {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.hist-col strong {
  color: #ffffff;
}

.hist-col p {
  margin: 2px 0 0 0;
}

.hist-others-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hist-others-title {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hist-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.hist-mini-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.hist-mini-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.hm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hm-name {
  font-weight: 700;
  color: #ffffff;
}

.hm-pct {
  font-family: var(--font-mono);
  font-weight: 700;
}

.hm-meta {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.hm-sig {
  color: #94a3b8;
  font-size: 0.68rem;
}

/* Eclipse Box */
.cxray-eclipse-box {
  background: rgba(6, 8, 19, 0.75);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 0.74rem;
}

.eclipse-head {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eclipse-desc {
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* Scenarios Grid */
.cxray-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.cxray-sc-card {
  background: rgba(6, 8, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
}

.sc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.sc-card-head strong {
  font-size: 0.76rem;
  color: #ffffff;
}

.sc-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
}

.cxray-sc-card p {
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
  font-size: 0.72rem;
}


/* ==============================================================================
   LIVE EARTHQUAKES STATS BAR (TEK SATIR / SINGLE ROW FLEX/GRID)
   ============================================================================== */
.quake-stats-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.65rem !important;
  background: var(--bg-card, rgba(13, 17, 36, 0.9)) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
  border-radius: var(--radius-md, 14px) !important;
  padding: 0.65rem 1rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  overflow-x: auto;
}

.q-stat-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: rgba(6, 8, 19, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-sm, 8px) !important;
  padding: 0.45rem 0.75rem !important;
  white-space: nowrap !important;
  flex: 1 1 auto;
  justify-content: center;
}

.q-stat-label {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  color: var(--text-muted, #94a3b8) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.q-stat-val {
  font-family: var(--font-mono) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .quake-stats-bar {
    flex-wrap: wrap !important;
  }
  .q-stat-item {
    flex: 1 1 calc(50% - 0.5rem) !important;
  }
}


/* ==============================================================================
   NATIVE MOBILE APP USER EXPERIENCE & BOTTOM NAVIGATION BAR
   ============================================================================== */
@media (min-width: 992px) {
  .mobile-bottom-nav,
  .mobile-drawer-sheet,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body {
    padding-bottom: 78px !important;
  }

  /* Compact Header on Mobile */
  .header-top-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.35rem 0 !important;
  }

  .header-info-nav {
    display: none !important;
  }

  .main-nav {
    display: none !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  .brand-title {
    font-size: 1.15rem !important;
  }

  .brand-badge-version {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
  }

  .quake-topbar-inner {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  .quake-topbar-actions {
    gap: 0.35rem !important;
  }

  .topbar-action-btn {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  /* Floating emergency buttons lift above bottom navigation */
  #sarsintiHissediyorumBtn,
  .tremor-floating-btn,
  .audio-alert-btn {
    bottom: 76px !important;
    right: 12px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }

  /* Native Mobile Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(6, 9, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 2px) 4px !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
  }

  .mobile-nav-item .mn-icon-wrap {
    width: 34px !important;
    height: 28px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    margin-bottom: 2px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    position: relative !important;
  }

  .mobile-nav-item .mn-label {
    font-family: var(--font-body) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    color: inherit !important;
  }

  .mobile-nav-item.active {
    color: #00f0ff !important;
  }

  .mobile-nav-item.active .mn-icon-wrap {
    background: rgba(0, 240, 255, 0.16) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    color: #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
    transform: translateY(-2px) !important;
  }

  .mn-icon-live {
    position: relative !important;
  }

  .mn-live-pulse {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ff3366 !important;
    box-shadow: 0 0 6px #ff3366 !important;
    animation: swPulseAnim 1.5s infinite !important;
  }

  /* Mobile More Drawer Bottom Sheet */
  .mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  .mobile-drawer-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-drawer-sheet {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -100% !important;
    background: linear-gradient(180deg, #0d122b 0%, #060918 100%) !important;
    border-top: 1.5px solid rgba(0, 240, 255, 0.35) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 0.8rem 1.1rem calc(env(safe-area-inset-bottom, 0px) + 20px) 1.1rem !important;
    z-index: 10001 !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8) !important;
    transition: bottom 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
  }

  .mobile-drawer-sheet.open {
    bottom: 0 !important;
  }

  .mobile-drawer-handle {
    width: 40px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 2px !important;
    margin: 0 auto 0.75rem auto !important;
    cursor: pointer !important;
  }

  .mobile-drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 1rem !important;
  }

  .md-brand {
    font-family: var(--font-heading) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .md-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #94a3b8 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .mobile-drawer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }

  .md-item {
    background: rgba(16, 22, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 0.85rem 0.4rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .md-item:hover, .md-item:active {
    background: rgba(0, 240, 255, 0.12) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
    transform: translateY(-2px) !important;
  }

  .md-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
  }

  .md-item span {
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-align: center !important;
  }

  /* Responsive Grid & Card Tweaks for Mobile */
  .monthly-heat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem !important;
  }

  .heat-tile {
    padding: 0.5rem 0.4rem !important;
  }

  .ht-score {
    font-size: 0.95rem !important;
  }

  .sw-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .fc-grid, .bt-cards-grid, .cxray-meridian-grid, .cxray-faults-grid {
    grid-template-columns: 1fr !important;
  }

  .quake-filters-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }

  .quake-filters-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-group {
    flex-shrink: 0 !important;
  }
}
