:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #fcfbf9;
  --surface-2: #fbfaf7;
  --ink: #15231c;
  --muted: #69787a;
  --line: #dce7e1;
  --primary: #1d884f;
  --primary-dark: #16683c;
  --primary-soft: #f5efdf;
  --accent: #f29f3d;
  --danger: #d65452;
  --success: #308e5c;
  --shadow: 0 18px 45px rgba(20, 55, 36, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(29, 136, 79, 0.12), rgba(245, 243, 238, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  position: relative;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  padding: 18px 16px calc(82px + env(safe-area-inset-bottom));
}

.screen.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 44px 18px calc(24px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(7, 23, 14, 0.2) 0%, rgba(7, 23, 14, 0.42) 44%, rgba(6, 30, 17, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 31, 18, 0.62) 0%, rgba(7, 31, 18, 0.18) 48%, rgba(7, 31, 18, 0.52) 100%),
    url("/assets/auth/login-bg.png") center top / cover no-repeat;
}

.screen.auth-screen::after {
  content: "";
  position: absolute;
  inset: auto -18% -18% -18%;
  height: 50%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 30, 17, 0), rgba(6, 30, 17, 0.96));
}

.auth-screen > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 14px;
}

.topbar-title {
  min-width: 0;
  flex: 1;
}

.topbar-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.topbar-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(21, 35, 28, 0.06);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

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

.brand-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-copy h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
}

.brand-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-panel {
  margin-top: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(14, 34, 23, 0.76), rgba(9, 41, 24, 0.88));
  border: 1px solid rgba(213, 246, 228, 0.42);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.auth-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.auth-panel-head span {
  color: #3fc67e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-panel-head h2 {
  margin: 0;
  color: #fcfbf9;
  font-size: 30px;
  line-height: 1.05;
}

.auth-panel-head p {
  margin: 0;
  color: rgba(248, 243, 231, 0.72);
  font-size: 14px;
}

.auth-screen .brand {
  align-items: flex-start;
  margin-bottom: auto;
  color: #fcfbf9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.auth-screen .brand-copy h1 {
  color: #fcfbf9;
}

.auth-screen .brand-copy p {
  color: rgba(252, 251, 249, 0.86);
}

.register-auth-panel {
  gap: 10px;
  padding: 18px;
}

.register-auth-screen .brand {
  margin-bottom: 12px;
}

.register-auth-panel .field {
  gap: 6px;
}

.register-auth-panel .field label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.auth-panel .field label {
  color: rgba(248, 243, 231, 0.74);
}

.auth-panel .input-wrap {
  min-height: 50px;
  color: rgba(252, 251, 249, 0.92);
  background: rgba(6, 24, 14, 0.48);
  border: 1px solid rgba(210, 241, 224, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.05);
}

.auth-panel .input-wrap:focus-within {
  border-color: rgba(63, 198, 126, 0.8);
  box-shadow: 0 0 0 3px rgba(63, 198, 126, 0.12), inset 0 1px 0 rgba(252, 251, 249, 0.06);
}

.auth-panel .input-wrap svg {
  width: 18px;
  height: 18px;
  color: #faf6ed;
}

.auth-panel .input-wrap input {
  color: #fcfbf9;
}

.auth-panel .input-wrap input::placeholder {
  color: rgba(242, 237, 224, 0.54);
}

.phone-prefix {
  flex: 0 0 auto;
  color: rgba(14, 49, 30, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.phone-input-wrap {
  gap: 8px;
}

.phone-input-wrap .phone-prefix {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding-right: 9px;
  border-right: 1px solid rgba(29, 136, 79, 0.22);
  white-space: nowrap;
}

.register-auth-panel .phone-input-wrap .phone-prefix {
  border-right-color: rgba(213, 246, 228, 0.28);
}

.auth-panel .phone-prefix {
  color: #fcfbf9;
  font-size: 15px;
  font-weight: 900;
  border-right-color: rgba(213, 246, 228, 0.28);
}

.auth-panel .primary-btn,
.register-auth-panel .primary-btn {
  min-height: 50px;
  margin-top: 6px;
  color: #fcfbf9;
  background: linear-gradient(135deg, #26b368, #197644);
  border: 1px solid rgba(108, 224, 162, 0.38);
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(35, 164, 95, 0.22);
  font-size: 16px;
  font-weight: 900;
}

.switch-line,
.register-auth-screen .switch-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  color: rgba(252, 251, 249, 0.9);
  background: rgba(9, 30, 19, 0.48);
  border: 1px solid rgba(213, 246, 228, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.switch-line button,
.register-auth-screen .switch-line button {
  color: #47d187;
  font-weight: 900;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #4c5b53;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap,
.select-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid rgba(209, 223, 216, 0.9);
  border-radius: 8px;
}

.input-wrap:focus-within,
.select-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 136, 79, 0.12);
}

.input-wrap svg,
.select-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: 0 0 auto;
}

.input-wrap input,
.select-wrap select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.select-wrap select {
  appearance: none;
}

.bank-select-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid rgba(209, 223, 216, 0.9);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.bank-select-button.is-selected {
  color: var(--ink);
  font-weight: 800;
}

.bank-select-button:disabled,
.form-card .primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.bank-catalog-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 10px;
  color: #b42318;
  background: #fff1ef;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.bank-catalog-notice button {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #fcfbf9;
  background: #b42318;
  border-radius: 6px;
  font: inherit;
}

.bank-select-button:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 136, 79, 0.12);
}

.bank-select-button svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.bank-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  color: #fcfbf9;
  background: linear-gradient(135deg, #1b7d49, #176a3e);
  box-shadow: 0 14px 26px rgba(18, 83, 48, 0.32);
}

.secondary-btn {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.ghost-btn {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.danger-btn {
  color: #fcfbf9;
  background: var(--danger);
}

.primary-btn svg,
.secondary-btn svg,
.ghost-btn svg,
.danger-btn svg {
  width: 18px;
  height: 18px;
}

.switch-line {
  margin-top: 14px;
  text-align: center;
  color: rgba(252, 251, 249, 0.82);
  font-size: 13px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.switch-line button {
  padding: 4px 6px;
  color: #fcfbf9;
  background: transparent;
  font-weight: 700;
}

.auth-panel .input-wrap {
  min-height: 50px;
  color: rgba(252, 251, 249, 0.92);
  background: rgba(6, 24, 14, 0.48);
  border: 1px solid rgba(210, 241, 224, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.05);
}

.auth-panel .input-wrap:focus-within {
  border-color: rgba(63, 198, 126, 0.8);
  box-shadow: 0 0 0 3px rgba(63, 198, 126, 0.12), inset 0 1px 0 rgba(252, 251, 249, 0.06);
}

.auth-panel .input-wrap svg {
  color: #faf6ed;
}

.auth-panel .input-wrap input,
.auth-panel .input-wrap input:-webkit-autofill {
  color: #fcfbf9;
}

.auth-panel .input-wrap input::placeholder {
  color: rgba(242, 237, 224, 0.54);
}

.auth-panel .primary-btn,
.register-auth-panel .primary-btn {
  min-height: 50px;
  margin-top: 6px;
  color: #fcfbf9;
  background: linear-gradient(135deg, #26b368, #197644);
  border: 1px solid rgba(108, 224, 162, 0.38);
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(35, 164, 95, 0.22);
  font-size: 16px;
  font-weight: 900;
}

.auth-screen .switch-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
  padding: 0 14px;
  color: rgba(252, 251, 249, 0.9);
  background: rgba(9, 30, 19, 0.48);
  border: 1px solid rgba(213, 246, 228, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.auth-screen .switch-line button {
  color: #47d187;
  font-weight: 900;
}

.legal-note {
  margin: 0;
  color: rgba(252, 251, 249, 0.74);
  font-size: 11px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.26);
}

.screen.auth-screen {
  justify-content: center;
  gap: 10px;
  padding: 26px 14px calc(16px + env(safe-area-inset-bottom));
}

.auth-screen .brand {
  align-self: stretch;
  margin-bottom: 10px;
}

.auth-screen .brand-copy {
  gap: 8px;
}

.auth-screen .brand-logo {
  width: 38px;
  height: 38px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.auth-screen .brand-copy h1 {
  font-size: 21px;
  line-height: 1;
}

.auth-screen .brand-copy p {
  margin-top: 2px;
  font-size: 10px;
}

.auth-panel,
.register-auth-panel {
  width: min(100%, 338px);
  margin: 0 auto;
  padding: 13px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(14, 37, 25, 0.72), rgba(8, 35, 21, 0.84));
  border: 1px solid rgba(188, 239, 212, 0.32);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.auth-panel-head {
  gap: 3px;
  margin-bottom: 2px;
}

.auth-panel-head span {
  color: #66de9e;
  font-size: 10px;
}

.auth-panel-head h2 {
  font-size: 19px;
  line-height: 1.1;
}

.auth-panel-head p {
  display: none;
}

.auth-panel .field,
.register-auth-panel .field {
  gap: 0;
}

.auth-panel .field label,
.register-auth-panel .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-panel .input-wrap {
  min-height: 36px;
  padding: 0 10px;
  gap: 7px;
  color: rgba(252, 251, 249, 0.94);
  background: rgba(7, 25, 15, 0.56);
  border-color: rgba(209, 245, 226, 0.24);
  border-radius: 8px;
}

.auth-panel .input-wrap:focus-within {
  border-color: rgba(63, 198, 126, 0.78);
  box-shadow: 0 0 0 2px rgba(63, 198, 126, 0.13), inset 0 1px 0 rgba(252, 251, 249, 0.05);
}

.auth-panel .input-wrap svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #faf7ee;
}

.auth-panel .input-wrap input,
.auth-panel .input-wrap input:-webkit-autofill {
  min-width: 0;
  height: 100%;
  color: #fcfbf9;
  font-size: 12px;
}

.auth-panel .input-wrap input::placeholder {
  color: rgba(242, 237, 224, 0.54);
}

.auth-panel .phone-input-wrap {
  gap: 7px;
}

.auth-panel .phone-prefix {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding-right: 7px;
  color: #fcfbf9;
  border-right: 1px solid rgba(213, 246, 228, 0.3);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.auth-panel .primary-btn,
.register-auth-panel .primary-btn {
  min-height: 36px;
  margin-top: 2px;
  padding: 0 12px;
  color: #fcfbf9;
  background: linear-gradient(135deg, #26b368, #197644);
  border: 1px solid rgba(108, 224, 162, 0.36);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(35, 164, 95, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 239, 222, 0.62);
  font-size: 10.5px;
  line-height: 1;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  background: rgba(213, 246, 228, 0.18);
}

.auth-divider span {
  flex: 0 0 auto;
}

.auth-secondary-btn {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #66de9e;
  background: rgba(7, 25, 15, 0.36);
  border: 1px solid rgba(213, 246, 228, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.legal-note {
  width: min(100%, 338px);
  margin: 0 auto;
  color: rgba(252, 251, 249, 0.62);
  text-align: center;
  font-size: 10px;
  line-height: 1.35;
}

.auth-screen .legal-note {
  display: none;
}

.register-auth-screen .brand {
  margin-bottom: 8px;
}

.register-auth-panel {
  padding: 12px;
  gap: 7px;
}

@media (max-height: 700px) {
  .screen.auth-screen {
    padding-top: 16px;
  }

  .auth-screen .brand-logo {
    width: 34px;
    height: 34px;
  }

  .auth-screen .brand-copy h1 {
    font-size: 19px;
  }

  .legal-note {
    display: none;
  }
}

.hero-band {
  padding: 16px;
  color: #fcfbf9;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #176a3e 0%, #1d884f 54%, #e69a3f 100%);
  box-shadow: 0 14px 26px rgba(29, 136, 79, 0.22);
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-head > div {
  min-width: 0;
}

.hero-head > span {
  flex: 0 0 auto;
}

.hero-head span {
  color: rgba(252, 251, 249, 0.74);
  font-size: 12px;
}

.hero-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.balance {
  margin-top: 18px;
}

.balance span {
  color: rgba(252, 251, 249, 0.72);
  font-size: 12px;
}

.balance strong {
  display: block;
  margin-top: 2px;
  font-size: 32px;
  line-height: 1.05;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.hero-actions button,
.hero-actions a {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #155533;
  background: rgba(252, 251, 249, 0.88);
  border-radius: 8px;
  font-weight: 800;
}

.hero-actions svg {
  width: 17px;
  height: 17px;
}

.hero-actions button:disabled {
  opacity: 0.72;
  cursor: default;
}

.vip-stage {
  margin: 0 -16px;
  padding: 16px 16px 18px;
  overflow: hidden;
  color: #fcfbf9;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 223, 124, 0.52), transparent 18%),
    radial-gradient(circle at 88% 26%, rgba(252, 251, 249, 0.32), transparent 20%),
    linear-gradient(160deg, #ff8127 0%, #ff9b31 48%, #f05e22 100%);
}

.vip-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vip-stage-head span {
  font-size: 16px;
  font-weight: 900;
}

.vip-stage-head strong {
  color: rgba(252, 251, 249, 0.88);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.vip-feature-card {
  position: relative;
  min-height: 152px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 62% 30%, rgba(252, 251, 249, 0.75), transparent 24%),
    linear-gradient(135deg, #ffcf5c 0%, #ff8931 46%, #e74727 100%);
  border: 4px solid rgba(244, 44, 39, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(115, 49, 22, 0.24);
}

.vip-feature-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -70px 18%;
  height: 110px;
  background: rgba(252, 251, 249, 0.35);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.vip-feature-main,
.vip-feature-badge,
.vip-feature-price {
  position: relative;
  z-index: 1;
}

.vip-feature-main {
  display: grid;
  align-content: start;
  gap: 8px;
}

.vip-feature-main span {
  font-size: 42px;
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 5px 16px rgba(136, 29, 12, 0.2);
}

.vip-feature-main strong,
.vip-feature-main em {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.vip-feature-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-self: center;
  color: #fcfbf9;
  background: linear-gradient(145deg, #d94717, #ff7b22);
  border: 3px solid rgba(255, 230, 155, 0.95);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(113, 28, 9, 0.24);
}

.vip-feature-badge svg {
  width: 36px;
  height: 36px;
}

.vip-rank-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--rank-fg, #fcfbf9);
  background:
    radial-gradient(circle at 30% 24%, rgba(252, 251, 249, 0.72), transparent 28%),
    linear-gradient(145deg, var(--rank-a, #8b5a2b), var(--rank-b, #d6a15d));
  border: 1px solid rgba(252, 251, 249, 0.62);
  border-radius: 12px;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(42, 22, 10, 0.18);
}

.vip-rank-image-icon {
  overflow: hidden;
  padding: 0;
  color: #fdfbf7;
  background: rgba(6, 28, 16, 0.88);
  border-color: rgba(102, 222, 158, 0.38);
  box-shadow:
    0 0 14px rgba(102, 222, 158, 0.28),
    inset 0 0 0 1px rgba(252, 251, 249, 0.06);
}

.vip-rank-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(1.08) brightness(1.02);
}

.vip-rank-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.vip-feature-badge .vip-rank-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.vip-feature-badge .vip-rank-icon svg {
  width: 34px;
  height: 34px;
}

.vip-rank-1 { --rank-a: #6f4328; --rank-b: #c28b55; --rank-fg: #fff9ec; }
.vip-rank-2 { --rank-a: #13251b; --rank-b: #5b6e64; --rank-fg: #fcfbf8; }
.vip-rank-3 { --rank-a: #8b4513; --rank-b: #cd7f32; --rank-fg: #fff7ed; }
.vip-rank-4 { --rank-a: #d9e6df; --rank-b: #fcfbf8; --rank-fg: #375143; }
.vip-rank-5 { --rank-a: #f59e0b; --rank-b: #fde68a; --rank-fg: #713f12; }
.vip-rank-6 { --rank-a: #b2efce; --rank-b: #e6eae8; --rank-fg: #377855; }
.vip-rank-7 { --rank-a: #3bd583; --rank-b: #3bd583; --rank-fg: #fcf9f3; }
.vip-rank-8 { --rank-a: #b91c1c; --rank-b: #fb7185; --rank-fg: #fff1f2; }
.vip-rank-9 { --rank-a: #31c476; --rank-b: #78e2a9; --rank-fg: #fbf9f3; }
.vip-rank-trial { --rank-a: #1d884f; --rank-b: #97ddb8; --rank-fg: #fbf8f0; }

.vip-feature-price {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 210px;
  margin-top: 2px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fcfbf9;
  text-align: center;
  background: linear-gradient(180deg, #ff9e83, #ec5b3d);
  border: 1px solid rgba(252, 251, 249, 0.55);
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(117, 43, 27, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.vip-upgrade-btn,
.vip-owned-label {
  min-height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a3412;
  background: #fff8e7;
  border: 1px solid rgba(252, 251, 249, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 6px 12px rgba(113, 28, 9, 0.16);
}

.vip-upgrade-btn:active {
  transform: translateY(1px);
}

.vip-owned-label {
  color: rgba(154, 52, 18, 0.72);
}

.vip-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.vip-pager a,
.vip-pager span {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.vip-pager a {
  color: #7b250e;
  background: rgba(255, 248, 220, 0.96);
  box-shadow: 0 8px 16px rgba(89, 34, 14, 0.14);
}

.vip-pager span {
  padding: 0 10px;
  color: rgba(252, 251, 249, 0.9);
  background: rgba(117, 44, 18, 0.22);
  white-space: nowrap;
}

.vip-pager svg {
  width: 15px;
  height: 15px;
}

.vip-card-strip {
  display: flex;
  gap: 10px;
  margin: 12px -2px 0;
  padding: 0 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vip-card-strip::-webkit-scrollbar {
  display: none;
}

.vip-level-card {
  flex: 0 0 clamp(104px, 31vw, 118px);
  min-width: 104px;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  scroll-snap-align: start;
  color: rgba(252, 251, 249, 0.88);
  background: rgba(117, 44, 18, 0.24);
  border: 1px solid rgba(252, 251, 249, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.vip-level-card.active {
  color: #7b250e;
  background: #fff8dc;
  border-color: #fcfbf9;
  box-shadow: 0 10px 20px rgba(89, 34, 14, 0.18);
}

.vip-level-card.no-access {
  cursor: not-allowed;
  opacity: 0.64;
}

.vip-level-card span,
.vip-level-card strong,
.vip-level-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vip-level-card span {
  font-size: 13px;
  font-weight: 950;
}

.vip-level-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-level-title .vip-rank-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.vip-level-title .vip-rank-icon svg {
  width: 15px;
  height: 15px;
}

.vip-level-title b {
  min-width: 0;
  font: inherit;
}

.vip-level-card strong {
  font-size: 13px;
  line-height: 1.15;
}

.vip-level-card em {
  color: currentColor;
  opacity: 0.78;
  font-size: 10px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
}

.vip-detail-section {
  display: grid;
  gap: 10px;
}

.vip-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-income-grid.has-five-cards .vip-income-year-card {
  grid-column: 1 / -1;
}

.vip-income-grid div,
.vip-info-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vip-income-grid div {
  padding: 12px;
}

.vip-income-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vip-income-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.vip-intro-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  color: #40251a;
  background: linear-gradient(180deg, #fff7e8, #fffdf8);
  border: 1px solid #f2c690;
  border-radius: 8px;
}

.vip-intro-card h3,
.vip-intro-card p {
  margin: 0;
}

.vip-intro-card h3 {
  color: #85330f;
  font-size: 15px;
}

.vip-intro-card p {
  color: #5e463a;
  font-size: 13px;
  line-height: 1.55;
}

.vip-intro-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-intro-list span {
  min-width: 0;
  padding: 9px;
  color: #6f4d12;
  background: #fcfbf9;
  border: 1px solid #f3d8a7;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vip-info-card {
  overflow: hidden;
}

.vip-info-card h3 {
  margin: 0;
  padding: 11px 12px;
  color: #85330f;
  background: #fff2dc;
  border-bottom: 1px solid #f2c690;
  font-size: 14px;
}

.vip-table {
  display: grid;
}

.vip-table-head,
.vip-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.vip-table.three-cols .vip-table-head,
.vip-table.three-cols .vip-table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-table-head {
  color: #fcfbf9;
  background: #f07a23;
  font-size: 11px;
  font-weight: 900;
}

.vip-table-row {
  min-height: 38px;
  color: #40251a;
  background: #fffaf2;
  border-top: 1px solid #f2c690;
  font-size: 12px;
  font-weight: 800;
}

.vip-table-row:nth-child(odd) {
  background: #ffe5c2;
}

.vip-table-head span,
.vip-table-row span {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px 5px;
  text-align: center;
  border-right: 1px solid rgba(157, 81, 25, 0.28);
  overflow-wrap: anywhere;
}

.vip-table-head span:last-child,
.vip-table-row span:last-child {
  border-right: 0;
}

.vip-card-note {
  margin: 0;
  padding: 10px 12px 12px;
  color: #6f4d12;
  background: #fffaf2;
  border-top: 1px solid #f2c690;
  font-size: 12px;
  line-height: 1.5;
}

.activity-config-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  overflow: hidden;
  color: #fcfbf9;
  background:
    radial-gradient(circle at 84% 12%, rgba(252, 251, 249, 0.24), transparent 22%),
    linear-gradient(135deg, #1d884f, #f29f3d);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(29, 136, 79, 0.16);
}

.activity-config-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.activity-image-zoom,
.activity-popup-image-button {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.activity-image-zoom img,
.activity-popup-image-button img {
  display: block;
}

.activity-config-card span {
  color: rgba(252, 251, 249, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.activity-config-card h2 {
  font-size: 22px;
  line-height: 1.15;
}

.activity-config-card p {
  color: rgba(252, 251, 249, 0.9);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.activity-page-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.activity-page-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #155533;
  background: rgba(252, 251, 249, 0.9);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.activity-page-actions button:last-child {
  color: #fcfbf9;
  background: rgba(10, 39, 24, 0.42);
}

.activity-page-actions svg {
  width: 16px;
  height: 16px;
}

.lucky-section {
  display: grid;
  place-items: center;
  gap: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #120b05 0%, #2a1908 48%, #070605 100%);
  border-color: rgba(205, 151, 48, 0.45);
}

.lucky-card-hero .hero-actions {
  justify-content: flex-end;
}

.lucky-card-section {
  padding: 12px 10px 14px;
  background:
    linear-gradient(90deg, rgba(58, 193, 121, 0.08), transparent 24%, transparent 76%, rgba(58, 193, 121, 0.08)),
    radial-gradient(ellipse at 50% 6%, rgba(255, 226, 128, 0.22), transparent 38%),
    linear-gradient(145deg, #06190f 0%, #103823 52%, #070f0b 100%);
}

.lucky-card-stage {
  position: relative;
  width: min(100%, 392px);
  aspect-ratio: 1 / 1.24;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 142, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 216, 112, 0.11) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, rgba(255, 216, 112, 0.09) 0 1px, transparent 1px 52px),
    radial-gradient(ellipse at 50% 28%, rgba(62, 207, 130, 0.22), transparent 46%),
    radial-gradient(ellipse at 50% 72%, rgba(255, 195, 68, 0.13), transparent 45%),
    linear-gradient(160deg, #0a2718 0%, #0c3620 49%, #06110b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(252, 251, 249, 0.05),
    inset 0 0 48px rgba(41, 191, 111, 0.12),
    0 22px 48px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

.lucky-card-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 225, 135, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 0 24px rgba(255, 222, 119, 0.08),
    0 0 28px rgba(62, 209, 131, 0.1);
}

.lucky-card-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 247, 194, 0.09) 34%, transparent 50%),
    linear-gradient(180deg, rgba(252, 251, 249, 0.05), rgba(0, 0, 0, 0.26));
  z-index: 2;
}

.lucky-card-stage.is-revealed::after {
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 236, 118, 0.34), transparent 29%),
    conic-gradient(from -18deg at 50% 48%, transparent 0 7%, rgba(255, 230, 96, 0.22) 8% 12%, transparent 13% 21%, rgba(79, 218, 144, 0.18) 22% 25%, transparent 26% 35%, rgba(255, 116, 162, 0.18) 36% 39%, transparent 40% 100%),
    linear-gradient(115deg, transparent 0 18%, rgba(255, 247, 194, 0.1) 34%, transparent 50%),
    linear-gradient(180deg, rgba(252, 251, 249, 0.04), rgba(0, 0, 0, 0.28));
  animation: lucky-stage-rays 4s linear infinite;
}

.lucky-card-table {
  display: none;
}

.lucky-card-stage-head {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18px;
  z-index: 3;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #faf6ec;
  background: rgba(5, 22, 13, 0.66);
  border: 1px solid rgba(104, 223, 160, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.lucky-card-stage-head span,
.lucky-card-stage-head strong {
  min-width: 0;
}

.lucky-card-stage-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #76e2a8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lucky-card-stage-head span svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.lucky-card-stage-head strong {
  color: #fff3b8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
}

.lucky-card-grid {
  position: absolute;
  left: 7.5%;
  right: 7.5%;
  top: 86px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lucky-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  perspective: 900px;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lucky-card:not(:disabled):hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.lucky-card:disabled {
  cursor: default;
}

.lucky-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.18, 0.78, 0.2, 1);
  transition-delay: var(--card-delay, 0ms);
}

.lucky-card.is-revealed .lucky-card-inner {
  transform: rotateY(180deg);
}

.lucky-card.is-opening .lucky-card-inner {
  animation: lucky-card-pulse 0.72s ease-in-out infinite alternate;
}

.lucky-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lucky-card-back {
  color: #fff0a9;
  background:
    linear-gradient(135deg, rgba(255, 240, 156, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(255, 224, 120, 0.14) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #175e38 0%, #0c3b22 48%, #09160f 100%);
  border: 1px solid rgba(255, 228, 143, 0.78);
  box-shadow:
    inset 0 0 0 2px rgba(252, 251, 249, 0.06),
    inset 0 0 24px rgba(55, 206, 125, 0.2),
    0 10px 18px rgba(0, 0, 0, 0.38);
}

.lucky-card-back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 225, 122, 0.56);
  border-radius: 6px;
}

.lucky-card-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 6px;
  background: rgba(5, 24, 14, 0.68);
  border: 1px solid rgba(255, 228, 145, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 222, 112, 0.08),
    0 0 18px rgba(255, 217, 94, 0.28);
}

.lucky-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lucky-card-mark {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #ffe474;
}

.lucky-card-mark svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}

.lucky-card-front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 9px 5px;
  color: #2d1703;
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.55), transparent 30%),
    linear-gradient(160deg, #fff0aa 0%, #f1bd35 52%, #a76a10 100%);
  border: 1px solid rgba(255, 244, 182, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(252, 251, 249, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.36);
}

.lucky-card-front::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background: conic-gradient(from 30deg, transparent, rgba(252, 251, 249, 0.55), transparent 30%, rgba(255, 235, 120, 0.28), transparent 54%);
  opacity: 0.42;
  transform: rotate(12deg);
}

.lucky-card-front::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 230, 0.44);
  border-radius: 6px;
}

.lucky-card-front-label {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
  color: rgba(49, 27, 3, 0.72);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.lucky-card-front strong {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #3b1a02;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 1px 0 rgba(252, 251, 249, 0.55);
}

.lucky-card-prize-chip {
  position: relative;
  z-index: 2;
  min-height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  color: rgba(52, 28, 4, 0.78);
  background: rgba(252, 251, 249, 0.28);
  border: 1px solid rgba(68, 36, 4, 0.16);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lucky-card-tier-starter .lucky-card-front {
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.54), transparent 30%),
    linear-gradient(160deg, #fff0aa 0%, #f3bd36 52%, #ad6f12 100%);
}

.lucky-card-tier-bonus .lucky-card-front {
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.6), transparent 30%),
    linear-gradient(160deg, #ffeab7 0%, #ffbc3e 46%, #d66520 100%);
}

.lucky-card-tier-major .lucky-card-front {
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.62), transparent 30%),
    linear-gradient(160deg, #fff0ca 0%, #ffad77 45%, #a94da8 100%);
}

.lucky-card-tier-mega .lucky-card-front {
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.64), transparent 30%),
    linear-gradient(160deg, #fcf9f3 0%, #b1eecd 44%, #23a761 100%);
}

.lucky-card-tier-jackpot .lucky-card-front {
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.68), transparent 30%),
    linear-gradient(160deg, #fff7c6 0%, #ffd743 36%, #fa4c82 68%, #46c782 100%);
}

.lucky-card.is-selected {
  z-index: 4;
}

.lucky-card.is-selected.is-revealed {
  transform: scale(1.16);
  animation: lucky-card-win-pop 0.72s cubic-bezier(0.16, 0.9, 0.24, 1.18) both;
}

.lucky-card.is-muted.is-revealed {
  filter: saturate(0.78) brightness(0.78);
  transform: scale(0.94);
}

.lucky-card.is-selected .lucky-card-front {
  color: #2b1200;
  gap: 5px;
  padding: 26px 5px 8px;
  border-color: rgba(255, 255, 220, 0.98);
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.7), transparent 30%),
    radial-gradient(circle at 50% 42%, rgba(252, 251, 249, 0.82), transparent 26%),
    linear-gradient(160deg, #fff8c6 0%, #ffd64a 42%, #ff7c35 70%, #24a862 100%);
  box-shadow:
    0 0 0 2px rgba(255, 250, 190, 0.72),
    0 0 18px rgba(112, 225, 165, 0.74),
    0 0 42px rgba(255, 216, 66, 0.94),
    0 18px 28px rgba(0, 0, 0, 0.42);
}

.lucky-card.is-selected .lucky-card-front::before {
  opacity: 0.78;
  animation: lucky-card-shine-spin 2.6s linear infinite;
}

.lucky-card.is-selected .lucky-card-front-label {
  color: #0f4629;
  font-size: 9px;
  letter-spacing: 0;
}

.lucky-card.is-selected .lucky-card-front strong {
  color: #092918;
  font-size: 21px;
  text-shadow:
    0 1px 0 rgba(252, 251, 249, 0.76),
    0 0 12px rgba(252, 251, 249, 0.66),
    0 0 18px rgba(255, 212, 50, 0.64);
}

.lucky-card.is-selected .lucky-card-prize-chip {
  color: #092918;
  background: rgba(129, 228, 175, 0.72);
  border-color: rgba(252, 251, 249, 0.5);
  box-shadow: 0 0 14px rgba(100, 222, 157, 0.42);
}

.lucky-card-win-burst {
  position: absolute;
  inset: -18px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 251, 249, 0.76), transparent 14%),
    conic-gradient(from 0deg, rgba(255, 225, 67, 0.9), transparent 8%, rgba(100, 222, 157, 0.78) 16%, transparent 25%, rgba(255, 87, 137, 0.78) 34%, transparent 44%, rgba(255, 225, 67, 0.9) 55%, transparent 68%, rgba(100, 222, 157, 0.8) 78%, transparent 90%);
  filter: blur(0.2px);
  opacity: 0.92;
  animation: lucky-card-burst-pulse 1.25s ease-in-out infinite alternate;
}

.lucky-card-win-burst::before,
.lucky-card-win-burst::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff5a1;
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
  filter: drop-shadow(0 0 9px rgba(255, 244, 150, 0.9));
}

.lucky-card-win-burst::before {
  top: 18px;
  right: 22px;
  animation: lucky-card-spark 1.1s ease-in-out infinite alternate;
}

.lucky-card-win-burst::after {
  left: 20px;
  bottom: 18px;
  background: #8ce7b6;
  animation: lucky-card-spark 1.3s 0.18s ease-in-out infinite alternate;
}

.lucky-card-winner-ribbon {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 3;
  min-width: 72px;
  padding: 4px 8px;
  color: #081a10;
  background: linear-gradient(90deg, #7de3ad 0%, #fff29a 50%, #7de3ad 100%);
  border: 1px solid rgba(252, 251, 249, 0.74);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(129, 228, 175, 0.62);
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

@keyframes lucky-card-win-pop {
  0% {
    transform: scale(0.92) translateY(8px);
  }
  60% {
    transform: scale(1.2) translateY(-5px);
  }
  100% {
    transform: scale(1.16) translateY(0);
  }
}

@keyframes lucky-card-shine-spin {
  to {
    transform: rotate(372deg);
  }
}

@keyframes lucky-card-burst-pulse {
  from {
    opacity: 0.58;
    transform: scale(0.9) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: scale(1.04) rotate(9deg);
  }
}

@keyframes lucky-card-spark {
  from {
    opacity: 0.35;
    transform: scale(0.72) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: scale(1.18) rotate(28deg);
  }
}

@keyframes lucky-stage-rays {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lucky-card-pulse {
  from {
    transform: translateY(0) rotateY(0deg);
  }
  to {
    transform: translateY(-5px) rotateY(10deg);
  }
}

.lucky-wheel-wrap {
  --wheel-center-y: calc(48.5% - 4px);
  --wheel-radius: 48%;
  --wheel-pointer-top: calc(48.5% - 2px - var(--wheel-radius) + 8px);
  position: relative;
  width: min(90vw, 380px);
  height: min(112vw, 470px);
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  margin: 4px auto 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 116, 0.38);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.lucky-wheel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.96;
}

.lucky-wheel-pointer,
.lucky-wheel-pointer-img {
  position: absolute;
  top: var(--wheel-pointer-top);
  left: 50%;
  z-index: 4;
  width: 64px;
  height: 78px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.lucky-wheel-disc {
  position: absolute;
  left: 50%;
  top: var(--wheel-center-y);
  z-index: 2;
  width: 96%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(248, 199, 82, 0.18);
  transform: translate(-50%, -50%) rotate(var(--wheel-rotation, 0deg));
  transition: transform 3.1s cubic-bezier(0.12, 0.74, 0.12, 1);
}

.lucky-wheel-base-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.lucky-wheel-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 94px;
  height: 94px;
  display: block;
  transform: translate(-50%, -50%) rotate(var(--slot-angle)) translateY(-107px);
  transform-origin: center;
  color: #ffe9a4;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.82);
}

.lucky-wheel-prize {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.lucky-wheel-slot img {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.48));
  transform: translate(-50%, -50%);
}

.lucky-wheel-amount {
  position: absolute;
  left: 50%;
  top: 59%;
  z-index: 4;
  width: 96px;
  height: 28px;
  display: block;
  overflow: visible;
  transform: translate3d(-50%, -50%, 0) rotate(-90deg);
  transform-origin: center;
  backface-visibility: hidden;
  shape-rendering: geometricPrecision;
}

.lucky-wheel-center {
  position: absolute;
  left: 50%;
  top: calc(var(--wheel-center-y) - 1px);
  z-index: 5;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.lucky-wheel-center-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.52));
}

.lucky-wheel-center:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.04);
}

.lucky-wheel-center:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.prize-wheel-template-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 218, 92, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 224, 120, 0.28), transparent 28%),
    radial-gradient(circle at 86% 26%, rgba(96, 221, 154, 0.18), transparent 34%),
    linear-gradient(150deg, rgba(9, 43, 25, 0.98), rgba(6, 25, 15, 0.98) 58%, rgba(74, 52, 13, 0.88));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34), inset 0 0 40px rgba(83, 219, 146, 0.08);
}

.prize-wheel-template-hero::before,
.prize-wheel-template-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.prize-wheel-template-hero::before {
  inset: -80px -120px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 100, 0.2), transparent 66%);
}

.prize-wheel-template-hero::after {
  inset: auto -60px -90px 32%;
  height: 180px;
  background: radial-gradient(circle, rgba(80, 218, 144, 0.18), transparent 64%);
}

.prize-wheel-template-copy,
.prize-wheel-template-panel,
.prize-wheel-template-layout {
  position: relative;
  z-index: 1;
}

.prize-wheel-template-kicker {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  color: #0c2e1c;
  background: linear-gradient(90deg, #fff09a, #6adfa1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prize-wheel-template-copy h1 {
  margin: 10px 0 8px;
  color: #fff7c2;
  font-size: clamp(32px, 9vw, 54px);
  line-height: 0.95;
}

.prize-wheel-template-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(249, 244, 232, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.prize-wheel-template-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.prize-wheel-template-stats div,
.prize-wheel-template-card,
.prize-wheel-template-result {
  border: 1px solid rgba(123, 227, 172, 0.18);
  background: rgba(5, 25, 14, 0.44);
  box-shadow: inset 0 0 18px rgba(97, 222, 155, 0.05);
}

.prize-wheel-template-stats div {
  min-width: 0;
  padding:
    max(10px, env(safe-area-inset-top))
    10px
    max(10px, env(safe-area-inset-bottom));
  border-radius: 10px;
}

.prize-wheel-template-stats span,
.prize-wheel-template-card > span,
.prize-wheel-template-prize span {
  display: block;
  color: rgba(246, 239, 222, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prize-wheel-template-stats strong {
  display: block;
  margin-top: 4px;
  color: #fcfbf9;
  font-size: 15px;
  line-height: 1.1;
}

.prize-wheel-template-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.prize-wheel-template-stage {
  position: relative;
  width: min(84vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.prize-wheel-template-stage::before {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 238, 144, 0.14) 0deg 3deg, transparent 3deg 12deg),
    radial-gradient(circle, rgba(255, 219, 84, 0.18), transparent 64%);
  filter: blur(1px);
}

.prize-wheel-template-stage::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 118, 0.18);
  box-shadow: 0 0 38px rgba(255, 213, 78, 0.18), inset 0 0 30px rgba(103, 223, 159, 0.08);
}

.prize-wheel-template-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff2a0;
  transform: translateX(-50%) rotate(180deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.48));
}

.prize-wheel-template-pointer svg {
  width: 42px;
  height: 42px;
  fill: rgba(255, 213, 70, 0.36);
  stroke-width: 1.8;
}

.prize-wheel-template-disc {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 39, 24, 0.96) 0 20%, transparent 20.5%),
    conic-gradient(from -22.5deg,
      #ffd86d 0deg 45deg,
      #219c5a 45deg 90deg,
      #f2b64b 90deg 135deg,
      #16653a 135deg 180deg,
      #fff09a 180deg 225deg,
      #1f8b51 225deg 270deg,
      #d9962a 270deg 315deg,
      #0e4126 315deg 360deg);
  border: 10px solid rgba(255, 223, 111, 0.9);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(7, 29, 17, 0.82),
    inset 0 0 34px rgba(252, 251, 249, 0.12),
    0 0 36px rgba(255, 216, 92, 0.24);
}

.prize-wheel-template-stage.is-spinning .prize-wheel-template-disc {
  animation: prizeWheelTemplateSpin 1.7s cubic-bezier(0.16, 0.74, 0.18, 1) both;
}

@keyframes prizeWheelTemplateSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(1755deg); }
}

.prize-wheel-template-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #fff5b7 0deg 4deg, transparent 4deg 14deg);
  opacity: 0.8;
  mask: radial-gradient(circle, transparent 0 76%, #000 77% 100%);
}

.prize-wheel-template-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--segment-angle)) translateY(-94px) rotate(var(--segment-angle-neg));
  color: #0a2918;
  text-shadow: 0 1px 0 rgba(252, 251, 249, 0.38);
}

.prize-wheel-template-label em {
  color: rgba(10, 38, 23, 0.72);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.prize-wheel-template-label strong {
  color: #092717;
  font-size: 12px;
  line-height: 1;
}

.prize-wheel-template-label.is-selected {
  color: #fff5ba;
  filter: drop-shadow(0 0 10px rgba(255, 244, 160, 0.7));
}

.prize-wheel-template-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  padding: 16px 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 28%, rgba(252, 251, 249, 0.92), rgba(255, 229, 117, 0.9) 26%, rgba(39, 172, 101, 0.9) 58%, rgba(8, 38, 22, 0.96) 100%);
  border: 1px solid rgba(255, 249, 184, 0.84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), 0 0 22px rgba(97, 221, 155, 0.24);
}

.prize-wheel-template-center span {
  color: #0b351f;
  font-size: 18px;
  font-weight: 1000;
}

.prize-wheel-template-center strong {
  color: #fcfbf9;
  font-size: 14px;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
}

.prize-wheel-template-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 170, 0.28), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.prize-wheel-template-button {
  width: min(260px, 100%);
}

.prize-wheel-template-result {
  width: min(320px, 100%);
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: #fff7bc;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.prize-wheel-template-layout {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.prize-wheel-template-card {
  padding: 14px;
  border-radius: 14px;
}

.prize-wheel-template-card h2 {
  margin: 5px 0;
  color: #fcfbf9;
  font-size: 18px;
}

.prize-wheel-template-card p {
  margin: 0;
  color: rgba(248, 243, 229, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.prize-wheel-template-prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.prize-wheel-template-prize {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(121, 227, 170, 0.18);
  border-radius: 10px;
  background: rgba(6, 30, 17, 0.58);
}

.prize-wheel-template-prize strong {
  display: block;
  margin-top: 4px;
  color: #fff5a8;
  font-size: 14px;
}

.prize-wheel-template-prize.is-selected {
  border-color: rgba(255, 224, 94, 0.72);
  background: rgba(117, 78, 12, 0.42);
  box-shadow: 0 0 18px rgba(255, 212, 77, 0.16);
}

@media (min-width: 760px) {
  .prize-wheel-template-hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    padding: 24px;
  }

  .prize-wheel-template-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.energy-draw {
  --energy-lime: #40cd82;
  --energy-lime-soft: #c9f3dd;
  --energy-white: #fcfaf5;
  --energy-black: #05170d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: clamp(580px, calc(100svh - 120px), 720px);
  min-height: 580px;
  display: block;
  padding: 16px 14px 14px;
  color: var(--energy-white);
  border: 1px solid rgba(64, 205, 130, 0.28);
  border-radius: 6px;
  background-color: #06190f;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 34px rgba(38, 179, 104, 0.06);
}

.energy-draw::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 22, 13, 0.72) 0, rgba(5, 22, 13, 0.08) 22%, rgba(5, 22, 13, 0.02) 60%, rgba(5, 22, 13, 0.84) 100%),
    radial-gradient(circle at 50% 46%, transparent 0 28%, rgba(7, 31, 18, 0.14) 64%, rgba(4, 19, 11, 0.5) 100%);
}

