:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --soft-2: #eef3f7;
  --line: #dfe5ec;
  --text: #121722;
  --muted: #657083;
  --brand: #5fcbd1;
  --brand-dark: #159aa4;
  --blue: #1769ff;
  --blue-dark: #0d4fd1;
  --green: #0f9f6e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand img {
  width: 172px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: #354052;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav a:hover {
  background: var(--soft);
  color: var(--text);
}

.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: center;
  min-height: auto;
  padding: clamp(42px, 6vh, 76px) 0 clamp(46px, 6vh, 80px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.6vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  border: 0;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 105, 255, 0.24);
  cursor: pointer;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.primary:hover,
.secondary:hover {
  filter: brightness(1.03);
}

.full {
  width: 100%;
}

.deal-card,
.listing-panel,
.order-form,
.card-grid article,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(35, 47, 64, 0.08);
}

.deal-card {
  padding: clamp(20px, 3vw, 34px);
}

.deal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.green,
.badge.hot {
  background: #ecfbf5;
  color: var(--green);
}

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

.deal-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.deal-item h2 {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.deal-item p,
.section-head p,
.card-grid p,
.steps p,
.helper,
.footer p {
  color: var(--muted);
  line-height: 1.58;
}

.item-thumb {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item-thumb span,
.small-star {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fff, #aebbc8 54%, #566474);
  clip-path: polygon(50% 0, 64% 36%, 100% 38%, 70% 58%, 80% 100%, 50% 75%, 20% 100%, 30% 58%, 0 38%, 36% 36%);
}

.deal-grid,
.trust-strip,
.stats {
  display: grid;
  gap: 12px;
}

.deal-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
}

.deal-grid span,
.trust-strip span,
.stats span {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.deal-grid strong,
.stats strong {
  color: var(--text);
  font-size: 1.12rem;
}

.trust-strip {
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 0;
}

.trust-strip span {
  min-height: 58px;
  place-items: center;
  text-align: center;
  color: #354052;
}

.section {
  padding: 38px 0 52px;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.filter-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #354052;
  font-weight: 900;
  cursor: pointer;
}

.filter-tab.active,
.filter-tab:hover {
  border-color: rgba(23, 105, 255, 0.55);
  background: #eef5ff;
  color: var(--blue);
}

.empty-filter {
  padding: 34px;
  margin-bottom: 18px;
  border: 1px dashed #c7d1df;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.empty-filter h3 {
  margin-bottom: 6px;
}

.empty-filter p {
  margin: 0;
  color: var(--muted);
}

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

.item-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 370px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 47, 64, 0.07);
  cursor: pointer;
}

.item-card[hidden] {
  display: none;
}

.item-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fafc, #eef3f7);
}

.item-card h3 {
  min-height: 44px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.item-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.item-card dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.item-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.item-detail {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(34px, 6vh, 74px) 0;
  min-height: calc(100vh - 76px);
}

.detail-media,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(35, 47, 64, 0.08);
}

.detail-media {
  display: grid;
  place-items: center;
  min-height: 560px;
  background: linear-gradient(180deg, #fbfcfe, #eef4f8);
}

.detail-media img {
  width: min(420px, 80%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(35, 47, 64, 0.16));
}

.detail-panel {
  padding: clamp(22px, 4vw, 42px);
}

.detail-panel h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.detail-stats span {
  display: grid;
  gap: 5px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 850;
}

.detail-stats strong {
  color: var(--text);
  font-size: 1.18rem;
}

.detail-form {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.payment-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.crypto-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.crypto-options button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.crypto-options button.selected,
.crypto-options button:hover {
  border-color: rgba(23, 105, 255, 0.55);
  background: #eef5ff;
  color: var(--blue);
}

.payment-note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.payment-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.wallet-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.wallet-box code {
  display: block;
  min-height: 48px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  overflow-wrap: anywhere;
}

.item-art {
  position: relative;
  width: min(390px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.95) 0 19%, rgba(202, 213, 224, 0.86) 20% 34%, rgba(103, 118, 135, 0.48) 35% 49%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, rgba(95, 203, 209, 0.14), rgba(23, 105, 255, 0.08));
  filter: drop-shadow(0 28px 45px rgba(40, 55, 72, 0.18));
}

.item-art::before,
.item-art::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #ffffff, #b8c4cf 50%, #596778);
  clip-path: polygon(50% 0, 64% 36%, 100% 38%, 70% 58%, 80% 100%, 50% 75%, 20% 100%, 30% 58%, 0 38%, 36% 36%);
  filter: drop-shadow(0 18px 20px rgba(61, 73, 89, 0.2));
}

