:root {
  color-scheme: dark;

  /* Brand — Peak Amol orange */
  --brand: #ff6900;
  --brand-deep: #e05a00;
  --brand-ink: #ffffff;
  --brand-soft: rgba(255, 105, 0, 0.14);
  --brand-ring: rgba(255, 105, 0, 0.22);

  /* Semantic bases (overridden per theme for contrast) */
  --live: #ef4444;
  --live-soft: rgba(239, 68, 68, 0.16);
  --warn: #eab308;
  --warn-soft: rgba(234, 179, 8, 0.16);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
}

/* —— Night: deep navy calm + luminous status —— */
body.theme-dark {
  color-scheme: dark;
  --bg: #0a101c;
  --surface: #141c2b;
  --surface-2: #1a2336;
  --border: #2b3650;
  --ink: #eef2f8;
  --ink-soft: #a7b3c7;
  --ink-faint: #7a879c;
  --navy: #0e1626;
  --navy-deep: #0a101c;
  --header-bg: linear-gradient(120deg, #121a2c 0%, #0c1422 100%);
  --header-border: rgba(255, 255, 255, 0.08);
  --input-bg: #0e1524;
  --hero-bg:
    radial-gradient(circle at 100% 0%, rgba(255, 105, 0, 0.16), transparent 44%),
    linear-gradient(135deg, #151c2c 0%, #10182a 55%, #0e1524 100%);
  --hero-border: rgba(255, 105, 0, 0.28);
  --hero-title: #ffffff;
  --brand-title: #ffffff;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.16);
  --chip-ink: #e4eaf4;
  --chip-hover: rgba(255, 255, 255, 0.1);
  --call-ink: #ffb078;
  --call-bg: rgba(232, 114, 46, 0.14);
  --call-border: rgba(232, 114, 46, 0.35);
  --tip-bg: rgba(10, 16, 28, 0.72);
  --bubble-bg: #ffffff;
  --bubble-ink: #1a2230;
  --cal-bg: #141c2b;
  --cal-accent: #7aa0d8;
  --cal-weekday: #5b8fd4;
  --icon-muted: #8b98ad;
  --progress-track: #2a354d;
  --divider: rgba(255, 255, 255, 0.07);
  --empty-bg: rgba(255, 255, 255, 0.03);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);

  --status-live: #ff7b7b;
  --status-warn: #f5d76a;
  --status-done: #6fdb9e;
  --live: #f87171;
  --live-soft: rgba(248, 113, 113, 0.2);
  --warn: #f5d76a;
  --warn-soft: rgba(245, 215, 106, 0.18);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.16);

  --footer-bg: #0c1320;
  --footer-border: #243049;
  --footer-ink: #e8eef8;
  --footer-muted: #8f9cb0;
  --footer-faint: #6b788c;

  --net-ok-ink: #6fdb9e;
  --net-ok-bg: linear-gradient(90deg, rgba(74, 222, 128, 0.14), transparent);
  --net-alert-ink: #ff8f8f;
  --net-alert-bg: linear-gradient(90deg, rgba(248, 113, 113, 0.16), transparent);
  --net-idle-bg: var(--surface);
}

