/* ===========================================================
   Turkiye Canli Takip — ortak temel stiller
   =========================================================== */

/* ---------------- yazi tipleri (yerel; Fontshare — ITF Free Font License) ---------------- */
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------------- koyu tema (varsayilan): notr, hafif soguk antrasit + camgobegi vurgu ---------------- */
:root {
  color-scheme: dark;

  /* zeminler — notr antrasit, kartlar bir ton acik, ince beyaz kenar */
  --bg: #0d0f13;
  --bg-alt: #0a0c0f;
  --surface: #15181d;
  --surface-2: #1b1f25;
  --surface-hover: #232830;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.15);
  --chart-grid: rgba(255, 255, 255, 0.06);

  /* metin */
  --text-primary: #f2f4f7;
  --text-secondary: #a9b0bb;
  --text-muted: #828a96;

  /* marka vurgusu — camgobegi */
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-weak: rgba(34, 211, 238, 0.12);
  --accent-contrast: #03222a;

  /* kategori renkleri */
  --c-weather: #38bdf8;
  --c-weather-2: #7dd3fc;
  --c-weather-glow: #38bdf8;
  --c-quake: #f5a524;
  --c-quake-2: #fbbf5a;
  --c-fire: #f87171;
  --c-fire-2: #fca5a5;

  /* deger tonlari (istatistik kartlari) */
  --tone-red: #f87171;
  --tone-cyan: #38bdf8;
  --tone-green: #34d399;
  --tone-blue: #93c5fd;
  --tone-amber: #fbbf24;
  --tone-violet: #a78bfa;
  --tone-teal: #2dd4bf;

  /* durum renkleri */
  --status-good: #34d399;
  --status-warning: #fbbf24;
  --status-serious: #fb923c;
  --status-critical: #ef4444;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 12px 34px -16px rgba(0, 0, 0, 0.7);
  --font: "Satoshi", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Cabinet Grotesk", "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Satoshi", "Segoe UI", system-ui, sans-serif;

  --ambient-weather: #0f1920;
  --ambient-quake: #19150f;
  --ambient-fire: #1b1114;
}

/* ---------------- acik tema (isteğe bagli) ---------------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f5f7;
  --bg-alt: #e9ebef;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-hover: #eaecf0;
  --border: rgba(16, 24, 40, 0.10);
  --border-strong: rgba(16, 24, 40, 0.18);
  --chart-grid: rgba(16, 24, 40, 0.07);

  --text-primary: #12161c;
  --text-secondary: #4a5260;
  --text-muted: #5f6774;

  --accent: #0e7490;
  --accent-2: #155e75;
  --accent-weak: rgba(14, 116, 144, 0.12);
  --accent-contrast: #ffffff;

  --c-weather: #0284c7;
  --c-weather-2: #0369a1;
  --c-weather-glow: #0284c7;
  --c-quake: #d97706;
  --c-quake-2: #b45309;
  --c-fire: #dc2626;
  --c-fire-2: #b91c1c;

  --tone-red: #dc2626;
  --tone-cyan: #0284c7;
  --tone-green: #059669;
  --tone-blue: #2563eb;
  --tone-amber: #d97706;
  --tone-violet: #7c3aed;
  --tone-teal: #0d9488;

  --shadow-soft: 0 10px 30px -14px rgba(15, 27, 51, 0.18);

  --ambient-weather: #e3edf5;
  --ambient-quake: #f4ece0;
  --ambient-fire: #f5e5e5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body,
.site-nav,
.card,
.btn,
.leaflet-popup-content-wrapper {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* sayisal / veri degerleri: mono + tablo hizasi (kurumsal panel hissi) */
.stat-value,
.ticker-value,
.mag-chip,
.wc-temp,
.em-value,
.em-number .num,
.tm-dot {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* ---------------- kurumsal ikonlar ---------------- */
.ic {
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
}
.btn .ic { vertical-align: -0.2em; }
/* bolum basliklarindaki kucuk on-ikon */
h3 .h-icon,
h2 .h-icon {
  display: inline-flex;
  color: var(--text-muted);
  margin-right: 9px;
  vertical-align: -0.18em;
}
.weather-body h3 .h-icon { color: var(--c-weather); }
.quake-body h3 .h-icon { color: var(--c-quake); }
.fire-body h3 .h-icon { color: var(--c-fire); }

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Nav bar ---------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
}

.brand span {
  color: var(--accent-2);
  font-weight: 700;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-weak);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-2);
}

/* alttan yukari acilan, kategori rengine gore boyanan animasyonlu cizgi */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* tum nav linkleri tek kurumsal aksan tonuyla vurgulanir */
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
  background: var(--accent-weak);
}
.nav-links a::after {
  background: var(--accent);
}

