:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --secondary: #0f172a;
  --background-color: #f4f7fb;
  --background-soft: #edf4f8;
  --surface-color: #ffffff;
  --surface-muted: #eef4fb;
  --surface-strong: #d7e6fb;
  --surface-warm: #fff7ed;
  --text-color: #1f2937;
  --heading-color: #0f172a;
  --muted-text: #526173;
  --border-color: #d9e2ee;
  --border-strong: #c5d5e7;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --success: #15803d;
  --warning: #b45309;
  --danger: #dc2626;
  --success-soft: rgba(21, 128, 61, 0.1);
  --warning-soft: rgba(180, 83, 9, 0.12);
  --danger-soft: rgba(220, 38, 38, 0.08);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at top, rgba(20, 184, 166, 0.12), transparent 30%),
    radial-gradient(circle at right, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #edf4f8 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -2;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
}

body::before {
  top: 7rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(37, 99, 235, 0.08);
}

body::after {
  left: 4rem;
  bottom: 6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(20, 184, 166, 0.08);
}

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

button {
  font: inherit;
}

.site-shell,
.admin-shell {
  min-height: 100vh;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  filter: blur(24px);
  opacity: 0.8;
  pointer-events: none;
}

.page-glow-left {
  top: -8rem;
  left: -8rem;
  background: rgba(37, 99, 235, 0.09);
}

.page-glow-right {
  top: 8rem;
  right: -8rem;
  background: rgba(20, 184, 166, 0.08);
}

.site-header,
.hero,
.section,
.admin-header,
.admin-section,
.admin-summary {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.brand strong {
  color: var(--heading-color);
}

.brand small {
  display: block;
  color: var(--muted-text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.top-nav,
.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-nav a,
.admin-nav a {
  color: var(--muted-text);
  font-weight: 500;
}

.top-nav a:hover,
.admin-nav a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.5rem;
  padding: 2.25rem 0 2rem;
}

.hero-copy,
.hero-panel,
.info-card,
.checkout-preview,
.summary-card,
.table-shell,
.event-item,
.admin-note {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.checkout-preview {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(20, 184, 166, 0.04));
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  color: var(--heading-color);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.info-card p,
.checkout-steps li,
.admin-note p,
.event-item p,
.product-description {
  color: var(--muted-text);
}

.hero-actions,
.dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-color);
  color: var(--heading-color);
}

.hero-points,
.checkout-steps {
  padding-left: 1.2rem;
}

.hero-points li,
.checkout-steps li {
  margin-bottom: 0.55rem;
}

.spotlight-card {
  height: 100%;
  min-height: 18rem;
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #eff5ff 0%, #d7e6fb 100%);
}

.spotlight-card h2,
.section-heading h2,
.admin-header h1,
.event-type,
.product-name,
.dialog-meta strong {
  color: var(--heading-color);
}

.spotlight-label,
.product-price-label,
.event-meta span,
.admin-table span {
  color: var(--muted-text);
}

.spotlight-stats {
  display: grid;
  gap: 1rem;
}

.spotlight-stats div,
.dialog-meta div {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.spotlight-stats dt,
.dialog-meta span {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.spotlight-stats dd,
.dialog-meta strong {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
}

.section {
  padding: 1rem 0 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-heading h2,
.admin-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.product-grid,
.pillars,
.admin-summary {
  display: grid;
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card,
.info-card,
.summary-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.product-card {
  background: var(--surface-color);
  box-shadow: var(--shadow-soft);
}

.product-card:hover,
.info-card:hover,
.summary-card:hover,
.event-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.product-visual {
  height: 10rem;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(135deg, #eff5ff, #eef4fb 60%, #fff7ed);
}

.product-copy,
.product-footer,
.info-card,
.summary-card {
  padding: 1.2rem;
}

.product-topline,
.product-footer,
.dialog-head,
.event-item,
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-category,
.product-status,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-category {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.product-status {
  background: var(--surface-muted);
  color: var(--muted-text);
}

.product-name {
  margin-bottom: 0.55rem;
}

.product-description {
  min-height: 3.75rem;
}

.product-price {
  margin: 0;
  color: var(--heading-color);
  font-weight: 700;
}

.pillars {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.split-section {
  padding-top: 0.25rem;
}

.checkout-preview {
  padding-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.04), rgba(37, 99, 235, 0.04));
}

.product-dialog {
  width: min(42rem, calc(100% - 2rem));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-color);
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.product-dialog::backdrop {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(3px);
}

.dialog-close {
  background: transparent;
  color: var(--muted-text);
  border: 0;
  cursor: pointer;
}

.dialog-description {
  color: var(--muted-text);
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 1.5rem;
  border-right: 1px solid var(--border-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 251, 0.9)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(20, 184, 166, 0.03));
  backdrop-filter: blur(10px);
}

.admin-brand {
  margin-bottom: 2rem;
}

.admin-nav {
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.admin-note {
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, #f4f8ff 0%, #e3edff 100%);
}

.admin-main {
  padding: 1.5rem 0 2rem;
}

.admin-header {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.admin-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1rem auto;
}

.summary-card p,
.summary-card strong {
  margin: 0;
}

.summary-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2rem;
  color: var(--heading-color);
}

.admin-section {
  margin-top: 1rem;
}

.table-shell {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.88);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  color: var(--text-color);
}

.admin-table th {
  color: var(--muted-text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(238, 244, 251, 0.75);
}

.status-live,
.status-paid {
  background: var(--success-soft);
  color: var(--success);
}

.status-draft,
.status-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.event-stream {
  display: grid;
  gap: 0.8rem;
}

.event-item {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-type {
  margin: 0 0 0.35rem;
}

.event-meta {
  text-align: right;
}

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

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

  .dialog-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-heading.compact,
  .product-footer,
  .admin-header,
  .event-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    border-radius: 24px;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-copy,
  .hero-panel,
  .checkout-preview,
  .admin-header {
    padding: 1.4rem;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .admin-table {
    min-width: 720px;
  }

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