:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030711;
  --surface: rgba(11, 18, 31, 0.82);
  --surface-soft: rgba(17, 27, 45, 0.72);
  --surface-raised: rgba(20, 31, 51, 0.86);
  --line: rgba(162, 177, 204, 0.14);
  --line-strong: rgba(177, 198, 232, 0.24);
  --text: #f4f7fb;
  --text-soft: #c5cedd;
  --muted: #7d8ca2;
  --blue: #5b8cff;
  --blue-soft: #9db9ff;
  --cyan: #53d7ff;
  --green: #39d99d;
  --yellow: #f7c948;
  --red: #ff647c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(74, 111, 180, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(57, 217, 157, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, #08101d 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.04), transparent 22%, rgba(255, 255, 255, 0.018) 54%, transparent),
    radial-gradient(circle at 50% 100%, rgba(91, 140, 255, 0.08), transparent 30rem);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.018));
  opacity: 0.65;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.public-page {
  color: var(--text);
}

.maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(247, 201, 72, 0.28);
  background: rgba(40, 31, 9, 0.94);
  color: #ffdfa2;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.banner-pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(247, 201, 72, 0.46);
  animation: pulseRing 1.8s infinite;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  width: min(100% - 32px, var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(162, 177, 204, 0.12);
  border-radius: 10px;
  background: rgba(4, 9, 18, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(157, 185, 255, 0.34);
  border-radius: 9px;
  background: #0d1626;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 30px rgba(91, 140, 255, 0.14);
  flex: 0 0 auto;
}

.brand-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-fallback {
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.12;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 680;
}

.header-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.header-nav svg,
.hero-actions svg,
.button svg,
.button i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-link {
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-button {
  border: 1px solid rgba(157, 185, 255, 0.28);
  background: rgba(91, 140, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-button:hover,
.primary-link:hover,
.secondary-link:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 185, 255, 0.44);
}

.hero-section {
  position: relative;
  display: grid;
  width: min(100% - 32px, var(--max));
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 106px) 0 34px;
}

.hero-section::before {
  position: absolute;
  top: 70px;
  left: clamp(120px, 22vw, 260px);
  width: 180px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(157, 185, 255, 0.42), transparent);
}

.hero-copy {
  max-width: 710px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(162, 177, 204, 0.16);
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.66);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 760;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  color: #fbfdff;
  font-size: clamp(46px, 8vw, 88px);
  font-weight: 820;
  line-height: 0.93;
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.primary-link,
.button-primary {
  border-color: rgba(91, 140, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(104, 151, 255, 0.94), rgba(61, 103, 216, 0.9)),
    #3f6fe6;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 42px rgba(72, 113, 225, 0.24);
}