/* —— Day: cool daylight trust + deep status for WCAG —— */
body.theme-light {
  color-scheme: light;
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #e7edf5;
  --border: #c8d2e0;
  --ink: #152033;
  --ink-soft: #4a5a70;
  --ink-faint: #6b7c92;
  --navy: #1a2740;
  --navy-deep: #121c2e;
  --header-bg: linear-gradient(120deg, #1a2740 0%, #152033 100%);
  --header-border: rgba(255, 255, 255, 0.1);
  --input-bg: #f7f9fc;
  --hero-bg:
    radial-gradient(circle at 100% 0%, rgba(255, 105, 0, 0.12), transparent 46%),
    linear-gradient(135deg, #ffffff 0%, #f3f6fa 55%, #eaf0f7 100%);
  --hero-border: rgba(255, 105, 0, 0.28);
  --hero-title: #152033;
  --brand-title: #ffffff;
  --brand: #ff6900;
  --brand-deep: #e05a00;
  --brand-soft: rgba(255, 105, 0, 0.12);
  --brand-ring: rgba(255, 105, 0, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.18);
  --chip-ink: #e8edf5;
  --chip-hover: rgba(255, 255, 255, 0.14);
  --call-ink: #ffc091;
  --call-bg: rgba(232, 114, 46, 0.16);
  --call-border: rgba(232, 114, 46, 0.4);
  --tip-bg: rgba(255, 255, 255, 0.88);
  --bubble-bg: #ffffff;
  --bubble-ink: #152033;
  --cal-bg: #ffffff;
  --cal-accent: #3b6fb8;
  --cal-weekday: #2f5f9e;
  --icon-muted: #7a8ba0;
  --progress-track: #d5dde8;
  --divider: rgba(21, 32, 51, 0.08);
  --empty-bg: rgba(21, 32, 51, 0.03);
  --shadow: 0 12px 28px rgba(21, 32, 51, 0.12);

  /* Deep status hues — readable on white, still distinct */
  --status-live: #c62828;
  --status-warn: #a16207;
  --status-done: #15803d;
  --live: #dc2626;
  --live-soft: rgba(198, 40, 40, 0.1);
  --warn: #ca8a04;
  --warn-soft: rgba(161, 98, 7, 0.1);
  --ok: #16a34a;
  --ok-soft: rgba(21, 128, 61, 0.1);

  --footer-bg: #152033;
  --footer-border: #2a3a52;
  --footer-ink: #f0f4fa;
  --footer-muted: #a8b4c6;
  --footer-faint: #8492a6;

  --net-ok-ink: #15803d;
  --net-ok-bg: linear-gradient(90deg, rgba(21, 128, 61, 0.12), transparent);
  --net-alert-ink: #c62828;
  --net-alert-bg: linear-gradient(90deg, rgba(198, 40, 40, 0.12), transparent);
  --net-idle-bg: #f7f9fc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dash-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 14px 0;
}

.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.brand-t1 {
  color: var(--brand-title);
  font-size: 16px;
  font-weight: 800;
}

.brand-t2 {
  color: var(--brand);
  font-size: 12px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.back-chip,
.call-chip,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-family: inherit;
  cursor: pointer;
}

.theme-toggle:hover,
.back-chip:hover {
  background: var(--chip-hover);
}

.call-chip {
  color: var(--call-ink);
  border-color: var(--call-border);
  background: var(--call-bg);
}

.theme-toggle .theme-icon {
  font-size: 14px;
  line-height: 1;
}

.dash-app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 100px;
  flex: 1;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hero-border);
  border-radius: 18px;
  background: var(--hero-bg);
  padding: 22px 22px 20px;
  margin-bottom: 14px;
}

.hero-banner-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -70px;
  border-radius: 50%;
  background: var(--brand-soft);
  filter: blur(8px);
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--hero-title);
}

.hero-desc {
  margin: 0 0 14px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

.hero-tip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tip-bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-tip-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}

.hero-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tip-bg);
  border: 1px solid var(--border);
}

.hero-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.hero-legend-item .status-ico {
  flex-shrink: 0;
}

.hero-legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-legend-item.live {
  color: var(--status-live);
}

.hero-legend-item.live .dot {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}

.hero-legend-item.warn {
  color: var(--status-warn);
}

.hero-legend-item.warn .dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}

.hero-legend-item.done {
  color: var(--status-done);
}

.hero-legend-item.done .dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.hero-cta,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  padding: 0 14px;
}

.hero-cta {
  border: none;
  background: var(--brand);
  color: var(--brand-ink);
}

.hero-cta:hover {
  background: var(--brand-deep);
}

.hero-secondary {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-soft);
}

.hero-secondary:hover {
  color: var(--ink);
  border-color: var(--brand);
}

@media (max-width: 820px) {
  .hero-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner-actions {
    min-width: 0;
  }
}

.search-bar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.search-bar-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.dash-search-wrap {
  flex: 1;
  position: relative;
}

.dash-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--icon-muted);
  pointer-events: none;
}

.dash-search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.dash-search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-ring);
}

.dash-search-wrap input::placeholder {
  color: var(--ink-faint);
}

.dash-city-wrap {
  position: relative;
  min-width: 140px;
}

.dash-city-wrap select {
  width: 100%;
  height: 46px;
  appearance: none;
  padding: 0 14px 0 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dash-select-chevron {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.compact-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field select,
.field input,
.btn-search {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  padding: 0 12px;
}

.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--brand);
}

.btn-search {
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  font-weight: 800;
  cursor: pointer;
  /* گوشه تابلویی صنعتی */
  border-radius: 4px;
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  letter-spacing: 0.02em;
}

.btn-search:hover {
  background: var(--brand-deep);
  filter: brightness(1.04);
}

.field-action .btn-search {
  margin-top: 0;
}

.date-field-wrap {
  position: relative;
}

.progress-fill.done {
  background: var(--ok);
}

.outage-card.status-done {
  opacity: 0.88;
}

body.theme-dark .outage-card.status-done {
  opacity: 0.78;
}

