/* ===================================================
   极简高级风格 - 黑/白/灰 + 大留白
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  background: #fafafa;
  color: #0a0a0a;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

body.login-body {
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ============== 顶部栏 ============== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  min-width: 32px;
  height: 32px;
}
.topbar-center {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.icon-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: #666;
  font-weight: 300;
  cursor: pointer;
}
.shop-title {
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 0.01em;
}

/* ============== 容器 ============== */
.mobile-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #fafafa;
  width: 100%;
  position: relative;
}

/* ============== 首页海报(只放轮播) ============== */
.home-banner {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 16 / 7;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.home-banner .banner-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-banner .banner-track::-webkit-scrollbar { display: none; }
.home-banner .banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: block;
  position: relative;
  background: #f0f0f0;
}
.home-banner .banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-banner .banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.home-banner .banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(10,10,10,.35);
  transition: all .2s;
}
.home-banner .banner-dot.active {
  background: #fafafa;
  width: 14px;
  border-radius: 2px;
}

/* ============== 首页搜索 ============== */
.home-search {
  padding: 16px 16px 4px;
  background: transparent;
}
.home-search .hs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  transition: background .2s;
}
.home-search .hs-row:hover { background: #ececec; }
.home-search .hs-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.home-search .hs-icon::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

/* ============== 轮播图(独立) ============== */
.banner-swiper {
  position: relative;
  margin: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 16 / 7;
}
.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: block;
  position: relative;
  background: #f0f0f0;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250,250,250,.45);
  transition: all .2s;
}
.banner-dot.active {
  background: #fafafa;
  width: 14px;
  border-radius: 2px;
}

.phone-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fafafa;
  position: relative;
  padding-bottom: 100px;
  align-self: center;
  overflow: visible;
}
/* ============== 首页 Hero ============== */
.hero {
  padding: 56px 24px 40px;
  background: #0a0a0a;
  color: #fafafa;
}

.hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #fafafa;
}
.hero-sub {
  font-size: 13px;
  color: rgba(250,250,250,.5);
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(250,250,250,.5);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 20px;
}
.hero-search:hover { background: rgba(255,255,255,.12); }
.hs-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.hs-icon::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.hs-text { letter-spacing: 0.05em; }