.energy-draw::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(108, 224, 162, 0.06);
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(252, 251, 249, 0.012) 3px 4px);
}

.energy-draw-artboard {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 47%;
  width: 100%;
  aspect-ratio: 865 / 1819;
  overflow: visible;
  transform: translateY(-47%);
}

.energy-draw-artboard::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 22, 13, 0.34) 0, transparent 20%, transparent 68%, rgba(5, 22, 13, 0.52) 100%),
    radial-gradient(circle at 48.32% 40.68%, transparent 0 28%, rgba(7, 31, 18, 0.08) 64%, rgba(4, 19, 11, 0.22) 100%);
}

.energy-draw-artboard > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.energy-draw-heading,
.energy-draw-reactor,
.energy-draw-console {
  position: absolute;
  z-index: 2;
}

.energy-draw-heading {
  top: 16px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.energy-draw-heading > div:first-child {
  min-width: 0;
}

.energy-draw-heading > div:first-child > span {
  display: block;
  color: var(--energy-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.energy-draw-heading h1 {
  margin: 3px 0 2px;
  color: #fcfbf9;
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(38, 179, 104, 0.28);
}

.energy-draw-heading p {
  margin: 0;
  color: rgba(244, 248, 239, 0.65);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.energy-draw-charge {
  flex: 0 0 70px;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 5px;
  border: 1px solid rgba(108, 224, 162, 0.42);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(15, 68, 40, 0.84), rgba(6, 27, 16, 0.92));
  box-shadow: inset 0 0 15px rgba(38, 179, 104, 0.1), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.energy-draw-charge strong {
  color: var(--energy-lime-soft);
  font-size: 22px;
  line-height: 0.92;
}

.energy-draw-charge span {
  color: rgba(252, 251, 249, 0.72);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.energy-draw-reactor {
  left: 48.32%;
  top: 40.68%;
  width: calc(100% - 28px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.energy-draw-orbit {
  --orbit-radius: clamp(110px, 36vw, 155px);
  position: relative;
  width: min(88vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.energy-draw-orbit::before,
.energy-draw-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.energy-draw-orbit::before {
  inset: 5%;
  border: 1px solid rgba(154, 234, 191, 0.34);
  background:
    repeating-conic-gradient(from 0deg, rgba(171, 237, 202, 0.42) 0deg 1deg, transparent 1deg 15deg),
    radial-gradient(circle, rgba(38, 179, 104, 0.1), transparent 57%);
  box-shadow: inset 0 0 32px rgba(38, 179, 104, 0.09), 0 0 32px rgba(38, 179, 104, 0.13);
  mask: radial-gradient(circle, transparent 0 81%, #000 82% 100%);
}

.energy-draw-orbit::after {
  inset: 21%;
  border: 1px solid rgba(252, 251, 249, 0.16);
  box-shadow: 0 0 22px rgba(38, 179, 104, 0.14), inset 0 0 28px rgba(252, 251, 249, 0.03);
}

.energy-draw-orbit-track {
  position: absolute;
  z-index: 2;
  inset: 10%;
  border: 1px dashed rgba(154, 234, 191, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.68);
}

.energy-draw-burst {
  position: absolute;
  z-index: 1;
  inset: 18%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.24;
  background: repeating-conic-gradient(from 0deg, rgba(108, 224, 162, 0.42) 0deg 2deg, transparent 2deg 16deg);
  mask: radial-gradient(circle, transparent 0 35%, #000 66%, transparent 100%);
  animation: energyBurstRotate 18s linear infinite;
}

.energy-draw.has-result .energy-draw-burst {
  opacity: 0.55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 105, 0.72) 0deg 3deg, transparent 3deg 14deg);
  animation-duration: 8s;
}

.energy-draw-particles {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  background: #f6f0e1;
  box-shadow:
    -116px -74px 0 #4fd78e,
    105px -92px 0 #ffd07a,
    126px 24px 0 #6ae0a1,
    -129px 34px 0 #ffc45e,
    -74px 112px 0 #60da99,
    86px 107px 0 #fff1be;
  animation: energyParticlesFloat 2.8s ease-in-out infinite alternate;
}

.energy-draw-prizes {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.energy-draw-prize {
  --prize-top: rgba(14, 65, 38, 0.98);
  --prize-bottom: rgba(5, 24, 14, 0.98);
  --prize-highlight: rgba(93, 221, 153, 0.16);
  --prize-border: rgba(174, 238, 204, 0.42);
  --prize-accent: #7ee4ae;
  --prize-glow: rgba(64, 205, 130, 0.14);
  --prize-number: rgba(126, 228, 174, 0.76);
  --prize-amount: #fcfbf9;
  --prize-tier-text: rgba(247, 241, 225, 0.84);
  --prize-tier-border: rgba(123, 227, 172, 0.34);
  --prize-tier-bg: rgba(5, 24, 14, 0.72);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px 6px 6px 16px;
  overflow: hidden;
  border: 1px solid var(--prize-border);
  border-radius: 6px;
  background:
    radial-gradient(circle at 48% -8%, var(--prize-highlight), transparent 58%),
    linear-gradient(145deg, var(--prize-top), var(--prize-bottom) 78%);
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.16), inset 0 -8px 16px rgba(0, 0, 0, 0.16), 0 0 14px var(--prize-glow), 0 9px 19px rgba(0, 0, 0, 0.52);
  transform: translate(-50%, -50%) rotate(var(--prize-angle)) translateY(calc(-1 * var(--orbit-radius))) rotate(var(--prize-angle-neg));
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.energy-draw-prize::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--prize-accent);
  box-shadow: 0 0 11px var(--prize-accent);
}

.energy-draw-prize::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(252, 251, 249, 0.4), transparent);
  transform: skewX(-18deg) translateX(-250%);
  animation: energyPrizeShine 4.2s ease-in-out infinite;
  animation-delay: var(--prize-delay);
}

.energy-draw-prize em {
  position: absolute;
  left: 5px;
  top: 6px;
  color: var(--prize-number);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.energy-draw-prize-tier {
  position: absolute;
  right: 5px;
  top: 5px;
  min-width: 21px;
  padding: 2px 3px;
  color: var(--prize-tier-text);
  border: 1px solid var(--prize-tier-border);
  border-radius: 3px;
  background: var(--prize-tier-bg);
  font-size: 6px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.energy-draw-prize strong {
  display: block;
  min-width: 0;
  color: var(--prize-amount);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.energy-draw-prize.rank-1 {
  --prize-top: rgba(15, 71, 41, 0.99);
  --prize-bottom: rgba(6, 27, 16, 0.99);
  --prize-highlight: rgba(105, 215, 156, 0.2);
  --prize-border: rgba(105, 207, 153, 0.48);
  --prize-accent: #66d69a;
  --prize-glow: rgba(77, 192, 131, 0.12);
}

.energy-draw-prize.rank-2 {
  --prize-top: rgba(19, 88, 51, 0.99);
  --prize-bottom: rgba(8, 35, 21, 0.99);
  --prize-highlight: rgba(122, 227, 171, 0.24);
  --prize-border: rgba(116, 223, 166, 0.56);
  --prize-accent: #77e2a9;
  --prize-glow: rgba(92, 209, 147, 0.16);
}

.energy-draw-prize.rank-3 {
  --prize-top: rgba(22, 104, 60, 0.99);
  --prize-bottom: rgba(9, 42, 24, 0.99);
  --prize-highlight: rgba(131, 229, 177, 0.26);
  --prize-border: rgba(131, 229, 177, 0.6);
  --prize-accent: #83e5b1;
  --prize-glow: rgba(96, 221, 154, 0.18);
  --prize-number: rgba(169, 237, 201, 0.88);
}

.energy-draw-prize.rank-4 {
  --prize-top: rgba(30, 105, 65, 0.99);
  --prize-bottom: rgba(10, 43, 25, 0.99);
  --prize-highlight: rgba(176, 238, 205, 0.28);
  --prize-border: rgba(176, 238, 205, 0.66);
  --prize-accent: #b1eecd;
  --prize-glow: rgba(125, 227, 173, 0.2);
  --prize-tier-text: #f6f0e0;
}

.energy-draw-prize.rank-5 {
  --prize-top: rgba(49, 99, 72, 0.99);
  --prize-bottom: rgba(19, 37, 27, 0.99);
  --prize-highlight: rgba(151, 239, 174, 0.26);
  --prize-border: rgba(151, 239, 174, 0.62);
  --prize-accent: #97efae;
  --prize-glow: rgba(104, 221, 137, 0.2);
  --prize-number: rgba(188, 255, 205, 0.88);
  --prize-tier-text: #d9ffe3;
  --prize-tier-border: rgba(151, 239, 174, 0.42);
  --prize-tier-bg: rgba(11, 49, 27, 0.76);
}

.energy-draw-prize.rank-6 {
  --prize-top: rgba(112, 78, 24, 0.99);
  --prize-bottom: rgba(42, 29, 10, 0.99);
  --prize-highlight: rgba(255, 198, 109, 0.28);
  --prize-border: rgba(255, 198, 109, 0.66);
  --prize-accent: #ffc66d;
  --prize-glow: rgba(238, 163, 64, 0.22);
  --prize-number: rgba(255, 218, 154, 0.9);
  --prize-amount: #ffe6b7;
  --prize-tier-text: #ffedc9;
  --prize-tier-border: rgba(255, 198, 109, 0.48);
  --prize-tier-bg: rgba(70, 43, 8, 0.78);
}

.energy-draw-prize.rank-7 {
  --prize-top: rgba(145, 72, 17, 0.99);
  --prize-bottom: rgba(57, 26, 7, 0.99);
  --prize-highlight: rgba(255, 176, 77, 0.32);
  --prize-border: rgba(255, 176, 77, 0.76);
  --prize-accent: #ffad49;
  --prize-glow: rgba(255, 137, 41, 0.27);
  --prize-number: rgba(255, 206, 139, 0.94);
  --prize-amount: #ffe1ad;
  --prize-tier-text: #fff0d0;
  --prize-tier-border: rgba(255, 176, 77, 0.56);
  --prize-tier-bg: rgba(81, 35, 5, 0.8);
}

.energy-draw-prize.rank-8 {
  --prize-top: rgba(166, 111, 17, 0.99);
  --prize-bottom: rgba(66, 37, 5, 0.99);
  --prize-highlight: rgba(255, 237, 177, 0.4);
  --prize-border: rgba(255, 224, 127, 0.92);
  --prize-accent: #ffe27f;
  --prize-glow: rgba(255, 193, 66, 0.38);
  --prize-number: rgba(255, 240, 191, 0.96);
  --prize-amount: #fff0c7;
  --prize-tier-text: #fff4ce;
  --prize-tier-border: rgba(255, 224, 127, 0.68);
  --prize-tier-bg: rgba(86, 50, 3, 0.84);
}

.energy-draw-prize.tone-jackpot strong {
  font-size: 11px;
  text-shadow: 0 0 12px rgba(255, 224, 127, 0.45);
}

.energy-draw-prize small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(252, 251, 249, 0.52);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.energy-draw-prize.is-selected {
  color: #3b2508;
  border-color: #fff5ce;
  background: linear-gradient(135deg, #fff7d8, #ffc868 62%, #e88d24);
  box-shadow: 0 0 0 2px rgba(255, 213, 112, 0.24), 0 0 34px rgba(242, 159, 61, 0.78);
  animation: energyPrizeWinner 620ms ease-in-out infinite alternate;
}

.energy-draw-prize.is-selected em,
.energy-draw-prize.is-selected strong,
.energy-draw-prize.is-selected small {
  color: #3b2508;
}

.energy-draw-prize.is-selected .energy-draw-prize-tier {
  color: #4b2a04;
  border-color: rgba(90, 49, 4, 0.32);
  background: rgba(255, 247, 215, 0.46);
}

.energy-draw-scan {
  position: absolute;
  z-index: 3;
  inset: 1%;
  opacity: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 318deg, rgba(108, 224, 162, 0.08) 328deg, #cff5e1 350deg, transparent 360deg);
  filter: drop-shadow(0 0 8px rgba(64, 205, 130, 0.88));
  mask: radial-gradient(circle, transparent 0 85%, #000 86% 89%, transparent 90%);
  pointer-events: none;
}

.energy-draw-core {
  position: relative;
  z-index: 5;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 0;
  font: inherit;
  text-align: center;
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(200, 243, 220, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 245, 204, 0.96), rgba(255, 190, 88, 0.34) 14%, rgba(44, 191, 113, 0.38) 28%, rgba(9, 45, 26, 0.96) 52%, #05150c 76%);
  box-shadow:
    0 0 0 7px rgba(6, 26, 15, 0.92),
    0 0 0 9px rgba(108, 224, 162, 0.2),
    inset 0 0 22px rgba(64, 205, 130, 0.24),
    0 0 42px rgba(38, 179, 104, 0.4);
  transition: filter 160ms ease, transform 160ms ease;
}

.energy-draw-core::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(140, 231, 182, 0.5);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(38, 179, 104, 0.22);
}

.energy-draw-core::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.82;
  background: conic-gradient(from 0deg, transparent 0 12%, #69dfa0 18%, transparent 24% 48%, #ffc866 54%, transparent 61% 100%);
  filter: drop-shadow(0 0 7px rgba(38, 179, 104, 0.5));
  mask: radial-gradient(circle, transparent 0 76%, #000 78% 83%, transparent 85% 100%);
  animation: energyCoreOrbit 4.8s linear infinite;
}

.energy-draw.has-result .energy-draw-core::after {
  background: conic-gradient(from 0deg, transparent 0 8%, #ffd77d 15%, transparent 23% 44%, #fff3c8 51%, transparent 59% 78%, #f29f3d 86%, transparent 94% 100%);
  filter: drop-shadow(0 0 10px rgba(242, 159, 61, 0.72));
}

.energy-draw-core > span,
.energy-draw-core > strong,
.energy-draw-core > small {
  position: relative;
  z-index: 2;
}

.energy-draw:not(.is-spinning) .energy-draw-core::before {
  animation: energyCoreReadyPulse 1.8s ease-out infinite;
}

.energy-draw-core:hover:not(:disabled) {
  filter: brightness(1.14);
}

.energy-draw-core:active:not(:disabled) {
  transform: scale(0.96);
}

.energy-draw-core:disabled {
  cursor: wait;
}

.energy-draw-core > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--energy-lime);
  filter: drop-shadow(0 0 9px rgba(64, 205, 130, 0.9));
}

.energy-draw-core svg {
  width: 36px;
  height: 36px;
  fill: rgba(64, 205, 130, 0.16);
  stroke-width: 2;
}

.energy-draw-core strong {
  color: #fcfbf9;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}

.energy-draw-hud {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 122px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.energy-draw-hud > span {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  color: rgba(249, 244, 232, 0.82);
  border: 1px solid rgba(108, 224, 162, 0.24);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(14, 65, 38, 0.76), rgba(6, 27, 16, 0.86));
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.08), 0 7px 16px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.energy-draw-hud svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #6ee0a3;
}

.energy-draw-hud strong {
  color: #ffd995;
  font-size: 17px;
}

.energy-draw-hud .energy-draw-chance-hud > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  line-height: 1;
}

.energy-draw-hud .energy-draw-chance-hud b {
  color: rgba(249, 244, 232, 0.82);
  font-size: 11px;
}

.energy-draw-hud .energy-draw-chance-hud small {
  color: rgba(136, 221, 176, 0.78);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.energy-draw-core small {
  color: rgba(178, 239, 206, 0.74);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.energy-draw.is-spinning .energy-draw-scan {
  opacity: 1;
  animation: energyScanRotate 540ms linear infinite;
}

.energy-draw.is-spinning .energy-draw-core {
  animation: energyCoreCharge 430ms ease-in-out infinite alternate;
}

.energy-draw.is-spinning .energy-draw-prize {
  animation: energyPrizeScan 560ms ease-in-out infinite;
  animation-delay: var(--prize-delay);
}

.energy-draw-console {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.energy-draw-result {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(238, 255, 198, 0.18);
  border-left: 3px solid var(--energy-lime);
  border-radius: 5px;
  background: rgba(3, 6, 4, 0.82);
  box-shadow: inset 0 0 18px rgba(202, 255, 34, 0.04);
}

.energy-draw-result span,
.energy-draw-result small {
  color: rgba(252, 251, 249, 0.52);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

.energy-draw-result span {
  grid-column: 1;
  grid-row: 1;
}

.energy-draw-result small {
  grid-column: 1;
  grid-row: 2;
}

.energy-draw-result strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 0 12px;
  overflow: hidden;
  color: #ffd995;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.energy-draw-result.is-winner strong {
  font-size: 27px;
}

.energy-draw-result.is-winner {
  border-color: rgba(92, 218, 151, 0.58);
  background: linear-gradient(135deg, rgba(18, 83, 48, 0.88), rgba(6, 26, 15, 0.94));
  box-shadow: inset 0 0 22px rgba(64, 205, 130, 0.1), 0 0 22px rgba(38, 179, 104, 0.14);
}

.energy-draw-button {
  min-width: 0;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: #092a18;
  border: 1px solid #caf4de;
  border-radius: 5px;
  background: linear-gradient(135deg, #caf4de, #3cc67c 55%, #1d884f);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(252, 251, 249, 0.78), 0 0 18px rgba(38, 179, 104, 0.24);
  cursor: pointer;
}

.energy-draw-button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.energy-draw-button:active:not(:disabled) {
  transform: translateY(1px);
}

.energy-draw-button:disabled {
  cursor: wait;
  filter: saturate(0.66);
}

.energy-draw-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: rgba(15, 22, 7, 0.12);
  stroke-width: 2.4;
}

.energy-draw-button span {
  min-width: 0;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
}

.energy-draw-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(252, 251, 249, 0.48);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.energy-draw-footer span {
  padding: 3px 6px;
  border: 1px solid rgba(108, 224, 162, 0.12);
  border-radius: 3px;
  background: rgba(5, 24, 14, 0.5);
}

.energy-draw-footer b {
  color: var(--energy-lime);
}

@keyframes energyScanRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes energyCoreCharge {
  from {
    filter: brightness(0.96);
    transform: scale(0.98);
  }
  to {
    filter: brightness(1.24);
    transform: scale(1.04);
  }
}

@keyframes energyCoreOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes energyBurstRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes energyParticlesFloat {
  from {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes energyCoreReadyPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes energyPrizeShine {
  0%, 58% {
    transform: skewX(-18deg) translateX(-250%);
  }
  76%, 100% {
    transform: skewX(-18deg) translateX(720%);
  }
}

@keyframes energyPrizeScan {
  0%, 58%, 100% {
    border-color: rgba(174, 238, 204, 0.3);
    filter: brightness(0.82);
  }
  28% {
    border-color: var(--energy-lime);
    filter: brightness(1.42);
    box-shadow: 0 0 18px rgba(64, 205, 130, 0.48);
  }
}

@keyframes energyPrizeWinner {
  from { transform: translate(-50%, -50%) rotate(var(--prize-angle)) translateY(calc(-1 * var(--orbit-radius))) rotate(var(--prize-angle-neg)) scale(1); }
  to { transform: translate(-50%, -50%) rotate(var(--prize-angle)) translateY(calc(-1 * var(--orbit-radius))) rotate(var(--prize-angle-neg)) scale(1.08); }
}

@media (max-width: 390px) {
  .energy-draw {
    padding-inline: 10px;
  }

  .energy-draw-heading,
  .energy-draw-console {
    left: 10px;
    right: 10px;
  }

  .energy-draw-hud {
    left: 10px;
    right: 10px;
  }

  .energy-draw-prize {
    width: 74px;
    min-height: 45px;
    padding-inline: 14px 4px;
  }

  .energy-draw-prize strong {
    font-size: 9px;
  }
}

/* App-wide fixed navigation: option 3 visual direction */
.bottom-nav {
  gap: 5px;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(90, 220, 151, 0.32);
  background:
    linear-gradient(180deg, rgba(9, 41, 24, 0.96), rgba(4, 19, 11, 0.99)),
    radial-gradient(circle at 50% -25%, rgba(83, 218, 146, 0.2), transparent 62%);
  box-shadow:
    0 -16px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(252, 251, 249, 0.07);
}

.bottom-nav-item {
  height: 61px;
  gap: 1px;
  padding: 3px 2px 4px;
  border-color: color-mix(in srgb, var(--nav-a) 26%, rgba(252, 251, 249, 0.06));
  border-radius: 11px;
  color: rgba(222, 239, 230, 0.74);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-a) 17%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(14, 50, 31, 0.9), rgba(6, 28, 16, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.07),
    inset 0 -12px 17px rgba(0, 0, 0, 0.22);
}

.bottom-nav-item::after {
  inset: 1px;
  border-radius: 9px;
}

.bottom-nav-item.active {
  color: #fcfbf9;
  transform: none;
  border-color: color-mix(in srgb, var(--nav-a) 78%, #fcfbf9 12%);
  background:
    radial-gradient(circle at 50% 4%, color-mix(in srgb, var(--nav-a) 34%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(17, 70, 42, 0.99), rgba(8, 38, 22, 0.99));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--nav-glow) 90%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--nav-a) 12%, transparent),
    inset 0 1px 0 rgba(252, 251, 249, 0.13);
}

.bottom-nav-item.active::before {
  opacity: 1;
}

.bottom-nav-art {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: color-mix(in srgb, var(--nav-a) 28%, rgba(252, 251, 249, 0.06));
  background: rgba(4, 20, 11, 0.34);
  box-shadow:
    0 5px 11px rgba(0, 0, 0, 0.26),
    0 0 13px color-mix(in srgb, var(--nav-a) 24%, transparent);
}

.bottom-nav-art img {
  border-radius: 9px;
  object-fit: cover;
  object-position: center 47%;
  opacity: 0.86;
  filter: saturate(0.92) brightness(0.88);
}

.bottom-nav-item.active .bottom-nav-art {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nav-a) 68%, rgba(252, 251, 249, 0.18));
  box-shadow:
    0 5px 13px rgba(0, 0, 0, 0.28),
    0 0 19px var(--nav-glow),
    inset 0 0 0 1px rgba(252, 251, 249, 0.09);
}

.bottom-nav-item.active .bottom-nav-art img {
  opacity: 1;
  filter: saturate(1.22) brightness(1.12);
}

.bottom-nav-orbit {
  inset: -2px;
  border-radius: 11px;
}

.bottom-nav-item span:not(.bottom-nav-art):not(.bottom-nav-orbit) {
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.screen:has(.wc-page) > .topbar {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 62px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.screen:has(.wc-page) > .topbar .topbar-title {
  text-align: center;
}

.screen:has(.wc-page) > .topbar .topbar-title h1 {
  color: #fcfbf9;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.screen:has(.wc-page) > .topbar .topbar-title p {
  display: none;
}

.screen:has(.wc-page) > .topbar .icon-btn {
  width: 42px;
  height: 42px;
  border-color: rgba(66, 204, 130, 0.4);
  border-radius: 11px;
  color: #fbf9f3;
  background: rgba(8, 38, 22, 0.82);
}

@media (min-width: 760px) {
  .bottom-nav {
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-draw.is-spinning .energy-draw-scan,
  .energy-draw.is-spinning .energy-draw-core,
  .energy-draw.is-spinning .energy-draw-prize,
  .energy-draw-prize.is-selected {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

/* Wealth Fund v2: fixed-term plans with automatic maturity settlement. */
.wealth-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 20px;
  color: #faf7ef;
  background: #0c2f1c;
  border: 1px solid rgba(102, 222, 158, 0.24);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(4, 16, 10, 0.2);
}

.wealth-hero.wealth-balance-hero {
  display: block;
}

.wealth-hero-copy h1 {
  margin: 6px 0 4px;
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1.05;
}

.wealth-hero-copy p {
  margin: 0;
  color: rgba(249, 244, 232, 0.72);
  line-height: 1.5;
}

.wealth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66de9e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.wealth-kicker svg {
  width: 15px;
  height: 15px;
}

.wealth-balance-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(102, 222, 158, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.wealth-balance-strip > div {
  min-width: 0;
  padding: 12px;
  background: #113b25;
}

.wealth-balance-strip > div + div {
  border-left: 1px solid rgba(102, 222, 158, 0.14);
}

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

.wealth-balance-strip span {
  margin-bottom: 5px;
  color: rgba(249, 244, 232, 0.62);
  font-size: 10px;
}

.wealth-balance-strip strong {
  color: #fbf9f3;
  font-size: clamp(13px, 3.7vw, 18px);
  overflow-wrap: anywhere;
}

.wealth-loading,
.wealth-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  color: #f8f3e6;
  background: #0f3320;
  border: 1px solid rgba(102, 222, 158, 0.2);
  border-radius: 12px;
}

.wealth-loading svg {
  width: 18px;
  animation: spin 0.9s linear infinite;
}

.wealth-error {
  justify-content: space-between;
  color: #ffd8d8;
  border-color: rgba(255, 117, 117, 0.34);
}

.wealth-error button {
  padding: 7px 12px;
  color: #092717;
  font-weight: 900;
  background: #66de9e;
  border: 0;
  border-radius: 9px;
}

.wealth-plan-stack {
  display: grid;
  gap: 11px;
}

.wealth-plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  min-height: 198px;
  color: #faf7ef;
  background: #113c25;
  border: 1px solid rgba(102, 222, 158, 0.24);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(4, 16, 10, 0.16);
}

.wealth-plan.tone-2 { background: #16442b; }
.wealth-plan.tone-3 { background: #1b4a31; }
.wealth-plan.tone-4 { background: #1f5337; }
.wealth-plan.tone-5 { background: #245c3e; }

.wealth-plan.locked {
  filter: saturate(0.78);
}

.wealth-plan-main {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
  padding: 16px 14px 16px 18px;
}

.wealth-plan-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.wealth-plan-title h2 {
  margin: 0;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wealth-plan-vip,
.wealth-plan-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: #0a2b19;
  background: #66de9e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.wealth-plan-status {
  color: #d7f7e6;
  background: rgba(6, 31, 18, 0.58);
}

.wealth-plan-range {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fcfbf9;
}

.wealth-plan-range span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  color: #66de9e;
  background: rgba(6, 31, 18, 0.46);
  border-radius: 9px;
}

.wealth-plan-range svg {
  width: 16px;
}

.wealth-plan-range strong {
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}

.wealth-plan-metrics {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
  min-width: 0;
}

.wealth-plan-metric {
  display: flex;
  min-width: 0;
  min-height: 67px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(102, 222, 158, 0.54);
  border-radius: 13px;
}

.wealth-plan-metric-term {
  color: #fdfbf7;
  background: rgba(6, 31, 18, 0.25);
}

.wealth-plan-metric-profit {
  color: #0a2b19;
  background: #66de9e;
  border-color: rgba(247, 241, 227, 0.8);
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.24);
}

.wealth-plan-metric-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.wealth-plan-metric-icon svg {
  width: 19px;
  height: 19px;
  color: #66de9e;
}

.wealth-plan-metric-profit .wealth-plan-metric-icon svg {
  color: #0c3620;
}

.wealth-plan-metric-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
  line-height: 1;
}

.wealth-plan-metric-copy strong {
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 950;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.wealth-plan-metric-copy small {
  margin-top: 6px;
  color: rgba(248, 244, 232, 0.7);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wealth-plan-metric-profit .wealth-plan-metric-copy small {
  color: rgba(10, 43, 25, 0.78);
}

.wealth-plan-action {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 15px 12px;
  text-align: center;
  background: rgba(6, 31, 18, 0.5);
  border-left: 1px solid rgba(102, 222, 158, 0.2);
}

.wealth-progress-ring {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fcfbf9;
  background: #103622;
  border: 5px solid #66de9e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(102, 222, 158, 0.1);
}

.wealth-progress-ring span {
  font-size: 15px;
  font-weight: 900;
}

.wealth-plan-action small {
  color: rgba(249, 244, 232, 0.62);
  font-size: 9px;
}

.wealth-plan-action button {
  display: inline-flex;
  min-width: 78px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  color: #0b341e;
  font-size: 11px;
  font-weight: 900;
  background: #66de9e;
  border: 0;
  border-radius: 10px;
}

.wealth-plan-action button:disabled {
  color: rgba(249, 244, 232, 0.55);
  background: rgba(249, 244, 232, 0.12);
  cursor: not-allowed;
}

.wealth-plan-action button svg {
  width: 14px;
}

.wealth-orders-section {
  margin-top: 14px;
}

.wealth-orders-section .section-title {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.wealth-orders-section .section-title .section-subtitle {
  max-width: 100%;
  text-align: left;
  white-space: normal;
}

.wealth-order-list {
  display: grid;
  gap: 9px;
}

.wealth-order-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  color: #faf7ef;
  background: #0f3320;
  border: 1px solid rgba(102, 222, 158, 0.18);
  border-radius: 14px;
}

.wealth-order-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  color: #66de9e;
  background: rgba(102, 222, 158, 0.1);
  border-radius: 11px;
}

.wealth-order-icon svg {
  width: 19px;
}

.wealth-order-copy {
  min-width: 0;
  flex: 1;
}

.wealth-order-copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wealth-order-copy > div:first-child span {
  color: #66de9e;
  font-size: 10px;
  font-weight: 800;
}

.wealth-order-copy p,
.wealth-order-copy small {
  margin: 4px 0 0;
  color: rgba(249, 244, 232, 0.56);
  font-size: 10px;
}

.wealth-order-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.wealth-order-values span,
.wealth-order-values b {
  display: block;
}

.wealth-order-values span {
  color: rgba(249, 244, 232, 0.56);
  font-size: 9px;
}

.wealth-order-values b {
  margin-top: 2px;
  color: #fbf9f3;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.wealth-rules {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 14px;
  color: #f8f3e6;
  background: #0c2e1c;
  border: 1px solid rgba(102, 222, 158, 0.16);
  border-radius: 14px;
  margin-bottom: 72px;
}

.wealth-rules > span {
  color: #66de9e;
}

.wealth-rules svg {
  width: 21px;
}

.wealth-rules p {
  margin: 4px 0 0;
  color: rgba(249, 244, 232, 0.62);
  font-size: 11px;
  line-height: 1.5;
}

.wealth-purchase-layer {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
}

.wealth-purchase-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(3, 14, 8, 0.76);
  border: 0;
}

.wealth-purchase-card {
  position: relative;
  width: min(100%, 460px);
  padding: 18px;
  color: #faf7ef;
  background: #0d2e1c;
  border: 1px solid rgba(102, 222, 158, 0.28);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(2, 10, 6, 0.42);
}

.wealth-purchase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wealth-purchase-head span {
  color: #66de9e;
  font-size: 10px;
  font-weight: 900;
}

.wealth-purchase-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.wealth-purchase-head > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #f8f3e6;
  background: rgba(249, 244, 232, 0.08);
  border: 0;
  border-radius: 10px;
}

.wealth-purchase-range,
.wealth-purchase-summary {
  margin-top: 14px;
  padding: 12px;
  background: #123b25;
  border: 1px solid rgba(102, 222, 158, 0.14);
  border-radius: 12px;
}

.wealth-purchase-range span,
.wealth-purchase-range strong {
  display: block;
}

.wealth-purchase-range span {
  color: rgba(249, 244, 232, 0.58);
  font-size: 10px;
}

.wealth-purchase-range strong {
  margin-top: 4px;
  font-size: 17px;
}

.wealth-purchase-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: rgba(249, 244, 232, 0.74);
  font-size: 11px;
  font-weight: 800;
}

.wealth-purchase-field > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #072214;
  border: 1px solid rgba(102, 222, 158, 0.28);
  border-radius: 12px;
}

.wealth-purchase-field svg {
  width: 18px;
  color: #66de9e;
}

.wealth-purchase-field input {
  width: 100%;
  min-height: 48px;
  color: #fcfbf9;
  font-size: 19px;
  font-weight: 900;
  background: transparent;
  border: 0;
  outline: 0;
}

.wealth-purchase-shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wealth-purchase-shortcuts button {
  flex: 1;
  min-height: 34px;
  color: #c9f3dd;
  background: #123b25;
  border: 1px solid rgba(102, 222, 158, 0.18);
  border-radius: 9px;
}

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

.wealth-purchase-summary span,
.wealth-purchase-summary strong {
  display: block;
}

.wealth-purchase-summary span {
  color: rgba(249, 244, 232, 0.54);
  font-size: 9px;
}

.wealth-purchase-summary strong {
  margin-top: 4px;
  color: #fcfbf9;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wealth-purchase-card > p {
  display: flex;
  gap: 8px;
  margin: 13px 0;
  color: rgba(249, 244, 232, 0.62);
  font-size: 10px;
  line-height: 1.45;
}

.wealth-purchase-card > p svg {
  width: 16px;
  flex: 0 0 auto;
  color: #66de9e;
}

.wealth-purchase-confirm {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0b2d1b;
  font-weight: 900;
  background: #66de9e;
  border: 0;
  border-radius: 12px;
}

.wealth-purchase-confirm:disabled {
  opacity: 0.7;
}

.wealth-purchase-confirm svg {
  width: 18px;
}

@media (min-width: 760px) {
  .wealth-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(390px, 1.15fr);
    align-items: center;
  }

  .wealth-plan-stack {
    /*
     * The app shell remains 460px wide on tablets and desktop. A viewport
     * breakpoint therefore cannot safely turn these cards into two columns.
     */
    grid-template-columns: minmax(0, 1fr);
  }

  .wealth-plan-stack .wealth-plan:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .wealth-purchase-layer {
    align-items: center;
  }
}

@media (max-width: 430px) {
  .wealth-hero {
    padding: 16px;
  }

  .wealth-balance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wealth-balance-strip > div + div {
    border-left: 1px solid rgba(102, 222, 158, 0.14);
  }

  .wealth-plan {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .wealth-plan-main {
    padding-left: 14px;
  }

  .wealth-order-values,
  .wealth-purchase-summary {
    grid-template-columns: 1fr;
  }
}

.screen:has(.wealth-plan-stack) ~ .floating-daily-chest,
.screen:has(.wealth-plan-stack) ~ .floating-inbox {
  display: none !important;
}

@media (min-width: 768px) and (pointer: fine) {
  html .quick-link-image-tile .quick-link-label,
  html .bottom-nav,
  html .floating-daily-chest,
  html .floating-inbox-button {
    backdrop-filter: none !important;
  }
}

.lucky-result {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: #ffe9a4;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(246, 203, 93, 0.42);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(20, 55, 36, 0.08);
}

.lucky-winner-feed {
  width: min(100%, 420px);
  min-height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 12px;
  color: #fff3b0;
  background: linear-gradient(180deg, rgba(80, 45, 11, 0.74), rgba(11, 8, 5, 0.68));
  border: 1px solid rgba(255, 213, 91, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(252, 251, 249, 0.06), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.lucky-winner-line {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.68);
}

.lucky-winner-feed.is-rolling .lucky-winner-line {
  animation: lucky-winner-rise 3s ease-in-out both;
}

.lucky-winner-line span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lucky-winner-spark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: #ffe477;
}

.lucky-winner-spark svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

@keyframes lucky-winner-rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  18%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.lucky-prize-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 9, 8, 0.58);
}

.lucky-prize-dialog {
  width: min(78vw, 276px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 235, 151, 0.42), transparent 42%),
    linear-gradient(160deg, #2d1707 0%, #5a310c 46%, #1a0d04 100%);
  border: 1px solid rgba(255, 214, 103, 0.72);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(252, 251, 249, 0.08);
}

.lucky-prize-amount {
  width: 100%;
  padding: 8px 10px;
  color: #fff4b7;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 224, 128, 0.34);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.76);
}

.lucky-prize-image {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.34));
}

.lucky-prize-message {
  color: #fff2ad;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
}

.lucky-prize-confirm {
  min-width: 112px;
  min-height: 38px;
  padding: 0 18px;
  color: #3a1b04;
  background: linear-gradient(180deg, #fff2ac 0%, #f0b72e 100%);
  border: 1px solid rgba(255, 239, 170, 0.82);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.invite-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  color: #155533;
  background: rgba(252, 251, 249, 0.88);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.invite-strip button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #fcfbf9;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.invite-strip svg {
  width: 15px;
  height: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.user-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  min-width: 0;
  padding: 12px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.stat strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.stat-button {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stat-button.active {
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.stat-button.active span,
.stat-button.active strong {
  color: #fcfbf9;
}

.quick-hub {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quick-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.quick-link {
  --quick-a: #61de9b;
  --quick-b: #1d8a50;
  --quick-c: #fff0a6;
  --quick-glow: rgba(97, 222, 155, 0.42);
  appearance: none;
  min-width: 0;
  height: 92px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px 5px 7px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--quick-a) 20%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(18, 59, 37, 0.96), rgba(7, 26, 16, 0.98));
  border: 1px solid color-mix(in srgb, var(--quick-a) 32%, rgba(252, 251, 249, 0.08));
  border-radius: 8px;
  color: rgba(252, 250, 244, 0.92);
  font-size: 11px;
  font-family: inherit;
  font-weight: 900;
  line-height: 1.15;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(252, 251, 249, 0.08),
    inset 0 0 22px rgba(97, 222, 155, 0.06);
  cursor: pointer;
}

.quick-link-image-tile {
  height: 96px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.quick-link-image-tile::before,
.quick-link-image-tile::after {
  content: none;
}

.quick-link-compact {
  height: 96px;
}

.quick-link-featured.quick-link-image-tile {
  height: 134px;
}

.quick-link-featured.quick-link-image-tile .quick-link-art-image {
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.28),
    0 0 24px color-mix(in srgb, var(--quick-a) 50%, transparent);
}

.quick-link-image-tile .quick-link-label {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  z-index: 3;
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px 4px;
  overflow: hidden;
  color: #fcfbf9;
  background:
    linear-gradient(180deg, rgba(10, 43, 25, 0.74), rgba(5, 23, 13, 0.96));
  border-top: 1px solid rgba(131, 229, 177, 0.34);
  border-radius: 0 0 7px 7px;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.05;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 6px rgba(117, 226, 168, 0.72),
    0 0 12px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 0.25px rgba(5, 26, 15, 0.72);
}

.quick-link-featured.quick-link-image-tile .quick-link-label {
  left: 1px;
  right: 1px;
  bottom: 1px;
  min-height: 34px;
  padding: 4px 8px 5px;
  font-size: 15.5px;
  line-height: 1.02;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(117, 226, 168, 0.82),
    0 0 14px rgba(0, 0, 0, 0.78);
}

.quick-link::before,
.quick-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.quick-link::before {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--quick-a) 16%, transparent), transparent 44%),
    linear-gradient(315deg, color-mix(in srgb, var(--quick-c) 12%, transparent), transparent 46%);
  opacity: 0.9;
}

.quick-link::after {
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(252, 251, 249, 0.04);
  box-shadow:
    inset 0 0 14px color-mix(in srgb, var(--quick-a) 14%, transparent),
    inset 0 -12px 18px rgba(0, 0, 0, 0.18);
}

.quick-link-fund { --quick-a: #ffe37a; --quick-b: #cc8b24; --quick-c: #6ee0a3; --quick-glow: rgba(255, 219, 90, 0.45); }
.quick-link-points { --quick-a: #81e4af; --quick-b: #219c5a; --quick-c: #ffe078; --quick-glow: rgba(124, 227, 172, 0.42); }
.quick-link-security { --quick-a: #94e8bb; --quick-b: #2db56c; --quick-c: #fff5a6; --quick-glow: rgba(148, 232, 187, 0.4); }
.quick-link-charity { --quick-a: #ff9cc8; --quick-b: #d84784; --quick-c: #95e9bc; --quick-glow: rgba(255, 132, 190, 0.38); }
.quick-link-job { --quick-a: #ffc66f; --quick-b: #be6d20; --quick-c: #7de4ad; --quick-glow: rgba(255, 187, 90, 0.4); }
.quick-link-lucky { --quick-a: #fff06e; --quick-b: #d89a1c; --quick-c: #ff77b4; --quick-glow: rgba(255, 226, 74, 0.48); }
.quick-link-vip { --quick-a: #ffe681; --quick-b: #c99224; --quick-c: #89e6b4; --quick-glow: rgba(255, 216, 92, 0.48); }
.quick-link-wheel { --quick-a: #79e3aa; --quick-b: #1b824b; --quick-c: #ffe27f; --quick-glow: rgba(97, 222, 155, 0.48); }
.quick-link-company { --quick-a: #a8ecc8; --quick-b: #238953; --quick-c: #ffe695; --quick-glow: rgba(168, 236, 200, 0.38); }
.quick-link-guide { --quick-a: #b4ff8c; --quick-b: #5ba944; --quick-c: #80e4af; --quick-glow: rgba(180, 255, 140, 0.36); }
.quick-link-team { --quick-a: #abedca; --quick-b: #5cd092; --quick-c: #94e8bb; --quick-glow: rgba(171, 237, 202, 0.38); }
.quick-link-activity { --quick-a: #ffb871; --quick-b: #d46824; --quick-c: #8ee7b8; --quick-glow: rgba(255, 174, 100, 0.38); }
.quick-link-flash { --quick-a: #8be6b5; --quick-b: #219a59; --quick-c: #fff05c; --quick-glow: rgba(119, 226, 169, 0.46); }
.quick-link-app { --quick-a: #81e4af; --quick-b: #2eb26c; --quick-c: #d8ff84; --quick-glow: rgba(129, 228, 175, 0.42); }
.quick-link-home { --quick-a: #ffdd82; --quick-b: #b77b21; --quick-c: #90e7b9; --quick-glow: rgba(255, 209, 112, 0.4); }

.quick-link:hover {
  border-color: color-mix(in srgb, var(--quick-a) 54%, rgba(252, 251, 249, 0.14));
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.26),
    0 0 18px var(--quick-glow),
    inset 0 1px 0 rgba(252, 251, 249, 0.1);
}

.quick-link-label {
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: rgba(253, 252, 248, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quick-link-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.quick-link-art {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(252, 251, 249, 0.18), transparent 34%),
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--quick-a) 44%, transparent), transparent 54%),
    linear-gradient(160deg, rgba(13, 46, 28, 0.98), rgba(5, 21, 12, 0.98));
  border: 1px solid color-mix(in srgb, var(--quick-a) 46%, rgba(252, 251, 249, 0.08));
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 0 16px var(--quick-glow),
    inset 0 0 0 1px rgba(252, 251, 249, 0.07);
}

.quick-link-art-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.22),
    0 0 14px color-mix(in srgb, var(--quick-a) 36%, transparent);
}

.quick-link-art-image img {
  display: block;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 8px;
  transform: translateY(-7%);
}

.quick-link-featured.quick-link-image-tile .quick-link-art-image img {
  height: 114%;
  object-position: center 20%;
  transform: translateY(-5%);
}

.quick-link-wheel .quick-link-art-image img {
  height: 170% !important;
  object-position: center 40% !important;
  transform: translateY(-8%) !important;
}

@media (min-width: 768px) and (pointer: fine) {
  .energy-draw-burst {
    animation-duration: 30s;
  }

  .energy-draw-particles {
    animation-duration: 5.2s;
  }

  .energy-draw-prize::after {
    animation-duration: 7.5s;
  }

  .quick-link-image-tile .quick-link-label,
  .bottom-nav,
  .floating-daily-chest,
  .floating-inbox-button {
    backdrop-filter: none !important;
  }
}

.quick-link-art-image::before,
.quick-link-art-image::after,
.quick-link-art-image .quick-link-art-orbit {
  display: none;
}

.quick-link-art::before,
.quick-link-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.quick-link-art::before {
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--quick-c) 42%, transparent);
  border-radius: 6px;
  opacity: 0.75;
}

.quick-link-art::after {
  left: 8px;
  right: 8px;
  top: 7px;
  height: 1px;
  background: rgba(252, 251, 249, 0.72);
  box-shadow: 0 0 8px var(--quick-glow);
}

.quick-link-art-orbit {
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  background:
    conic-gradient(from 35deg, transparent 0 16%, color-mix(in srgb, var(--quick-a) 82%, transparent) 18% 24%, transparent 26% 58%, color-mix(in srgb, var(--quick-c) 70%, transparent) 61% 67%, transparent 70%);
  opacity: 0.5;
  filter: blur(0.2px);
}

.quick-link-art svg {
  width: 21px;
  height: 21px;
  position: relative;
  z-index: 1;
  color: #fdfcf8;
  stroke-width: 2.45;
  filter:
    drop-shadow(0 0 5px color-mix(in srgb, var(--quick-a) 80%, transparent))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}

.quick-link svg {
  width: 22px;
  height: 22px;
  color: #fcfbf9;
}

.quick-link-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  min-width: 24px;
  padding: 3px 5px;
  color: #082716;
  background: linear-gradient(90deg, var(--quick-a), var(--quick-c));
  border: 1px solid rgba(252, 251, 249, 0.58);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 14px var(--quick-glow);
}

.quick-link:active {
  transform: translateY(1px) scale(0.985);
}

.quick-link.company-home-link {
  grid-column: auto;
}

.anti-fraud-gallery,
.trial-intro-gallery,
.charity-gallery {
  display: grid;
  gap: 12px;
}

.anti-fraud-image,
.trial-intro-image,
.charity-image {
  margin: 0;
  overflow: hidden;
  background: #0e4226;
  border: 1px solid rgba(29, 136, 79, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(10, 47, 27, 0.12);
}

.anti-fraud-image img,
.trial-intro-image img,
.charity-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.charity-page {
  display: grid;
  gap: 12px;
}

.charity-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #fcfbf9;
  background:
    radial-gradient(circle at 12% 10%, rgba(252, 251, 249, 0.26), transparent 28%),
    linear-gradient(135deg, #16693d, #1d884f 58%, #1a6b40);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 82, 48, 0.18);
}

.charity-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.charity-hero svg {
  width: 20px;
  height: 20px;
}

.charity-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.charity-hero p {
  margin: 0;
  max-width: 34em;
  color: rgba(252, 251, 249, 0.84);
  line-height: 1.55;
}

.charity-image {
  position: relative;
  width: 100%;
  padding: 0;
  cursor: pointer;
}

.charity-image span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #1a7a47;
  background: rgba(252, 251, 249, 0.92);
  border: 1px solid rgba(29, 136, 79, 0.2);
  border-radius: 999px;
}

.job-application-page {
  display: grid;
  gap: 12px;
}

.job-application-landing {
  min-height: calc(100vh - 128px);
  grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr);
}

.job-entry-card,
.job-hero {
  --job-bg: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #092315;
  background-image:
    linear-gradient(90deg, rgba(253, 252, 248, 0.96) 0%, rgba(253, 252, 248, 0.82) 46%, rgba(253, 252, 248, 0.38) 100%),
    var(--job-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(29, 136, 79, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(11, 52, 30, 0.1);
}

.job-entry-card::before,
.job-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(30, 131, 77, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(252, 251, 249, 0.06), rgba(14, 68, 39, 0.08));
}

.job-entry-card {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 18px;
  text-decoration: none;
}

.job-entry-card span,
.job-hero span {
  color: #176a3e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.job-entry-card strong {
  max-width: 22em;
  color: #082616;
  font-size: 22px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.job-entry-card em {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  color: #fcfbf9;
  background: var(--primary);
  border-radius: 999px;
  font-style: normal;
}

.job-entry-card svg,
.job-hero svg {
  width: 18px;
  height: 18px;
}

.job-hero {
  min-height: 226px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 20px;
}

.job-hero h2 {
  margin: 0;
  max-width: 12em;
  color: #082516;
  font-size: 28px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.job-hero p {
  max-width: 35em;
  margin: 0;
  color: #2b543e;
  font-size: 13px;
  line-height: 1.55;
}

.job-intro-copy,
.job-action-panel,
.job-progress-panel,
.job-salary-history,
.job-empty-state {
  padding: 14px;
  background: rgba(252, 251, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-intro-copy {
  display: grid;
  gap: 8px;
  color: #274937;
  font-size: 13px;
  line-height: 1.55;
}

.job-intro-copy p {
  margin: 0;
}

.job-position-list {
  display: grid;
  gap: 10px;
}

.job-position-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-position-card b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(135deg, #1b7e49, #1d884f);
  border-radius: 999px;
  font-size: 14px;
}

.job-position-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.job-position-card p,
.job-position-card span {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.job-position-card span {
  color: #156339;
  font-weight: 900;
}

.job-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.job-status-grid div {
  min-width: 0;
  padding: 12px;
  background: #fbf8f2;
  border: 1px solid rgba(29, 136, 79, 0.16);
  border-radius: 8px;
}

.job-status-grid span,
.job-action-panel span,
.job-progress-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.job-status-grid strong,
.job-action-panel strong,
.job-progress-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.job-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-action-panel div {
  min-width: 0;
}

.job-action-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-btn.compact {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  white-space: nowrap;
}

.job-progress-panel {
  display: grid;
  gap: 12px;
}

.job-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.job-progress-head em {
  color: #156339;
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.job-progress-track {
  height: 10px;
  overflow: hidden;
  background: #deede5;
  border-radius: 999px;
}

.job-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a7c48, #2aa764, #f2c94c);
  border-radius: inherit;
}

.job-requirements {
  display: grid;
  gap: 8px;
}

.job-requirements div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-requirements div.met {
  background: #effaf3;
  border-color: rgba(34, 136, 82, 0.24);
}

.job-requirements span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.job-requirements strong {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.job-promote-btn {
  width: 100%;
}

.job-salary-history {
  display: grid;
  gap: 8px;
}

.job-salary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: #fcfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-salary-row span,
.job-salary-row strong,
.job-salary-row em,
.job-salary-row b,
.job-salary-row i {
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-salary-row strong,
.job-salary-row em {
  display: block;
}

.job-salary-row em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.job-salary-row b {
  color: var(--ink);
  font-size: 14px;
}

.job-salary-row i {
  padding: 4px 8px;
  color: #9a6412;
  background: #fff4dc;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.job-salary-row i.paid {
  color: #197142;
  background: #f7f3e8;
}

.job-empty-state {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 116px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.job-empty-state strong {
  color: var(--ink);
  font-size: 15px;
}

.job-empty-state.compact {
  min-height: 58px;
}

.support-activity-feed {
  min-height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 0 12px;
  color: #0d3c23;
  background:
    linear-gradient(135deg, rgba(29, 136, 79, 0.13), rgba(37, 167, 98, 0.12)),
    var(--surface);
  border: 1px solid rgba(29, 136, 79, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 55, 36, 0.05);
}

.support-activity-line {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.support-activity-feed.is-rolling .support-activity-line {
  animation: support-activity-rise 3s ease-in-out both;
}

.support-activity-line span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-activity-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(135deg, #1d884f, #25a762);
  border-radius: 8px;
}

.support-activity-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}

@keyframes support-activity-rise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  18%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

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

.support-contact-card {
  min-width: 0;
  min-height: 76px;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 34px 12px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 55, 36, 0.05);
}

button.support-contact-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.support-contact-card:disabled {
  cursor: progress;
  opacity: 0.76;
}

.support-contact-card.is-loading .support-contact-icon svg,
.support-contact-card.is-loading > svg {
  animation: spin 0.9s linear infinite;
}

.support-contact-card.is-disabled {
  opacity: 0.62;
}

.support-contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(135deg, #1d884f, #25a762);
  border-radius: 8px;
  overflow: hidden;
}

.support-contact-icon svg {
  width: 22px;
  height: 22px;
}

.support-contact-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.support-contact-main {
  min-width: 0;
}

.support-contact-main strong,
.support-contact-main small {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.support-contact-main strong {
  font-size: 14px;
}

.support-contact-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.support-contact-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.support-contact-action svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 380px) {
  .support-contact-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.user-dashboard-screen {
  position: relative;
  padding: 12px 14px calc(86px + env(safe-area-inset-bottom));
  color: #091f13;
  background:
    linear-gradient(158deg, rgba(237, 255, 224, 0.9) 0%, rgba(155, 234, 192, 0.82) 38%, rgba(198, 243, 219, 0.86) 68%, rgba(255, 197, 237, 0.88) 100%),
    #f6efde;
}

.user-dashboard-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(252, 251, 249, 0.28), transparent 38%, rgba(252, 251, 249, 0.24)),
    repeating-linear-gradient(0deg, rgba(252, 251, 249, 0.14) 0 1px, transparent 1px 4px);
}

.user-dashboard-screen > * {
  position: relative;
  z-index: 1;
}

.user-wallet-link {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  color: #2dd27a;
  font-size: 13px;
  font-weight: 800;
}

.user-profile-head {
  min-height: 102px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding-top: 12px;
  text-align: center;
}

.user-profile-head strong {
  margin-top: 2px;
  color: #04140b;
  font-size: 18px;
  line-height: 1.1;
}

.user-profile-head span {
  color: rgba(9, 31, 19, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.user-avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(145deg, #1d894f, #2abc6e);
  border: 3px solid rgba(252, 251, 249, 0.86);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(49, 120, 82, 0.18);
}

.user-avatar svg {
  width: 23px;
  height: 23px;
}

.user-balance-block {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 110px;
  padding: 2px 4px 20px;
}

.user-balance-block span {
  color: #04140b;
  font-size: 14px;
  font-weight: 800;
}

.user-balance-block strong {
  color: #61dd9b;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
}

.user-balance-block button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 10px;
  color: #145c36;
  background: rgba(252, 251, 249, 0.64);
  border: 1px solid rgba(252, 251, 249, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(80, 137, 107, 0.1);
}

.user-balance-block button svg {
  width: 14px;
  height: 14px;
}

.credit-score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  margin: -8px 0 14px;
  padding: 13px 14px;
  color: #0c351f;
  background: rgba(252, 251, 249, 0.58);
  border: 1px solid rgba(252, 251, 249, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(74, 118, 95, 0.1);
  backdrop-filter: blur(10px);
}

.credit-score-card::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(9, 31, 19, 0.42);
  border-right: 2px solid rgba(9, 31, 19, 0.42);
  transform: rotate(45deg);
}

.credit-score-card span {
  font-size: 14px;
  font-weight: 900;
}

.credit-score-card strong {
  color: #1c7f4a;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.credit-score-card em {
  color: rgba(9, 31, 19, 0.62);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
}

.credit-score-detail {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 18px 0 8px;
  overflow: hidden;
  text-align: center;
}

.credit-gauge {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: 10px 18px;
  overflow: visible;
}

.credit-gauge-ring {
  position: relative;
  width: min(68vw, 248px);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  --tick-radius: min(23vw, 82px);
  background:
    radial-gradient(circle at center, #f8f7f4 0 55%, transparent 56%),
    conic-gradient(from 210deg, #f14970 0deg 72deg, #ffd24a 72deg 168deg, #55ba84 168deg 240deg, transparent 240deg 360deg);
}

.credit-gauge-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #f8f7f4;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 27, 0.04);
}

.credit-gauge-ring b {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  color: #f7c83d;
  font-size: 29px;
  line-height: 1;
}

.credit-gauge-needle {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  width: 9px;
  height: min(22vw, 72px);
  background: linear-gradient(180deg, #f3bd38, #ffd45a);
  border-radius: 999px 999px 6px 6px;
  transform: translate(-50%, -100%) rotate(var(--score-angle));
  transform-origin: 50% 100%;
  box-shadow: 0 3px 8px rgba(193, 132, 12, 0.26);
}

.credit-gauge-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 17px;
  height: 17px;
  background: #f7c83d;
  border-radius: 50%;
  transform: translateX(-50%);
}

.credit-gauge-ring .tick {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 28px;
  text-align: center;
  color: #788487;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(var(--tick-angle)) translateY(calc(var(--tick-radius) * -1)) rotate(calc(var(--tick-angle) * -1));
  transform-origin: center;
}

.credit-rules {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(100%, 360px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  color: #34433b;
  font-size: 14px;
  line-height: 1.58;
  text-align: center;
  overflow-wrap: anywhere;
}

.credit-rules p {
  width: 100%;
  margin: 0;
}

.user-dashboard-stats {
  display: grid;
  gap: 10px;
}

.user-dashboard-stats.primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-dashboard-stats.secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.user-stat-tile {
  min-width: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 10px 7px;
  color: #fcfbf9;
  text-align: center;
  background: linear-gradient(135deg, rgba(58, 88, 72, 0.44), rgba(78, 119, 97, 0.28));
  border: 1px solid rgba(252, 251, 249, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.3),
    0 10px 22px rgba(74, 118, 95, 0.12);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-stat-tile:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.36),
    0 13px 25px rgba(74, 118, 95, 0.16);
}

.user-stat-tile span {
  color: rgba(252, 251, 249, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.user-stat-tile strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: #fcfbf9;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.user-dashboard-stats.secondary .user-stat-tile {
  min-height: 64px;
}

.user-dashboard-stats.secondary .user-stat-tile span {
  font-size: 13px;
}

.user-dashboard-stats.secondary .user-stat-tile strong {
  font-size: 17px;
}

.income-detail-hero .balance strong {
  font-size: 22px;
}

.income-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.income-detail-row strong,
.income-detail-row span,
.income-detail-row em {
  display: block;
}

.income-detail-row strong {
  color: var(--ink);
  font-size: 14px;
}

.income-detail-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.income-detail-row em {
  margin-top: 5px;
  color: #8a999b;
  font-size: 11px;
  font-style: normal;
}

.income-detail-row b {
  color: var(--success);
  white-space: nowrap;
  font-size: 15px;
}

.user-asset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 9px;
  color: #103c25;
  background: rgba(252, 251, 249, 0.52);
  border: 1px solid rgba(252, 251, 249, 0.66);
  border-radius: 8px;
}

.user-asset-strip.frozen {
  grid-template-columns: 1fr;
  padding: 12px 14px;
}

.user-asset-strip div {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: center;
}

.user-asset-strip span {
  color: rgba(9, 31, 19, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.user-asset-strip strong {
  min-width: 0;
  color: #0a2718;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.user-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 18px;
  margin-top: 26px;
}

.user-menu-tile {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: #091f13;
  text-align: center;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
}

.user-menu-tile > span:last-child {
  min-height: 32px;
  display: grid;
  align-items: start;
  overflow-wrap: anywhere;
}

.user-menu-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #75daa4;
  background: rgba(252, 251, 249, 0.9);
  border: 1px solid rgba(176, 195, 185, 0.68);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.8),
    0 12px 20px rgba(95, 144, 118, 0.16);
}

.user-menu-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.15;
}

.user-menu-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-tile:nth-child(3n + 1) .user-menu-icon {
  color: #61c690;
}

.user-menu-tile:nth-child(3n + 2) .user-menu-icon {
  color: #4bd68c;
}

.user-menu-tile:nth-child(3n) .user-menu-icon {
  color: #1e8b51;
}

.section {
  margin-top: 16px;
}

.section.first-section {
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.section-title a,
.section-title button {
  color: var(--primary-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.section-title .section-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.list {
  display: grid;
  gap: 9px;
}

.helpbook-list {
  display: grid;
  gap: 0;
  padding: 8px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.helpbook-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  color: var(--ink);
  border-bottom: 1px solid rgba(211, 222, 216, 0.72);
}

.helpbook-row:last-child {
  border-bottom: 0;
}

.helpbook-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.helpbook-row span {
  flex: 0 0 auto;
  color: var(--muted);
}

.helpbook-row svg {
  width: 18px;
  height: 18px;
}

.help-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-detail > * {
  min-width: 0;
}

.help-detail-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.help-detail-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.help-detail-title svg {
  width: 19px;
  height: 19px;
}

.help-detail-title img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.help-detail h2 {
  margin: 0;
  font-size: 19px;
}

.help-detail-intro {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.company-certificate-gallery {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #fdfcf8, #f7f4ee);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-certificate-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-certificate-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #f6efdf;
  border-radius: 8px;
}

.company-certificate-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.company-certificate-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.company-certificate-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.company-certificate-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 10px;
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(252, 251, 249, 0.88);
  border: 1px solid rgba(193, 211, 201, 0.9);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.company-certificate-card:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 119, 69, 0.45);
  box-shadow: 0 14px 28px rgba(23, 89, 54, 0.12);
}

.company-certificate-image-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: block;
  padding: 8px;
  background: #fcfbf9;
  border: 1px solid rgba(209, 220, 214, 0.95);
  border-radius: 8px;
}

.company-certificate-image-frame > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  background: #fcfbf9;
  object-fit: contain;
}

.company-certificate-image-frame--empty {
  display: none;
}

.company-certificate-card strong,
.company-certificate-card span {
  display: block;
  overflow-wrap: anywhere;
}

.company-certificate-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.company-certificate-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.company-certificate-zoom {
  justify-self: start;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 4px;
  background: #f6f0e1;
  overflow: hidden;
  border-radius: 10px;
}

.company-certificate-zoom img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 7px;
}

.certificate-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.certificate-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 12, 0.76);
  border: 0;
  cursor: zoom-out;
}

.certificate-preview-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 780px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fcfbf9;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.certificate-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.certificate-preview-top strong,
.certificate-preview-top span {
  display: block;
}

.certificate-preview-top strong {
  color: var(--ink);
  font-size: 14px;
}

.certificate-preview-top span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.certificate-preview-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fbf9f5;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.certificate-preview-panel > img {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 64px);
  display: block;
  object-fit: contain;
  background: #f9f7f4;
}

.help-guide-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
}

.help-detail-sections {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.help-detail-section {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 13px;
  background: #fdfcf8;
  border: 1px solid #f5eedc;
  border-radius: 8px;
}

.help-detail-section h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.help-detail-section p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.help-detail-body {
  display: grid;
  gap: 10px;
}

.help-detail-body p {
  margin: 0;
  padding-left: 14px;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  line-height: 1.62;
}

.row,
.record,
.tier,
.task,
.member,
.message,
.help-item {
  min-width: 0;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.row-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.row-button.is-selected {
  border-color: rgba(29, 136, 79, 0.45);
  background: linear-gradient(135deg, rgba(246, 240, 224, 0.98), #fcfbf9);
}

.row-button.is-selected .row-icon {
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.static-row {
  cursor: default;
}

.row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.row-icon svg {
  width: 19px;
  height: 19px;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-main strong {
  display: block;
  font-size: 14px;
}

.row-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.row-action svg {
  width: 17px;
  height: 17px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #6f4d12;
  background: #fff3d9;
  border: 1px solid #f3d697;
  border-radius: 8px;
  font-size: 12px;
}

.notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.tabbar {
  display: flex;
  gap: 7px;
  padding: 4px;
  margin-bottom: 12px;
  background: rgba(7, 26, 16, 0.82);
  border: 1px solid rgba(129, 224, 173, 0.18);
  border-radius: 8px;
}

.tabbar button {
  min-width: 0;
  flex: 1;
  min-height: 36px;
  color: #97d6b4;
  background: rgba(12, 45, 27, 0.62);
  border: 1px solid rgba(129, 224, 173, 0.1);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.tabbar button.active {
  color: #092918;
  background: linear-gradient(135deg, #fcfaf5, #8fe7b8);
  border-color: rgba(252, 250, 245, 0.82);
  box-shadow: 0 8px 18px rgba(44, 188, 111, 0.22);
}

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

.amount-chip {
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.amount-chip.active {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.withdraw-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.withdraw-amount-option {
  position: relative;
  min-width: 0;
}

.withdraw-amount-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.withdraw-amount-option span {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 5px;
  color: #f8f3e5;
  border: 1px solid rgba(102, 222, 158, 0.34);
  border-radius: 8px;
  background: rgba(14, 56, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(102, 222, 158, 0.04);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.withdraw-amount-option input:checked + span {
  color: #fcfbf9;
  border-color: rgba(102, 222, 158, 0.82);
  background: linear-gradient(135deg, rgba(51, 198, 120, 0.96), rgba(25, 120, 69, 0.94));
  box-shadow: 0 0 0 1px rgba(102, 222, 158, 0.2), 0 10px 22px rgba(3, 13, 8, 0.24);
}

.withdraw-amount-option input:focus-visible + span {
  outline: 2px solid rgba(201, 243, 221, 0.9);
  outline-offset: 2px;
}

.withdraw-amount-option input:not(:disabled) + span:active {
  transform: translateY(1px);
}

.withdraw-amount-option input:disabled + span {
  opacity: 0.34;
  cursor: not-allowed;
  filter: grayscale(0.55);
}

.wealth-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.wealth-plan-card {
  min-width: 0;
  min-height: 96px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px 8px;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wealth-plan-card.active {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft), #fcfbf9);
}

.wealth-plan-card:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  background: #f8f7f3;
}

.wealth-plan-card strong,
.wealth-plan-card span,
.wealth-plan-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wealth-plan-card strong {
  font-size: 18px;
}

.wealth-plan-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wealth-plan-card em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.wealth-order-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(104px, auto);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 11px;
  row-gap: 8px;
}

.wealth-order-row .row-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.wealth-order-row .row-main {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  align-self: start;
}

.wealth-order-row .row-main strong,
.wealth-order-row .row-main span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.wealth-order-row .badge {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}

.wealth-order-action {
  align-self: end;
  min-width: 104px;
  min-height: 34px;
  padding: 0 10px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wealth-order-actions {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  display: grid;
  gap: 6px;
}

@media (max-width: 380px) {
  .wealth-order-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .wealth-order-row .row-main {
    grid-row: 1;
  }

  .wealth-order-row .badge,
  .wealth-order-actions {
    grid-column: 2;
    justify-self: end;
  }

  .wealth-order-row .badge {
    grid-row: 2;
    margin-top: 2px;
  }

  .wealth-order-actions {
    grid-row: 3;
  }
}

.wealth-detail {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wealth-detail-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.wealth-detail-title .icon {
  color: var(--primary);
}

.wealth-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.wealth-rate-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wealth-rate-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  background: #fcfbf9;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.wealth-rate-row.head {
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-top: 0;
}

.wealth-rate-row strong,
.wealth-rate-row span {
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  overflow-wrap: anywhere;
}

.form-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-guide-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #274635;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-guide-card h3,
.invite-guide-card p {
  margin: 0;
}

.invite-guide-card h3 {
  color: var(--ink);
  font-size: 16px;
}

.invite-guide-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.points-hero {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #fcfbf9;
  background: linear-gradient(135deg, #1d884f, #f0a43a);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(29, 136, 79, 0.18);
}

.points-hero > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #1d884f;
  background: rgba(252, 251, 249, 0.92);
  border-radius: 50%;
}

.points-hero svg {
  width: 30px;
  height: 30px;
}

.points-hero p,
.points-hero strong {
  margin: 0;
}

.points-hero p {
  font-size: 13px;
  opacity: 0.88;
}

.points-hero strong {
  font-size: 38px;
  line-height: 1;
}

.points-exchange-list {
  display: grid;
  gap: 9px;
}

.points-exchange-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 112px);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.points-exchange-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.points-exchange-row strong {
  color: var(--ink);
  font-size: 16px;
}

.points-exchange-row span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.points-exchange-row button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: #fcfbf9;
  -webkit-text-fill-color: currentColor;
  background: #156239;
  border: 1px solid #227a4b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 1;
}

.points-exchange-row button:disabled {
  color: #2a4c3a;
  -webkit-text-fill-color: #2a4c3a;
  background: #d4e2db;
  border-color: #a8c3b5;
  cursor: not-allowed;
  opacity: 1;
}

.points-exchange-row button.is-processing:disabled {
  color: #fcfbf9;
  -webkit-text-fill-color: #fcfbf9;
  background: #365c48;
  border-color: #587b68;
  cursor: wait;
}

.points-exchange-paused {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #f7f4ec;
  background: #1c3e2c;
  border: 1px solid #4e735f;
  border-radius: 8px;
}

.points-exchange-paused h2,
.points-exchange-paused p {
  margin: 0;
}

.points-exchange-paused h2 {
  font-size: 17px;
}

.points-exchange-paused p {
  color: #d4e2db;
  font-size: 14px;
  line-height: 1.6;
}

.points-rule-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff8e7;
  border: 1px solid #f5d895;
  border-radius: 8px;
}

.points-rule-card h3,
.points-rule-card p {
  margin: 0;
}

.points-rule-card h3 {
  color: #9a3412;
  font-size: 18px;
  text-align: center;
}

.points-rule-card p {
  color: #5f4633;
  font-size: 13px;
  line-height: 1.65;
}

.points-rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.points-rule-list span {
  min-width: 0;
  padding: 9px 6px;
  color: #135733;
  text-align: center;
  background: rgba(29, 136, 79, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

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

.identity-upload-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fbfaf8;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.identity-upload-card input {
  width: 100%;
  min-height: 38px;
  font-size: 12px;
}

.identity-upload-card img,
.identity-upload-card em {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f7f4ee;
  object-fit: cover;
  overflow: hidden;
}

.identity-upload-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-ticker {
  --record-row-height: 64px;
  --record-gap: 9px;
  height: var(--record-row-height);
  overflow: hidden;
  border-radius: 8px;
}

.record-ticker-track {
  display: grid;
  gap: var(--record-gap);
}

.record-ticker.is-rolling .record-ticker-track {
  animation: recordTicker var(--ticker-duration, 12s) cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.record-ticker:hover .record-ticker-track {
  animation-play-state: paused;
}

.record-ticker .record {
  height: var(--record-row-height);
  align-items: center;
}

.record-ticker .record > div {
  min-width: 0;
}

.record-ticker .record strong,
.record-ticker .record span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes recordTicker {
  0%,
  16% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-1 * var(--record-count) * (var(--record-row-height) + var(--record-gap))));
  }
}

.record strong {
  display: block;
  font-size: 14px;
}

.record span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.record b {
  white-space: nowrap;
  font-size: 14px;
}

.record .income {
  color: var(--success);
}

.record .outcome {
  color: var(--danger);
}

.record-pagination {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr minmax(72px, auto);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.record-pagination button,
.record-pagination span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.record-pagination button {
  padding: 0 10px;
  color: #fcfbf9;
  background: var(--primary);
}

.record-pagination button:disabled {
  color: var(--muted);
  background: #f0ede6;
  cursor: default;
}

.record-pagination span {
  min-width: 0;
  padding: 0 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

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

.tier h3,
.task h3,
.message h3,
.help-item h3 {
  margin: 0;
  font-size: 15px;
}

.tier p,
.task p,
.message p,
.help-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(68px, auto);
  gap: 10px;
  align-items: center;
}

.order-task {
  align-items: stretch;
}

.task > div:not(.task-actions) {
  min-width: 0;
}

.task h3 {
  overflow-wrap: anywhere;
}

.task-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
  min-width: 0;
}

.app-task-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-soft), #fff7e8);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.app-task-icon svg {
  width: 22px;
  height: 22px;
}

.app-task-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task button,
.tier button {
  min-width: 78px;
  min-height: 36px;
  padding: 0 10px;
  color: #fcfbf9;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.task-actions button {
  min-width: 68px;
  max-width: 78px;
  white-space: normal;
  line-height: 1.12;
}

.task button:disabled,
.tier button:disabled {
  color: rgba(246, 239, 222, 0.46);
  background: rgba(246, 239, 222, 0.08);
  border: 1px solid rgba(129, 224, 173, 0.14);
  cursor: default;
}

.progress-track {
  height: 7px;
  margin: 9px 0 8px;
  overflow: hidden;
  background: #f1eee7;
  border-radius: 999px;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.16s ease;
}

.task-progress {
  margin: 8px 0 5px;
}

.task-progress-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.member {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.team-level-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.team-level-tabs button {
  min-width: 0;
  min-height: 72px;
  padding: 10px 6px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.team-level-tabs button strong,
.team-level-tabs button span {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.team-level-tabs button strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.18;
}

.team-level-tabs button span {
  margin-top: 3px;
  font-size: 11px;
}

.team-level-tabs button.active {
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.team-level-tabs button.active strong,
.team-level-tabs button.active span {
  color: #fcfbf9;
}

.team-list-title {
  justify-content: flex-start;
}

.team-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-title-line span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--primary-dark);
  background: #f7f3e8;
  border: 1px solid #cbe8d9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.team-member-card {
  align-items: start;
}

.team-member-card-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 11px 12px;
}

.team-member-card-compact .row-main strong {
  font-size: 15px;
}

.team-member-card-compact .row-main span {
  margin-top: 5px;
}

.team-member-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  max-width: 132px;
  padding: 7px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(29, 136, 79, 0.2);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.team-member-vip.observation {
  color: #775408;
  background: rgba(255, 216, 118, 0.2);
  border-color: rgba(194, 139, 20, 0.34);
  font-size: 10px;
  white-space: normal;
}

.team-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.team-money-grid div {
  min-width: 0;
  padding: 8px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-money-grid span,
.team-money-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.team-money-grid b {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.team-detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  font-weight: 900;
}

.copy-box {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: 8px;
}

.copy-box.compact {
  margin-top: 12px;
  background: rgba(252, 251, 249, 0.9);
}

.copy-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-weight: 800;
}

.copy-box button {
  width: 38px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: var(--primary);
  border-radius: 8px;
}

.copy-box svg {
  width: 17px;
  height: 17px;
}

.invite-code-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.invite-code-button {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(29, 136, 79, 0.08);
}

.invite-code-button:disabled {
  opacity: 0.55;
}

.invite-code-button > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--primary);
}

.invite-code-button span,
.invite-code-button small,
.invite-code-button strong {
  min-width: 0;
  display: block;
}

.invite-code-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.invite-code-button strong {
  margin-top: 2px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.invite-qr-layer {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 18px;
}

.invite-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 12, 0.76);
  border: 0;
}

.invite-qr-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 460px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fbfaf6;
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
}

.invite-qr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #fcfbf9;
  border-bottom: 1px solid var(--line);
}

.invite-qr-top strong,
.invite-qr-top span {
  display: block;
}

.invite-qr-top strong {
  color: var(--ink);
  font-size: 15px;
}

.invite-qr-top span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.invite-qr-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fbf9f5;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.invite-qr-card {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  text-align: center;
}

.invite-qr-brand {
  color: var(--primary-dark);
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
}

.invite-qr-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.invite-qr-code-text {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  color: var(--primary-dark);
  background: #f6f0e1;
  border-radius: 999px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.invite-qr-code {
  position: relative;
  width: min(72vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 16px auto 12px;
  padding: 12px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(29, 136, 79, 0.12);
}

.invite-qr-code img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.invite-qr-code > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.invite-qr-code b {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 58px;
  padding: 8px 10px;
  transform: translate(-50%, -50%);
  color: var(--primary-dark);
  background: #fcfbf9;
  border: 2px solid #dceee4;
  border-radius: 14px;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(26, 122, 71, 0.16);
}

.invite-qr-benefits {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px;
  color: #1d4530;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  list-style: none;
}

.invite-qr-benefits li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.4;
}

.invite-qr-benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.56em;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 999px;
}

.invite-qr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #fcfbf9;
  border-top: 1px solid var(--line);
}

.invite-qr-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #fcfbf9;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.invite-qr-actions button:first-child {
  color: var(--primary-dark);
  background: #f6f0e1;
}

.invite-qr-actions button:disabled {
  opacity: 0.55;
}

.chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 13px 10px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar {
  min-width: 0;
  flex: 1;
  display: grid;
  align-items: end;
  gap: 6px;
  height: 100%;
}

.bar i {
  display: block;
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), #78c09a);
}

.bar span {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.income-level-card {
  display: grid;
  gap: 10px;
}

.profit-reference-image {
  position: relative;
  width: 100%;
  margin: 0 0 38px;
  padding: 0;
  overflow: visible;
  appearance: none;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profit-reference-image:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 119, 69, 0.45);
  box-shadow: 0 14px 28px rgba(23, 89, 54, 0.12);
}

.profit-reference-image img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.profit-reference-image > span {
  position: absolute;
  right: 10px;
  bottom: -42px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: rgba(246, 240, 225, 0.94);
  border: 1px solid rgba(25, 119, 69, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(23, 89, 54, 0.14);
}

.income-level-hero {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  color: #fcfbf9;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(114, 218, 163, 0.95), rgba(132, 224, 175, 0.75) 58%, rgba(255, 181, 199, 0.9)),
    #a3ebc5;
  border: 1px solid rgba(252, 251, 249, 0.8);
  border-radius: 8px;
  box-shadow: inset 0 -22px 48px rgba(252, 251, 249, 0.22);
}

.income-level-hero span {
  color: #e0f24c;
  text-shadow: 0 2px 0 rgba(252, 251, 249, 0.8), 0 5px 12px rgba(20, 97, 56, 0.18);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.income-level-hero h3 {
  margin: 8px 0 0;
  color: #fcfbf9;
  text-shadow: 0 3px 0 rgba(41, 168, 100, 0.45), 0 7px 16px rgba(41, 84, 61, 0.24);
  font-size: 27px;
  line-height: 1.08;
}

.daily-income-panel {
  padding: 10px 8px 8px;
  background: #fcfbf9;
  border: 2px solid #84db78;
  border-radius: 8px;
}

.daily-income-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.daily-income-legend i {
  width: 11px;
  height: 11px;
  background: #3e9634;
  border-radius: 50%;
}

.daily-income-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: 8px;
  padding: 14px 4px 0;
  background: repeating-linear-gradient(to top, transparent 0 33px, #dee3e0 34px);
  border-bottom: 1px solid #d0d8d4;
}

.income-bar {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.income-bar b {
  min-width: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.income-bar i {
  display: block;
  width: min(72%, 34px);
  min-height: 5px;
  background: #439736;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.28);
}

.income-bar span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.task-income-title {
  justify-self: center;
  min-width: 220px;
  margin-top: 2px;
  padding: 7px 20px;
  color: #fcfbf9;
  text-align: center;
  background: #186f41;
  border: 2px solid #f2ead4;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(115, 77, 43, 0.35);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.task-income-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-income-table {
  min-width: 720px;
}

.task-income-head,
.task-income-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr 0.9fr 1fr 1.15fr 1.25fr;
  align-items: center;
}

.task-income-head {
  color: #fcfbf9;
  background: #2d8d3f;
  font-size: 11px;
  font-weight: 900;
}

.task-income-row {
  min-height: 37px;
  color: #4a2b15;
  background: #fffaf0;
  border-top: 1px solid rgba(37, 43, 43, 0.65);
  font-size: 12px;
  font-weight: 800;
}

.task-income-row:nth-child(odd) {
  background: #97db8d;
}

.task-income-head span,
.task-income-row span,
.task-income-row strong {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  text-align: center;
  border-right: 1px solid rgba(37, 43, 43, 0.65);
  overflow-wrap: anywhere;
}

.task-income-head span:last-child,
.task-income-row span:last-child {
  border-right: 0;
}

.reward-banner {
  padding: 10px 12px;
  color: #fcfbf9;
  text-align: center;
  background: #b99272;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.reward-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.reward-table-head,
.reward-table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.reward-table-head {
  min-height: 38px;
  color: #fcfbf9;
  background: #2d8d3f;
  font-size: 11px;
  font-weight: 800;
}

.reward-table-row {
  min-height: 42px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.reward-table-row:nth-child(odd) {
  background: #9cdd9a;
}

.reward-table-head span,
.reward-table-row span,
.reward-table-row strong {
  min-width: 0;
  padding: 9px 4px;
  text-align: center;
  overflow-wrap: anywhere;
}

.reward-table-row strong {
  color: var(--primary-dark);
}

.reward-help {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reward-help h3 {
  justify-self: center;
  margin: 0 0 2px;
  padding: 5px 22px;
  color: var(--ink);
  background: #f2efe9;
  border-radius: 999px;
  font-size: 15px;
}

.reward-help p {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.reward-help p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.reward-help .reward-help-note {
  margin-top: 4px;
  padding: 10px 12px 10px 34px;
  color: #9f1d1d;
  background: #fff1f1;
  border: 1px solid #f4b6b6;
  border-radius: 8px;
  font-weight: 800;
}

.reward-help .reward-help-note::before {
  left: 13px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  background: #e53935;
}

.wealth-card {
  margin-top: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wealth-card h3 {
  margin: 0;
  padding: 10px 12px;
  color: #fcfbf9;
  text-align: center;
  background: #197343;
  font-size: 18px;
}

.wealth-card p {
  margin: 0;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.wealth-table-wrap {
  overflow-x: auto;
}

.wealth-table {
  min-width: 680px;
}

.wealth-table-head,
.wealth-table-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
}

.wealth-table-head {
  color: #0b2216;
  background: #1d8a50;
  font-size: 11px;
  font-weight: 900;
}

.wealth-table-row {
  color: #fcfbf9;
  background: #25995b;
  border-top: 1px solid rgba(252, 251, 249, 0.35);
  font-size: 12px;
  font-weight: 800;
}

.wealth-table-head span,
.wealth-table-row span {
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
  overflow-wrap: anywhere;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(7, 33, 19, 0.9), rgba(4, 16, 10, 0.98)),
    radial-gradient(circle at 50% -30%, rgba(102, 223, 158, 0.16), transparent 58%);
  border-top: 1px solid rgba(129, 224, 173, 0.22);
  box-shadow:
    0 -18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(252, 251, 249, 0.05);
  backdrop-filter: blur(16px);
}

.bottom-nav-item {
  --nav-a: #66de9e;
  --nav-b: #1b814b;
  --nav-c: #ffe587;
  --nav-glow: rgba(102, 222, 158, 0.34);
  min-width: 0;
  height: 54px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: rgba(246, 240, 225, 0.7);
  background:
    radial-gradient(circle at 50% 4%, color-mix(in srgb, var(--nav-a) 18%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(14, 49, 30, 0.84), rgba(7, 28, 17, 0.92));
  border: 1px solid color-mix(in srgb, var(--nav-a) 20%, rgba(252, 251, 249, 0.05));
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.08),
    inset 0 -10px 14px rgba(0, 0, 0, 0.2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bottom-nav-item::before,
.bottom-nav-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bottom-nav-item::before {
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nav-a) 16%, transparent), transparent 42%),
    linear-gradient(315deg, color-mix(in srgb, var(--nav-c) 10%, transparent), transparent 48%);
  opacity: 0.72;
}

.bottom-nav-item::after {
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(252, 251, 249, 0.04);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--nav-a) 10%, transparent);
}

.bottom-nav-home { --nav-a: #66de9e; --nav-b: #1b814b; --nav-c: #f7dc7a; --nav-glow: rgba(102, 222, 158, 0.38); }
.bottom-nav-earnings { --nav-a: #ffe176; --nav-b: #bd7a19; --nav-c: #66de9e; --nav-glow: rgba(255, 214, 95, 0.38); }
.bottom-nav-tasks { --nav-a: #9beac0; --nav-b: #25a360; --nav-c: #fff1a2; --nav-glow: rgba(155, 234, 192, 0.34); }
.bottom-nav-vip { --nav-a: #fff06f; --nav-b: #c99017; --nav-c: #88e6b4; --nav-glow: rgba(255, 226, 74, 0.42); }
.bottom-nav-my { --nav-a: #b0eecd; --nav-b: #5dca90; --nav-c: #89e6b4; --nav-glow: rgba(176, 238, 205, 0.34); }

.bottom-nav-item.active {
  color: #fcfbf9;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nav-a) 58%, rgba(252, 251, 249, 0.16));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-a) 30%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(19, 64, 40, 0.98), rgba(9, 37, 22, 0.98));
  box-shadow:
    0 0 18px var(--nav-glow),
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(252, 251, 249, 0.13),
    inset 0 -12px 20px color-mix(in srgb, var(--nav-b) 22%, rgba(0, 0, 0, 0.28));
}

.bottom-nav-art {
  width: 32px;
  height: 32px;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
  border-radius: 8px;
  background: rgba(5, 21, 12, 0.2);
  border: 1px solid color-mix(in srgb, var(--nav-a) 22%, rgba(252, 251, 249, 0.04));
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.28),
    0 0 12px color-mix(in srgb, var(--nav-a) 30%, transparent),
    inset 0 0 0 1px rgba(252, 251, 249, 0.06);
}

.bottom-nav-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  opacity: 0.92;
  filter: saturate(1.08) brightness(0.95);
  mix-blend-mode: normal;
}

.bottom-nav-orbit {
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  background:
    conic-gradient(from 42deg, transparent 0 18%, color-mix(in srgb, var(--nav-a) 78%, transparent) 20% 28%, transparent 30% 60%, color-mix(in srgb, var(--nav-c) 66%, transparent) 63% 70%, transparent 72%);
  opacity: 0.42;
}

.bottom-nav-item.active .bottom-nav-art {
  border-color: color-mix(in srgb, var(--nav-a) 52%, rgba(252, 251, 249, 0.14));
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.28),
    0 0 17px var(--nav-glow),
    inset 0 0 0 1px rgba(252, 251, 249, 0.09);
}

.bottom-nav-item.active .bottom-nav-art img {
  opacity: 1;
  filter: saturate(1.24) brightness(1.12);
}

.bottom-nav-item span:not(.bottom-nav-art):not(.bottom-nav-orbit) {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: inherit;
  text-align: center;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.42);
}

.bottom-nav-art svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
  color: rgba(253, 252, 248, 0.94);
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 5px color-mix(in srgb, var(--nav-a) 76%, transparent))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

.bottom-nav-item.active .bottom-nav-art svg {
  color: #fcfbf9;
}

.floating-inbox {
  position: fixed;
  right: max(16px, calc((100vw - min(100vw, 460px)) / 2 + 16px));
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 24;
}

.floating-inbox.is-drag-positioned {
  right: auto;
  bottom: auto;
}

.floating-inbox.is-dragging {
  user-select: none;
}

.floating-inbox-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(8, 37, 22, 0.22);
  cursor: grab;
  touch-action: none;
}

.floating-inbox.is-dragging .floating-inbox-button,
.floating-inbox.is-dragging .inbox-panel-head {
  cursor: grabbing;
}

.floating-inbox-button svg {
  width: 23px;
  height: 23px;
}

.floating-inbox-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(96, 221, 154, 0.7);
  box-shadow: inset 0 0 0 1px rgba(252, 251, 249, 0.06), 0 0 18px rgba(71, 209, 135, 0.26);
  filter: drop-shadow(0 8px 16px rgba(22, 104, 60, 0.22));
  pointer-events: none;
}

.floating-inbox-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: #fcfbf9;
  background: #e5484d;
  border: 2px solid #fcfbf9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(120, 20, 30, 0.24);
  pointer-events: none;
}

.floating-inbox-badge:not(.hidden) {
  animation: inboxBadgeBlink 1s ease-in-out infinite;
}

@keyframes inboxBadgeBlink {
  0%,
  45%,
  100% {
    opacity: 1;
    color: #fcfbf9;
    background: #e5484d;
    box-shadow: 0 4px 10px rgba(120, 20, 30, 0.24);
  }

  55%,
  82% {
    opacity: 0.08;
    color: #fcfbf9;
    background: #e5484d;
    box-shadow: none;
  }
}

.floating-inbox-badge.hidden {
  display: none;
}

.inbox-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(660px, calc(100vh - 130px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--ink);
  background: rgba(252, 251, 249, 0.99);
  border: 1px solid rgba(220, 231, 225, 0.9);
  border-radius: 12px;
  box-shadow: 0 24px 58px rgba(13, 39, 25, 0.24);
}

.floating-inbox.is-drag-positioned .inbox-panel {
  right: auto;
  bottom: auto;
  left: var(--inbox-panel-x, 0px);
  top: var(--inbox-panel-y, -520px);
}

.daily-chest-card {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 218, 92, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 224, 120, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(19, 60, 38, 0.96), rgba(12, 38, 24, 0.96) 58%, rgba(68, 52, 16, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), inset 0 0 32px rgba(80, 218, 144, 0.08);
}

.daily-chest-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 34%;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.24), transparent 62%);
  pointer-events: none;
}

.daily-chest-card-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.daily-chest-emblem {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 231, 129, 0.42), rgba(39, 177, 103, 0.16) 62%, rgba(7, 28, 17, 0.8));
  border: 1px solid rgba(255, 235, 150, 0.42);
  box-shadow: 0 0 24px rgba(255, 212, 80, 0.25);
}

.daily-chest-emblem img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.32));
}

.daily-chest-card-main span,
.daily-chest-metrics span {
  display: block;
  color: rgba(246, 239, 223, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.daily-chest-card-main h2 {
  margin: 3px 0;
  color: #fff7ba;
  font-size: 22px;
  line-height: 1.05;
}

.daily-chest-card-main p {
  margin: 0;
  color: rgba(251, 248, 240, 0.88);
  font-size: 12px;
  line-height: 1.35;
}

.daily-chest-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.daily-chest-metrics div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(129, 228, 175, 0.2);
  background: rgba(5, 24, 14, 0.42);
}

.daily-chest-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fcfbf9;
  font-size: 14px;
  line-height: 1.1;
  word-break: break-word;
}

.daily-chest-open-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #092717;
  background: linear-gradient(135deg, #fff18a, #34cc7b 58%, #209557);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(37, 176, 102, 0.22);
}

.daily-chest-open-btn:disabled {
  opacity: 0.58;
}

.daily-chest-open-btn b {
  margin-left: 4px;
}

.daily-chest-note {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(248, 243, 229, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.home-game-hub {
  margin: 14px 0 0;
}

.home-game-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 8px;
}

.home-game-hub-head strong {
  color: #fbf9f3;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.home-game-hub-head span {
  color: rgba(185, 216, 199, 0.68);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.home-game-grid {
  display: grid;
  gap: 10px;
}

.home-game-entry {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 152px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  overflow: hidden;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 220, 103, 0.46);
  border-radius: 12px;
  color: #fbf9f3;
  background-color: #06190f;
  background-image:
    linear-gradient(90deg, rgba(4, 21, 12, 0.98) 0%, rgba(5, 24, 14, 0.92) 35%, rgba(5, 25, 14, 0.66) 55%, rgba(4, 20, 11, 0.14) 78%),
    linear-gradient(0deg, rgba(3, 12, 7, 0.54), transparent 58%),
    url("/assets/ui/vtx-slot-entry-banner-v1.jpg?v=1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 17px 36px rgba(2, 11, 6, 0.38), inset 0 0 30px rgba(77, 217, 142, 0.06);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-game-entry-golden9 {
  border-color: rgba(255, 211, 94, 0.52);
  background-color: #08180f;
  background-image:
    linear-gradient(90deg, rgba(4, 20, 11, 0.99) 0%, rgba(6, 25, 15, 0.94) 38%, rgba(4, 20, 11, 0.58) 62%, rgba(3, 14, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 11, 6, 0.62), transparent 64%),
    url("/assets/ui/vtx-number-pool-game-logo.png?v=1");
  background-position: center, center, right -8px center;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 184%;
  box-shadow: 0 17px 36px rgba(2, 11, 6, 0.38), inset 0 0 30px rgba(255, 205, 74, 0.07);
}

.home-game-entry-golden9::after {
  background: linear-gradient(120deg, rgba(255, 215, 87, 0.08), transparent 42%, rgba(46, 205, 120, 0.11));
}

.home-game-entry-golden9 .home-game-entry-eyebrow {
  color: #ffe277;
}

.home-game-entry-golden9 .home-game-entry-title {
  color: #fff1a6;
}

.home-game-entry-golden9 .home-game-entry-action {
  color: #1d1a08;
  background: linear-gradient(135deg, #fff4a4, #f8bd39 74%);
  box-shadow: 0 8px 18px rgba(229, 171, 42, 0.2);
}

.home-game-entry-golden9 .home-game-entry-spinner {
  border-color: rgba(50, 37, 5, 0.24);
  border-top-color: #382b08;
}

.home-game-entry-slot {
  background-position: center;
}

.home-game-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(89, 220, 150, 0.07), transparent 38%, rgba(255, 202, 68, 0.12));
}

.home-game-entry:disabled {
  cursor: wait;
  opacity: 0.82;
}

.home-game-entry.is-locked {
  border-color: rgba(152, 170, 160, 0.34);
  color: #d8e0dc;
  background-color: #0a1710;
  background-image:
    linear-gradient(90deg, rgba(10, 22, 16, 0.99) 0%, rgba(19, 30, 24, 0.95) 48%, rgba(24, 28, 28, 0.7) 100%),
    linear-gradient(0deg, rgba(5, 13, 9, 0.62), transparent 58%),
    url("/assets/ui/vtx-slot-entry-banner-v1.jpg?v=1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 26px rgba(2, 11, 6, 0.24), inset 0 0 22px rgba(192, 206, 199, 0.035);
}

.home-game-entry.is-locked:hover {
  border-color: rgba(183, 197, 190, 0.48);
  box-shadow: 0 15px 30px rgba(2, 11, 6, 0.3);
}

.home-game-entry.is-locked .home-game-entry-logo {
  border-color: rgba(173, 191, 181, 0.28);
  filter: grayscale(0.78);
  opacity: 0.72;
}

.home-game-entry.is-locked .home-game-entry-eyebrow,
.home-game-entry.is-locked .home-game-entry-subtitle {
  color: rgba(210, 222, 216, 0.64);
}

.home-game-entry.is-locked .home-game-entry-title {
  color: #e4e8e6;
}

.home-game-entry.is-locked .home-game-entry-action {
  border-color: rgba(193, 207, 200, 0.3);
  color: #e3e9e6;
  background: rgba(144, 161, 152, 0.2);
  box-shadow: none;
}

.home-game-entry:hover {
  border-color: rgba(255, 221, 96, 0.58);
  box-shadow: 0 18px 36px rgba(2, 11, 6, 0.36), 0 0 22px rgba(56, 210, 128, 0.12);
  transform: translateY(-1px);
}

.home-game-entry:active {
  transform: scale(0.992);
}

.home-game-entry:focus-visible {
  outline: 3px solid rgba(255, 231, 128, 0.88);
  outline-offset: 3px;
}

.home-game-entry-logo {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(136, 230, 180, 0.4);
  border-radius: 17px;
  background: #082817;
  box-shadow: 0 8px 20px rgba(2, 11, 6, 0.42), 0 0 18px rgba(57, 211, 129, 0.16);
}

.home-game-entry-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-game-entry-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 220px;
  display: grid;
  align-content: end;
  gap: 5px;
}

.home-game-entry-eyebrow {
  overflow: hidden;
  color: #58db95;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-entry-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff5b4;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.82), 0 0 14px rgba(255, 207, 75, 0.15);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-game-entry-subtitle {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(248, 243, 230, 0.82);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.07em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-game-entry-rate {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(255, 226, 120, 0.34);
  border-radius: 999px;
  color: #fff0a5;
  background: rgba(4, 20, 11, 0.66);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.home-game-entry-action {
  position: relative;
  z-index: 1;
  min-width: 86px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border: 1px solid rgba(255, 231, 134, 0.42);
  border-radius: 10px;
  color: #0c2819;
  background: linear-gradient(135deg, #fff08a, #3bcc7f 72%);
  box-shadow: 0 8px 18px rgba(40, 186, 108, 0.2);
}

.home-game-entry-action b {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.home-game-entry-action svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.home-game-entry-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(12, 46, 28, 0.25);
  border-top-color: #0c2e1c;
  border-radius: 50%;
  animation: home-game-entry-spin 700ms linear infinite;
}

@keyframes home-game-entry-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .home-game-hub-head {
    margin-bottom: 7px;
  }

  .home-game-entry {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .home-game-entry-copy {
    max-width: 180px;
  }

  .home-game-entry-title {
    font-size: 18px;
  }

  .home-game-entry-action {
    min-width: 76px;
    min-height: 38px;
    padding: 0 8px;
  }

  .home-game-entry-action b {
    display: inline;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-game-entry {
    transition: none;
  }
}

.floating-daily-chest {
  position: fixed;
  right: max(16px, calc((100vw - min(100vw, 460px)) / 2 + 16px));
  bottom: calc(132px + env(safe-area-inset-bottom));
  z-index: 24;
  width: 68px;
  min-height: 84px;
  border: 1px solid rgba(255, 229, 126, 0.46);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(12, 49, 29, 0.94), rgba(12, 32, 21, 0.96));
  color: #fff7bc;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 20px rgba(81, 218, 145, 0.18);
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 5px;
  cursor: grab;
  touch-action: none;
}

.floating-daily-chest.is-drag-positioned {
  right: auto;
  bottom: auto;
}

.floating-daily-chest.is-dragging {
  user-select: none;
  cursor: grabbing;
  animation: none;
}

.floating-daily-chest.is-ready {
  animation: dailyChestPulse 1.4s ease-in-out infinite;
}

.floating-daily-chest.is-ready.is-dragging {
  animation: none;
}

.floating-daily-chest-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.floating-daily-chest-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.floating-daily-chest strong {
  color: #fcfbf9;
  font-size: 12px;
  line-height: 1;
}

.floating-daily-chest small {
  color: rgba(246, 240, 225, 0.74);
  font-size: 10px;
  line-height: 1;
}

@keyframes dailyChestPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 18px rgba(81, 218, 145, 0.18); }
  50% { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 222, 90, 0.34); }
}

.daily-chest-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  background: rgba(4, 18, 11, 0.74);
  backdrop-filter: blur(9px);
}

.daily-chest-dialog {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(
    100dvh
    - 20px
    - env(safe-area-inset-top)
    - env(safe-area-inset-bottom)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 226, 115, 0.42);
  background: linear-gradient(160deg, rgba(9, 42, 24, 0.98), rgba(10, 28, 18, 0.98));
  text-align: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), inset 0 0 36px rgba(83, 219, 146, 0.08);
}

.daily-chest-close {
  position: sticky;
  z-index: 4;
  top: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -34px auto;
  border-radius: 12px;
  border: 1px solid rgba(132, 229, 177, 0.28);
  color: #f8f3e6;
  background: rgba(9, 42, 24, 0.86);
  box-shadow: 0 8px 20px rgba(3, 14, 8, 0.34);
  touch-action: manipulation;
}

.daily-chest-close svg {
  width: 20px;
  height: 20px;
}

.daily-chest-big-visual {
  position: relative;
  width: 190px;
  height: 150px;
  margin: 6px auto 0;
  display: grid;
  place-items: center;
}

.daily-chest-big-visual img {
  width: 180px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.daily-chest-dialog.is-opening .daily-chest-big-visual img {
  animation: dailyChestOpen 1.1s ease-in-out infinite;
}

.daily-chest-dialog.has-collection-card .daily-chest-big-visual {
  width: 158px;
  height: 112px;
}

.daily-chest-dialog.has-collection-card .daily-chest-big-visual img {
  width: 150px;
  height: 108px;
}

.daily-chest-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff28b;
  box-shadow: 0 0 18px #fff28b;
}

.daily-chest-spark.one { left: 28px; top: 34px; }
.daily-chest-spark.two { right: 34px; top: 18px; animation-delay: 0.2s; }
.daily-chest-spark.three { right: 58px; bottom: 30px; animation-delay: 0.4s; }

.daily-chest-dialog .daily-chest-spark {
  animation: dailyChestSpark 1s ease-in-out infinite;
}

@keyframes dailyChestOpen {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
  40% { transform: translateY(-8px) rotate(2deg) scale(1.04); }
  70% { transform: translateY(2px) rotate(-2deg) scale(0.99); }
}

@keyframes dailyChestSpark {
  0%, 100% { transform: scale(0.65); opacity: 0.45; }
  50% { transform: scale(1.2); opacity: 1; }
}

.daily-chest-result-copy span {
  display: block;
  color: rgba(247, 242, 228, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-chest-result-copy strong {
  display: block;
  margin: 6px 0;
  color: #fff196;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 223, 86, 0.28);
}

.daily-chest-result-copy p,
.daily-chest-result-copy em {
  display: block;
  margin: 0;
  color: rgba(251, 249, 243, 0.9);
  font-size: 13px;
  line-height: 1.4;
  font-style: normal;
}

.daily-chest-result-copy em {
  margin-top: 10px;
  color: rgba(255, 240, 172, 0.92);
}

.daily-chest-result-btn {
  margin-top: 16px;
}

@media (max-width: 340px), (max-height: 620px) {
  .daily-chest-dialog {
    padding: 16px;
    border-radius: 16px;
  }

  .daily-chest-close {
    margin: -6px -6px -38px auto;
  }

  .daily-chest-dialog.has-collection-card .daily-chest-big-visual {
    width: 132px;
    height: 90px;
  }

  .daily-chest-dialog.has-collection-card .daily-chest-big-visual img {
    width: 126px;
    height: 88px;
  }

  .daily-chest-result-copy strong {
    margin: 4px 0;
    font-size: 36px;
  }
}

.inbox-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 0%, rgba(29, 136, 79, 0.18), transparent 34%),
    linear-gradient(180deg, #fcfbf9, #fbfaf7);
  cursor: grab;
  touch-action: none;
}

.inbox-panel-head button {
  cursor: pointer;
}

.inbox-brand {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.inbox-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(22, 104, 60, 0.18);
}

.inbox-brand svg {
  width: 18px;
  height: 18px;
}

.inbox-brand strong,
.inbox-detail-title strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.inbox-brand em,
.inbox-detail-title span,
.inbox-item-meta,
.inbox-thread-item span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.inbox-unread-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.inbox-panel-head button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(252, 251, 249, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inbox-compose-button {
  color: #fcfbf9 !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border-color: rgba(22, 104, 60, 0.18) !important;
}

.inbox-panel-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.inbox-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #fbfaf7, #fcfbf9);
  border-bottom: 1px solid var(--line);
}

.inbox-tabs button {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 900;
}

.inbox-tabs button.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: rgba(29, 136, 79, 0.28);
}

.inbox-tabs b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  color: #fcfbf9;
  background: #e5484d;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.inbox-tab-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fcfbf9;
}

.inbox-notice-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
  background: #fcfbf9;
}

.inbox-notice-card {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #fcfbf9, #fcfbf9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(21, 35, 28, 0.04);
}

.inbox-notice-card.is-unread {
  border-color: rgba(229, 72, 77, 0.38);
}

.inbox-notice-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inbox-notice-card strong {
  font-size: 13px;
}

.inbox-notice-card span {
  color: var(--muted);
  font-size: 11px;
}

.inbox-notice-card p {
  margin: 0;
  color: #43574c;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-list {
  min-height: 0;
  max-height: 170px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 10px;
  background: linear-gradient(180deg, #fbfaf7, #fcfbf9);
  border-bottom: 1px solid var(--line);
}

.inbox-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  color: var(--ink);
  text-align: left;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(21, 35, 28, 0.04);
}

.inbox-item-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inbox-item-top strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.inbox-item-top b {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.inbox-item-preview {
  min-width: 0;
  display: block;
  color: #506258;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-item.is-active {
  border-color: rgba(29, 136, 79, 0.42);
  background: linear-gradient(135deg, rgba(245, 239, 223, 0.92), #fcfbf9);
}

.inbox-item.is-unread strong::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
  background: #e5484d;
  border-radius: 50%;
}

.inbox-detail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fcfbf9;
}

.inbox-support-detail {
  flex: 1;
}

.inbox-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
}

.inbox-detail-title > div {
  min-width: 0;
}

.inbox-detail-title b {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.inbox-message-card {
  margin: 0 12px 10px;
  padding: 10px 11px;
  background: linear-gradient(180deg, #fcfbf9, #fcfbf9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.inbox-sender {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.inbox-message-body {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-thread {
  min-height: 72px;
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 10px;
  background: #fcfbf9;
}

.inbox-support-thread {
  padding-top: 2px;
}

.inbox-thread-item {
  max-width: 82%;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.inbox-thread-item + .inbox-thread-item {
  margin-top: 8px;
}

.inbox-thread-item.from-admin {
  justify-self: start;
  background: #fbfaf7;
}

.inbox-thread-item.from-user {
  justify-self: end;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: rgba(22, 104, 60, 0.38);
}

.inbox-thread-item strong {
  color: inherit;
  font-size: 11px;
}

.inbox-thread-item.from-user span {
  color: rgba(252, 251, 249, 0.76);
}

.inbox-thread-item p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-contact-link {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.inbox-thread-item.from-user .inbox-contact-link {
  color: inherit;
}

.inbox-reply-form {
  display: grid;
  gap: 7px;
  padding: 10px 12px 11px;
  background: linear-gradient(180deg, #fcfbf9, #fbfaf7);
  border-top: 1px solid var(--line);
}

.inbox-compose-form {
  margin: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.inbox-input-box {
  position: relative;
  min-width: 0;
}

.inbox-reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 66px;
  padding: 10px 98px 42px 11px;
  color: var(--ink);
  background: #fcfbf9;
  border: 1px solid #d1dfd8;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(21, 35, 28, 0.03);
}

.inbox-reply-form textarea:focus {
  border-color: rgba(29, 136, 79, 0.62);
  box-shadow: 0 0 0 3px rgba(29, 136, 79, 0.12);
}

.inbox-input-hint {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.inbox-send-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 80px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 104, 60, 0.2);
}

.inbox-send-button svg {
  width: 15px;
  height: 15px;
}

.inbox-send-button[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
  box-shadow: none;
}

.inbox-empty,
.inbox-readonly {
  margin: 0;
  padding: 18px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.inbox-empty p {
  margin: 0 0 10px;
}

.inbox-empty-action {
  min-height: 34px;
  padding: 0 14px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.flash-drop-layer {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}

.flash-drop-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.flash-drop-card {
  position: relative;
  width: min(100%, 344px);
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfbf9, #fbf9f4);
  border: 1px solid rgba(29, 136, 79, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(7, 35, 20, 0.24);
}

.flash-drop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.flash-drop-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.flash-drop-mark svg {
  width: 22px;
  height: 22px;
}

.flash-drop-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.flash-drop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.flash-drop-form {
  display: grid;
  gap: 10px;
}

.flash-drop-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #1b3628 !important;
  -webkit-text-fill-color: #1b3628;
  caret-color: #1d884f;
  color-scheme: light;
  background: #fcfbf9 !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flash-drop-form input::placeholder {
  color: #718487 !important;
  -webkit-text-fill-color: #718487;
  opacity: 1;
}

.flash-drop-form input:-webkit-autofill,
.flash-drop-form input:-webkit-autofill:hover,
.flash-drop-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b3628;
  box-shadow: 0 0 0 1000px #fcfbf9 inset;
  transition: background-color 9999s ease-out 0s;
}

.flash-drop-form input:focus {
  outline: none;
  border-color: rgba(29, 136, 79, 0.62);
  box-shadow: 0 0 0 3px rgba(29, 136, 79, 0.12);
}

.flash-drop-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.flash-drop-form button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.flash-drop-form button svg {
  width: 17px;
  height: 17px;
}

.app-download-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}

.app-download-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.app-download-card {
  position: relative;
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfbf9, #fbf9f4);
  border: 1px solid rgba(29, 136, 79, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(7, 35, 20, 0.24);
}

.app-download-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.app-download-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.app-download-mark svg {
  width: 22px;
  height: 22px;
}

.app-download-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.app-download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.app-download-choice {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.app-download-option {
  min-width: 0;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  color: #fcfbf9;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 0;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.app-download-option.ios {
  color: var(--primary-dark);
  background: linear-gradient(180deg, #fcfbf9, var(--primary-soft));
  border: 1px solid var(--line);
}

.app-download-option > span:last-child {
  min-width: 0;
  line-height: 1.2;
}

.app-download-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 14px rgba(8, 40, 23, 0.12);
}

.app-download-choice p {
  margin: 0;
  padding: 9px;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.first-withdraw-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}

.first-withdraw-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.first-withdraw-card {
  position: relative;
  width: min(100%, 350px);
  display: grid;
  gap: 13px;
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfbf9, #fbf9f4);
  border: 1px solid rgba(29, 136, 79, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(7, 35, 20, 0.24);
}

.first-withdraw-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.first-withdraw-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.first-withdraw-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.first-withdraw-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.first-withdraw-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.first-withdraw-support-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.first-withdraw-support-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.first-withdraw-support-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.recharge-channel-layer {
  position: fixed;
  inset: 0;
  z-index: 37;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}

.recharge-channel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.recharge-channel-card {
  position: relative;
  width: min(100%, 360px);
  display: grid;
  gap: 13px;
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfbf9, #fbf9f4);
  border: 1px solid rgba(29, 136, 79, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(7, 35, 20, 0.24);
}

.recharge-channel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recharge-channel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

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

.recharge-channel-card h2 {
  padding-right: 34px;
  font-size: 21px;
  line-height: 1.2;
}

.recharge-channel-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.recharge-channel-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--primary-dark);
  background: rgba(41, 179, 105, 0.14);
  border: 1px solid rgba(29, 136, 79, 0.24);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

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

.recharge-channel-option {
  min-width: 0;
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 10px;
  color: var(--primary-dark);
  background: #fcfbf9;
  border: 1px solid rgba(29, 136, 79, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(7, 35, 20, 0.08);
}

.recharge-channel-option strong,
.recharge-channel-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.recharge-channel-option strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.recharge-channel-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.recharge-channel-option.is-disabled,
.recharge-channel-option:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  color: rgba(18, 39, 28, 0.64);
  background: #d9e2dd;
  border-color: rgba(104, 135, 118, 0.24);
  box-shadow: none;
}

.recharge-channel-option:active {
  transform: translateY(1px);
}

.recharge-payment-redirect-card {
  justify-items: stretch;
  text-align: center;
}

.recharge-payment-redirect-card h2 {
  padding: 0 34px;
}

.recharge-payment-redirect-spinner {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #66de9e;
  background: rgba(102, 222, 158, 0.12);
  border: 1px solid rgba(102, 222, 158, 0.28);
  border-radius: 50%;
}

.recharge-payment-redirect-spinner svg {
  width: 25px;
  height: 25px;
  animation: spin 0.9s linear infinite;
}

.recharge-payment-redirect-spinner.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.34);
}

.recharge-payment-redirect-spinner.is-error svg {
  animation: none;
}

.recharge-payment-redirect-spinner.is-ready svg {
  animation: none;
}

.recharge-payment-manual-link,
.recharge-payment-return {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.recharge-payment-manual-link svg,
.recharge-payment-return svg {
  width: 18px;
  height: 18px;
}

.recharge-channel-card {
  overflow: hidden;
  gap: 15px;
  padding: 18px;
  color: #fdfbf6;
  background:
    radial-gradient(circle at 86% 10%, rgba(63, 194, 124, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(15, 65, 38, 0.98), rgba(5, 24, 14, 0.98) 62%, rgba(11, 41, 25, 0.98));
  border-color: rgba(129, 224, 173, 0.28);
  box-shadow: 0 28px 68px rgba(3, 13, 8, 0.46), inset 0 1px 0 rgba(252, 251, 249, 0.06);
}

.recharge-channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}

.recharge-channel-logo-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(250, 247, 239, 0.96);
  border: 1px solid rgba(129, 224, 173, 0.34);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(3, 13, 8, 0.26);
}

.recharge-channel-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recharge-channel-close {
  color: #84e5b1;
  background: rgba(8, 32, 19, 0.72);
  border-color: rgba(129, 224, 173, 0.34);
}

.recharge-channel-card h2 {
  padding-right: 0;
  color: #fdfbf7;
}

.recharge-channel-card p {
  color: rgba(246, 239, 222, 0.68);
}

.recharge-channel-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(5, 23, 13, 0.56);
  border: 1px solid rgba(129, 224, 173, 0.18);
  border-radius: 8px;
}

.recharge-channel-amount span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(246, 239, 222, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.recharge-channel-amount svg {
  width: 16px;
  height: 16px;
  color: #66de9e;
}

.recharge-channel-amount strong {
  color: #fcfbf9;
  font-size: 18px;
  line-height: 1.15;
}

.recharge-channel-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #f8f3e5;
  background: rgba(43, 188, 111, 0.12);
  border-color: rgba(102, 222, 158, 0.3);
}

.recharge-channel-notice svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #66de9e;
}

.recharge-channel-actions {
  gap: 12px;
}

.recharge-channel-option {
  min-height: 130px;
  align-content: stretch;
  justify-items: stretch;
  gap: 8px;
  padding: 12px;
  text-align: left;
  color: #fdfbf7;
  background:
    linear-gradient(180deg, rgba(17, 65, 39, 0.92), rgba(8, 32, 19, 0.96));
  border-color: rgba(129, 224, 173, 0.28);
  box-shadow: 0 14px 26px rgba(3, 13, 8, 0.28), inset 0 1px 0 rgba(252, 251, 249, 0.05);
}

.recharge-channel-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recharge-channel-bank-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0c351f;
  background: linear-gradient(135deg, #66de9e, #fbf9f3);
  border-radius: 8px;
}

.recharge-channel-bank-icon svg {
  width: 18px;
  height: 18px;
}

.recharge-channel-status {
  padding: 4px 7px;
  color: #0b321d;
  background: #83e5b1;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.recharge-channel-status.is-off {
  color: rgba(253, 251, 246, 0.72);
  background: rgba(152, 180, 165, 0.28);
}

.recharge-channel-option strong {
  color: #fcfbf9;
  font-size: 17px;
}

.recharge-channel-option span {
  color: rgba(246, 239, 222, 0.76);
}

.recharge-channel-option .recharge-channel-bank-icon {
  color: #0c351f;
}

.recharge-channel-option .recharge-channel-status {
  color: #0b321d;
}

.recharge-channel-option .recharge-channel-status.is-off {
  color: rgba(253, 251, 246, 0.72);
}

.recharge-channel-option em {
  align-self: end;
  color: #66de9e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.recharge-channel-option.is-disabled,
.recharge-channel-option:disabled {
  opacity: 0.56;
  color: rgba(253, 251, 246, 0.66);
  background: rgba(18, 40, 28, 0.72);
  border-color: rgba(152, 180, 165, 0.22);
}

.bank-picker-layer {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(4, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}

.bank-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.bank-picker-card {
  position: relative;
  width: min(100%, 420px);
  max-height: min(76vh, 620px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  color: #fcfaf5;
  background:
    radial-gradient(circle at top right, rgba(59, 213, 131, 0.14), transparent 34%),
    linear-gradient(180deg, #0b2f1c 0%, #071f12 100%);
  border: 1px solid rgba(63, 194, 124, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(2, 10, 6, 0.42);
}

.bank-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bank-picker-head span,
.bank-picker-subhead span {
  color: rgba(217, 246, 231, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.bank-picker-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.bank-picker-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1a6b40;
  background: #faf7ef;
  border: 1px solid rgba(63, 194, 124, 0.48);
  border-radius: 8px;
  cursor: pointer;
}

.bank-picker-close:hover,
.bank-picker-close:focus-visible {
  color: #092a18;
  background: #fcfbf9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 194, 124, 0.18);
}

.bank-picker-close svg {
  width: 17px;
  height: 17px;
}

.bank-picker-search {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: rgba(5, 23, 13, 0.72);
  border: 1px solid rgba(63, 194, 124, 0.34);
  border-radius: 8px;
}

.bank-picker-search:focus-within {
  border-color: rgba(29, 136, 79, 0.62);
  box-shadow: 0 0 0 3px rgba(29, 136, 79, 0.12);
}

.bank-picker-search svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.bank-picker-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fcfaf5;
  background: transparent;
  font-size: 15px;
}

.bank-picker-search input::placeholder {
  color: rgba(217, 246, 231, 0.58);
}

.bank-picker-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bank-picker-results {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.bank-picker-option {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  color: #fcfaf5;
  background: rgba(6, 29, 17, 0.86);
  border: 1px solid rgba(63, 194, 124, 0.24);
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bank-picker-option:focus-visible,
.bank-picker-option:hover {
  outline: none;
  background: rgba(9, 45, 26, 0.96);
  border-color: rgba(63, 194, 124, 0.58);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.bank-picker-option span {
  color: #fcfaf5;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bank-picker-option small {
  color: #3fc27c;
  font-size: 12px;
  font-weight: 800;
}

.bank-picker-empty {
  padding: 28px 12px;
  color: rgba(217, 246, 231, 0.72);
  text-align: center;
  border: 1px dashed rgba(63, 194, 124, 0.32);
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 80;
  max-width: min(360px, calc(100% - 36px));
  transform: translate(-50%, 16px);
  padding: 11px 14px;
  color: #fcfbf9;
  background: rgba(21, 35, 28, 0.92);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 13px;
}

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

.activity-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 20, 13, 0.48);
  backdrop-filter: blur(8px);
}

.activity-popup-card {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px 18px;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 159, 61, 0.18), transparent 26%),
    linear-gradient(180deg, #fcfbf9, #fbfaf7);
  border: 1px solid rgba(252, 251, 249, 0.78);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(6, 26, 15, 0.24);
}

.activity-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fcfbf9;
  background: rgba(6, 31, 18, 0.86);
  border: 1px solid rgba(116, 226, 167, 0.42);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(252, 251, 249, 0.12);
  backdrop-filter: blur(8px);
}

.activity-popup-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.8;
}

.activity-popup-close:hover {
  background: rgba(20, 95, 55, 0.92);
  border-color: rgba(136, 230, 180, 0.72);
}

.activity-popup-image {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.activity-popup-card span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.activity-popup-card h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.activity-popup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.activity-popup-primary {
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
  color: #fcfbf9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  font-weight: 900;
}

.activity-popup-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 8px;
}

.activity-popup-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.activity-popup-secondary svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 760px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100vh - 44px);
    border-radius: 14px;
    overflow: hidden;
  }

  .screen {
    min-height: calc(100vh - 44px);
  }

  .bottom-nav {
    bottom: 22px;
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width: 520px) {
  .quick-grid {
    gap: 7px;
  }

  .quick-feature-grid {
    gap: 8px;
  }

  .quick-link,
  .quick-link-compact {
    height: 94px;
    padding-inline: 4px;
  }

  .quick-link-featured.quick-link-image-tile {
    height: 128px;
  }

  .quick-link-art {
    width: 39px;
    height: 39px;
  }

  .quick-link-art svg {
    width: 20px;
    height: 20px;
  }

  .job-application-landing {
    min-height: calc(100vh - 104px);
    grid-template-rows: minmax(190px, 1fr) minmax(190px, 1fr);
  }

  .job-entry-card,
  .job-hero {
    background-image:
      linear-gradient(180deg, rgba(253, 252, 248, 0.98) 0%, rgba(253, 252, 248, 0.78) 62%, rgba(253, 252, 248, 0.44) 100%),
      var(--job-bg);
  }

  .job-entry-card {
    min-height: 190px;
    padding: 15px;
  }

  .job-entry-card strong {
    font-size: 19px;
  }

  .job-hero {
    min-height: 196px;
    padding: 16px;
  }

  .job-hero h2 {
    font-size: 24px;
  }

  .job-action-panel,
  .job-progress-head,
  .job-requirements div {
    align-items: stretch;
    flex-direction: column;
  }

  .job-action-panel .primary-btn,
  .job-promote-btn {
    width: 100%;
  }

  .job-status-grid,
  .job-salary-row {
    grid-template-columns: 1fr;
  }

  .floating-inbox {
    right: 12px;
  }

  .inbox-panel {
    width: calc(100vw - 24px);
  }

  .inbox-panel-body {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .certificate-preview-layer {
    padding: 10px;
  }

  .certificate-preview-panel {
    width: 96vw;
    max-height: 94vh;
  }

  .invite-qr-layer {
    padding: 10px;
  }
}

@media (max-width: 360px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .company-certificate-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-link.company-home-link {
    grid-column: auto;
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invite-code-actions,
  .invite-qr-actions {
    grid-template-columns: 1fr;
  }

  .brand-copy h1 {
    font-size: 24px;
  }
}

/* Unified VTX power-bank visual system for all signed-in pages. */
:root {
  color-scheme: dark;
  --bg: #061a0f;
  --surface: #0c2c1b;
  --surface-2: #071f12;
  --ink: #fbf9f3;
  --muted: rgba(246, 239, 222, 0.7);
  --line: rgba(129, 224, 173, 0.2);
  --primary: #2bbc6f;
  --primary-dark: #197845;
  --primary-soft: rgba(71, 209, 135, 0.14);
  --accent: #f4b65d;
  --success: #50c587;
  --shadow: 0 20px 42px rgba(3, 13, 8, 0.34);
}

html,
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(71, 209, 135, 0.18), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(244, 182, 93, 0.11), transparent 28%),
    linear-gradient(180deg, #0a2818 0%, #061a0f 44%, #04120b 100%);
  color: var(--ink);
}

.app-shell {
  background: #071c11;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.screen:not(.auth-screen) {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 32, 19, 0.96), rgba(4, 20, 11, 0.98)),
    url("/assets/ui/nav-charge-badge.png?v=1") right -86px top 88px / 220px no-repeat,
    url("/assets/ui/quick-powerbank-tile.png?v=1") left -108px bottom 120px / 280px no-repeat;
}

.screen:not(.auth-screen)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(71, 209, 135, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(71, 209, 135, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 74%);
  opacity: 0.42;
}

.screen:not(.auth-screen)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 16%, rgba(71, 209, 135, 0.12), transparent 30%),
    radial-gradient(circle at 14% 74%, rgba(244, 182, 93, 0.09), transparent 32%);
}

.screen:not(.auth-screen) > * {
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 50px;
  padding: 8px 10px;
  color: #fcfaf5;
  background: rgba(8, 32, 19, 0.72);
  border: 1px solid rgba(129, 224, 173, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(3, 13, 8, 0.22);
  backdrop-filter: blur(14px);
}

.topbar-title h1,
.section-title h2 {
  color: #fdfbf7;
}

.topbar-title p,
.section-title .section-subtitle {
  color: var(--muted);
}

.icon-btn {
  color: #faf7ef;
  background: rgba(10, 39, 24, 0.86);
  border-color: rgba(129, 224, 173, 0.22);
  box-shadow: inset 0 0 0 1px rgba(252, 251, 249, 0.04), 0 10px 20px rgba(3, 13, 8, 0.22);
}

.hero-band {
  overflow: hidden;
  border: 1px solid rgba(129, 224, 173, 0.18);
  background:
    linear-gradient(135deg, rgba(26, 120, 70, 0.95), rgba(9, 37, 22, 0.94) 58%, rgba(244, 182, 93, 0.56)),
    url("/assets/ui/quick-powerbank-tile.png?v=1") right -42px top -44px / 190px no-repeat;
  box-shadow: 0 18px 38px rgba(3, 13, 8, 0.3);
}

.hero-actions button,
.hero-actions a {
  color: #faf7ef;
  background: rgba(8, 32, 19, 0.82);
  border: 1px solid rgba(129, 224, 173, 0.22);
  box-shadow: inset 0 0 0 1px rgba(252, 251, 249, 0.04);
}

.stats-grid .stat,
.stat,
.section,
.form-card,
.list,
.row,
.record,
.message,
.empty,
.notice,
.support-contact-card,
.support-activity-feed,
.vip-info-card,
.vip-intro-card,
.vip-income-grid div,
.vip-level-card,
.vip-card-note,
.income-level-card,
.daily-income-panel,
.task-income-table,
.reward-table,
.points-rule-card,
.points-exchange-row,
.wealth-plan-card,
.wealth-rate-table,
.wealth-order-row,
.bank-picker-card,
.bank-picker-empty,
.helpbook-row,
.help-detail-section,
.activity-config-card,
.company-certificate-card,
.job-entry-card,
.job-position-card,
.job-action-panel,
.job-progress-panel,
.job-empty-state,
.job-salary-row,
.credit-score-card,
.user-dashboard-stats,
.user-stat-tile,
.invite-guide-card,
.team-member-card,
.income-detail-row,
.first-withdraw-card,
.flash-drop-card,
.app-download-card,
.activity-popup-card,
.invite-qr-panel,
.certificate-preview-panel,
.inbox-panel {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(14, 46, 29, 0.9), rgba(8, 29, 18, 0.95));
  border-color: rgba(129, 224, 173, 0.18);
  box-shadow: 0 14px 30px rgba(3, 13, 8, 0.18), inset 0 1px 0 rgba(252, 251, 249, 0.04);
}

.section {
  padding: 14px;
  border: 1px solid rgba(129, 224, 173, 0.16);
  border-radius: 8px;
}

.list {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stat span,
.record span,
.row-main span,
.message p,
.empty,
.notice,
.help-detail-section p,
.activity-popup-card p,
.first-withdraw-card p,
.app-download-card p,
.flash-drop-card p {
  color: var(--muted);
}

.app-download-card .app-download-choice p {
  color: #274736;
  background: #fdfcf8;
  border-color: rgba(63, 194, 124, 0.28);
}

.app-download-card .app-download-choice p {
  font-weight: 700;
}

.stat strong,
.row-main strong,
.record strong,
.message h3,
.support-contact-main strong,
.income-detail-row strong,
.vip-info-card h3,
.vip-intro-card h3,
.points-rule-card strong,
.wealth-plan-card strong,
.help-detail-section h3,
.activity-config-card h2 {
  color: #fdfbf7;
}

.section-title a,
.section-title button,
.row-action,
.support-contact-action,
.record .income,
.income {
  color: #66de9e;
}

.record .outcome,
.outcome {
  color: #ffb76a;
}

.row-icon,
.support-contact-icon,
.support-activity-icon,
.vip-intro-list span {
  color: #faf7ef;
  background:
    linear-gradient(180deg, rgba(44, 188, 111, 0.26), rgba(25, 120, 69, 0.28)),
    url("/assets/ui/nav-charge-badge.png?v=1") center / cover no-repeat;
  border: 1px solid rgba(129, 224, 173, 0.2);
  box-shadow: 0 8px 16px rgba(3, 13, 8, 0.2);
}

.input-wrap,
.select-wrap,
.bank-select-button,
.inbox-reply-form textarea,
.inbox-compose-form textarea,
textarea {
  color: #fdfbf7;
  background: rgba(5, 23, 13, 0.72);
  border-color: rgba(129, 224, 173, 0.2);
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.04);
}

.input-wrap input,
.select-wrap select,
.bank-select-button span,
textarea {
  color: #fdfbf7;
}

.input-wrap input::placeholder,
textarea::placeholder {
  color: rgba(246, 239, 222, 0.48);
}

.inbox-panel {
  color: #15231c;
  background: #fcfbf9;
  border-color: rgba(220, 231, 225, 0.95);
  box-shadow: 0 24px 58px rgba(13, 39, 25, 0.24);
}

.inbox-panel-head {
  background:
    radial-gradient(circle at 16% 0%, rgba(29, 136, 79, 0.16), transparent 34%),
    linear-gradient(180deg, #fcfbf9, #fbfaf7);
  border-bottom-color: #dce7e1;
}

.inbox-panel-head button {
  color: #176c3f;
  background: #fbf7ef;
  border-color: rgba(29, 136, 79, 0.2);
}

.inbox-panel-head button svg {
  stroke: currentColor;
}

.inbox-brand strong,
.inbox-detail-title strong,
.inbox-notice-card strong,
.inbox-thread-item.from-admin strong {
  color: #15231c;
}

.inbox-brand em,
.inbox-detail-title span,
.inbox-notice-card span,
.inbox-item-meta,
.inbox-thread-item.from-admin span,
.inbox-input-hint {
  color: #607174;
}

.inbox-tabs,
.inbox-tab-panel,
.inbox-notice-list,
.inbox-detail,
.inbox-thread {
  background: #fcfbf9;
}

.inbox-tabs {
  border-bottom-color: #dce7e1;
}

.inbox-tabs button {
  color: #607174;
  background: #fcfbf9;
  border-color: #dce7e1;
}

.inbox-tabs button.active {
  color: #16683c;
  background: #f5efdf;
  border-color: rgba(29, 136, 79, 0.28);
}

.inbox-notice-card,
.inbox-thread-item.from-admin {
  color: #15231c;
  background: #fbfaf7;
  border-color: #dce7e1;
}

.inbox-notice-card p,
.inbox-thread-item.from-admin p,
.inbox-thread-item.from-admin .notranslate,
.inbox-message-body {
  color: #43574c;
}

.bank-picker-card {
  color: #fcfaf5;
  background:
    radial-gradient(circle at top right, rgba(59, 213, 131, 0.14), transparent 34%),
    linear-gradient(180deg, #0b2f1c 0%, #071f12 100%);
  border-color: rgba(63, 194, 124, 0.34);
}

.bank-picker-option {
  color: #fcfaf5;
  background: rgba(6, 29, 17, 0.86);
  border-color: rgba(63, 194, 124, 0.24);
}

.bank-picker-option:hover,
.bank-picker-option:focus-visible {
  background: rgba(9, 45, 26, 0.96);
  border-color: rgba(63, 194, 124, 0.58);
}

.bank-picker-option span {
  color: #fcfaf5;
}

.bank-picker-option small {
  color: #3fc27c;
}

.bank-picker-close {
  color: #1a6b40;
  background: #faf7ef;
  border-color: rgba(63, 194, 124, 0.48);
}

.primary-btn,
.activity-popup-primary {
  color: #fcfbf9;
  background: linear-gradient(135deg, #31c476, #197845);
  border: 1px solid rgba(129, 224, 173, 0.22);
  box-shadow: 0 12px 24px rgba(43, 188, 111, 0.18);
}

.secondary-btn,
.ghost-btn,
.activity-popup-secondary,
.record-pagination button,
.vip-pager a,
.vip-pager span {
  color: #faf7ef;
  background: rgba(8, 32, 19, 0.82);
  border: 1px solid rgba(129, 224, 173, 0.18);
}

.vip-stage,
.vip-feature-card {
  color: #fdfbf7;
  background:
    linear-gradient(150deg, rgba(25, 120, 69, 0.96), rgba(8, 32, 19, 0.96) 58%, rgba(244, 182, 93, 0.38)),
    url("/assets/ui/quick-powerbank-tile.png?v=1") right -58px top -54px / 210px no-repeat;
  border-color: rgba(129, 224, 173, 0.18);
}

.vip-feature-main span,
.vip-feature-main em,
.vip-feature-price span,
.vip-level-card span,
.vip-level-card em {
  color: rgba(251, 247, 239, 0.72);
}

.vip-level-card.active,
.vip-level-card.owned {
  background:
    linear-gradient(180deg, rgba(43, 188, 111, 0.24), rgba(8, 32, 19, 0.94));
  border-color: rgba(102, 222, 158, 0.45);
}

.vip-table-head,
.vip-table-row,
.wealth-rate-row,
.reward-table-head,
.reward-table-row,
.task-income-row {
  color: var(--ink);
  background: rgba(5, 23, 13, 0.54);
  border-color: rgba(129, 224, 173, 0.13);
}

.vip-table-head,
.wealth-rate-row.head,
.reward-table-head {
  background: rgba(43, 188, 111, 0.15);
}

.screen:not(.auth-screen) .vip-info-card h3,
.screen:not(.auth-screen) .vip-table-head,
.screen:not(.auth-screen) .wealth-rate-row.head,
.screen:not(.auth-screen) .reward-table-head,
.screen:not(.auth-screen) .task-income-table-head {
  color: #fdfbf7;
  background: linear-gradient(90deg, rgba(43, 188, 111, 0.22), rgba(25, 120, 69, 0.2));
  border-color: rgba(129, 224, 173, 0.18);
}

.screen:not(.auth-screen) .vip-table-row,
.screen:not(.auth-screen) .vip-table-row:nth-child(odd),
.screen:not(.auth-screen) .wealth-rate-row,
.screen:not(.auth-screen) .reward-table-row,
.screen:not(.auth-screen) .task-income-row,
.screen:not(.auth-screen) .vip-card-note {
  color: #fdfbf7;
  background: rgba(5, 23, 13, 0.56);
  border-color: rgba(129, 224, 173, 0.13);
}

.screen:not(.auth-screen) .vip-table-row:nth-child(even),
.screen:not(.auth-screen) .wealth-rate-row:nth-child(even),
.screen:not(.auth-screen) .reward-table-row:nth-child(even),
.screen:not(.auth-screen) .task-income-row:nth-child(even) {
  background: rgba(14, 46, 29, 0.72);
}

.screen.user-dashboard-screen {
  color: #fdfbf7;
  background:
    linear-gradient(180deg, rgba(8, 32, 19, 0.96), rgba(4, 20, 11, 0.98)),
    url("/assets/ui/nav-charge-badge.png?v=1") right -76px top 118px / 230px no-repeat,
    url("/assets/ui/quick-powerbank-tile.png?v=1") left -120px bottom 140px / 300px no-repeat;
}

.user-dashboard-screen::before {
  background:
    linear-gradient(90deg, rgba(71, 209, 135, 0.08), transparent 42%, rgba(244, 182, 93, 0.06)),
    repeating-linear-gradient(0deg, rgba(71, 209, 135, 0.08) 0 1px, transparent 1px 5px);
}

.user-wallet-link,
.user-profile-head strong,
.user-profile-head span,
.user-balance-block span,
.user-menu-tile {
  color: #fdfbf7;
}

.user-profile-head span,
.user-balance-block span,
.credit-score-card em,
.user-asset-strip span {
  color: rgba(246, 239, 222, 0.68);
}

.user-balance-block strong {
  color: #66de9e;
  text-shadow: 0 0 18px rgba(102, 222, 158, 0.18);
}

.user-balance-block button,
.vip-owned-label {
  color: #faf7ef;
  background: rgba(8, 32, 19, 0.86);
  border: 1px solid rgba(129, 224, 173, 0.22);
  box-shadow: 0 10px 20px rgba(3, 13, 8, 0.22);
}

.user-avatar {
  background:
    linear-gradient(180deg, rgba(44, 188, 111, 0.34), rgba(25, 120, 69, 0.32)),
    url("/assets/ui/nav-charge-badge.png?v=1") center / cover no-repeat;
  border-color: rgba(250, 247, 239, 0.82);
  box-shadow: 0 0 20px rgba(71, 209, 135, 0.28);
}

.credit-score-card,
.user-asset-strip,
.user-asset-strip.frozen {
  color: #fdfbf7;
  background: linear-gradient(180deg, rgba(14, 46, 29, 0.9), rgba(8, 29, 18, 0.95));
  border-color: rgba(129, 224, 173, 0.18);
  box-shadow: 0 14px 30px rgba(3, 13, 8, 0.18), inset 0 1px 0 rgba(252, 251, 249, 0.04);
}

.credit-score-card::after {
  border-color: rgba(102, 222, 158, 0.58);
}

.credit-score-card span,
.user-asset-strip strong {
  color: #fdfbf7;
}

.credit-score-card strong {
  color: #66de9e;
}

.user-menu-icon,
.user-menu-tile:nth-child(3n + 1) .user-menu-icon,
.user-menu-tile:nth-child(3n + 2) .user-menu-icon,
.user-menu-tile:nth-child(3n) .user-menu-icon {
  color: #fcfbf9;
  background:
    linear-gradient(180deg, rgba(44, 188, 111, 0.28), rgba(25, 120, 69, 0.28)),
    url("/assets/ui/nav-charge-badge.png?v=1") center / cover no-repeat;
  border-color: rgba(129, 224, 173, 0.28);
  box-shadow: 0 10px 20px rgba(3, 13, 8, 0.24), 0 0 18px rgba(71, 209, 135, 0.16);
}

.user-menu-tile > span:last-child {
  color: rgba(251, 247, 239, 0.82);
}

.screen:not(.auth-screen) .amount-chip {
  color: #f8f3e5;
  background: rgba(14, 56, 34, 0.72);
  border-color: rgba(102, 222, 158, 0.34);
  box-shadow: inset 0 0 0 1px rgba(102, 222, 158, 0.04);
}

.screen:not(.auth-screen) .amount-chip.active,
.screen:not(.auth-screen) .wealth-plan-card.active {
  color: #fcfbf9;
  background: linear-gradient(135deg, rgba(51, 198, 120, 0.94), rgba(25, 120, 69, 0.9));
  border-color: rgba(102, 222, 158, 0.78);
  box-shadow: 0 0 0 1px rgba(102, 222, 158, 0.18), 0 10px 22px rgba(3, 13, 8, 0.22);
}

.screen:not(.auth-screen) .invite-code-button {
  color: #fdfbf7;
  background:
    linear-gradient(180deg, rgba(14, 46, 29, 0.9), rgba(8, 29, 18, 0.95));
  border-color: rgba(129, 224, 173, 0.2);
  box-shadow: 0 14px 30px rgba(3, 13, 8, 0.18), inset 0 1px 0 rgba(252, 251, 249, 0.04);
}

.screen:not(.auth-screen) .invite-code-button > svg,
.screen:not(.auth-screen) .invite-code-button strong {
  color: #66de9e;
}

.screen:not(.auth-screen) .invite-code-button small {
  color: rgba(246, 239, 222, 0.68);
}

.progress-track,
.task-progress {
  background: rgba(5, 23, 13, 0.7);
}

.progress-track i,
.task-progress i,
.income-bar i {
  background: linear-gradient(90deg, #66de9e, #f4b65d);
}

.bottom-nav {
  border-top-color: rgba(129, 224, 173, 0.2);
}

.newcomer-reward-layer {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 205, 91, 0.22), transparent 26%),
    rgba(3, 13, 8, 0.78);
  backdrop-filter: blur(8px);
}

.newcomer-reward-card {
  width: min(390px, 100%);
  position: relative;
  overflow: hidden;
  padding: 18px 18px 20px;
  text-align: center;
  color: #fdfbf7;
  border: 1px solid rgba(255, 218, 116, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 56, 34, 0.96), rgba(5, 23, 13, 0.98)),
    radial-gradient(circle at 50% 12%, rgba(255, 205, 91, 0.16), transparent 42%);
  box-shadow: 0 24px 70px rgba(3, 13, 8, 0.48), inset 0 1px 0 rgba(252, 251, 249, 0.08);
}

.newcomer-reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(102, 222, 158, 0.12), transparent 38%, rgba(244, 182, 93, 0.12));
}

.newcomer-reward-brand {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(250, 247, 239, 0.95);
  box-shadow: 0 12px 26px rgba(3, 13, 8, 0.22);
}

.newcomer-reward-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.newcomer-reward-visual {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: grid;
  place-items: center;
  margin: -2px auto -6px;
}

.newcomer-reward-visual::before {
  content: "";
  position: absolute;
  width: min(250px, 76%);
  height: min(250px, 76%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 116, 0.42), rgba(102, 222, 158, 0.12) 48%, transparent 70%);
  filter: blur(2px);
}

.newcomer-reward-image {
  position: relative;
  z-index: 1;
  width: min(280px, 86%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(3, 13, 8, 0.38));
}

.newcomer-reward-amount-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 0;
  color: #ffe9a6;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.newcomer-reward-amount-badge::before,
.newcomer-reward-amount-badge::after {
  display: none;
}

.newcomer-reward-amount-badge::before {
  right: calc(100% + 10px);
}

.newcomer-reward-amount-badge::after {
  left: calc(100% + 10px);
}

.newcomer-reward-amount-badge small {
  display: block;
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #fcfbf9;
  text-shadow:
    0 1px 0 rgba(7, 31, 18, 0.9),
    0 0 10px rgba(255, 218, 116, 0.66),
    0 4px 12px rgba(3, 13, 8, 0.52);
}

.newcomer-reward-amount-badge strong {
  display: block;
  color: #ffe9a6;
  font-size: 48px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  -webkit-text-stroke: 1.5px rgba(9, 40, 23, 0.92);
  text-shadow:
    0 2px 0 rgba(252, 251, 249, 0.52),
    0 5px 0 rgba(143, 78, 3, 0.78),
    0 0 18px rgba(255, 218, 116, 0.82),
    0 16px 26px rgba(3, 13, 8, 0.58);
}

.newcomer-reward-copy,
.newcomer-reward-claim {
  position: relative;
  z-index: 1;
}

.newcomer-reward-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: #103521;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe7a3, #f4b65d);
}

.newcomer-reward-copy h2 {
  margin: 12px 0 8px;
  color: #fcfbf9;
  font-size: 22px;
  line-height: 1.18;
}

.newcomer-reward-copy p {
  margin: 0 auto 16px;
  max-width: 310px;
  color: rgba(251, 247, 239, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.newcomer-reward-claim {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 8px;
  color: #0d3520;
  background: linear-gradient(135deg, #ffe7a3, #f4b65d);
  border-color: rgba(255, 218, 116, 0.8);
  box-shadow: 0 16px 34px rgba(244, 182, 93, 0.22);
}

.newcomer-reward-claim svg {
  width: 20px;
  height: 20px;
}

.newcomer-reward-claim:disabled svg {
  animation: spin 0.8s linear infinite;
}

/* Home cleanup and dark modal consistency */
.screen:has(> .hero-band) {
  padding-top: 8px;
}

.screen:has(> .hero-band) > .topbar,
.hero-band .invite-strip {
  display: none !important;
}

.screen:has(> .hero-band) > .hero-band {
  margin-top: 0;
}

.inbox-panel {
  color: #fdfbf7 !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(102, 222, 158, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 46, 28, 0.98), rgba(6, 26, 15, 0.98)) !important;
  border-color: rgba(129, 224, 173, 0.3) !important;
  box-shadow: 0 24px 58px rgba(3, 13, 8, 0.42), inset 0 1px 0 rgba(252, 251, 249, 0.06) !important;
}

.inbox-panel-head {
  background:
    radial-gradient(circle at 16% 0%, rgba(102, 222, 158, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 51, 30, 0.98), rgba(7, 34, 20, 0.98)) !important;
  border-bottom-color: rgba(129, 224, 173, 0.18) !important;
}

.inbox-panel-head button,
.activity-popup-close,
.app-download-close,
.flash-drop-close,
.first-withdraw-close,
.recharge-channel-close,
.bank-picker-close,
.invite-qr-close,
.certificate-preview-close {
  color: #faf7ef !important;
  background: rgba(9, 35, 21, 0.92) !important;
  border-color: rgba(129, 224, 173, 0.45) !important;
  box-shadow: 0 10px 24px rgba(3, 13, 8, 0.3), inset 0 1px 0 rgba(252, 251, 249, 0.08) !important;
}

.inbox-panel-head button svg,
.activity-popup-close svg,
.app-download-close svg,
.flash-drop-close svg,
.first-withdraw-close svg,
.recharge-channel-close svg,
.bank-picker-close svg,
.invite-qr-close svg,
.certificate-preview-close svg {
  stroke: currentColor !important;
}

.inbox-brand strong,
.inbox-detail-title strong,
.inbox-notice-card strong,
.inbox-thread-item.from-admin strong {
  color: #fdfbf7 !important;
}

.inbox-brand em,
.inbox-detail-title span,
.inbox-notice-card span,
.inbox-item-meta,
.inbox-thread-item.from-admin span,
.inbox-input-hint,
.inbox-empty {
  color: rgba(246, 239, 222, 0.72) !important;
}

.inbox-tabs,
.inbox-tab-panel,
.inbox-notice-list,
.inbox-detail,
.inbox-thread {
  background: rgba(5, 23, 13, 0.72) !important;
}

.inbox-tabs {
  border-bottom-color: rgba(129, 224, 173, 0.16) !important;
}

.inbox-tabs button {
  color: rgba(246, 239, 222, 0.78) !important;
  background: rgba(9, 35, 21, 0.78) !important;
  border-color: rgba(129, 224, 173, 0.22) !important;
}

.inbox-tabs button.active {
  color: #0a2617 !important;
  background: linear-gradient(135deg, #a6ecc7, #46c682) !important;
  border-color: rgba(176, 238, 205, 0.62) !important;
}

.inbox-notice-card,
.inbox-thread-item.from-admin,
.inbox-list,
.inbox-reply-form,
.inbox-compose-form {
  color: #fdfbf7 !important;
  background: rgba(10, 41, 24, 0.86) !important;
  border-color: rgba(129, 224, 173, 0.2) !important;
}

.inbox-notice-card p,
.inbox-thread-item.from-admin p,
.inbox-thread-item.from-admin .notranslate,
.inbox-message-body,
.inbox-empty p {
  color: rgba(249, 244, 232, 0.88) !important;
}

.inbox-reply-form textarea,
.inbox-compose-form textarea {
  color: #fdfbf7 !important;
  background: rgba(5, 23, 13, 0.84) !important;
  border-color: rgba(129, 224, 173, 0.24) !important;
}

.activity-popup-card,
.app-download-card,
.flash-drop-card,
.first-withdraw-card,
.recharge-channel-card,
.bank-picker-card,
.invite-qr-panel,
.certificate-preview-panel {
  color: #fdfbf7 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(102, 222, 158, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(12, 46, 28, 0.98), rgba(6, 26, 15, 0.98)) !important;
  border-color: rgba(129, 224, 173, 0.28) !important;
}

.activity-popup-card h2,
.activity-popup-card span,
.app-download-card h2,
.flash-drop-card h2,
.first-withdraw-card h2,
.recharge-channel-card h2,
.bank-picker-card h2,
.invite-qr-panel h2,
.certificate-preview-panel h2 {
  color: #fdfbf7 !important;
}

.activity-popup-card p,
.app-download-card p,
.flash-drop-card p,
.first-withdraw-card p,
.recharge-channel-card p,
.bank-picker-card p,
.invite-qr-panel p,
.certificate-preview-panel p {
  color: rgba(246, 239, 222, 0.78) !important;
}

.support-contact-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(102, 222, 158, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 50, 30, 0.92), rgba(7, 32, 19, 0.95)) !important;
  border-color: rgba(129, 224, 173, 0.24) !important;
}

.app-download-card .app-download-choice p {
  color: #274736 !important;
  background: #fdfcf8 !important;
  border-color: rgba(63, 194, 124, 0.28) !important;
}

.quick-link-image-tile .quick-link-art-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
}

.quick-link-image-tile .quick-link-art-image img {
  width: 100% !important;
  height: 118% !important;
  object-fit: cover !important;
  object-position: center 22% !important;
  transform: translateY(-7%) !important;
}

.quick-link-featured.quick-link-image-tile .quick-link-art-image img {
  height: 114% !important;
  object-position: center 20% !important;
  transform: translateY(-5%) !important;
}

.quick-link-image-tile::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  height: 40% !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(4, 20, 11, 0), rgba(4, 20, 11, 0.88) 62%, rgba(4, 20, 11, 0.96)) !important;
}