.item-art::before {
  width: 172px;
  height: 172px;
  left: 72px;
  top: 112px;
}

.item-art::after {
  width: 108px;
  height: 108px;
  right: 82px;
  top: 164px;
  transform: rotate(18deg);
}

.crown-shape {
  position: absolute;
  inset: 86px 74px auto;
  height: 150px;
  transform: rotate(-10deg);
}

.crown-shape span {
  position: absolute;
  bottom: 0;
  width: 64px;
  height: 128px;
  background: linear-gradient(160deg, #ffffff, #aebbc8 58%, #5a6878);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.crown-shape span:nth-child(1) {
  left: 0;
  transform: rotate(-24deg);
}

.crown-shape span:nth-child(2) {
  left: 88px;
  height: 166px;
}

.crown-shape span:nth-child(3) {
  left: 176px;
  transform: rotate(24deg);
}

.listing-panel {
  padding: clamp(22px, 3vw, 34px);
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.listings {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pay-row {
  display: grid;
  grid-template-columns: 44px minmax(130px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.pay-row.selected,
.pay-row:hover {
  border-color: rgba(23, 105, 255, 0.62);
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.1);
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--blue);
  font-weight: 950;
}

.pay-name {
  font-weight: 900;
}

.pay-price {
  color: var(--muted);
  text-align: right;
}

.pay-price strong {
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.card-grid article {
  min-height: 260px;
  padding: 24px;
}

.card-grid .secondary {
  margin-top: 10px;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #354052;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}

.helper {
  margin: 0;
  font-size: 0.94rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 58px 0;
}

.steps article {
  padding: 22px;
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  max-width: 980px;
  margin: 0 auto 10px;
  font-size: 0.94rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .item-detail,
  .order-section {
    grid-template-columns: 1fr;
  }

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

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

  .showcase {
    min-height: 430px;
  }

  .detail-media {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 1440px);
  }

  .topbar {
    display: grid;
    justify-items: start;
    padding: 12px 0;
  }

  .brand img {
    width: 148px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero-grid {
    min-height: 0;
    padding: 36px 0;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .deal-grid,
  .trust-strip,
  .stats,
  .detail-stats,
  .crypto-options,
  .steps,
  .card-grid,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .deal-item {
    grid-template-columns: 78px 1fr;
  }

  .item-thumb {
    width: 64px;
    height: 64px;
  }

  .section,
  .card-grid,
  .steps {
    padding: 38px 0;
  }

  .showcase {
    min-height: 320px;
  }

  .detail-media {
    min-height: 320px;
  }

  .order-section {
    padding: 18px;
  }

  .pay-row {
    grid-template-columns: 40px 1fr;
  }

  .pay-price {
    grid-column: 2;
    text-align: left;
  }
}

.item-card img.image-missing,
.detail-media img.image-missing {
  opacity: 0.35;
  background: var(--soft-2);
}

.wallet-warning {
  margin-top: 10px;
  color: #b45309;
  font-weight: 800;
}


.order-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5ff;
  color: #174a9c;
  font-weight: 800;
}
.order-status.error {
  background: #fff2f2;
  color: #a11f1f;
}
.admin-page {
  padding: 42px 0;
}
.admin-login {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(35, 47, 64, 0.08);
}
.admin-login img {
  width: 180px;
  margin-bottom: 18px;
}
.admin-login label, .detail-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 900;
}
.admin-login input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-actions {
  display: flex;
  gap: 10px;
}
.orders-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}
.orders-table th, .orders-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.orders-table th {
  background: var(--soft);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.txid-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-weight: 900;
}
.txid-field input, .admin-filters input, .admin-filters select, .status-change {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-stats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}
.admin-stats strong {
  color: var(--text);
  font-size: 1.45rem;
}
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  margin-bottom: 12px;
}
.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #174a9c;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .admin-stats, .admin-filters { grid-template-columns: 1fr; }
}