.outage-card.flash-focus {
  outline: 2px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.results-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-summary .sum {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

.schedule-summary .sum.live {
  color: var(--status-live);
  border-color: var(--live);
  background: var(--live-soft);
}

.schedule-summary .sum.warn {
  color: var(--status-warn);
  border-color: var(--warn);
  background: var(--warn-soft);
}

.schedule-summary .sum.done {
  color: var(--status-done);
  border-color: var(--ok);
  background: var(--ok-soft);
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 2px 12px;
  gap: 10px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.results-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.btn-locate-text {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.outage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.outage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.outage-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.status-ico {
  flex-shrink: 0;
  display: block;
}

.status-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-badge.live {
  color: var(--status-live);
}

.status-badge.live .dot {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}

.status-badge.warn {
  color: var(--status-warn);
}

.status-badge.warn .dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}

.status-badge.done {
  color: var(--status-done);
}

.status-badge.done .dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.fav-btn {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}

.fav-btn.active {
  color: var(--brand);
}

.share-btn {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
}

.share-btn:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.card-day {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: start;
}

.card-address {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.85;
  min-height: 0;
  text-align: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.time-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.time-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}

.time-box .label {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.time-box .value {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--progress-track);
  overflow: hidden;
  width: 54px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
}

.progress-fill.live {
  background: var(--live);
}

.progress-fill.warn {
  background: var(--warn);
}

.countdown-block {
  text-align: center;
  padding-top: 2px;
}

.countdown-main {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.countdown-sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
  color: var(--ink-faint);
  font-size: 12px;
}

.card-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 16px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--empty-bg);
  margin: 0;
}

.empty-state.hidden {
  display: none;
}

.outage-grid[hidden],
.results-toolbar[hidden],
.timeline-panel[hidden] {
  display: none !important;
}

.btn-locate-idle {
  display: block;
  margin: 14px auto 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-locate-idle.hidden {
  display: none;
}

.scroll-top {
  position: fixed;
  left: 16px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, color 0.15s ease;
  display: grid;
  place-items: center;
  padding: 0;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--brand);
  color: var(--brand-ink, #fff);
  border-color: transparent;
  transform: translateY(-2px);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.scroll-top-icon {
  display: block;
}

.quiz-reveal-btn {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: var(--brand-ink);
  border-radius: 4px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
}

/* Jalali calendar (dark) */
.jalali-calendar {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 6000;
  width: 280px;
  background: var(--cal-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 10px 14px;
  user-select: none;
}

.jalali-calendar.hidden {
  display: none;
}

.jalali-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.jalali-cal-title {
  font-size: 14px;
  font-weight: 700;
}

.jalali-cal-nav {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--cal-accent);
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
}

.jalali-cal-nav:hover {
  background: var(--brand-soft);
}

.jalali-cal-weekdays,
.jalali-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.jalali-cal-weekdays span {
  font-size: 11px;
  font-weight: 600;
  color: var(--cal-weekday);
  padding: 4px 0;
}

.jalali-cal-days {
  gap: 2px;
}

.jalali-cal-day {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jalali-cal-day:hover:not(.empty):not(.selected) {
  background: var(--brand-soft);
}

.jalali-cal-day.empty {
  visibility: hidden;
}

.jalali-cal-day.selected {
  background: var(--cal-accent);
  color: #fff;
  font-weight: 700;
}

.jalali-cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px var(--cal-accent);
}

@media (max-width: 1100px) {
  .outage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .outage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .search-bar-row {
    flex-direction: column;
  }

  .dash-city-wrap {
    min-width: 0;
  }

  .dash-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-top {
    left: 12px;
    bottom: 18px;
  }
}

/* —— Professional sections —— */
.pro-section {
  margin: 36px 0 0;
  scroll-margin-top: 88px;
}

.pro-head {
  margin-bottom: 16px;
}

.pro-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.pro-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.pro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
}

/* Card reading guide */
.card-guide-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}

.card-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-guide-kicker {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
}

body.theme-dark .card-guide-kicker {
  color: var(--brand);
}

.card-guide-title {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.card-guide-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.card-guide-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.card-guide-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.card-guide-body {
  margin-top: 14px;
}

.card-guide-body.is-collapsed {
  display: none;
}

.card-guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.2fr;
  gap: 14px;
  align-items: start;
}

.guide-mini-card {
  background: var(--input-bg);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.guide-pin,
.guide-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.guide-mini-day {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-mini-addr {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.guide-mini-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.guide-mini-times strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.card-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-guide-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card-guide-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.card-guide-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.card-guide-list .tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
}

.card-guide-list .tag.live {
  color: var(--status-live);
}

.card-guide-list .tag.warn {
  color: var(--status-warn);
}

.card-guide-list .tag.done {
  color: var(--status-done);
}

.card-guide-foot {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .card-guide-layout {
    grid-template-columns: 1fr;
  }

  .card-guide-head {
    flex-direction: column;
  }
}

/* Quiz of the week */
.quiz-box {
  background:
    radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 48%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.quiz-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
}

body.theme-dark .quiz-kicker {
  color: var(--brand);
}

.quiz-week {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
}

.quiz-question {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.7;
  color: var(--ink);
}

.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quiz-next-main {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-next-main:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.quiz-reveal-btn:hover {
  filter: brightness(1.05);
}

.quiz-reveal-btn:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

.quiz-answer {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  color: var(--status-done);
}

.quiz-answer.hidden {
  display: none;
}

.quiz-answer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--ink);
}

.quiz-box-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

.quiz-hint {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.power-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(240, 160, 32, 0.06), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.power-panel::before,
.power-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--brand);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}

.power-panel::before {
  top: 10px;
  right: 10px;
  border-width: 2px 2px 0 0;
}

.power-panel::after {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 2px 2px;
}

.power-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.power-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.power-bolt {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: var(--brand-ink);
  box-shadow: 0 6px 14px var(--brand-ring);
}

.power-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.power-panel-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.power-panel-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  border: 1px solid rgba(255, 105, 0, 0.35);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.power-meters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.power-meter {
  /* Semantic accents follow site psychology tokens */
  --meter-accent: var(--ink-faint);
  --meter-soft: var(--empty-bg);
  --meter-digit: var(--ink);
  --meter-label: var(--ink-soft);
  position: relative;
  background:
    linear-gradient(180deg, var(--meter-soft), transparent 52%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 6px,
      color-mix(in srgb, var(--border) 35%, transparent) 6px,
      color-mix(in srgb, var(--border) 35%, transparent) 7px
    ),
    var(--surface);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 148px;
  border: 0;
  border-radius: 0;
}

.meter-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.meter-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--meter-accent);
  box-shadow: 0 0 0 3px var(--meter-soft);
  flex-shrink: 0;
}

