:root {
  --bg: #0b0b0f;
  --panel: #17171d;
  --panel-soft: #202029;
  --panel-alt: #111116;
  --red: #e53935;
  --gold: #d6b15e;
  --gold-soft: rgba(214, 177, 94, 0.18);
  --text: #f5f5f7;
  --muted: #b6b7c0;
  --line: rgba(255, 255, 255, 0.08);
  --success: #38d39f;
  --warning: #f5c76b;
  --danger: #ff6b6b;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(229, 57, 53, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(214, 177, 94, 0.1), transparent 35%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 15, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(214, 177, 94, 0.7);
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.28), rgba(214, 177, 94, 0.08));
  border-radius: 14px;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(229, 57, 53, 0.28);
}

.brand-text {
  position: relative;
  left: -2px;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-button,
.login-button,
.menu-toggle,
.close-button,
.quantity-button,
.shipment-toggle,
.faq-question {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-button:hover,
.cart-button:focus-visible {
  border-color: rgba(214, 177, 94, 0.7);
  box-shadow: 0 8px 18px rgba(214, 177, 94, 0.22);
}

.cart-icon {
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff7a59);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.login-button,
.primary-btn,
.secondary-btn,
.product-action,
.checkout-submit,
.quantity-button,
.admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.login-button {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.primary-btn,
.checkout-submit,
.product-action {
  padding: 0 22px;
  background: linear-gradient(135deg, var(--red), #ff6d4a);
  color: white;
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.28);
}

.secondary-btn {
  padding: 0 22px;
  background: transparent;
  border: 1px solid rgba(214, 177, 94, 0.7);
  color: var(--gold);
}

.primary-btn:hover,
.secondary-btn:hover,
.product-action:hover,
.checkout-submit:hover,
.login-button:hover,
.cart-button:hover,
.admin-toggle:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 40px;
}

.hero {
  position: relative;
  padding: 88px 0 110px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 42px;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 600px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold));
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.7);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.orb-red {
  width: 320px;
  height: 320px;
  background: rgba(229, 57, 53, 0.24);
  top: 18%;
  left: 8%;
}

.orb-gold {
  width: 240px;
  height: 240px;
  background: rgba(214, 177, 94, 0.18);
  bottom: 10%;
  right: 8%;
}

.glow-card {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.94), rgba(17, 17, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card-main {
  width: min(100%, 430px);
  padding: 26px 24px 22px;
  transform: rotate(-9deg);
  z-index: 2;
}

.card-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 177, 94, 0.14);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coin-cluster {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 34px 0 26px;
}

.robux-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(214, 177, 94, 1), rgba(255, 232, 176, 0.6));
  color: #251b0d;
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(214, 177, 94, 0.4);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.mini-stats small {
  color: var(--muted);
}

.mini-stats strong {
  font-size: 1.05rem;
}

.card-side {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  min-width: 150px;
  transform: rotate(12deg);
  z-index: 3;
}

.card-side span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-side strong {
  color: var(--gold);
  font-size: 1.8rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.center {
  justify-content: center;
  text-align: center;
}

.catalog-tools {
  min-width: min(100%, 300px);
}

.catalog-tools input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0 16px;
}

.backend-notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 177, 94, 0.45);
  border-radius: 14px;
  background: rgba(214, 177, 94, 0.08);
  color: var(--gold);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.95), rgba(17, 17, 22, 0.97));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 177, 94, 0.42);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.42), 0 0 20px rgba(229, 57, 53, 0.1);
}

.product-card.featured {
  border-color: rgba(214, 177, 94, 0.64);
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.97), rgba(18, 15, 12, 0.97));
}

.product-card.featured::before {
  content: "Rekomendasi";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(214, 177, 94, 0.14);
  border: 1px solid rgba(214, 177, 94, 0.5);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(214, 177, 94, 0.2), rgba(229, 57, 53, 0.12));
  color: var(--gold);
  border: 1px solid rgba(214, 177, 94, 0.36);
  box-shadow: inset 0 0 18px rgba(214, 177, 94, 0.1);
}

.label-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.06em;
}

.product-price {
  display: block;
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
}

.product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: auto;
}

.product-secondary {
  min-width: 120px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
}

.steps-grid,
.status-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card,
.payment-item,
.status-item {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.96), rgba(17, 17, 22, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.18), rgba(214, 177, 94, 0.1));
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-card h3,
.payment-item h3,
.status-item h3 {
  margin: 16px 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.step-card p,
.payment-item p,
.status-item p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.payment-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
}

.payment-item .payment-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(214, 177, 94, 0.08);
  border: 1px solid rgba(214, 177, 94, 0.4);
  font-size: 1.4rem;
}

