:root {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --line: #e9ecf5;
  --text: #0f1530;
  --muted: #5c6280;
  --accent: #5a42ff;
  --accent-2: #7f6bff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #f6f3ff 0%, var(--bg) 40%);
}

.app-shell {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 8px;
}

.brand h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7b73ff, #4b2ff6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-group.secondary {
  margin-top: 18px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #10172f;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
}

.menu-item:hover,
.menu-item.active {
  background: #f1edff;
  color: var(--accent);
}

.menu-item svg {
  width: 19px;
  height: 19px;
  color: #687190;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-item.active svg,
.menu-item:hover svg {
  color: var(--accent);
}

.nav-dot {
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  display: grid;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.main-content {
  padding: 24px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.search {
  flex: 1;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px 16px;
  color: #8087a6;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-actions a {
  color: #202649;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
}

.ghost-btn,
.primary-btn {
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
}

.ghost-btn {
  background: #f5f7fd;
  color: #232b4f;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(89, 66, 255, 0.25);
}

a.ghost-btn,
a.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero {
  background: linear-gradient(110deg, #f4f0ff, #eef5ff);
  border: 1px solid #e6ebf8;
  border-radius: 20px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 700px;
}

.hero p {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.45;
  color: #2f365d;
  max-width: 700px;
}

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

.hero .primary-btn {
  margin-top: 22px;
  font-size: 17px;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.cube {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 70px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #8f7fff, #4f47fa);
  box-shadow: 0 30px 70px rgba(90, 66, 255, 0.33);
}

.orbit-card {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: #ffffffde;
  display: grid;
  place-items: center;
  font-size: 27px;
  border: 1px solid #e8ecfb;
}

.orbit-card.one {
  top: 18px;
  left: 54px;
}

.orbit-card.two {
  top: 20px;
  right: 44px;
}

.orbit-card.three {
  right: 8px;
  bottom: 48px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
}

.category {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.category h3 {
  margin: 0;
  font-size: 21px;
}

.category p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.section-head h3 {
  margin: 0;
  font-size: 34px;
}

.section-head a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.cover {
  border-radius: 12px;
  height: 128px;
}

.cover.purple {
  background: linear-gradient(135deg, #8e78ff, #6651f7);
}

.cover.rose {
  background: linear-gradient(135deg, #f7e5ed, #ffeef4);
}

.cover.green {
  background: linear-gradient(135deg, #7adf9f, #53c87e);
}

.cover.amber {
  background: linear-gradient(135deg, #ffbf67, #eea23f);
}

.cover.blue {
  background: linear-gradient(135deg, #7fb5ff, #5a93f0);
}

.product h4 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

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

.meta span {
  font-size: 13px;
  color: var(--accent);
  background: #f1efff;
  border-radius: 999px;
  padding: 6px 10px;
}

.meta strong {
  font-size: 32px;
  letter-spacing: 0;
}

.page-header {
  background: linear-gradient(110deg, #ffffff, #eef5ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.page-header.compact {
  padding: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-header h2,
.policy h2,
.detail-copy h2,
.auth-panel h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
}

.page-header p,
.policy p,
.detail-copy p,
.auth-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 820px;
}

.quick-links,
.filter-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill,
.field,
.select-field {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #293051;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.field,
.select-field {
  border-radius: 10px;
  min-width: 180px;
}

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

.content-grid.two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.panel,
.metric,
.policy,
.auth-panel,
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

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

.metric span,
.panel p,
.detail-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0 0;
}

.panel h3,
.metric h3,
.detail-card h3,
.policy h3 {
  margin: 0;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-top: 12px;
  padding: 7px 10px;
}

.status.green {
  background: #e8f8ed;
  color: #1f8e4f;
}

.status.yellow {
  background: #fff3dc;
  color: #a86900;
}

.status.red {
  background: #ffe8e8;
  color: #bd3535;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.detail-layout,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.detail-hero {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(90, 66, 255, 0.92), rgba(73, 154, 233, 0.85)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 19px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
}

.price-box strong {
  display: block;
  font-size: 38px;
  margin: 8px 0 14px;
}

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.check-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.policy {
  max-width: 920px;
}

.policy section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.auth-layout {
  max-width: 980px;
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
}

.form-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  min-height: 22px;
}

.trust-strip {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f9ff;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.trust-strip strong {
  font-size: 18px;
}

.trust-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 1380px) {
  .app-shell {
    grid-template-columns: 222px minmax(0, 1fr);
  }

  .main-content {
    padding: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .categories {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: none;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .hero h2 {
    font-size: 36px;
  }

  .section-head h3 {
    font-size: 28px;
  }

  .product-grid,
  .categories,
  .trust-strip,
  .content-grid,
  .content-grid.two,
  .listing-grid,
  .detail-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .menu-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .menu-group.secondary {
    margin-top: 0;
  }
}
