:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: rgba(9, 22, 40, 0.84);
  --panel-strong: rgba(12, 27, 48, 0.94);
  --card: rgba(14, 31, 54, 0.92);
  --text: #edf4ff;
  --muted: #9fb1c8;
  --line: rgba(159, 177, 200, 0.16);
  --primary: #00c2a8;
  --primary-dark: #00a48e;
  --accent: #39a0ff;
  --gold: #ffc857;
  --success: #39d98a;
  --warning: #ffb020;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 168, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(57, 160, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #091525 35%, #0d1b2d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0 12px;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.58);
  border-bottom: 1px solid rgba(159, 177, 200, 0.08);
}

.nav,
.footer-layout,
.dashboard-head,
.tracker-row,
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  padding: 42px 0 32px;
}

.hero-grid,
.checkout-layout,
.tracking-layout,
.admin-grid,
.admin-layout {
  display: grid;
  gap: 24px;
}

.hero-grid,
.checkout-layout {
  grid-template-columns: 1.18fr 0.82fr;
  align-items: start;
}

.tracking-layout,
.admin-layout {
  grid-template-columns: 1fr;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 11ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

p {
  margin: 0;
  line-height: 1.7;
}

.lead,
.section-heading p,
.timeline-item p,
.product-card p,
.info-card p,
.site-footer p,
.inline-note,
.hero-stats span,
.result-grid span {
  color: var(--muted);
}

.section {
  padding: 36px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.hero-copy {
  padding-top: 10px;
}

.hero-copy .lead {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hero-stats div,
.product-card,
.panel,
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats div::before,
.product-card::before,
.panel::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-stats div {
  border-radius: 22px;
  padding: 20px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.glass-card,
.panel {
  border-radius: var(--radius);
  padding: 26px;
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(11, 24, 42, 0.96), rgba(13, 29, 50, 0.9)),
    var(--panel-strong);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 177, 200, 0.12);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(12, 27, 48, 0.97), rgba(10, 22, 39, 0.94)),
    var(--card);
}

.product-card:nth-child(2),
.product-card:nth-child(4) {
  transform: translateY(12px);
}

.product-card .meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.product-card .meta div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 177, 200, 0.09);
}

.product-card .meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.92rem;
}

.chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.chip {
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), #ffd978);
}

.price {
  margin: 16px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.price small {
  font-size: 1rem;
  color: var(--muted);
}

.simple-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stack {
  display: grid;
  gap: 18px;
}

.accent-card {
  background: linear-gradient(160deg, rgba(0, 194, 168, 0.22), rgba(57, 160, 255, 0.15)), var(--panel-strong);
}

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

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

.field label {
  color: #d6e3f7;
  font-weight: 700;
  font-size: 0.92rem;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(159, 177, 200, 0.14);
  border-radius: 16px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #7f95b0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(57, 160, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(57, 160, 255, 0.12);
}

select {
  color-scheme: dark;
}

select option {
  color: #edf4ff;
  background: #0f1d31;
}

.checkout-summary,
.tracking-result,
.status-meta {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 177, 200, 0.12);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #041119;
  background: linear-gradient(135deg, var(--primary), #5cf4dd);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #38d5bf);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 177, 200, 0.16);
}

.tracking-card,
.status-panel {
  max-width: 860px;
}

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

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.result-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 177, 200, 0.1);
}

.status-badge.pending {
  background: rgba(255, 176, 32, 0.14);
  color: var(--warning);
}

.status-badge.paid,
.status-badge.processing {
  background: rgba(57, 160, 255, 0.14);
  color: var(--accent);
}

.status-badge.failed {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.status-badge.successful,
.status-badge.delivered {
  background: rgba(57, 217, 138, 0.14);
  color: var(--success);
}

.status-badge.hold {
  background: rgba(159, 177, 200, 0.14);
  color: #d7e4f7;
}

.hidden {
  display: none;
}

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

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

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(159, 177, 200, 0.1);
}

.orders-table th {
  color: #dce8f8;
  font-family: "Space Grotesk", sans-serif;
}

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

.mini-button {
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(159, 177, 200, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.inline-note {
  min-height: 24px;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-panel h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.site-footer {
  padding: 24px 0 48px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .checkout-layout,
  .admin-grid,
  .product-grid,
  .hero-stats,
  .order-form,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(2),
  .product-card:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav,
  .footer-layout,
  .dashboard-head,
  .tracker-row,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result-grid,
  .product-card .meta {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}
