:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #fff;
  --bg-card: #fff;
  --bg-input: #fff;
  --text-primary: #333740;
  --text-secondary: #8a9099;
  --accent: #2979ff;
  --accent-hover: #2979ff;
  --danger: #d03050;
  --warning: #f0a020;
  --success: #2979ff;
  --border: #e0e0e6;
  --card-header-bg: #f6f7f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  cursor: default;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

#app { min-height: 100vh; }

/* ===== XArr Style Top Header ===== */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  margin-right: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #ff9b47;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 6px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
  font-weight: 500;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.balance {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.nav-item.logout {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

.footer-inner {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--card-header-bg);
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 600;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Forms */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(24,160,88,0.15);
}

.form-input::placeholder { color: #b0b0b0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #e0e0e6; color: #aaa; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b82340; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 4px 12px; font-size: 12px; }

/* Table */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-secondary); font-weight: 500; font-size: 13px; background: var(--card-header-bg); }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: rgba(24,160,88,0.1); color: var(--success); }
.badge-warning { background: rgba(240,160,32,0.1); color: var(--warning); }
.badge-danger { background: rgba(208,48,80,0.1); color: var(--danger); }
.badge-info { background: rgba(22,119,255,0.1); color: #1677ff; }

/* Login page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.auth-box {
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-box h2 { text-align: center; margin-bottom: 6px; color: var(--accent); font-size: 22px; }

.auth-box .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 28px; font-size: 14px; }

.auth-links { text-align: center; margin-top: 16px; }
.auth-links a { color: var(--accent); text-decoration: none; font-size: 14px; cursor: pointer; }
.auth-links a:hover { text-decoration: underline; }
.auth-links span { color: var(--text-secondary); margin: 0 8px; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 14px; }

/* Page header */
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.page-header .desc { color: var(--text-secondary); font-size: 13px; }

/* Alert */
.alert { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: rgba(24,160,88,0.1); border: 1px solid rgba(24,160,88,0.2); color: var(--success); }
.alert-error { background: rgba(208,48,80,0.1); border: 1px solid rgba(208,48,80,0.2); color: var(--danger); }
.alert-warning { background: rgba(240,160,32,0.1); border: 1px solid rgba(240,160,32,0.2); color: var(--warning); }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000;
}

.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; width: 520px; max-width: 90%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal h3 { margin-bottom: 16px; font-size: 16px; }

.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* Product cards */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}

.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}

.product-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(24,160,88,0.1); }
.product-card .name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.product-card .desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.product-card .hot-tag { display: inline-block; padding: 1px 8px; background: var(--danger); color: #fff; font-size: 11px; border-radius: 4px; }

.meal-list { margin-top: 12px; }

.meal-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.meal-item:last-child { border-bottom: none; }
.meal-item .info .name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.meal-item .info .desc { color: var(--text-secondary); font-size: 12px; }
.meal-item .price { font-size: 20px; font-weight: 700; color: var(--danger); margin: 0 16px; white-space: nowrap; }

/* Secret display */
.secret-display {
  font-family: 'Courier New', monospace; background: var(--bg-input);
  padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border);
  word-break: break-all; font-size: 13px; display: flex; justify-content: space-between; align-items: center;
}

/* Auth cards */
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
}
.auth-card .info h4 { font-size: 15px; margin-bottom: 6px; }
.auth-card .meta { color: var(--text-secondary); font-size: 13px; }
.auth-card .meta span { margin-right: 16px; }

/* Responsive */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-right { display: none; }
  .main-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-box { width: 90%; padding: 24px; }
}

/* 防止非交互元素显示输入光标 */
h1, h2, h3, h4, h5, h6, p, span, div, label, small, strong, td, th, li {
  cursor: default;
}
a, button, input, select, textarea, [onclick], .clickable {
  cursor: pointer;
}

/* 强制修复鼠标指针 - 覆盖所有元素 */
* { cursor: default !important; }
a, button, input, select, textarea, [onclick], [onClick],
.clickable, .nav-btn, .btn-sm, .btn-submit, .btn-buy, .btn-cancel,
.prod-card, .tab-item, img[onClick], div[onClick] {
  cursor: pointer !important;
}
input, textarea { cursor: text !important; }
a { cursor: pointer !important; }
button:disabled { cursor: not-allowed !important; }

