/* ─── reset & root ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #e7e9ee;
  background: #0a0a0f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: #fff; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; color: #aab1c0; }
ul, ol { padding-left: 1.2rem; }

:root {
  --accent: #00e5ff;
  --accent-2: #6c8cff;
  --bg: #0a0a0f;
  --bg-alt: #0e1018;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text-dim: #aab1c0;
  --max-w: 1180px;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ─── nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; }
.nav-logo { width: 28px; height: 28px; border-radius: 6px; }
.nav-name { font-size: 1.05rem; letter-spacing: 0.02em; display: inline-flex; align-items: baseline; gap: .45rem; }
.nav-name-cn {
  font-size: .82rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 6px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.30);
}
.nav-links { margin-left: auto; display: flex; gap: 1.6rem; font-size: .95rem; color: var(--text-dim); }
.nav-links a:hover { color: #fff; }
.nav-cta { padding: 0.5rem 1.1rem; font-size: .9rem; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { gap: 1rem; }
}

/* ─── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001017;
  box-shadow: 0 8px 32px -8px rgba(0, 229, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(0, 229, 255, 0.55); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }

/* Disabled "Coming Soon" CTA: greyed out, no hover lift, cursor blocked. */
.btn-disabled,
.btn-disabled:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none;
}

/* ─── hero ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 12vh, 9rem) 1.5rem 7rem;
  min-height: 92vh; display: flex; align-items: center;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 229, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(108, 140, 255, 0.18), transparent 50%),
    radial-gradient(circle at 60% 90%, rgba(0, 229, 255, 0.10), transparent 55%);
  filter: blur(20px);
  z-index: 0; pointer-events: none;
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1.00); }
  100% { transform: translate3d( 2%,  2%, 0) scale(1.08); }
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem; color: var(--text-dim);
  margin-bottom: 1.3rem;
  background: rgba(255, 255, 255, 0.02);
}
.hero-title { letter-spacing: -0.02em; }
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 640px; margin: 1.2rem auto 2rem; }
.hero-cn-name {
  margin: 1rem auto 0; font-size: 1.05rem; color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; gap: .55rem;
  letter-spacing: 0.04em;
}
.hero-cn-name .cn-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: 0.18em;
  padding: 3px 8px; border-radius: 999px;
  color: var(--accent); background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.30);
}
.hero-cn-name .cn-pinyin { color: var(--text-dim); font-weight: 500; font-size: .9rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-meta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: var(--text-dim); }
.hero-meta b { color: #fff; font-weight: 600; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: .75rem; letter-spacing: .25em; color: var(--text-dim); opacity: .6;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .4; }
  50%      { transform: translate(-50%, 6px); opacity: .8; }
}

/* ─── sections ─────────────────────────────────────────── */
.section { padding: clamp(4rem, 10vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 3rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.kicker {
  color: var(--accent);
  font-weight: 700; letter-spacing: 0.2em; font-size: .8rem; text-transform: uppercase;
  display: inline-block; margin-bottom: .8rem;
}

/* ─── features grid ────────────────────────────────────── */
.grid { display: grid; gap: 1.2rem; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.25); background: rgba(255, 255, 255, 0.05); }
.card-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.card p { font-size: .95rem; margin: 0; }

/* ─── steps ─────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; counter-reset: step;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.8rem 1.6rem;
}
.step-num {
  font-size: 1rem; font-weight: 700; color: var(--accent);
  letter-spacing: .15em; margin-bottom: .8rem;
}
.step p { font-size: .95rem; margin: 0; }

/* ─── data section ─────────────────────────────────────── */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .data-grid { grid-template-columns: 1fr; } }
.data-lead { font-size: 1.05rem; color: var(--text-dim); }
.data-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.data-list li { padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .95rem; color: var(--text-dim); }
.data-list li:last-child { border-bottom: 0; }
.data-list b { color: var(--accent); font-weight: 600; }
.code {
  background: #06070b; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.4rem; font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem; color: #c8cdd9; overflow-x: auto; line-height: 1.7;
  white-space: pre;
}
.code code { background: none; padding: 0; }

/* ─── download ─────────────────────────────────────────── */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 880px; margin: 0 auto; }
@media (max-width: 700px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 2.2rem 1.8rem; text-align: center;
}
.download-card h3 { margin-bottom: .5rem; }
.download-version { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.4rem; }
.download-meta { font-size: .8rem; color: var(--text-dim); margin-top: 1.2rem; }
.download-card .btn { width: 100%; }
.download-card-qr .qr {
  width: 180px; height: 180px; margin: .4rem auto 0; padding: 12px;
  background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.download-card-qr .qr canvas, .download-card-qr .qr img { width: 100%; height: 100%; }

/* Placeholder QR (APK not yet released): grey panel with "敬请期待 / Coming Soon" */
.download-card-qr .qr.qr-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  flex-direction: column; gap: 6px;
}
.qr-coming {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em;
}
.qr-coming-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: .78rem; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ─── about ────────────────────────────────────────────── */
.about { max-width: 760px; }
.about h2 { margin-top: .4rem; }
.about p { color: var(--text-dim); }
.contact { margin-top: 1.5rem; font-size: .95rem; }
.contact a { color: var(--accent); }
.contact a:hover { text-decoration: underline; }

