:root {
  color-scheme: light;
  --bg: #edf3fb;
  --panel: #ffffff;
  --line: #d8e2f0;
  --text: #25324b;
  --muted: #7584a0;
  --accent: #3f7cff;
  --accent-2: #15b69a;
  --danger: #f05a6a;
  --warning: #f5a623;
  --shadow: 0 14px 38px rgba(72, 96, 140, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(63, 124, 255, 0.14), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(21, 182, 154, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

h1, h2, h3, p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px;
}

.site-topbar {
  height: 70px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #326fff, #22c1aa);
  color: #fff;
  font-weight: 800;
}

.brand h1 {
  font-size: 20px;
}

.brand p,
.eyebrow,
.hero-copy {
  color: var(--muted);
}

.issue-copy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav button,
.top-nav a {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #f2f6fc;
  font: inherit;
  text-decoration: none;
}

.top-nav button.active,
.top-nav a.active {
  color: #fff;
  background: var(--accent);
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: right;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff7b6d, #2f70f2);
  font-weight: 800;
}

.account-meta {
  display: grid;
  gap: 2px;
}

.account:hover .account-avatar {
  box-shadow: 0 5px 14px rgba(63, 124, 255, 0.22);
}

.account strong {
  color: var(--text);
  font-size: 18px;
}

.locale-select {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.locale-select select {
  min-width: 118px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}

.lottery-layout {
  display: flex;
  gap: 16px;
}

.left-rail,
.right-rail,
.bet-desk {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.left-rail {
  flex: 0 0 240px;
}

.bet-desk {
  flex: 1 1 calc(100% - 572px);
  max-width: calc(100% - 572px);
}

.bet-desk > * {
  min-width: 0;
  max-width: 100%;
}

.right-rail {
  flex: 0 0 300px;
}

.game-card,
.side-panel,
.panel,
.play-tabs-panel,
.history-card,
.status {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.game-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  color: var(--muted);
}

.game-card.active {
  color: #fff;
  background: linear-gradient(135deg, #3978ff, #22c1aa);
}

.game-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.game-card p {
  margin-top: 2px;
  font-size: 12px;
}

.side-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

textarea {
  width: 100%;
  padding: 10px;
  resize: vertical;
}

.issue-actions,
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-panel button,
.panel button,
.history-card button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
}

.wallet-requests {
  min-height: 80px;
  max-height: 160px;
  overflow: auto;
  margin: 0;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #315073;
  padding: 10px;
  font-size: 12px;
}

.wallet-request-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 52px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e7eef8;
}

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

.wallet-request-row b,
.wallet-request-row strong,
.wallet-request-row em {
  font-style: normal;
  white-space: nowrap;
}

.wallet-request-row b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-request-row em {
  color: var(--accent);
  text-align: right;
}

.wallet-empty {
  margin: 0;
  color: var(--muted);
}

.user-center-page {
  display: grid;
  gap: 16px;
}

.user-center-page[hidden],
.lottery-layout[hidden] {
  display: none;
}

.user-center-dialog {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.user-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.member-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.member-action.deposit {
  background: #24b4a3;
}

.member-action.withdraw {
  background: var(--accent);
}

.user-center-head h2 {
  margin: 0;
}

.icon-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fbff;
  color: var(--text);
  font-size: 20px;
}

.recharge-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.recharge-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.recharge-menu button,
.recharge-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f3f7fc;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.recharge-menu button.active {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.v2-member-shell {
  grid-template-columns: 154px minmax(0, 1fr);
}

.v2-member-menu {
  position: sticky;
  top: 98px;
  gap: 6px;
}

.recharge-main {
  display: grid;
  gap: 12px;
}

.v2-recharge-main {
  gap: 10px;
}

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

.section-title-row h3 {
  margin: 0;
}

.section-title-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.asset-summary-card > div,
.fixed-wallet-card {
  padding: 14px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #fbfdff;
}

.asset-overview .asset-summary-card {
  gap: 8px;
}

.asset-overview .asset-summary-card > div {
  background: #f6f9fe;
}

.asset-summary-card span,
.fixed-wallet-head span,
.asset-balance-row span {
  color: var(--muted);
  font-size: 13px;
}

.asset-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
}

.fixed-wallet-card {
  display: grid;
  gap: 12px;
}

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

.fixed-wallet-head h3 {
  margin: 0;
}

.asset-balance-grid {
  display: grid;
  gap: 8px;
}

.asset-balance-row {
  display: grid;
  grid-template-columns: 72px repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f7fc;
}

.balance-wallet-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f9fe;
}

.balance-wallet-row span,
.balance-wallet-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.balance-wallet-row strong {
  color: var(--text);
  font-size: 18px;
}

.asset-balance-row b {
  color: var(--text);
  font-size: 16px;
}

.asset-balance-row strong {
  color: var(--text);
  font-size: 16px;
}

.recharge-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #fff;
}

.crypto-address-card {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
}

.recharge-card h3 {
  margin: 0;
  color: var(--text);
}

.recharge-channel-tabs,
.recharge-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recharge-channel-tabs button,
.recharge-amounts button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9fe;
  color: var(--text);
}

