:root {
  --bg: #080b14;
  --panel: #111624;
  --panel-2: #171e30;
  --text: #f4f7ff;
  --muted: #94a0b8;
  --line: rgba(255,255,255,.08);
  --accent: #7c5cff;
  --accent-2: #23d5ab;
  --danger: #ff5d73;
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background:
  radial-gradient(circle at top right, rgba(124,92,255,.18), transparent 35%),
  linear-gradient(180deg, #090c15, #070a11 55%, #090c15);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: auto; }
.topbar {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px);
  background: rgba(8,11,20,.78); border-bottom: 1px solid var(--line);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display:flex; align-items:center; gap:11px; font-weight:800; letter-spacing:.4px; white-space:nowrap; }
.brand-logo { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; overflow:hidden; border-radius:12px; }
.brand-logo img { width:100%; height:100%; display:block; object-fit:contain; }
.brand-logo-fallback {
  width:100%; height:100%; display:grid; place-items:center; border-radius:12px;
  color:#fff; background:linear-gradient(135deg,#1ddb50,#008a35); font-size:13px; font-weight:900;
}
.navlinks { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.navlinks a:hover { color: var(--text); }
.store-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.store-nav .brand { justify-self: start; }
.store-nav .navlinks { justify-self: center; }
.btn {
  border: 0; cursor: pointer; border-radius: 12px; padding: 11px 18px;
  background: var(--accent); color: white; font-weight: 700;
}
.btn.secondary { background: var(--panel-2); border: 1px solid var(--line); }
.btn.danger { background: #b94a58; }
.btn.danger:hover { background: #c85a68; }
.btn:disabled,.small-btn:disabled { cursor:not-allowed; opacity:.55; }
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 800; font-size: 13px; letter-spacing: 2px; }
h1 { font-size: clamp(42px, 7vw, 74px); line-height: 1.03; margin: 14px 0 20px; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 650px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  min-height: 380px; border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(145deg, rgba(124,92,255,.2), rgba(35,213,171,.08)), var(--panel);
  padding: 28px; position: relative; overflow: hidden;
}
.orb { position: absolute; border-radius: 999px; filter: blur(1px); }
.orb.one { width: 240px; height: 240px; right: -60px; top: -50px; background: rgba(124,92,255,.45); }
.orb.two { width: 180px; height: 180px; left: -40px; bottom: -55px; background: rgba(35,213,171,.25); }
.hero-product { position: relative; z-index: 2; height: 100%; display:flex; flex-direction:column; justify-content:flex-end; }
.hero-icon { font-size: 96px; text-align: center; margin: auto; }
.hero-product small { color: var(--accent-2); }
.hero-product h3 { font-size: 26px; margin: 8px 0; }
.price { font-size: 24px; font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 7px; }
.section { padding: 38px 0 70px; }
#products.section { padding-bottom: 28px; }
#contact.section { padding-top: 18px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom: 22px; }
.section-head h2 { margin:0; font-size: 30px; }
.section-head p { margin:8px 0 0; color: var(--muted); }
.filters { display:flex; gap:10px; flex-wrap:wrap; }
.filter {
  border:1px solid var(--line); background:var(--panel); color:var(--muted);
  border-radius:999px; padding:9px 14px; cursor:pointer;
}
.filter.active, .filter:hover { background:var(--accent); color:white; }
.product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.product-card {
  background:var(--panel); border:1px solid var(--line); border-radius:20px; overflow:hidden;
  transition:.25s transform,.25s border-color; cursor:pointer;
}
.product-card:hover { transform:translateY(-5px); border-color:rgba(124,92,255,.7); }
.product-card:focus-visible { outline:2px solid var(--accent-2); outline-offset:4px; }
.product-image { aspect-ratio: 16/10; width:100%; object-fit:cover; background:var(--panel-2); }
.product-body { padding:18px; }
.badges { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:10px; }
.badge { font-size:12px; border-radius:999px; padding:5px 9px; background:rgba(124,92,255,.16); color:#b9aaff; }
.badge.green { background:rgba(35,213,171,.12); color:#6ff0d0; }
.product-card h3 { margin:0 0 8px; font-size:18px; }
.product-subtitle { margin:-3px 0 8px; color:#b9aaff; font-size:13px; font-weight:700; }
.product-card p { margin:0; color:var(--muted); font-size:14px; line-height:1.65; min-height:46px; }
.product-foot { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.contact-box {
  border:1px solid var(--line); background:linear-gradient(135deg, rgba(124,92,255,.15), rgba(35,213,171,.07));
  border-radius:22px; padding:28px; display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.footer { border-top:1px solid var(--line); padding:28px 0 40px; color:var(--muted); font-size:14px; }
.empty { grid-column:1/-1; color:var(--muted); text-align:center; padding:60px 0; }
.admin-shell { display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
.sidebar { background:#0a0e18; border-right:1px solid var(--line); padding:24px; display:flex; flex-direction:column; }
.sidebar .brand { margin-bottom:32px; }
.menu a { display:block; padding:12px 14px; border-radius:10px; color:var(--muted); margin-bottom:8px; }
.menu a.active, .menu a:hover { background:var(--panel-2); color:var(--text); }
.admin-user {
  margin-top:auto; padding-top:18px; border-top:1px solid var(--line);
  display:flex; flex-direction:column; gap:8px;
}
.admin-user small { color:var(--muted); font-size:12px; }
.admin-user strong { font-size:14px; word-break:break-all; }
.admin-user .btn { width:100%; }
.admin-login-page {
  min-height:100vh; display:grid; place-items:center; padding:24px;
}
.admin-login-card {
  width:min(420px,100%); padding:32px 28px; border:1px solid var(--line); border-radius:22px;
  background:rgba(17,22,36,.94); box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.admin-login-card .brand { margin-bottom:22px; }
.admin-login-card h1 { font-size:28px; margin:0 0 8px; }
.admin-login-card .login-sub { margin:0 0 22px; color:var(--muted); }
.password-field { position:relative; }
.password-field input { padding-right:86px; }
.password-toggle {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; color:var(--muted); cursor:pointer; font-weight:700; font-size:13px;
}
.login-error {
  margin:12px 0 0; padding:10px 12px; border-radius:10px; color:#ff9aaa;
  background:rgba(255,93,115,.1); border:1px solid rgba(255,93,115,.28); font-size:14px;
}
.admin-login-card .btn { width:100%; margin-top:16px; }
.admin-main { padding:30px; overflow:auto; }
.admin-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.admin-head h1 { font-size:32px; margin:0; }
.product-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.product-toolbar select { width:auto; min-width:170px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin-bottom:20px; }
.stat { background:var(--panel); border:1px solid var(--line); padding:18px; border-radius:16px; }
.stat small { color:var(--muted); }
.stat strong { display:block; font-size:26px; margin-top:8px; }
.table-wrap { background:var(--panel); border:1px solid var(--line); border-radius:18px; overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:850px; }
#productsSection table { min-width:1050px; }
th, td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; }
th { color:var(--muted); font-weight:600; }
.thumb { width:58px; height:42px; object-fit:cover; border-radius:8px; }
.actions { display:flex; gap:8px; }
.sort-order-control { display:flex; align-items:center; gap:7px; min-width:145px; }
.sort-order-input { width:76px; padding:7px 8px; }
.small-btn { padding:7px 10px; border:0; border-radius:8px; cursor:pointer; background:var(--panel-2); color:var(--text); }
.small-btn.danger {
  background: rgba(255, 93, 115, .14);
  color: #f3a3ae;
  border: 1px solid rgba(255, 93, 115, .32);
}
.small-btn.danger:hover {
  background: rgba(255, 93, 115, .24);
  color: #ffd4da;
}
.delete-order-card {
  width: min(460px, 100%);
}
.delete-order-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}
.modal {
  position:fixed; inset:0; background:rgba(0,0,0,.7); display:none; place-items:center; padding:18px; z-index:50;
}
.modal.show { display:grid; }
.modal-card { width:min(720px,100%); max-height:92vh; overflow:auto; background:#101522; border:1px solid var(--line); border-radius:20px; padding:24px; }
.modal-open { overflow:hidden; }
.purchase-modal { backdrop-filter:blur(8px); background:rgba(3,5,10,.82); }
.purchase-modal-card {
  width:min(900px,100%); position:relative; padding:0; overflow:auto;
  background:linear-gradient(145deg,rgba(124,92,255,.1),transparent 35%),#101522;
  box-shadow:0 28px 80px rgba(0,0,0,.55);
}
.purchase-close {
  position:absolute; top:14px; right:14px; z-index:2; width:40px; height:40px;
  border:1px solid var(--line); border-radius:12px; background:rgba(8,11,20,.8);
  color:var(--text); font-size:26px; line-height:1; cursor:pointer;
}
.purchase-close:hover { background:var(--panel-2); border-color:rgba(124,92,255,.7); }
.purchase-layout { display:grid; grid-template-columns:minmax(280px,.9fr) 1.1fr; }
.purchase-image-wrap { min-height:330px; position:relative; background:var(--panel-2); overflow:hidden; }
.purchase-image { width:100%; height:100%; min-height:330px; object-fit:cover; display:block; }
.stock-pill {
  position:absolute; left:18px; bottom:18px; padding:7px 11px; border-radius:999px;
  color:#6ff0d0; background:rgba(8,11,20,.88); border:1px solid rgba(35,213,171,.3); font-size:13px;
}
.purchase-content { padding:42px 34px 28px; }
.purchase-content h2 { margin:10px 0 6px; padding-right:28px; font-size:clamp(24px,4vw,34px); }
.purchase-subtitle { margin-bottom:14px; color:#b9aaff; font-weight:700; }
.purchase-price-row { display:flex; align-items:baseline; margin-bottom:26px; }
.purchase-price-row .price { color:#b9aaff; font-size:32px; }
.purchase-description { border-top:1px solid var(--line); padding-top:20px; }
.purchase-description h3,.purchase-method-section h3 { margin:0 0 10px; font-size:16px; }
.purchase-description p { margin:0; color:var(--muted); line-height:1.8; }
.purchase-method-section { padding:24px 34px 18px; border-top:1px solid var(--line); }
.purchase-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.purchase-method {
  min-height:82px; padding:14px; border:1px solid var(--line); border-radius:14px;
  background:rgba(255,255,255,.025); display:flex; flex-direction:column; gap:9px;
}
.purchase-method span { color:var(--accent-2); font-size:12px; font-weight:800; letter-spacing:1px; }
.purchase-method strong { font-size:14px; line-height:1.45; }
.purchase-note { margin:12px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.purchase-contact-btn {
  display:block; width:calc(100% - 68px); margin:4px 34px 18px; padding:15px;
  background:linear-gradient(90deg,var(--accent),#a14dff); font-size:16px;
  box-shadow:0 10px 28px rgba(124,92,255,.3);
}
.purchase-support {
  margin:0 34px 30px; padding:16px 18px; border:1px solid rgba(35,213,171,.25);
  border-radius:14px; background:rgba(35,213,171,.07); display:flex; align-items:center;
  justify-content:space-between; gap:16px;
}
.purchase-support[hidden] { display:none; }
.purchase-support small { display:block; margin-bottom:5px; color:var(--muted); }
.purchase-support strong { color:#6ff0d0; font-size:18px; word-break:break-all; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-group { display:flex; flex-direction:column; gap:7px; }
.form-group.full { grid-column:1/-1; }
.form-group small { color:var(--muted); font-size:12px; }
label { color:var(--muted); font-size:14px; }
input, select, textarea {
  width:100%; background:#0b0f19; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:11px 12px;
}
textarea { min-height:100px; resize:vertical; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.admin-product-cell { display:flex; align-items:center; gap:10px; }
.payment-page { padding:58px 0 90px; }
.payment-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:28px; }
.payment-heading h1 { margin:8px 0 10px; font-size:clamp(34px,5vw,54px); }
.payment-heading p { margin:0; color:var(--muted); }
.secure-badge {
  padding:10px 14px; border:1px solid rgba(35,213,171,.25); border-radius:999px;
  color:#6ff0d0; background:rgba(35,213,171,.08); font-size:13px; white-space:nowrap;
}
.payment-error,.form-message,.field-error {
  padding:14px 16px; border:1px solid rgba(255,93,115,.3); border-radius:12px;
  background:rgba(255,93,115,.09); color:#ff9aaa; line-height:1.6;
}
.payment-error { margin-bottom:22px; }
.payment-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:22px; align-items:start; }
.payment-panel {
  padding:26px; border:1px solid var(--line); border-radius:22px; background:rgba(17,22,36,.92);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.payment-panel > h2 { margin:0 0 20px; font-size:20px; }
.payment-product-image { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:16px; background:var(--panel-2); margin-bottom:18px; }
.product-summary h3 { margin:10px 0 8px; font-size:24px; }
.product-summary > p { color:var(--muted); line-height:1.75; }
.payment-stock { color:#6ff0d0; font-size:13px; }
.amount-box {
  padding:20px; margin-bottom:24px; border-radius:16px;
  background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(35,213,171,.08)); border:1px solid var(--line);
}
.amount-box span,.amount-box small { display:block; color:var(--muted); }
.amount-box strong { display:block; margin:6px 0; color:#b9aaff; font-size:36px; }
.payment-fieldset { margin:0; padding:0; border:0; }
.payment-fieldset legend { margin-bottom:12px; font-weight:800; }
.payment-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.payment-option {
  min-height:88px; padding:14px; border:1px solid var(--line); border-radius:14px;
  background:rgba(255,255,255,.02); cursor:pointer; display:flex; gap:10px; align-items:flex-start;
}
.payment-option.active { border-color:var(--accent); background:rgba(124,92,255,.12); }
.payment-option input { width:auto; margin:3px 0 0; accent-color:var(--accent); }
.payment-option strong,.payment-option small { display:block; }
.payment-option small { margin-top:5px; color:var(--muted); line-height:1.4; }
.usdt-box { margin:16px 0 22px; padding:18px; border:1px solid rgba(35,213,171,.22); border-radius:14px; background:rgba(35,213,171,.06); }
.usdt-row,.usdt-address { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.usdt-row span,.usdt-address span { color:var(--muted); font-size:13px; }
.usdt-address { margin-top:14px; }
.usdt-address code { display:block; margin-top:5px; color:#6ff0d0; word-break:break-all; }
.usdt-box p { margin:14px 0 0; color:#ffd27c; font-size:13px; }
.payment-qr-code { display:block; width:180px; height:180px; margin:18px auto 0; padding:8px; border-radius:12px; background:#fff; object-fit:contain; }
.payment-form-grid { margin-top:22px; }
.receipt-section { margin-top:22px; }
.receipt-head h3 { margin:0 0 5px; }
.receipt-head p { margin:0 0 12px; color:var(--muted); font-size:13px; }
.receipt-upload {
  min-height:170px; padding:24px; border:1px dashed rgba(124,92,255,.55); border-radius:16px;
  background:rgba(124,92,255,.06); display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:7px; cursor:pointer; text-align:center;
}
.receipt-upload:hover { background:rgba(124,92,255,.11); }
.receipt-upload input { display:none; }
.receipt-upload small { color:var(--muted); }
.upload-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--accent); font-size:25px; }
.receipt-preview {
  padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--panel-2);
  display:grid; grid-template-columns:140px 1fr; gap:16px; align-items:center;
}
.receipt-preview img { width:140px; height:100px; object-fit:cover; border-radius:10px; }
.receipt-preview strong,.receipt-preview small { display:block; margin-bottom:8px; word-break:break-all; }
.receipt-preview small { color:var(--muted); }
.field-error,.form-message { margin-top:12px; }
.confirm-check {
  margin:20px 0; padding:14px; border:1px solid var(--line); border-radius:12px;
  display:flex; align-items:flex-start; gap:10px; color:var(--text); cursor:pointer;
}
.confirm-check input { width:auto; margin-top:3px; accent-color:var(--accent); }
.submit-payment-btn { width:100%; padding:15px; font-size:16px; background:linear-gradient(90deg,var(--accent),#a14dff); }
.success-page { display:grid; place-items:center; padding:24px; }
.success-wrap { width:min(620px,100%); }
.success-card {
  padding:38px; border:1px solid var(--line); border-radius:24px; text-align:center;
  background:linear-gradient(145deg,rgba(124,92,255,.15),transparent 40%),var(--panel);
  box-shadow:0 28px 80px rgba(0,0,0,.35);
}
.success-brand { justify-content:center; margin-bottom:28px; }
.success-icon {
  display:grid; place-items:center; width:72px; height:72px; margin:0 auto 20px;
  border-radius:50%; color:#07130f; background:var(--accent-2); font-size:38px; font-weight:900;
}
.success-card h1 { margin:8px 0 12px; font-size:42px; }
.success-card > p { color:var(--muted); line-height:1.7; }
.success-info { margin:26px 0; border:1px solid var(--line); border-radius:16px; overflow:hidden; text-align:left; }
.success-info > div { padding:14px 16px; display:flex; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }
.success-info > div:last-child { border-bottom:0; }
.success-info span { color:var(--muted); }
.success-info strong { text-align:right; word-break:break-all; }
.status-pending { color:#ffd27c; }
.success-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.orders-table { min-width:1280px; table-layout: auto; }
.orders-table select { min-width:126px; padding:8px; }
.orders-table .payment-method-cell {
  min-width: 100px;
  width: 110px;
  max-width: 120px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}
.order-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 180px;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 700;
}
.order-datetime-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.order-product-name.has-preview { cursor: pointer; }
.order-product-name.has-preview:hover { color: #cbbdff; }
.order-product-preview {
  position: fixed;
  z-index: 99999;
  width: 220px;
  height: 220px;
  border-radius: 10px;
  background: #182235;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  pointer-events: none;
}
.order-product-preview[hidden] { display: none !important; }
.order-product-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.delivery-cell { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-actions { min-width:500px; flex-wrap:wrap; }
.order-actions .small-btn { display:inline-flex; align-items:center; justify-content:center; }
.receipt-thumb-btn,.receipt-image-button { padding:0; border:0; background:transparent; cursor:pointer; }
.order-edit-card { width:min(900px,100%); }
.edit-form-section { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.edit-form-section:first-of-type { margin-top:0; padding-top:0; border-top:0; }
.edit-form-section h3 { margin:0 0 14px; font-size:16px; }
.order-detail-card { width:min(820px,100%); }
.order-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.order-detail-grid > div {
  padding:14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02);
}
.order-detail-grid .full { grid-column:1/-1; }
.order-detail-grid span,.detail-receipt > span { display:block; margin-bottom:6px; color:var(--muted); font-size:13px; }
.order-detail-grid strong { display:block; line-height:1.5; word-break:break-word; }
.detail-receipt { margin-top:18px; }
.detail-receipt img { display:block; width:100%; max-height:420px; object-fit:contain; border:1px solid var(--line); border-radius:14px; background:#080b14; }
.receipt-modal-card { width:min(1000px,100%); padding:12px; position:relative; background:#080b14; overflow:visible; }
.receipt-modal-card > img { display:block; max-width:100%; max-height:86vh; margin:auto; object-fit:contain; border-radius:12px; }
.order-detail-body {
  color:#182033;
  background:#f5f7fa;
}
.order-detail-body .topbar {
  background:rgba(255,255,255,.92);
  border-bottom:1px solid #e2e8f0;
}
.order-detail-body .brand { color:#182033; }
.order-detail-body .btn.secondary {
  color:#182033;
  background:#fff;
  border:1px solid #e2e8f0;
}
.order-detail-body .payment-error {
  color:#a82727;
  background:#fff1f1;
  border:1px solid #f3c7c7;
}
.order-detail-body .badge {
  color:#4c6fff;
  background:#eef2ff;
}
.order-detail-body .badge.green {
  color:#059669;
  background:#ecfdf5;
}
.order-page { padding:52px 16px 80px; }
.order-page-wrap { width:min(760px,100%); margin:auto; }
.order-page-card {
  overflow:hidden; border:1px solid #e2e8f0; border-radius:24px; background:#ffffff;
  box-shadow:0 12px 40px rgba(24,32,51,.08);
}
.order-page-header {
  padding:28px; display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center;
  background:#ffffff; border-bottom:1px solid #e2e8f0;
}
.order-page-header h1 { margin:0 0 6px; color:#182033; font-size:30px; }
.order-state-icon {
  width:58px; height:58px; display:grid; place-items:center; border-radius:50%;
  color:#fff; background:#10b981; font-size:28px; font-weight:900;
}
.order-state-text { color:#059669; font-weight:700; }
.order-state-badge {
  padding:8px 12px; border-radius:999px; color:#059669; background:#ecfdf5;
  border:1px solid #a7f3d0; font-size:13px; font-weight:700;
}
.state-rejected .order-state-icon { color:#fff; background:#ef4444; }
.state-rejected .order-state-text { color:#dc2626; }
.state-rejected .order-state-badge { color:#dc2626; background:#fef2f2; border-color:#fecaca; }
.state-pending .order-state-icon,.state-processing .order-state-icon { color:#92400e; background:#fbbf24; }
.state-pending .order-state-text,.state-processing .order-state-text { color:#b45309; }
.state-pending .order-state-badge,.state-processing .order-state-badge {
  color:#b45309; background:#fffbeb; border-color:#fde68a;
}
.order-product-block {
  margin:24px; padding:16px; display:grid; grid-template-columns:180px 1fr; gap:20px; align-items:center;
  border:1px solid #e2e8f0; border-radius:16px; background:#ffffff;
}
.order-product-image-wrap {
  height:120px; position:relative; overflow:hidden; border-radius:12px;
  background:linear-gradient(135deg,#e8eef8,#dce6f2);
}
.order-product-image-wrap img { width:100%; height:100%; object-fit:cover; display:block; position:relative; z-index:1; }
.order-product-image-wrap > span { position:absolute; inset:0; display:none; place-items:center; color:#718096; font-size:13px; }
.order-product-image-wrap.placeholder > span { display:grid; }
.order-product-image-wrap.placeholder img { display:none; }
.order-product-main h2 { margin:8px 0 14px; color:#182033; font-size:22px; }
.order-product-meta { display:flex; gap:20px; color:#718096; font-size:14px; }
.order-product-meta strong { margin-left:5px; color:#182033; font-weight:800; }
.order-info-section { padding:0 24px 26px; }
.order-info-section h2 {
  margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid #e2e8f0;
  color:#182033; font-size:18px;
}
.order-info-list { display:grid; grid-template-columns:1fr 1fr; column-gap:30px; }
.order-info-list > div,.order-amount-list > div {
  padding:11px 0; display:flex; justify-content:space-between; gap:16px;
  border-bottom:1px solid #e2e8f0;
}
.order-info-list .wide { grid-column:1/-1; }
.order-info-list span,.order-amount-list span { color:#718096; }
.order-info-list strong,.order-amount-list strong {
  color:#182033; text-align:right; word-break:break-word; overflow-wrap:anywhere; white-space:pre-wrap;
}
.order-base-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 30px; }
.order-base-column { min-width:0; }
.order-base-column > div,.order-party-list > div {
  min-width:0; padding:11px 0; display:flex; justify-content:space-between; gap:16px;
  border-bottom:1px solid #e2e8f0;
}
.order-base-column span,.order-party-list span,.order-remark-block span { color:#718096; }
.order-base-column strong,.order-party-list strong,.order-remark-block strong {
  min-width:0; color:#182033; text-align:right; overflow-wrap:anywhere; white-space:pre-wrap; font-weight:700;
}
.order-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.order-detail-time {
  flex: 0 0 auto;
  min-width: 170px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
}
.order-base-column .order-detail-time,
.customer-info-list .order-detail-time {
  min-width: 170px;
  max-width: none;
  color: #182033;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.order-party-grid { margin-top:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch; }
.order-party-card {
  min-width:0; padding:18px; border:1px solid #e2e8f0; border-radius:14px; background:#ffffff;
}
.order-party-card h3 {
  margin:0 0 7px; padding-bottom:11px; border-bottom:1px solid #e2e8f0;
  color:#182033; font-size:16px;
}
.order-party-list > div:last-child { border-bottom:0; }
.order-remark-block {
  margin-top:16px; padding:16px 18px; display:flex; flex-direction:column; gap:8px;
  border:1px solid #e2e8f0; border-radius:12px; background:#ffffff;
}
.order-remark-block strong { text-align:left; color:#182033; }
.order-amount-list .discount { color:#059669; }
.order-amount-list .total {
  margin-top:8px; padding:16px; border:0; border-radius:12px;
  background:#ecfdf5; font-size:17px;
}
.order-amount-list .total span { color:#047857; font-weight:700; }
.order-amount-list .total strong { color:#059669; font-size:22px; }
.customer-receipt-body {
  min-height:100vh; color:#172033; background:#f2f5f8;
  font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;
}
.customer-receipt-page { width:min(700px,calc(100% - 32px)); margin:auto; padding:28px 0 48px; }
.receipt-tools { margin-bottom:14px; display:flex; justify-content:flex-end; align-items:center; gap:10px; }
.receipt-tools > div { display:flex; gap:8px; }
.receipt-tool-btn {
  padding:8px 13px; border:1px solid #d7dde6; border-radius:8px; color:#39465a; background:#fff;
  box-shadow:0 1px 2px rgba(20,35,60,.04); cursor:pointer; font-size:13px; font-weight:700;
}
.receipt-tool-btn.primary { color:#fff; border-color:#236fe8; background:#236fe8; }
.receipt-page-message { padding:22px; border:1px solid #f3c7c7; border-radius:12px; color:#a82727; background:#fff1f1; text-align:center; }
.customer-receipt { overflow:hidden; border:1px solid #dde3ea; border-radius:16px; background:#fff; box-shadow:0 12px 38px rgba(32,48,72,.1); }
.customer-receipt-header { padding:30px 34px; display:flex; align-items:center; gap:16px; border-bottom:1px solid #e8ecf1; }
.customer-complete-icon { width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#21b978; font-size:27px; font-weight:900; }
.customer-receipt-header h1 { margin:0 0 5px; color:#172033; font-size:26px; line-height:1.2; }
.customer-receipt-header p { margin:0; color:#21a66d; font-size:15px; font-weight:700; }
.customer-product { margin:26px 34px; padding:18px; display:grid; grid-template-columns:100px 1fr; gap:20px; align-items:center; border:1px solid #e6eaf0; border-radius:12px; background:#fafbfc; }
.customer-product-image { width:100px; height:100px; position:relative; overflow:hidden; border-radius:9px; background:#e1e5ea; }
.customer-product-image img { width:100%; height:100%; position:relative; z-index:1; display:block; object-fit:cover; }
.customer-product-image span { position:absolute; inset:0; display:none; place-items:center; color:#7f8998; font-size:13px; }
.customer-product-image.placeholder img { display:none; }
.customer-product-image.placeholder span { display:grid; }
.customer-product h2 { margin:0 0 13px; color:#172033; font-size:20px; }
.customer-product p { margin:7px 0; color:#6f7b8d; font-size:14px; }
.customer-product strong { margin-left:8px; color:#263246; }
.customer-receipt-section { padding:0 34px 28px; }
.customer-receipt-section h2 { margin:0; padding-bottom:11px; border-bottom:1px solid #e8ecf1; color:#172033; font-size:17px; }
.customer-info-list > div,.customer-amount-list > div { min-height:44px; padding:11px 0; display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid #eef1f4; }
.customer-info-list span,.customer-amount-list span { color:#778397; }
.customer-info-list strong,.customer-amount-list strong { max-width:65%; color:#253044; text-align:right; word-break:break-word; }
.customer-amount-list .received { margin-top:10px; padding:16px; border:0; border-radius:9px; background:#eef8f4; }
.customer-amount-list .received span { color:#3d6d5a; font-weight:700; }
.customer-amount-list .received strong { color:#149664; font-size:22px; }
.customer-receipt-footer { padding:17px 34px; display:flex; justify-content:space-between; color:#9aa4b1; background:#fafbfc; font-size:12px; letter-spacing:.3px; }
.receipt-brand { display:flex; align-items:center; gap:8px; color:#6c7788; font-weight:700; }
.receipt-brand .brand-logo { width:26px; height:26px; flex-basis:26px; border-radius:8px; }
.receipt-brand .brand-logo-fallback { border-radius:8px; font-size:9px; }
.receipt-copy-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); padding:10px 16px; border-radius:8px; color:#fff; background:#1c293c; box-shadow:0 8px 24px rgba(0,0,0,.18); font-size:14px; }
.screenshot-mode .receipt-tools,.screenshot-mode .receipt-copy-toast { display:none !important; }
.screenshot-mode .customer-receipt-page { padding:8px 0; }
.screenshot-mode .customer-receipt { border-radius:0; box-shadow:none; }
@media(max-width:900px){
  .hero-grid,.product-grid { grid-template-columns:1fr 1fr; }
  .hero-grid { grid-template-columns:1fr; }
  .admin-shell { grid-template-columns:1fr; }
  .sidebar { padding:14px 18px; position:sticky; top:0; z-index:30; border-right:0; border-bottom:1px solid var(--line); }
  .sidebar .brand { margin-bottom:12px; }
  .sidebar .menu { display:flex; gap:8px; overflow:auto; }
  .sidebar .menu a { flex:0 0 auto; margin:0; }
  .admin-user { margin-top:14px; padding-top:12px; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
  .admin-user .btn { width:auto; }
  .payment-grid { grid-template-columns:1fr; }
}
@media(max-width:640px){
  .brand-logo { width:36px; height:36px; flex-basis:36px; }
  .navlinks { display:none; }
  .product-grid,.stats,.form-grid { grid-template-columns:1fr; }
  .hero { padding-top:42px; }
  .contact-box,.section-head { align-items:flex-start; flex-direction:column; }
  .admin-main { padding:18px; }
  #productsSection > .admin-head { align-items:flex-start; flex-direction:column; }
  .product-toolbar { width:100%; justify-content:flex-start; }
  .product-toolbar select { width:100%; }
  .modal { padding:10px; align-items:end; }
  .purchase-modal-card { max-height:94vh; border-radius:20px 20px 12px 12px; }
  .purchase-layout { grid-template-columns:1fr; }
  .purchase-image-wrap,.purchase-image { min-height:210px; height:210px; }
  .purchase-content { padding:24px 20px 20px; }
  .purchase-content h2 { padding-right:36px; }
  .purchase-method-section { padding:20px; }
  .purchase-methods { grid-template-columns:1fr; }
  .purchase-method { min-height:0; flex-direction:row; align-items:center; }
  .purchase-contact-btn { width:calc(100% - 40px); margin:2px 20px 14px; }
  .purchase-support { margin:0 20px 22px; align-items:flex-start; flex-direction:column; }
  .purchase-support .btn { width:100%; }
  .payment-page { padding:36px 0 60px; }
  .payment-heading { align-items:flex-start; flex-direction:column; }
  .payment-panel { padding:20px; }
  .payment-options { grid-template-columns:1fr; }
  .payment-option { min-height:0; }
  .usdt-address { align-items:flex-start; flex-direction:column; }
  .usdt-address .small-btn { width:100%; }
  .receipt-preview { grid-template-columns:1fr; }
  .receipt-preview img { width:100%; height:180px; }
  .success-card { padding:28px 20px; }
  .success-info > div { align-items:flex-start; flex-direction:column; gap:5px; }
  .success-info strong { text-align:left; }
  .success-actions .btn { width:100%; }
  .order-detail-grid { grid-template-columns:1fr; }
  .order-detail-grid .full { grid-column:auto; }
  .order-edit-card { max-height:94vh; }
  .order-page { padding:30px 12px 60px; }
  .order-page-header { grid-template-columns:auto 1fr; padding:20px; }
  .order-state-badge { grid-column:1/-1; width:max-content; }
  .order-product-block { margin:16px; grid-template-columns:1fr; }
  .order-product-image-wrap { height:190px; }
  .order-info-section { padding:0 16px 22px; }
  .order-info-list { grid-template-columns:1fr; }
  .order-info-list .wide { grid-column:auto; }
  .order-info-list > div { align-items:flex-start; flex-direction:column; gap:5px; }
  .order-info-list strong { text-align:left; }
  .order-base-grid,.order-party-grid { grid-template-columns:1fr; }
  .order-base-column > div,.order-party-list > div { align-items:flex-start; flex-direction:column; gap:5px; }
  .order-base-column strong,.order-party-list strong { width:100%; text-align:left; }
  .order-base-column > div.order-time-row,
  .customer-info-list > div.order-time-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .order-base-column .order-time-row .order-detail-time,
  .customer-info-list .order-time-row .order-detail-time {
    width: auto;
    min-width: 154px;
    text-align: right;
    font-size: 12.5px;
  }
  .order-party-card { padding:16px; }
  .customer-receipt-page { width:min(100% - 20px,700px); padding:14px 0 28px; }
  .receipt-tools { align-items:stretch; flex-direction:column; }
  .receipt-tools > div { display:grid; grid-template-columns:1fr 1fr; }
  .receipt-tool-btn { text-align:center; }
  .customer-receipt-header { padding:24px 20px; }
  .customer-product { margin:20px; padding:14px; gap:14px; }
  .customer-receipt-section { padding:0 20px 22px; }
  .customer-info-list > div,.customer-amount-list > div { gap:12px; }
  .customer-info-list strong,.customer-amount-list strong { max-width:62%; }
  .customer-receipt-footer { padding:15px 20px; }
}