:root {
  --bg: #0d1117;
  --bg-soft: #141b25;
  --panel: rgba(20, 27, 37, 0.88);
  --panel-strong: #18212d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #a3b0c2;
  --gold: #ffb648;
  --gold-soft: #ffe4b6;
  --teal: #47d7c1;
  --danger: #ff7b72;
  --success: #43d787;
  --warning: #ffb648;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(71, 215, 193, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1016 0%, #0f1620 48%, #0c1118 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header,
.site-footer,
.section,
.hero,
.feature-strip,
.page-shell,
.dashboard-header,
.stats-grid {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ff8a3d);
  color: #11161f;
  box-shadow: 0 18px 40px rgba(255, 182, 72, 0.22);
}

.brand strong {
  display: block;
  font-family: "Sora", sans-serif;
}

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

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

.site-nav a,
.nav-button {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-nav a:hover,
.nav-button:hover {
  color: var(--text);
}

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash.success {
  background: rgba(67, 215, 135, 0.12);
  border-color: rgba(67, 215, 135, 0.2);
}

.flash.error {
  background: rgba(255, 123, 114, 0.12);
  border-color: rgba(255, 123, 114, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 54px 0 36px;
}

.hero-copy,
.hero-panel,
.panel,
.catalog-card,
.download-card,
.stat-card,
.stack-card {
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(255, 182, 72, 0.12);
  border: 1px solid rgba(255, 182, 72, 0.16);
}

.hero h1,
.section-heading h1,
.section-heading h2,
.offer-box h3,
.panel h2,
.catalog-card h3,
.download-card h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.05;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.catalog-card p,
.download-card p,
.panel p,
.feature-strip p,
.offer-box p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-price {
  display: inline-flex;
  flex-direction: column;
  margin: 24px 0 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-price .price-compare,
.offer-price span {
  text-decoration: line-through;
  color: var(--muted);
}

.hero-price strong,
.offer-price strong {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--gold);
  font-family: "Sora", sans-serif;
}

.hero-price small {
  color: var(--muted);
}

.hero-actions,
.admin-actions,
.card-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ff8a3d);
  color: #10141c;
  box-shadow: 0 22px 45px rgba(255, 182, 72, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 123, 114, 0.28);
  color: #ffd6d2;
}

.button-block {
  width: 100%;
}

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

.proof-row div,
.stat-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-row strong,
.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
  font-family: "Sora", sans-serif;
}

.proof-row span,
.stat-card span {
  color: var(--muted);
}

.hero-panel {
  min-height: 100%;
}

.stack-card,
.panel,
.catalog-card,
.download-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stack-card {
  padding: 28px;
  border-radius: 30px;
}

.stack-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.stack-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 36px;
}

.feature-strip article {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-strip h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.section {
  padding: 54px 0;
}

.section-dark {
  padding: 42px 32px 54px;
  border-radius: 34px;
  background: rgba(7, 11, 16, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading.compact h1,
.section-heading.compact h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 12px 0 12px;
}

.section-heading h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
}

.catalog-grid,
.benefit-grid,
.member-grid,
.systems-admin-grid {
  display: grid;
  gap: 18px;
}

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

.catalog-card,
.download-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
}

.catalog-card::before,
.download-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.catalog-index {
  display: inline-flex;
  margin-bottom: 14px;
  font-family: "Sora", sans-serif;
  color: rgba(255, 255, 255, 0.3);
}

.catalog-top {
  display: flex;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--gold-soft);
  background: rgba(255, 182, 72, 0.1);
  border: 1px solid rgba(255, 182, 72, 0.14);
}

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

.benefit-grid article,
.order-item,
.mini-note {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 182, 72, 0.08), rgba(71, 215, 193, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--teal);
}

.offer-price {
  text-align: right;
}

.page-shell {
  padding: 30px 0 70px;
}

.form-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.form-wrap.narrow {
  max-width: 620px;
}

.checkout-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel {
  padding: 26px;
  border-radius: 28px;
}

.panel h2,
.system-admin-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.form-panel,
.system-edit-form,
.inline-form {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 182, 72, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 182, 72, 0.12);
}

.helper,
.helper a {
  color: var(--muted);
}

.error-text {
  color: #ffc9c4;
}

.summary-list,
.summary-list.compact {
  display: grid;
  gap: 14px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 8px 0 22px;
}

.dashboard-status {
  max-width: 320px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-success {
  background: rgba(67, 215, 135, 0.14);
  color: #b4f1ca;
}

.badge-warning {
  background: rgba(255, 182, 72, 0.14);
  color: #ffe0ae;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #dae2ef;
}

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

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

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.order-item p,
.order-item small {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.create-panel {
  margin-bottom: 18px;
}

.inline-form {
  grid-template-columns: 1.2fr 0.8fr 0.45fr 1.4fr auto auto;
  align-items: center;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line span {
  margin: 0;
}

.checkbox-line input {
  width: auto;
}

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

.system-admin-card {
  display: grid;
  gap: 16px;
}

.system-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.danger-form {
  justify-self: flex-start;
}

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

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

.orders-table th,
.orders-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.orders-table th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.orders-table small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 44px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1040px) {
  .hero,
  .checkout-grid,
  .dashboard-grid,
  .systems-admin-grid,
  .feature-strip,
  .catalog-grid,
  .benefit-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .offer-box,
  .dashboard-header,
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-price {
    text-align: left;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .proof-row,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 26px;
  }

  .panel,
  .stack-card,
  .catalog-card,
  .download-card {
    padding: 20px;
  }

  .hero h1 {
    max-width: none;
  }
}