.recharge-channel-tabs button.active,
.recharge-amounts button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef5ff;
  font-weight: 700;
}

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

.recharge-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.recharge-form input,
.recharge-form textarea {
  width: 100%;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f6f9fe;
  color: var(--text);
  font: inherit;
}

.recharge-form input {
  height: 38px;
  padding: 0 10px;
}

.recharge-form textarea {
  min-height: 72px;
  padding: 10px;
  resize: vertical;
}

.address-wrap {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.recharge-qr {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  outline: 1px solid #dce7f5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #20314f 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(#20314f 10px, transparent 10px) 0 0 / 22px 22px,
    #eef4fb;
  color: #fff;
  font-weight: 800;
}

.address-box {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.address-box span,
.crypto-address-card p,
.recharge-tips p {
  color: var(--muted);
}

.network-warning {
  margin: 6px 0 0;
  color: #ff3636 !important;
  font-size: 12px;
  line-height: 1.5;
}

.address-box strong {
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 8px;
  background: #f3f7fc;
  color: var(--text);
  font-size: 14px;
}

.recharge-tips p {
  margin: 0;
  line-height: 1.7;
}

.wallet-request-head,
.wallet-request-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 90px 80px;
  gap: 10px;
  align-items: center;
}

.wallet-request-head {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e7ebf9;
  color: var(--muted);
  font-size: 12px;
}

.wallet-request-row {
  min-height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid #eef3f9;
}

.member-page {
  background: #eef4fb;
}

.member-app-shell {
  max-width: 1240px;
}

.member-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  min-height: calc(100vh - 104px);
}

.member-sidebar,
.member-panel {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(65, 91, 140, 0.12);
}

.member-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 10px;
}

.member-profile-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #63728f;
  font-size: 12px;
}

.member-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid #7c9abd;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3c15b, #2a2c50);
  color: #101827;
  font-weight: 900;
}

.member-edit-mark {
  position: absolute;
  right: 0;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #3978ff;
  font-size: 10px;
}

.member-profile-card strong {
  color: #4f5c76;
  font-size: 16px;
}

.member-id {
  color: #8290aa;
}

.member-tron b {
  color: #3978ff;
}

.member-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: 8px;
}

.member-quick-actions button,
.member-quick-actions a {
  display: grid;
  place-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #50607a;
  font-size: 12px;
  text-decoration: none;
}

.member-quick-actions button::before,
.member-quick-actions a::before {
  content: "";
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #59a6ff, #d7e7ff);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.35);
}

.member-menu-list {
  display: grid;
  gap: 10px;
}

.member-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f5f8fd;
  color: #52617b;
  font-size: 14px;
  text-decoration: none;
}

.member-menu-list a.active {
  border-color: #3f7cff;
  background: #3f7cff;
  color: #fff;
  font-weight: 700;
}

.member-menu-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e3efff;
  color: #3f7cff;
  font-size: 11px;
  font-weight: 800;
}

.member-menu-list a.active span {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.member-content {
  min-width: 0;
}

.member-panel {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 104px);
  padding: 24px 10px 26px;
}

.member-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px;
}

.member-content-head h1 {
  color: #4f5c76;
  font-size: 20px;
}

.wallet-strip {
  display: block;
  max-width: 750px;
  margin: 12px auto 0;
}

.wallet-switch-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border-radius: 0 0 10px 10px;
  background: #eaf1fb;
}

.wallet-switch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-left: 12px;
}

.wallet-switch-head label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #51617c;
  font-weight: 700;
}