.meter-code {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--meter-label);
  opacity: 0.9;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
}

/* Miniature breaker switch — decorative status lever */
.meter-switch {
  margin-inline-start: auto;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.meter-switch-bay {
  position: relative;
  width: 18px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, #000), var(--input-bg));
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.meter-switch-bay::before,
.meter-switch-bay::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 5px;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--meter-accent) 55%, var(--border));
  transform: translateX(-50%);
  opacity: 0.7;
}

.meter-switch-bay::before {
  top: 3px;
}

.meter-switch-bay::after {
  bottom: 3px;
}

.meter-switch-lever {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 12px;
  margin: -6px 0 0 -3.5px;
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--meter-accent) 75%, #fff),
      var(--meter-accent)
    );
  border: 1px solid color-mix(in srgb, var(--meter-accent) 60%, #000);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform-origin: center center;
  transform: rotate(0deg);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* Default poses by cell type */
.power-meter.live .meter-switch-lever {
  transform: rotate(-38deg); /* up = شبکه بدون خاموشی فعال */
}

.power-meter.live.is-alerting .meter-switch-lever {
  transform: rotate(38deg); /* down = قطع فعال */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 8px var(--live-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.power-meter.warn .meter-switch-lever {
  transform: rotate(0deg); /* mid = در صف */
}

.power-meter.warn.has-activity .meter-switch-lever {
  transform: rotate(18deg);
}

.power-meter.done .meter-switch-lever {
  transform: rotate(-38deg); /* up = وصل */
}

.power-meter.done:not(.has-activity) .meter-switch-lever {
  opacity: 0.55;
  transform: rotate(-12deg);
}

.power-meter.total .meter-switch-lever {
  transform: rotate(-28deg);
}

.power-meter.total:not(.has-activity) .meter-switch-lever {
  opacity: 0.5;
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .meter-switch-lever {
    transition: none;
  }
}

/* LCD = navy calm instrument well (site night/navy tokens) */
.meter-lcd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--navy) 88%, #000), var(--navy-deep));
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.power-meter .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, 'Vazirmatn', monospace;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--meter-digit);
  text-shadow: 0 0 14px color-mix(in srgb, var(--meter-digit) 40%, transparent);
}

.power-meter .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--meter-label);
}

.meter-unit {
  margin-top: 0;
  font-size: 0.7rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.meter-bar {
  margin-top: auto;
  height: 4px;
  border-radius: 999px;
  background: var(--progress-track);
  overflow: hidden;
}

.meter-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--meter-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--meter-accent) 45%, transparent);
  transition: width 0.45s ease;
}

/* LIVE — urgency / active outage (panic only when alerting) */
.power-meter.live {
  --meter-accent: var(--live);
  --meter-soft: var(--live-soft);
  --meter-digit: var(--live);
  --meter-label: var(--status-live);
}

.power-meter.live .meter-led {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}

.power-meter.live.is-alerting {
  background:
    linear-gradient(180deg, var(--live-soft), transparent 55%),
    var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 45%, transparent);
  animation: meter-alert-glow 1.6s ease-in-out infinite;
}

.power-meter.live.is-alerting .meter-led {
  animation: led-alert 0.9s ease-in-out infinite;
}

.power-meter.live.is-alerting .stat-value {
  color: var(--status-live);
  animation: value-alert 1.6s ease-in-out infinite;
}

.power-meter.live.is-alerting .meter-lcd {
  border-color: color-mix(in srgb, var(--live) 45%, transparent);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 16px var(--live-soft);
}

.power-panel.has-live-alert .power-panel-badge {
  color: #fff;
  background: var(--live);
  border-color: var(--live);
  animation: badge-blink 1.2s ease-in-out infinite;
}

@keyframes led-alert {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px var(--live-soft), 0 0 8px var(--live);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 8px var(--live-soft), 0 0 16px var(--live);
    opacity: 0.85;
  }
}

