* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  background: #fff;
  color: #333;
  padding-bottom: 40px;
}
body.logged-in { background: #f5f5f5; }
.header {
  background: #07c160;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header.hidden { display: none; }
.user-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-info img { width: 36px; height: 36px; border-radius: 50%; }
.user-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.user-id { font-size: 11px; opacity: .9; }
.vip-badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; width: fit-content; }
.vip-badge.ok { background: rgba(255,255,255,.25); }
.vip-badge.no { background: rgba(0,0,0,.2); }
.vip-tip { margin: 0 12px 12px; padding: 10px 12px; background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; font-size: 13px; color: #ad6800; line-height: 1.5; }

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 80px;
  background: #fff;
}
.login-title {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}
.login-sub {
  font-size: 14px;
  color: #999;
  margin-bottom: 28px;
}
.login-divider {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background: #eee;
  margin-bottom: 36px;
}
.login-btn {
  width: 100%;
  max-width: 320px;
  height: 46px;
  border: none;
  border-radius: 23px;
  background: #5eb4b4;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.login-btn:active { opacity: 0.88; }
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.btn-outline { background: #fff; color: #07c160; border: 1px solid #07c160; }

.card {
  background: #fff;
  margin: 12px;
  border-radius: 12px;
  padding: 16px;
}
.card-title { font-size: 16px; font-weight: 500; margin-bottom: 12px; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}

.page-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.page-type-tab {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}
.page-type-tab.active { border-color: #07c160; background: #f0fff4; }
.page-type-tab .sub { font-size: 11px; color: #999; margin-top: 4px; }

.order-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.order-item .row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.order-item .amount { font-size: 18px; font-weight: 600; color: #07c160; }
.order-item .actions { display: flex; gap: 8px; margin-top: 8px; }
.order-item .actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.share-note {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 10px;
  background: #fffbe6;
  border-radius: 8px;
}
.share-note strong { color: #666; }
.btn-share { background: #07c160; color: #fff; }
.btn-copy { background: #1677ff; color: #fff; }
.btn-freeze { background: #fff3e0; color: #fa8c16; }
.tag { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.tag-pending { background: #fff2e8; color: #fa8c16; }
.tag-done { background: #f0fff4; color: #07c160; }
.tag-refund { background: #f5f5f5; color: #999; }

.hidden { display: none !important; }
.icon-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.icon-loading { grid-column: 1 / -1; text-align: center; color: #999; font-size: 13px; padding: 20px 0; }
.icon-item {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-item.active { border-color: #07c160; background: #f0fff4; }
.icon-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: #888; margin-bottom: 12px; line-height: 1.5; }
.modal-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
  margin-bottom: 12px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; }

.tag-frozen { background: #fff1f0; color: #f5222d; }
.btn-unfreeze { background: #e6f7ff; color: #1890ff; }

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  display: none;
}