/* ============== 推广提示 ============== */
.promo-tip {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: #f5f5f5;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 2px;
}
.promo-tip b { color: #0a0a0a; font-weight: 600; }

/* ============== 分类 ============== */
.cats {
  display: flex;
  margin: 32px 0;
  padding: 0 24px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-size: 13px;
  color: #666;
  transition: all .2s;
  white-space: nowrap;
}
.cat:hover { border-color: #0a0a0a; color: #0a0a0a; }
.cat-name { font-weight: 500; letter-spacing: 0.02em; }

/* ============== Section 通用 ============== */
.section { padding: 0 12px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 0 4px;
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}
.section-more {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.02em;
  transition: color .2s;
}
.section-more:hover { color: #0a0a0a; }

/* ============== 商品网格 ============== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.card:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  overflow: hidden;
}
.card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  background: rgba(10,10,10,.85);
  color: #fafafa;
  font-size: 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}
.card-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fafafa;
}
.card-body { padding: 10px 10px 12px; }
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  min-height: 36px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.card-price {
  display: flex;
  align-items: baseline;
  color: #0a0a0a;
}
.cp-symbol { font-size: 12px; font-weight: 500; margin-right: 1px; }
.cp-num { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card-sales {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #999;
  font-weight: 400;
}
.card-sales svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ============== 底部悬浮导航 ============== */
.float-placeholder { height: 110px; }

.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 6px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  margin: 0;
  width: calc(100% - 24px);
  max-width: 396px;
}
.dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
  font-size: 11px;
  color: #999;
  border-radius: 12px;
  transition: all .2s;
  letter-spacing: 0.02em;
}
.dock-item svg { width: 20px; height: 20px; stroke: currentColor; }
.dock-item.active {
  background: #f0f0f0;
  color: #0a0a0a;
}
.dock-item.active svg { stroke: #0a0a0a; }
.dock-item span { font-weight: 500; }

/* ============== 我的页面 ============== */
.profile {
  position: relative;
  padding: 48px 24px 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #fafafa;
  overflow: hidden;
  isolation: isolate;
}
.profile::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.profile::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index: -1;
  opacity: .5;
}
.profile-deco {
  position: absolute;
  top: 30px;
  left: 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(250,250,250,.4);
  text-transform: uppercase;
  font-weight: 500;
  z-index: 1;
}
.profile-top {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
}
.profile-set-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(250,250,250,.85);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: all .2s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.profile-set-btn:hover {
  background: rgba(255,255,255,.14);
  color: #fafafa;
}
.profile-set-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  border: 1.5px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: #fafafa;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-guest { font-size: 28px; font-weight: 300; }
.profile-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.profile-phone {
  font-size: 12px;
  color: rgba(250,250,250,.5);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  background: #fafafa;
  color: #0a0a0a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
.pa-btn:hover { opacity: .85; }
.pa-btn-ghost {
  background: transparent;
  color: #fafafa;
  border: 1px solid rgba(255,255,255,.25);
}

/* ============== 卡片块 ============== */
.card-block {
  margin: 16px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.card-block-pad { padding: 4px 20px; }
.cb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cb-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0a0a0a;
}
.cb-more {
  font-size: 12px;
  color: #999;
  transition: color .2s;
}
.cb-more:hover { color: #0a0a0a; }

/* 订单统计 */
.order-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.os-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background .2s;
}
.os-item:hover { background: #fafafa; }
.os-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.os-icon svg { width: 16px; height: 16px; stroke: #fafafa; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.os-icon.pending { background: linear-gradient(135deg, #ffb84d 0%, #ff8c00 100%); }
.os-icon.shipped { background: linear-gradient(135deg, #5aa6ff 0%, #4a6cff 100%); }
.os-icon.done { background: linear-gradient(135deg, #34d27a 0%, #1ba756 100%); }
.os-icon.all { background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%); }
.os-num {
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0a;
  line-height: 1;
  letter-spacing: -0.01em;
}
.os-label {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.02em;
}

/* 列表项 */
.li-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  color: #0a0a0a;
  border-bottom: 1px solid #f5f5f5;
  transition: opacity .2s;
}
.li-item:last-child { border-bottom: none; }
.li-item:hover { opacity: .6; }
.li-arrow { color: #ccc; font-size: 18px; font-weight: 300; }
.li-logout { color: #999; }

/* ============== 表单页(登录/注册) ============== */
.page { display: block; min-height: 100vh; background: #fafafa; }
.container { padding: 32px 24px; max-width: 420px; margin: 0 auto; padding-bottom: 100px; }
.form-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 32px 24px;
  max-width: 420px;
  margin: 0 auto 16px;
}
.form-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #0a0a0a;
}
.form-subtitle {
  color: #999;
  font-size: 13px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.form-item { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  height: 48px;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
  font-size: 15px;
  outline: none;
  background: transparent;
  font-family: inherit;
  transition: border-color .2s;
}
.form-input:focus { border-bottom-color: #0a0a0a; }
.form-input::placeholder { color: #ccc; }
.btn-primary {
  width: 100%;
  height: 48px;
  background: #0a0a0a;
  color: #fafafa;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  border: none;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-secondary {
  width: 100%;
  height: 48px;
  background: transparent;
  color: #0a0a0a;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  transition: all .2s;
}
.btn-secondary:hover { border-color: #0a0a0a; }
.form-link { text-align: center; font-size: 12px; color: #999; margin-top: 24px; letter-spacing: 0.02em; }
.form-link a { color: #0a0a0a; margin: 0 4px; font-weight: 500; }

/* ============== 商品详情 ============== */
.product-detail .detail-img {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
}
.detail-info { padding: 24px; background: #fff; margin-top: 1px; }
.detail-price { color: #0a0a0a; font-size: 13px; }
.detail-price b { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.detail-original { color: #bbb; text-decoration: line-through; font-size: 13px; margin-left: 8px; font-weight: 400; }
.detail-title { font-size: 18px; font-weight: 500; margin: 16px 0; line-height: 1.4; letter-spacing: 0.01em; }
.detail-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.detail-tag {
  border: 1px solid #e5e5e5;
  color: #666;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.detail-section { background: #fff; margin-top: 1px; padding: 24px; }
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.detail-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  display: flex;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  gap: 12px;
  z-index: 100;
}
.detail-actions .btn-buy {
  flex: 1;
  height: 48px;
  background: #0a0a0a;
  color: #fafafa;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  transition: opacity .2s;
}
.detail-actions .btn-buy:hover { opacity: .85; }

/* ============== 支付 ============== */
.pay-page { background: #fafafa; min-height: 100vh; }
.pay-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 500;
}
.pay-amount { background: #fff; padding: 40px 24px; text-align: center; }
.pay-amount-label { font-size: 12px; color: #999; letter-spacing: 0.05em; }
.pay-amount-num { color: #0a0a0a; font-size: 40px; font-weight: 600; margin-top: 12px; letter-spacing: -0.01em; }
.pay-amount-num::before { content: '¥'; font-size: 20px; margin-right: 2px; font-weight: 500; }
.pay-methods { background: #fff; margin-top: 1px; padding: 0 24px; }
.pay-method {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f5f5f5;
  gap: 12px;
}
.pay-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}
.pay-method-icon.wechat { background: #07c160; }
.pay-method-icon.alipay { background: #1677ff; }
.pay-method-info { flex: 1; }
.pay-method-name { font-size: 14px; font-weight: 500; }
.pay-method-desc { font-size: 11px; color: #999; margin-top: 2px; letter-spacing: 0.02em; }
.pay-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  position: relative;
  flex-shrink: 0;
  transition: all .2s;
}
.pay-method-radio.active { border-color: #0a0a0a; }
.pay-method-radio.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #0a0a0a;
  border-radius: 50%;
}
.pay-btn {
  margin: 24px;
  height: 48px;
  background: #0a0a0a;
  color: #fafafa;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  letter-spacing: 0.05em;
  border: none;
  transition: opacity .2s;
}
.pay-btn:hover { opacity: .85; }

/* ============== 支付密码弹窗 ============== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.password-modal {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 340px;
  overflow: hidden;
  animation: modalIn .2s ease;
}
/* 手机端:弹窗对齐底部,圆角只在顶部 */
@keyframes modalUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
  .modal-mask {
    align-items: flex-end;
    justify-content: center;
  }
  .password-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    animation: modalUp .25s ease;
  }
}
@keyframes modalIn {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pw-header {
  text-align: center;
  padding: 20px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.01em;
}
.pw-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  font-weight: 300;
}
.pw-amount { text-align: center; color: #0a0a0a; font-size: 24px; font-weight: 600; padding: 4px 0 8px; letter-spacing: -0.01em; }
.pw-amount::before { content: '¥'; font-size: 14px; margin-right: 1px; font-weight: 500; }
.pw-hint { text-align: center; color: #999; font-size: 12px; padding-bottom: 16px; letter-spacing: 0.02em; }
.pw-boxes { display: flex; justify-content: center; gap: 8px; padding: 0 24px 24px; }
.pw-box {
  flex: 1;
  height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  background: #fff;
  transition: border-color .2s;
}
.pw-box.filled { border-color: #0a0a0a; }
.pw-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #f0f0f0;
}
.pw-key {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 400;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  user-select: none;
  transition: background .1s;
}
.pw-key:active { background: #f5f5f5; }
.pw-key.empty { background: #fff; visibility: hidden; }
.pw-key.del { color: #999; font-size: 16px; }
.pw-key.confirm {
  background: #0a0a0a;
  color: #fafafa;
  grid-column: span 3;
  font-size: 14px;
  font-weight: 500;
  border-right: none;
  border-bottom: none;
  letter-spacing: 0.05em;
}

/* ============== 提示 ============== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10,10,10,.9);
  color: #fafafa;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 99999;
  display: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.toast.show { display: block; }

/* ============== 订单列表 ============== */
.order-tabs {
  display: flex;
  background: #fff;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.order-tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  color: #999;
  position: relative;
  letter-spacing: 0.02em;
}
.order-tab.active { color: #0a0a0a; font-weight: 500; }
.order-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 1px;
  background: #0a0a0a;
}
.order-card {
  background: #fff;
  margin: 8px 24px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
  letter-spacing: 0.02em;
}
.order-status { font-weight: 500; }
.order-product { display: flex; gap: 12px; padding: 14px 0; }
.op-img {
  width: 72px;
  height: 72px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  background-color: #f0f0f0;
  flex-shrink: 0;
}
.op-info { flex: 1; min-width: 0; }
.op-title {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.op-meta { font-size: 11px; color: #999; margin-top: 6px; }
.op-price { color: #0a0a0a; font-weight: 500; font-size: 14px; }
.order-total {
  text-align: right;
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
  letter-spacing: 0.02em;
}
.order-total b { color: #0a0a0a; font-size: 16px; font-weight: 600; }
.virtual-tag {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

/* ============== 后台(简化) ============== */
.admin-page { display: flex; min-height: 100vh; background: #f5f6f8; }
.admin-sidebar {
  width: 220px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 24px 0;
  flex-shrink: 0;
  border-right: 1px solid #ececf0;
  transition: transform .25s, width .25s;
}
.admin-sidebar.collapsed { transform: translateX(-100%); width: 0; padding: 0; overflow: hidden; }
.admin-sidebar h2 {
  font-size: 16px;
  font-weight: 700;
  padding: 0 24px 24px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-sidebar h2 .sidebar-close {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f5f5f5;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.admin-sidebar h2 .sidebar-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-menu { list-style: none; }
.admin-menu a {
  display: block;
  padding: 12px 24px;
  color: #555;
  font-size: 13px;
  border-left: 2px solid transparent;
  letter-spacing: 0.02em;
  transition: all .15s;
}
.admin-menu a:hover, .admin-menu a.active {
  background: #f5f7ff;
  border-left-color: #6366f1;
  color: #6366f1;
}
.admin-content { flex: 1; padding: 32px; min-width: 0; max-width: 100%; overflow-x: hidden; }
.admin-content > .card { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-content > .card .table { min-width: 720px; }
.admin-header {
  background: #fff;
  padding: 20px 24px;
  margin: -32px -32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ececf0;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.admin-header h1 { font-size: 18px; font-weight: 700; }
.admin-header > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.admin-user { color: #666; font-size: 12px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 14px; }
.admin-user a { color: #6366f1; }
.admin-user span { color: #999; }
.admin-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid #ececf0;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a0a0a;
  flex-shrink: 0;
  padding: 0;
}
.admin-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.admin-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; opacity: 0; transition: opacity .2s; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll .table { min-width: 720px; }
.card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: left;
  transition: all .25s;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0a0a0a;
  opacity: 0;
  transition: opacity .25s;
}
.stat-card:hover { border-color: #e0e0e0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.stat-card:hover::before { opacity: 1; }
.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-card .label {
  color: #888;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.stat-card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.stat-card .trend { font-size: 11px; margin-top: 6px; color: #4caf50; }
.stat-card .trend.down { color: #f44336; }

/* ============== 渐变卡片(用户框选风格) ============== */
.stat-card-grad {
  position: relative;
  border: none;
  color: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: all .25s;
}
.stat-card-grad::before { display: none; }
.stat-card-grad::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(255,255,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.stat-card-grad .num { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat-card-grad .label { color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: 0.04em; font-weight: 500; }
.stat-card-grad .stat-card-icon { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat-card-grad .stat-card-icon svg { width: 18px; height: 18px; }

/* 多色渐变变体 */
.stat-grad-purple { background: linear-gradient(135deg,#6366f1 0%,#a855f7 50%,#ec4899 100%); }
.stat-grad-blue   { background: linear-gradient(135deg,#3b82f6 0%,#06b6d4 100%); }
.stat-grad-green  { background: linear-gradient(135deg,#10b981 0%,#34d399 100%); }
.stat-grad-orange { background: linear-gradient(135deg,#f59e0b 0%,#ef4444 100%); }
.stat-grad-pink   { background: linear-gradient(135deg,#ec4899 0%,#f43f5e 100%); }
.stat-grad-cyan   { background: linear-gradient(135deg,#06b6d4 0%,#0ea5e9 100%); }
.stat-grad-dark   { background: linear-gradient(135deg,#0a0a0a 0%,#374151 100%); }
.stat-grad-violet { background: linear-gradient(135deg,#8b5cf6 0%,#d946ef 100%); }
.stat-grad-teal   { background: linear-gradient(135deg,#0d9488 0%,#06b6d4 100%); }
.stat-grad-amber  { background: linear-gradient(135deg,#fbbf24 0%,#f97316 100%); }
.stat-card-highlight {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  border-color: #0a0a0a;
  color: #fafafa;
}
.stat-card-highlight::before { background: #fafafa; opacity: 1; }
.stat-card-highlight .num { color: #fafafa; }
.stat-card-highlight .label { color: rgba(250,250,250,.65); }
.stat-card-highlight .stat-card-icon { background: rgba(250,250,250,.1); color: rgba(250,250,250,.85); }
.stat-card-blue { border-left: 3px solid #3b82f6; }
.stat-card-green { border-left: 3px solid #10b981; }
.stat-card-orange { border-left: 3px solid #f59e0b; }
.stat-card-purple { border-left: 3px solid #8b5cf6; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.table thead th {
  background: linear-gradient(135deg,#eef2ff 0%,#faf5ff 50%,#fdf2f8 100%);
  font-weight: 600;
  color: #4b5563;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #ececf0;
}
.table tbody tr:hover { background: #fafbff; }
.table tbody tr:last-child td { border-bottom: none; }
.card-h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: #0a0a0a; }
.muted { color: #999; }
.bar-track { background: #f0f0f0; height: 6px; width: 220px; max-width: 100%; }
.bar-fill { background: #ff0000; height: 6px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  background: #0a0a0a;
  color: #fafafa;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-default { background: #fff; color: #0a0a0a; border: 1px solid #e5e5e5; }
.btn-danger { background: #d93b3b; }
.btn-warning { background: #f59e0b; }
.btn-success { background: #10b981; }
.btn-primary-btn { background: #0a0a0a; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}
.form-control:focus { border-color: #0a0a0a; }
textarea.form-control { height: auto; min-height: 80px; padding: 8px 12px; }
select.form-control { background: #fff; }
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar input, .toolbar select {
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
}
.pagination .active { background: #0a0a0a; color: #fafafa; border-color: #0a0a0a; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.tag-pending { background: #f5f5f5; color: #666; }
.tag-shipped { background: #f0f0f0; color: #0a0a0a; }
.tag-done { background: #0a0a0a; color: #fafafa; }
.tag-cancel { background: #fafafa; color: #999; border: 1px solid #e5e5e5; }
.tag-unpaid { background: #fff3e0; color: #ff6b00; border: 1px solid #ffd9a8; }
.tag-virtual { background: #0a0a0a; color: #fafafa; font-size: 10px; padding: 1px 6px; }
.empty { text-align: center; padding: 60px 20px; color: #999; font-size: 13px; }
.qr-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.qr-img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid #f0f0f0;
  padding: 8px;
  background: #fff;
}
.qr-link {
  word-break: break-all;
  font-size: 12px;
  color: #666;
  margin: 16px 0;
  padding: 12px;
  background: #fafafa;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ============== 响应式 ============== */
/* 前端桌面端:手机壳居中,dock 浮在 phone-frame 底部 */
@media (min-width: 769px) {
  .mobile-page {
    background: #ececec;
    padding: 24px 0;
    min-height: 100vh;
  }
  .phone-frame {
    max-width: 420px;
    width: 420px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 64px -16px rgba(0,0,0,.12);
    background: #fafafa;
    min-height: calc(100vh - 48px);
    border-radius: 24px;
    overflow: visible;
  }
  .dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 388px;
    margin: 0;
  }
  .float-placeholder { display: none; }
  .page { background: #fafafa; }
  .page .container { max-width: 480px; }
}

/* 前端手机端:全屏 + dock 浮在 phone-frame 底部 */
@media (max-width: 768px) {
  .mobile-page { background: #fafafa; }
  .phone-frame {
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  .dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    width: auto;
    margin: 0;
    transform: none;
  }
  .float-placeholder { height: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* 后台桌面端 */
@media (min-width: 769px) {
  .admin-page { display: flex; min-height: 100vh; background: #fafafa; }
  .admin-sidebar {
    width: 220px;
    background: #ffffff;
    color: #0a0a0a;
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ececf0;
  }
  .admin-content { flex: 1; padding: 32px; min-width: 0; max-width: 100%; overflow-x: hidden; box-sizing: border-box; }
  .admin-content .card { max-width: 100%; overflow-x: auto; box-sizing: border-box; }
  .admin-content .table { min-width: 760px; }
  .admin-header { margin: -32px -32px 24px; }
}

/* 后台手机端:侧边栏改为顶部抽屉,表格横向滚动 */
@media (max-width: 768px) {
  .admin-page {
    display: block;
    background: #f5f6f8;
  }
  .admin-sidebar {
    width: 240px;
    background: #ffffff;
    color: #0a0a0a;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.1);
    border-right: 1px solid #ececf0;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar h2 {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }
  .admin-sidebar h2 .sidebar-close { display: inline-flex !important; }
  .admin-menu {
    display: block;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
  }
  .admin-menu li { flex-shrink: 0; }
  .admin-menu a {
    padding: 14px 20px;
    border-left: none;
    border-bottom: none;
    white-space: nowrap;
    font-size: 14px;
    color: #555;
  }
  .admin-menu a.active {
    background: #f5f7ff;
    border-bottom-color: transparent;
    border-left-color: #6366f1;
    color: #6366f1;
  }
  .admin-content {
    padding: 16px;
  }
  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px 16px;
  }
  .admin-header h1 { font-size: 16px; }
  .admin-user { flex-wrap: wrap; }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .stat-card { padding: 16px 14px; border-radius: 12px; }
  .stat-card .num { font-size: 22px; }
  .stat-card .label { font-size: 11px; }
  .stat-card-icon { width: 28px; height: 28px; top: 12px; right: 12px; }
  .stat-card-icon svg { width: 14px; height: 14px; }
  .stat-card-grad { padding: 16px 14px; border-radius: 12px; }
  .stat-card-grad .num { font-size: 20px; }
  .stat-card-grad .label { font-size: 11px; }
  .stat-card-grad .stat-card-icon { width: 28px; height: 28px; top: 12px; right: 12px; }
  .stat-card-grad .stat-card-icon svg { width: 14px; height: 14px; }
  .card { padding: 16px; overflow-x: auto; }
  .table {
    width: 100%;
    min-width: 600px;
  }
  .table th, .table td { padding: 10px 12px; font-size: 12px; }
  .form-item, .form-group { margin-bottom: 14px; }
  .form-input { font-size: 14px; }
  .btn, .btn-primary, .btn-secondary { height: 42px; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .sub-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .sub-stat { padding: 14px; }
  .sub-stat .n { font-size: 18px; }
  .login-box { width: 100%; max-width: 360px; padding: 36px 28px; }
  body.login-body { padding: 16px !important; }
  .add-form-grid { grid-template-columns: 1fr !important; }
  .admin-toggle { display: inline-flex !important; width: 32px; height: 32px; flex-shrink: 0; }
  .admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; opacity: 0; transition: opacity .2s; }
  .admin-backdrop.show { display: block; opacity: 1; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pay-amount-num { font-size: 32px; }
  .pay-methods { padding: 0 16px; }
  .pay-header { padding: 14px 16px; }
  .login-box { padding: 32px 24px; }
  .dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding: 48px 20px 32px; }
  .hero-title { font-size: 32px; }
  .card-block { margin: 16px; padding: 16px; }
  .profile { padding: 40px 20px 48px; }
}