html,body,#app{height:100%}#app>.n-config-provider{height:100%}.xarr-card .n-card__content{padding-top:10px}.xarr-card .n-card-header{background-color:#f6f7f9}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}[left~="${currentDate}"]{left:var(--\{currentDate\})}[right~="${securityCode}"]{right:var(--\{securityCode\})}.grid{display:grid}.mx-2{margin-left:.5rem;margin-right:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.inline,[inline=""]{display:inline}.block,[block=""]{display:block}.inline-block{display:inline-block}.hidden{display:none}.h-20px{height:20px}.h-45px{height:45px}.h-8{height:2rem}.h-full{height:100%}.h1{height:.25rem}.max-w-\[400px\]{max-width:400px}.max-w-28{max-width:7rem}.max-w-40{max-width:10rem}.w-20px{width:20px}.w-40px{width:40px}.w-fit{width:fit-content}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-initial{flex:0 1 auto}.flex-shrink{flex-shrink:1}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{grid-gap:.5rem;gap:.5rem}.break-all{word-break:break-all}.b,.border{border-width:1px}.rounded-10px{border-radius:10px}[px=""]{padding-left:1rem;padding-right:1rem}.pl-1{padding-left:.25rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.indent{text-indent:1.5rem}[indent~="18"]{text-indent:4.5rem}.text-16px{font-size:16px}.text-25px{font-size:25px}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}[color~="#09BB07"]{--un-text-opacity:1;color:rgba(9,187,7,var(--un-text-opacity))}[color~="#1677ff"],[color~="#1677FF"]{--un-text-opacity:1;color:rgba(22,119,255,var(--un-text-opacity))}[color~="#2979ff"]{--un-text-opacity:1;color:rgba(24,160,88,var(--un-text-opacity))}[color~="#2d8cf0"]{--un-text-opacity:1;color:rgba(45,140,240,var(--un-text-opacity))}[color~="#2979ff"]{--un-text-opacity:1;color:rgba(54,173,106,var(--un-text-opacity))}[color~="#52c41a"]{--un-text-opacity:1;color:rgba(82,196,26,var(--un-text-opacity))}[color~="#808695"]{--un-text-opacity:1;color:rgba(128,134,149,var(--un-text-opacity))}[color~="#909399"]{--un-text-opacity:1;color:rgba(144,147,153,var(--un-text-opacity))}[color~="#d03050"]{--un-text-opacity:1;color:rgba(208,48,80,var(--un-text-opacity))}[color~="#f5a623"]{--un-text-opacity:1;color:rgba(245,166,35,var(--un-text-opacity))}[color~="#ff7875"]{--un-text-opacity:1;color:rgba(255,120,117,var(--un-text-opacity))}.text-\#ff9b47{--un-text-opacity:1;color:rgba(255,155,71,var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity))}.text-red{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity))}.line-through{text-decoration-line:line-through}.text-shadow{--un-text-shadow:0 0 1px var(--un-text-shadow-color, rgba(0,0,0,.2)),0 0 1px var(--un-text-shadow-color, rgba(1,0,5,.1));text-shadow:var(--un-text-shadow)}.outline{outline-style:solid}.blur,[blur=""],[blur~="required:"]:required{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease,.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[placeholder~="${recommendedAmount}"]::placeholder{color:var(--\{recommendedAmount\})}