.wallet-switch-head label::after {
  content: "◉";
  color: #9caac1;
  font-size: 12px;
}

.wallet-switch-head button {
  align-self: stretch;
  min-width: 138px;
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%);
  background: linear-gradient(135deg, #46ddcb, #1aa992);
  color: #fff;
  padding: 0 16px 0 34px;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-asset-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.wallet-asset-cols button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  gap: 4px 6px;
  align-content: start;
  min-height: 88px;
  border: 0;
  background: transparent;
  color: #4d5a75;
  padding: 15px 12px 12px;
  text-align: left;
}

.wallet-asset-cols button.active {
  color: #fff;
  background: #3f7cff;
}

.wallet-asset-cols b {
  align-self: center;
  font-size: 15px;
  font-weight: 500;
}

.wallet-asset-cols small {
  color: #53627c;
  font-size: 12px;
}

.wallet-asset-cols strong {
  color: #4d5a75;
  font-size: 18px;
}

.wallet-value {
  display: grid;
  gap: 3px;
}

.wallet-value:first-of-type {
  grid-column: 1 / 2;
}

.wallet-value[data-wallet-field="commission"] {
  grid-column: 2 / 4;
}

.wallet-asset-cols button.active small,
.wallet-asset-cols button.active strong {
  color: #fff;
}

.wallet-asset-cols i {
  justify-self: end;
  align-self: center;
  width: 14px;
  height: 14px;
  border: 1px solid #a9b8d1;
  border-radius: 50%;
}

.wallet-asset-cols button.active i {
  display: grid;
  place-items: center;
  border-color: #fff;
  background: #fff;
}

.wallet-asset-cols button.active i::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #3f7cff;
  border-bottom: 2px solid #3f7cff;
  transform: rotate(-45deg);
}

.coin-icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.coin-icon.usdt {
  background: #20b993;
}

.coin-icon.trx {
  background: #ff304f;
}

.coin-icon.cny {
  background: #ff304f;
}

.wallet-switch-card:not(.fixed-mode) [data-wallet-field="commission"] {
  display: none;
}

.wallet-switch-card:not(.fixed-mode) .wallet-value:first-of-type {
  grid-column: 1 / 4;
}

.wallet-switch-card.fixed-mode .wallet-asset-cols button {
  min-height: 98px;
}

.deposit-center {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.deposit-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deposit-title-row h2 {
  color: #4f5c76;
  font-size: 18px;
}

.deposit-title-row button {
  border: 0;
  background: transparent;
  color: #2d72ff;
  font-weight: 700;
}

.asset-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 5px;
  background: #e4e8f6;
}

.asset-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #4d5d79;
  font-weight: 700;
}

.asset-tabs button.active {
  color: #fff;
  background: #3f7cff;
}

.asset-tabs span {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #24b89f;
  color: #fff;
  font-size: 10px;
}

.asset-tabs button.active span {
  background: #ff304f;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(74px, 1fr));
  gap: 10px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.payment-method-grid button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 80px;
  padding: 6px 5px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #fff;
  color: #4f5c76;
}

.payment-method-grid button.active {
  border-color: #2f78ff;
  box-shadow: inset -10px -10px 0 rgba(47, 120, 255, 0.14);
}

.payment-method-grid button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border: 9px solid transparent;
  border-right-color: #3f7cff;
  border-bottom-color: #3f7cff;
  border-radius: 0 0 7px 0;
}

.payment-method-grid span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7ed3ff, #3f7cff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.payment-method-grid strong {
  font-size: 14px;
  font-weight: 500;
}

.payment-method-grid small {
  color: #ff304f;
  font-size: 10px;
}

.payment-method-grid em {
  position: absolute;
  top: 0;
  right: 6px;
  padding: 1px 5px;
  border-radius: 0 0 5px 5px;
  background: #ff304f;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

.deposit-form-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 500px) 120px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.deposit-input-label {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: #52617b;
  font-size: 14px;
}

.deposit-input-label input {
  width: 100%;
  height: 41px;
  padding: 0 54px 0 12px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f6f8fc;
  color: #25324b;
}

.deposit-input-label b {
  justify-self: end;
  margin-top: -36px;
  padding-right: 10px;
  color: #52617b;
  font-size: 13px;
}

.arrival-label {
  align-self: end;
  padding-bottom: 12px;
  color: #8b99b3;
  font-size: 14px;
}

