:root {
  --bg: #031014;
  --panel: rgba(7, 32, 39, 0.78);
  --panel-strong: rgba(7, 47, 57, 0.92);
  --cyan: #35e7ff;
  --cyan-soft: rgba(53, 231, 255, 0.18);
  --orange: #ff9d3d;
  --orange-soft: rgba(255, 157, 61, 0.2);
  --green: #72ffad;
  --red: #ff6b62;
  --ink: #eafcff;
  --muted: #91b8bf;
  --line: rgba(94, 235, 255, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 171, 196, 0.3), transparent 34rem),
    radial-gradient(circle at 80% 4%, rgba(255, 157, 61, 0.16), transparent 30rem),
    linear-gradient(180deg, #04191f 0%, #031014 48%, #01080a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4px, 42px 42px;
  mix-blend-mode: screen;
  opacity: 0.38;
  z-index: 3;
}

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

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

#depth-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 28px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 16, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.nav,
.hero-actions,
.tabs,
.toolbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #031014;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.telemetry,
.stats-strip p,
.command-card p,
td small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.nav {
  flex-wrap: wrap;
  gap: 6px;
}

.nav a,
.nav-menu-button,
.tab {
  padding: 10px 14px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible,
.nav-menu-button:hover,
.nav-menu-button:focus-visible,
.nav .root-link,
.tab.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--cyan-soft);
  outline: none;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  cursor: pointer;
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(112, 239, 255, 0.24);
  border-radius: 14px;
  background: rgba(0, 9, 22, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 11px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.section {
  margin: 0 0 72px;
}

.hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: 34px;
  padding-bottom: 36px;
}

.hero h1,
.root-head h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 8.7rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(53, 231, 255, 0.34);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #c7eef3;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  background: rgba(3, 16, 20, 0.68);
  white-space: nowrap;
}

.btn.primary {
  border-color: rgba(255, 157, 61, 0.72);
  color: #160b02;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd08c, var(--orange));
  box-shadow: 0 0 30px rgba(255, 157, 61, 0.22);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--cyan-soft);
  outline: none;
}

.hud-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow), inset 0 0 32px rgba(53, 231, 255, 0.06);
}

.hud-panel::before,
.hud-panel::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.hud-panel::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--cyan);
  border-left: 3px solid var(--cyan);
}

.hud-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.hero-visual {
  min-height: 520px;
  padding: 12px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 496px;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.08);
}

.telemetry {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: rgba(3, 16, 20, 0.74);
  border: 1px solid var(--line);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(4, 22, 27, 0.64);
}

.stats-strip article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stats-strip article:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: var(--cyan);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-grid,
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  min-height: 250px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.product-card .mini-visual {
  height: 86px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(53, 231, 255, 0.24), rgba(255, 157, 61, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, 0.08) 12px);
  clip-path: polygon(0 0, 94% 0, 100% 28%, 100% 100%, 6% 100%, 0 72%);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price-line strong {
  color: var(--orange);
}

.custom-zone,
.lab,
.info-console {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 24px;
  align-items: start;
}

.request-form,
.admin-form,
.config-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #b9e7ee;
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(1, 9, 12, 0.64);
  padding: 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 231, 255, 0.12);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.estimator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
}

.estimate-readout {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: grid;
  place-content: center;
  min-height: 210px;
  border: 1px solid var(--line);
  background: rgba(53, 231, 255, 0.08);
  text-align: center;
}

.estimate-readout span {
  display: block;
  color: var(--orange);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
}

.estimate-readout small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input[type="range"] {
  accent-color: var(--orange);
  padding: 0;
}

.root-screen {
  padding-bottom: 50px;
}