.secondary-link,
.button-secondary {
  border-color: rgba(162, 177, 204, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.status-summary {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(162, 177, 204, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(10, 17, 30, 0.78);
  box-shadow: var(--shadow);
}

.status-summary::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
}

.summary-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status-summary p {
  position: relative;
  margin: 24px 0 22px;
  color: var(--text);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.28;
}

.summary-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(162, 177, 204, 0.1);
  border-radius: 9px;
  background: rgba(162, 177, 204, 0.1);
}

.summary-grid div {
  padding: 14px;
  background: rgba(4, 9, 18, 0.56);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
}

.status-light,
.status-dot,
.status-orb,
.choice-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-light {
  width: 8px;
  height: 8px;
}

.status-orb,
.choice-dot {
  width: 18px;
  height: 18px;
}

.status-orb::after,
.status-light::after {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  content: "";
  opacity: 0.46;
  animation: pulseRing 1.8s infinite;
}

.status-operational,
.status-operational::after {
  background: var(--green);
  box-shadow: 0 0 22px rgba(57, 217, 157, 0.36);
}

.status-updating,
.status-updating::after {
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(247, 201, 72, 0.34);
}

.status-risk,
.status-risk::after {
  background: var(--red);
  box-shadow: 0 0 22px rgba(255, 100, 124, 0.34);
}

.status-upcoming,
.status-upcoming::after {
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(83, 215, 255, 0.32);
}

.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(162, 177, 204, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.status-badge-operational {
  border-color: rgba(57, 217, 157, 0.2);
  background: rgba(57, 217, 157, 0.08);
  color: #a9f5d7;
}

.status-badge-updating {
  border-color: rgba(247, 201, 72, 0.22);
  background: rgba(247, 201, 72, 0.08);
  color: #ffe7a0;
}

.status-badge-risk {
  border-color: rgba(255, 100, 124, 0.24);
  background: rgba(255, 100, 124, 0.08);
  color: #ffb7c4;
}

.status-badge-upcoming {
  border-color: rgba(83, 215, 255, 0.22);
  background: rgba(83, 215, 255, 0.08);
  color: #b8efff;
}

.section-block {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0;
  scroll-margin-top: 110px;
}

.product-status-section {
  padding-top: 34px;
}

.section-heading {
  display: grid;
  gap: 11px;
  margin-bottom: 20px;
}

.section-heading-row {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: end;
  gap: 26px;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 790;
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.component-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.12fr) repeat(2, minmax(240px, 0.94fr));
  gap: 16px;
  align-items: stretch;
}

.component-card,
.metric-card,
.announcement-item {
  position: relative;
  border: 1px solid rgba(162, 177, 204, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(11, 18, 31, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.component-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.component-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.component-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 185, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(14, 24, 42, 0.86);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
}

.component-card-featured {
  background:
    linear-gradient(145deg, rgba(91, 140, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(12, 20, 35, 0.86);
}

.component-topline,
.component-title-row,
.component-card footer,
.announcement-meta,
.product-card-actions,
.admin-row header,
.history-row header,
.topbar-actions,
.mini-status {
  display: flex;
  align-items: center;
}

.component-topline {
  justify-content: space-between;
  gap: 14px;
}

.service-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(157, 185, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(91, 140, 255, 0.18), rgba(57, 217, 157, 0.06)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.component-meta,
.metric-label,
.metric-note,
.announcement-date,
.mini-copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.component-title-row {
  justify-content: space-between;
  gap: 14px;
}

.component-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 780;
  line-height: 1.1;
}

.component-card p {
  max-width: 31rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.component-card footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(162, 177, 204, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 166px;
  padding: 18px;
  overflow: hidden;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 185, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    rgba(14, 24, 42, 0.84);
}

.metric-card::after {
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(162, 177, 204, 0.08);
  border-radius: 999px;
  content: "";
}

.metric-card strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 820;
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-card-large {
  background:
    linear-gradient(145deg, rgba(57, 217, 157, 0.12), transparent 44%),
    rgba(11, 18, 31, 0.76);
}

.announcement-list {
  display: grid;
  gap: 13px;
}

.announcement-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.announcement-item:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 185, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
    rgba(14, 24, 42, 0.84);
}

.announcement-marker {
  width: 10px;
  height: 10px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  box-shadow: 0 0 0 5px rgba(91, 140, 255, 0.08);
}

.announcement-content {
  display: grid;
  gap: 8px;
}

.announcement-meta {
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 780;
}

.announcement-item p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(91, 140, 255, 0.18);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.08);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 780;
  text-transform: capitalize;
}

.tag-security {
  border-color: rgba(57, 217, 157, 0.18);
  background: rgba(57, 217, 157, 0.08);
  color: #a9f5d7;
}

.tag-maintenance {
  border-color: rgba(247, 201, 72, 0.2);
  background: rgba(247, 201, 72, 0.08);
  color: #ffe7a0;
}

.tag-incident {
  border-color: rgba(255, 100, 124, 0.22);
  background: rgba(255, 100, 124, 0.08);
  color: #ffb7c4;
}

.site-footer {
  display: flex;
  width: min(100% - 32px, var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(162, 177, 204, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.admin-panel,
.auth-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.admin-panel::before,
.auth-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 38%);
  opacity: 0.65;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 440px);
}

.auth-card,
.admin-panel {
  padding: 24px;
}

.auth-brand {
  margin-bottom: 34px;
}

.auth-heading h1 {
  margin: 12px 0 20px;
  font-size: 38px;
}

.auth-form,
.announcement-form,
.product-create-form,
.product-edit-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 720;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(162, 177, 204, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 9, 18, 0.72);
  color: var(--text);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(157, 185, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.16);
}

.form-alert,
.toast {
  min-height: 24px;
  margin: 16px 0 0;
  color: #ffb7c4;
  font-weight: 760;
}

.form-alert.success,
.toast.success {
  color: #a9f5d7;
}

.admin-page {
  min-height: 100vh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(4, 9, 18, 0.74);
  backdrop-filter: blur(18px);
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--text-soft);
  transition:
    background 150ms ease,
    color 150ms ease;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  margin: 10px 0 0;
  font-size: 40px;
}

.topbar-actions {
  gap: 12px;
}

.mini-status {
  min-height: 44px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 780;
}

.mini-status .status-orb,
.product-card-status .status-orb,
.history-row .status-orb {
  width: 10px;
  height: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.lower-grid {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 10px 0 0;
  font-size: 24px;
}

.status-choice-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.status-choice-grid legend {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-weight: 780;
}

.status-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.status-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-choice:has(input:checked) {
  border-color: rgba(157, 185, 255, 0.62);
  background: rgba(91, 140, 255, 0.12);
}

.status-choice strong,
.switch-row strong {
  display: block;
  color: var(--text);
}

.status-choice small,
.switch-row small {
  color: var(--muted);
}

.choice-dot {
  width: 14px;
  height: 14px;
}

.switch-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 32px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.switch input:checked + span {
  border-color: rgba(247, 201, 72, 0.52);
  background: rgba(247, 201, 72, 0.16);
}

.switch input:checked + span::after {
  transform: translateX(22px);
  background: var(--yellow);
}

.preview-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.preview-status .status-orb {
  width: 34px;
  height: 34px;
}

.preview-status p {
  margin: 5px 0 0;
  color: var(--text-soft);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.preview-metrics div {
  padding: 12px 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.product-admin-panel {
  margin-top: 18px;
}

.product-form-row {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.admin-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product-editor-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.product-edit-form textarea {
  min-height: 92px;
}

.product-card-actions {
  justify-content: space-between;
  gap: 12px;
}

.product-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 780;
}

.admin-list,
.admin-history {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-row,
.history-row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row header,
.history-row header {
  justify-content: space-between;
  gap: 12px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-row h3,
.history-row h3 {
  margin: 0;
  font-size: 16px;
}

.history-row h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-row p,
.history-row p {
  margin: 0;
  color: var(--text-soft);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 100, 124, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 100, 124, 0.08);
  color: #ffb7c4;
}

.icon-button svg,
.icon-button i {
  width: 17px;
  height: 17px;
}

.empty-state {
  padding: 18px 0;
  color: var(--muted);
}

.component-grid .empty-state,
.admin-products .empty-state {
  grid-column: 1 / -1;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.82);
    opacity: 0.58;
  }

  70%,
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

@media (max-width: 1040px) {
  .hero-section,
  .section-heading-row,
  .admin-layout,
  .admin-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .status-summary {
    max-width: 620px;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .site-footer,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
  }

  .header-nav a {
    flex: 1 1 auto;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .component-grid,
  .metric-grid,
  .preview-metrics,
  .form-row {
    grid-template-columns: 1fr;
  }

  .component-title-row,
  .component-card footer,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .announcement-item {
    padding: 16px;
  }

  .section-block {
    padding: 34px 0;
  }

  .auth-card,
  .admin-panel {
    padding: 18px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-topbar h1 {
    font-size: 32px;
  }

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

@media (max-width: 440px) {
  .brand-copy span {
    display: none;
  }

  .header-nav {
    font-size: 13px;
  }

  .nav-link span,
  .nav-button span {
    display: none;
  }
}