.quick-amount-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.quick-amount-grid button {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: #e4e9f7;
  color: #52617b;
  font-size: 13px;
}

.quick-amount-grid button.active {
  color: #fff;
  background: #3f7cff;
}

.deposit-form-panel textarea {
  grid-column: 2;
  width: 100%;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f6f8fc;
  padding: 8px 10px;
  resize: vertical;
}

.deposit-actions {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 10px;
}

.deposit-actions button {
  min-height: 41px;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}

.deposit-actions .guide {
  color: #2f78ff;
  background: #f7fbff;
}

.deposit-actions .service {
  color: #2f78ff;
  background: #dff2ff;
}

.deposit-actions .pay-now {
  color: #8090ad;
  background: #c2cce0;
}

.deposit-actions .pay-now:not(:disabled) {
  color: #fff;
  background: #3f7cff;
}

.member-panel .recharge-tips {
  max-width: 500px;
  margin: 0 auto;
  color: #4f5c76;
  font-size: 12px;
  line-height: 1.7;
}

.member-panel .recharge-tips h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.member-record-card,
.member-panel .status {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.member-panel .status {
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: none;
}

.compact-address {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.account-settings-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  width: 100%;
  margin: 4px auto 0;
}

.account-settings-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #4f5c76;
  text-align: left;
}

.account-settings-list button:hover {
  border-color: rgba(63, 124, 255, 0.42);
  background: #f2f7ff;
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5aa1ff, #e4f0ff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.account-settings-list span:not(.settings-icon) {
  display: grid;
  gap: 5px;
}

.account-settings-list b {
  color: #25324b;
  font-size: 15px;
}

.account-settings-list small {
  color: #7584a0;
  font-size: 13px;
}

.account-settings-list i {
  justify-self: end;
  color: #3f7cff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.withdraw-card {
  display: grid;
  gap: 12px;
  max-width: 520px;
  width: 100%;
  margin: 4px auto 0;
  padding: 16px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
}

.withdraw-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f2f7ff;
  color: #52617b;
}

.withdraw-summary strong {
  color: #25324b;
  font-size: 18px;
}

.withdraw-card label {
  display: grid;
  gap: 6px;
  color: #52617b;
  font-size: 13px;
}

.withdraw-card input,
.withdraw-card select {
  width: 100%;
  height: 38px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f6f8fc;
  color: #25324b;
  padding: 0 10px;
}

.withdraw-amounts {
  grid-column: auto;
}

.withdraw-submit {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
}

.ledger-panel {
  padding-left: 10px;
  padding-right: 10px;
}

.ledger-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
}

.ledger-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
  min-height: 42px;
}

.ledger-tabs button {
  justify-self: center;
  min-width: 90px;
  min-height: 34px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #526b9e;
  font-weight: 700;
}

.ledger-tabs button.active {
  border-bottom-color: #3f7cff;
  color: #2f72ff;
}

.ledger-filter-row,
.ledger-date-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.ledger-filter-row label,
.ledger-date-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52617b;
  font-size: 13px;
}

.ledger-filter-row select,
.ledger-date-row input {
  height: 34px;
  min-width: 120px;
  border: 1px solid #d6dfec;
  border-radius: 5px;
  background: #fff;
  color: #52617b;
  padding: 0 12px;
}

.ledger-date-row input {
  min-width: 220px;
}

.ledger-scope,
.ledger-date-tabs {
  display: inline-flex;
  overflow: hidden;
  border-radius: 5px;
}

.ledger-scope button,
.ledger-date-tabs button {
  min-width: 54px;
  height: 34px;
  border: 1px solid #d6dfec;
  background: #fff;
  color: #52617b;
}

.ledger-scope button.active,
.ledger-date-tabs button.active {
  border-color: #3f7cff;
  background: #3f7cff;
  color: #fff;
}

.ledger-date-tabs button.active {
  background: #fff;
  color: #2f72ff;
}

.ledger-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.ledger-actions button {
  min-width: 100px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid #3f7cff;
  background: #fff;
  color: #2f72ff;
  font-weight: 700;
}

.ledger-actions button:first-child {
  background: #3f7cff;
  color: #fff;
}

.ledger-table-wrap {
  overflow: auto;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
}

.ledger-table {
  min-width: 900px;
}