/* tema+ayarlar+profil, tek bir hesap kumesi olarak gruplanir */
.nav-account {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px) scale(1.05);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn .theme-icon {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.icon-btn:active .theme-icon {
  transform: rotate(25deg) scale(0.9);
}
/* ayarlar (dislicark) ikonu, hover'da yavasca doner */
.icon-btn.icon-settings svg {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.icon-btn.icon-settings:hover svg {
  transform: rotate(75deg);
}

/* ---- misafir kotasi rozeti (giris yapmamis ziyaretci) ---- */
.guest-quota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.guest-quota .gq-dots {
  display: inline-flex;
  gap: 3px;
}
.guest-quota .gq-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.guest-quota .gq-dot.spent {
  background: color-mix(in srgb, var(--text-muted) 55%, transparent);
}
.guest-quota.low { border-color: color-mix(in srgb, var(--status-warning) 45%, transparent); color: var(--text-primary); }
.guest-quota .gq-login {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.76rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.user-chip:hover {
  background: var(--surface-hover);
  border-color: var(--c-weather);
  transform: translateY(-1px);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-contrast);
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  animation: avatar-pop 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.user-chip:hover .user-avatar {
  transform: rotate(-8deg) scale(1.08);
}
@keyframes avatar-pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(227, 73, 72, 0.3);
  background: rgba(227, 73, 72, 0.08);
  color: var(--c-fire-2);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.logout-btn:hover {
  background: rgba(227, 73, 72, 0.18);
  border-color: rgba(227, 73, 72, 0.55);
  transform: translateY(-1px);
}
.logout-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}
.logout-btn:hover svg {
  transform: translateX(2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 6px 18px -6px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 26px -8px var(--accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---------------- reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* ---------------- kartlar / yuzeyler ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.glass {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-live {
  background: color-mix(in srgb, var(--status-good) 16%, transparent);
  color: color-mix(in srgb, var(--status-good) 82%, white);
  border: 1px solid color-mix(in srgb, var(--status-good) 40%, transparent);
}
.badge-live .live-blip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blip 1.6s ease-in-out infinite;
}
@keyframes blip {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 55%, transparent);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px transparent;
  }
}

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: 70px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .sources {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------- yardimcilar ---------------- */
.text-weather {
  color: var(--c-weather-glow);
}
.text-quake {
  color: var(--c-quake-2);
}
.text-fire {
  color: var(--c-fire-2);
}

.section {
  padding: 90px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 10px 0 12px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--c-weather-glow);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 240px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------- acil durum modu ---------------- */
.emergency-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 19px;
  border-radius: 999px;
  border: none;
  background: var(--status-critical);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(207, 79, 79, 0.7);
  animation: fab-pulse 2.6s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.emergency-fab:hover { transform: translateY(-2px) scale(1.03); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 24px -10px rgba(207, 79, 79, 0.6); }
  50% { box-shadow: 0 12px 30px -8px rgba(207, 79, 79, 0.85); }
}
.emergency-fab svg { width: 18px; height: 18px; }

.emergency-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 6, 9, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: em-fade-in 0.25s ease;
}
@keyframes em-fade-in { from { opacity: 0; } to { opacity: 1; } }

.emergency-panel {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0c1119;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 34px 30px;
  color: #fff;
  animation: em-pop-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes em-pop-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.emergency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.emergency-head h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.emergency-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.em-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.em-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.em-card .em-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}
.em-card .em-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
}
.em-card .em-sub { opacity: 0.75; font-size: 0.86rem; margin-top: 4px; }

.em-numbers {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.em-number {
  flex: 1;
  min-width: 130px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(208, 59, 59, 0.18);
  border: 1px solid rgba(208, 59, 59, 0.4);
  text-align: center;
}
.em-number { color: inherit; text-decoration: none; transition: background 0.2s ease, transform 0.15s ease; }
.em-number:hover { background: rgba(208, 59, 59, 0.28); }
.em-number:active { transform: scale(0.97); }
.em-number .num { font-size: 2rem; font-weight: 900; }
.em-number .lbl { font-size: 0.78rem; opacity: 0.85; margin-top: 2px; }

.em-note {
  font-size: 0.82rem;
  opacity: 0.65;
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 560px) {
  .em-grid { grid-template-columns: 1fr; }
  .emergency-panel { padding: 26px 20px; border-radius: 20px; }
}

/* scrollbar (webkit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-hover);
}

/* ---------------- 3D ikonlar (img/3d, Microsoft Fluent Emoji — MIT) ---------------- */
.icon-3d {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.page-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-icon svg { width: 30px; height: 30px; }
.page-icon .icon-3d { width: 72%; height: 72%; }
.page-icon.icon-weather { background: color-mix(in srgb, var(--c-weather) 15%, transparent); color: var(--c-weather-glow); }
.page-icon.icon-quake-wrap { background: color-mix(in srgb, var(--c-quake) 15%, transparent); color: var(--c-quake-2); }
.page-icon.icon-fire-wrap { background: color-mix(in srgb, var(--c-fire) 15%, transparent); color: var(--c-fire-2); }
.page-icon.icon-settings-wrap { background: var(--surface-2); color: var(--text-secondary); }

.page-head-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------------- veri sayfalari ortak duzeni ---------------- */
.page-head {
  padding: 128px 0 30px;
  border-bottom: 1px solid var(--border);
}
.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.page-head h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.page-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}
.weather-theme .eyebrow,
.weather-theme h1 { color: var(--text-primary); }

main.container {
  padding-top: 34px;
  padding-bottom: 40px;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 32px;
}
.stat-tile {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.75, 0.3, 1),
    box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-tile-icon {
  position: absolute;
  top: 15px;
  right: 16px;
  color: var(--text-muted);
  opacity: 0.9;
}
.stat-tile-icon .ic { width: 18px; height: 18px; }
.weather-body .stat-tile-icon { color: var(--c-weather); }
.quake-body .stat-tile-icon { color: var(--c-quake); }
.fire-body .stat-tile-icon { color: var(--c-fire); }
.stat-tiles.in-view .stat-tile {
  opacity: 1;
  transform: translateY(0);
}
.stat-tiles.in-view .stat-tile:nth-child(1) { transition-delay: 0.03s; }
.stat-tiles.in-view .stat-tile:nth-child(2) { transition-delay: 0.12s; }
.stat-tiles.in-view .stat-tile:nth-child(3) { transition-delay: 0.21s; }
.stat-tiles.in-view .stat-tile:nth-child(4) { transition-delay: 0.3s; }
.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px var(--stat-accent, rgba(0, 0, 0, 0.35));
  border-color: var(--stat-accent, var(--border-strong));
}
/* sayfa temasina gore kategori vurgusu */
.weather-body .stat-tile { --stat-accent: var(--c-weather); }
.quake-body .stat-tile { --stat-accent: var(--c-quake); }
.fire-body .stat-tile { --stat-accent: var(--c-fire); }

.stat-tile .stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.stat-tile .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.value-flash {
  animation: value-flash-pop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes value-flash-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); color: var(--stat-accent, var(--accent)); }
  100% { transform: scale(1); }
}
.stat-tile .stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.map-section { margin: 36px 0; }
.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.map-head h3 { margin: 0; font-size: 1.15rem; }
.map-box {
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--surface-2);
}
.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.legend-bar {
  flex: 1;
  max-width: 260px;
  height: 8px;
  border-radius: 999px;
}
.temp-bar { background: linear-gradient(90deg, #3b7fb8, #7bb0d6, #9aa3a8, #d29a63, #c04f45); }
.quake-bar { background: linear-gradient(90deg, #34d399, #22c55e, #f5a524, #f97316, #ef4444); }
.fire-bar { background: linear-gradient(90deg, #e0c184, #d59a5c, #c04f45, #8a2f27); }

.two-col {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: start;
}

/* -------- il siralamasi bar grafigi (deprem + yangin ortak) -------- */
.province-section { margin: 36px 0; }
.province-bars {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 8px 0;
}
.pb-row {
  display: grid;
  grid-template-columns: 130px 1fr 42px;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
}
.pb-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-track { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.pb-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c-quake-2), var(--c-quake)); }
.pb-fill-fire { background: linear-gradient(90deg, var(--c-fire-2), var(--c-fire)); }
.pb-count { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; text-align: right; color: var(--text-secondary); }
@media (max-width: 620px) {
  .pb-row { grid-template-columns: 92px 1fr 32px; gap: 10px; padding: 8px 12px; }
}

.side-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 620px;
}
.side-panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-panel-head h3 { margin: 0; font-size: 1.02rem; }
.side-list {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease;
  border: 1px solid transparent;
}
.side-row:hover { background: var(--surface-2); }
.side-row.flash { animation: row-flash 1.6s ease; }
@keyframes row-flash {
  0% { background: var(--accent-weak); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  100% { background: transparent; border-color: transparent; }
}
.side-row .mag-chip {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
  color: #0b0b0b;
}
.side-row .row-main { flex: 1; min-width: 0; }
.side-row .row-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-row .row-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ================= sayfa basligi ambiyans sahnesi (paylasilan) =================
   Herhangi bir page-head'e .has-scene class'i + icine bir .page-scene eklenerek
   kullanilir; renkler sayfa govde class'ina (.quake-body vb.) gore degisir. */
.page-head.has-scene {
  position: relative;
  overflow: hidden;
}
.page-head.has-scene > .container {
  position: relative;
  z-index: 1;
}
.page-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--bg) 100%);
}
.ps-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(150, 165, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 165, 190, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 15%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 78% 15%, #000 0%, transparent 68%);
}
/* dekoratif renkli kureler kaldirildi — kurumsal, sakin gorunum icin sadece ince izgara */
.ps-orb { display: none; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.filter-bar:hover {
  border-color: var(--border-strong);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.filter-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

/* ---- select: animasyonlu ok + focus/hover ---- */
select.filter-select,
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding: 7px 30px 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 15px;
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
select.filter-select:hover,
.field select:hover {
  border-color: var(--border-strong);
}
select.filter-select:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-weather);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
select.filter-select:active {
  transform: scale(0.98);
}

/* ---- range slider: dolgulu, animasyonlu topuz ---- */
.filter-group input[type="range"],
.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--range-accent, var(--c-quake)) 0%,
    var(--range-accent, var(--c-quake)) var(--fill, 0%),
    var(--bg-alt) var(--fill, 0%),
    var(--bg-alt) 100%
  );
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.filter-group input[type="range"]::-webkit-slider-thumb,
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--range-accent, var(--c-quake));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.filter-group input[type="range"]:hover::-webkit-slider-thumb,
.field input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}
.filter-group input[type="range"]:active::-webkit-slider-thumb,
.field input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow: 0 0 0 7px var(--accent-weak);
}
.filter-group input[type="range"]::-moz-range-track,
.field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
}
.filter-group input[type="range"]::-moz-range-progress,
.field input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--range-accent, var(--c-quake));
}
.filter-group input[type="range"]::-moz-range-thumb,
.field input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--range-accent, var(--c-quake));
  cursor: pointer;
  transition: transform 0.15s ease;
}
.filter-group input[type="range"]:hover::-moz-range-thumb,
.field input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.15);
}

