:root {
  color-scheme: dark;
  --bg: #05060b;
  --panel: #10131d;
  --panel-2: #171024;
  --line: #273449;
  --gold: #b6ff3d;
  --gold-2: #19f6ff;
  --mint: #ff48d8;
  --muted: #9aa4b8;
  --text: #f7f9ff;
  --danger: #ff4e6a;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

svg {
  display: block;
}

.icon-sprite {
  display: none;
}

body {
  margin: 0;
  background: #03040a;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.phone-shell {
  position: relative;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(25, 246, 255, 0.16), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 72, 216, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(182, 255, 61, 0.05), transparent 300px),
    var(--bg);
}

[hidden] {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 246, 255, 0.18), transparent 42%),
    rgba(3, 4, 10, 0.96);
}

.auth-card {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(25, 246, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 25, 24, 0.98), rgba(10, 12, 14, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.auth-card h1 {
  margin: 0;
  font-size: 30px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.payment-card {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(25, 246, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -18%, rgba(25, 246, 255, 0.18), transparent 44%),
    #10100e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.payment-card h2,
.payment-card p {
  margin: 0;
}

.payment-card p {
  color: var(--muted);
  line-height: 1.5;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 28px 18px 112px;
}

.screen.active {
  display: block;
}

.topbar,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.topbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}

.brand-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-icon,
.icon-button,
.back-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(25, 246, 255, 0.45);
  background: rgba(25, 246, 255, 0.1);
  color: var(--gold);
}

.icon-button,
.back-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.page-header {
  display: block;
}

.page-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.reward-header {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.reward-header .back-button {
  justify-self: start;
}

.text-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(165, 255, 37, 0.52);
  border-radius: 8px;
  background: rgba(165, 255, 37, 0.1);
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.hero-card,
.profile-card,
.member-code,
.metric-card,
.menu-row,
.product-card,
.rank-card,
.drawer-panel {
  border: 1px solid rgba(25, 246, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(18, 24, 39, 0.98), rgba(11, 8, 18, 0.98)),
    radial-gradient(circle at 18% 12%, rgba(25, 246, 255, 0.12), transparent 42%);
  border-radius: var(--radius);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.hero-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin-bottom: 22px;
}

.hero-card.has-image {
  min-height: 260px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 11, 0.16), rgba(5, 6, 11, 0.58)),
    url("./assets/club-hero.svg") center / cover no-repeat;
  opacity: 0.96;
}

.hero-card.has-image .hero-backdrop {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 26%, rgba(25, 246, 255, 0.22) 30%, transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(255, 72, 216, 0.22), transparent 34%);
  mix-blend-mode: screen;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 28px;
}

.card-mark {
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 20px;
}