.ledger-table th {
  color: #526b9e;
  background: #f6f9fe;
  text-align: center;
}

.ledger-table td {
  color: #52617b;
  background: #fff;
  text-align: center;
}

.ledger-table tr:nth-child(odd) td {
  background: #f6f9fe;
}

.ledger-id {
  color: #52617b;
}

.copy-ledger-id {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: #3f7cff;
  font-weight: 800;
}

.amount-blue {
  color: #1e6cff !important;
}

.status-red {
  color: #ff304f !important;
}

.currency-pill {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ff304f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.ledger-empty {
  height: 72px;
  color: #8b99b3 !important;
}

.bet-record-card {
  gap: 10px;
}

.bet-sub-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f6fc;
}

.bet-sub-tabs button {
  height: 30px;
  border: 0;
  background: transparent;
  color: #52617b;
  font-weight: 700;
}

.bet-sub-tabs button.active {
  background: #3f7cff;
  color: #fff;
}

.record-search {
  height: 34px;
  min-width: 180px;
  border: 1px solid #d6dfec;
  border-radius: 5px;
  padding: 0 12px;
}

.bet-record-summary {
  display: grid;
  gap: 4px;
  padding: 10px 28px;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #f6f9fe;
}

.bet-record-summary div {
  display: grid;
  grid-template-columns: 22px 60px 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 22px;
  color: #52617b;
  font-size: 12px;
}

.bet-record-summary em {
  font-style: normal;
}

.bet-record-summary strong {
  color: #1e6cff;
}

.bet-record-summary em:last-child strong {
  color: #ff304f;
}

.personal-list-title {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid #3f7cff;
  color: #25324b;
  font-size: 15px;
}

.lottery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 130px auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(40, 105, 255, 0.96), rgba(19, 175, 155, 0.92)),
    #3978ff;
  box-shadow: var(--shadow);
}

.lottery-hero h2 {
  font-size: 30px;
  line-height: 1.2;
}

.lottery-hero .eyebrow,
.lottery-hero .hero-copy {
  color: rgba(255, 255, 255, 0.82);
}

.draw-card,
.countdown-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.draw-card span,
.countdown-card span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.countdown-card strong {
  font-size: 28px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 10px;
  align-items: start;
}

.hero-actions button {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.hero-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.22);
}

.hero-actions em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.balls {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 8px;
}

.balls input {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #ff7582, #ec4058);
}

body.modal-open {
  overflow: hidden;
}

.issue-lock-overlay[hidden] {
  display: none;
}

.issue-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 30, 38, 0.34);
  backdrop-filter: grayscale(0.45);
}

.issue-lock-toast {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 120px;
  min-height: 130px;
  padding: 18px 14px 16px;
  border-radius: 9px;
  background: rgba(16, 16, 18, 0.88);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 24, 40, 0.28);
}

.issue-lock-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.issue-lock-toast strong,
.issue-lock-toast em {
  display: block;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.source-modal[hidden] {
  display: none;
}

.source-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.source-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 36, 0.34);
}

.source-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100vw - 32px));
  max-height: min(82vh, 620px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(40, 58, 95, 0.28);
}

.source-dialog header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 40px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid #dce7f6;
}

.source-dialog h3 {
  color: #4f5c76;
  font-size: 15px;
  text-align: center;
}

.source-dialog header button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #597096;
  font-size: 28px;
  line-height: 1;
}

.source-body {
  display: grid;
  gap: 10px;
  max-height: calc(min(82vh, 620px) - 40px);
  overflow: auto;
  padding: 12px 12px 18px;
}

.source-section h4 {
  margin: 0 0 8px;
  padding-left: 8px;
  border-left: 3px solid #3f7cff;
  color: #25324b;
  font-size: 14px;
}

.source-section p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f3f6fb;
  color: #4e5d78;
  font-size: 12px;
  line-height: 1.65;
}

.source-section p + p {
  padding-top: 0;
  border-radius: 0 0 7px 7px;
}

.source-section p:has(+ p) {
  border-radius: 7px 7px 0 0;
}

.source-section .hash-example {
  overflow-wrap: anywhere;
  color: #4e5d78;
}

.source-section strong {
  color: #ff304f;
}

.source-section a {
  color: #ff304f;
  text-decoration: none;
}

.play-tabs-panel {
  padding: 12px;
  overflow: hidden;
}