@keyframes meter-alert-glow {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 30%, transparent);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--live) 55%, transparent),
      inset 0 0 20px var(--live-soft);
  }
}

@keyframes value-alert {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes badge-blink {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .power-meter.live.is-alerting,
  .power-meter.live.is-alerting .meter-led,
  .power-meter.live.is-alerting .stat-value,
  .power-panel.has-live-alert .power-panel-badge {
    animation: none !important;
  }

  .meter-bar-fill {
    transition: none;
  }
}

/* QUEUE — caution / schedule (near brand amber family, without panic) */
.power-meter.warn {
  --meter-accent: var(--warn);
  --meter-soft: var(--warn-soft);
  --meter-digit: var(--warn);
  --meter-label: var(--status-warn);
}

.power-meter.warn .meter-led {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}

/* DONE — restored / trust */
.power-meter.done {
  --meter-accent: var(--ok);
  --meter-soft: var(--ok-soft);
  --meter-digit: var(--ok);
  --meter-label: var(--status-done);
}

.power-meter.done .meter-led {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

/* TOTAL — brand energy / official identity (attention without panic) */
.power-meter.total {
  --meter-accent: var(--brand);
  --meter-soft: var(--brand-soft);
  --meter-digit: var(--brand);
  --meter-label: var(--brand);
}

.power-meter.total .meter-led {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft), 0 0 10px var(--brand-ring);
}

.power-meter.total .meter-lcd {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 12px var(--brand-soft);
}

.power-panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.power-wave {
  flex: 1;
  max-width: 72px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--brand) 1.5px, transparent 2px) 0 0 / 10px 8px repeat-x;
  opacity: 0.45;
}

@media (max-width: 960px) {
  .power-meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .power-meters {
    grid-template-columns: 1fr;
  }

  .power-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.map-card-pro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.outage-map {
  width: 100%;
  height: min(62vh, 480px);
  min-height: 320px;
  background: var(--surface-2);
  cursor: grab;
  touch-action: pan-x pan-y;
}

.outage-map:active {
  cursor: grabbing;
}

.outage-map.map-wheel-on {
  box-shadow: inset 0 0 0 2px rgba(255, 105, 0, 0.35);
}

/* Leaflet zoom like Neshan */
.outage-map .leaflet-control-zoom {
  border: none !important;
  margin: 12px !important;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 12px !important;
}

.outage-map .leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

.outage-map .leaflet-control-zoom a:hover {
  background: var(--surface-2) !important;
  color: var(--brand) !important;
}

.outage-map .leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.outage-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75) !important;
  color: #445 !important;
  font-size: 10px !important;
}

body.theme-dark .outage-map .leaflet-control-attribution {
  background: rgba(15, 22, 38, 0.75) !important;
  color: #a9b4c7 !important;
}

.map-hint {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  line-height: 1.7;
}

.form-card .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.form-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-card label,
.form-card .field-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.form-card textarea {
  resize: vertical;
  min-height: 84px;
}