.root-head {
  min-height: 36vh;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.root-head h1 {
  font-size: clamp(2.7rem, 7vw, 6.8rem);
}

.command-card {
  padding: 20px;
}

.command-card strong {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-bottom: 16px;
  background: var(--green);
  box-shadow: 0 0 16px currentColor;
}

.status-dot.print {
  color: var(--orange);
  background: var(--orange);
}

.status-dot.custom {
  color: var(--cyan);
  background: var(--cyan);
}

.root-tools {
  padding: 18px;
}

.tabs {
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  cursor: pointer;
  background: rgba(1, 9, 12, 0.48);
}

.toolbar {
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar input {
  flex: 1;
}

.toolbar select {
  max-width: 220px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(94, 235, 255, 0.18);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  justify-content: center;
  padding: 6px 10px;
  color: #061115;
  font-weight: 800;
  background: var(--cyan);
}

.status-pill.Devis,
.status-pill.Nouveau {
  background: #ffce73;
}

.status-pill.Impression {
  background: var(--orange);
}

.status-pill.Expédié,
.status-pill.Expedie,
.status-pill.Clos {
  background: var(--green);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  background: rgba(53, 231, 255, 0.1);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.root-entry {
  max-width: 860px;
}

.admin-form h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.4rem;
}

.public-config {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.public-config article {
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(53, 231, 255, 0.28);
  background: rgba(1, 14, 19, 0.58);
}

.public-config span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.public-config strong,
.public-config a {
  color: var(--cyan);
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.public-config p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 157, 61, 0.34);
  color: #ffe0ad;
  background: rgba(255, 157, 61, 0.08);
}

.config-panel {
  margin-top: 16px;
  border: 1px solid rgba(255, 157, 61, 0.34);
  background:
    linear-gradient(180deg, rgba(7, 55, 69, 0.72), rgba(2, 18, 24, 0.78)),
    repeating-linear-gradient(90deg, rgba(53, 231, 255, 0.04) 0 1px, transparent 1px 18px);
}

.config-panel[hidden],
.toolbar[hidden],
.table-wrap[hidden],
.root-entry[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .custom-zone,
  .lab,
  .info-console {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img {
    min-height: 336px;
  }

  .stats-strip,
  .catalog-grid,
  .command-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimator {
    grid-template-columns: 1fr;
  }

  .estimate-readout {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .root-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu-button {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .stats-strip,
  .catalog-grid,
  .command-grid,
  .public-config,
  .request-form,
  .admin-form,
  .config-panel {
    grid-template-columns: 1fr;
  }

  .stats-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .telemetry {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select {
    max-width: none;
  }
}

/* PDA-only interface pass */
body {
  background:
    linear-gradient(180deg, rgba(2, 45, 55, 0.92), rgba(0, 9, 14, 0.98)),
    repeating-linear-gradient(0deg, rgba(99, 231, 255, 0.08) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(99, 231, 255, 0.055) 0 1px, transparent 1px 38px);
}

body::before {
  content: "";
  position: fixed;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(69, 237, 255, 0.34);
  box-shadow:
    inset 0 0 0 2px rgba(255, 157, 61, 0.08),
    inset 0 0 80px rgba(53, 231, 255, 0.08);
  z-index: 2;
}

.shell {
  width: min(1440px, calc(100% - 28px));
}

.topbar {
  top: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 10px;
  border-color: rgba(53, 231, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(4, 54, 67, 0.92), rgba(2, 19, 26, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 157, 61, 0.82);
  color: #02222b;
  background:
    radial-gradient(circle at 70% 30%, #f8fdff, transparent 22%),
    linear-gradient(135deg, #55eaff 0%, #55eaff 48%, #ff9d3d 49%, #ff9d3d 100%);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.brand strong {
  color: #effcff;
  text-transform: uppercase;
}

.nav a,
.nav-menu-button,
.tab,
.btn {
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.nav a {
  min-width: 112px;
  text-align: center;
  background: rgba(5, 44, 56, 0.72);
}

.nav .root-link {
  border-color: rgba(255, 157, 61, 0.8);
  background: rgba(255, 157, 61, 0.17);
}

.section {
  margin-bottom: 18px;
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(330px, 0.58fr) minmax(440px, 1fr);
  gap: 16px;
  align-items: stretch;
  padding-bottom: 0;
}

.hero-copy,
.panel-title,
.lab > div:first-child,
.split > div:first-child {
  position: relative;
  border: 1px solid rgba(53, 231, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(7, 62, 76, 0.9), rgba(1, 17, 23, 0.86)),
    repeating-linear-gradient(90deg, rgba(53, 231, 255, 0.05) 0 1px, transparent 1px 18px);
  padding: 18px;
  box-shadow: inset 0 0 32px rgba(53, 231, 255, 0.08);
}

.hero h1,
.root-head h1 {
  font-size: clamp(2.25rem, 5.6vw, 5.9rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.lead {
  font-size: 1rem;
  line-height: 1.55;
  color: #bfeaf0;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn.primary {
  color: #101100;
  background:
    linear-gradient(180deg, #ffe08a, #ff9d3d 55%, #e57121),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(0, 0, 0, 0.1) 12px 13px);
}

.btn.ghost {
  background: rgba(7, 47, 57, 0.85);
}

.hud-panel {
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  border-color: rgba(53, 231, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(7, 55, 69, 0.9), rgba(2, 18, 24, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
}

.hero-visual {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 230px;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 18px;
}

.pda-diagram {
  overflow: hidden;
}

.pda-diagram::before {
  width: 70px;
  height: 70px;
}

.pda-diagram::after {
  width: 70px;
  height: 70px;
}

.scanner-ring {
  align-self: center;
  justify-self: center;
  width: min(42vw, 360px);
  aspect-ratio: 1;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 20%, rgba(53, 231, 255, 0.16) 21% 22%, transparent 23% 38%, rgba(53, 231, 255, 0.16) 39% 40%, transparent 41%),
    conic-gradient(from 24deg, rgba(255, 157, 61, 0.9), transparent 20%, rgba(53, 231, 255, 0.9), transparent 58%, rgba(255, 157, 61, 0.9));
  box-shadow: 0 0 40px rgba(53, 231, 255, 0.24), inset 0 0 40px rgba(53, 231, 255, 0.18);
  animation: pulseScan 5s linear infinite;
}

.printer-frame {
  position: relative;
  align-self: stretch;
  min-height: 260px;
  border: 2px solid var(--orange);
  background:
    linear-gradient(90deg, transparent 48%, rgba(53, 231, 255, 0.34) 49% 51%, transparent 52%),
    linear-gradient(180deg, transparent 22%, rgba(53, 231, 255, 0.2) 23% 24%, transparent 25%);
}

.rail,
.nozzle,
.print-bed {
  position: absolute;
  display: block;
}

.rail {
  top: 16%;
  bottom: 16%;
  width: 3px;
  background: var(--cyan);
}

.rail-a {
  left: 22%;
}

.rail-b {
  right: 22%;
}

.nozzle {
  left: calc(50% - 22px);
  top: 40%;
  width: 44px;
  height: 44px;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 157, 61, 0.55);
}

.print-bed {
  left: 18%;
  right: 18%;
  bottom: 17%;
  height: 12px;
  background: var(--cyan);
}

.pda-log {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(53, 231, 255, 0.34);
  background: rgba(2, 18, 24, 0.74);
}

.pda-log strong {
  color: var(--orange);
}

.pda-log span {
  color: #b9e7ee;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.telemetry {
  position: static;
  grid-column: 1 / -1;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.stats-strip,
.catalog-grid,
.command-grid,
.custom-zone,
.lab,
.info-console,
.social-console,
.split {
  gap: 12px;
}

.stats-strip {
  background: transparent;
  border: 0;
}

.stats-strip article,
.product-card,
.command-card {
  border: 1px solid rgba(53, 231, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(6, 52, 64, 0.82), rgba(1, 14, 19, 0.86)),
    linear-gradient(90deg, rgba(255, 157, 61, 0.12), transparent 36%);
}

.metric,
.command-card strong,
.estimate-readout span {
  color: #49ecff;
  text-shadow: 0 0 18px rgba(53, 231, 255, 0.38);
}

.product-card {
  min-height: 220px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.product-card .mini-visual {
  height: 66px;
  background:
    radial-gradient(circle at 20% 50%, var(--orange) 0 8px, transparent 9px),
    linear-gradient(90deg, rgba(53, 231, 255, 0.44), transparent 70%),
    repeating-linear-gradient(90deg, rgba(53, 231, 255, 0.38) 0 2px, transparent 2px 17px);
}

.request-form,
.admin-form,
.estimator,
.root-tools {
  border-color: rgba(255, 157, 61, 0.34);
}

input,
select,
textarea {
  border-color: rgba(53, 231, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(1, 22, 29, 0.88), rgba(0, 8, 12, 0.88));
  color: #effcff;
}

.estimate-readout {
  border-color: rgba(255, 157, 61, 0.44);
  background:
    radial-gradient(circle, rgba(255, 157, 61, 0.18), transparent 62%),
    rgba(2, 18, 24, 0.74);
}

.root-head {
  min-height: auto;
  align-items: stretch;
  margin-top: 18px;
  border: 1px solid rgba(53, 231, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(7, 62, 76, 0.92), rgba(1, 17, 23, 0.86)),
    repeating-linear-gradient(90deg, rgba(53, 231, 255, 0.05) 0 1px, transparent 1px 18px);
  padding: 18px;
}

.root-head .btn {
  align-self: center;
}

.root-tools {
  max-height: 62vh;
  overflow: auto;
}

.status-pill {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

@keyframes pulseScan {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .scanner-ring {
    width: min(78vw, 340px);
  }
}

@media (max-width: 620px) {
  body::before {
    inset: 6px;
  }

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

  .nav a {
    min-width: 0;
  }
}

/* Subnautica.com-inspired art direction: immersive ocean site, not copied assets */
body {
  background:
    linear-gradient(180deg, rgba(2, 45, 68, 0.2), rgba(0, 10, 28, 0.96) 58%, #020816),
    url("assets/ocean-hero.png") center top / 100% auto no-repeat,
    #020816;
}

body::before {
  border: 0;
  box-shadow: inset 0 0 140px rgba(0, 8, 20, 0.86);
}

body::after {
  opacity: 0.18;
}

.shell {
  width: 100%;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(0, 9, 22, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

#app,
.root-screen {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand-mark {
  border: 0;
  background: linear-gradient(135deg, #00d8ff 0 48%, #ff9d3d 49%);
}

.nav a,
.nav-menu-button,
.tab,
.btn {
  clip-path: none;
  border-radius: 2px;
}

.nav a {
  min-width: auto;
  background: transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav .root-link,
.tab.active {
  background: rgba(0, 209, 255, 0.14);
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1fr);
  align-items: end;
  gap: 28px;
  padding: 16vh 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -12vw -30px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 9, 24, 0.78), rgba(1, 9, 24, 0.18) 58%, rgba(1, 9, 24, 0.72)),
    radial-gradient(circle at 62% 45%, rgba(0, 212, 255, 0.16), transparent 32rem);
}

.hero-copy,
.panel-title,
.lab > div:first-child,
.split > div:first-child {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  line-height: 0.86;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.55);
}

.lead {
  max-width: 660px;
  color: #e5fbff;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  color: #ffb35c;
}

.hero-actions {
  display: flex;
}

.btn {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

.btn.primary {
  color: #131007;
  background: linear-gradient(180deg, #ffc86a, #ff8c32);
  box-shadow: 0 14px 30px rgba(255, 119, 32, 0.32);
}

.hero-visual {
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(0, 20, 38, 0.05), rgba(0, 7, 18, 0.42)),
    url("assets/reef-module.png") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.hero-visual .scanner-ring,
.hero-visual .printer-frame,
.hero-visual .pda-log {
  opacity: 0.78;
  mix-blend-mode: screen;
}

.hud-panel {
  clip-path: none;
  border-color: rgba(93, 231, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(4, 63, 88, 0.82), rgba(2, 18, 38, 0.9));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.hud-panel::before,
.hud-panel::after {
  display: none;
}

.stats-strip,
.split,
.custom-zone,
.lab,
.info-console,
.command-grid,
.root-tools,
.root-entry {
  margin-top: 80px;
}

.stats-strip {
  border: 0;
  background: rgba(0, 15, 35, 0.5);
  backdrop-filter: blur(10px);
}

.stats-strip article,
.product-card,
.command-card,
.public-config article {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(4, 79, 109, 0.72), rgba(1, 20, 42, 0.88));
}

h2 {
  color: #f4fdff;
  text-transform: uppercase;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-height: 330px;
  padding: 0;
  overflow: hidden;
}

.product-card > div:first-child {
  padding: 0;
}

.product-card .mini-visual {
  height: 150px;
  margin: 0 0 18px;
  border: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 8, 20, 0.58)),
    url("assets/reef-module.png") center / cover no-repeat;
  clip-path: none;
}

.product-card h3,
.product-card p,
.price-line {
  margin-left: 18px;
  margin-right: 18px;
}

.price-line {
  margin-bottom: 18px;
}

.request-form,
.admin-form,
.config-panel,
.estimator,
.public-config {
  background:
    linear-gradient(180deg, rgba(3, 72, 99, 0.82), rgba(1, 19, 43, 0.92));
}

.public-config {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-console {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 80px;
}

.account-console {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 80px;
}

.account-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.account-login,
.account-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.account-session {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 9, 22, 0.54);
}

.account-session h3 {
  margin: 0;
  color: #f4fdff;
}

.account-session p {
  margin: 4px 0 0;
  color: var(--muted);
}

.client-tickets {
  display: grid;
  gap: 12px;
}

.client-ticket-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(112, 239, 255, 0.2);
  background: rgba(0, 9, 22, 0.5);
}

.client-ticket-card strong {
  color: #f4fdff;
}

.client-ticket-card p,
.muted-note {
  color: #b9dce4;
  line-height: 1.55;
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insta-card {
  overflow: hidden;
  border-radius: 18px;
}

.insta-media {
  display: grid;
  place-items: end start;
  width: 100%;
  min-height: 260px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background-position: center;
  background-size: cover;
}

.insta-media span {
  margin: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 10, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.insta-card > div {
  padding: 16px;
}

.insta-card h3 {
  margin: 0 0 8px;
  color: #f4fdff;
}

.insta-card p {
  color: #c7eef3;
  line-height: 1.55;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.root-head {
  margin-top: 70px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(0, 12, 30, 0.74), rgba(0, 20, 45, 0.34)),
    url("assets/deep-console.png") center / cover no-repeat;
  min-height: 360px;
  align-items: end;
}

.root-head h1 {
  font-size: clamp(2.9rem, 7.5vw, 7.8rem);
}

.root-tools {
  background:
    linear-gradient(180deg, rgba(2, 59, 86, 0.9), rgba(1, 16, 36, 0.95));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 10vh;
  }

  .hero-visual {
    min-height: 420px;
  }

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

@media (max-width: 620px) {
  .topbar,
  #app,
  .root-screen {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern usable overlays */
body.overlay-open {
  overflow: hidden;
}

.app-overlay[hidden] {
  display: none;
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 218, 255, 0.18), transparent 34rem),
    rgba(0, 5, 15, 0.74);
  backdrop-filter: blur(18px) saturate(1.2);
}

.overlay-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgba(112, 239, 255, 0.34);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(6, 76, 105, 0.92), rgba(2, 13, 31, 0.96)),
    url("assets/deep-console.png") center / cover no-repeat;
  background-blend-mode: multiply;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.overlay-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.overlay-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #effcff;
  cursor: pointer;
  background: rgba(0, 8, 20, 0.72);
  z-index: 1;
}

.overlay-kicker {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overlay-panel h2 {
  margin: 8px 54px 16px 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

.overlay-lead {
  max-width: 680px;
  color: #d9f9ff;
  font-size: 1.08rem;
  line-height: 1.65;
}

.overlay-preview {
  min-height: 210px;
  margin: 22px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, transparent, rgba(0, 9, 22, 0.48)),
    url("assets/reef-module.png") center / cover no-repeat;
}

.overlay-grid {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 10, 24, 0.56);
}

.overlay-grid span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.overlay-grid strong {
  color: #f2fdff;
}

.ticket-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 9, 22, 0.52);
  margin-bottom: 16px;
}

.ticket-thread {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
}

.ticket-message {
  width: min(76%, 620px);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 218, 255, 0.13);
  border: 1px solid rgba(112, 239, 255, 0.18);
}

.ticket-message.root {
  justify-self: end;
  background: rgba(255, 157, 61, 0.16);
  border-color: rgba(255, 157, 61, 0.26);
}

.ticket-message.system {
  justify-self: center;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f4fdff;
}

.ticket-message span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ticket-message p {
  margin: 8px 0 0;
  color: #dff9ff;
  line-height: 1.5;
}

.ticket-reply {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.overlay-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overlay-form .wide {
  grid-column: 1 / -1;
}

.overlay-form input,
.overlay-form select,
.overlay-form textarea {
  border-radius: 10px;
  background: rgba(0, 9, 22, 0.74);
}

.payment-config,
.posts-config {
  display: grid;
  gap: 14px;
}

.payment-method,
.post-config-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(112, 239, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 9, 22, 0.52);
}

.post-config-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.switch-line {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  color: #f4fdff;
  font-weight: 800;
}

.switch-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.product-card,
.command-card,
.root-tools,
.request-form,
.admin-form,
.config-panel,
.public-config {
  border-radius: 18px;
}

.product-card,
.command-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.command-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 157, 61, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.icon-btn {
  border-radius: 10px;
}

@media (max-width: 620px) {
  .app-overlay {
    align-items: end;
    padding: 0;
  }

  .overlay-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .overlay-form,
  .overlay-grid,
  .post-config-card,
  .account-console,
  .account-login,
  .account-session,
  .client-ticket-card,
  .social-console,
  .social-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .account-console,
  .social-console {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .social-feed {
    grid-template-columns: 1fr;
  }
}

/* Dark cinematic landing inspired by the provided reference */
.quick-icons {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  display: flex;
  gap: 10px;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.quick-icon.active {
  border-color: rgba(115, 124, 255, 0.8);
  background: #5865f2;
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.45);
}

.quick-icon span {
  font-weight: 900;
}

body {
  background:
    radial-gradient(circle at 50% 40%, rgba(80, 110, 118, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(3, 10, 18, 0.38), rgba(0, 0, 0, 0.92)),
    url("assets/ocean-hero.png") center top / cover fixed no-repeat,
    #02050b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 16rem, rgba(0, 0, 0, 0.18) 26rem, rgba(0, 0, 0, 0.86) 100%),
    rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(7px) saturate(0.82);
}

.topbar {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: none;
}

.nav {
  gap: 8px;
}

.nav > a {
  display: none;
}

.nav-menu-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav-dropdown {
  border-radius: 18px;
  background: rgba(3, 8, 15, 0.88);
  backdrop-filter: blur(18px);
}

#app {
  width: 100%;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0 20px;
  margin: 0;
  text-align: center;
}

.hero::before {
  display: none;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 760px;
  padding-top: 42px;
}

.hero-logo-mark {
  position: relative;
  width: clamp(160px, 20vw, 260px);
  aspect-ratio: 1.15;
  margin-bottom: 34px;
}

.hero-logo-mark::before,
.hero-logo-mark::after,
.hero-logo-mark span {
  content: "";
  position: absolute;
  background: #fff;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.36));
}

.hero-logo-mark::before {
  left: 0;
  top: 0;
  width: 46%;
  height: 70%;
  clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 70%);
}

.hero-logo-mark::after {
  right: 0;
  top: 0;
  width: 46%;
  height: 70%;
  clip-path: polygon(0 55%, 100% 0, 100% 70%, 0 100%);
}

.hero-logo-mark span {
  left: 27%;
  bottom: 0;
  width: 46%;
  height: 46%;
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 38%, 50% 100%, 0 38%);
}

.hero .eyebrow {
  display: none;
}

.hero h1 {
  display: none;
}

.hero .lead {
  margin: 0 0 42px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.btn.game-pill {
  gap: 14px;
  min-width: 238px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.btn.game-pill:hover,
.btn.game-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.62);
}

.pill-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: #168cff;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.game-pill.alt .pill-icon {
  color: #120b04;
  background: linear-gradient(135deg, #ffcd7a, #b87328);
}

.hero-visual {
  display: none;
}

.stats-strip,
.split,
.custom-zone,
.lab,
.info-console,
.social-console,
.account-console {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .quick-icons {
    top: 12px;
    left: 12px;
  }

  .topbar {
    top: 12px;
    right: 12px;
  }

  .hero-actions {
    width: min(100%, 320px);
    flex-direction: column;
  }

  .btn.game-pill {
    width: 100%;
    min-width: 0;
  }
}

/* Admin panel inspired by the provided dashboard references */
body[data-route="root"] {
  background: #050506;
  color: #f7f7f8;
}

body[data-route="root"]::before,
body[data-route="root"]::after,
body[data-route="root"] #depth-canvas {
  display: none;
}

body[data-route="root"] .shell {
  width: 100%;
}

body[data-route="root"] > .shell > .topbar {
  display: none;
}

body[data-route="root"] #app,
body[data-route="root"] .root-screen {
  width: 100%;
  margin: 0;
}

body[data-route="root"] .root-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  grid-template-areas:
    "side top"
    "side hero"
    "side stats"
    "side tools"
    "side entry";
  align-items: start;
  background:
    radial-gradient(circle at 70% 18%, rgba(118, 78, 255, 0.08), transparent 34rem),
    #050506;
}

.admin-sidebar {
  grid-area: side;
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: 22px 26px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #030304;
}

.admin-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-logo strong {
  color: #fff;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-logo span,
.admin-side-nav p,
.admin-topline p,
.root-tools th {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.admin-side-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-side-nav p {
  margin: 22px 0 4px;
}

.admin-side-nav a,
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 850;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.admin-side-nav a.active,
.admin-side-nav a:hover,
.side-link:hover,
.side-link:focus-visible {
  color: #070707;
  background: #fff;
  outline: none;
}

.scope-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8b5cf6;
}

.scope-dot.green {
  background: #19c37d;
}

.scope-dot.orange {
  background: #ff9d1b;
}

.scope-dot.blue {
  background: #00a8ff;
}

.admin-profile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0d0d10;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #15151a, #5865f2);
}

.admin-profile strong,
.admin-profile span {
  display: block;
}

.admin-profile span {
  margin-top: 4px;
  color: #74ffc6;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.admin-profile a {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-topline {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #050506;
}

.admin-topline h1 {
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.admin-topline p {
  margin: 8px 0 0;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.86rem;
}

.admin-topline a,
.root-head .btn {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body[data-route="root"] .root-head {
  grid-area: hero;
  min-height: auto;
  margin: 0;
  padding: 34px 42px 8px;
  border: 0;
  background: transparent;
}

body[data-route="root"] .root-head .eyebrow,
body[data-route="root"] .root-head .btn {
  display: none;
}

body[data-route="root"] .root-head h1 {
  display: none;
}

body[data-route="root"] .command-grid {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 26px 42px;
}

body[data-route="root"] .command-card,
body[data-route="root"] .root-tools,
body[data-route="root"] .admin-form,
body[data-route="root"] .config-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 70%, rgba(139, 92, 246, 0.12), transparent 12rem),
    #101014;
  box-shadow: none;
}

body[data-route="root"] .command-card {
  min-height: 124px;
  padding: 24px 26px;
}

body[data-route="root"] .command-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
}

body[data-route="root"] .command-card strong {
  margin-top: 12px;
  font-size: 2.8rem;
  line-height: 1;
}

body[data-route="root"] .command-card:nth-child(1) strong {
  color: #b650ff;
}

body[data-route="root"] .command-card:nth-child(2) strong {
  color: #00a8ff;
}

body[data-route="root"] .command-card:nth-child(3) strong {
  color: #19c37d;
}

body[data-route="root"] .root-tools {
  grid-area: tools;
  margin: 0 42px 28px;
  padding: 24px;
  max-height: none;
}

body[data-route="root"] .tabs {
  gap: 8px;
}

body[data-route="root"] .tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  background: #18181d;
}

body[data-route="root"] .tab.active {
  color: #050506;
  background: #fff;
}

body[data-route="root"] input,
body[data-route="root"] select,
body[data-route="root"] textarea {
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #1a1a1f;
}

body[data-route="root"] table {
  min-width: 820px;
}

body[data-route="root"] th,
body[data-route="root"] td {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body[data-route="root"] .root-entry {
  grid-area: entry;
  margin: 0 42px 42px;
  max-width: none;
}

body[data-route="root"] .admin-form h2 {
  color: #fff;
}

body[data-route="root"] .btn.primary {
  color: #050506;
  background: #fff;
  box-shadow: none;
}

body[data-route="root"] .btn.ghost,
body[data-route="root"] .icon-btn {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: #1a1a1f;
}

@media (max-width: 980px) {
  body[data-route="root"] .root-screen {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "top"
      "hero"
      "stats"
      "tools"
      "entry";
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  body[data-route="root"] .command-grid {
    grid-template-columns: 1fr;
  }
}

/* Public sections: dark RP-style panels for creations, social and requests */
.creations-showcase {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 22px 0 34px;
  overflow: hidden;
  background: #030304;
}

.section-topline {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #fff;
}

.back-mini {
  position: absolute;
  left: 24px;
  top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-topline h2 {
  margin: 0;
  font-size: 1.2rem;
}

.creation-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(560px, 1.58fr) repeat(3, minmax(150px, 0.34fr));
  height: calc(100vh - 96px);
  min-height: 0;
  margin-top: 16px;
}

.creation-panel {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  height: 100%;
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  transform: skewX(-5deg);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.84)),
    var(--panel-bg) center / cover no-repeat;
  filter: grayscale(0.8) brightness(0.56);
  transition: filter 220ms ease, flex 220ms ease;
}

.creation-panel > * {
  transform: skewX(5deg);
}

.creation-panel.active,
.creation-panel:hover {
  filter: grayscale(0) brightness(0.86);
}

.creation-panel:not(.active) h3 {
  writing-mode: vertical-rl;
  transform: skewX(5deg) rotate(180deg);
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  opacity: 0.78;
}

.creation-panel:not(.active) p,
.creation-panel:not(.active) .creation-enter {
  display: none;
}

.creation-emblem {
  display: grid;
  place-items: center;
  width: clamp(92px, 10vw, 132px);
  height: clamp(92px, 10vw, 132px);
  margin-bottom: clamp(12px, 2vh, 18px);
  border: 6px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 950;
  background: rgba(0, 0, 0, 0.36);
}

.creation-panel:not(.active) .creation-emblem {
  width: 92px;
  height: 92px;
  font-size: 2.5rem;
  border-width: 3px;
}

.creation-panel h3 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3rem, 5.6vw, 5.7rem);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.creation-panel p {
  max-width: 620px;
  margin: clamp(14px, 2vh, 20px) auto clamp(16px, 2.4vh, 24px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.creation-enter {
  min-width: 150px;
  min-height: 48px;
  border-radius: 999px;
  border-color: var(--accent);
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

.creation-panel.active .creation-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.slider-dots span:first-child {
  width: 48px;
  background: #fff;
}

.dark-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0;
}

.dark-section .panel-title h2 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.section-copy {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.dark-section .request-form,
.dark-section .social-feed .insta-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(195, 49, 75, 0.16), transparent 16rem),
    #111114;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.dark-section .social-feed {
  align-items: stretch;
}

.dark-section .insta-media {
  min-height: 340px;
  filter: saturate(0.8) brightness(0.78);
}

.dark-section .insta-card h3 {
  font-size: 1.7rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .creation-stage {
    grid-template-columns: 1fr;
  }

  .creation-panel,
  .creation-panel > *,
  .creation-panel:not(.active) h3 {
    transform: none;
  }

  .creation-panel {
    min-height: 420px;
  }

  .creation-panel:not(.active) h3 {
    writing-mode: horizontal-tb;
  }

  .creation-panel:not(.active) p,
  .creation-panel:not(.active) .creation-enter {
    display: initial;
  }
}

/* Locked public flow: landing -> account -> boutique */
body:not([data-route="root"]) {
  overflow: hidden;
}

body:not([data-route="root"]) .creations-showcase,
body:not([data-route="root"]) .shop-detail,
body:not([data-route="root"]) .custom-zone,
body:not([data-route="root"]) .lab,
body:not([data-route="root"]) .info-console,
body:not([data-route="root"]) .social-console,
body:not([data-route="root"]) .account-console {
  display: none;
}

body:not([data-route="root"]).boutique-open .shell,
body:not([data-route="root"]).boutique-detail-open .shell {
  width: 100%;
}

body:not([data-route="root"]).boutique-open .hero {
  display: none;
}

body:not([data-route="root"]).boutique-open .quick-icons,
body:not([data-route="root"]).boutique-open > .shell > .topbar {
  display: none;
}

body:not([data-route="root"]).boutique-open .creations-showcase {
  display: block;
}

body:not([data-route="root"]).boutique-detail-open .creations-showcase {
  display: none;
}

body:not([data-route="root"]).boutique-detail-open .shop-detail {
  display: block;
}

.shop-detail {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: #030304;
}

.shop-nav {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 46;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 18px;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.shop-brand span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #050506;
  font-weight: 950;
  background: #fff;
}

.shop-brand strong {
  text-align: left;
  text-transform: uppercase;
}

.shop-nav nav {
  justify-self: center;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.82);
  backdrop-filter: blur(18px);
}

.shop-nav nav button,
.shop-cta {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.shop-nav nav button:hover,
.shop-nav nav button:focus-visible {
  color: #050506;
  background: #fff;
  outline: none;
}

.shop-cta {
  color: #fff;
  background: #c3314b;
}

.shop-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 8vw 80px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0 38%, rgba(0, 0, 0, 0.32) 64%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), #030304 96%),
    var(--shop-bg) center / cover no-repeat;
}

.shop-copy {
  max-width: 760px;
  padding-top: 40px;
}

.shop-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shop-kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--accent);
}

.shop-kicker em {
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-style: normal;
  background: rgba(0, 0, 0, 0.34);
}

.shop-copy h2 {
  margin: 0;
  max-width: 860px;
  color: #fff;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.shop-copy > p:not(.shop-kicker) {
  max-width: 640px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
}

.overlay-social-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route="root"] .status-pill.root {
  color: #050506;
  background: #fff;
}

body[data-route="root"] .status-pill.client {
  color: #dff9ff;
  background: rgba(0, 168, 255, 0.22);
}

@media (max-width: 980px) {
  .shop-nav {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shop-nav nav {
    justify-self: stretch;
    overflow-x: auto;
  }

  .shop-cta {
    justify-self: start;
  }

  .shop-hero {
    padding-top: 210px;
  }

  .overlay-social-feed {
    grid-template-columns: 1fr;
  }
}