.quick-link-image-tile .quick-link-label {
  top: 50% !important;
  bottom: auto !important;
  left: 7px !important;
  right: 7px !important;
  z-index: 5 !important;
  min-height: 28px !important;
  padding: 4px 7px !important;
  transform: translateY(-50%) !important;
  background:
    linear-gradient(135deg, rgba(252, 251, 249, 0.26), rgba(140, 231, 182, 0.16) 44%, rgba(8, 40, 23, 0.28)) !important;
  border: 1px solid rgba(201, 244, 221, 0.56) !important;
  border-radius: 999px !important;
  box-shadow:
    0 8px 16px rgba(2, 12, 7, 0.26),
    inset 0 1px 0 rgba(252, 251, 249, 0.48),
    inset 0 -1px 0 rgba(45, 210, 122, 0.2),
    0 0 18px rgba(108, 224, 162, 0.18) !important;
  backdrop-filter: blur(9px) saturate(1.55) !important;
}

.quick-link-featured.quick-link-image-tile .quick-link-label {
  left: 10px !important;
  right: 10px !important;
  min-height: 38px !important;
  font-size: 16px !important;
}

.quick-link-image-tile .quick-link-art-image img {
  height: 165% !important;
  object-position: center top !important;
  transform: translateY(0) !important;
}