/* اعلان محله — بنر دوتکه شبیه پورتال (شات) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify-banner-section {
  padding-inline: 0;
}

.notify-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 105, 0, 0.18), transparent 42%),
    linear-gradient(135deg, #1a2740 0%, #152033 55%, #121c2e 100%);
  box-shadow: 0 18px 40px rgba(15, 24, 40, 0.28);
  overflow: hidden;
}

body.theme-dark .notify-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 105, 0, 0.16), transparent 42%),
    linear-gradient(135deg, #151c2c 0%, #10182a 55%, #0c1422 100%);
}

.notify-banner-copy {
  padding: 8px 10px 8px 4px;
  color: #f0f4fa;
}

.notify-banner-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.notify-banner-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.notify-banner-copy > p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(240, 244, 250, 0.78);
  max-width: 44ch;
}

.notify-portal {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notify-portal-top {
  padding: 16px 14px 16px;
  background: linear-gradient(160deg, #152033 0%, #1a2740 100%);
  color: #e8eef8;
}

.notify-portal-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.notify-portal-cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--brand-ink);
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 16px var(--brand-ring);
}

.notify-portal-cta:hover {
  filter: brightness(1.06);
}

.notify-portal-city select {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f0f4fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.notify-portal-city select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-ring);
}

.notify-portal-city select option {
  color: #152033;
  background: #fff;
}

.notify-portal-body {
  padding: 14px;
  background: #f7f9fc;
}

.notify-portal-list-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #152033;
}

.notify-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.notify-channel {
  margin: 0;
  cursor: pointer;
  min-width: 0;
}

.notify-channel input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.notify-channel-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  height: 100%;
  padding: 12px 8px;
  text-align: center;
  border-radius: 12px;
  background: #eef2f7;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.notify-channel-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.notify-channel-ico svg {
  display: block;
}

.notify-channel-ico.bale {
  color: #a16207;
  background: #fef3c7;
}

.notify-channel-ico.sms {
  color: #1d4ed8;
  background: #dbeafe;
}

.notify-channel-ico.browser {
  color: #047857;
  background: #d1fae5;
}

.notify-channel-row strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #152033;
  line-height: 1.2;
}

.notify-channel-row em {
  font-style: normal;
  font-size: 0.7rem;
  color: #6b7c92;
  line-height: 1.35;
  max-width: 12ch;
}

.notify-channel:hover .notify-channel-row {
  background: #e7edf5;
  transform: translateY(-1px);
}

.notify-channel input:focus-visible + .notify-channel-row {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.notify-channel input:checked + .notify-channel-row {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}

.notify-channel input:checked + .notify-channel-row strong {
  color: var(--brand-deep, #e05a00);
}

@media (max-width: 560px) {
  .notify-channels {
    grid-template-columns: 1fr;
  }

  .notify-channel-row {
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  .notify-channel-row em {
    max-width: none;
  }
}

.notify-portal-contact {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notify-portal-contact label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a5a70;
}

.notify-portal-contact input {
  width: 100%;
  border: 1px solid #c8d2e0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: #152033;
}

.notify-portal-contact input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.notify-hint {
  margin: 10px 0 0;
  font-size: 0.74rem;
  color: #6b7c92;
  line-height: 1.55;
}

.notify-note {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: #8492a6;
}

.notify-note.ok {
  color: #15803d;
  font-weight: 700;
}

@media (max-width: 900px) {
  .notify-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .notify-banner-copy {
    padding: 4px 2px 0;
    text-align: center;
  }

  .notify-banner-copy p {
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .notify-banner {
    border-radius: 18px;
    padding: 12px;
  }
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.form-note.ok {
  color: var(--ok);
}

/* —— گزارش مردمی: بلیط سیگنال فشرده —— */
/* غیرفعال: ساختار HTML به .report-panel منتقل شد؛ قوانین زیر خنثی می‌شوند تا layout نشکند */
.report-ticket {
  display: block;
  grid-template-columns: none;
  max-width: none;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.report-ticket-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  background: linear-gradient(180deg, var(--live), #b91c1c);
}

.report-ticket-bolt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
}

.report-ticket-body {
  padding: 14px 16px 12px;
}

.report-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--divider);
}

.report-ticket-code {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--status-live);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.report-ticket-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.report-ticket-head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.report-121 {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.report-121:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.report-ticket-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr auto;
  gap: 10px;
  align-items: end;
}

.report-ticket .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.report-ticket label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.report-ticket label span {
  font-weight: 600;
  color: var(--ink-faint);
}

.report-ticket input,
.report-ticket textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.88rem;
}

.report-ticket textarea {
  resize: none;
  min-height: 38px;
  line-height: 1.5;
}

.report-desc-field {
  grid-column: 1 / -1;
}

.report-submit {
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  height: 38px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  color: var(--brand-ink);
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 6px 14px var(--brand-ring);
  transition: filter 0.15s ease, transform 0.15s ease;
  align-self: end;
}

.report-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.report-ticket-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.report-ticket-note.ok {
  color: var(--ok);
  font-weight: 700;
}

@media (max-width: 720px) {
  .report-ticket-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .report-ticket {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .report-ticket-grid {
    grid-template-columns: 1fr;
  }

  .report-ticket-head {
    align-items: center;
  }
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--brand);
}

.guide-grid ul {
  margin: 0;
  padding-right: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-timeline-head {
  text-align: center;
  margin-bottom: 28px;
}

.faq-timeline-head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.faq-timeline-head p {
  margin: 0 auto 12px;
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-head-dash {
  display: block;
  width: 56px;
  height: 0;
  margin: 0 auto;
  border-top: 2px dashed var(--brand);
}

.faq-timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 12px;
}

.faq-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--brand);
  opacity: 0.85;
}

.faq-node {
  position: relative;
  width: calc(50% - 28px);
  margin-bottom: 22px;
}

.faq-side-a {
  margin-inline-end: auto;
  padding-inline-end: 18px;
}

.faq-side-b {
  margin-inline-start: auto;
  padding-inline-start: 18px;
}

.faq-dot {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-soft) 80%, transparent);
  z-index: 2;
}

.faq-side-a .faq-dot {
  inset-inline-end: -7px;
}

.faq-side-b .faq-dot {
  inset-inline-start: -7px;
}

