:root {
  color-scheme: dark;
  --bg: #07162b;
  --blue-950: #07172c;
  --blue-900: #0b2444;
  --blue-800: #143a68;
  --blue-700: #1c5590;
  --blue-500: #2294e8;
  --cyan: #27d6e7;
  --cyan-2: #18aacd;
  --card: rgba(38, 76, 126, 0.64);
  --card-strong: rgba(55, 96, 153, 0.76);
  --field: rgba(35, 67, 112, 0.88);
  --ink: #eef8ff;
  --muted: #aac1d8;
  --soft: #dceeff;
  --line: rgba(180, 215, 255, 0.18);
  --gold: #ffd56a;
  --danger: #ff8e9a;
  --paid: #6bf1b5;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes walletIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes popCheck {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(50, 142, 235, 0.34), transparent 35%),
    linear-gradient(180deg, #092656 0%, #061426 58%, #04101e 100%);
  overflow-x: hidden;
}

body.auth-page {
  background: #041229;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(79, 165, 255, 0.16) 8%, transparent 9% 91%, rgba(79, 165, 255, 0.16) 92%, transparent 93%),
    radial-gradient(circle at 50% 100%, rgba(9, 108, 168, 0.35), transparent 42%);
}

.wallet-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 16px;
  background: rgba(34, 148, 232, 0.12);
  border: 1px solid rgba(34, 148, 232, 0.24);
  border-radius: 12px;
  overflow: hidden;
}