*{margin:0;padding:0;box-sizing:border-box;cursor:default}
body{font-family:'Noto Sans SC','Microsoft YaHei','SimHei','PingFang SC','Segoe UI',Roboto,-apple-system,sans-serif;background:#f5f6fa;color:#1d2129;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
*{font-family:inherit};background:#f5f6fa;color:#1d2129;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{cursor:pointer;text-decoration:none;color:inherit}
#app{min-height:100vh}
.icon{display:inline-flex;align-items:center;justify-content:center}
.icon svg{display:block}
.topbar{background:#fff;border-bottom:1px solid #e8eaed;height:56px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.topbar-inner{max-width:1200px;margin:0 auto;padding:0 24px;height:100%;display:flex;align-items:center}
.topbar-brand{display:flex;align-items:center;gap:8px;margin-right:40px}
.brand-icon{font-size:22px}
.brand-text{font-size:16px;font-weight:600;color:#1d2129}
.topbar-links{display:flex;gap:4px}
.topbar-link{padding:6px 16px;border-radius:6px;color:#86909c;font-size:14px;transition:all .2s}
.topbar-link:hover,.topbar-link.active{color:#2979ff;background:rgba(24,160,88,.06)}
.topbar-right{margin-left:auto}
.page-login{min-height:100vh;background:#f5f6fa;display:flex;flex-direction:column}
.login-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 20px}
.login-box{background:#fff;border-radius:12px;padding:48px 40px;width:400px;box-shadow:0 4px 12px rgba(0,0,0,.08);text-align:center}
.login-avatar{margin-bottom:20px}
.avatar-circle{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#eef2ff,#f0f4ff);display:flex;align-items:center;justify-content:center;margin:0 auto;font-size:32px;box-shadow:0 2px 8px rgba(24,160,88,.15)}
.login-h1{font-size:24px;font-weight:600;margin-bottom:4px}
.login-sub{color:#86909c;margin-bottom:28px}
.alert{background:rgba(208,48,80,.06);border:1px solid rgba(208,48,80,.15);color:#d03050;padding:10px 14px;border-radius:8px;margin-bottom:20px;font-size:13px;text-align:left}
.field{position:relative;margin-bottom:20px}
.field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#86909c;display:flex;align-items:center}
.field-icon svg{width:18px;height:18px}
.field-input{width:100%;height:44px;padding:0 14px;border:1.5px solid #e8eaed;border-radius:8px;font-size:14px;color:#1d2129;outline:none;transition:all .2s;background:#fff;font-family:inherit}
.field-icon{display:none}
.field-input:focus{border-color:#2979ff;box-shadow:0 0 0 3px rgba(24,160,88,.12)}
.field-input::placeholder{color:#c9cdd4}
.btn-submit{width:100%;height:44px;background:#2979ff;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px;font-family:inherit}
.btn-submit:hover{background:#2979ff;box-shadow:0 2px 8px rgba(24,160,88,.3)}
.btn-submit:disabled{background:#c9cdd4;cursor:not-allowed;box-shadow:none}
.spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.login-foot{display:flex;justify-content:center;gap:32px;margin-top:20px}
.link-muted{color:#86909c;font-size:13px;transition:color .2s}
.link-muted:hover{color:#2979ff}
.login-copy{text-align:center;padding:16px;color:#86909c;font-size:12px}
.shell{display:flex;height:100vh}
.aside{width:240px;background:#f8f9fb;border-right:1px solid #e8eaed;display:flex;flex-direction:column}
.aside-brand{padding:20px;text-align:center;border-bottom:1px solid #e8eaed;background:#fff}
.aside-brand h2{font-size:18px;color:#2979ff;margin:0;font-weight:700}
.aside-brand small{color:#86909c;font-size:12px}
.aside-nav{flex:1;padding:8px;overflow-y:auto}
.nav-btn{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:0;color:#86909c;font-size:14px;transition:all .2s;margin:0 8px;margin-bottom:2px;width:calc(100% - 16px);border:none;background:none;cursor:pointer;text-align:left}
.nav-btn:hover{background:rgba(24,160,88,.06);color:#2979ff;border-radius:6px}
.nav-btn.active{background:rgba(24,160,88,.1);color:#2979ff;font-weight:500;border-radius:6px}
.nav-icon{display:flex;align-items:center}
.nav-icon svg{width:18px;height:18px}
.aside-user{padding:16px;border-top:1px solid #e8eaed;background:#fff}
.user-info{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:4px}
.user-info svg{width:16px;height:16px;color:#86909c}
.user-balance{font-size:13px;color:#d03050;font-weight:600;margin-bottom:8px}
.user-logout{display:flex;align-items:center;gap:6px;color:#86909c;font-size:12px;transition:color .2s}
.user-logout:hover{color:#d03050}
.user-logout svg{width:14px;height:14px}
.body{flex:1;display:flex;flex-direction:column;overflow:hidden}
.body-hdr{background:#fff;border-bottom:1px solid #e8eaed;padding:0 24px;height:56px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.hdr-title{font-size:16px;font-weight:600}
.hdr-right{display:flex;align-items:center;gap:12px}
.hdr-balance{background:rgba(208,48,80,.06);color:#d03050;padding:4px 12px;border-radius:16px;font-size:13px;font-weight:600}
.body-main{flex:1;padding:24px;overflow-y:auto}
.body-ft{border-top:1px solid #e8eaed;padding:12px 24px;text-align:center;color:#86909c;font-size:12px;background:#fff}
.card{background:#fff;border:1px solid #e8eaed;border-radius:8px;margin-bottom:20px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card-hdr{padding:14px 20px;background:#f7f8fa;border-bottom:1px solid #e8eaed;font-size:14px;font-weight:600}
.card-body{padding:20px}
.welcome{background:linear-gradient(135deg,#eef2ff 0%,#f0f4ff 100%);border-radius:8px;padding:32px;text-align:center;margin-bottom:20px}
.welcome h2{color:#2979ff;font-size:22px;margin-bottom:4px}
.welcome p{color:#86909c;font-size:14px}
.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.kpi{background:#fff;border:1px solid #e8eaed;border-radius:8px;padding:20px;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s}
.kpi:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.kpi-val{font-size:28px;font-weight:700;color:#2979ff;margin-bottom:4px}
.kpi-lbl{color:#86909c;font-size:13px}
.kpi-accent .kpi-val{color:#d03050}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.prod-card{border:1.5px solid #e8eaed;border-radius:8px;padding:20px;cursor:pointer;transition:all .2s;background:#fff}
.prod-card:hover{border-color:#2979ff;box-shadow:0 2px 12px rgba(24,160,88,.12);transform:translateY(-1px)}
.prod-card h3{font-size:15px;font-weight:600;margin-bottom:6px}
.prod-card p{color:#86909c;font-size:13px;line-height:1.5}
.tag-hot{display:inline-block;padding:2px 8px;background:linear-gradient(135deg,#ff4757,#ff6b81);color:#fff;font-size:11px;border-radius:4px;margin-top:8px;font-weight:500}
.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{padding:12px 16px;text-align:left;border-bottom:1px solid #e8eaed;font-size:14px}
.tbl th{background:#f7f8fa;color:#86909c;font-weight:500;font-size:13px}
.tbl tr:hover td{background:rgba(24,160,88,.02)}
.tag{display:inline-block;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:500}
.tag-ok{background:rgba(46,125,50,.1);color:#2e7d32}
.tag-no{background:rgba(208,48,80,.1);color:#d03050}
.auth-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #e8eaed}
.auth-row:last-child{border-bottom:none}
.auth-code{font-family:'SF Mono','Fira Code',monospace;font-size:12px;background:#f7f8fa;padding:3px 10px;border-radius:6px;display:inline-block;margin-bottom:4px}
.auth-meta{color:#86909c;font-size:13px}
.auth-actions{display:flex;align-items:center;gap:10px}
.btn-sm{height:30px;padding:0 14px;border-radius:6px;border:1.5px solid #e8eaed;background:#fff;color:#1d2129;font-size:12px;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}
.btn-sm:hover{border-color:#2979ff;color:#2979ff}
.btn-danger{height:36px;padding:0 20px;border-radius:8px;border:none;background:#d03050;color:#fff;font-size:13px;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}
.btn-danger:hover{background:#b82340}
.btn-cancel{height:36px;padding:0 20px;border-radius:8px;border:1.5px solid #e8eaed;background:#fff;color:#1d2129;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.btn-cancel:hover{border-color:#2979ff;color:#2979ff}
.btn-buy{height:36px;padding:0 16px;border-radius:6px;border:none;background:#2979ff;color:#fff;font-size:13px;cursor:pointer;transition:all .2s;font-weight:500;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.btn-buy:hover{background:#2979ff}
.meal-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #e8eaed}
.meal-row:last-child{border-bottom:none}
.meal-info strong{display:block;margin-bottom:2px}
.meal-info small{color:#86909c;font-size:12px}
.meal-right{display:flex;align-items:center;gap:16px}
.meal-price{font-size:20px;font-weight:700;color:#d03050}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal{background:#fff;border-radius:10px;width:420px;max-width:90%;max-height:80vh;overflow:auto;box-shadow:0 8px 30px rgba(0,0,0,.15)}
.modal-hdr{padding:14px 18px;border-bottom:1px solid #e8eaed;font-size:15px;font-weight:600}
.modal-body{padding:12px 18px}
.modal-ft{display:flex;justify-content:flex-end;padding:10px 18px;border-top:1px solid #e8eaed}
.key-box{display:flex;justify-content:space-between;align-items:center;background:#f7f8fa;padding:12px 16px;border-radius:8px;border:1px solid #e8eaed;font-family:'SF Mono','Fira Code',monospace;font-size:13px;margin-bottom:12px;word-break:break-all}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field-row{margin-bottom:12px}
.lbl{display:block;margin-bottom:4px;color:#86909c;font-size:12px;font-weight:500}
.empty{text-align:center;padding:48px;color:#86909c;font-size:14px}
select.field-input{appearance:auto}
textarea.field-input{padding:10px 14px;font-family:inherit}
.redeem-box{max-width:400px}
.up{color:#2e7d32;font-weight:600}
.down{color:#d03050;font-weight:600}
a,button:not(:disabled){cursor:pointer}input,textarea{cursor:text}button:disabled{cursor:not-allowed}@media(max-width:768px){.kpi-row{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.aside{display:none}}

