:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(13, 17, 25, 0.94);
  --panel-soft: rgba(21, 27, 39, 0.76);
  --line: rgba(146, 161, 184, 0.2);
  --text: #eef2f8;
  --muted: #9aa5b6;
  --blue: #7da7c7;
  --purple: #5f6576;
  --pink: #ff8ca8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(125, 167, 199, 0.12), transparent 32%),
    radial-gradient(circle at 84% 16%, rgba(95, 101, 118, 0.16), transparent 30%),
    linear-gradient(135deg, #05070b 0%, #0c111a 52%, #080b12 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

body::after {
  background: url("letter_S-w.png") center / min(72vw, 760px) no-repeat;
  opacity: 0.026;
  transform: rotate(-9deg) scale(1.12);
}

.maintenance-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.maintenance-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.56);
}

.content-panel {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-bottom: 2.25rem;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6.5vw, 5.8rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
}

.maintenance-copy {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  line-height: 1.7;
}

.status-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin-top: 2rem;
  border: 1px solid rgba(146, 161, 184, 0.28);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  background: rgba(6, 8, 13, 0.72);
  color: #d9e2ed;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status-panel span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #9aa5b6;
  box-shadow: none;
}

.feedback-card,
.alert-command-box {
  display: grid;
  gap: 0.55rem;
  width: min(520px, 100%);
  margin-top: 1.25rem;
}

.feedback-card label,
.alert-command-box label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feedback-card textarea,
.alert-command-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(139, 153, 255, 0.22);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  outline: none;
  background: rgba(8, 12, 24, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.45;
}

.feedback-card textarea:focus,
.alert-command-box textarea:focus {
  border-color: rgba(102, 199, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(102, 199, 255, 0.1);
}

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

.feedback-actions button {
  border: 1px solid rgba(146, 161, 184, 0.32);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  background: rgba(30, 38, 52, 0.92);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 160ms ease, opacity 160ms ease;
}

.feedback-actions button:hover {
  transform: translateY(-1px);
}

.feedback-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.feedback-actions span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.feedback-actions span.is-success {
  color: #9ff0bd;
}

.feedback-actions span.is-error {
  color: #ffb7c5;
}

.visual-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1rem;
  min-height: 560px;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(10, 14, 21, 0.28), rgba(5, 7, 12, 0.68)),
    rgba(7, 10, 16, 0.72);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(146, 161, 184, 0.18);
  border-radius: 12px;
  transform: skewX(-8deg);
}

.empty-site-window {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(146, 161, 184, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.window-bar {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid rgba(146, 161, 184, 0.18);
  padding: 0 1rem;
  background: rgba(17, 22, 32, 0.94);
}

.window-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(146, 161, 184, 0.34);
}

.empty-site-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  padding: 2.5rem 2rem;
}

.empty-site-body img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin-bottom: 2rem;
  opacity: 0.16;
  filter: grayscale(1);
}

.empty-line {
  width: 70%;
  height: 0.7rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: rgba(146, 161, 184, 0.14);
}

.empty-line-wide {
  width: 86%;
}

.empty-line-short {
  width: 48%;
}

.empty-state-note {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(146, 161, 184, 0.24);
  border-radius: 8px;
  padding: 1.1rem;
  background: var(--panel-soft);
  text-align: left;
}

.empty-state-note span {
  display: block;
  color: #8f9baa;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state-note strong {
  display: block;
  margin-top: 0.35rem;
  color: #e7edf5;
  font-size: 1rem;
}

.site-alert-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 1.5rem;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 44, 86, 0.28), transparent 34%),
    linear-gradient(135deg, #270007 0%, #110006 45%, #050003 100%);
  color: #ffffff;
}

.site-alert-screen.is-active {
  display: grid;
}

.site-alert-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
}

.site-alert-panel {
  position: relative;
  width: min(860px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 119, 145, 0.58);
  border-radius: 10px;
  padding: clamp(2rem, 6vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(255, 70, 104, 0.16), transparent 34%),
    rgba(28, 0, 8, 0.88);
  box-shadow: 0 30px 120px rgba(255, 0, 56, 0.22), 0 30px 90px rgba(0, 0, 0, 0.62);
  text-align: center;
}

.site-alert-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff2c56, #ff8ca8, #ff2c56);
}

.site-alert-panel img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 22px rgba(255, 80, 110, 0.34));
}

.site-alert-label {
  margin: 0 0 0.75rem;
  color: #ffb7c5;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-alert-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
}

.site-alert-panel p:not(.site-alert-label) {
  width: min(620px, 100%);
  margin: 1.35rem auto 0;
  color: #ffd8df;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 750;
  line-height: 1.7;
}

.site-alert-panel strong {
  display: inline-flex;
  margin-top: 1.8rem;
  border: 1px solid rgba(255, 184, 198, 0.36);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: #ffffff;
  background: rgba(255, 44, 86, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alert-command-box {
  margin: 1.35rem auto 0;
  text-align: left;
}

.alert-command-box textarea {
  border-color: rgba(255, 184, 198, 0.24);
  background: rgba(10, 0, 4, 0.64);
  color: #ffffff;
}

.alert-command-box textarea:focus {
  border-color: rgba(255, 140, 168, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 44, 86, 0.13);
}

.alert-command-box .feedback-actions {
  justify-content: center;
}

.alert-command-box .feedback-actions button {
  border-color: rgba(255, 184, 198, 0.42);
  background: linear-gradient(135deg, #ff2c56, #9f102a);
}

@media (max-width: 820px) {
  .maintenance-card {
    grid-template-columns: 1fr;
  }

  .content-panel,
  .visual-panel {
    min-height: auto;
  }

  .visual-panel {
    padding-top: 0;
  }

  .empty-site-window {
    width: min(320px, 100%);
  }
}

@media (max-width: 560px) {
  .maintenance-shell {
    align-items: start;
  }

  .content-panel {
    padding: 1.6rem;
  }

  .brand-row {
    margin-bottom: 1.5rem;
  }

  .status-panel {
    width: 100%;
    justify-content: center;
  }

  .empty-site-body img {
    width: 92px;
    height: 92px;
  }
}