.weather-body .filter-group input[type="range"] { --range-accent: var(--c-weather); }
.quake-body .filter-group input[type="range"] { --range-accent: var(--c-quake); }
.fire-body .filter-group input[type="range"] { --range-accent: var(--c-fire); }

/* ---- toggle-switch gorunumlu checkbox ---- */
.filter-group input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  outline: none;
  flex: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.filter-group input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-group input[type="checkbox"]:checked {
  background: var(--range-accent, var(--c-quake));
  border-color: var(--range-accent, var(--c-quake));
}
.filter-group input[type="checkbox"]:checked::before {
  transform: translateX(14px);
}

.setup-panel {
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  margin: 30px 0;
}
.setup-panel h3 { margin: 12px 0 10px; }
.setup-panel p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 18px; }
.setup-panel ol { text-align: left; max-width: 480px; margin: 0 auto 22px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.setup-panel code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---------------- form elemanlari (login, ayarlar, vb. ortak) ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.field input,
.field select {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-color: var(--surface-2);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:disabled { opacity: 0.6; cursor: not-allowed; }
.field input:focus,
.field select:focus {
  border-color: var(--c-weather);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.field input.invalid {
  border-color: var(--status-critical);
}
.field-error {
  min-height: 14px;
  color: #ff8a8a;
  font-size: 0.76rem;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.checkbox { display: flex; align-items: center; gap: 7px; }
.link-muted { color: var(--text-muted); text-decoration: underline; }
.link-muted:hover { color: var(--text-secondary); }

.btn-block { width: 100%; padding: 13px; font-size: 0.96rem; }

/* ---------------- leaflet marker/popup ortak gorunum ---------------- */
.leaflet-container { background: var(--surface-2) !important; font-family: var(--font); }

/* Esri "Dark Gray" zeminini koyu temaya yaklastirmak icin karart; harita
   (hero gibi) her iki temada da koyu kalir. Etiket katmani ayri filtreyle
   okunur tutulur. */
:root:not([data-theme="light"]) .hava-basemap { filter: brightness(0.6) saturate(0.8) contrast(1.06); }
:root:not([data-theme="light"]) .hava-basemap-ref { filter: brightness(1.05) contrast(1.15); opacity: 0.9; }
.leaflet-popup-content-wrapper {
  background: var(--surface-2);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}
.leaflet-popup-tip { background: var(--surface-2); }
.leaflet-popup-content { margin: 10px 12px; font-size: 0.84rem; }
.map-pop strong { font-size: 0.92rem; }
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 82%, transparent) !important;
  color: var(--text-muted) !important;
}
.leaflet-control-attribution a { color: var(--text-secondary) !important; }
.leaflet-control-zoom a {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

/* -------- il sicaklik isaretcisi: pin + arkasinda sicakliga gore renklenen "hale" -------- */
.tm-wrap { position: relative; width: 1px; height: 1px; }
.tm-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  filter: blur(7px);
  opacity: 0.32;
  animation: tm-aura-breathe 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tm-aura-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.26; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.46; }
}
.tm-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #08111a;
  font-weight: 800;
  font-size: 0.72rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
}
.tm-dot.tm-active {
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35), 0 3px 10px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 10;
}
@media (prefers-reduced-motion: reduce) {
  .tm-aura { animation: none; }
}

.pulse-marker { position: relative; width: 1px; height: 1px; }
.pulse-marker .dot {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255,255,255,0.65);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.pulse-marker .ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0.55; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
}