.quick-link-featured.quick-link-image-tile .quick-link-art-image img {
  height: 156% !important;
  object-position: center top !important;
  transform: translateY(0) !important;
}

.quick-link-image-tile::after {
  height: 52% !important;
  background:
    linear-gradient(180deg, rgba(4, 20, 11, 0), rgba(4, 20, 11, 0.82) 48%, rgba(4, 20, 11, 0.98)) !important;
}

.job-career-page {
  display: grid;
  gap: 14px;
  padding-bottom: 12px;
}

.job-career-hero {
  --job-career-bg: none;
  position: relative;
  min-height: 208px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px;
  color: #fdfbf6;
  background-image:
    linear-gradient(90deg, rgba(6, 30, 17, 0.96) 0%, rgba(8, 39, 22, 0.86) 52%, rgba(8, 36, 21, 0.3) 100%),
    linear-gradient(180deg, rgba(4, 20, 11, 0.08), rgba(4, 20, 11, 0.64)),
    var(--job-career-bg);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(124, 222, 170, 0.3);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(3, 14, 8, 0.25);
}

.job-career-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% 20%, rgba(73, 206, 135, 0.18), transparent 34%),
    linear-gradient(180deg, transparent 50%, rgba(4, 18, 11, 0.18));
}

.job-career-hero > div {
  position: relative;
  z-index: 1;
  max-width: 330px;
}