.payment-item .status-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-badge[data-status="active"],
.status-pill[data-status="Menunggu Pembayaran"] {
  background: rgba(245, 199, 107, 0.14);
  color: var(--warning);
}

.status-badge[data-status="processing"],
.status-pill[data-status="Diproses"] {
  background: rgba(56, 211, 159, 0.12);
  color: var(--success);
}

.status-badge[data-status="done"],
.status-pill[data-status="Selesai"] {
  background: rgba(105, 178, 255, 0.14);
  color: #7bb9ff;
}

.status-badge[data-status="cancelled"],
.status-pill[data-status="Dibatalkan"] {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-item {
  min-height: 210px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat {
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.95), rgba(17, 17, 22, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-stat small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat strong {
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.admin-table-wrap {
  padding: 20px;
  border-radius: 22px;
  background: rgba(23, 23, 29, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.detail-order-list {
  display: grid;
  gap: 18px;
}

.order-detail-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.96), rgba(17, 17, 22, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-detail-header strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.order-detail-header span {
  color: var(--muted);
}

.order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
}

.order-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table-wrap h3 {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.admin-page {
  max-width: 1000px;
}

.legal-document {
  max-width: 880px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.96), rgba(17, 17, 22, 0.98));
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 16px 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.legal-document h2 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-document a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-notice {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(214, 177, 94, 0.08);
}

.admin-login {
  max-width: 500px;
  margin: 0 auto;
}

.admin-login .primary-btn {
  width: 100%;
}

.admin-config-section {
  margin-top: 24px;
}

.admin-help {
  color: var(--muted);
  line-height: 1.7;
}

.admin-product-list,
.admin-payment-list {
  display: grid;
  gap: 14px;
}

.admin-product-row,
.admin-payment-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-product-row {
  grid-template-columns: 1fr 1fr auto auto;
  align-items: center;
}

.admin-product-row > label,
.admin-payment-fields > label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.admin-product-row input:not([type="checkbox"]),
.admin-payment-row input,
.admin-payment-row textarea {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 10px 12px;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.admin-payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-payment-fields {
  display: grid;
  gap: 12px;
}

.admin-payment-row textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-new-payment {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-save-payments {
  width: 100%;
  margin-top: 16px;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 22px;
  text-align: left;
  font-weight: 600;
  background: none;
  color: var(--text);
}

.faq-question::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--gold);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.footer {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(15, 15, 20, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 18px;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.footer a {
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 14px;
}

.tagline {
  margin: 0;
  color: var(--gold);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  background: rgba(11, 11, 15, 0.98);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-summary {
  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
}

.close-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1;
}

.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.cart-item h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.quantity-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.quantity-value {
  width: 24px;
  text-align: center;
  font-weight: 700;
}

.remove-item {
  justify-self: end;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--danger);
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: none;
  display: grid;
  gap: 14px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-row.total {
  color: var(--text);
  font-size: 1.2rem;
}

.full-width {
  width: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 9, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(17, 17, 22, 0.98);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.product-modal {
  width: min(620px, 100%);
}

.checkout-modal {
  width: min(820px, 100%);
}

.modal-body,
.checkout-body {
  padding: 26px 22px 22px;
}

.product-detail {
  display: grid;
  gap: 22px;
}

.product-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.product-detail-title {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.price-block strong {
  font-size: 2rem;
  color: var(--gold);
}

.product-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-stats div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.detail-stats small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
}

.checkout-header {
  margin-bottom: 16px;
}

.checkout-header h3 {
  margin: 10px 0 0;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0 14px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px;
}

.order-summary {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.summary-card {
  display: grid;
  gap: 6px;
}

.summary-card h4,
.summary-card p {
  margin: 0;
}

.summary-card h4 {
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.summary-card p {
  color: var(--muted);
}

.summary-breakdown {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-row-line.total {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-submit {
  width: 100%;
  min-height: 52px;
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(214, 177, 94, 0.5);
  background: rgba(214, 177, 94, 0.08);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

.status-modal {
  width: min(620px, 100%);
}

.status-order-card {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.status-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-order-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.status-order-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.payment-error {
  margin: 0;
  color: var(--danger);
  line-height: 1.6;
}

.status-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(17, 17, 22, 0.96);
  border: 1px solid rgba(214, 177, 94, 0.4);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.01);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .checkout-layout,
  .product-grid,
  .steps-grid,
  .status-grid,
  .payment-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .checkout-layout,
  .steps-grid,
  .status-grid,
  .payment-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(17, 17, 22, 0.98);
    border: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 90px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    min-height: 74px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 12px;
  }

  .card-main {
    transform: none;
  }

  .card-side {
    right: 0;
    bottom: 2%;
  }

  .admin-product-row,
  .admin-new-payment {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 24px 18px;
  }
}
