* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f3f6f8; color: #172033; }
a { color: #0052d9; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 14px 14px 86px; background: #f3f6f8; }
.top-card { background: linear-gradient(135deg, #007a3d 0%, #00984f 54%, #d71920 160%); border-radius: 24px; color: #fff; padding: 18px; box-shadow: 0 14px 30px rgba(0,122,61,0.22); overflow: hidden; position: relative; }
.top-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -52px; top: -58px; background: rgba(255,255,255,0.12); }
.brand-top-card { padding-top: 16px; }
.brand-line { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-logo { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.96); object-fit: contain; padding: 4px; box-shadow: 0 8px 18px rgba(15,23,42,0.12); }
.brand-logo-sm { width: 36px; height: 36px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 4px 12px rgba(15,23,42,0.08); }
.brand-name { font-size: 16px; font-weight: 950; line-height: 1.2; }
.brand-name.dark { color: #111827; }
.brand-subname { font-size: 12px; opacity: 0.88; margin-top: 3px; }
.brand-subname.dark { color: #64748b; opacity: 1; }
.title { margin-top: 14px; font-size: 22px; font-weight: 900; line-height: 1.35; position: relative; z-index: 1; }
.subtitle { margin-top: 8px; font-size: 13px; line-height: 1.6; opacity: 0.94; position: relative; z-index: 1; }
.back-link { display: inline-block; margin-bottom: 10px; color: rgba(255,255,255,0.92); font-size: 13px; font-weight: 800; text-decoration: none; position: relative; z-index: 1; }
.product-page { padding-bottom: 24px; }
.product-list { margin-top: 14px; display: grid; gap: 12px; }
.product-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 26px rgba(15,23,42,0.08); }
.coupon-brand-mini { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 12px; color: #334155; font-weight: 800; }
.coupon-brand-mini img { width: 24px; height: 24px; object-fit: contain; }
.coupon-brand-mini-top { padding-bottom: 4px; }
.product-main { padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #fff7ed 0%, #fff 62%); border-bottom: 1px dashed #f59e0b; }
.product-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #d71920; color: #fff; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.product-title { font-size: 20px; font-weight: 950; color: #111827; line-height: 1.35; }
.product-name { margin-top: 7px; font-size: 13px; color: #475569; line-height: 1.45; }
.product-desc { margin-top: 6px; font-size: 12px; color: #d71920; font-weight: 800; }
.product-price { text-align: right; flex: 0 0 auto; }
.product-sale { font-size: 32px; font-weight: 950; line-height: 1; color: #d71920; }
.product-sale span { font-size: 15px; margin-right: 2px; }
.gift-text { margin-top: 6px; font-size: 12px; color: #007a3d; font-weight: 900; }
.product-footer { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: #64748b; line-height: 1.5; }
.product-go { flex: 0 0 auto; color: #d71920; font-weight: 900; }
.coupon { margin-top: 14px; background: #fff; border-radius: 22px; box-shadow: 0 10px 26px rgba(15,23,42,0.08); overflow: hidden; }
.coupon-main { padding: 18px; background: linear-gradient(135deg, #fff7ed 0%, #fff 60%); border-bottom: 1px dashed #f59e0b; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.coupon-name { font-size: 18px; font-weight: 900; color: #111827; line-height: 1.4; }
.coupon-rule { margin-top: 8px; font-size: 13px; color: #64748b; line-height: 1.55; }
.strong-rule { color: #d71920; font-weight: 900; }
.price-box { text-align: right; flex: 0 0 auto; }
.sale-price { font-size: 34px; font-weight: 950; line-height: 1; color: #d71920; }
.sale-price span { font-size: 15px; margin-right: 2px; }
.coupon-info { padding: 14px 18px 16px; display: grid; gap: 8px; }
.info-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #475569; line-height: 1.55; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #00984f; margin-top: 7px; flex: 0 0 auto; }
.section { margin-top: 12px; background: #fff; border-radius: 18px; padding: 15px; box-shadow: 0 8px 20px rgba(15,23,42,0.05); }
.section-title { font-size: 15px; font-weight: 900; margin-bottom: 12px; color: #111827; }
.input-wrap { height: 48px; display: flex; align-items: center; border-radius: 14px; border: 1px solid #dbe3ea; background: #f8fafc; padding: 0 12px; }
.input-wrap:focus-within { border-color: #00984f; background: #fff; }
.prefix { color: #64748b; font-size: 14px; margin-right: 8px; }
input, textarea, select { font-family: inherit; }
input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: #111827; }
.hint { margin-top: 8px; font-size: 12px; color: #64748b; line-height: 1.5; }
.bottom-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid #e5e7eb; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(12px); z-index: 20; }
.total { flex: 1; }
.total-label { font-size: 12px; color: #64748b; }
.total-price { margin-top: 2px; font-size: 23px; color: #d71920; font-weight: 950; }
.submit-btn { height: 48px; min-width: 136px; border: 0; border-radius: 999px; background: #d71920; color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 10px 22px rgba(215,25,32,0.24); }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%) translateY(16px); max-width: calc(100% - 30px); padding: 11px 14px; border-radius: 14px; background: rgba(15,23,42,0.92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,0.52); display: none; align-items: flex-end; justify-content: center; z-index: 40; }
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); animation: slideUp .2s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-title { text-align: center; font-size: 18px; font-weight: 950; color: #111827; }
.modal-desc { margin-top: 8px; text-align: center; color: #64748b; font-size: 13px; line-height: 1.6; }
.summary { margin-top: 16px; border-radius: 16px; background: #f8fafc; padding: 13px; display: grid; gap: 9px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.5; }
.key { color: #64748b; flex: 0 0 auto; }
.value { color: #111827; font-weight: 800; text-align: right; word-break: break-all; }
.modal-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-btn { height: 46px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 900; }
.secondary { background: #f1f5f9; color: #334155; }
.primary { background: #d71920; color: #fff; }
.status-page { max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 24px 16px; background: #f3f6f8; }
.status-card { background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.status-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-title { font-size: 22px; font-weight: 950; color: #111827; }
.status-desc { margin-top: 10px; color: #64748b; line-height: 1.7; font-size: 14px; }
.primary-link { display: block; text-align: center; text-decoration: none; margin-top: 18px; height: 46px; line-height: 46px; border-radius: 14px; background: #d71920; color: #fff; font-weight: 900; }
.admin-body { background: #f8fafc; padding: 20px; }
.admin-wrap { max-width: 1280px; margin: 0 auto; }
.admin-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-brand-line { gap: 10px; }
.admin-title { font-size: 22px; font-weight: 950; margin-bottom: 6px; }
.admin-subtitle { color: #64748b; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.stat-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; background: #f8fafc; }
.stat-label { color: #64748b; font-size: 13px; font-weight: 800; }
.stat-value { color: #0f766e; font-size: 28px; font-weight: 950; margin-top: 6px; }
.admin-direct-box { margin-bottom: 16px; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; background: #f8fafc; }
.admin-filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-direct-form { margin-top: 10px; }
.admin-input { height: 38px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 10px; background: #fff; min-width: 180px; }
.admin-textarea { min-height: 78px; width: min(520px, 100%); border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px; resize: vertical; background: #fff; }
.admin-tools { margin-bottom: 12px; }
.admin-btn { border: 0; border-radius: 9px; padding: 8px 11px; background: #0f766e; color: #fff; font-weight: 800; cursor: pointer; margin: 2px; }
.admin-btn.red { background: #d71920; }
.admin-btn.gray { background: #64748b; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e2e8f0; padding: 10px 8px; text-align: left; vertical-align: top; }
.admin-table th { color: #64748b; font-weight: 900; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #e2e8f0; font-size: 12px; font-weight: 800; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.muted-line { color: #64748b; font-size: 12px; }
.hidden-price { display: none; }
pre { white-space: pre-wrap; word-break: break-all; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 12px; font-size: 12px; }
@media (min-width: 481px) { body { background: #e5e7eb; } .page { box-shadow: 0 0 40px rgba(15,23,42,0.08); } }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } .admin-header { flex-direction: column; } }

/* v5 additions: original-price display and cleaner admin batch panel */
.product-origin,
.origin-price,
.total-origin,
.origin-inline {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 700;
}
.product-origin { margin-bottom: 5px; }
.origin-price { margin-bottom: 5px; }
.total-origin { margin-top: 1px; }
.admin-direct-box.v5-direct-box {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #dbe3ea;
}
.admin-direct-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}
.admin-field { display: grid; gap: 7px; }
.admin-field label { font-size: 13px; color: #334155; font-weight: 900; }
.admin-field .admin-input,
.admin-field .admin-textarea { width: 100%; min-width: 0; margin: 0; }
.admin-direct-submit { height: 42px; white-space: nowrap; }
.queue-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .admin-direct-layout { grid-template-columns: 1fr; align-items: stretch; }
  .admin-direct-submit { width: 100%; }
}

.pagination-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; color: #64748b; font-size: 13px; flex-wrap: wrap; }
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; }
.queue-detail-box { margin-top: 14px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }

.package-mini-list {
  margin-top: 8px;
  font-size: 12px;
  color: #7f1d1d;
  line-height: 1.55;
  font-weight: 700;
}
.package-detail-list {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
}
.retail-links{margin:16px;text-align:center;display:flex;gap:14px;justify-content:center;font-size:13px}.retail-links a{color:#64748b;text-decoration:none}.operator-box{margin-top:12px}.field-label,.admin-label{display:block;font-size:13px;font-weight:900;color:#334155;margin-bottom:8px}.mobile-select{width:100%;height:44px}.secondary-link{background:#64748b!important;margin-top:10px}.admin-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;flex-wrap:wrap}.admin-subtitle{color:#64748b;font-size:13px;margin-top:4px}.stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:12px 0 16px}.stat-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.stat-card b{display:block;font-size:22px;color:#d71920}.stat-card span{font-size:12px;color:#64748b}.direct-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:12px;align-items:start}.admin-textarea{width:100%;min-height:110px;border:1px solid #cbd5e1;border-radius:12px;padding:10px;font-size:14px}.wide-btn{width:100%;height:40px;margin-top:10px}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.customer-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.customer-card span,.customer-card small{display:block;color:#64748b;font-size:12px;margin-top:3px}.muted-line{color:#64748b;font-size:12px}.pagination{display:flex;align-items:center;gap:10px;margin-top:14px}.pagination a{padding:6px 10px;background:#0f766e;color:#fff;border-radius:8px;text-decoration:none}.mobile-list{display:grid;gap:10px}.mobile-row,.cash-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.mobile-row{display:flex;justify-content:space-between;gap:10px}.cash-card div{display:flex;justify-content:space-between;gap:10px}.cash-card span,.cash-card p{color:#64748b;font-size:13px;margin-top:5px}.price-col{display:none}.show-prices .price-col{display:table-cell}@media(max-width:760px){.stat-grid{grid-template-columns:repeat(2,1fr)}.direct-grid{grid-template-columns:1fr}.customer-grid{grid-template-columns:1fr}.admin-body{padding:10px}.admin-table{font-size:12px}.admin-table th,.admin-table td{padding:8px 6px}.brand-logo{width:44px;height:44px}}
.hidden-price{display:none}.queue-detail-box{margin-top:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.price-real{color:#111827;font-weight:900}
.warn-box{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:14px;padding:12px;margin:12px 0;font-size:13px;line-height:1.6}.enterprise-quota-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0 16px}.quota-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.quota-low{border-color:#f97316;background:#fff7ed}.quota-title{font-weight:900;color:#111827;margin-bottom:8px}.quota-main b{font-size:28px;color:#d71920}.quota-main span{font-size:12px;color:#64748b;margin-left:6px}.quota-lines{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;color:#64748b;font-size:12px}.enterprise-order-card{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px;text-decoration:none;color:#111827}.enterprise-order-card div{display:flex;justify-content:space-between;gap:10px}.enterprise-order-card span,.enterprise-order-card p{color:#64748b;font-size:13px;margin:6px 0 0}.super-inline{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;align-items:center}.product-edit-form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #e2e8f0}.product-edit-title{font-weight:900;color:#111827;grid-column:1/-1}.product-edit-form label{font-size:12px;color:#334155}.admin-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.admin-filter .admin-input{min-width:150px}@media(max-width:760px){.enterprise-quota-grid{grid-template-columns:1fr}.super-inline,.product-edit-form{grid-template-columns:1fr}.quota-lines{grid-template-columns:1fr}.enterprise-order-card div{display:block}.admin-filter .admin-input{width:100%;min-width:0}.admin-filter .admin-btn{width:100%;}}

/* v9.1 super-admin visual management polish */
.super-body { background: #eef2f7; }
.super-wrap { max-width: 1320px; }
.super-hero { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #ecfdf5 100%); border: 1px solid #e2e8f0; }
.super-header { align-items: center; }
.super-links { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.super-links a { color: #0f766e; text-decoration: none; font-weight: 900; padding: 7px 10px; background: #ecfdf5; border-radius: 999px; }
.super-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.metric-card { background: rgba(255,255,255,0.84); border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; min-height: 88px; }
.metric-card span { display: block; color: #64748b; font-size: 12px; font-weight: 900; }
.metric-card b { display: block; color: #0f766e; font-size: 24px; margin-top: 8px; letter-spacing: -0.5px; }
.metric-card small { color: #94a3b8; font-size: 12px; }
.super-tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 4px 0; background: #eef2f7; }
.super-tab { white-space: nowrap; border: 1px solid #dbe3ea; background: #fff; color: #334155; border-radius: 999px; padding: 9px 14px; font-weight: 950; cursor: pointer; }
.super-tab.active { background: #0f766e; color: #fff; border-color: #0f766e; box-shadow: 0 8px 18px rgba(15,118,110,0.18); }
.super-panel { display: none; margin-top: 10px; }
.super-panel.active { display: block; }
.super-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.soft-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; }
.mini-title { color: #111827; font-size: 14px; font-weight: 950; margin-bottom: 7px; }
.super-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center; margin-top: 10px; }
.super-form-grid .admin-input { min-width: 0; width: 100%; }
.mobile-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.compact-table th, .compact-table td { white-space: nowrap; }
.muted-cell, .empty-card { color: #94a3b8; text-align: center; padding: 16px; }
.super-card-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.super-card-list.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manage-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; box-shadow: 0 4px 12px rgba(15,23,42,0.04); }
.manage-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.manage-card-head b { color: #111827; font-size: 15px; }
.pill { border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 900; background: #e2e8f0; color: #475569; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.off { background: #fee2e2; color: #991b1b; }
.manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.manage-grid label { display: grid; gap: 6px; color: #475569; font-size: 12px; font-weight: 900; }
.manage-grid .admin-input { min-width: 0; width: 100%; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide-field { grid-column: span 2; }
.check-row, .switch-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 10px 0; color: #334155; font-size: 13px; font-weight: 900; }
.switch-row label { display: flex; align-items: center; gap: 6px; }
.admin-btn.secondary { background: #0f766e; }
.product-edit-list { display: grid; gap: 12px; margin-top: 12px; }
.product-id-line { color: #94a3b8; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: -4px 0 10px; word-break: break-all; }
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media(max-width: 1100px){ .super-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .super-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .super-form-grid .admin-btn { grid-column: span 2; width: 100%; } }
@media(max-width: 760px){ .admin-body { padding: 10px; } .super-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .super-two-col, .super-card-list.two-cols, .manage-grid, .product-grid { grid-template-columns: 1fr; } .super-form-grid { grid-template-columns: 1fr; } .super-form-grid .admin-btn { grid-column: auto; } .wide-field { grid-column: auto; } .super-tabs { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; } .metric-card b { font-size: 20px; } }

/* v9.2 operations polish */
.top-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.top-links a{color:#0f766e;text-decoration:none;font-weight:900;background:#ecfdf5;border-radius:999px;padding:7px 10px;font-size:13px}.queue-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;border-radius:16px;padding:14px 16px;margin:12px 0;border:1px solid #e2e8f0}.queue-banner.running{background:#ecfdf5;border-color:#bbf7d0}.queue-banner.paused{background:#fff7ed;border-color:#fed7aa}.queue-banner b{display:block;color:#111827}.queue-banner span{display:block;color:#64748b;font-size:13px;margin-top:4px}.queue-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-btn.secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#fff;background:#0f766e}.enhanced-box{border-color:#fecaca;background:linear-gradient(180deg,#fff 0%,#fff7f7 100%)}.admin-split{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.job-list{display:grid;gap:10px}.job-card{display:block;text-decoration:none;color:#111827;border:1px solid #e2e8f0;border-radius:14px;padding:12px;background:#fff}.job-card div:first-child{display:flex;justify-content:space-between;gap:10px}.job-card span,.job-card small{color:#64748b;font-size:12px}.progress-line{height:8px;border-radius:999px;background:#e2e8f0;margin:10px 0;overflow:hidden}.progress-line i{display:block;height:100%;background:#0f766e;border-radius:999px}.failure-list{display:grid;gap:8px}.failure-row{border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff}.failure-row b{display:block;color:#991b1b}.failure-row span{font-weight:900;color:#d71920}.failure-row small{display:block;color:#64748b;font-size:12px;margin-top:4px;line-height:1.45}.mini-btn{padding:6px 8px;font-size:12px;margin:2px}.muted-link{color:#0f766e;font-size:12px;text-decoration:none;font-weight:900}.job-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.job-summary>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.job-summary span{display:block;color:#64748b;font-size:12px}.job-summary b{display:block;color:#111827;margin-top:5px;font-size:14px;word-break:break-word}@media(max-width:900px){.queue-banner{display:block}.queue-actions{margin-top:10px}.admin-split{grid-template-columns:1fr}.job-summary{grid-template-columns:1fr 1fr}.top-links a{font-size:12px}.queue-actions .admin-btn{flex:1;min-width:120px}.admin-direct-box{padding:12px}}@media(max-width:640px){.job-summary{grid-template-columns:1fr}.direct-grid{gap:10px}.admin-textarea{min-height:150px}.admin-title{font-size:20px}.stat-card b{font-size:20px}.admin-table th,.admin-table td{white-space:nowrap}.super-tabs{top:0}.super-links a,.top-links a{padding:6px 8px}}

/* v9.3 retail/VIP cleanup */
.clean-retail-page .retail-hero { background: linear-gradient(135deg, #c91f2e 0%, #d71920 42%, #005bac 120%); box-shadow: 0 14px 30px rgba(215,25,32,0.18); }
.retail-pay-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.retail-pay-row span { text-align: center; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 8px 4px; font-size: 12px; font-weight: 900; }
.clean-product-list { gap: 14px; }
.clean-product-card { border: 1px solid #eef2f7; box-shadow: 0 8px 22px rgba(15,23,42,0.07); }
.clean-product-card .product-main { background: linear-gradient(135deg,#fff7f1 0%,#fff 65%); }
.clean-product-card .product-footer { font-size: 12px; color: #64748b; }
.clean-buy-page .compact-hero { background: linear-gradient(135deg, #d71920 0%, #c91f2e 52%, #005bac 135%); }
.clean-coupon, .clean-section, .clean-status-card { border: 1px solid #eef2f7; }
.pay-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-grid-4 .pay-item { min-height: 58px; justify-content: flex-start; padding: 10px 12px; border-radius: 16px; }
.pay-icon.redeem { background: #7c3aed; color: #fff; }
.redeem-box { margin-top: 12px; }
.mobile-input { width: 100%; height: 44px; border-radius: 12px; }
.operator-box .compact-notice { margin-top: 8px; }
.product-origin, .origin-price { color: #94a3b8; font-size: 12px; margin-top: 6px; text-decoration: line-through; }
@media(max-width: 420px) { .retail-pay-row { grid-template-columns: 1fr; } .pay-grid-4 { grid-template-columns: 1fr; } .product-main, .coupon-main { display: block; } .product-price, .price-box { text-align: left; margin-top: 14px; } }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pay-item { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border: 1px solid #dbe3ea; background: #f8fafc; border-radius: 14px; color: #334155; font-size: 13px; font-weight: 900; cursor: pointer; transition: .16s ease; }
.pay-item.selected { border-color: #d71920; background: #fff1f2; color: #b91c1c; box-shadow: inset 0 0 0 1px rgba(215,25,32,.08); }
.pay-icon { width: 25px; height: 25px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 950; flex: 0 0 auto; }
.pay-icon.cash { background: #d71920; }
.pay-icon.wechat { background: #16a34a; }
.pay-icon.alipay { background: #1677ff; }
.operator-box { margin-top: 12px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 16px; padding: 12px; }
.field-label { color: #334155; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.compact-notice { color: #64748b; font-size: 12px; line-height: 1.55; }
.mobile-select { width: 100%; height: 44px; border-radius: 12px; }

/* V9.4: cleaner retail header and VIP visual mode */
.retail-top-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.retail-home-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 950; letter-spacing: .2px; }
.retail-home-brand img { width: 26px; height: 26px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; }
.vip-login-link { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.16); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; backdrop-filter: blur(6px); white-space: nowrap; }
.vip-login-link:active { transform: scale(.98); }
.hero-brand-line { margin-top: 2px; }

.vip-body { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #fff7dc 0%, rgba(255,247,220,0) 30%), linear-gradient(160deg, #1f2937 0%, #111827 34%, #f7f3e9 34.1%, #f6f0df 100%); color: #172033; padding: 16px; }
.vip-login-wrap { max-width: 480px; margin: 0 auto; min-height: calc(100vh - 32px); display: flex; align-items: center; justify-content: center; }
.vip-login-card { width: 100%; position: relative; border-radius: 28px; padding: 26px 20px 20px; background: linear-gradient(180deg,#fffdf8 0%,#fff 58%,#fff8eb 100%); border: 1px solid rgba(212,175,55,.36); box-shadow: 0 24px 60px rgba(17,24,39,.28); overflow: hidden; }
.vip-login-card::before { content:""; position:absolute; inset:0 0 auto 0; height: 6px; background: linear-gradient(90deg,#9a6a12,#f3d36a,#b8860b); }
.vip-crown { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; background: linear-gradient(135deg,#b88719,#f3d36a); color:#3b2500; font-size: 12px; font-weight: 950; letter-spacing: 1px; margin-bottom: 14px; }
.vip-brand-block { display: flex; align-items: center; gap: 12px; }
.vip-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; object-fit: contain; padding: 5px; box-shadow: 0 10px 24px rgba(154,106,18,.16); }
.vip-title { font-size: 23px; font-weight: 950; color:#111827; line-height: 1.25; }
.vip-subtitle { margin-top: 4px; color:#8a6b25; font-size: 13px; font-weight: 800; }
.vip-divider { height: 1px; background: linear-gradient(90deg,rgba(184,134,11,0),rgba(184,134,11,.45),rgba(184,134,11,0)); margin: 18px 0; }
.vip-form { display: grid; gap: 13px; }
.vip-field { display: grid; gap: 7px; }
.vip-field span { font-size: 13px; color:#475569; font-weight: 900; }
.vip-field input { width: 100%; height: 48px; border: 1px solid #eadfbf; border-radius: 14px; background:#fffaf0; padding: 0 12px; font-size: 15px; }
.vip-field input:focus { border-color: #b88719; background:#fff; }
.vip-error { background:#fff1f2; border:1px solid #fecdd3; color:#b91c1c; border-radius: 12px; padding: 10px; font-size: 13px; }
.vip-submit { height: 48px; border:0; border-radius: 999px; background: linear-gradient(135deg,#111827,#374151); color:#fff; font-size: 16px; font-weight: 950; box-shadow: 0 12px 26px rgba(17,24,39,.2); }
.vip-safe-tip { margin-top: 14px; text-align:center; color:#8a6b25; font-size: 12px; font-weight: 800; }

.vip-dashboard-wrap { max-width: 980px; margin: 0 auto; }
.vip-dashboard-hero { border-radius: 28px; padding: 18px; color: #fff; background: linear-gradient(135deg,#111827 0%,#253148 58%,#8a6111 145%); box-shadow: 0 22px 55px rgba(17,24,39,.26); overflow: hidden; position: relative; }
.vip-dashboard-hero::after { content:""; position:absolute; width: 170px; height: 170px; border-radius: 50%; right: -70px; top: -70px; background: rgba(243,211,106,.18); }
.vip-dashboard-top { position: relative; z-index: 1; display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.vip-brand-mini { display:flex; align-items:center; gap: 9px; font-weight: 950; }
.vip-brand-mini img { width: 34px; height: 34px; border-radius: 10px; background:#fff; padding: 3px; object-fit: contain; }
.vip-logout { color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.38); border-radius:999px; padding: 7px 11px; font-size: 12px; font-weight: 900; }
.vip-hello { position: relative; z-index: 1; margin-top: 24px; font-size: 28px; font-weight: 950; line-height: 1.25; }
.vip-hello-sub { position: relative; z-index: 1; margin-top: 7px; color:rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.vip-warning-card, .vip-panel { background: rgba(255,255,255,.96); border: 1px solid rgba(234,223,191,.8); border-radius: 22px; padding: 16px; margin-top: 14px; box-shadow: 0 12px 30px rgba(17,24,39,.08); }
.vip-warning-card { background: #fff7ed; color:#9a3412; }
.vip-warning-card p { margin-top: 6px; line-height: 1.6; font-size: 13px; }
.vip-panel-title { font-size: 17px; font-weight: 950; margin-bottom: 12px; color:#111827; }
.vip-quota-grid { gap: 12px; }
.vip-quota-card { border-color:#eadfbf; background: linear-gradient(180deg,#fffef8,#fff); }
.quota-progress { height: 8px; border-radius: 999px; background:#f1f5f9; overflow:hidden; margin: 10px 0 8px; }
.quota-progress i { display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg,#b88719,#f3d36a); }
.vip-search { display:flex; gap: 8px; margin-bottom: 12px; }
.vip-search input { flex:1; min-width: 0; height: 42px; border:1px solid #eadfbf; border-radius: 13px; background:#fff; padding:0 12px; }
.vip-search button { border:0; border-radius: 13px; padding: 0 16px; background:#111827; color:#fff; font-weight: 900; }
.vip-order-card { border:1px solid #efe4c7; border-radius: 16px; background:#fffdf8; color:inherit; text-decoration:none; }
.vip-order-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.vip-order-head span { flex:0 0 auto; color:#8a6b25; font-weight:900; font-size:12px; }
.vip-pagination a { background:#111827; color:#fff; border-color:#111827; }

.queue-policy-note { margin-top: 10px; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 10px 12px; background: #fff; color:#475569; font-size: 12px; line-height: 1.6; }
.queue-policy-note b { color:#111827; }

@media(max-width: 520px) {
  .vip-body { padding: 12px; }
  .vip-login-wrap { min-height: calc(100vh - 24px); }
  .vip-dashboard-hero { border-radius: 24px; }
  .vip-hello { font-size: 24px; }
  .vip-search { display:grid; grid-template-columns:1fr; }
  .retail-home-brand span { max-width: 112px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .vip-login-link { padding: 7px 9px; font-size: 11px; }
}