/* ─── footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg-alt); margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner > div { display: flex; align-items: center; gap: .5rem; color: var(--text-dim); font-size: .9rem; }
.footer-logo { width: 22px; height: 22px; border-radius: 5px; }
.footer-meta { color: var(--text-dim); font-size: .85rem; }
.footer-meta a { color: inherit; text-decoration: none; margin-left: .35rem; }
.footer-meta a:hover { color: var(--text); text-decoration: underline; }

/* ─── nav auth slot ────────────────────────────────────── */
/* gap so 微信登录 + 管理员登录 don't visually butt together when both
   are present (logged-out state). main.js may swap the WeChat button
   out for the user chip, but the 管理员登录 link stays. */
.nav-auth { display: inline-flex; align-items: center; gap: .5rem; }
.nav-login { padding: 0.5rem 1.1rem; font-size: .9rem; }
.nav-admin { padding: 0.5rem 1.1rem; font-size: .85rem; opacity: .85; }
.nav-admin:hover { opacity: 1; }
.nav-mall  { padding: 0.5rem 1.1rem; font-size: .85rem; opacity: .9; }
.nav-mall:hover  { opacity: 1; }
.nav-mall.active { color: var(--accent); border-color: var(--accent); opacity: 1; }
.nav-me    { padding: 0.5rem 1.1rem; font-size: .85rem; opacity: .9; }
.nav-me:hover    { opacity: 1; }
.nav-me.active   { color: var(--accent); border-color: var(--accent); opacity: 1; }

.nav-user {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff; font-size: .9rem; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.nav-user:hover {
  background: rgba(0, 229, 255, 0.10);
  border-color: rgba(0, 229, 255, 0.35);
}
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001017; font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 28px;
}
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-user-name {
  max-width: 9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── /me page ─────────────────────────────────────────── */
.me-main { padding: clamp(2.5rem, 8vh, 5rem) 0; }

.me-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.me-card[aria-busy="true"] { opacity: .7; }

.me-avatar-slot { flex: 0 0 auto; }
.me-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001017; font-weight: 700; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 8px 32px -10px rgba(0, 229, 255, 0.5);
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-avatar-placeholder { color: rgba(255, 255, 255, 0.45); }

.me-meta { flex: 1 1 auto; min-width: 0; }
.me-eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 0.18em;
  font-size: .72rem; text-transform: uppercase; margin-bottom: .3rem;
}
.me-name { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .3rem; }
.me-sub  { color: var(--text-dim); font-size: .9rem; margin: 0 0 .9rem;
           font-family: "JetBrains Mono", "SF Mono", Menlo, monospace; }
.me-logout { padding: .4rem 1rem; font-size: .85rem; }

.me-stats-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.4rem;
}
.me-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.me-stat-num {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  line-height: 1.1; margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.me-stat-label { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.me-stat-hint  { color: var(--text-dim); font-size: .8rem; }

.me-help h3 { margin-top: 0; }
.me-help { display: block; }                /* override flex on .me-card */
.me-help p, .me-help li { color: var(--text-dim); font-size: .95rem; }
.me-help ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.me-help li { margin: .35rem 0; }

@media (max-width: 600px) {
  .me-card { flex-direction: column; text-align: center; }
  .me-help { text-align: left; }
}

/* ─── selection ────────────────────────────────────────── */
::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

/* ─── nav auth links (logged-in nav buttons) ──────────── */
.nav-auth-links {
  display: inline-flex; gap: .5rem; margin-right: .75rem;
}
.nav-auth-link {
  padding: .35rem .9rem !important; font-size: .85rem !important;
}
.nav-auth-link.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--accent);
}
@media (max-width: 720px) {
  .nav-auth-links { display: none; }
}

/* ─── mall ─────────────────────────────────────────────── */
.mall-main { padding: clamp(2.5rem, 8vh, 5rem) 0; }

.mall-toolbar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.mall-search {
  flex: 1 1 300px; padding: .75rem 1.2rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: #fff; font-size: .95rem;
  outline: none; transition: border-color .2s;
  font-family: inherit;
}
.mall-search:focus { border-color: var(--accent); }
.mall-search::placeholder { color: var(--text-dim); }
.mall-toolbar-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.mall-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: #001017;
  font-size: .7rem; font-weight: 700; padding: 0 5px;
  margin-left: .3rem; vertical-align: middle;
}
.mall-badge:empty { display: none; }