.job-career-hero span,
.job-career-section-head > div > span {
  color: #63d598;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.job-career-hero h2 {
  max-width: 290px;
  margin: 7px 0 8px;
  color: #fcfbf9;
  font-size: 25px;
  line-height: 1.08;
}

.job-career-hero p {
  max-width: 330px;
  margin: 0;
  color: rgba(251, 247, 239, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.job-career-summary {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 1.2fr;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 50, 31, 0.98), rgba(8, 35, 21, 0.98));
  border: 1px solid rgba(124, 222, 170, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(3, 14, 8, 0.18);
}

.job-career-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid rgba(124, 222, 170, 0.14);
}

.job-career-summary > div:last-child {
  border-right: 0;
}

.job-career-summary span,
.job-role-progress-head span,
.job-role-allowance span {
  color: rgba(214, 236, 224, 0.67);
  font-size: 10px;
  line-height: 1.25;
}

.job-career-summary strong {
  overflow: hidden;
  color: #fdfcf8;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.job-career-summary > div:last-child strong {
  color: #6bda9f;
}

.job-pending-notice,
.job-career-support-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  color: #faf7ef;
  background: rgba(16, 66, 39, 0.82);
  border: 1px solid rgba(99, 213, 152, 0.3);
  border-radius: 13px;
}