#category {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: auto;
  padding-bottom: 10px;
}

.category-tab {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7faff;
}

.category-tab.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-height: 116px;
  overflow: auto;
  padding-top: 2px;
}

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

.rule.active {
  color: var(--accent);
  border-color: var(--accent);
  background: #eef5ff;
}

.panel,
.history-card {
  padding: 16px;
}

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

.panel-head h3 {
  font-size: 18px;
}

#odds {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--accent);
  background: #eef5ff;
  font-weight: 700;
}

.rule-info {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.rule-info-block {
  min-height: 106px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #fbfdff;
}

.rule-info-block h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
}

.rule-info-block p {
  color: #52627d;
  font-size: 13px;
  line-height: 1.55;
}

.position-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 8px;
}

.position-guide-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
}

.position-guide-item.active {
  border-color: rgba(63, 124, 255, 0.38);
  background: #eef5ff;
  color: var(--text);
}

.position-guide-item strong {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #ff7582, #ec4058);
  font-size: 13px;
}

.positions {
  display: grid;
  gap: 12px;
}

.position-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #eef3fb;
  border-radius: 10px;
  background: #fbfdff;
}

.position-row strong {
  line-height: 34px;
  color: var(--text);
}

.position-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.digit-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: auto;
  padding-bottom: 2px;
}

.quick-row,
.digits,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick,
.choice {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f2f7ff);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(55, 77, 115, 0.08);
}

.quick {
  min-width: 32px;
  padding: 0 7px;
  font-size: 14px;
}

.digit-line .digits,
.digit-line .quick-row {
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.digit {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #c8d8ef;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 238, 251, 0.98));
  color: #20314f;
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(166, 185, 214, 0.22),
    0 3px 7px rgba(58, 83, 126, 0.13);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.digit:hover,
.quick:hover {
  border-color: rgba(63, 124, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 9px rgba(63, 124, 255, 0.16);
}

.digit:active,
.quick:active {
  transform: translateY(1px);
}

.digit.active,
.choice.active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(180deg, #5a91ff, #2f70f2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(63, 124, 255, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.special-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wide-label,
.input-help {
  color: var(--muted);
}

.input-help {
  font-size: 13px;
  line-height: 1.5;
}

.input-help.error {
  color: var(--danger);
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
}

.bet-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 9px;
  align-items: stretch;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf3fb;
}

.stake-panel {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stake-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 84px;
  gap: 5px;
  align-items: center;
  font-size: 11px;
}

.stake-row.compact {
  grid-template-columns: 36px minmax(0, 1fr) auto 84px;
}

.stake-label,
.stake-input-label {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.stake-edit {
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f2f7ff);
  color: var(--text);
  font-size: 11px;
}

.stake-edit.active {
  border-color: var(--accent);
  background: #eef5ff;
  color: var(--accent);
  font-weight: 700;
}

.stake-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stake-option {
  min-width: 34px;
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
}

.amount-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.amount-quick.editing {
  padding-right: 5px;
}

.remove-amount {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eff4fb;
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.amount-editor {
  display: grid;
  grid-template-columns: 36px minmax(84px, 132px) 54px;
  gap: 5px;
  align-items: center;
}

.amount-editor[hidden] {
  display: none;
}

.amount-editor::before {
  content: "";
}

.amount-editor input {
  min-height: 26px;
  font-size: 11px;
}

.amount-editor button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  color: var(--text);
  font-size: 11px;
}

.stake-option.active {
  border-color: var(--accent);
  background: #eef5ff;
  color: var(--accent);
  font-weight: 700;
}

.stake-input {
  width: 84px;
  min-height: 26px;
  font-size: 11px;
}

.amount-row {
  display: grid;
  grid-template-columns: auto 110px auto 90px;
  gap: 10px;
  align-items: center;
}

.summary {
  display: flex;
  gap: 6px;
  color: var(--muted);
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 11px;
}

.summary b {
  color: var(--text);
}

.primary {
  width: 100%;
  min-height: 36px;
  color: #fff;
  background: var(--accent-2);
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
}

.bet-actions {
  display: grid;
  gap: 7px;
}

.secondary-action {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.secondary-action:hover {
  border-color: rgba(63, 124, 255, 0.45);
  color: var(--accent);
}

.status {
  padding: 12px;
  color: var(--accent);
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 0;
}

.history-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4edf8;
  color: #4f5c76;
  text-align: center;
  font-size: 16px;
}

.history-item {
  display: grid;
  gap: 7px;
  padding: 8px 0 9px;
  border-bottom: 1px solid #e4edf8;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #526b9e;
  font-size: 12px;
}

.history-meta a {
  color: #526b9e;
  font-size: 12px;
  text-decoration: none;
}

.history-digits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  justify-items: center;
  color: #4d5a75;
  font-size: 17px;
  font-weight: 800;
}

.history-digits b {
  font: inherit;
}

.history-more {
  display: block;
  width: 100px;
  min-height: 34px;
  margin: 16px auto 0;
  border: 0;
  border-radius: 6px;
  background: #c5cee2;
  color: #526b9e;
  font-weight: 700;
}

.bets-card {
  overflow: auto;
}

.slip-submit {
  margin-top: 10px;
}

.promo-panel,
.welfare-panel {
  display: grid;
  gap: 14px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.promo-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #fbfdff;
}

.promo-card.strong {
  background: linear-gradient(135deg, #eef5ff, #f6fffd);
}

.promo-card span,
.promo-card p {
  color: var(--muted);
  font-size: 13px;
}

.promo-card b {
  color: var(--text);
  font-size: 24px;
}

#inviteLink {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

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

.welfare-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 74px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #fbfdff;
}

.welfare-card h4 {
  margin: 0 0 4px;
  color: var(--text);
}

.welfare-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.welfare-card strong {
  color: var(--danger);
  font-size: 20px;
}

.welfare-card.claimed {
  opacity: 0.72;
}

.welfare-card button,
.promo-actions button,
.panel-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  color: var(--text);
}

.welfare-card button:not(:disabled) {
  color: #fff;
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.seo-page .app-shell {
  max-width: 1180px;
}

.seo-main {
  display: grid;
  gap: 16px;
}

.seo-hero {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 8px;
  color: #17304f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #d7e8ff, #dff8ef);
  border: 1px solid #dce8f6;
}

.seo-hero.welfare-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)),
    linear-gradient(135deg, #ffe8dc, #e4f2ff);
}