/* product card */
.mall-product {
  cursor: pointer;
  display: flex; flex-direction: column;
}
.mall-thumb {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: .85rem; letter-spacing: .08em;
  margin-bottom: .8rem; overflow: hidden;
}
.mall-product-title { font-size: 1.05rem; margin: 0 0 .4rem; }
.mall-product-scene { font-size: .85rem; color: var(--text-dim); margin: 0 0 .5rem; }
.mall-product-desc { font-size: .9rem; color: var(--text-dim); margin: 0 0 .6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mall-product-footer { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.mall-price { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.mall-price-symbol { font-size: .85rem; font-weight: 600; }
.mall-sales { color: var(--text-dim); font-size: .8rem; }
.mall-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0; }
.mall-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.12); color: var(--accent);
  font-size: 12px; line-height: 1.6;
}
.mall-video-wrap { position: relative; }
.mall-video {
  width: 100%; max-height: 420px; background: #000; border-radius: 10px;
  display: block;
}
.mall-video-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  color: rgba(255, 255, 255, 0.28); font-size: 22px; font-weight: 700;
  letter-spacing: 2px; pointer-events: none; user-select: none;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5); white-space: nowrap;
}

/* product detail modal */
.mall-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mall-modal {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
}
.mall-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 1.2rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.mall-modal-close:hover { border-color: var(--accent); color: #fff; }
.mall-detail-row { font-size: .95rem; color: var(--text-dim); padding: .4rem 0; border-bottom: 1px dashed var(--border); }
.mall-detail-row:last-of-type { border-bottom: 0; }
.mall-detail-row b { color: #fff; font-weight: 600; margin-right: .4rem; }
.mall-contact {
  margin-top: 1rem; padding: 1rem; border-radius: 12px;
  background: rgba(0, 229, 255, 0.06); border: 1px solid rgba(0, 229, 255, 0.2);
  font-size: .9rem; color: var(--accent); line-height: 1.6;
}

/* cart items */
.mall-cart-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.2rem 1.4rem;
  margin-bottom: .8rem; transition: border-color .15s;
}
.mall-cart-item:hover { border-color: rgba(255,255,255,0.15); }
.mall-cart-thumb {
  width: 100px; aspect-ratio: 16 / 9; border-radius: 8px; flex: 0 0 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: rgba(255,255,255,0.35);
}
.mall-cart-info { flex: 1; min-width: 0; }
.mall-cart-info h3 { font-size: 1rem; margin: 0 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-cart-info p { font-size: .85rem; color: var(--text-dim); margin: 0; }
.mall-cart-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.mall-cart-remove {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .4rem .8rem; color: var(--text-dim); font-size: .8rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.mall-cart-remove:hover { border-color: #ff6e7a; color: #ff6e7a; }

/* checkout bar */
.mall-checkout-bar {
  position: sticky; bottom: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem;
}
.mall-checkout-total { color: #fff; font-size: 1.1rem; font-weight: 600; }
.mall-checkout-total .mall-price { font-size: 1.3rem; margin-left: .4rem; }

/* order cards */
.mall-order {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem 1.6rem; margin-bottom: 1rem;
}
.mall-order-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem; flex-wrap: wrap; gap: .5rem;
}
.mall-order-id { font-family: "JetBrains Mono", "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--text-dim); }
.mall-order-date { font-size: .85rem; color: var(--text-dim); }
.mall-order-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.10); color: var(--accent);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
}
.mall-order-items { list-style: none; padding: 0; margin: 0 0 .8rem; }
.mall-order-items li {
  padding: .4rem 0; border-bottom: 1px dashed var(--border);
  font-size: .9rem; color: var(--text-dim);
  display: flex; justify-content: space-between;
}
.mall-order-items li:last-child { border-bottom: 0; }
.mall-order-total { text-align: right; font-weight: 600; color: #fff; font-size: 1rem; }

/* empty state */
.mall-empty {
  text-align: center; padding: 4rem 1rem; color: var(--text-dim);
}
.mall-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .6; }
.mall-empty p { font-size: 1rem; margin: 0 0 1.5rem; }

/* page header */
.mall-page-header {
  margin-bottom: 2rem;
}
.mall-page-header h2 { margin-top: .4rem; }

@media (max-width: 720px) {
  .mall-toolbar { flex-direction: column; align-items: stretch; }
  .mall-toolbar-actions { justify-content: center; }
  .mall-cart-item { flex-direction: column; text-align: center; }
  .mall-cart-thumb { width: 140px; flex: none; }
  .mall-checkout-bar { flex-direction: column; gap: .8rem; text-align: center; }
}