.job-pending-notice > svg,
.job-career-support-note > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #63d598;
}

.job-pending-notice > div,
.job-career-support-note p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.job-pending-notice strong,
.job-career-support-note strong {
  color: #fcfbf9;
  font-size: 13px;
}

.job-pending-notice span,
.job-career-support-note span {
  color: rgba(246, 240, 224, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.job-career-section-head {
  display: grid;
  gap: 6px;
  padding: 6px 2px 0;
}

.job-career-section-head h2 {
  margin: 3px 0 0;
  color: #fdfbf7;
  font-size: 20px;
}

.job-career-section-head p {
  margin: 0;
  color: rgba(214, 236, 224, 0.66);
  font-size: 11px;
  line-height: 1.5;
}

.job-role-list {
  display: grid;
  gap: 13px;
}

.job-role-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  color: #fdfbf7;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 207, 140, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 49, 31, 0.98), rgba(7, 31, 18, 0.98));
  border: 1px solid rgba(124, 222, 170, 0.21);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(3, 14, 8, 0.18);
}

.job-role-active,
.job-role-eligible {
  border-color: rgba(99, 215, 153, 0.5);
  box-shadow: 0 16px 34px rgba(3, 14, 8, 0.2), inset 0 0 0 1px rgba(99, 215, 153, 0.08);
}

.job-role-pending {
  border-color: rgba(242, 190, 80, 0.45);
}

.job-role-completed {
  opacity: 0.86;
}

.job-role-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-role-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.job-role-heading > b {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #092a18;
  background: linear-gradient(135deg, #83e5b1, #38bd76);
  border-radius: 10px;
  font-size: 12px;
}

.job-role-heading span {
  display: block;
  margin-bottom: 3px;
  color: rgba(131, 227, 176, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.job-role-heading h3 {
  margin: 0;
  color: #fcfbf9;
  font-size: 16px;
  line-height: 1.25;
}

.job-role-allowance {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  padding: 7px 9px;
  background: rgba(91, 208, 146, 0.09);
  border: 1px solid rgba(99, 215, 153, 0.18);
  border-radius: 10px;
}

.job-role-allowance strong {
  color: #72e0a5;
  font-size: 15px;
  line-height: 1.1;
}

.job-role-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-role-progress-head strong {
  color: #faf7ef;
  font-size: 11px;
}

.job-role-overall-track,
.job-role-requirement-track {
  position: relative;
  overflow: hidden;
  background: rgba(179, 221, 199, 0.12);
  border-radius: 999px;
}

.job-role-overall-track {
  height: 7px;
  margin-top: -8px;
}

.job-role-overall-track i,
.job-role-requirement-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #30b66f, #7fe4ae);
  border-radius: inherit;
}

.job-role-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.job-role-requirement {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(5, 22, 13, 0.33);
  border: 1px solid rgba(187, 227, 206, 0.12);
  border-radius: 11px;
}

.job-role-requirement > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-role-requirement span {
  color: rgba(222, 241, 231, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.job-role-requirement strong {
  color: #fcfbf9;
  font-size: 12px;
}

.job-role-requirement.met strong {
  color: #78e2a9;
}

.job-role-requirement-track {
  height: 4px;
}

.job-role-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #092c19;
  background: linear-gradient(135deg, #7ee4ae, #36bd75);
  border: 1px solid rgba(158, 234, 193, 0.48);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(44, 187, 111, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.job-role-action svg {
  width: 18px;
  height: 18px;
}

.job-role-action:focus-visible {
  outline: 3px solid rgba(126, 228, 174, 0.34);
  outline-offset: 2px;
}

.job-role-action:disabled {
  cursor: default;
  color: rgba(243, 238, 225, 0.62);
  background: rgba(181, 207, 193, 0.11);
  border-color: rgba(181, 207, 193, 0.12);
  box-shadow: none;
}

.job-role-action-active:disabled,
.job-role-action-completed:disabled {
  color: #72dfa5;
  background: rgba(64, 185, 120, 0.13);
  border-color: rgba(114, 223, 165, 0.24);
}

.job-role-action-pending:disabled {
  color: #f6d486;
  background: rgba(224, 171, 62, 0.12);
  border-color: rgba(246, 212, 134, 0.22);
}

.job-career-support-note {
  margin-top: 2px;
  background: rgba(8, 34, 20, 0.8);
}

@media (max-width: 380px) {
  .job-career-hero {
    min-height: 224px;
    padding: 17px;
  }

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

  .job-career-summary > div:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 222, 170, 0.14);
  }

  .job-role-card-head {
    display: grid;
  }

  .job-role-allowance {
    width: 100%;
    justify-items: start;
  }
}

.home-hero-band {
  position: relative;
  min-height: 202px;
}

.home-hero-band .hero-head {
  align-items: center;
  gap: 8px;
}

.home-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.home-identity-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.home-identity-row > strong {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-vip-pill {
  flex: 0 0 auto;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 3px;
  color: #fdfbf6;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(11, 51, 30, 0.94), rgba(7, 33, 19, 0.94));
  border: 1px solid rgba(129, 224, 173, 0.32);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.07), 0 5px 12px rgba(3, 14, 8, 0.2);
}

.home-vip-pill.observation {
  color: #fff4bd;
  background: linear-gradient(135deg, rgba(105, 73, 14, 0.96), rgba(44, 39, 19, 0.96));
  border-color: rgba(255, 216, 118, 0.68);
  box-shadow: 0 0 13px rgba(255, 207, 83, 0.18), inset 0 1px 0 rgba(252, 251, 249, 0.12);
}

.home-vip-pill-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.home-vip-pill-icon .vip-rank-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: none;
}

.home-vip-pill b {
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.home-game-points-card {
  width: 120px;
  min-width: 110px;
  min-height: 58px;
  flex: 0 0 120px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1px;
  padding: 7px 9px;
  color: #faf7ef;
  text-align: left;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 216, 118, 0.18), transparent 42%),
    rgba(8, 38, 22, 0.76);
  border: 1px solid rgba(130, 227, 175, 0.36);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(252, 251, 249, 0.06), 0 8px 17px rgba(3, 14, 8, 0.2);
  cursor: pointer;
}

.home-game-points-card small {
  color: rgba(209, 245, 226, 0.9);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.home-game-points-card strong {
  max-width: 100%;
  display: block;
  margin: 0;
  overflow: hidden;
  color: #fff2aa;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-points-card > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(208, 245, 225, 0.86);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.home-game-points-card > span svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.home-game-points-card.is-error strong {
  color: #ffd0d3;
}

.home-game-points-card:focus-visible,
.home-vip-pill:focus-visible {
  outline: 3px solid rgba(255, 232, 136, 0.82);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .home-hero-band {
    padding: 13px;
  }

  .home-game-points-card {
    width: 112px;
    min-width: 110px;
    flex-basis: 112px;
    padding-inline: 8px;
  }

  .home-game-points-card strong {
    font-size: 17px;
  }

  .home-identity-row {
    gap: 5px;
  }

  .home-vip-pill {
    min-height: 28px;
    padding-right: 6px;
  }

  .home-vip-pill-icon,
  .home-vip-pill-icon .vip-rank-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .balance strong {
    font-size: 28px;
  }
}

.user-vip-observation-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 13px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 203, 92, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(78, 58, 19, 0.92), rgba(12, 46, 28, 0.96));
  border: 1px solid rgba(251, 203, 92, 0.42);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(3, 13, 8, 0.2);
  text-decoration: none;
}

.user-vip-observation-notice > svg {
  width: 21px;
  height: 21px;
  color: #ffd876;
}

.user-vip-observation-notice > svg:last-child {
  width: 17px;
  height: 17px;
  color: rgba(255, 245, 214, 0.66);
}

.user-vip-observation-notice > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-vip-observation-notice strong {
  color: #fff7dd;
  font-size: 13px;
  line-height: 1.3;
}

.user-vip-observation-notice span {
  color: rgba(255, 245, 214, 0.7);
  font-size: 10px;
  line-height: 1.45;
}

.vip-observation-banner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 12px;
  padding: 13px 14px;
  color: #fff8dd;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 221, 125, 0.18), transparent 38%),
    rgba(9, 36, 22, 0.88);
  border: 1px solid rgba(255, 216, 118, 0.44);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(4, 16, 10, 0.2);
}

.vip-observation-banner > svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: #ffd876;
  background: rgba(255, 216, 118, 0.12);
  border-radius: 9px;
}