/* ---- harita isaretcisi giris animasyonu ----
   Not: leaflet konumlandirmayi kendi transform'uyla yapar; bu yuzden animasyonu
   pozisyonlanan diveın KENDISINE degil, onun icindeki iceriğe uyguluyoruz
   (.pulse-marker/.fire-mark zaten ic kapsayici; .tm-dot da oyle). */
@keyframes marker-pop-in {
  0% { transform: scale(0); opacity: 0; }
  65% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.fire-mark,
.tm-dot {
  animation: marker-pop-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pulse-marker.pop {
  animation: marker-pop-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .fire-mark, .tm-dot, .pulse-marker.pop { animation: none; }
}

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .side-panel { max-height: 420px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 12px 16px;
  }
  .hamburger {
    display: flex;
  }
  .nav-user .btn span.label {
    display: none;
  }
  .nav-account {
    gap: 4px;
    padding: 4px;
  }
  .user-chip .label,
  .logout-btn .label {
    display: none;
  }
  .user-chip {
    padding: 3px;
  }
  .logout-btn {
    padding: 8px;
  }
}

/* =========================================================================
   Mobil düzen (telefonlar)
   ========================================================================= */
@media (max-width: 860px) {
  /* acilir menu: temaya uyan zemin, kapaliyken odak/ekran okuyucudan gizli */
  .nav-links {
    top: 100%;
    background: var(--bg);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.45);
  }
  .nav-links.open {
    visibility: visible;
    transition: transform 0.3s ease;
  }
  .nav-links a { font-size: 1rem; }
}

@media (max-width: 560px) {
  /* ust cubuk: logo solda, hesap dugmeleri + menu sagda; hicbiri ezilmesin */
  .site-nav { padding: 10px 14px; gap: 8px; }
  .site-nav > * { flex-shrink: 0; }
  /* yer daralirsa kisalan tek sey logo yazisi olsun; menu dugmesi hep ekranda kalsin */
  .site-nav > .brand { flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
  .brand { gap: 8px; font-size: 1rem; }
  /* misafir kotasi: "Misafir" yazisi olmadan, noktalar + Giris */
  .guest-quota { padding: 4px 4px 4px 10px; gap: 6px; }
  .guest-quota .gq-text { display: none; }
  .brand-logo { width: 26px; height: 26px; }
  .nav-account { order: 2; margin-left: auto; }
  .hamburger {
    order: 3;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  /* ayarlar'a profil yuvarlagindan da gidiliyor; dar ekranda yer acmak icin gizle */
  .nav-actions .icon-settings { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .logout-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  /* sayfa basligi: sabit ust cubugun altinda daha az bosluk */
  .page-head { padding: 92px 0 22px; }
  .page-head-title { gap: 12px; align-items: flex-start; }
  .page-icon { width: 44px; height: 44px; flex-shrink: 0; }
  .container { padding: 0 16px; }

  /* istatistik kartlari: 2 sutunda sigsin */
  .stat-tiles { gap: 10px; margin: 18px 0 24px; }
  .stat-tile { padding: 14px 14px 14px; }
  .stat-tile .stat-label { font-size: 0.68rem; padding-right: 22px; }
  .stat-tile .stat-value { font-size: 1.3rem; }
  .stat-tile .stat-sub { display: block; }
  .stat-tile-icon { top: 12px; right: 12px; }
}

@media (max-width: 620px) {
  /* ACIL dugmesi: sadece ikon, icerigin ustune binmesin */
  .emergency-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .emergency-fab svg { width: 24px; height: 24px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* dokunmatik ekranlar: iOS'ta odaklaninca sayfa yakinlasmasin (16px alti yazi),
   kaydiricilar parmakla kolay tutulsun */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .filter-group input[type="range"]::-webkit-slider-thumb,
  .field input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
}

/* haritalar telefonda ekrani tamamen kaplamasin: altinda/ustunde sayfayi kaydirmak icin yer kalsin */
@media (max-width: 560px) {
  .map-box { height: min(56vh, 420px) !important; }
}
@media (max-width: 370px) {
  /* cok dar telefonlar: logo yazisini kaldir, sadece logo */
  .brand { font-size: 0; gap: 0; }
  .brand-logo { width: 30px; height: 30px; }
}

/* ---- ana ekrana eklenen uygulama (iOS tam ekran): saat/centik alani ---- */
:root { --safe-top: env(safe-area-inset-top, 0px); }
body { padding-top: var(--safe-top); }
.site-nav { padding-top: calc(14px + var(--safe-top)); }
@media (max-width: 560px) {
  .site-nav { padding-top: calc(10px + var(--safe-top)); }
}

/* ---- "ana ekrana ekle" karti ---- */
.install-card {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 450;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s ease;
}
.install-card.show { transform: translateY(0); opacity: 1; }
.install-card-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.install-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.install-card-text strong { font-size: 0.92rem; }
.install-card-text span { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.install-card-text b { color: var(--text-primary); font-weight: 700; }
.install-inline-ic { vertical-align: -0.2em; color: var(--accent); }
.install-card-btn { flex-shrink: 0; }
.install-card-close {
  flex-shrink: 0;
  align-self: flex-start;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
}
/* kart acikken ACIL dugmesi kartin ustune ciksin */
.has-install-card .emergency-fab { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
/* telefonda misafirin "Giris Yap" dugmesi tek bir oka donmesin: yazi kalsin, ok gitsin */
@media (max-width: 860px) {
  .nav-user .btn span.label { display: inline; }
  .nav-user .btn .ic { display: none; }
  .nav-user .btn { padding: 8px 14px; }
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* formlar: alanlar arasi bosluk tum sayfalarda ayni (login.css yuklenmeyen sayfalar dahil) */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
/* kaydirici .field icinde genel input dolgusunu almasin (cizgisi kayboluyordu) */
.field input[type="range"] { padding: 0; border: none; width: 100%; margin: 10px 0 4px; --range-accent: var(--accent); }
.admin-login-card { padding: 30px 24px 26px; }
/* kusuratli yakinlikta harita karolari arasinda 1px bosluk kaliyordu (acik temada beyaz cizgi) */
.leaflet-container img.leaflet-tile { mix-blend-mode: normal; width: 257px !important; height: 257px !important; }

/* =========================================================================
   PANEL GORUNUMU (tahmin yazilimi tarzi): koyu zemin, ince kenarli kartlar,
   renkli buyuk degerler, tonlu grafik kartlari
   ========================================================================= */
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--c-weather) 6%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text-primary) 2.5%, transparent), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---- sayfa basligi: kutulu baslik karti + parlayan ikon ---- */
.page-head { border-bottom: none; padding-bottom: 6px; }
.page-head-row {
  position: relative;
  z-index: 1;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--page-tone, var(--accent)) 10%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.weather-body { --page-tone: var(--c-weather); }
.quake-body { --page-tone: var(--c-quake); }
.fire-body { --page-tone: var(--c-fire); }
.page-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--page-tone, var(--accent)) 35%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--page-tone, var(--accent)) 26%, var(--surface-2)), var(--surface-2)) !important;
  box-shadow: 0 0 28px -6px color-mix(in srgb, var(--page-tone, var(--accent)) 55%, transparent);
}
.page-head h1 {
  background: linear-gradient(90deg, var(--page-tone, var(--accent)), color-mix(in srgb, var(--page-tone, var(--accent)) 55%, var(--text-primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head .eyebrow { color: var(--text-secondary); letter-spacing: 0.12em; }

/* ---- istatistik kartlari: solda etiket + buyuk renkli deger, sagda renkli ikon ---- */
.stat-tile {
  --tone: var(--tone-cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 16px 64px 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.stat-tiles .stat-tile:nth-child(4n + 1) { --tone: var(--tone-red); }
.stat-tiles .stat-tile:nth-child(4n + 2) { --tone: var(--tone-cyan); }
.stat-tiles .stat-tile:nth-child(4n + 3) { --tone: var(--tone-green); }
.stat-tiles .stat-tile:nth-child(4n + 4) { --tone: var(--tone-blue); }
.stat-tile .stat-label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; padding-right: 0; }
.stat-tile .stat-value { color: var(--tone); font-size: 1.65rem; font-weight: 700; }
.stat-tile .stat-sub { color: var(--text-muted); }
.stat-tile-icon,
.weather-body .stat-tile-icon,
.quake-body .stat-tile-icon,
.fire-body .stat-tile-icon {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--tone);
  opacity: 1;
}
.stat-tile-icon .ic { width: 30px; height: 30px; }
.stat-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--tone) 60%, transparent); }

/* ---- rozetler: ince cerceveli, tonlu ---- */
.badge {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
}

/* ---- sekme cubugu ---- */
.dash-tabs, .wx-tabs { background: color-mix(in srgb, var(--surface) 85%, transparent); border-color: var(--border); }
.wx-tab.active { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 18px -8px var(--accent); }

/* ---- grafik kutusu ---- */
.hc-box { position: relative; width: 100%; }

/* ---- birincil dugme: camgobegi, koyu yazi ---- */
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--c-weather))); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-2); }

