:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --text: #182033;
  --muted: #7b8494;
  --line: #e5e9f0;
  --accent: #ff5b22;
  --accent-2: #1267e8;
  --success: #07823f;
  --warn: #b7791f;
  --danger: #d82d45;
  --shadow: 0 16px 34px rgba(22, 31, 49, .08);
  --soft-shadow: 0 8px 22px rgba(22, 31, 49, .055);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, #e9edf4 0%, #dce2eb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 22, 38, .14);
}

.view {
  height: calc(100vh - 64px);
  overflow: auto;
  padding-bottom: 16px;
}

.page {
  min-height: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(248, 250, 253, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-title {
  font-weight: 700;
  font-size: 17px;
  flex: 1;
  text-align: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(22, 31, 49, .05);
}

.hero {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.promo-strip {
  min-height: 92px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    linear-gradient(135deg, rgba(255, 91, 34, .14), rgba(18, 103, 232, .11));
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

.home-banner {
  position: relative;
  min-height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

.home-banner-track {
  height: 90px;
  display: flex;
}

.home-banner.banner-count-2 .home-banner-track {
  width: 200%;
  animation: homeBanner2 7s infinite;
}

.home-banner.banner-count-3 .home-banner-track {
  width: 300%;
  animation: homeBanner3 10s infinite;
}

.home-banner-slide,
.home-banner-link {
  flex: 0 0 100%;
  height: 90px;
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-banner.banner-count-2 .home-banner-slide,
.home-banner.banner-count-2 .home-banner-link {
  flex-basis: 50%;
}

.home-banner.banner-count-3 .home-banner-slide,
.home-banner.banner-count-3 .home-banner-link {
  flex-basis: 33.333333%;
}

.home-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-banner-placeholder {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
}

.home-banner-placeholder strong {
  font-size: 20px;
}

.home-banner-placeholder span {
  font-size: 13px;
  opacity: .92;
}

.home-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.home-banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 4px rgba(13, 22, 38, .18);
}

@keyframes homeBanner2 {
  0%, 42% { transform: translateX(0); }
  50%, 92% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes homeBanner3 {
  0%, 28% { transform: translateX(0); }
  34%, 62% { transform: translateX(-33.333333%); }
  68%, 94% { transform: translateX(-66.666666%); }
  100% { transform: translateX(0); }
}

.promo-title {
  font-weight: 800;
  font-size: 18px;
}

.promo-sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.coupon-art {
  width: 76px;
  height: 54px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 50%, var(--panel) 0 8px, transparent 9px),
    radial-gradient(circle at 100% 50%, var(--panel) 0 8px, transparent 9px),
    linear-gradient(135deg, #ff6b35, #f7b733);
  position: relative;
}

.coupon-art::before,
.coupon-art::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, .85);
}

.auth-page {
  min-height: 100vh;
  padding: 0 0 32px;
  background:
    radial-gradient(circle at 68% 50%, rgba(255, 255, 255, .82) 0 54px, transparent 116px),
    linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  position: relative;
  overflow: hidden;
}

.auth-screen .tabbar {
  display: none;
}

.auth-hero {
  position: relative;
  min-height: 270px;
  padding: 10px 20px 0;
  color: #fff;
  background:
    radial-gradient(circle at 72% 8%, rgba(170, 47, 198, .36) 0 58px, transparent 59px),
    radial-gradient(circle at 18% 54%, rgba(255, 255, 255, .22) 0 62px, transparent 63px),
    radial-gradient(circle at 82% 70%, rgba(255, 221, 130, .38) 0 118px, transparent 119px),
    linear-gradient(145deg, #f94f74 0%, #ff7759 48%, #ff9a56 100%);
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  height: 118px;
  background: #fff;
  pointer-events: none;
}

.auth-hero::before {
  border-radius: 52% 48% 0 0 / 72% 68% 0 0;
  transform: translateY(38px) rotate(-4deg);
}

.auth-hero::after {
  left: 45%;
  right: -20%;
  bottom: 12px;
  height: 100px;
  border-radius: 55% 45% 0 0 / 90% 70% 0 0;
  transform: rotate(7deg);
  opacity: .98;
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 58px;
}

.auth-logo {
  display: none;
}

.auth-brand h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 6px 18px rgba(150, 41, 48, .18);
}

.auth-brand p {
  margin: 8px auto 0;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.auth-card {
  position: relative;
  z-index: 2;
  margin: -20px 38px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;
  height: 34px;
  color: #d98a7f;
  font-size: 14px;
}

.auth-tabs button.active {
  border-color: #ff8b68;
  color: #ff7a61;
  background: transparent;
  font-weight: 700;
}

.auth-login-types {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -16px 0 24px;
}

.auth-login-types button {
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e09a8d;
  font-size: 13px;
}

.auth-login-types button.active {
  color: #ff7f66;
  background: transparent;
  font-weight: 700;
}

.auth-field {
  position: relative;
  display: block;
  margin-bottom: 26px;
  padding-left: 34px;
  color: #c8a09b;
  font-size: 0;
  border-bottom: 1px solid rgba(227, 190, 184, .48);
}

.auth-field::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  text-align: center;
  color: #f2a493;
  font-size: 19px;
  line-height: 1;
}

.auth-field-phone::before {
  content: "□";
  font-size: 22px;
  transform: scaleX(.72);
}

.auth-field-lock::before {
  content: "♙";
  font-size: 20px;
}

.auth-field-user::before {
  content: "○";
}

.auth-field-code::before {
  content: "✉";
  font-size: 17px;
}

.auth-field > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-field input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  outline: none;
  font-size: 15px;
}

.auth-field input::placeholder {
  color: #c9aaa5;
  opacity: .9;
}

.auth-field input:focus {
  box-shadow: none;
}

.auth-field:focus-within {
  border-bottom-color: rgba(255, 127, 102, .72);
}

.sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
}

.sms-code-row .plain {
  height: 34px;
  border: 0;
  background: transparent;
  color: #e09a8d;
  font-weight: 700;
  font-size: 13px;
  line-height: 34px;
  padding: 0;
  white-space: nowrap;
  text-align: right;
}

.auth-submit {
  display: block;
  width: 68%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9855 0%, #ff6f6b 100%);
  color: #fff;
  font-weight: 800;
  margin: 42px auto 0;
  box-shadow: 0 12px 28px rgba(255, 112, 88, .28);
  font-size: 16px;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-links {
  margin: 16px 0 0;
  text-align: center;
  color: #e09a8d;
  font-size: 13px;
}

.auth-tip {
  margin: 18px auto 0;
  max-width: 310px;
  color: #b39a96;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.user-strip {
  margin: 12px 14px 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.user-strip strong,
.user-strip span {
  display: block;
}

.user-strip span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.mine-user {
  margin-top: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.logout-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  height: 34px;
  padding: 0 12px;
}

.empty-page {
  margin: 18px 14px;
  padding: 34px 14px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agreement-card {
  margin: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.agreement-content {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.coupon-art::before {
  left: 22px;
}

.coupon-art::after {
  right: 22px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px 12px;
}

.quick {
  height: 74px;
  border: 1px solid rgba(229, 233, 240, .8);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 4px;
  box-shadow: var(--soft-shadow);
}

.quick-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
}

.spacer {
  flex: 1;
}

.select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0 10px;
  color: var(--text);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 12px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 12px;
  white-space: nowrap;
  color: #414753;
  min-width: fit-content;
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff2ec;
  box-shadow: 0 5px 14px rgba(255, 91, 34, .13);
}

.list {
  display: grid;
  gap: 12px;
  padding: 0 14px;
}

.ticket-list {
  gap: 6px;
}

.ticket {
  background: var(--panel);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 233, 240, .72);
  position: relative;
  overflow: hidden;
}

.ticket.unmergeable::before {
  content: "不能合并拆分";
  position: absolute;
  right: 0;
  top: 0;
  background: #242d47;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-bottom-left-radius: 8px;
}

.ticket-main {
  min-width: 0;
}

.owner,
.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
}

.ticket-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff4ed, #ffe9dc);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.ticket-title {
  font-size: 13px;
  color: #fff;
  background: linear-gradient(90deg, #f59a23, #ffb13b);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.compact-ticket-card {
  gap: 8px;
  padding: 10px 12px;
}

.compact-ticket-card .owner,
.compact-ticket-card .meta {
  font-size: 11px;
  line-height: 1.35;
}

.compact-ticket-card .ticket-row {
  gap: 8px;
  margin: 5px 0;
}

.compact-ticket-card .ticket-badge {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.compact-ticket-card .amount {
  margin-top: 2px;
  font-size: 12px;
}

.compact-ticket-card .ticket-side {
  min-width: 68px;
}

.compact-ticket-card .price {
  font-size: 20px;
}

.compact-ticket-card .primary,
.compact-ticket-card .secondary {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 13px;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59a23;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.star-rating .rating-value {
  color: #1c2a44;
  font-weight: 700;
}

.amount {
  margin-top: 4px;
  font-size: 13px;
}

.ticket-side {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 78px;
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary,
.secondary,
.danger,
.success {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  min-height: 36px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(18, 103, 232, .16);
}

.primary {
  background: linear-gradient(180deg, #ff6b35, var(--accent));
}

.secondary {
  background: linear-gradient(180deg, #287df4, var(--accent-2));
}

.secondary.muted {
  background: linear-gradient(180deg, #a8b0bd, #7f8794);
  box-shadow: none;
}

.secondary.muted:disabled {
  opacity: 1;
}

.primary.muted:disabled {
  background: linear-gradient(180deg, #a8b0bd, #7f8794);
  box-shadow: none;
  opacity: 1;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.danger {
  background: linear-gradient(180deg, #ff6a3a, var(--accent));
}

.success {
  background: var(--success);
}

.plain {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 12px;
}

.close-lock-btn {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 13px;
}

.record-compact {
  gap: 8px;
  padding: 10px 12px;
}

.record-compact .owner,
.record-compact .meta {
  font-size: 11px;
  line-height: 1.35;
}

.record-compact .ticket-row {
  gap: 8px;
  margin: 5px 0;
}

.record-compact .ticket-badge {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.record-compact .amount {
  margin-top: 2px;
  font-size: 12px;
}

.record-compact .ticket-side {
  min-width: 68px;
}

.record-compact .price {
  font-size: 20px;
}

.record-compact .status {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 13px;
}

.detail-card {
  margin: 14px;
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 233, 240, .72);
}

.my-ticket-list {
  padding-bottom: 112px;
}

.ticket.selected {
  outline: 2px solid rgba(18, 103, 232, .36);
  background: #f2f7ff;
}

.select-ticket {
  width: fit-content;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
}

.select-ticket input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.operate-panel {
  margin: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  box-shadow: var(--soft-shadow);
}

.operate-summary {
  color: var(--accent-2);
  font-weight: 700;
}

.warning-text {
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #ffd3d9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.split-row {
  display: grid;
  gap: 8px;
}

.bottom-actions {
  position: sticky;
  bottom: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 22vw, 96px);
  align-items: center;
  padding: 18px 64px 22px;
  background: linear-gradient(180deg, rgba(244, 246, 250, 0), rgba(244, 246, 250, .96) 34%, var(--bg));
}

.bottom-actions button {
  min-height: 34px;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 31, 49, .12);
}

.bottom-actions .primary {
  background: linear-gradient(180deg, #2480ff, var(--accent-2));
}

.pay-code {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 16px;
  background: repeating-linear-gradient(45deg, #f8fafc 0 12px, #eef2f6 12px 24px);
}

.pay-code-head,
.pay-code-foot {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: center;
}

.pay-code-head span,
.pay-code-foot {
  color: var(--muted);
  font-size: 12px;
}

.detail-card .detail-ticket {
  align-items: center;
}

.detail-ticket .ticket-side {
  justify-content: center;
}

.detail-ticket .price {
  font-size: 32px;
  line-height: 1;
}

.detail-pay-code {
  height: min(58vh, 520px);
  min-height: 430px;
  padding: 18px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail-pay-code-img {
  width: min(100%, 370px);
  max-height: none;
  object-fit: contain;
  display: block;
  margin: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr {
  width: 190px;
  height: 190px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 24px 24px,
    #fff;
  border: 12px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.merchant-qr {
  position: relative;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(135deg, #f7fbff, #fff);
}

.merchant-qr span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.dark-page {
  background: #101010;
  color: #e9e9e9;
  padding-bottom: 24px;
}

.dark-page .header {
  background: #101010;
  color: #fff;
  border-bottom-color: #202020;
}

.review-page {
  background: var(--bg);
  color: var(--text);
  padding-bottom: 20px;
}

.review-page .header {
  background: rgba(255, 255, 255, .84);
  color: var(--text);
  border-bottom-color: var(--line);
}

.review-page .list {
  padding-top: 14px;
}

.review-page .ticket-list {
  gap: 6px;
}

.review-record {
  background: var(--panel);
  border-color: rgba(229, 233, 240, .9);
  color: var(--text);
  box-shadow: var(--soft-shadow);
}

.review-record .owner,
.review-record .meta {
  color: var(--muted);
}

.review-record .amount {
  color: var(--text);
}

.review-record .price {
  color: var(--text);
}

.review-record .ticket-side {
  border-left: 1px dashed var(--line);
  padding-left: 18px;
}

.cert-card {
  margin: 14px 10px;
  padding: 16px;
  border-radius: 8px;
  background: #1b1b1b;
  border: 1px solid #242424;
}

.cert-title {
  margin: 8px 0 10px;
  color: #d8d8d8;
  font-weight: 700;
}

.cert-title span,
.cert-field label span {
  color: #ff4d3d;
  margin-right: 2px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 112px;
  gap: 10px;
  margin-bottom: 22px;
}

.upload-grid.two {
  grid-template-columns: 1fr 1fr;
}

.upload-thumb,
.upload-empty {
  width: 100%;
  min-height: 86px;
  border: 1px solid #454545;
  border-radius: 4px;
  background: #303030;
  color: #d46a3d;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  position: relative;
  overflow: hidden;
  font-size: 13px;
  cursor: pointer;
}

.upload-thumb span {
  position: relative;
  z-index: 1;
  color: #e36b52;
  font-weight: 600;
  text-align: center;
}

.upload-thumb em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 138, 92, .9);
  position: relative;
  z-index: 1;
}

.upload-thumb b {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(7, 130, 63, .92);
  color: #fff;
  font-size: 12px;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-grid.bank-upload {
  grid-template-columns: 1fr;
}

.upload-thumb.id-front {
  background: #303030;
}

.upload-thumb.id-back {
  background: #303030;
}

.upload-thumb.shop {
  background: #303030;
}

.upload-thumb.license {
  width: 180px;
  min-height: 116px;
  background: #303030;
}

.upload-thumb.pay-code {
  width: 112px;
  min-height: 112px;
  margin: 0;
  padding: 0;
  background: #303030;
}

.upload-thumb.pay-code em {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  text-align: center;
}

.merchant-qr.real-code {
  background: #fff;
  padding: 10px;
}

.merchant-qr.real-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.cert-section {
  margin: 22px 0 12px;
  font-size: 18px;
}

.cert-field {
  padding: 12px 0;
  border-bottom: 1px solid #303030;
}

.cert-field label {
  display: block;
  color: #d4d4d4;
  margin-bottom: 8px;
  font-weight: 700;
}

.cert-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #121212;
  color: #f4f4f4;
  padding: 0 11px;
  outline: none;
}

.cert-input:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .14);
}

.cert-input::placeholder {
  color: #777;
}

.cert-status-card {
  border-color: rgba(255, 107, 53, .45);
  background: #201a17;
}

.cert-review-head strong,
.cert-review-head span {
  display: block;
}

.cert-review-head strong {
  color: #fff;
  font-size: 18px;
}

.cert-review-head span {
  color: #b8b8b8;
  margin-top: 6px;
  font-size: 13px;
}

.cert-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert-review-item {
  display: grid;
  gap: 8px;
}

.cert-review-item strong {
  color: #e8e8e8;
  font-size: 13px;
}

.cert-review-thumb {
  min-height: 104px;
  border-radius: 6px;
  background: #262626;
  color: #777;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cert-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-field.readonly div {
  color: #f4f4f4;
  line-height: 1.5;
}

.plain.light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.cert-submit {
  position: sticky;
  bottom: 78px;
  padding: 22px 20px 16px;
  background: linear-gradient(180deg, rgba(16,16,16,0), #101010 35%);
}

.cert-submit button {
  width: 100%;
  border-radius: 999px;
  min-height: 44px;
  font-size: 16px;
}

.notice {
  margin: 14px;
  padding: 12px 13px;
  border-radius: 8px;
  background: #fff8e8;
  color: #6e4a13;
  border: 1px solid #f4dfb1;
  line-height: 1.55;
  font-size: 13px;
}

.form {
  display: grid;
  gap: 10px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(18, 103, 232, .55);
  box-shadow: 0 0 0 3px rgba(18, 103, 232, .1);
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.proof-upload-box {
  min-height: 96px;
  border: 1px dashed rgba(255, 78, 36, .55);
  border-radius: 10px;
  background: #fff7f2;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  font-weight: 700;
}

.proof-upload-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #fff;
}

.proof-upload-preview.hidden {
  display: none;
}

.record {
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 233, 240, .72);
}

.status {
  border-radius: 999px;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  align-self: center;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  min-width: 68px;
}

.status.confirmed {
  background: linear-gradient(180deg, #0d944b, var(--success));
}

.status.waiting {
  background: linear-gradient(180deg, #287df4, var(--accent-2));
}

.status.unpaid {
  background: var(--muted);
}

.status.locked {
  background: linear-gradient(180deg, #94a3b8, #64748b);
}

.status.frozen {
  background: linear-gradient(180deg, #475569, #1e293b);
}

.status.dispute {
  background: linear-gradient(180deg, #e14136, #c92826);
}

.profile {
  margin: 14px;
  padding: 18px 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,255,255,.9)),
    linear-gradient(135deg, rgba(18, 103, 232, .12), rgba(255, 91, 34, .08));
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8edf5, #d6deea);
  display: grid;
  place-items: center;
  font-size: 27px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 12px;
}

.stat {
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 233, 240, .72);
}

.stat strong {
  display: block;
  font-size: 20px;
}

.menu {
  margin: 0 14px;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 233, 240, .72);
}

.menu button {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--text);
}

.menu button:active,
.quick:active,
.ticket:active {
  transform: translateY(1px);
}

.menu button:last-child {
  border-bottom: 0;
}

.mine-logout {
  margin: 38px 14px 96px;
  padding-top: 18px;
  border-top: 1px solid rgba(229, 233, 240, .9);
}

.mine-logout-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6a3a, var(--accent));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 91, 34, .2);
}

.mine-logout-btn:active {
  transform: translateY(1px);
}

.admin-page {
  background: #eef2f7;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.admin-stat {
  background: var(--panel);
  border: 1px solid rgba(229, 233, 240, .8);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.admin-stat strong {
  display: block;
  font-size: 22px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 12px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px 12px;
}

.admin-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  min-height: 34px;
  font-size: 13px;
}

.admin-tabs button.active {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: #edf5ff;
  font-weight: 700;
}

.admin-content {
  padding-bottom: 18px;
}

.admin-list {
  gap: 10px;
}

.admin-card {
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid rgba(229, 233, 240, .8);
  padding: 14px;
  box-shadow: var(--soft-shadow);
}

.admin-card.compact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.admin-reason {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}

.admin-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.tabbar {
  height: 64px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: 12px;
}

.tab.active {
  color: var(--accent);
  font-weight: 700;
}

.tab-icon {
  font-size: 20px;
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 30, .46);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal.hidden {
  display: none;
}

.dialog {
  width: min(380px, 100%);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
}

.dialog h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.dialog-actions button {
  flex: 1;
}

.proof-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.74);
}

.proof-dialog h3 {
  margin: 0 84px 12px 0;
  text-align: center;
  font-size: 17px;
}

.proof-dialog h3 span {
  color: #1d4ed8;
}

.proof-upload-dialog {
  width: min(360px, calc(100vw - 44px));
  padding: 18px;
  display: grid;
  gap: 12px;
  overflow: visible;
}

.proof-upload-dialog h3 {
  margin: 0;
  text-align: center;
  font-size: 17px;
}

.scan-notice-dialog {
  width: min(330px, calc(100vw - 34px));
  background: #fff;
  border-radius: 4px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .24);
}

.scan-notice-dialog h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 20px;
  color: #111827;
  font-weight: 800;
}

.scan-notice-body {
  color: #001dff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 26px;
  text-align: left;
}

.scan-notice-ok {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.scan-pay-tip {
  border: 1px solid #f3c879;
  background: #fff8e8;
  color: #8a4f00;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.55;
}

.scan-pay-tip strong {
  display: block;
  color: #7c3f00;
  margin-bottom: 3px;
}

.scan-pay-tip p {
  margin: 0;
  font-size: 13px;
}

.proof-upload-dialog .upload-line {
  min-height: 160px;
  border: 1px dashed rgba(255, 78, 36, .55);
  border-radius: 10px;
  background: #fff7f2;
  color: var(--primary);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.proof-upload-dialog .upload-line input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.proof-upload-dialog .upload-line span {
  max-width: 100%;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.proof-upload-dialog .proof-upload-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}

.proof-upload-dialog .proof-upload-preview.hidden {
  display: none;
}

.proof-upload-dialog textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  line-height: 1.55;
}

.proof-upload-dialog textarea:focus {
  border-color: rgba(255, 78, 36, .55);
  box-shadow: 0 0 0 3px rgba(255, 78, 36, .1);
}

.proof-upload-dialog .proof-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.proof-upload-dialog .proof-actions button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 10px;
  white-space: nowrap;
}

.proof-close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: #f01818;
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
}

.proof-frame {
  height: min(62vh, 480px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #f3f4f6;
}

.buyer-proof-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 14px 14px 16px;
}

.buyer-proof-dialog h3 {
  margin: 0 56px 12px;
  font-size: 16px;
}

.buyer-proof-frame {
  min-height: 420px;
  max-height: min(62vh, 520px);
  overflow: auto;
  background: #18d7d6;
  display: grid;
  place-items: center;
}

.buyer-proof-img {
  width: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #fff;
}

.buyer-proof-placeholder {
  color: #06101f;
  font-size: 20px;
  line-height: 1.85;
  font-weight: 800;
  text-align: center;
}

.voucher-modal {
  position: relative;
  width: min(420px, calc(100vw - 34px));
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 18px 18px 16px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, .28);
}

.voucher-modal h3 {
  margin: 0 56px 14px;
  text-align: center;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.3;
}

.voucher-modal h3 span {
  color: #1d4ed8;
}

.voucher-close {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  border-radius: 0 8px 0 8px;
  background: #ef1f1f;
  color: #fff;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 800;
}

.voucher-image-wrap {
  min-height: 420px;
  max-height: min(60vh, 560px);
  overflow: auto;
  background: #20d4cf;
  display: grid;
  place-items: center;
}

.voucher-image-wrap .buyer-proof-img {
  width: 100%;
  min-height: 420px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.voucher-image-wrap .buyer-proof-placeholder {
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #06101f;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 800;
  text-align: center;
  padding: 28px;
}

.voucher-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.voucher-meta p {
  margin: 2px 0;
}

.voucher-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.proof-phone {
  position: relative;
  min-height: 620px;
  margin: 0 auto;
  padding: 26px 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 28%, rgba(255,255,255,.22), transparent 21%),
    linear-gradient(180deg, #0d55ed 0%, #226cf6 46%, #f3f6fb 46%, #f3f6fb 100%);
}
/*
.proof-amount {
  margin: 4px 0 24px;
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
}
*/
.proof-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
}

.proof-row span {
  opacity: .8;
}

.proof-banner {
  margin-top: 30px;
  border-radius: 8px;
  background: #f8d5f0;
  color: #6b3073;
  padding: 22px 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.proof-card {
  height: 180px;
  margin-top: 18px;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(0,0,0,.18), transparent 35%),
    linear-gradient(90deg, #1d4f72, #c2d8e9 50%, #243a58);
}



.proof-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.proof-meta.strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.proof-meta.warning {
  color: #f97316;
  font-weight: 700;
}

.review-proof-dialog {
  background: #fff;
  color: var(--text);
}

.review-proof-dialog .proof-meta {
  color: var(--muted);
}

.review-proof-dialog .proof-meta.strong {
  color: var(--text);
}

.review-proof-frame {
  background: #f8fafc;
  border-color: var(--line);
}

.review-proof-actions {
  gap: 18px;
}

.review-proof-actions button {
  border-radius: 999px;
  min-height: 44px;
  font-size: 16px;
}

.feedback-dialog {
  width: min(360px, calc(100vw - 56px));
  background: #1b1b1b;
  color: #f2f2f2;
  border-radius: 8px;
  padding: 24px 22px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

.feedback-dialog h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 24px;
}

.feedback-textarea {
  width: 100%;
  min-height: 150px;
  border: 0;
  border-radius: 6px;
  background: #1b1b1b;
  color: #fff;
  resize: none;
  outline: none;
  font-size: 16px;
}

.feedback-textarea::placeholder {
  color: #d7d7d7;
}

.feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.feedback-actions button {
  border: 0;
  background: transparent;
  min-height: 40px;
  font-size: 18px;
  color: #f2f2f2;
}

.feedback-actions .secondary {
  color: #2d7df0;
  box-shadow: none;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    min-height: calc(100vh - 36px);
    border-radius: 12px;
  }

  .view {
    height: calc(100vh - 100px);
  }
}