.hero-content h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-content p {
  margin: 14px 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-content span {
  color: var(--gold);
  border-top: 1px solid rgba(25, 246, 255, 0.62);
  border-bottom: 1px solid rgba(255, 72, 216, 0.62);
  padding: 8px 24px;
}

.metric-grid,
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.primary-action,
.secondary-action {
  min-height: 104px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  padding: 20px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
}

.metric-card strong {
  font-size: 30px;
}

.reservation-entry,
.metric-card.gold {
  display: grid;
  align-content: center;
  gap: 8px;
}

.reservation-entry {
  border-color: rgba(25, 246, 255, 0.5);
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 246, 255, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.reservation-entry span,
.reservation-entry strong,
.reservation-entry em,
.metric-card.gold span,
.metric-card.gold strong,
.metric-card.gold em {
  margin: 0;
}

.reservation-entry strong {
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.reservation-entry em {
  color: rgba(246, 243, 236, 0.72);
  font-style: normal;
  font-size: 14px;
}

.metric-card.gold {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.metric-card.gold strong,
.metric-card.gold span {
  color: var(--gold);
}

.metric-card.gold strong {
  font-size: 34px;
  line-height: 1;
}

.metric-card.gold strong.compact-number {
  font-size: 28px;
}

.primary-action,
.secondary-action {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 0;
  font-weight: 800;
  font-size: 20px;
}

.primary-action {
  border: 0;
  color: #071014;
  background: linear-gradient(135deg, #b6ff3d, #19f6ff 52%, #ff48d8);
}

.secondary-action {
  background: rgba(25, 246, 255, 0.07);
  border-color: rgba(25, 246, 255, 0.36);
}

.primary-action.small,
.secondary-action.small {
  min-height: 46px;
  padding: 0 18px;
  font-size: 16px;
  white-space: nowrap;
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.page-header.with-back {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.page-header.with-back.reward-header {
  grid-template-columns: 76px minmax(0, 1fr) auto;
}

.miniapp-embed .page-header.with-back {
  grid-template-columns: 1fr;
}

.miniapp-embed .page-header.with-back.reward-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.miniapp-embed .page-header.with-back .back-button,
.miniapp-embed .drawer-panel header .back-button {
  display: none;
}

.reservation-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.reservation-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.reservation-tabs button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #071014;
  font-weight: 900;
}

.reservation-card,
.booking-summary {
  border: 1px solid rgba(25, 246, 255, 0.28);
  background: linear-gradient(145deg, rgba(18, 24, 39, 0.96), rgba(16, 16, 16, 0.96));
  border-radius: var(--radius);
}

.reservation-card {
  padding: 18px;
}

.reservation-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.reservation-card-head span,
.booking-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.reservation-card-head strong {
  font-size: 22px;
}

.reservation-card-head em {
  color: var(--gold);
  font-style: normal;
  font-size: 14px;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.seat-grid button {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(25, 246, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 900;
}

.seat-grid button.selected {
  background: var(--gold);
  color: #071014;
  border-color: var(--gold);
}

.seat-grid button.reserved {
  color: rgba(246, 243, 236, 0.36);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.seat-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.seat-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.seat-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(25, 246, 255, 0.4);
}

.seat-legend i.selected {
  background: var(--gold);
  border-color: var(--gold);
}

.seat-legend i.booked {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.booking-summary {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
}

.booking-summary strong {
  font-size: 18px;
}

.booking-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.member-code {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin-top: 22px;
  color: inherit;
  text-align: left;
}

.member-code::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(182, 255, 61, 0.18), transparent 26%),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 35%, transparent 48%);
}

.member-code > * {
  position: relative;
  z-index: 1;
}

.section-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title span {
  white-space: nowrap;
}

.section-title small {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barcode {
  display: grid;
  grid-template-columns: 1.22fr 0.28fr 0.62fr 0.92fr 0.34fr 0.18fr 1.08fr 0.48fr 0.78fr 1.2fr 0.3fr 0.55fr 0.96fr 0.22fr 1.16fr 0.4fr 0.72fr 1.04fr;
  align-items: stretch;
  height: 78px;
  padding: 14px;
  gap: 6px;
  border: 1px solid rgba(182, 255, 61, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 54%),
    #070914;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.barcode i {
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #d9faff);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  margin-bottom: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.category-row button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  color: #dce6ff;
  font-weight: 700;
}

.category-row button.active {
  border: 0;
  color: #071014;
  background: linear-gradient(135deg, #b6ff3d, #19f6ff);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 110px;
}

.product-card {
  min-height: 246px;
  overflow: hidden;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.product-card:focus-visible,
.hero-card:focus-visible,
.profile-card:focus-visible,
.member-code:focus-visible,
.metric-card:focus-visible,
.profile-metrics button:focus-visible,
.detail-button:focus-visible {
  outline: 2px solid rgba(182, 255, 61, 0.72);
  outline-offset: 3px;
}

.product-image {
  display: grid;
  place-items: center;
  height: 140px;
  font-size: 58px;
  background: linear-gradient(180deg, #292929, #202020);
  overflow: hidden;
}

.product-image img,
.product-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.product-info p {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-bottom strong {
  color: var(--gold);
  font-size: 21px;
}

.reward-shop-list {
  display: grid;
  gap: 9px;
  padding-bottom: 110px;
}

.reward-shop-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 90px;
  overflow: hidden;
  border: 1px solid rgba(25, 246, 255, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 255, 61, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(13, 23, 34, 0.98), rgba(8, 10, 18, 0.98));
}

.reward-shop-image {
  display: grid;
  place-items: center;
  min-height: 90px;
  background:
    radial-gradient(circle at 38% 30%, rgba(25, 246, 255, 0.22), transparent 38%),
    radial-gradient(circle at 72% 76%, rgba(182, 255, 61, 0.14), transparent 34%),
    linear-gradient(180deg, #102638, #0a1019);
  color: var(--gold-2);
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
}

.reward-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reward-shop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
}

.reward-shop-body span {
  display: block;
  color: var(--gold-2);
  font-size: 11px;
  margin-bottom: 3px;
}

.reward-shop-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.reward-shop-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-shop-bottom {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.reward-shop-bottom strong {
  color: var(--gold);
  font-size: 17px;
  white-space: nowrap;
}

.reward-shop-bottom em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
}

.reward-shop-bottom button {
  min-width: 62px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #b6ff3d, #19f6ff);
  color: #07130f;
  font-weight: 900;
}

.reward-shop-bottom button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #071014;
  font-size: 28px;
  line-height: 1;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 12px;
  width: min(394px, calc(100vw - 22px));
  min-height: 78px;
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(25, 246, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(31, 28, 24, 0.98);
}

.cart-bar.show {
  display: flex;
}

.cart-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #071014;
  font-size: 24px;
}

.cart-icon b {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
}

.cart-bar div {
  flex: 1;
}

.cart-bar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cart-bar strong {
  font-size: 22px;
}

.cart-bar > button:last-child {
  min-width: 100px;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #b6ff3d, #ffe052);
  color: #071014;
  font-weight: 800;
}

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.segment button {
  height: 54px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  color: #bdb9b2;
  font-weight: 700;
}

.segment button.active {
  border: 0;
  background: var(--gold);
  color: #071014;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.rank-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 54px 1fr auto;
  column-gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.1);
}

.rank-card.podium {
  grid-template-columns: 42px 54px 1fr auto;
  min-height: 88px;
  border-color: rgba(25, 246, 255, 0.28);
}

.rank-card.podium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%);
}

.rank-card.rank-1 {
  border-color: rgba(25, 246, 255, 0.62);
  background:
    radial-gradient(circle at 16% 18%, rgba(182, 255, 61, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(20, 33, 45, 0.98), rgba(16, 16, 16, 0.98));
}

.rank-card.rank-2 {
  border-color: rgba(220, 220, 220, 0.32);
}

.rank-card.rank-3 {
  border-color: rgba(194, 132, 77, 0.35);
}

.rank-no {
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
}

.rank-medal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(25, 246, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 246, 255, 0.22), rgba(25, 246, 255, 0.06));
  color: var(--gold);
}

.rank-medal span {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.rank-medal small {
  margin-top: 2px;
  color: rgba(246, 243, 236, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.rank-2 .rank-medal {
  border-color: rgba(220, 220, 220, 0.28);
  background: linear-gradient(180deg, rgba(240, 240, 240, 0.16), rgba(255, 255, 255, 0.04));
  color: #e7e2d6;
}

.rank-3 .rank-medal {
  border-color: rgba(194, 132, 77, 0.28);
  background: linear-gradient(180deg, rgba(194, 132, 77, 0.18), rgba(194, 132, 77, 0.04));
  color: #d9a36f;
}

.rank-avatar,
.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333, #1b1b1b);
  font-size: 26px;
}

.rank-avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card.podium .rank-avatar {
  z-index: 1;
}

.rank-name strong,
.rank-score {
  display: block;
  font-size: 18px;
}

.rank-name span,
.rank-score small {
  display: block;
  color: var(--muted);
}

.rank-score {
  text-align: right;
  color: var(--gold);
  font-weight: 800;
}

.my-rank {
  grid-template-columns: 82px 54px 1fr auto;
  margin-top: 8px;
  border-color: rgba(25, 246, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(25, 246, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.rank-label span {
  display: block;
  color: rgba(246, 243, 236, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.rank-label strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.profile-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
}

.profile-card > * {
  min-width: 0;
}

.profile-card .avatar {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: #071014;
  font-weight: 900;
}

.avatar.large {
  width: 86px;
  height: 86px;
  font-size: 36px;
}

.profile-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.member-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #071014;
  font-weight: 800;
}

.profile-card p {
  margin: 12px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.profile-metrics button {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}

.profile-metrics span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-metrics strong {
  color: var(--gold);
  font-size: 26px;
}

.menu-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.menu-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.1);
}

.menu-row.highlight {
  border-color: rgba(25, 246, 255, 0.5);
}

.menu-row .menu-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(25, 246, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(25, 246, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  color: var(--gold);
}

.menu-row .menu-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-row strong {
  font-size: 18px;
}

.menu-row em {
  min-width: 28px;
  text-align: center;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100vw);
  height: calc(72px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.98);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #7e7d7a;
}

.bottom-nav .tab-icon,
.bottom-nav b {
  display: block;
}

.bottom-nav .tab-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  width: 28px;
  height: 28px;
}

.bottom-nav .tab-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav b {
  font-size: 13px;
}

.bottom-nav button.active {
  color: var(--gold);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-mask {
  display: none;
}

.drawer.modal .drawer-mask {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.drawer-panel {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(430px, 100vw);
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  padding: 0 18px 36px;
  background:
    linear-gradient(180deg, rgba(25, 246, 255, 0.08), transparent 260px),
    var(--bg);
  box-shadow: none;
}

.drawer-panel header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  margin: 0 -18px 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 9, 0.96);
}

.drawer-panel h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0;
}

.drawer.modal .drawer-panel {
  top: 50%;
  width: min(380px, calc(100vw - 28px));
  height: auto;
  max-height: calc(100dvh - 64px);
  padding: 0 14px 16px;
  overflow-x: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(25, 246, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -12%, rgba(25, 246, 255, 0.16), transparent 42%),
    #10100e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.drawer.modal .drawer-panel header {
  position: relative;
  min-height: 58px;
  margin: 0 -14px 10px;
  padding: 10px 14px;
  justify-content: center;
  border-bottom-color: rgba(255, 255, 255, 0.05);
  background: rgba(16, 16, 14, 0.72);
}

.drawer.modal .drawer-panel h2 {
  font-size: 22px;
}

.drawer.modal .back-button {
  position: absolute;
  right: 14px;
  width: 38px;
  height: 38px;
  font-size: 0;
}

.drawer.modal .back-button::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}

.rules-drawer .rules-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(25, 246, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.rules-drawer .rules-card strong {
  color: var(--gold);
  font-size: 18px;
  line-height: 1.45;
}

.rules-content {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.rules-content p {
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.ledger-page {
  display: grid;
  gap: 14px;
}

.point-trend-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(25, 246, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 10%, rgba(25, 246, 255, 0.16), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(182, 255, 61, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(13, 23, 34, 0.98), rgba(8, 10, 18, 0.98));
}

.point-trend-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.07) 34%, transparent 46%);
}

.point-trend-card > * {
  position: relative;
  z-index: 1;
}

.point-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.point-trend-head span,
.point-trend-stats small,
.point-trend-scale {
  color: var(--muted);
  font-size: 12px;
}

.point-trend-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.point-trend-head em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.point-trend-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.point-trend-tabs button {
  height: 36px;
  border: 1px solid rgba(25, 246, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce6ff;
  font-weight: 800;
}

.point-trend-tabs button.active {
  border-color: rgba(182, 255, 61, 0.72);
  background: linear-gradient(135deg, rgba(182, 255, 61, 0.94), rgba(25, 246, 255, 0.9));
  color: #071014;
}

.point-trend-chart {
  height: 128px;
  padding: 8px 4px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.52);
}

.point-trend-empty {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.36);
  color: var(--muted);
  font-weight: 800;
}

.point-trend-chart svg {
  width: 100%;
  height: 112px;
  display: block;
}

.point-trend-chart line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.point-trend-chart polyline {
  fill: none;
  stroke: var(--gold-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(25, 246, 255, 0.36));
}

.point-trend-chart circle {
  fill: var(--gold);
  stroke: #071014;
  stroke-width: 1.8;
}

.point-trend-scale {
  display: flex;
  justify-content: space-between;
  margin: 8px 2px 12px;
}

.point-trend-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.point-trend-stats span {
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.point-trend-stats small,
.point-trend-stats strong {
  display: block;
}

.point-trend-stats strong {
  margin-top: 5px;
  color: var(--gold);
  font-size: 17px;
}

.point-trend-stats strong.negative {
  color: var(--danger);
}

.drawer-home-button {
  width: 100%;
  height: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(25, 246, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 22, 35, 0.86);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.point-withdraw-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(182, 255, 61, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(182, 255, 61, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.point-withdraw-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.point-withdraw-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.point-withdraw-card strong {
  color: var(--gold);
  font-size: 18px;
}

.point-withdraw-card label {
  display: grid;
  gap: 7px;
}

.point-withdraw-card input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(3, 4, 10, 0.56);
  color: var(--text);
}

.detail-item {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.detail-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.detail-item .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
}

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

.wide-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #b6ff3d, #ffe052);
  color: #071014;
  font-weight: 900;
}

.wide-button.secondary-wide {
  margin-top: 10px;
  border: 1px solid rgba(25, 246, 255, 0.28);
  background: rgba(25, 246, 255, 0.08);
  color: var(--text);
}

.product-detail {
  display: grid;
  gap: 12px;
}

.product-detail-icon {
  display: grid;
  place-items: center;
  height: 138px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #292929, #202020);
  font-size: 60px;
}

.member-code-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.code-profile {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.code-profile > div {
  min-width: 0;
}

.code-profile strong {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-profile .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-shell {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #f8f4ea;
  color: #17150f;
  overflow: hidden;
}

.verify-number {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.verify-number span {
  font-size: 12px;
  font-weight: 800;
  color: rgba(20, 18, 13, 0.52);
}

.verify-number strong {
  max-width: 100%;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #15120d;
  overflow-wrap: anywhere;
  text-align: center;
}

.qr-code {
  width: min(232px, 100%);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fffaf0;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.qr-code .qr-bg {
  fill: #fffaf0;
}

.qr-code .qr-modules rect {
  fill: #071014;
}

.member-code-note {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.stepper button {
  width: 44px;
  height: 40px;
  border: 1px solid rgba(25, 246, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(25, 246, 255, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.stepper strong {
  text-align: center;
}

.profile-editor {
  display: grid;
  gap: 14px;
}

.profile-preview {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 16px;
}

.profile-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.form-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.form-field span {
  color: var(--muted);
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(25, 246, 255, 0.35);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 18px;
}

.upload-avatar {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(25, 246, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(25, 246, 255, 0.08);
}

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

.upload-avatar strong {
  color: var(--gold);
}

.upload-avatar small {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  transform: translate(-50%, 16px);
  border-radius: var(--radius);
  background: rgba(25, 246, 255, 0.96);
  color: #071014;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 14px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .product-grid {
    gap: 10px;
  }

  .reward-shop-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .reward-shop-image {
    min-height: 88px;
  }

  .reward-shop-bottom button {
    min-width: 58px;
  }
}

@media (max-width: 430px) {
  .phone-shell {
    max-width: 100vw;
  }

  .screen {
    padding: 20px 14px calc(98px + env(safe-area-inset-bottom));
  }

  .profile-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .profile-card .avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .profile-card h2 {
    font-size: 22px;
    line-height: 1.18;
  }

  .member-badge {
    padding: 4px 12px;
    font-size: 14px;
  }

  .profile-card p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.25;
  }

  .profile-metrics {
    gap: 10px;
  }

  .profile-metrics button {
    min-width: 0;
    padding: 14px;
  }

  .profile-metrics span {
    font-size: 14px;
  }

  .profile-metrics strong {
    font-size: 24px;
  }

  .menu-list {
    gap: 10px;
    margin-top: 18px;
  }

  .menu-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 12px;
  }

  .menu-row .menu-icon {
    width: 42px;
    height: 42px;
  }

  .menu-row strong {
    min-width: 0;
    font-size: 17px;
  }

  .menu-row em {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav {
    width: 100vw;
    height: calc(66px + env(safe-area-inset-bottom));
  }
}