/* ---- baslik vurgulari ---- */
.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--c-weather));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 560px) {
  .stat-tile { padding: 14px 42px 14px 14px; min-height: 84px; }
  .stat-tile-icon { top: 16px; right: 12px; transform: none; }
  .stat-tile-icon .ic { width: 22px; height: 22px; }
  .stat-tile .stat-value { font-size: 1.3rem; }
  .page-head-row { padding: 16px; }
  .page-icon { width: 48px; height: 48px; border-radius: 14px; }
}

/* yalnizca ekran okuyucular icin (gorsel olarak gizli) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn-danger {
  border: 1px solid color-mix(in srgb, var(--status-critical) 55%, transparent);
  background: color-mix(in srgb, var(--status-critical) 16%, transparent);
  color: var(--text-primary);
}
.btn-danger:hover { background: var(--status-critical); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* acilir listelerde ok isareti icin sagda yer */
.field select { padding-right: 38px; background-position: right 14px center; }

/* =========================================================================
   KURUMSAL / TEKNOLOJIK DOKUNUSLAR
   ========================================================================= */
/* ince nokta izgarasi: ustte belirgin, asagi dogru kaybolur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text-primary) 10%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  opacity: 0.55;
}

/* bolum basligi ikon rozeti */
h2 .h-icon, h3 .h-icon {
  --chip: var(--page-tone, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 9px;
  color: var(--chip);
  background: color-mix(in srgb, var(--chip) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip) 30%, transparent);
  box-shadow: 0 0 18px -8px var(--chip);
  vertical-align: middle;
}
h3:has(> .h-icon) { display: flex; align-items: center; }
.wx-chartcard h3 .h-icon { --chip: var(--tone); }
.wx-models h3 .h-icon { --chip: var(--tone-violet); }

/* kartlar: koseden yayilan isikli ince cerceve */
.card, .dash-card, .stat-tile, .page-head-row { position: relative; }
.card::after, .dash-card::after, .stat-tile::after, .page-head-row::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--page-tone, var(--accent)) 55%, transparent) 0%,
    transparent 32%,
    transparent 70%,
    color-mix(in srgb, var(--page-tone, var(--accent)) 22%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.card:hover::after, .dash-card:hover::after, .stat-tile:hover::after { opacity: 1; }
.stat-tile::after { background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 55%, transparent), transparent 40%); }
/* acik temada cerceve daha sakin */
:root[data-theme="light"] .card::after, :root[data-theme="light"] .dash-card::after, :root[data-theme="light"] .stat-tile::after { opacity: 0.45; }

/* menu ikonlari */
.nav-links a { display: inline-flex; align-items: center; gap: 7px; }
/* her kategori kendi renginde: ikon renkli kutuda (kartlardaki gibi), secili olan o renge boyanir */
.nav-links a { --nc: var(--accent); }
.nav-links a[data-page="hava.html"] { --nc: var(--c-weather); }
.nav-links a[data-page="deprem.html"] { --nc: var(--c-quake); }
.nav-links a[data-page="yangin.html"] { --nc: var(--c-fire); }
.nav-links a[data-page="uygulama.html"] { --nc: var(--tone-green, #34d399); }
.nav-links .nav-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--nc) 26%, transparent); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease; }
.nav-links a:hover .nav-ic { transform: translateY(-1px) rotate(-6deg); }
.nav-links a.active .nav-ic { background: color-mix(in srgb, var(--nc) 24%, transparent); }
.nav-links a:hover, .nav-links a.active { color: color-mix(in srgb, var(--nc) 70%, var(--text-primary)); background: color-mix(in srgb, var(--nc) 11%, transparent); }
.nav-links a::after { background: var(--nc); }

/* ---- kurumsal alt bilgi ---- */
.site-footer { padding: 46px 0 22px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-alt) 70%, transparent); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { margin: 12px 0 0; max-width: 360px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.9rem; width: fit-content; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col a .ic { color: var(--text-muted); }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.sys-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-weight: 600; }
.sys-status .sys-detail { font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.sys-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.sys-status.ok .sys-dot { background: var(--status-good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 60%, transparent); animation: sys-pulse 2.4s ease-out infinite; }
.sys-status.warn .sys-dot { background: var(--status-warning); }
@keyframes sys-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .sys-status.ok .sys-dot { animation: none; } }
@media (max-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } .sys-status .sys-detail { display: none; } }