.faq-node.is-open .faq-dot {
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.faq-bubble {
  position: relative;
  width: 100%;
  text-align: start;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 24, 40, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-bubble::after {
  content: '';
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}

.faq-side-a .faq-bubble::after {
  inset-inline-end: -6px;
  border-inline-start: none;
  border-block-end: none;
}

.faq-side-b .faq-bubble::after {
  inset-inline-start: -6px;
  border-inline-end: none;
  border-block-start: none;
}

.faq-bubble:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.faq-node.is-open .faq-bubble {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 22px var(--brand-ring);
}

.faq-a {
  margin-top: 8px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.faq-a.hidden {
  display: none;
}

@media (max-width: 760px) {
  .faq-timeline::before {
    left: 12px;
    transform: none;
  }

  .faq-node {
    width: 100%;
    margin-inline: 0 !important;
    padding-inline-start: 34px !important;
    padding-inline-end: 0 !important;
  }

  .faq-dot {
    inset-inline-start: 5px !important;
    inset-inline-end: auto !important;
  }

  .faq-bubble::after {
    inset-inline-start: -6px !important;
    inset-inline-end: auto !important;
    border-inline-end: none !important;
    border-block-start: none !important;
    border-inline-start: inherit !important;
    border-block-end: inherit !important;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand);
  margin-bottom: 8px;
  font-weight: 700;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer-pro {
  margin-top: 48px;
  padding: 20px 16px 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 105, 0, 0.1), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--footer-bg) 88%, #000), var(--footer-bg));
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
}

.footer-shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 14px;
  border: 1px solid var(--footer-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    color-mix(in srgb, var(--footer-bg) 92%, #000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.footer-shell::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  opacity: 0.95;
}

.footer-screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #d7deea, #6b778c 55%, #3a4558);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.footer-screw::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, rgba(20, 24, 32, 0.7) 45% 55%, transparent 58%),
    linear-gradient(45deg, transparent 42%, rgba(20, 24, 32, 0.7) 45% 55%, transparent 58%);
}

.footer-screw-tl { top: 10px; inset-inline-start: 12px; }
.footer-screw-tr { top: 10px; inset-inline-end: 12px; }
.footer-screw-bl { bottom: 10px; inset-inline-start: 12px; }
.footer-screw-br { bottom: 10px; inset-inline-end: 12px; }

.footer-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 4px 8px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--footer-border) 80%, var(--brand));
  background:
    linear-gradient(90deg, rgba(255, 105, 0, 0.08), transparent 40%),
    rgba(0, 0, 0, 0.22);
}

.footer-status-live {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-faint);
  box-shadow: 0 0 0 3px rgba(127, 140, 160, 0.18);
}

.footer-status-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-status-code {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

#footer-status-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--footer-ink);
  line-height: 1.45;
}

.footer-status-source {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  justify-self: center;
  text-align: center;
  border-bottom: 1px dashed transparent;
}

.footer-status-source:hover {
  color: var(--brand);
  border-bottom-color: color-mix(in srgb, var(--brand) 50%, transparent);
}

.footer-status-call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: var(--brand-ink);
  box-shadow: 0 8px 18px var(--brand-ring);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.footer-status-call:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.footer-call-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.footer-status-call strong {
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.footer-network-status[data-state='idle'] .footer-led,
#footer-network-status[data-state='idle'] .footer-led {
  background: var(--ink-faint);
  box-shadow: 0 0 0 3px rgba(127, 140, 160, 0.18);
}

#footer-network-status[data-state='ok'] .footer-led {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft), 0 0 10px var(--ok-soft);
}

#footer-network-status[data-state='alert'] .footer-led {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft), 0 0 12px var(--live-soft);
  animation: led-alert 0.9s ease-in-out infinite;
}

#footer-network-status[data-state='alert'] {
  border-color: color-mix(in srgb, var(--live) 45%, var(--footer-border));
  background:
    linear-gradient(90deg, var(--live-soft), transparent 45%),
    rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 22px;
  margin: 0 8px 16px;
  padding-top: 4px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--footer-border);
  flex-shrink: 0;
}

.footer-brand-tag {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 700;
}

.footer-brand-desc {
  margin: 0;
  line-height: 1.75;
  font-size: 0.88rem;
  color: var(--footer-muted);
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--footer-ink);
}

.footer-grid h3 {
  font-size: 1.05rem;
}

.footer-grid h4 {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  padding-bottom: 6px;
  border-bottom: 1px dashed color-mix(in srgb, var(--footer-border) 80%, transparent);
}

.footer-grid a {
  display: block;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-inline-start: 2px;
  transition: color 0.15s ease, padding-inline-start 0.15s ease;
}

.footer-grid a:hover {
  color: var(--brand);
  padding-inline-start: 6px;
}

.footer-bottom {
  margin: 0 8px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-faint);
}

.product-metrics {
  font-size: 0.72rem;
  color: var(--footer-faint);
  opacity: 0.9;
}

.footer-bottom strong {
  color: var(--footer-ink);
}

@media (max-width: 960px) {
  .guide-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-status-strip {
    grid-template-columns: 1fr auto;
  }

  .footer-status-source {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: start;
    order: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid,
  .form-card .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-status-strip {
    grid-template-columns: 1fr;
  }

  .footer-status-call {
    width: 100%;
  }

  .footer-brand-col {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #footer-network-status[data-state='alert'] .footer-led {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .outage-map {
    height: min(55vh, 420px);
    min-height: 280px;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .results-actions {
    justify-content: flex-start;
  }
}

/* Live network status — horizontal status banner */
.network-status {
  --net-accent: var(--brand);
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: start;
  border: 1px solid color-mix(in srgb, var(--net-accent) 26%, var(--border));
  border-radius: 16px;
  background:
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--net-accent) 14%, transparent), transparent 62%),
    var(--surface);
  color: var(--ink);
  position: sticky;
  top: 8px;
  z-index: 25;
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 10px 22px color-mix(in srgb, var(--ink) 6%, transparent);
  overflow: hidden;
  isolation: isolate;
}

