:root {
  --bg: #080808;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f4f1eb;
  --muted: rgba(244, 241, 235, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #dd1a2b;
  --accent-dark: #83000a;
  --gold: #c9ab75;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(221, 26, 43, 0.18), transparent 28%),
    radial-gradient(circle at 20% 15%, rgba(201, 171, 117, 0.12), transparent 24%),
    linear-gradient(180deg, #050505 0%, #101010 55%, #070707 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

input,
textarea,
button {
  font: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none;
}

.mobile-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 110px;
}

.mobile-topbar,
.mobile-hero,
.mobile-summary-card,
.mobile-section,
.mobile-plan,
.mobile-account-panel,
.mobile-form-card,
.mobile-history-item,
.mobile-history-empty,
.mobile-modal-dialog,
.mobile-bottom-bar {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mobile-topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
}

.mobile-back,
.mobile-badge,
.mobile-eyebrow,
.mobile-hero h1,
.mobile-section-head h2,
.mobile-plan-head strong,
.mobile-account-status h3,
.mobile-form-card h3,
.mobile-inline-head h3,
.mobile-modal-dialog h2,
.mobile-detail-row dd,
.mobile-summary-card strong {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

.mobile-back,
.mobile-badge,
.mobile-button,
.mobile-bottom-link,
.mobile-inline-link {
  text-decoration: none;
}

.mobile-back {
  font-size: 1.15rem;
}

.mobile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-main {
  display: grid;
  gap: 18px;
}

.mobile-hero,
.mobile-section,
.mobile-account-panel,
.mobile-form-card {
  padding: 20px 18px;
}

.mobile-hero {
  background:
    radial-gradient(circle at right top, rgba(221, 26, 43, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.mobile-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.05rem;
}

.mobile-hero h1,
.mobile-section-head h2,
.mobile-form-card h3,
.mobile-account-status h3,
.mobile-inline-head h3,
.mobile-modal-dialog h2 {
  margin: 0;
  line-height: 0.95;
}

.mobile-hero h1 {
  font-size: clamp(3.4rem, 16vw, 5rem);
}

.mobile-text,
.mobile-plan p,
.mobile-history-item p,
.mobile-status-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-text {
  margin-top: 16px;
}

.mobile-text-tight {
  margin-top: 10px;
}

.mobile-hero-actions,
.mobile-success-actions,
.mobile-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.mobile-button,
.mobile-bottom-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-button-primary,
.mobile-bottom-link {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.mobile-button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mobile-summary-card {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
}

.mobile-summary-card strong {
  font-size: 2rem;
}

.mobile-summary-card span,
.mobile-label,
.mobile-plan-meta span,
.mobile-plan-meta em,
.mobile-detail-row dt,
.mobile-form-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-section-head {
  margin-bottom: 16px;
}

.mobile-plan-list,
.mobile-history-list,
.mobile-detail-list {
  display: grid;
  gap: 14px;
}

.mobile-plan {
  padding: 18px 16px;
}

.mobile-plan-featured {
  background:
    linear-gradient(135deg, rgba(221, 26, 43, 0.2), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.mobile-plan-head,
.mobile-plan-meta,
.mobile-account-status,
.mobile-inline-head,
.mobile-history-item-head,
.mobile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-plan-head {
  margin-bottom: 12px;
}

.mobile-plan-head strong {
  font-size: 2rem;
}

.mobile-tag,
.mobile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-chip {
  color: var(--muted);
}

.mobile-plan-meta,
.mobile-inline-head-spaced {
  margin-top: 16px;
}

.mobile-plan-meta {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-plan-copy {
  display: grid;
  gap: 4px;
}

.mobile-stock {
  color: var(--gold);
  font-size: 0.82rem;
}

.mobile-buy-button {
  width: 100%;
  margin-top: 18px;
}

.mobile-plan.sold-out {
  opacity: 0.72;
}

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

.mobile-account-panel {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.mobile-support-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-support-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-support-qr {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.mobile-form-grid,
.mobile-history-list {
  display: grid;
  gap: 14px;
}

.mobile-form-card {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-form-card-flat {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-form-card label,
.mobile-guest-fields label {
  display: grid;
  gap: 10px;
}

.mobile-form-card input,
.mobile-form-card textarea,
.mobile-guest-fields input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  outline: none;
}

.mobile-form-card input:focus,
.mobile-form-card textarea:focus,
.mobile-guest-fields input:focus {
  border-color: rgba(221, 26, 43, 0.68);
  box-shadow: 0 0 0 4px rgba(221, 26, 43, 0.14);
}

.mobile-logged-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-status-message {
  min-height: 24px;
  margin-top: 16px;
}

.mobile-history-list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.mobile-history-item,
.mobile-history-empty {
  padding: 16px;
}

.mobile-inline-link {
  color: var(--gold);
}

.mobile-detail-row {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-detail-row dt,
.mobile-detail-row dd {
  margin: 0;
}

.mobile-detail-row dd {
  text-align: right;
}

.mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.mobile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.mobile-modal-dialog {
  position: relative;
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto 0;
  padding: 20px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #111111;
}

.mobile-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mobile-guest-fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mobile-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 528px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  backdrop-filter: blur(16px);
}

.mobile-bottom-link-muted {
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 480px) {
  .mobile-form-grid,
  .mobile-plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-plan-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .mobile-shell {
    padding-inline: 12px;
  }

  .mobile-summary {
    grid-template-columns: 1fr;
  }

  .mobile-hero-actions,
  .mobile-success-actions,
  .mobile-modal-actions,
  .mobile-account-status {
    grid-template-columns: 1fr;
  }

  .mobile-account-status,
  .mobile-plan-head,
  .mobile-plan-meta,
  .mobile-inline-head,
  .mobile-history-item-head,
  .mobile-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-detail-row dd {
    text-align: left;
  }
}