/* harita katmanlari (z-index 400+) sabit ust menunun ustune cikmasin */
.leaflet-container { isolation: isolate; z-index: 0; }
.wx-tabs, .dash-tabs { top: calc(var(--nav-h, calc(62px + var(--safe-top))) + 6px) !important; }
/* baslik karti alttaki kartlarla ayni hizada dursun (telefonda kenara yapismasin) */
.page-head-row.container { max-width: calc(min(1240px, 100%) - 48px); }
@media (max-width: 560px) { .page-head-row.container { max-width: calc(100% - 32px); } }

/* ===== tasarim dili: buyuk, kalin basliklar (Cabinet Grotesk), govde ve kart basliklari Satoshi ===== */
h1, h2 { font-weight: 800; letter-spacing: -0.03em; }
h3, h4 { font-family: var(--font); letter-spacing: -0.01em; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

/* ---- acil durum araclari: siren, isik sinyali, guvendeyim ---- */
.emergency-panel { max-height: calc(100dvh - 40px); overflow-y: auto; }
.em-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.em-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.em-tool:active { transform: scale(0.97); }
.em-tool b { font-size: 0.95rem; margin-top: 4px; }
.em-tool small { font-size: 0.72rem; opacity: 0.7; text-align: center; }
.em-tool.on { background: #f59e0b; border-color: #f59e0b; color: #1b1203; animation: em-tool-blink 0.8s ease-in-out infinite; }
@keyframes em-tool-blink { 50% { filter: brightness(1.25); } }
.em-safe { background: rgba(22, 163, 74, 0.2); border-color: rgba(22, 163, 74, 0.5); }
.em-safe:hover { background: rgba(22, 163, 74, 0.32); }
.em-flash { position: fixed; inset: 0; z-index: 2000; background: #000; display: grid; place-items: end center; cursor: pointer; }
.em-flash.lit { background: #fff; }
.em-flash-ui { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); padding: 12px 20px; border-radius: 16px; background: rgba(120, 120, 120, 0.55); color: #fff; font-size: 0.9rem; }
@media (max-width: 560px) { .em-tool { padding: 14px 4px; } .em-tool small { display: none; } }

/* =========================================================================
   ORTAK ARAYUZ PARCALARI (ana sayfa + paneller): etiket, ikon kutusu,
   buyukluk karesi, deprem karti, yuzen kart, halkalar, istatistik satiri
   ========================================================================= */
.pill-label {
  --pc: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill-label::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--pc);
  box-shadow: 0 0 10px var(--pc);
}
.pill-label:has(.ic)::before { display: none; }
.pill-danger { --pc: var(--status-critical); }
.text-danger { color: var(--status-critical); }

.ic-box {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 26%, transparent);
}

.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-lg.btn-primary { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost.btn-lg { background: var(--surface); }

.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2, .lp-head-row h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 16px 0 12px; line-height: 1.08; }
.section-head p, .lp-head-row p { color: var(--text-secondary); font-size: 1.04rem; margin: 0; }

.skeleton-row {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: lp-shimmer 1.4s ease-in-out infinite;
}
@keyframes lp-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-good);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-good) 60%, transparent);
  animation: lp-live 2s ease-out infinite;
}
@keyframes lp-live { to { box-shadow: 0 0 0 8px transparent; } }

/* buyukluk karesi (liste ve telefon onizlemesi) */
.mag-sq {
  --m: #d7a066;
  display: grid;
  place-items: center;
  align-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--m) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--m) 45%, transparent);
  color: color-mix(in srgb, var(--m) 70%, var(--text-primary));
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}
.mag-sq small { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.75; margin-top: 3px; }
.mag-sq.m-strong { background: var(--m); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px var(--m); }


.lp-stats { display: flex; gap: 0; margin: 42px 0 0; padding: 0; }
.lp-stats > div { padding: 0 26px; border-left: 1px solid var(--border-strong); }
.lp-stats > div:first-child { padding-left: 0; border-left: none; }
.lp-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.lp-stats dd { margin: 2px 0 0; color: var(--text-muted); font-size: 0.86rem; }

