:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #111111;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7f7;
  --muted: #92929d;
  --green: #20c878;
  --yellow: #f6b73c;
  --red: #ef233c;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(239, 35, 60, 0.1), transparent 27%),
    var(--bg);
}

a {
  color: inherit;
}

.status-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
}

.status-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.status-brand img {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.status-topbar nav {
  display: flex;
  gap: 18px;
}

.status-topbar nav a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.status-topbar nav a:hover {
  color: #ffffff;
}

.status-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 48px;
}

.status-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.status-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(239, 35, 60, 0.4);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(239, 35, 60, 0.13);
  font-weight: 900;
  box-shadow: 0 0 35px rgba(239, 35, 60, 0.16);
}

.status-hero p {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.status-hero small {
  margin-top: 7px;
  color: #73737d;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 18px;
}

.status-summary > div {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.9);
}

.status-summary span {
  color: var(--muted);
  font-size: 0.72rem;
}

.status-summary strong {
  font-size: 0.92rem;
}

.status-summary strong.operational {
  color: #8df5bd;
}

.status-summary strong.degraded {
  color: #ffd685;
}

.status-summary strong.outage {
  color: #ff8896;
}

.status-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 17, 17, 0.92);
  overflow: hidden;
}

.status-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.status-panel header span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-panel h2 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.status-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 200, 120, 0.1);
}

.status-components {
  display: grid;
}

.status-component {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.status-component:last-child {
  border-bottom: 0;
}

.status-component-copy {
  display: grid;
  gap: 4px;
}

.status-component-copy strong {
  font-size: 0.88rem;
}

.status-component-copy small {
  color: var(--muted);
  font-size: 0.7rem;
}

.status-bars {
  display: grid;
  grid-template-columns: repeat(36, minmax(2px, 1fr));
  gap: 2px;
}

.status-bars i {
  height: 22px;
  border-radius: 2px;
  background: rgba(32, 200, 120, 0.78);
}

.status-bars i.warn {
  background: rgba(246, 183, 60, 0.86);
}

.status-bars i.down {
  background: rgba(239, 35, 60, 0.9);
}

.status-component-badge {
  min-width: 78px;
  padding: 5px 9px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.status-component-badge.ok {
  color: #9df6c7;
  background: rgba(32, 200, 120, 0.12);
}

.status-component-badge.warn {
  color: #ffe0a0;
  background: rgba(246, 183, 60, 0.12);
}

.status-component-badge.down {
  color: #ffb4be;
  background: rgba(239, 35, 60, 0.13);
}

.status-incidents {
  padding: 18px;
}

.status-incidents > p {
  margin: 0;
  color: var(--muted);
}

.status-incident {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.status-incident:last-child {
  border-bottom: 0;
}

.status-incident > i {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.status-incident.resolved > i {
  background: var(--green);
}

.status-incident strong {
  display: block;
  font-size: 0.87rem;
}

.status-incident p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.status-incident time {
  color: #777781;
  font-size: 0.7rem;
}

.status-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 4px;
  color: #71717b;
  font-size: 0.72rem;
}

.status-footer a {
  color: #ff6778;
  text-decoration: none;
}

.status-footer code {
  color: #babac2;
}

@media (max-width: 720px) {
  .status-topbar {
    padding: 0 16px;
  }

  .status-topbar nav a:not(:last-child) {
    display: none;
  }

  .status-main {
    padding-top: 48px;
  }

  .status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-component {
    grid-template-columns: 1fr auto;
  }

  .status-bars {
    grid-column: 1 / -1;
    order: 3;
  }

  .status-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .status-summary {
    grid-template-columns: 1fr;
  }

  .status-bars {
    grid-template-columns: repeat(24, minmax(2px, 1fr));
  }

  .status-bars i:nth-child(-n + 12) {
    display: none;
  }
}


/* AuthNox final — static transparent PNG brand */
img[src$="authnox-logo-512.png"] {
  display: block;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
  animation: none !important;
  transition: filter 220ms ease;
}
.brand:hover img[src$="authnox-logo-512.png"],
.brand:focus-visible img[src$="authnox-logo-512.png"],
.loader-logo:hover img[src$="authnox-logo-512.png"],
.dashboard-loader-logo:hover img[src$="authnox-logo-512.png"],
.security-brand:hover img[src$="authnox-logo-512.png"],
.customer-brand:hover img[src$="authnox-logo-512.png"] {
  transform: none !important;
  filter: drop-shadow(0 12px 26px rgba(255,48,58,.28));
}
.authnox-brand-showcase img[src$="authnox-logo-512.png"] {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
@media (prefers-reduced-motion: reduce) {
  img[src$="authnox-logo-512.png"] { transition: none !important; }
}

/* AuthNox v11 — status header wordmark. */
.status-brand .authnox-brand-wordmark{width:116px;height:auto;color:#fff}.status-brand>strong{font-size:.76rem;letter-spacing:.09em;color:var(--muted,#9ca3af);white-space:nowrap}
