:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-soft: #0a0a0f;
  --panel: #111118;
  --panel-strong: #17151f;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f3ff;
  --muted: #aaa4b8;
  --muted-strong: #d8d3e6;
  --purple: #8a35ff;
  --purple-deep: #4c168d;
  --silver: #dad7e2;
  --success: #45d39a;
  --warning: #f0b64b;
  --danger: #e25d69;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(138, 53, 255, 0.08), transparent 420px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 28%, rgba(138, 53, 255, 0.05)),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

main {
  min-height: 72svh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(22px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 800;
}

.brand__mark {
  display: block;
  width: 38px;
  height: 38px;
  background-image: url("/logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.brand--footer {
  min-height: auto;
}

.accent {
  color: var(--purple);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    background 160ms ease,
    color 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.74;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.92), rgba(5, 5, 7, 0.4) 54%, rgba(5, 5, 7, 0.9)),
    linear-gradient(0deg, rgba(5, 5, 7, 0.78), rgba(5, 5, 7, 0.05) 62%);
}

.hero__content {
  position: relative;
  align-self: end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 110px 22px 80px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 720px;
  font-size: 5rem;
}

.hero__copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 1.1rem;
}

.hero__actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(138, 53, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  font-weight: 800;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.44);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.button--danger {
  background: rgba(226, 93, 105, 0.12);
  border-color: rgba(226, 93, 105, 0.54);
}

.button--wide {
  width: 100%;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #08080c;
}

.signal-band span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted-strong);
  font-weight: 800;
  text-align: center;
}

.signal-band span:last-child {
  border-right: 0;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 78px 22px;
}

.section--tight {
  padding-top: 28px;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__header h2 {
  max-width: 620px;
  font-size: 2rem;
}

.section__header a {
  color: var(--muted-strong);
  border-bottom: 1px solid var(--purple);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel);
}

.product-card__media img,
.gallery__main img,
.gallery__thumbs img,
.admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-card h3 {
  font-size: 1.15rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-card__meta,
.price-line,
.form-heading,
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-card__meta span,
.price-line span,
.helper-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(138, 53, 255, 0.12), rgba(255, 255, 255, 0.01)),
    #07070b;
}

.page-hero > div {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 76px 22px 58px;
}

.page-hero h1 {
  font-size: 3rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted-strong);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 0;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.option-list button,
.swatch-list button,
.admin-item__actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.segmented button {
  padding: 0 14px;
}

.segmented button.is-selected,
.option-list button.is-selected,
.swatch-list button.is-selected {
  border-color: var(--purple);
  background: rgba(138, 53, 255, 0.17);
  color: var(--text);
}

.search-field {
  display: grid;
  gap: 6px;
  width: min(100%, 340px);
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: 0;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(138, 53, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(138, 53, 255, 0.14);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 38px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 66px 22px 92px;
}

.gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.gallery__main {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery__thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery__thumbs button.is-selected {
  border-color: var(--purple);
}

.product-info {
  align-self: start;
  display: grid;
  gap: 24px;
  padding: 4px 0;
}

.product-info h1 {
  font-size: 3rem;
}

.product-info__description {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.price-line {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-line strong {
  font-size: 1.6rem;
}

.option-group {
  display: grid;
  gap: 10px;
}

.option-group p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.option-list,
.swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-list button {
  min-width: 52px;
  padding: 0 14px;
}

.swatch-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.swatch-list span {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.tool-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
}

.summary-panel--quiet {
  background: rgba(138, 53, 255, 0.08);
}

.tool-panel {
  display: grid;
  gap: 16px;
}

.tool-panel label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
}

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

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.contact-list span {
  color: var(--purple);
  font-weight: 800;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.order-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.order-row__side {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 150px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(69, 211, 154, 0.38);
  border-radius: 999px;
  color: var(--success);
  background: rgba(69, 211, 154, 0.08);
  font-size: 0.86rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.timeline span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.timeline span.is-done {
  border-color: rgba(69, 211, 154, 0.55);
  color: var(--success);
  background: rgba(69, 211, 154, 0.08);
}

.empty-state {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.admin-layout {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 48px 22px 86px;
}

.admin-heading {
  margin-bottom: 24px;
}

.admin-heading h1 {
  font-size: 2.6rem;
}

.admin-heading p:not(.eyebrow) {
  color: var(--muted-strong);
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.integration-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.integration-badges span.is-on {
  border-color: rgba(69, 211, 154, 0.44);
  color: var(--success);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.admin-form,
.admin-stack {
  display: grid;
  gap: 16px;
}

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

.checkbox-line {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-list,
.order-admin-list {
  display: grid;
  gap: 10px;
}

.admin-item,
.admin-order {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-order {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.admin-item img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--panel);
}

.admin-item h3,
.admin-order h3 {
  font-size: 1rem;
}

.admin-item p,
.admin-order p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-order .admin-order__items {
  color: var(--muted-strong);
}

.admin-item__actions {
  display: flex;
  gap: 8px;
}

.admin-item__actions button {
  padding: 0 10px;
}

#toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 17, 24, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast--success {
  border-color: rgba(69, 211, 154, 0.5);
}

.toast--warning {
  border-color: rgba(240, 182, 75, 0.58);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 42px 22px 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    padding: 16px 22px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 7, 0.98);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .signal-band,
  .product-grid,
  .product-detail,
  .split,
  .auth-grid,
  .admin-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .section__header,
  .admin-heading,
  .product-card__meta,
  .price-line {
    align-items: start;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .product-info h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

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

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

  .admin-order,
  .admin-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-order {
    grid-template-columns: 1fr;
  }

  .admin-item__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero__content {
    padding: 88px 18px 54px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section,
  .page-hero > div,
  .product-detail,
  .admin-layout,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-row,
  .upload-row {
    grid-template-columns: 1fr;
  }

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

  .order-row__side {
    justify-items: start;
  }
}