.lp-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lp-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  animation: lp-ring 6s ease-out infinite;
}
.lp-rings span:nth-child(1) { width: 300px; height: 300px; }
.lp-rings span:nth-child(2) { width: 440px; height: 440px; animation-delay: 2s; }
.lp-rings span:nth-child(3) { width: 580px; height: 580px; animation-delay: 4s; }
@keyframes lp-ring { 0% { opacity: 0; transform: scale(0.85); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }

.lp-float {
  position: absolute;
  z-index: 3;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  animation: lp-float 6s ease-in-out infinite;
}
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.lp-q {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 13px 18px 13px 13px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.lp-q:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.lp-q-main { flex: 1; min-width: 0; }
.lp-q-main b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-q-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--text-muted); font-size: 0.82rem; }
.lp-q-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lp-q-time { text-align: right; flex-shrink: 0; }
.lp-q-time b { display: block; font-family: var(--font-mono); font-size: 0.98rem; }
.lp-q-time span { font-size: 0.76rem; color: var(--text-muted); }
@media (max-width: 560px) {
  .lp-stats > div { padding: 0 14px; }
  .lp-stats dt { font-size: 1.35rem; }
  .lp-stats dd { font-size: 0.76rem; }
  .lp-q { gap: 12px; padding: 11px 14px 11px 11px; }
  .lp-q .mag-sq { width: 48px; height: 48px; font-size: 1.05rem; }
  .lp-q-meta .lp-q-coord { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-rings span, .lp-float, .live-dot, .skeleton-row { animation: none; }
}

/* =========================================================================
   PANEL SAYFASI GIRISI (.ph): ana sayfa diliyle — etiket, buyuk baslik,
   canli istatistikler; sagda halkalar + canli veri karti + yuzen kartlar
   ========================================================================= */
.ph { position: relative; padding: calc(112px + var(--safe-top, 0px)) 0 30px; border-bottom: none; overflow: hidden; }
.ph::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto 35%;
  height: 640px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--page-tone, var(--accent)) 14%, transparent), transparent);
  pointer-events: none;
}
.ph-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.ph-grid.no-visual { grid-template-columns: 1fr; }
.ph .pill-label { --pc: var(--page-tone, var(--accent)); }
.ph h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.04; margin: 18px 0 14px; letter-spacing: -0.035em; }
.ph .accent-text { background: linear-gradient(90deg, var(--page-tone, var(--accent)), color-mix(in srgb, var(--page-tone, var(--accent)) 55%, var(--text-primary))); -webkit-background-clip: text; background-clip: text; }
.ph-lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; max-width: 620px; margin: 0 0 22px; }
.ph-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ph .lp-stats { margin-top: 26px; }
.ph .lp-stats dt { color: var(--text-primary); }
.ph-updated { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.ph-visual { position: relative; display: grid; place-items: center; min-height: 400px; padding: 58px 0; }
.ph-visual .lp-rings span { border-color: color-mix(in srgb, var(--page-tone, var(--accent)) 24%, transparent); }
.ph-visual .lp-rings span:nth-child(1) { width: 240px; height: 240px; }
.ph-visual .lp-rings span:nth-child(2) { width: 350px; height: 350px; }
.ph-visual .lp-rings span:nth-child(3) { width: 460px; height: 460px; }
.ph-card {
  position: relative;
  z-index: 2;
  width: min(370px, 100%);
  padding: 20px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
}
.ph-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ph-card-head span { display: inline-flex; align-items: center; gap: 7px; }
.ph-card-main { display: flex; align-items: center; gap: 14px; }
.ph-card-main .mag-sq { width: 72px; height: 72px; border-radius: 18px; font-size: 1.7rem; }
.ph-card-main b { display: block; font-size: 1.12rem; line-height: 1.3; }
.ph-card-main > div > span { display: block; color: var(--text-muted); font-size: 0.84rem; margin-top: 4px; }
.ph-card-big { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--page-tone, var(--accent)); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ph-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--text-primary) 5%, transparent); border: 1px solid var(--border); font-size: 0.78rem; color: var(--text-secondary); }
.ph-chips .ic { color: var(--page-tone, var(--accent)); }
.ph-seismo { display: block; width: 100%; height: 54px; margin-top: 14px; }
.ph-seismo polyline { fill: none; stroke: var(--page-tone, var(--accent)); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: ph-draw 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--page-tone, var(--accent)) 60%, transparent)); }
@keyframes ph-draw { 0% { stroke-dashoffset: 900; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }
.ph-visual .lp-float { padding: 11px 15px; font-size: 0.82rem; display: flex; align-items: center; gap: 10px; }
.ph-visual .lp-float b { display: block; font-size: 0.98rem; }
.ph-visual .lp-float small { display: block; color: var(--text-muted); font-size: 0.74rem; }
.ph-visual .lp-float .ic-box { width: 36px; height: 36px; border-radius: 11px; }
.ph-f1 { top: 0; left: -14px; }
.ph-f2 { bottom: 0; right: -14px; animation-delay: 2s !important; }
.ph-f3 { bottom: 40px; left: 0; animation-delay: 3.5s !important; }
.ph-icon-big { position: relative; z-index: 2; width: 190px; height: 190px; animation: lp-float 7s ease-in-out infinite; }
.ph-icon-big .wi, .ph-icon-big img, .ph-icon-big svg { width: 100%; height: 100%; }
@media (max-width: 980px) {
  .ph-grid { grid-template-columns: 1fr; gap: 22px; }
  .ph-visual { min-height: 0; display: block; }
  .ph-visual .lp-rings, .ph-visual .lp-float, .ph-icon-big { display: none; }
  .ph-card { width: 100%; }
  .ph-visual.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .ph { padding-top: calc(96px + var(--safe-top, 0px)); }
  .ph-lead { font-size: 0.98rem; }
  .ph .lp-stats { margin-top: 20px; }
}

/* kaydirinca beliren kartlar (main.js otomatik isaretler) */
.reveal-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal-up.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-up { opacity: 1; transform: none; transition: none; } }
.ph-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ph-bar { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 10px; font-size: 0.82rem; }
.ph-bar span { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bar i { height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--page-tone, var(--accent)), color-mix(in srgb, var(--page-tone, var(--accent)) 50%, #fff)); width: var(--w); transition: width 0.6s ease; }
.ph-bar b { font-family: var(--font-mono); font-size: 0.82rem; }

/* panel girisinde baslik duz renk, yalnizca vurgulu kelime renkli */
.page-head.ph h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text-primary); font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin: 18px 0 14px; }
.page-head.ph h1 .accent-text { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- panel listeleri: deprem ve yangin kartlari (ana sayfadaki gibi) ---- */
.side-list-full { border: none !important; background: none !important; padding: 0 !important; max-height: none !important; overflow: visible !important; }
.side-list .lp-q { cursor: pointer; animation: side-row-in 0.4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes side-row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.dash-card .side-list { padding: 0; gap: 8px; }
.dash-card .lp-q { background: color-mix(in srgb, var(--text-primary) 3%, transparent); min-height: 72px; }
.lp-q.flash { animation: row-flash 1.6s ease; }
.lp-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-list .lp-q:hover { border-color: var(--border-strong); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .side-list .lp-q { animation: none; } }
/* panel girisindeki ana dugme sayfanin kendi renginde */
.ph .btn-primary { background: linear-gradient(135deg, var(--page-tone, var(--accent)), color-mix(in srgb, var(--page-tone, var(--accent)) 75%, #fff)); color: #0d0f13; box-shadow: 0 10px 28px -12px var(--page-tone, var(--accent)); }
.ph .btn-primary:hover { filter: brightness(1.08); }
.settings-tabs, .dash-tabs, .wx-tabs { scroll-margin-top: calc(var(--nav-h, 70px) + 12px); }

/* =========================================================================
   IL SINIRLI HARITA (hava, deprem, yangin ortak)
   ========================================================================= */
.wx-mapwrap { position: relative; }
.wx-mapwrap .map-box { height: clamp(420px, 62vh, 640px) !important; margin-top: 4px; background: var(--bg-alt); }
.prov { transition: fill-opacity 0.2s ease, stroke-width 0.2s ease; cursor: pointer; }
.prov:hover { fill-opacity: 0.88; stroke: #fff; stroke-width: 2; }
:root[data-theme="light"] .prov { stroke: #ffffff; }
:root[data-theme="light"] .prov:hover { stroke: #0b1626; }

/* il etiketleri */
.pl-anchor { width: 0 !important; height: 0 !important; }
.pl {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(13, 15, 19, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.pl b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.74rem; font-weight: 700; }
.pl span { display: none; font-size: 0.68rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.show-names .pl span, .pl-active span { display: inline; }
.pl-active { background: #fff; color: #08111a; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 6px 16px -4px rgba(0, 0, 0, 0.6); z-index: 2; }
.pl-active span { color: #3c4656; }
.pl-hidden .pl { opacity: 0; transform: translate(-50%, -50%) scale(0.8); pointer-events: none; }
.leaflet-marker-icon.pl-anchor:hover .pl { transform: translate(-50%, -50%) scale(1.08); }

/* il ipucu */
.leaflet-tooltip.prov-tip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.6);
  font-family: var(--font);
}
.leaflet-tooltip.prov-tip::before { display: none; }
.prov-tip strong { font-size: 0.86rem; }
.prov-tip .pt-main { font-size: 0.8rem; color: var(--text-secondary); }
.prov-tip .pt-sub { font-size: 0.74rem; color: var(--text-muted); }

/* harita uzerindeki ozet ve olcek (cam paneller) */
.wx-map-stats, .wx-map-legend {
  position: absolute;
  z-index: 5;
  left: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}
.wx-map-stats:empty { display: none; }
.wx-map-stats { top: 14px; display: flex; flex-direction: column; gap: 2px; padding: 8px; min-width: 190px; }
.ms-item { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; text-align: left; }
button.ms-item { cursor: pointer; }
button.ms-item:hover { background: var(--surface-hover); }
.ms-item span { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ms-item b { font-size: 0.9rem; }
.ms-item i { font-style: normal; font-family: var(--font-mono); margin-left: 4px; }
.ms-live { display: flex; align-items: center; gap: 7px; padding: 6px 8px 2px; margin-top: 2px; border-top: 1px solid var(--border); font-size: 0.72rem; color: var(--text-muted); }
.ms-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--status-good); box-shadow: 0 0 8px var(--status-good); }
.wx-map-legend { bottom: 26px; padding: 9px 14px 8px; width: min(340px, calc(100% - 28px)); }
.ml-title { display: block; font-size: 0.74rem; font-weight: 700; margin-bottom: 7px; }
.ml-title small { font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.ml-bar { height: 8px; border-radius: 999px; }
.ml-ticks { position: relative; height: 16px; margin-top: 3px; }
.ml-ticks span { position: absolute; transform: translateX(-50%); font-size: 0.66rem; font-family: var(--font-mono); color: var(--text-muted); }
.ml-ticks span:first-child { transform: none; }
.ml-ticks span:last-child { transform: translateX(-100%); }
.wx-map-hint { margin: 10px 2px 0; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 700px) {
  .wx-mapwrap .map-box { height: 300px !important; }
  .wx-map-stats, .wx-map-legend { position: static; width: auto; margin-top: 10px; }
  .wx-map-stats { flex-direction: row; flex-wrap: wrap; }
  .wx-map-stats .ms-item { flex: 1 1 40%; }
  .ms-live { flex-basis: 100%; }
}

/* yangin noktalari: ana sayfadaki gibi parlak */
.pts-fire svg { filter: drop-shadow(0 0 3px rgba(255, 110, 40, 0.95)) drop-shadow(0 0 8px rgba(255, 80, 20, 0.55)); }
.pts-quake svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.pts-quake .pulse-marker .ring { animation: pulse-ring 2.2s ease-out infinite; }
/* genel "svg { max-width: 100% }" kurali, ozel harita katmanlarinin svg'sini 0 genislige indiriyordu */
.leaflet-container .leaflet-pane svg { max-width: none !important; max-height: none !important; }
.ms-new { background: color-mix(in srgb, var(--page-tone, var(--accent)) 12%, transparent); }
.em-app { display: block; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); color: #cffafe; font-size: 0.84rem; line-height: 1.5; text-decoration: none; }
.em-app b { color: #fff; }
.q-upd { font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 7px; margin-left: 6px; border-radius: 6px; vertical-align: 2px; color: var(--status-warning); background: color-mix(in srgb, var(--status-warning) 14%, transparent); border: 1px solid color-mix(in srgb, var(--status-warning) 35%, transparent); }
.src-note { margin: 18px 0 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
/* resmî yetki bildirimi */
.legal-note { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0 0; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); }
.legal-note b { display: block; font-size: 0.98rem; margin-bottom: 6px; }
.legal-note p { margin: 0; font-size: 0.84rem; line-height: 1.65; color: var(--text-secondary); }
.legal-note a, .src-note a { color: var(--accent); }
.legal-note .ic-box { width: 38px; height: 38px; border-radius: 11px; }
@media (max-width: 560px) { .legal-note { flex-direction: column; } }
.legal-note p b { display: inline; font-size: inherit; margin: 0; }
/* harita: fay hatlari ac/kapa */
.fault-toggle { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text-secondary); font: 600 0.78rem var(--font); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
.fault-toggle i { width: 16px; height: 2px; border-radius: 2px; background: var(--text-muted); }
.fault-toggle.on { color: var(--text-primary); border-color: rgba(255, 90, 78, 0.5); }
.fault-toggle.on i { background: #ff5a4e; box-shadow: 0 0 6px #ff5a4e; }
.fault-name span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 2px 7px; border-radius: 6px; background: rgba(13, 15, 19, 0.72); color: #ff8a80; font: 700 0.7rem var(--font); pointer-events: none; }
.fault-pop .map-pop i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin: 0 6px 3px 0; vertical-align: middle; }
.fault-pop .map-pop small { color: var(--text-muted); }
/* ---- en son deprem: haritada dalga halkalari + etiket, listede "SON" rozeti ---- */
.latest-mark { position: absolute; left: 0; top: 0; pointer-events: none; }
.latest-mark i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 12px var(--lc); animation: latest-wave 2.4s ease-out infinite; }
.latest-mark i:nth-child(2) { animation-delay: 0.8s; }
.latest-mark i:nth-child(3) { animation-delay: 1.6s; }
.latest-mark b { position: absolute; left: 0; top: -40px; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: #fff; color: #0d0f13; font: 800 0.68rem var(--font); letter-spacing: 0.06em; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7); }
.latest-mark b::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes latest-wave { from { transform: scale(0.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.q-new { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; vertical-align: 2px; color: #fff; background: var(--status-critical); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: q-new-pulse 1.8s ease-out infinite; }
.q-new i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@keyframes q-new-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.lp-q.q-latest { border-color: color-mix(in srgb, var(--status-critical) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--status-critical) 9%, transparent), transparent 60%), var(--surface); }
@media (prefers-reduced-motion: reduce) { .latest-mark i, .q-new { animation: none; } }
