:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0d1218;
  --surface: #111822;
  --surface-2: #151f2b;
  --surface-3: #192635;
  --line: rgba(179, 218, 228, 0.16);
  --line-strong: rgba(106, 218, 239, 0.34);
  --text: #edf7f8;
  --muted: #91a3ae;
  --soft: #c9d6dc;
  --cyan: #56d7ee;
  --cyan-2: #1aa8c4;
  --gold: #d8b15d;
  --green: #51d88a;
  --red: #ff6b7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(86, 215, 238, 0.07), transparent 420px),
    radial-gradient(circle at 18% 0%, rgba(216, 177, 93, 0.12), transparent 340px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0b1821, #162534);
  color: var(--cyan);
  font-weight: 800;
  box-shadow: inset 0 0 26px rgba(86, 215, 238, 0.14);
}

.brand strong {
  display: block;
  font-size: 0.95rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.topnav {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.topnav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: 0.84rem;
}

.topnav a:hover,
.topnav a.is-active {
  background: rgba(86, 215, 238, 0.12);
  color: var(--text);
}

.nav-cta,
.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.88rem;
}

.nav-cta {
  justify-self: end;
  background: var(--cyan);
  color: #031014;
}

.primary-btn {
  background: linear-gradient(135deg, var(--cyan), #9af0ff);
  color: #031014;
  box-shadow: 0 12px 30px rgba(86, 215, 238, 0.18);
}

.secondary-btn {
  border-color: var(--line-strong);
  background: rgba(86, 215, 238, 0.08);
  color: var(--text);
}

.ghost-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

.danger-btn {
  border-color: rgba(255, 107, 122, 0.38);
  background: rgba(255, 107, 122, 0.08);
  color: #ffdbe0;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: saturate(0.35);
  box-shadow: none;
}

.app-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.view {
  display: grid;
  gap: 26px;
}

.pilot-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 177, 93, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(216, 177, 93, 0.08);
  color: var(--soft);
}

.pilot-notice p {
  margin: 0;
  line-height: 1.45;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: min(760px, calc(100vh - 112px));
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #f5fbfc;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.65;
}

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

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
}

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

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101722;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.82));
  pointer-events: none;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 0.84rem;
}

.panel,
.metric,
.product-card,
.store-card,
.cart-panel,
.admin-row,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.panel-title h2 {
  margin: 0;
  color: #f6fbfd;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.08;
}

.section-head p,
.panel-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.benefit {
  padding: 22px;
}

.benefit svg,
.icon {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.benefit h3,
.product-card h3,
.store-card h3 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
}

.benefit p,
.product-card p,
.store-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.workspace > .pilot-notice {
  grid-column: 1 / -1;
}

.side-panel {
  align-self: start;
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.side-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status-pill.is-warning::before {
  background: var(--gold);
}

.status-pill.is-danger::before {
  background: var(--red);
}

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

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

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.compact-form {
  margin-bottom: 18px;
}

.form-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--soft);
  line-height: 1.45;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 13, 0.72);
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

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

input[type="file"] {
  padding: 7px 9px;
}

input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 1px solid rgba(86, 215, 238, 0.35);
  border-radius: 6px;
  background: rgba(86, 215, 238, 0.12);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(86, 215, 238, 0.12);
}

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

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.6fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.table-row strong {
  display: block;
}

.table-row small,
.muted {
  color: var(--muted);
}

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

.store-hero {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(86, 215, 238, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(216, 177, 93, 0.1), rgba(255, 255, 255, 0.02));
}

.store-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.store-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  margin: 18px 0;
}

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

.product-card {
  overflow: hidden;
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 150px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(86, 215, 238, 0.2), transparent),
    linear-gradient(45deg, rgba(216, 177, 93, 0.22), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 2.3rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.detail-back {
  grid-column: 1 / -1;
  justify-self: start;
}

.product-detail-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(140deg, rgba(86, 215, 238, 0.18), transparent),
    linear-gradient(45deg, rgba(216, 177, 93, 0.2), rgba(255, 255, 255, 0.02));
  font-size: 3rem;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-detail-body h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.product-detail-body p {
  color: var(--muted);
  line-height: 1.65;
}

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

.product-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.025);
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.price {
  color: var(--gold);
  font-weight: 800;
}

.cart-panel {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-weight: 800;
}

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

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.6fr 0.6fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.admin-row small,
.table-row small {
  display: block;
  margin-top: 4px;
}

.admin-row .button-row,
.table-row .button-row {
  margin-top: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: rgba(13, 18, 24, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.legal-hero {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 740px;
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.legal-hero p,
.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--accent);
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: start;
  }

  .hero,
  .workspace,
  .storefront,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .cart-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .app-shell {
    width: min(100% - 22px, var(--max));
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .grid-3,
  .metrics-grid,
  .product-grid,
  .product-facts,
  .form-grid,
  .store-tools {
    grid-template-columns: 1fr;
  }

  .table-row,
  .admin-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-card,
  .cart-panel,
  .store-hero,
  .panel {
    min-width: 0;
  }

  .product-card .cart-total {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .section-head,
  .panel-title,
  .pilot-notice,
  .site-footer,
  .visual-caption {
    flex-direction: column;
    align-items: start;
  }
}