.network-status[hidden] {
  display: flex !important;
}

.network-status-glow {
  position: absolute;
  inset-inline-end: -40px;
  top: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  transform: none;
  left: auto;
  background: radial-gradient(circle, color-mix(in srgb, var(--net-accent) 28%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.network-status-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--net-accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--net-accent) 28%, transparent);
  box-shadow: none;
}

.network-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--net-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--net-accent) 20%, transparent);
}

.network-status-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  flex: 1 1 220px;
  max-width: none;
}

.network-status-badge {
  display: inline-flex;
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--net-accent);
  background: color-mix(in srgb, var(--net-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--net-accent) 22%, transparent);
  white-space: nowrap;
}

.network-status-meter {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--net-accent);
  line-height: 1.2;
  white-space: nowrap;
}

.network-status-meter[hidden] {
  display: none !important;
}

.network-status-meter strong {
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: inherit;
}

#network-status-text {
  line-height: 1.45;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: 1 1 180px;
  min-width: 0;
}

.network-status-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-inline-start: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--net-accent) 35%, var(--border));
  background: color-mix(in srgb, var(--net-accent) 10%, var(--surface));
  color: var(--net-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.network-status-cta[hidden] {
  display: none !important;
}

.network-status-cta:hover {
  background: color-mix(in srgb, var(--net-accent) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--net-accent) 50%, var(--border));
  color: var(--ink);
}

.network-status.is-idle {
  --net-accent: var(--brand);
  color: var(--ink);
}

.network-status.is-idle .network-status-dot,
.network-status.is-ok .network-status-dot,
.network-status.is-idle .network-status-icon,
.network-status.is-ok .network-status-icon {
  animation: none;
}

.network-status.is-idle .network-status-dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.network-status.is-ok {
  --net-accent: var(--ok);
  color: var(--net-ok-ink);
}

.network-status.is-ok .network-status-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.network-status.is-ok #network-status-text,
.network-status.is-alert #network-status-text {
  color: inherit;
}

.network-status.is-alert {
  --net-accent: var(--live);
  color: var(--net-alert-ink);
  animation: net-alert-breathe 2.8s ease-in-out infinite;
}

.network-status.is-alert .network-status-dot {
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-soft);
  animation: pulse-live 2.4s ease-in-out infinite;
}

.network-status.is-alert .network-status-icon {
  animation: net-alert-pulse 2.6s ease-in-out infinite;
}

@keyframes pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--live-soft);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.06);
    opacity: 0.92;
  }
}

@keyframes net-alert-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes net-alert-breathe {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--live) 26%, var(--border));
    box-shadow:
      0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
      0 10px 22px color-mix(in srgb, var(--ink) 6%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--live) 42%, var(--border));
    box-shadow:
      0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
      0 12px 26px color-mix(in srgb, var(--live) 10%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-status.is-alert,
  .network-status.is-alert .network-status-dot,
  .network-status.is-alert .network-status-icon {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .network-status {
    max-width: none;
    padding: 12px 14px;
    gap: 10px 12px;
    border-radius: 14px;
  }

  .network-status-icon {
    width: 32px;
    height: 32px;
  }

  .network-status-copy {
    flex: 1 1 calc(100% - 48px);
  }

  .network-status-cta {
    margin-inline-start: 0;
    width: 100%;
  }

  #network-status-text {
    flex: 1 1 100%;
    font-size: 0.84rem;
  }
}

/* Content trust + about blocks */
.hero-coverage {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.results-trust {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
}

.results-trust[hidden] {
  display: none !important;
}

.results-trust-fresh {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}

.results-trust-fresh[data-state='error'] {
  color: var(--live);
}

.results-trust-fresh[data-state='loading'] {
  color: var(--ink-soft);
}

.results-trust-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.info-block {
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  scroll-margin-top: 96px;
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-step {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.info-step strong {
  display: block;
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.info-step p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink-soft);
}


.support-safety-extra {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

#empty-state[data-state='error'] .empty-title {
  color: var(--live);
}

@media (max-width: 820px) {
  .info-steps {
    grid-template-columns: 1fr;
  }
}



.guide-rich {
  border-radius: 18px;
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.guide-tip {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}

.guide-tip h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.guide-tip ul {
  margin: 0;
  padding-inline-start: 1.1em;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}





.faq-showcase .safety-grid-rich {
  /* list layout handled in ui-redesign */
}

@media (max-width: 900px) {
  .guide-tips {
    grid-template-columns: 1fr;
  }
}