.vip-observation-banner > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vip-observation-banner span {
  color: #ffd876;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.vip-observation-banner strong {
  color: #fcfbf9;
  font-size: 16px;
}

.vip-observation-banner p {
  margin: 1px 0 0;
  color: rgba(252, 250, 244, 0.72);
  font-size: 10px;
  line-height: 1.5;
}

.vip-feature-card.observation {
  border-color: rgba(255, 216, 118, 0.72);
  box-shadow: 0 18px 34px rgba(3, 15, 9, 0.24), inset 0 0 0 1px rgba(255, 216, 118, 0.12);
}

.vip-feature-card.observation .vip-feature-main strong,
.vip-feature-card.observation .vip-feature-main em {
  color: #fff1bb;
}

.vip-observation-label {
  color: #fff1bb !important;
  border-color: rgba(255, 216, 118, 0.35) !important;
}

.vip-level-card.observation {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 118, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(55, 74, 64, 0.94), rgba(8, 32, 19, 0.96));
  border-color: rgba(255, 216, 118, 0.55);
}

.vip-observation-chip {
  width: fit-content;
  padding: 3px 7px;
  color: #fff0b2;
  background: rgba(221, 168, 45, 0.16);
  border: 1px solid rgba(255, 216, 118, 0.28);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .floating-inbox-badge:not(.hidden) {
    animation: none;
  }

  .newcomer-reward-claim:disabled svg {
    animation: none;
  }
}