.wallet-notice span {
  flex-shrink: 0;
  padding: 2px 8px;
  background: var(--blue-500);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.marquee-content {
  position: absolute;
  white-space: nowrap;
  margin: 0;
  padding-left: 100%;
  font-size: 13px;
  color: var(--soft);
  line-height: 20px;
  animation: marquee 24s linear infinite;
}

.wallet-notice:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

.user-info-bar {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  margin: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.user-info-bar .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info-bar span {
  color: var(--muted);
}
.user-info-bar strong {
  color: var(--gold);
}

.hidden {
  display: none !important;
}

.error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

/* Auth */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
}

.auth-shell.sports-auth {
  background: #0f1c32 url("/assets/background.png") center top / 100% auto no-repeat;
}

.club-auth-card {
  width: min(492px, 100%);
  padding: 32px 28px 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(13, 33, 73, 0.88), rgba(5, 15, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(126, 174, 244, 0.16);
  backdrop-filter: blur(8px);
}

.login-card {
  width: min(480px, 100%);
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  padding: 0 16px 24px;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  margin-top: 8vh;
}

.auth-logo-image {
  display: block;
  width: auto;
  height: 280px;
  max-width: 100%;
}

.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(123, 197, 255, 0.4);
}

.auth-banner {
  margin-bottom: 24px;
  width: 100%;
}

.auth-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.club-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.club-tabs button {
  min-width: 0;
  min-height: 96px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(122, 164, 217, 0.75), rgba(74, 111, 170, 0.76));
  color: var(--soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.club-tabs strong {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.club-logo.gold {
  background: linear-gradient(135deg, #f5cf68, #2b61c3);
}

.club-logo.blue {
  background: linear-gradient(135deg, #0c2c7a, #1bb5ff);
}

.club-logo.red {
  background: linear-gradient(135deg, #c62333, #20242e);
}

.club-logo.ice {
  background: linear-gradient(135deg, #77d7ff, #3556b7);
}

.field-stack {
  display: grid;
  gap: 14px;
}

.glass-field {
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(30, 44, 71, 0.85);
  border: none;
}

.field-icon {
  display: grid;
  place-items: center;
  color: #a0aec0;
}

.glass-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.glass-field input::placeholder {
  color: rgba(221, 238, 255, 0.5);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 4px 24px;
  color: #94a3b8;
  font-size: 13px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.remember-row input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.remember-row input:checked::before {
  background: #38bdf8;
}

.auth-meta a {
  color: rgba(225, 240, 255, 0.78);
  text-decoration: none;
}

.terms-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0;
  color: rgba(225, 240, 255, 0.78);
  font-size: 13px;
}

.terms-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.terms-row a,
.auth-shortcuts a {
  color: #39ccff;
  text-decoration: none;
}

.primary-action {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #31adad 0%, #1e6bc7 100%);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: normal;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary-action:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.primary-action:disabled {
  opacity: 0.72;
  cursor: wait;
}

.topup-card .primary-action,
.success-content .primary-action {
  background: linear-gradient(135deg, #2fd3ff 0%, #0c77dd 56%, #0a55b4 100%);
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow:
    0 12px 26px rgba(12, 107, 199, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.auth-shortcuts a {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(30, 44, 71, 0.6);
  color: #94a3b8;
  text-decoration: none;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  color: #64748b;
}

.auth-shortcuts strong {
  font-size: 13px;
  font-weight: normal;
}

/* Wallet app */
.mobile-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 4px;
  position: relative;
}

.wallet-app {
  width: min(420px, 100%);
  min-height: calc(100vh - 8px);
  padding: 12px 12px 22px;
  border-radius: 28px;
  background:
    radial-gradient(130% 62% at 50% 0%, #ffffff 0%, transparent 58%),
    linear-gradient(180deg, #eaf6ff 0%, #def1ff 44%, #f4faff 100%);
  color: #254266;
  box-shadow:
    0 30px 70px rgba(4, 22, 48, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 2px 12px;
  animation: walletIn 0.45s var(--ease) both;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #58d7ff, #176bce);
  color: white;
  font-weight: 950;
  box-shadow:
    0 6px 14px rgba(23, 107, 206, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-lockup strong {
  display: block;
  color: #165ca3;
  font-size: 17px;
  line-height: 1;
}

.brand-lockup small {
  color: #7a9bb9;
  font-size: 11px;
  font-weight: 800;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-card {
  display: grid;
  gap: 1px;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 14px rgba(31, 105, 172, 0.12);
}

.player-card span {
  color: #91a8bc;
  font-size: 10px;
  font-weight: 900;
}

.player-card strong {
  max-width: 76px;
  color: #2c6dab;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost-button {
  min-height: 30px;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  background: #eaf5ff;
  color: #4c7aa4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.16s ease, transform 0.14s ease;
}

.ghost-button:hover {
  background: #d8ecff;
}

.ghost-button:active {
  transform: scale(0.94);
}

.balance-hero {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 12px;
  padding: 20px 24px;
  border-radius: 24px;
  background:
    radial-gradient(140% 130% at 86% 0%, rgba(102, 226, 255, 0.45), transparent 56%),
    linear-gradient(140deg, #2bb4f3 0%, #0d63cc 56%, #064591 100%);
  box-shadow:
    0 18px 38px rgba(11, 78, 160, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: walletIn 0.5s var(--ease) 0.06s both;
}

.balance-info {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}

.balance-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.balance-item.points-item {
  align-items: flex-end;
}

.balance-item.points-item > span,
.balance-item.points-item > strong {
  width: 100%;
  text-align: right;
}

.balance-item span {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.balance-item strong {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.balance-item strong .balance-decimal {
  font-size: 0.6em;
  font-weight: 800;
  opacity: 0.85;
  margin-left: 1px;
}

.balance-item strong.lvl-1 { font-size: 32px; }
.balance-item strong.lvl-2 { font-size: 28px; }
.balance-item strong.lvl-3 { font-size: 24px; }
.balance-item strong.lvl-4 { font-size: 20px; }
.balance-item strong.lvl-5 { font-size: 17px; }

.balance-redeem-btn {
  margin-top: 8px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.balance-redeem-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.balance-redeem-btn:active {
  transform: scale(0.94);
}

.balance-redeem-btn svg {
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

.balance-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 16px;
  flex-shrink: 0;
}

.balance-hero em {
  width: 100%;
  font-style: normal;
}

.vault-orb {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 25%, #fff 0 10%, transparent 11%),
    linear-gradient(150deg, #ffd66a, #21d2e9 48%, #1463cb);
  color: white;
  font-size: 16px;
  font-weight: 950;
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.28),
    0 16px 30px rgba(17, 83, 150, 0.4);
  animation: orbFloat 4.5s ease-in-out infinite;
}

.wallet-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(9, 78, 163, 0.92), rgba(10, 91, 182, 0.88) 58%, rgba(13, 119, 209, 0.84));
  border: 1px solid rgba(74, 190, 255, 0.34);
  box-shadow:
    0 12px 24px rgba(12, 91, 182, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #eaf7ff;
  font-size: 12px;
  font-weight: 800;
  animation: walletIn 0.5s var(--ease) 0.18s both;
  position: relative;
}

.wallet-notice::after {
  content: "";
  position: absolute;
  inset: auto -40px -54px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 221, 255, 0.28), transparent 66%);
  pointer-events: none;
}

.wallet-notice span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wallet-notice p {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  animation: walletIn 0.5s var(--ease) 0.12s both;
}

.wallet-actions a {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #dcefff);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: #4176a9;
  box-shadow: 0 6px 14px rgba(31, 105, 172, 0.1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.wallet-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(31, 105, 172, 0.2);
}

.wallet-actions a:active {
  transform: scale(0.96);
}

.wallet-actions a.active {
  background: linear-gradient(165deg, #3fd6f6, #0b72d8 70%, #0a5cb6);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 12px 24px rgba(11, 114, 216, 0.4);
}

.wallet-actions span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(11, 114, 216, 0.1);
  color: #1a73c9;
}

.wallet-actions span svg {
  width: 19px;
  height: 19px;
}

.wallet-actions a.active span {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.wallet-actions strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.wallet-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

#depositPanel {
  animation: walletIn 0.5s var(--ease) 0.24s both;
}

.topup-card,
.wallet-info-card,
.order-view,
.secondary-panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(31, 105, 172, 0.14);
}

.topup-card {
  display: grid;
  gap: 11px;
  padding: 15px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.section-title span {
  display: block;
  color: #7ea1bd;
  font-size: 12px;
  font-weight: 900;
}

.section-title strong {
  display: block;
  color: #236bad;
  font-size: 18px;
  line-height: 1.1;
}

.status {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf6ff;
  color: #6390b6;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.status.pending {
  color: #b67b0f;
  background: #fff4d8;
}

.status.paid {
  color: #12925e;
  background: #e4f9ef;
}

.status.expired,
.status.error {
  color: #c94454;
  background: #ffe8ec;
}

.amount-input {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e9f4ff, #f3f9ff);
  border: 1.5px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.amount-input:focus-within {
  border-color: #38ccf3;
  box-shadow: 0 0 0 4px rgba(56, 204, 243, 0.16);
}

.amount-currency {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #38d7ff, #0c77dd);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(12, 119, 221, 0.34);
}

.amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e5f9d;
  font-size: 30px;
  font-weight: 950;
}

.amount-input input::placeholder {
  color: #a9c5dd;
}

.points-preview {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 180, 243, 0.12), rgba(13, 99, 204, 0.08));
  border: 1px solid rgba(43, 180, 243, 0.28);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  animation: walletIn 0.32s var(--ease) both;
}

.points-preview[hidden] {
  display: none;
}

.points-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #2f6fbf;
  letter-spacing: 0.02em;
}

.points-preview strong {
  font-size: 20px;
  font-weight: 900;
  color: #0d63cc;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: end;
}

.points-preview strong.lvl-1 { font-size: 20px; }
.points-preview strong.lvl-2 { font-size: 18px; }
.points-preview strong.lvl-3 { font-size: 16px; }
.points-preview strong.lvl-4 { font-size: 14px; }

.points-preview-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #5a7a9b;
  opacity: 0.85;
  text-align: right;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.payment-type-group {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.payment-type-option {
  flex: 1;
  display: block;
  cursor: pointer;
  position: relative;
}

.payment-type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-type-option span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 10px;
  background: #e9f5ff;
  color: #2d74b2;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.payment-type-option input:checked + span {
  background: linear-gradient(180deg, #38ccf3, #0c77dd);
  color: white;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(12, 119, 221, 0.2);
}

.fullpay-note {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 11px 12px 11px 44px;
  border: 1px solid rgba(26, 143, 216, 0.14);
  border-radius: 13px;
  background:
    radial-gradient(circle at 16px 16px, rgba(56, 204, 243, 0.24), transparent 18px),
    linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(230, 244, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.fullpay-note::before {
  content: "%";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #31d6f6, #0d78dc);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(12, 119, 221, 0.25);
}

.fullpay-note span {
  color: #1d72b3;
  font-size: 12px;
  font-weight: 950;
}

.fullpay-note p {
  margin: 0;
  color: #5e89ae;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.quick-chip {
  min-height: 36px;
  border: 1px solid rgba(12, 119, 221, 0.12);
  border-radius: 11px;
  background: #e9f5ff;
  color: #2d74b2;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.quick-chip:hover {
  background: #d9edff;
}

.quick-chip:active {
  transform: scale(0.94);
}

.quick-chip.active {
  background: linear-gradient(180deg, #38ccf3, #0c77dd);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 14px rgba(12, 119, 221, 0.3);
}

.wallet-info-card {
  min-height: 104px;
  display: grid;
  align-items: end;
  padding: 15px;
  background: linear-gradient(135deg, #1fa9ef, #0c6acb 60%, #084b9d);
  overflow: hidden;
  color: white;
}

.wallet-info-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.wallet-info-card strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 22px;
  line-height: 1;
}

.wallet-info-card p {
  max-width: 220px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.claim-hero-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(92, 222, 255, 0.18), transparent 36%),
    linear-gradient(145deg, #0d63cc, #0a4ea5 62%, #093b81);
  color: #fff;
  box-shadow: 0 16px 30px rgba(10, 78, 165, 0.24);
}

.claim-hero-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.claim-hero-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.claim-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.55;
}

.claim-card {
  gap: 14px;
}

.claim-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.claim-info-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef7ff, #e5f2ff);
  border: 1px solid rgba(95, 161, 220, 0.16);
}

.claim-info-item span {
  color: #7d9db8;
  font-size: 11px;
  font-weight: 900;
}

.claim-info-item strong {
  color: #185f9f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.claim-note-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(13, 99, 204, 0.06);
  border: 1px solid rgba(56, 204, 243, 0.14);
}

.claim-note-card strong {
  color: #165fa1;
  font-size: 13px;
}

.claim-note-card p {
  margin: 0;
  color: #5f84a7;
  font-size: 12px;
  line-height: 1.6;
}

.claim-history-card {
  gap: 14px;
}

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

.claim-history-empty {
  padding: 26px 14px;
  border-radius: 14px;
  background: #eef7ff;
  color: #6d92b6;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.claim-history-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #eef7ff);
  border: 1px solid rgba(95, 161, 220, 0.14);
}

.claim-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.claim-history-head strong {
  color: #1b629f;
  font-size: 15px;
}

.claim-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.claim-history-grid div {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(13, 99, 204, 0.05);
}

.claim-history-grid span {
  color: #7d9db8;
  font-size: 11px;
  font-weight: 900;
}

.claim-history-grid strong {
  color: #1a5f9c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.claim-history-remark {
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #5e84a8;
  font-size: 12px;
  line-height: 1.6;
}


.insurance-card {
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at right top, rgba(110, 255, 210, 0.16), transparent 34%),
    linear-gradient(155deg, #0d2a53, #123865 48%, #10314f 100%);
  border: 1px solid rgba(87, 184, 255, 0.2);
  box-shadow:
    0 16px 30px rgba(4, 34, 68, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eff8ff;
}

.insurance-card .section-title {
  align-items: center;
}

.insurance-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insurance-icon {
  width: 18px;
  height: 18px;
  color: #70f3ba;
  flex: 0 0 auto;
}

.insurance-title-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insurance-title-copy span {
  color: rgba(227, 243, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insurance-title-copy strong {
  color: #ffffff;
  font-size: 16px;
}

.insurance-status {
  margin-left: auto;
  background: rgba(107, 241, 181, 0.18);
  color: #a9ffd4;
  border: 1px solid rgba(107, 241, 181, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.insurance-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(178, 220, 255, 0.12);
}

.insurance-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.insurance-metric-row span {
  color: rgba(224, 240, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.insurance-metric-row strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.insurance-highlight {
  color: #7cf5bf !important;
}

.insurance-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.insurance-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2eb9ff, #79f6c2);
  box-shadow: 0 0 16px rgba(46, 185, 255, 0.4);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.insurance-action {
  display: grid;
  gap: 10px;
}

.insurance-btn {
  width: 100%;
  padding: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #21c5ff 0%, #0b62c8 62%, #09438f 100%) !important;
  border: none;
  box-shadow:
    0 10px 18px rgba(11, 98, 200, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.insurance-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(231, 244, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  border: 1px solid rgba(178, 220, 255, 0.1);
}
.order-view {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.qr-card {
  display: grid;
  gap: 9px;
}

.qr-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6f96b6;
  font-size: 12px;
  font-weight: 950;
}

.qr-head strong {
  color: #1e79c5;
}

.qr-box {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: white;
  box-shadow: inset 0 0 0 1px #d8eaf7;
}

.qr-box img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.pay-details {
  display: grid;
  gap: 8px;
}

.pay-hero,
.detail-pair,
.notice {
  padding: 11px 12px;
  border-radius: 12px;
  background: #eef7ff;
}

.label {
  display: block;
  margin-bottom: 4px;
  color: #7c9bb6;
  font-size: 11px;
  font-weight: 950;
}

.pay-hero {
  display: grid;
  gap: 8px;
}

.pay-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pay-hero-head .label {
  margin-bottom: 0;
}

.copy-pill {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #38d7ff, #0c77dd);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.16s ease;
}

.copy-pill:hover {
  filter: brightness(1.06);
}

.copy-pill:active {
  transform: scale(0.93);
}

.copy-pill.copied {
  background: linear-gradient(135deg, #34e0a1, #12925e);
}

.payable {
  display: block;
  color: #176db5;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.suffix-tip {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff3d6;
  color: #9a6a12;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.suffix-tip b {
  color: #d4881a;
  font-weight: 950;
}

.detail-pair strong {
  color: #254266;
}

.copy-line {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dcebf8;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  color: #315d86;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.copy-line:hover {
  background: #f1f8ff;
  border-color: #b9dcf6;
}

.copy-line.copied {
  background: #e4f9ef;
  border-color: #b6e8cf;
  color: #12925e;
}

.copy-hint {
  flex: 0 0 auto;
  color: #0b84d8;
  font-size: 12px;
  font-weight: 950;
}

.copy-line.copied .copy-hint {
  color: #12925e;
}

.notice {
  color: #42759f;
  font-size: 12px;
}

.notice strong {
  color: #1d6aac;
}

.secondary-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.reserved-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.reserved-panel a,
.ghost-link {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.68);
  color: #5d86a8;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.ghost-link {
  min-height: 32px;
  padding: 0 12px;
}

.placeholder-page {
  padding-bottom: 10px;
}

.orders-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.section-title em {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: #6f96b6;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.mini-grid div {
  padding: 13px;
  border-radius: 13px;
  background: #eef7ff;
}

.mini-grid span {
  display: block;
  color: #7ea1bd;
  font-size: 12px;
  font-weight: 900;
}

.mini-grid strong {
  display: block;
  margin-top: 4px;
  color: #236bad;
  font-size: 24px;
  line-height: 1;
}

.soft-action {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: #e6f4ff;
  color: #1e79c5;
  cursor: pointer;
  font-weight: 950;
}

.promo-panel p {
  margin: 0;
  color: #5f86a9;
  font-size: 13px;
  font-weight: 800;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 30, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  width: min(320px, 100%);
  background: linear-gradient(180deg, #ffffff, #f0f8ff);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 2px 0 #fff;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.checkout-content {
  width: min(360px, 100%);
  padding: 24px 20px;
  text-align: left;
}

.checkout-content .modal-title {
  text-align: center;
  margin-bottom: 18px;
}

.checkout-content .order-view {
  margin-top: 0;
  padding: 0;
  display: grid;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.success-content {
  padding: 32px 24px 26px;
}

.success-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #34e0a1, #12925e);
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(18, 146, 94, 0.45);
  animation: popCheck 0.42s var(--ease) both;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #5f86a9;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a4473;
}

.modal-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 16px rgba(18, 146, 94, 0.3));
}

.modal-title {
  margin: 0 0 12px;
  color: #1a4473;
  font-size: 22px;
  font-weight: 900;
}

.modal-desc {
  margin: 0 0 24px;
  color: #5f86a9;
  font-size: 14px;
  line-height: 1.5;
}

.modal-desc strong {
  color: #12925e;
  font-size: 18px;
}

.modal-btn {
  min-height: 48px;
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.redeem-content {
  max-width: 360px;
  text-align: left;
}

.redeem-info {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 180, 243, 0.1), rgba(13, 99, 204, 0.06));
  border: 1px solid rgba(43, 180, 243, 0.22);
}

.redeem-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #486a8c;
}

.redeem-info-row + .redeem-info-row {
  margin-top: 6px;
}

.redeem-info-row strong {
  color: #0d63cc;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.redeem-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #486a8c;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.redeem-input {
  margin-bottom: 8px;
}

.redeem-max-btn {
  border: 1px solid rgba(43, 180, 243, 0.4);
  background: rgba(43, 180, 243, 0.08);
  color: #0d63cc;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.redeem-max-btn:active {
  transform: scale(0.94);
}

.redeem-preview {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(13, 99, 204, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #486a8c;
  animation: walletIn 0.28s var(--ease) both;
}

.redeem-preview[hidden] {
  display: none;
}

.redeem-preview strong {
  font-size: 20px;
  font-weight: 900;
  color: #0d63cc;
  font-variant-numeric: tabular-nums;
}

.fab-support {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background:
    radial-gradient(140% 130% at 30% 20%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(140deg, #2bb4f3 0%, #0d63cc 60%, #064591 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(11, 78, 160, 0.42),
    0 4px 10px rgba(11, 78, 160, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  animation: walletIn 0.42s var(--ease) 0.18s both, fabFloat 3.6s ease-in-out 0.6s infinite;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.fab-support:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 34px rgba(11, 78, 160, 0.5),
    0 6px 12px rgba(11, 78, 160, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.fab-support:active {
  transform: scale(0.94);
  box-shadow:
    0 8px 18px rgba(11, 78, 160, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.fab-icon {
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  font-variant-numeric: tabular-nums;
}

.fab-badge[hidden] {
  display: none;
}

@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

  .club-auth-card {
    padding: 22px 14px 18px;
    border-radius: 30px;
  }

  .login-card {
    padding: 0 12px 18px;
  }

  .auth-logo-image {
    height: 220px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-banner {
    margin-bottom: 20px;
  }

  .club-tabs {
    gap: 8px;
  }

  .club-tabs button {
    min-height: 92px;
    border-radius: 15px;
  }

  .club-logo {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .club-tabs strong,
  .auth-shortcuts strong {
    font-size: 12px;
  }

  .glass-field {
    min-height: 52px;
    padding: 0 14px;
  }

  .auth-meta {
    margin: 14px 2px 20px;
    font-size: 12px;
  }

  .primary-action {
    min-height: 52px;
    font-size: 16px;
  }

  .wallet-app {
    min-height: 100vh;
    padding-inline: 10px;
    border-radius: 0;
  }

  .balance-hero {
    min-height: 140px;
    padding: 17px;
  }

  .balance-item strong.lvl-1 { font-size: 36px; }
  .balance-item strong.lvl-2 { font-size: 30px; }
  .balance-item strong.lvl-3 { font-size: 24px; }
  .balance-item strong.lvl-4 { font-size: 18px; }
  .balance-item strong.lvl-5 { font-size: 15px; }

  .balance-divider {
    margin: 0 12px;
  }

  .vault-orb {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 13px;
  }

  .amount-input input {
    font-size: 27px;
  }
}