.seo-hero h2 {
  margin: 0;
  font-size: 32px;
}

.seo-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .member-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .payment-method-grid {
    grid-template-columns: repeat(4, minmax(84px, 1fr));
  }

  .wallet-strip {
    grid-template-columns: 1fr;
  }

  .lottery-layout {
    flex-wrap: wrap;
  }

  .left-rail {
    flex-basis: 210px;
  }

  .bet-desk {
    flex: 1 1 calc(100% - 226px);
    max-width: calc(100% - 226px);
  }

  .right-rail {
    flex: 1 1 100%;
    grid-template-columns: 260px 1fr;
  }

  .bet-footer {
    grid-template-columns: 1fr;
  }

  .stake-row,
  .stake-row.compact {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .stake-input-label,
  .stake-input,
  .summary,
  .amount-editor {
    grid-column: 2;
    justify-content: flex-start;
  }

  .amount-editor {
    grid-template-columns: minmax(100px, 160px) 68px;
  }

  .amount-editor::before {
    content: none;
  }
}

@media (max-width: 820px) {
  .member-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .member-sidebar {
    position: static;
  }

  .member-menu-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-menu-list a {
    min-width: 0;
  }

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

  .deposit-form-panel {
    grid-template-columns: 1fr;
  }

  .deposit-input-label,
  .quick-amount-grid,
  .deposit-form-panel textarea,
  .deposit-actions {
    grid-column: 1;
  }

  .arrival-label {
    display: none;
  }

  .deposit-actions {
    grid-template-columns: 1fr;
  }

  .wallet-asset-cols,
  .balance-wallet .wallet-asset-cols {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 10px;
  }

  .site-topbar,
  .lottery-layout,
  .right-rail,
  .lottery-hero {
    grid-template-columns: 1fr;
  }

  .bet-desk,
  .left-rail,
  .right-rail {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .top-nav {
    overflow: auto;
  }

  .amount-row {
    grid-template-columns: 1fr 1fr;
  }

  .promo-grid,
  .welfare-list,
  .welfare-card,
  .promo-actions {
    grid-template-columns: 1fr;
  }

  .rule-info-grid,
  .position-guide {
    grid-template-columns: 1fr;
  }
}
