:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --panel: #101417;
  --panel-2: #151c20;
  --line: #263239;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --violet: #10b981;
  --cyan: #38bdf8;
  --green: #22c55e;
  --amber: #d6a94a;
  --red: #ef4444;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  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-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(56, 189, 248, 0.09), transparent 42rem),
    var(--bg);
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #d6a94a);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
  background: rgba(18, 18, 26, 0.78);
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

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

.header-actions,
.inline-actions,
.row-actions,
.footer-links,
.chips,
.tabs,
.summary-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-button,
.ghost-button,
.primary-button,
.danger-button,
.success-button {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  color: var(--text);
  background: var(--panel);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.icon-button {
  position: relative;
  min-width: 2.6rem;
  display: inline-grid;
  place-items: center;
  padding: 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.icon-button b {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #02120a;
  font-size: 0.72rem;
}

.primary-button {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #10b981, #38bdf8);
  color: #031612;
  font-weight: 750;
}

.success-button {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.16);
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
}

.ghost-button:hover,
.icon-button:hover,
.primary-button:hover,
.danger-button:hover,
.success-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

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

main {
  flex: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 4rem;
}

.hero {
  min-height: min(740px, calc(100vh - 7rem));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(1rem, 3vw, 2rem) 0;
}

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

.eyebrow {
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 58ch;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.hero-media {
  position: relative;
  min-height: 360px;
}

.hero-media img {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-metric {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(280px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(18px);
}

.floating-metric strong {
  display: block;
  font-size: 1.55rem;
}

.section-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.page-head {
  align-items: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.product-card,
.metric-card,
.table-wrap,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.card,
.metric-card,
.form-panel {
  padding: 1rem;
}

.product-card {
  overflow: hidden;
}

.product-visual {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.2), transparent),
    linear-gradient(315deg, rgba(56, 189, 248, 0.14), rgba(214, 169, 74, 0.08));
}

.product-box {
  width: 82%;
  aspect-ratio: 1.75;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent),
    var(--product-color, #7c3aed);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.product-body {
  padding: 1rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.green {
  color: #9af0b7;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.badge.blue {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.11);
}

.badge.amber {
  color: #ffd37b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.badge.red {
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.filters,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  color: var(--muted);
  font-size: 0.85rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.86);
  padding: 0.75rem 0.85rem;
  outline: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.tabs {
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.12);
}

.cart-row,
.license-row,
.ticket-row,
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child,
.license-row:last-child,
.ticket-row:last-child,
.activity-row:last-child {
  border-bottom: 0;
}

.qty {
  display: inline-grid;
  grid-template-columns: 2.2rem 2.6rem 2.2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty button {
  height: 2.2rem;
  border: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.qty span {
  text-align: center;
}

.summary-box {
  display: grid;
  gap: 0.75rem;
  align-self: start;
  position: sticky;
  top: 5.5rem;
}

.summary-row {
  justify-content: space-between;
  color: var(--muted);
}

.summary-row.total {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 850;
}

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

th,
td {
  text-align: left;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.table-wrap {
  overflow: auto;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 1rem;
}

.compact {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.65);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.94);
  box-shadow: var(--shadow);
  transform: translateY(160%);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.code-pill {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.11);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.83rem;
}

.checkout-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent),
    rgba(255, 255, 255, 0.035);
}

.card-preview {
  display: grid;
  gap: 0.85rem;
  min-height: 170px;
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.2)),
    #111827;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.card-chip {
  width: 2.6rem;
  height: 1.85rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #d6a94a, #fff3b0);
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 1rem, 1200px);
  }

  .site-header,
  .site-footer,
  .section-head,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .inline-actions,
  .row-actions {
    flex-wrap: wrap;
  }

  .hero-media img {
    height: 360px;
  }

  .cart-row,
  .license-row,
  .ticket-row,
  .activity-row {
    grid-template-columns: 1fr;
  }
}