/* Final app-wide option 3 navigation treatment. Keep after base navigation rules. */
html .bottom-nav {
  gap: 6px;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border-top-color: rgba(90, 220, 151, 0.42);
  background:
    linear-gradient(180deg, rgba(9, 41, 24, 0.98), rgba(4, 17, 10, 0.995)),
    radial-gradient(circle at 50% -24%, rgba(83, 218, 146, 0.24), transparent 62%);
  box-shadow:
    0 -18px 38px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(252, 251, 249, 0.08);
}

html .bottom-nav-item {
  height: 66px;
  gap: 1px;
  padding: 3px 2px 5px;
  border-radius: 12px;
  color: rgba(247, 241, 226, 0.8);
  border-color: color-mix(in srgb, var(--nav-a) 30%, rgba(252, 251, 249, 0.07));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-a) 20%, transparent), transparent 50%),
    linear-gradient(180deg, rgba(14, 52, 32, 0.94), rgba(6, 27, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(252, 251, 249, 0.09),
    inset 0 -14px 19px rgba(0, 0, 0, 0.24);
}

html .bottom-nav-item::after {
  border-radius: 10px;
}

html .bottom-nav-item.active {
  color: #fcfbf9;
  transform: none;
  border-color: color-mix(in srgb, var(--nav-a) 82%, #fcfbf9 16%);
  background:
    radial-gradient(circle at 50% 2%, color-mix(in srgb, var(--nav-a) 40%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(19, 75, 45, 0.995), rgba(8, 40, 23, 0.995));
  box-shadow:
    0 0 24px color-mix(in srgb, var(--nav-glow) 96%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 0 20px color-mix(in srgb, var(--nav-a) 14%, transparent),
    inset 0 1px 0 rgba(252, 251, 249, 0.16);
}

html .bottom-nav-art {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border-color: color-mix(in srgb, var(--nav-a) 34%, rgba(252, 251, 249, 0.08));
  background: rgba(4, 20, 11, 0.38);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 15px color-mix(in srgb, var(--nav-a) 28%, transparent);
}

html .bottom-nav-art img {
  border-radius: 10px;
  object-fit: cover;
  object-position: center 47%;
  opacity: 0.88;
  filter: saturate(0.96) brightness(0.9);
}

html .bottom-nav-item.active .bottom-nav-art {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nav-a) 76%, rgba(252, 251, 249, 0.2));
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.3),
    0 0 22px var(--nav-glow),
    inset 0 0 0 1px rgba(252, 251, 249, 0.11);
}

html .bottom-nav-item.active .bottom-nav-art img {
  opacity: 1;
  filter: saturate(1.25) brightness(1.14);
}

html .bottom-nav-orbit {
  inset: -2px;
  border-radius: 12px;
}

html .bottom-nav-item > span:last-child {
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

/* Automatic stability mode for reduced-motion and resource-constrained phones. */
html.vtx-lite *,
html.vtx-lite *::before,
html.vtx-lite *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

html.vtx-lite *,
html.vtx-lite *::before,
html.vtx-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Nigeria palette: forest green, warm ivory and restrained gold accents. */
:root {
  --ng-forest: #123c2b;
  --ng-forest-dark: #09271b;
  --ng-forest-light: #205a40;
  --ng-ivory: #f4f0e5;
  --ng-paper: #fffcf4;
  --ng-gold: #d5b66b;
  --ng-gold-dark: #806122;
  --ng-leaf: #bad3be;
  --bg: var(--ng-ivory);
  --surface: var(--ng-forest);
  --surface-2: var(--ng-forest-dark);
  --ink: var(--ng-paper);
  --muted: #bbccbf;
  --line: rgba(186, 211, 190, .24);
  --primary: #9bc8ab;
  --primary-dark: #246143;
  --primary-soft: rgba(155, 200, 171, .14);
  --accent: var(--ng-gold);
  --success: #8dcea3;
  --shadow: 0 18px 42px rgba(18, 60, 43, .15);
}

html,
body {
  background: var(--ng-ivory);
}

.app-shell {
  background: var(--ng-forest-dark);
  box-shadow: 0 24px 70px rgba(18, 60, 43, .2);
}

.screen:not(.auth-screen),
.screen.user-dashboard-screen {
  background: linear-gradient(180deg, #163f2e, #09271b 640px);
}

.screen:not(.auth-screen)::before {
  opacity: .13;
}

.screen:not(.auth-screen)::after {
  background: radial-gradient(ellipse at 100% 0%, rgba(213, 182, 107, .08), transparent 42%);
}

.topbar {
  color: var(--ng-paper);
  background: var(--ng-forest);
  border-color: rgba(213, 182, 107, .22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}

.hero-band,
.vip-stage,
.vip-feature-card,
.points-hero {
  color: var(--ng-paper);
  background: linear-gradient(125deg, #235b3d, #123c2b 64%, #31452c);
  border-color: rgba(213, 182, 107, .4);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

.balance strong,
.user-balance-block strong,
.vip-feature-price > span,
.home-game-points-card strong {
  color: #f0dba1;
  text-shadow: none;
}

.home-vip-pill,
.home-game-points-card,
.hero-actions button,
.hero-actions a {
  color: var(--ng-paper);
  background: rgba(9, 39, 27, .72);
  border-color: rgba(213, 182, 107, .38);
  box-shadow: none;
}

.home-game-points-card small,
.home-game-points-card > span {
  color: var(--ng-leaf);
}

.primary-btn,
.activity-popup-primary,
.vip-upgrade-btn,
.auth-panel .primary-btn,
.register-auth-panel .primary-btn {
  color: var(--ng-forest-dark);
  background: linear-gradient(135deg, #eddbad, #d5b66b);
  border-color: #d5b66b;
  box-shadow: 0 6px 16px rgba(99, 73, 20, .16);
}

.primary-btn:not(:disabled):hover,
.vip-upgrade-btn:not(:disabled):hover {
  background: #efddb0;
}

.secondary-btn,
.ghost-btn,
.vip-pager a,
.vip-pager span,
.vip-owned-label {
  color: var(--ng-paper);
  background: var(--ng-forest-dark);
  border-color: rgba(213, 182, 107, .28);
}

.form-card,
.vip-info-card,
.vip-income-grid div,
.vip-intro-card,
.record,
.row,
.message,
.notice,
.empty,
.wealth-plan-card,
.wealth-order-row,
.points-rule-card,
.points-exchange-row,
.team-member-card,
.income-detail-row,
.help-detail-section,
.invite-guide-card {
  --ink: #193e2d;
  --muted: #586a5d;
  --primary: #2d6c49;
  --line: #dcdccb;
  color: var(--ink);
  background: var(--ng-paper);
  border-color: #dcdccb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .09);
}

:is(.form-card, .vip-info-card, .vip-income-grid, .vip-intro-card, .record,
  .row, .message, .wealth-plan-card, .wealth-order-row, .points-rule-card,
  .points-exchange-row, .team-member-card, .income-detail-row,
  .help-detail-section, .invite-guide-card) :is(h2, h3, strong, p, small, em, label) {
  color: inherit;
}

:is(.form-card, .vip-income-grid, .vip-intro-card, .record, .row,
  .message, .wealth-plan-card, .wealth-order-row, .points-rule-card,
  .points-exchange-row, .team-member-card, .income-detail-row,
  .help-detail-section, .invite-guide-card) :is(span, dt, dd) {
  color: inherit;
}

.form-card .input-wrap,
.form-card .select-wrap,
.form-card .bank-select-button {
  color: #193e2d;
  background: #f0f0e6;
  border-color: #c9d3c4;
  box-shadow: none;
}

.form-card input,
.form-card select,
.form-card textarea {
  color: #193e2d;
  color-scheme: light;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #687569;
}

.input-wrap:focus-within,
.select-wrap:focus-within {
  border-color: #bc9950;
  box-shadow: 0 0 0 3px rgba(213, 182, 107, .18);
}

.record .income,
.income-detail-row .income {
  color: #286b43;
}

.record .outcome,
.income-detail-row .outcome {
  color: #93602c;
}

.screen:not(.auth-screen) .vip-info-card h3,
.screen:not(.auth-screen) .vip-table-head {
  color: #244832;
  background: #e5e9d8;
  border-color: #d1d7c6;
}

.screen:not(.auth-screen) .vip-table-row,
.screen:not(.auth-screen) .vip-table-row:nth-child(odd),
.screen:not(.auth-screen) .vip-card-note {
  color: #244832;
  background: var(--ng-paper);
  border-color: #dcdccb;
}

.screen:not(.auth-screen) .vip-table-row:nth-child(even) {
  color: #244832;
  background: #f0f0e6;
}

.vip-intro-list span {
  color: #244832;
  background: #e5e9d8;
  border-color: #d1d7c6;
  box-shadow: none;
}

.vip-level-card.active,
.vip-level-card.owned {
  color: var(--ng-paper);
  background: #2b5940;
  border-color: #d5b66b;
}

.screen:not(.auth-screen) .amount-chip.active,
.screen:not(.auth-screen) .wealth-plan-card.active {
  color: var(--ng-paper);
  background: #286345;
  border-color: var(--ng-gold);
  box-shadow: 0 0 0 1px rgba(213, 182, 107, .2);
}

.wealth-plan-card.active {
  --ink: var(--ng-paper);
  --muted: #d0decc;
}

.progress-track i,
.task-progress i,
.income-bar i {
  background: linear-gradient(90deg, #77a683, #d5b66b);
}

html .bottom-nav {
  border-top-color: #a58b4e;
  background: #123c2b;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .18);
}

html .bottom-nav-item {
  --nav-a: #bad3be;
  --nav-glow: transparent;
  color: #c7d7c7;
  background: #143b2c;
  border-color: rgba(186, 211, 190, .15);
  box-shadow: none;
}

html .bottom-nav-item.active {
  --nav-a: #d5b66b;
  color: #f3dfa9;
  background: #28533a;
  border-color: #d5b66b;
  box-shadow: inset 0 0 0 1px rgba(213, 182, 107, .12);
}

html .bottom-nav-art,
html .bottom-nav-item.active .bottom-nav-art {
  background: #123c2b;
  border-color: rgba(213, 182, 107, .3);
  box-shadow: none;
}

.quick-link-image-tile .quick-link-label {
  color: #fffcf4 !important;
  background: rgba(18, 60, 43, .93) !important;
  border-color: rgba(213, 182, 107, .66) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .16) !important;
  text-shadow: none;
}

.screen.auth-screen {
  background:
    linear-gradient(180deg, rgba(9, 39, 27, .78), rgba(9, 39, 27, .94)),
    url("/assets/auth/login-bg.png") center top / cover no-repeat;
}

.screen.auth-screen::after {
  background: linear-gradient(180deg, transparent, #09271b);
}

.auth-panel,
.register-auth-panel {
  --ink: #193e2d;
  --muted: #586a5d;
  color: #193e2d;
  background: #f4f0e5;
  border-color: #d5b66b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.auth-panel-head h2,
.auth-panel-head span,
.auth-panel .phone-prefix,
.auth-panel .input-wrap svg,
.auth-panel .input-wrap input {
  color: #193e2d;
}

.auth-panel .input-wrap {
  background: #fffcf4;
  border-color: #c9d3c4;
  box-shadow: none;
}

.auth-panel .input-wrap input {
  color-scheme: light;
  -webkit-text-fill-color: #193e2d;
}

.auth-panel .input-wrap input::placeholder {
  color: #687569;
  -webkit-text-fill-color: #687569;
}

.auth-panel .phone-prefix {
  border-color: #c9d3c4;
}

.auth-divider {
  color: #586a5d;
}

.auth-divider::before,
.auth-divider::after {
  background: #c9d3c4;
}

.auth-secondary-btn {
  color: #24543a;
  background: transparent;
  border-color: #7f9f86;
}

.auth-screen .switch-line button {
  color: #e6cf94;
}

.lucky-card-section {
  background: linear-gradient(150deg, #123c2b, #09271b);
}

.lucky-card-stage {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(213, 182, 107, .12), transparent 60%),
    linear-gradient(155deg, #23583b, #113823 70%, #09271b);
  border-color: #d5b66b;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .24), inset 0 0 0 4px rgba(213, 182, 107, .08);
}

.lucky-card-stage-head {
  color: #fffcf4;
  background: #103722;
  border-color: rgba(213, 182, 107, .45);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d5b66b;
  outline-offset: 3px;
}

/* BOROWATT / BW: shared power-bank rental identity. */
.bw-home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(214, 182, 110, .25);
}

.bw-home-brand > img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(214, 182, 110, .45);
}

.bw-home-brand > div { display: grid; gap: 4px; min-width: 0; }
.bw-home-brand strong { color: #f6f3e9; font-size: clamp(18px, 5vw, 24px); letter-spacing: .045em; line-height: 1.15; }
.bw-home-brand span { color: #d6b66e; font-size: 12px; letter-spacing: .035em; }
.brand-copy .brand-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; }
.brand-copy h1 { letter-spacing: .04em; }

/* Long naira amounts must remain readable on narrow mobile screens. */
.balance strong,
.user-balance-block strong {
  max-width: 100%;
  font-size: clamp(24px, 7.5vw, 36px);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.vip-feature-price {
  min-width: min(210px, 100%);
  max-width: 100%;
  flex-wrap: wrap;
  color: #193e2d;
  background: #e8d49b;
  border-color: #d5b66b;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.vip-feature-price > span {
  max-width: 100%;
  color: #193e2d;
  overflow-wrap: anywhere;
}

.vip-feature-price .vip-owned-label,
.vip-feature-price .vip-upgrade-btn {
  color: #fffcf4;
  background: #193e2d;
  border-color: #193e2d;
}

.vip-income-grid strong,
.home-summary-stats .stat strong,
.wealth-plan-range strong,
.wealth-balance-strip strong,
.wealth-purchase-range strong,
.wealth-purchase-summary strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
