:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --line: #e7eaf0;
  --brand: #26a17b;
  --brand-600: #1e8a68;
  --brand-50: #e9f7f2;
  --danger: #e5484d;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
:lang(ja) body, body:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", sans-serif; }
:lang(en) body, body:lang(en) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 28px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- announce + header ---------- */
.announce {
  background: linear-gradient(90deg, #0f172a, #1e293b); color: #e2e8f0; font-size: 13px;
  text-align: center; padding: 8px 44px; position: relative;
}
.announce button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #94a3b8; cursor: pointer; font-size: 18px; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .2px; white-space: nowrap; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #26a17b, #3ecf9c); box-shadow: 0 6px 16px rgba(38, 161, 123, .35);
}
.brand-logo.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 14px; transition: .15s; }
.nav a:hover { background: #f1f5f9; color: var(--text); }
.nav a.active { background: var(--text); color: #fff; }
.actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text); transition: .15s; }
.icon-btn:hover { background: #f1f5f9; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); transition: .15s; }
.lang-btn:hover { border-color: #cbd5e1; color: var(--text); }
.lang-menu .dropdown { min-width: 160px; }
.dropdown button.current { font-weight: 700; color: var(--brand-600); }
.dropdown .check { float: right; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.menu.open .dropdown { display: block; }
.dropdown .who { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.dropdown a:hover, .dropdown button:hover { background: #f1f5f9; }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px; transition: .15s; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(38, 161, 123, .28); }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1e293b; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: #cbd5e1; background: #f8fafc; }
.btn-danger-ghost { background: #fff; border-color: #fecdd3; color: var(--danger); }
.btn-danger-ghost:hover { background: #fff1f2; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, textarea.input, select.input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38, 161, 123, .12); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px 48px; color: #fff; margin-bottom: 28px;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(62, 207, 156, .45), transparent 60%),
              radial-gradient(600px 300px at 0% 120%, rgba(99, 102, 241, .35), transparent 60%),
              linear-gradient(135deg, #0b1220, #111c33);
}
.hero h1 { font-size: 38px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.5px; }
.hero p { margin: 0; color: #cbd5e1; font-size: 16px; max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #e2e8f0; }
.hero-coin {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%); width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center; font-size: 84px; font-weight: 800;
  background: linear-gradient(135deg, #3ecf9c, #26a17b); box-shadow: 0 30px 60px rgba(38, 161, 123, .45), inset 0 -10px 30px rgba(0, 0, 0, .15);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(calc(-50% - 10px)); } }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip-btn { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--text-2); transition: .15s; }
.chip-btn:hover { border-color: #cbd5e1; }
.chip-btn.active { background: var(--text); border-color: var(--text); color: #fff; }
.search { position: relative; }
.search input { padding-left: 38px; width: 240px; height: 40px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar select.input { width: auto; height: 40px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pcard { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-img { position: relative; aspect-ratio: 1; background: #eef1f5; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-tag { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .92); }
.pcard-tag.low { color: #b45309; }
.pcard-tag.out { color: #fff; background: rgba(15, 23, 42, .8); }
.pcard-tag.sale { left: auto; right: 12px; background: var(--danger); color: #fff; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 800; color: var(--text); font-size: 22px; letter-spacing: -.3px; }
.price small { font-size: 12px; font-weight: 700; color: var(--brand); margin-left: 3px; letter-spacing: 0; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.sold { font-size: 12px; color: var(--muted); }
.add-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--text); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .15s; flex-shrink: 0; }
.add-btn:hover { background: var(--brand); transform: scale(1.06); }
.add-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* ---------- product detail ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 28px; }
.detail-img { border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: #eef1f5; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 28px; margin: 6px 0 6px; line-height: 1.3; }
.detail .sub { color: var(--text-2); margin: 0 0 20px; }
.price-box { background: linear-gradient(135deg, #f0fbf7, #f8fafc); border: 1px solid #d7f0e6; border-radius: 16px; padding: 18px 20px; margin-bottom: 22px; }
.price-box .price { font-size: 34px; }
.meta-row { display: flex; gap: 20px; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--text-2); }
.qty button:hover { background: #f1f5f9; }
.qty input { width: 52px; height: 40px; border: 0; text-align: center; outline: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; height: 32px; font-size: 15px; }
.qty.sm input { width: 40px; height: 32px; }
.buy-row { display: flex; gap: 12px; margin: 22px 0; }
.buy-row .btn { flex: 1; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.desc { margin-top: 24px; padding: 28px; }
.desc h3 { margin: 0 0 12px; font-size: 17px; }
.desc-body { white-space: pre-wrap; color: var(--text-2); line-height: 1.9; }
.section-title { font-size: 20px; margin: 36px 0 16px; }

/* ---------- cart ---------- */
.page-title { font-size: 26px; margin: 0 0 20px; letter-spacing: -.3px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-list { padding: 8px 24px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto 30px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #eef1f5; }
.cart-row .name { font-weight: 600; }
.cart-row .line-total { font-weight: 700; min-width: 96px; text-align: right; }
.cart-row.invalid { opacity: .55; }
.remove { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 20px; border-radius: 8px; width: 30px; height: 30px; }
.remove:hover { background: #fff1f2; color: var(--danger); }
.summary { padding: 24px; position: sticky; top: 88px; }
.summary h3 { margin: 0 0 16px; font-size: 17px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--text-2); font-size: 14px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 14px; margin: 14px 0 18px; font-weight: 600; }
.sum-total .price { font-size: 26px; }
.warn-text { color: #b45309; font-size: 12px; }
.err-text { color: var(--danger); font-size: 12px; }

.empty { text-align: center; padding: 70px 20px; }
.empty .ico { font-size: 56px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

/* ---------- checkout ---------- */
.co-card { padding: 26px; margin-bottom: 20px; }
.co-card h3 { margin: 0 0 18px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; font-size: 13px; display: grid; place-items: center; }
.pay-method { display: flex; align-items: center; gap: 14px; border: 2px solid var(--brand); background: var(--brand-50); border-radius: 14px; padding: 14px 16px; }
.usdt-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.mini-item { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.mini-item img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.mini-item .n { flex: 1; min-width: 0; }
.mini-item .n div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-hint { background: #eef2ff; color: #4338ca; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.login-hint a { font-weight: 700; text-decoration: underline; }

/* ---------- order / pay ---------- */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head h1 { margin: 0; font-size: 24px; }
.order-no { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending { background: #fff7ed; color: #c2410c; }
.st-paid { background: #eff6ff; color: #1d4ed8; }
.st-confirmed { background: #ecfdf5; color: #047857; }
.st-shipped { background: #f5f3ff; color: #6d28d9; }
.st-completed { background: #f1f5f9; color: #334155; }
.st-cancelled { background: #f8fafc; color: #94a3b8; }

.steps { display: flex; padding: 26px 28px; margin-bottom: 20px; }
.step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.step.done { color: var(--text); }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done::before { background: var(--brand); }
.step.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(38, 161, 123, .14); }
.step.current { color: var(--text); font-weight: 600; }
.step time { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

.pay-card { display: grid; grid-template-columns: 280px 1fr; gap: 34px; padding: 30px; margin-bottom: 20px; border: 1px solid #d7f0e6; background: linear-gradient(180deg, #fff, #fbfefd); }
.qr-box { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.qr-box img { width: 100%; aspect-ratio: 1; }
.qr-net { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-600); background: var(--brand-50); padding: 4px 12px; border-radius: 999px; }
.pay-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.copy-field { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 16px; margin-bottom: 18px; }
.copy-field .val { flex: 1; min-width: 0; word-break: break-all; font-family: var(--mono); font-size: 15px; }
.copy-field .val.amount { font-family: inherit; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.copy-field .val.amount small { font-size: 14px; color: var(--brand); margin-left: 4px; }
.copy-btn { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--text); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.copy-btn:hover { background: var(--brand); }
.copy-btn.ok { background: var(--brand); }
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.notice b { color: #78350f; }
.countdown { font-family: var(--mono); font-weight: 700; color: #c2410c; }
.state-card { padding: 34px; text-align: center; margin-bottom: 20px; }
.state-card .ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 30px; }
.state-card h2 { margin: 0 0 6px; font-size: 21px; }
.state-card p { margin: 0 auto; color: var(--text-2); max-width: 520px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 24px; }
.info-card h3 { margin: 0 0 14px; font-size: 16px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.ship-box { background: #f5f3ff; border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ship-box .ico { font-size: 26px; }

/* ---------- my orders ---------- */
.my-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 7px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { background: #f1f5f9; }
.tab.active { background: var(--text); color: #fff; }
.tab .n { font-size: 11px; background: rgba(148, 163, 184, .25); padding: 0 6px; border-radius: 999px; }
.ocard { margin-bottom: 16px; overflow: hidden; }
.ocard-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fbfcfd; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.ocard-head .no { font-family: var(--mono); color: var(--text); font-weight: 600; }
.ocard-head .status-pill { margin-left: auto; }
.ocard-body { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 18px 22px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.ocard-side { border-left: 1px dashed var(--line); padding-left: 22px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.ocard-side .row { display: flex; gap: 8px; }
.ocard-side .row > span:first-child { color: var(--muted); flex-shrink: 0; width: 64px; }
.ocard-side .row > span:last-child { word-break: break-all; }
.ocard-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); }
.ocard-foot .total { margin-right: auto; font-size: 14px; color: var(--text-2); }
.ocard-foot .total b { font-size: 18px; color: var(--text); }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: 100%; max-width: 420px; padding: 36px; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.auth-switch a { color: var(--brand); font-weight: 600; }

/* ---------- track ---------- */
.track-hero { text-align: center; padding: 50px 24px 40px; }
.track-hero h1 { margin: 0 0 8px; font-size: 30px; }
.track-hero p { color: var(--muted); margin: 0 0 26px; }
.track-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.track-form .input { height: 50px; font-size: 16px; font-family: var(--mono); }
.recent { max-width: 520px; margin: 26px auto 0; text-align: left; }
.recent h4 { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.recent a { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; font-family: var(--mono); font-size: 14px; }
.recent a:hover { background: #f1f5f9; }

/* ---------- modal + toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal .sub { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s ease; display: flex; gap: 8px; align-items: center; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--brand); }

.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 50%, #eef1f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip-usdt { background: var(--brand-50); color: var(--brand-600); }

.footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer p { margin: 4px 0 0; }
.footer-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- telegram support ---------- */
.tg-link { display: inline-flex; align-items: center; gap: 6px; color: #229ed9; font-weight: 600; }
.tg-link:hover { text-decoration: underline; }
.tg-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: #229ed9; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 28px rgba(34, 158, 217, .4); transition: transform .15s, box-shadow .15s;
}
.tg-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(34, 158, 217, .5); }
.tg-float svg { width: 22px; height: 22px; }
.tg-help { display: flex; align-items: center; gap: 14px; padding: 18px 22px; margin-top: 20px; flex-wrap: wrap; font-size: 14px; }
.tg-help .muted { color: var(--text-2); font-size: 13px; }
.tg-ico { width: 42px; height: 42px; border-radius: 50%; background: #e8f5fc; color: #229ed9; display: grid; place-items: center; flex-shrink: 0; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1c8cc2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .detail, .pay-card, .cart-layout, .info-grid, .ocard-body { grid-template-columns: 1fr; }
  .detail { gap: 24px; padding: 18px; }
  .pay-card { padding: 22px; gap: 22px; }
  .qr-box { max-width: 280px; margin: 0 auto; }
  .ocard-side { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
  .summary { position: static; }
  .hero-coin { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .topbar { backdrop-filter: none; background: #fff; }
  .actions { margin-left: auto; }
  .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chip-btn { flex-shrink: 0; }
  .announce { padding: 8px 36px 8px 14px; font-size: 12px; }
  .topbar-inner { gap: 10px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 50; }
  body { padding-bottom: 60px; }
  .brand span:last-child { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 30px 24px; border-radius: 18px; }
  .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 12px; }
  .pcard-name { font-size: 14px; }
  .price { font-size: 18px; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .cart-row { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .cart-row img { width: 64px; height: 64px; }
  .cart-row .line-total { grid-column: 2; text-align: left; }
  .grid-2 { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .steps { padding: 18px 10px; }
  .step { font-size: 11px; }
  .step time { display: none; }
  .user-chip .email { display: none; }
  .user-chip { padding: 4px; }
  .lang-btn { padding: 0 10px; }
  .tg-float { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; height: 46px; width: 46px; padding: 0; justify-content: center; }
  .tg-float span { display: none; }
  .lang-btn span { display: none; }
  .actions { gap: 6px; }
}
