
  html {
    color-scheme: dark;
  }

  body.app-page {
    font-family: "Padauk", "Noto Sans Myanmar", sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
  }

  body.auth-center {
    font-family: "Padauk", "Noto Sans Myanmar", sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
  }


  * {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
  }

  body {
    font-family: "Padauk", "Noto Sans Myanmar", sans-serif;
    background: var(--u-bg, #0a0a0a);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--u-text, #f5f5f5);
  }

  body.app-page {
    align-items: flex-start;
    padding: 14px 16px calc(76px + env(safe-area-inset-bottom));
    min-height: 100vh;
    background: var(--u-bg, #0a0a0a);
  }

  .app-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .card {
    background: var(--u-surface, #141414);
    padding: 28px;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--u-border, #262626);
  }

  .app-card {
    max-width: 100%;
    padding: 18px 16px 20px;
    animation: none;
    width: 100%;
    border-radius: 16px;
  }

  h2 {
    margin: 0 0 6px;
    color: var(--u-text, #f5f5f5);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
  }

  .subtitle {
    margin: 0 0 14px;
    color: var(--u-text-secondary, #a3a3a3);
    font-size: 13px;
    font-weight: 600;
  }

  label {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--u-text-secondary, #a3a3a3);
    font-weight: 700;
  }

  input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid var(--u-border-strong, #333);
    border-radius: 12px;
    background: var(--u-surface-muted, #1a1a1a);
    color: var(--u-text, #f5f5f5);
    font-size: 15px;
    transition: 0.2s ease;
  }

  input:focus {
    outline: none;
    border-color: var(--u-primary, #fafafa);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: var(--u-surface, #141414);
  }

  button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--u-primary, #fafafa);
    border-radius: 12px;
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
  }

  button:hover {
    transform: none;
    background: var(--u-primary-hover, #e5e5e5);
    border-color: var(--u-primary-hover, #e5e5e5);
    box-shadow: none;
  }

  button:active {
    transform: none;
    background: #d4d4d4;
    border-color: #d4d4d4;
  }

  .msg {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
  }

  .error {
    color: var(--u-error-text, #fca5a5);
    background: var(--u-error-bg, #450a0a);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .success {
    color: var(--u-success-text, #86efac);
    background: var(--u-success-bg, #052e16);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .page-content a.text-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--u-text, #f5f5f5);
    text-decoration: none;
    font-weight: 700;
  }

  .page-content a.text-link:hover {
    color: var(--u-primary-hover, #e5e5e5);
    text-decoration: underline;
  }

  body.auth-center .card > a {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--u-text, #f5f5f5);
    text-decoration: none;
    font-weight: 700;
  }

  body.auth-center .card > a:hover {
    color: var(--u-primary-hover, #e5e5e5);
    text-decoration: underline;
  }

  .auth-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--u-text-secondary, #a3a3a3);
    cursor: pointer;
  }

  .auth-remember input {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
  }

  .badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--u-surface-muted, #1a1a1a);
    color: var(--u-text-secondary, #a3a3a3);
    border: 1px solid var(--u-border, #262626);
    font-size: 12px;
    font-weight: 800;
  }

  .info {
    margin-top: 12px;
    font-size: 15px;
    color: var(--u-text, #f5f5f5);
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
  }

  .balance {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
  }

  .app-card {
    width: 100%;
  }

  .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    margin-bottom: 0;
    padding: 0 0 12px;
    border-bottom: none;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .page-header--bar {
    height: auto;
    min-height: 52px;
    max-height: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--u-border, #262626);
  }

  .page-header-brand,
  .app-brand--header {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 10px;
  }

  .app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .app-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface-muted, #1a1a1a);
  }

  .app-brand-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--u-text, #f5f5f5);
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-brand--auth {
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--u-border, #262626);
  }

  .app-brand--auth .app-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .app-brand--auth .app-brand-name {
    font-size: 22px;
  }

  .app-brand--closed {
    justify-content: center;
    margin-bottom: 20px;
  }

  .app-brand--closed .app-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .app-brand--closed .app-brand-name {
    font-size: 24px;
  }

  .page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-icon-btn {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--u-border, #262626);
    border-radius: 10px;
    background: var(--u-surface, #141414);
    color: var(--u-text, #f5f5f5);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  a.header-icon-btn:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333);
    background: var(--u-surface-muted, #1a1a1a);
    color: var(--u-text, #f5f5f5);
  }

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

  .header-notify-btn {
    position: relative;
  }

  .header-notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--u-bg, #0a0a0a);
    box-sizing: border-box;
    pointer-events: none;
  }

  body.app-page .page-header .badge,
  body.app-page .page-header .panel-title,
  body.app-page .page-header .subtitle {
    display: none !important;
  }

  .page-header-inner {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
  }

  .page-header-slot {
    width: 48px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .page-header .badge {
    margin-bottom: 8px;
    display: inline-block;
  }

  .page-header .panel-title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
  }

  .page-header .subtitle {
    margin: 0;
    line-height: 1.4;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
  }

  .page-header--compact {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 6px;
  }

  .page-header--compact .badge {
    margin-bottom: 6px;
  }

  .page-header--compact .panel-title {
    margin-bottom: 0;
  }

  .page-header--compact .subtitle {
    display: none;
    min-height: 0;
  }

  .page-content {
    padding-top: 16px;
  }

  .page-content-home {
    padding-top: 6px;
  }

  .home-wallet-hero {
    position: relative;
    margin-bottom: 16px;
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #1c1c1c 0%, #141414 55%, #0f0f0f 100%);
    border: 1px solid var(--u-border-strong, #333);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }

  .home-wallet-hero-glow {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
  }

  .home-wallet-hero-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-wallet-greeting {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--u-text-secondary, #a3a3a3);
    line-height: 1.3;
  }

  .home-wallet-currency-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--u-border, #262626);
    color: var(--u-text-muted, #737373);
  }

  .home-wallet-topup-btn {
    flex-shrink: 0;
    margin: 0;
    width: auto;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
  }

  a.home-wallet-topup-btn:hover {
    text-decoration: none;
  }

  .home-wallet-balance-block {
    position: relative;
  }

  .home-wallet-balance-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .home-wallet-balance-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    letter-spacing: -0.03em;
    line-height: 1.15;
    word-break: break-word;
  }

  .home-services {
    margin-top: 4px;
  }

  .home-section-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  body.app-page .page-header--bar + .page-content,
  body.app-page .page-header--bar + .page-content-home,
  body.app-page .page-header--bar + .page-content-tight,
  body.app-page .page-header--bar + .page-content-games,
  body.app-page .page-header--bar + .page-content-code,
  body.app-page .page-header--bar + .page-content-mobile-topup,
  body.app-page .page-header--bar + .page-content-notifications,
  body.app-page .page-header--bar + .page-content-currency-rate,
  body.app-page .page-header--bar + .page-content-topup-orders,
  body.app-page .page-header--bar + .page-content-game-packages,
  body.app-page .page-header--bar + .page-content-code-packages,
  body.app-page .page-header--bar + .page-content-code-order,
  body.app-page .page-header--bar + .page-content-account-topup,
  body.app-page .page-header--bar + .page-content-topup-pay {
    padding-top: 8px;
  }

  .topup-bank-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-text-muted, #737373);
  }

  .topup-bank-arrow svg {
    width: 20px;
    height: 20px;
  }

  a.topup-bank-link:hover .topup-bank-arrow {
    color: var(--u-text, #f5f5f5);
  }

  .topup-pay-amount-hint {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--u-text-muted, #737373);
    line-height: 1.45;
  }

  .page-content-topup-pay .topup-pay-form .field-hint {
    margin-top: 6px;
    margin-bottom: 0;
  }

  .page-content-account-topup .topup-card--amount .topup-amount-block {
    margin-top: 0;
  }

  .page-content-account-topup .topup-card--amount .topup-presets {
    margin-top: 14px;
  }

  .topup-orders-actions {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
  }

  .history-channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
  }

  .history-channel-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
    color: var(--u-text, #f5f5f5);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }

  .history-channel-tab.is-active {
    background: var(--u-primary, #fafafa);
    border-color: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
  }

  .page-content-topup-orders .history-list {
    gap: 10px;
  }

  .page-content-topup-orders .empty-box .text-link {
    display: inline-block;
    margin-top: 10px;
  }

  .page-content-currency-rate .fx-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .page-content-currency-rate .fx-hero {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid var(--u-border, #262626);
  }

  .page-content-currency-rate .fx-hero-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--u-text-muted, #737373);
    text-align: center;
  }

  .page-content-currency-rate .fx-hero-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .page-content-currency-rate .fx-hero-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
  }

  .page-content-currency-rate .fx-hero-chip--thb {
    border-color: #713f12;
    background: linear-gradient(180deg, #292419 0%, #141414 100%);
  }

  .page-content-currency-rate .fx-hero-chip--mmk {
    border-color: #166534;
    background: linear-gradient(180deg, #142119 0%, #141414 100%);
  }

  .page-content-currency-rate .fx-hero-chip-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--u-text, #f5f5f5);
  }

  .page-content-currency-rate .fx-hero-chip-line {
    font-size: 12px;
    font-weight: 700;
    color: var(--u-text-muted, #737373);
  }

  .page-content-currency-rate .fx-hero-chip-eq {
    font-size: 11px;
    color: var(--u-text-muted, #737373);
  }

  .page-content-currency-rate .fx-hero-chip-value {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
  }

  .page-content-currency-rate .fx-hero-chip--thb .fx-hero-chip-value {
    color: #fbbf24;
  }

  .page-content-currency-rate .fx-hero-chip--mmk .fx-hero-chip-value {
    color: #34d399;
  }

  .page-content-currency-rate .fx-panel {
    padding: 16px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .page-content-currency-rate .fx-panel--thb {
    border-color: rgba(251, 191, 36, 0.35);
  }

  .page-content-currency-rate .fx-panel--mmk {
    border-color: rgba(52, 211, 153, 0.3);
  }

  .page-content-currency-rate .fx-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-content-currency-rate .fx-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
  }

  .page-content-currency-rate .fx-badge--thb {
    background: linear-gradient(180deg, #292419 0%, #1a1a1a 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
  }

  .page-content-currency-rate .fx-badge--mmk {
    background: linear-gradient(180deg, #142119 0%, #1a1a1a 100%);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
  }

  .page-content-currency-rate .fx-panel-title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
  }

  .page-content-currency-rate .fx-panel-sub {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--u-text-muted, #737373);
  }

  .page-content-currency-rate .fx-input-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  @media (min-width: 400px) {
    .page-content-currency-rate .fx-input-row {
      flex-direction: row;
      align-items: flex-end;
      gap: 10px;
    }

    .page-content-currency-rate .fx-arrow {
      transform: rotate(-90deg);
      align-self: center;
      margin-bottom: 14px;
    }
  }

  .page-content-currency-rate .fx-input-wrap,
  .page-content-currency-rate .fx-output-wrap {
    flex: 1;
    min-width: 0;
  }

  .page-content-currency-rate .fx-input-currency {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--u-text-muted, #737373);
  }

  .page-content-currency-rate .fx-input {
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface-muted, #1a1a1a);
    font-size: 22px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    font-family: inherit;
    box-sizing: border-box;
  }

  .page-content-currency-rate .fx-input:focus {
    outline: none;
    border-color: var(--u-primary, #fafafa);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
    background: var(--u-surface, #141414);
  }

  .page-content-currency-rate .fx-output {
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface-muted, #1a1a1a);
    font-size: 22px;
    font-weight: 800;
    color: var(--u-primary, #fafafa);
    letter-spacing: -0.02em;
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .page-content-currency-rate .fx-panel--thb .fx-output {
    background: linear-gradient(180deg, #292419 0%, #1a1a1a 100%);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
  }

  .page-content-currency-rate .fx-panel--mmk .fx-output {
    background: linear-gradient(180deg, #142119 0%, #1a1a1a 100%);
    border-color: rgba(52, 211, 153, 0.25);
    color: #34d399;
  }

  .page-content-currency-rate .fx-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-text-muted, #737373);
    flex-shrink: 0;
  }

  .page-content-currency-rate .fx-arrow svg {
    width: 24px;
    height: 24px;
  }

  .page-content-currency-rate .fx-footnote {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--u-border, #262626);
    font-size: 13px;
    font-weight: 600;
    color: var(--u-text-muted, #737373);
    text-align: center;
    min-height: 1.25em;
  }

  .site-closed-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--u-bg, #0a0a0a);
  }

  .site-closed-wrap {
    width: 100%;
    max-width: 400px;
  }

  .site-closed-card {
    text-align: center;
    padding: 28px 22px;
    border-radius: 16px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }

  .site-closed-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #f59e0b;
  }

  .site-closed-icon svg {
    width: 100%;
    height: 100%;
  }

  .site-closed-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
  }

  .site-closed-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--u-text-muted, #737373);
  }

  .page-content-tight {
    padding-top: 4px;
  }

  .page-content-tight .history-section-title {
    margin: 0 0 10px;
  }

  .page-content-tight .topup-amount-block {
    margin-top: 0;
  }

  .page-content-tight .topup-presets {
    margin-top: 12px;
  }

  .page-content-tight .topup-section-title {
    margin-top: 14px;
  }

  .page-content-tight .msg {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .home-banners {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -4px;
    margin-bottom: 4px;
  }

  .page-content-home .home-banners {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .page-content-home .home-services {
    margin-top: 2px;
  }

  .home-banner-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-banner-media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
    line-height: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .home-banner-img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    object-position: center top;
  }

  .home-banner-text-box {
    width: 100%;
  }

  .home-banner-text {
    margin: 0;
    padding: 4px 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--u-text, #f5f5f5);
    text-align: center;
  }

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

  .home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 84px;
    padding: 12px 8px 10px;
    border-radius: 14px;
    border: 1px solid var(--u-border, #262626);
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .home-quick-item:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333);
    background: linear-gradient(180deg, #222 0%, #181818 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  }

  .home-quick-item:active {
    transform: translateY(0);
  }

  .home-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border-strong, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-text, #f5f5f5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .home-quick-icon svg {
    width: 20px;
    height: 20px;
  }

  .home-quick-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-content-games .home-games,
  .page-content-games .home-games-grid {
    margin-top: 0;
  }

  .page-content-games .home-game-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

  .page-content-games .home-game-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .games-back {
    margin: 0 0 12px;
  }

  .code-list {
    width: 100%;
  }

  .code-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .code-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }

  .code-item-card:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333333);
    background: var(--u-surface-muted, #1a1a1a);
    transform: translateY(-1px);
  }

  .code-item-logo-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
    margin-bottom: 8px;
    line-height: 0;
  }

  .code-item-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .code-item-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-text-muted, #737373);
  }

  .code-item-logo-placeholder svg {
    width: 32px;
    height: 32px;
  }

  .code-item-name {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--u-text, #f5f5f5);
    word-break: break-word;
  }

  .page-content-mobile-topup .games-back {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-topup-balance-line {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--u-text-muted, #a3a3a3);
  }

  .mobile-topup-balance-line strong {
    color: var(--u-text, #fff);
    font-weight: 800;
  }

  .mobile-topup-balance-warn {
    margin: 0 0 12px;
  }

  .mobile-topup-form label {
    margin-top: 0;
  }

  .mobile-topup-section-label {
    margin: 18px 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .mobile-operator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mobile-operator-option,
  .mobile-amount-option {
    margin: 0;
    cursor: pointer;
  }

  .mobile-operator-option input,
  .mobile-amount-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .mobile-operator-card {
    display: block;
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--u-border-strong, #333333);
    background: var(--u-surface, #141414);
    font-size: 15px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    transition: border-color 0.15s ease, background 0.15s ease;
  }

  .mobile-operator-option input:checked + .mobile-operator-card,
  .mobile-operator-card.active {
    border-color: var(--u-text, #f5f5f5);
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
  }

  .mobile-amount-grid {
    margin-bottom: 4px;
  }

  .mobile-operator-grid--thb,
  .mobile-amount-grid--thb {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-amount-option {
    display: block;
  }

  .mobile-amount-option .mobile-amount-btn {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    cursor: pointer;
  }

  .mobile-amount-option input:checked + .mobile-amount-btn,
  .mobile-amount-btn.active {
    background: var(--u-primary, #fafafa);
    border-color: var(--u-text, #f5f5f5);
    color: var(--u-primary-text, #0a0a0a);
  }

  .mobile-topup-submit {
    margin-top: 20px;
  }

  .home-games {
    width: 100%;
    margin-top: 4px;
  }

  .home-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .home-game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .home-game-card:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333333);
    background: var(--u-surface-muted, #1a1a1a);
  }

  .home-game-logo-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
    margin-bottom: 8px;
    line-height: 0;
  }

  .home-game-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-game-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #525252;
  }

  .home-game-logo-placeholder svg {
    width: 32px;
    height: 32px;
  }

  .home-game-name {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--u-text, #f5f5f5);
    word-break: break-word;
  }

  .game-packages-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
  }

  .game-packages-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--u-border, #262626);
    flex-shrink: 0;
    background: var(--u-surface-muted, #1a1a1a);
  }

  .game-packages-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-text-muted, #737373);
  }

  .game-packages-logo--placeholder svg {
    width: 26px;
    height: 26px;
  }

  .game-packages-game-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--u-text, #f5f5f5);
    word-break: break-word;
  }

  .game-packages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .game-package-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
  }

  .game-package-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--u-text, #f5f5f5);
    word-break: break-word;
  }

  .game-package-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    white-space: nowrap;
  }

  a.game-package-item--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }

  a.game-package-item--link:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333333);
    background: var(--u-surface-muted, #1a1a1a);
    transform: translateY(-1px);
  }

  .game-package-price-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .game-package-order-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--u-text-muted, #737373);
  }

  .code-order-card {
    margin-top: 4px;
  }

  .code-order-summary {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .code-order-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .code-order-summary .k {
    color: var(--u-text-muted, #737373);
    font-weight: 700;
  }

  .code-order-summary .v {
    color: var(--u-text, #f5f5f5);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
  }

  .topup-order-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--u-primary, #fafafa);
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }

  .topup-order-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
  }

  .history-item-code {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--u-border, #262626);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .history-item-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .history-item-code-row .history-item-code-value {
    flex: 1;
    min-width: 0;
  }

  .history-code-copy-btn {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid var(--u-border-strong, #333);
    background: var(--u-surface-muted, #1a1a1a);
    color: var(--u-text, #f5f5f5);
    cursor: pointer;
    line-height: 1.2;
    box-shadow: none;
  }

  .history-code-copy-btn:hover {
    background: var(--u-surface, #141414);
    border-color: var(--u-text-muted, #737373);
    transform: none;
  }

  .history-code-copy-btn.copied {
    background: var(--u-success-bg, #052e16);
    border-color: var(--u-success-border, #166534);
    color: var(--u-success-text, #86efac);
  }

  .history-item-code-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--u-text-muted, #737373);
  }

  .history-item-code-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--u-success-text, #86efac);
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: 0.04em;
    word-break: break-all;
  }

  .history-item-hint {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--u-border, #262626);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--u-text-muted, #737373);
  }

  .code-package-item {
    align-items: flex-start;
  }

  .code-package-prices {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .code-package-price-line {
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    white-space: nowrap;
  }

  .code-package-price-line--thb {
    font-size: 12px;
    font-weight: 700;
    color: var(--u-text-secondary, #a3a3a3);
  }

  .notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .notification-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface, #141414);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .notification-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--u-border, #262626);
    background: var(--u-surface-muted, #1a1a1a);
    line-height: 0;
  }

  .notification-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center top;
  }

  .notification-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--u-text, #f5f5f5);
    word-break: break-word;
  }

  .page-extra {
    margin-top: 8px;
  }

  .user-avatar-row {
    text-align: center;
    margin-bottom: 14px;
  }

  .user-avatar-row .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--u-border, #262626);
    object-fit: cover;
  }

  .panel-title {
    margin: 0 0 4px;
    color: var(--u-text, #f5f5f5);
    font-size: 24px;
    font-weight: 800;
  }

  .empty-box {
    margin-top: 12px;
    padding: 18px 14px;
    border-radius: 14px;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px dashed var(--u-border-strong, #333);
    color: var(--u-text-muted, #737373);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
  }

  .info-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
  }

  .info-page-lead {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--u-text-secondary, #a3a3a3);
  }

  .info-page-box {
    padding: 16px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
  }

  .info-page-text {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--u-text, #f5f5f5);
  }

  .info-page-hint {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--u-text-muted, #737373);
  }

  .info-page-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .info-page-btn:hover {
    text-decoration: none;
    background: var(--u-primary-hover, #e5e5e5);
    color: var(--u-primary-text, #0a0a0a);
  }

  .contact-channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-channel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }

  .contact-channel-card:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333333);
    background: var(--u-surface-muted, #1a1a1a);
    transform: translateY(-1px);
  }

  .contact-channel-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--u-primary-text, #0a0a0a);
  }

  .contact-channel-icon svg {
    width: 26px;
    height: 26px;
    display: block;
  }

  .contact-channel-card--facebook .contact-channel-icon {
    background: #1877f2;
  }

  .contact-channel-card--telegram .contact-channel-icon {
    background: #229ed9;
  }

  .contact-channel-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .contact-channel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    line-height: 1.25;
  }

  .contact-channel-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--u-text-muted, #737373);
    line-height: 1.35;
  }

  .contact-channel-arrow {
    flex-shrink: 0;
    color: var(--u-text-muted, #737373);
  }

  .contact-channel-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .contact-note-box {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .contact-note-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--u-text-muted, #737373);
  }

  .contact-note-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--u-text, #f5f5f5);
  }

  .history-section-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .history-item {
    padding: 14px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .history-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .history-item-bank {
    font-size: 15px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
  }

  .history-item-date {
    margin-top: 3px;
    font-size: 12px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
  }

  .history-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
  }

  .history-status-pending {
    background: #fef9c3;
    color: #a16207;
    border-color: #fde047;
  }

  .history-status-approved {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
  }

  .history-status-rejected {
    background: #fee2e2;
    color: var(--u-error-text, #fca5a5);
    border-color: #fca5a5;
  }

  .history-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--u-border, #262626);
  }

  .history-item-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
  }

  .history-item-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--u-text-muted, #737373);
  }

  .list-item {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    color: var(--u-text, #f5f5f5);
    font-size: 14px;
    font-weight: 600;
  }

  .logout-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fee2e2;
    color: var(--u-error-text, #fca5a5);
    font-weight: 800;
    text-decoration: none;
  }

  .logout-btn:hover {
    color: #991b1b;
    text-decoration: none;
    background: #fecaca;
  }

  select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid var(--u-border-strong, #333333);
    border-radius: 12px;
    background: var(--u-surface, #141414);
    color: var(--u-text, #f5f5f5);
    font-size: 15px;
    font-family: inherit;
  }

  .topup-amount-block {
    margin-top: 14px;
  }

  .topup-amount-block label {
    margin-top: 0;
  }

  .topup-presets {
    margin-top: 14px;
  }

  .topup-presets-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
  }

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

  .topup-preset-btn {
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid var(--u-border-strong, #333333);
    background: var(--u-surface, #141414);
    color: var(--u-text, #f5f5f5);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }

  .topup-preset-btn:hover {
    background: var(--u-surface-muted, #1a1a1a);
    border-color: var(--u-text-muted, #737373);
  }

  .topup-preset-btn.active {
    background: var(--u-primary, #fafafa);
    border-color: var(--u-text, #f5f5f5);
    color: var(--u-primary-text, #0a0a0a);
  }

  .topup-section-title {
    margin: 18px 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .topup-section-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
    line-height: 1.45;
  }

  .topup-back-link {
    display: inline-block;
    margin-bottom: 12px;
  }

  .topup-bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .topup-bank-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  a.topup-bank-link,
  button.topup-bank-pick {
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.15s ease;
  }

  button.topup-bank-pick {
    appearance: none;
    margin: 0;
  }

  a.topup-bank-link {
    text-decoration: none;
    color: inherit;
  }

  a.topup-bank-link:hover,
  button.topup-bank-pick:hover {
    text-decoration: none;
    border-color: var(--u-border-strong, #333333);
    box-shadow: none;
    transform: translateY(-1px);
  }

  button.topup-bank-pick.active,
  a.topup-bank-link.active {
    border-color: var(--u-text, #f5f5f5);
    background: var(--u-surface-muted, #1a1a1a);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
  }

  .topup-order-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--u-primary, #fafafa);
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .topup-order-btn:hover:not(:disabled) {
    background: #1e293b;
    border-color: #1e293b;
  }

  .topup-order-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .topup-form-error {
    margin-top: 12px;
  }

  .topup-bank-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
  }

  .topup-bank-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
  }

  .topup-bank-info {
    min-width: 0;
    flex: 1;
  }

  .topup-bank-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .topup-bank-meta,
  .topup-bank-tap {
    font-size: 13px;
    font-weight: 600;
    color: var(--u-text-muted, #737373);
    line-height: 1.4;
    word-break: break-word;
  }

  .topup-bank-tap {
    margin-top: 2px;
    color: var(--u-text-muted, #737373);
    font-size: 12px;
  }

  .topup-bank-detail {
    margin: 8px 0 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .topup-bank-detail-img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: block;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
  }

  .topup-bank-detail-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    margin-bottom: 14px;
  }

  .topup-detail-rows {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .topup-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
  }

  .topup-detail-row .k {
    font-size: 11px;
    font-weight: 700;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }

  .topup-detail-row .v {
    font-size: 14px;
    font-weight: 700;
    color: var(--u-text, #f5f5f5);
    text-align: right;
    word-break: break-word;
  }

  .topup-copy-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .topup-copy-text {
    word-break: break-word;
  }

  .topup-copy-btn {
    width: auto;
    margin: 0;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid var(--u-border-strong, #333333);
    background: var(--u-surface, #141414);
    color: var(--u-text, #f5f5f5);
    cursor: pointer;
    line-height: 1.2;
  }

  .topup-copy-btn:hover {
    background: var(--u-surface-muted, #1a1a1a);
    border-color: var(--u-text-muted, #737373);
  }

  .topup-copy-btn.copied {
    background: var(--u-success-bg, #052e16);
    border-color: var(--u-success-border, #166534);
    color: var(--u-success-text, #86efac);
  }

  .topup-pay-form label {
    display: block;
    margin-top: 14px;
  }

  .topup-pay-form .field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
  }

  .topup-slip-input {
    position: fixed;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .topup-slip {
    margin-top: 6px;
  }

  .topup-slip-zone {
    display: block;
    width: 100%;
    min-height: 140px;
    border: 1px dashed var(--u-border-strong, #3f3f3f);
    border-radius: 12px;
    background: var(--u-surface, #111111);
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
  }

  .topup-slip-zone:focus-visible {
    outline: 2px solid var(--u-text-muted, #737373);
    outline-offset: 2px;
  }

  .topup-slip-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 140px;
    padding: 20px 16px;
    text-align: center;
  }

  .topup-slip-zone.has-slip .topup-slip-empty {
    display: none;
  }

  .topup-slip-filled {
    display: none;
    position: relative;
  }

  .topup-slip-zone.has-slip {
    border-style: solid;
    cursor: default;
  }

  .topup-slip-zone.has-slip .topup-slip-filled {
    display: block;
  }

  .topup-slip-plus {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--u-text-muted, #737373);
  }

  .topup-slip-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--u-text, #f5f5f5);
  }

  .topup-slip-meta {
    font-size: 12px;
    color: var(--u-text-muted, #737373);
  }

  .topup-slip-filled img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #000;
  }

  .topup-slip-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .topup-slip-picks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .topup-slip-zone.has-slip ~ .topup-slip-picks {
    display: none;
  }

  .topup-slip-pick {
    padding: 0;
    border: none;
    background: none;
    color: var(--u-text, #e5e5e5);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .topup-slip-picks-dot {
    color: var(--u-text-muted, #525252);
    font-weight: 700;
  }

  .topup-slip-change {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: var(--u-text-muted, #a3a3a3);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
  }

  .topup-slip-zone.has-slip ~ .topup-slip-change {
    display: block;
  }

  .topup-slip-error {
    display: none;
    margin: 10px 0 0;
  }

  .topup-pay-submit {
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: var(--u-accent, #ffffff);
    color: var(--u-accent-text, #000000);
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
  }



  body.app-page nav.bottom-nav {
    box-sizing: border-box;
  }

  body.app-page nav.bottom-nav a.nav-item {
    display: flex;
    margin-top: 0;
    text-decoration: none;
    font-weight: 700;
  }

  body.app-page nav.bottom-nav a.nav-item:hover {
    text-decoration: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid var(--u-border, #262626);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 300;
  }

  .nav-item {
    margin: 0;
    text-decoration: none;
    color: var(--u-text-muted, #737373);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    min-height: 46px;
    background: transparent;
    width: auto;
    box-shadow: none;
  }

  .nav-item:hover {
    text-decoration: none;
    color: var(--u-text, #f5f5f5);
    background: var(--u-surface-muted, #1a1a1a);
    transform: none;
  }

  .nav-item.active {
    color: var(--u-primary-text, #0a0a0a);
    background: var(--u-primary, #fafafa);
    border-color: var(--u-primary, #fafafa);
    box-shadow: none;
  }

  .nav-icon-wrap {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: currentColor;
  }

  .nav-label {
    line-height: 1;
    letter-spacing: 0.1px;
  }

  .nav-item.active .nav-label {
    font-weight: 800;
    color: var(--u-primary-text, #0a0a0a);
  }


  .page-header-actions .drawer-toggle:hover {
    transform: none;
    border-color: var(--u-border-strong, #333);
    background: var(--u-surface-muted, #1a1a1a);
  }

  .account-drawer {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    z-index: 500;
    pointer-events: none;
    visibility: hidden;
    margin: 0;
    padding: 0;
  }

  .account-drawer.open {
    pointer-events: auto;
    visibility: visible;
  }

  .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .account-drawer.open .drawer-backdrop {
    opacity: 1;
  }

  .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(165deg, #1a1a1a 0%, #101010 42%, #0a0a0a 100%);
    border-left: none;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.65);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
  }

  .account-drawer.open .drawer-panel {
    transform: translateX(0);
  }

  @media (min-width: 520px) {
    .drawer-panel {
      width: min(100%, 400px);
      max-width: 400px;
      border-left: 1px solid var(--u-border, #262626);
    }
  }

  .drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-shrink: 0;
    width: 100%;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px 18px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .drawer-toolbar-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--u-text-secondary, #a3a3a3);
    text-align: left;
  }

  .drawer-toolbar .drawer-close {
    position: relative;
    margin: 0 0 0 auto;
    flex-shrink: 0;
    order: 2;
  }

  /* Hide legacy drawer title (Account / Profile & preferences) */
  #account-drawer .drawer-header,
  #account-drawer .drawer-header-text,
  #account-drawer h2 {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  .drawer-header {
    position: relative;
    padding: 18px 18px 14px;
    padding-top: calc(18px + env(safe-area-inset-top));
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--u-border, #262626);
  }

  .drawer-header::before {
    display: none;
  }

  .drawer-header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .drawer-close--floating {
    position: static;
  }

  #account-drawer .drawer-panel > button.drawer-close {
    display: none !important;
  }

  .drawer-header-text {
    position: relative;
  }

  .drawer-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    letter-spacing: -0.3px;
  }

  .drawer-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--u-text-secondary, #a3a3a3);
    font-weight: 600;
  }

  .drawer-close {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--u-text, #f5f5f5);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .drawer-close svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .drawer-close:hover,
  .drawer-close:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--u-text, #f5f5f5);
    transform: scale(1.04);
  }

  .drawer-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 18px 24px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
  }

  body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  #account-drawer .drawer-profile {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .drawer-profile .drawer-hero {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 18px 18px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(38, 38, 38, 0.9) 0%, rgba(20, 20, 20, 0.95) 55%, rgba(14, 14, 14, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .drawer-profile .drawer-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(250, 250, 250, 0.14) 0%, transparent 70%);
    pointer-events: none;
  }

  .drawer-profile .profile-hero {
    position: relative;
    text-align: center;
    padding: 4px 4px 16px;
    margin-bottom: 0;
  }

  .drawer-profile .profile-avatar-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fafafa 0%, #737373 45%, #262626 100%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .drawer-profile .profile-avatar,
  .drawer-profile .profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--u-surface-muted, #1a1a1a);
    border: 3px solid var(--u-surface, #141414);
  }

  .drawer-profile .profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--u-text-secondary, #a3a3a3);
  }

  .drawer-profile .profile-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    letter-spacing: -0.35px;
    line-height: 1.25;
  }

  .drawer-profile .profile-email {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
  }

  .drawer-profile .profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .drawer-profile .profile-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
  }

  .drawer-profile .profile-chip--currency {
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .drawer-profile .profile-chip--lang {
    color: #a3a3a3;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
  }

  .drawer-profile .wallet-card {
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .drawer-profile .wallet-card-inner {
    position: relative;
    padding: 16px 18px;
    text-align: left;
  }

  .drawer-profile .wallet-card::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .drawer-profile .wallet-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--u-text-muted, #737373);
    margin-bottom: 8px;
  }

  .drawer-profile .wallet-amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--u-text, #fafafa);
    letter-spacing: -0.6px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
  }

  .drawer-profile .drawer-toast {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
  }

  .drawer-profile .drawer-toast.success {
    color: var(--u-success-text, #86efac);
    background: var(--u-success-bg, #052e16);
    border: 1px solid var(--u-success-border, #166534);
  }

  .drawer-profile .drawer-toast.error {
    color: var(--u-error-text, #fca5a5);
    background: var(--u-error-bg, #450a0a);
    border: 1px solid var(--u-error-border, #7f1d1d);
  }

  .drawer-profile .settings-group {
    margin-bottom: 8px;
  }

  .drawer-profile .settings-heading {
    margin: 0 0 12px 2px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--u-text-muted, #737373);
  }

  .drawer-profile .settings-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 18px;
    box-shadow: none;
  }

  .drawer-profile .settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 14px 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.85);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .drawer-profile .settings-row:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .drawer-profile .settings-row:hover,
  .drawer-profile .settings-row:active {
    background: rgba(38, 38, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .drawer-profile .settings-row.menu-link.active-row {
    background: rgba(38, 38, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.14);
    transform: scale(0.995);
  }

  .drawer-profile .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--u-text, #f5f5f5);
  }

  .drawer-profile .icon-box svg {
    width: 21px;
    height: 21px;
  }

  .drawer-profile .icon-profile {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.28);
    color: #93c5fd;
  }

  .drawer-profile .icon-currency {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.25);
    color: #86efac;
  }

  .drawer-profile .icon-language {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.25);
    color: #d8b4fe;
  }

  .drawer-profile .row-text {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .drawer-profile .row-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
    line-height: 1.25;
  }

  .drawer-profile .row-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
    line-height: 1.35;
  }

  .drawer-profile .row-arrow {
    color: var(--u-text-muted, #737373);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .drawer-profile .row-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .drawer-profile .settings-row.menu-link.active-row .row-arrow {
    transform: rotate(90deg);
    color: var(--u-text-secondary, #a3a3a3);
  }

  .drawer-profile .inline-form {
    display: none;
    margin: -4px 0 8px;
    padding: 12px 16px 16px;
    border-radius: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
  }

  .drawer-profile .inline-form.show {
    display: block;
    animation: drawerFormIn 0.22s ease;
  }

  @keyframes drawerFormIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .drawer-profile .inline-form label {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--u-text-secondary, #a3a3a3);
  }

  .drawer-profile .inline-form label:first-child {
    margin-top: 4px;
  }

  .drawer-profile .inline-form input,
  .drawer-profile .inline-form select {
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid var(--u-border-strong, #333);
    background: var(--u-bg, #0a0a0a);
    color: var(--u-text, #f5f5f5);
    font-size: 14px;
    font-family: inherit;
  }

  .drawer-profile .inline-form input:focus,
  .drawer-profile .inline-form select:focus {
    outline: none;
    border-color: var(--u-primary, #fafafa);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }

  .drawer-profile .btn-save {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid var(--u-primary, #fafafa);
    border-radius: 8px;
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease;
  }

  .drawer-profile .btn-save:hover {
    transform: none;
    background: var(--u-primary-hover, #e5e5e5);
    border-color: var(--u-primary-hover, #e5e5e5);
    box-shadow: none;
  }

  .drawer-profile .drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .drawer-profile .drawer-logout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .drawer-profile .drawer-logout:hover,
  .drawer-profile .drawer-logout:active {
    text-decoration: none;
    background: rgba(127, 29, 29, 0.38);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
  }


  .app-card .section-title {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--u-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .app-card .settings-card {
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .app-card .settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-top: 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--u-border, #262626);
  }

  .app-card .settings-row.menu-link {
    cursor: pointer;
  }

  .app-card .settings-row:last-child {
    border-bottom: none;
  }

  .app-card .settings-row:hover {
    background: var(--u-surface-muted, #1a1a1a);
  }

  .app-card .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--u-surface-muted, #1a1a1a);
    border: 1px solid var(--u-border, #262626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: var(--u-text-secondary, #a3a3a3);
  }

  .app-card .row-text {
    flex: 1;
    min-width: 0;
  }

  .app-card .row-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--u-text, #f5f5f5);
  }

  .app-card .row-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--u-text-muted, #737373);
    font-weight: 600;
  }

  .app-card .row-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--u-text-secondary, #a3a3a3);
    flex-shrink: 0;
    text-align: right;
  }

  .app-card .row-arrow {
    color: var(--u-text-muted, #737373);
    font-size: 18px;
  }

  .app-card .inline-form {
    display: none;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--u-border, #262626);
    background: var(--u-surface-muted, #1a1a1a);
  }

  .app-card .inline-form.show {
    display: block;
  }

  .app-card .inline-form label {
    color: var(--u-text-muted, #737373);
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    display: block;
  }

  .app-card .inline-form input,
  .app-card .inline-form select {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--u-border-strong, #333333);
    background: var(--u-surface-muted, #1a1a1a);
    color: var(--u-text, #f5f5f5);
  }

  .app-card .inline-form button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--u-primary, #fafafa);
    border-radius: 8px;
    background: var(--u-primary, #fafafa);
    color: var(--u-primary-text, #0a0a0a);
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
  }

  .app-card .flash {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
  }

  .app-card .flash.ok {
    background: var(--u-success-bg, #052e16);
    color: var(--u-success-text, #86efac);
    border: 1px solid var(--u-success-border, #166534);
  }

  .app-card .flash.err {
    background: var(--u-error-bg, #450a0a);
    color: var(--u-error-text, #fca5a5);
    border: 1px solid var(--u-error-border, #7f1d1d);
  }

  .app-card .action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 800;
    background: var(--u-surface, #141414);
    border: 1px solid var(--u-border, #262626);
    width: 100%;
    font-family: inherit;
    cursor: pointer;
    color: var(--u-text, #f5f5f5);
  }

  .app-card .action-card.logout {
    color: var(--u-error-text, #fca5a5);
    border-color: var(--u-error-border, #7f1d1d);
    background: var(--u-error-bg, #450a0a);
  }

  .app-card .action-card.delete {
    color: var(--u-error-text, #fca5a5);
    border-color: var(--u-error-border, #7f1d1d);
    background: var(--u-error-bg, #450a0a);
  }

  .app-card button.action-card {
    text-align: left;
  }


  /* Global text fix */
  body.app-page,
  body.auth-center {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .panel-title,
  .subtitle,
  .info,
  .balance,
  .profile-name,
  .profile-email,
  .row-title,
  .row-sub {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* PC: centered clean layout (same as mobile, not cramped) */
  @media (min-width: 900px) {
    body.app-page {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 24px 24px calc(80px + env(safe-area-inset-bottom));
      min-height: 100vh;
    }

    body.auth-center {
      align-items: center;
      padding: 40px 24px 88px;
    }

    .app-shell,
    .profile-shell {
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
    }

    body .card {
      max-width: 100%;
      width: 100%;
      padding: 28px 32px;
    }

    body.auth-center .card {
      max-width: 440px;
    }

    .panel-title,
    body h2 {
      font-size: 26px;
      line-height: 1.3;
    }

    .subtitle {
      line-height: 1.5;
    }

    /* Home info rows on PC */
    .info-row {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }

    .info-row .info {
      margin-top: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .info-row .info .label {
      font-size: 12px;
      color: #64748b;
      font-weight: 700;
    }

    .balance {
      font-size: 22px;
      line-height: 1.4;
      margin-top: 16px;
    }

  }

  @media (max-width: 899px) {
    .info-row .info .label {
      display: none;
    }
  }


  /* User site — dark theme (soft black surfaces, light text) */
  :root {
    --u-bg: #0a0a0a;
    --u-surface: #141414;
    --u-surface-muted: #1a1a1a;
    --u-border: #262626;
    --u-border-strong: #333333;
    --u-text: #f5f5f5;
    --u-text-secondary: #a3a3a3;
    --u-text-muted: #737373;
    --u-primary: #fafafa;
    --u-primary-hover: #e5e5e5;
    --u-primary-text: #0a0a0a;
    --u-success-bg: #052e16;
    --u-success-text: #86efac;
    --u-success-border: #166534;
    --u-error-bg: #450a0a;
    --u-error-text: #fca5a5;
    --u-error-border: #7f1d1d;
    --u-warning-bg: #422006;
    --u-warning-text: #fcd34d;
    --u-warning-border: #713f12;
  }

  body.app-page {
    background: var(--u-bg);
    color: var(--u-text);
  }

  body.auth-center {
    background: var(--u-bg);
    color: var(--u-text);
  }

  body .app-shell,
  body .profile-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  body .card,
  body .app-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    color: var(--u-text);
  }

  body .panel-title,
  body h2 {
    color: var(--u-text);
  }

  body .subtitle {
    color: var(--u-text-secondary);
  }

  body .badge {
    background: var(--u-surface-muted);
    color: var(--u-text-secondary);
    border: 1px solid var(--u-border);
  }

  body label {
    color: var(--u-text-secondary);
  }

  body input,
  body select,
  body textarea {
    background: var(--u-surface);
    border: 1px solid var(--u-border-strong);
    color: var(--u-text);
  }

  body input:focus,
  body select:focus,
  body textarea:focus {
    border-color: var(--u-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    background: var(--u-surface);
  }

  body button[type="submit"],
  body button:not(.drawer-toggle):not(.drawer-close):not(.theme-quick-btn):not(.nav-item):not(.topup-copy-btn):not(.topup-preset-btn):not(.topup-bank-pick) {
    background: var(--u-primary);
    color: var(--u-primary-text);
    border: 1px solid var(--u-primary);
    box-shadow: none;
  }

  body button[type="submit"]:hover,
  body button:not(.drawer-toggle):not(.drawer-close):not(.theme-quick-btn):not(.nav-item):not(.topup-copy-btn):not(.topup-preset-btn):not(.topup-bank-pick):hover {
    background: var(--u-primary-hover);
    border-color: var(--u-primary-hover);
    color: var(--u-primary-text);
    transform: none;
    box-shadow: none;
  }

  body button[type="submit"]:active,
  body button:not(.drawer-toggle):not(.drawer-close):not(.theme-quick-btn):not(.nav-item):not(.topup-copy-btn):not(.topup-preset-btn):not(.topup-bank-pick):active {
    background: #d4d4d4;
    border-color: #d4d4d4;
  }

  body .msg.error,
  body .error {
    color: var(--u-error-text);
    background: var(--u-error-bg);
    border: 1px solid var(--u-error-border);
  }

  body .msg.success,
  body .success {
    color: var(--u-success-text);
    background: var(--u-success-bg);
    border: 1px solid var(--u-success-border);
  }

  body .page-content a.text-link,
  body.auth-center .card > a {
    color: var(--u-text);
    font-weight: 700;
  }

  body .page-content a.text-link:hover,
  body.auth-center .card > a:hover {
    color: var(--u-primary-hover);
    text-decoration: underline;
  }

  body .page-header .panel-title {
    color: var(--u-text);
  }

  body .page-header-brand,
  body .app-brand-name {
    color: var(--u-text);
  }

  body .page-header--bar {
    border-bottom-color: var(--u-border);
  }

  #account-drawer .drawer-header,
  #account-drawer .drawer-header-text,
  #account-drawer h2 {
    display: none !important;
    visibility: hidden !important;
  }

  body .home-wallet-hero {
    background: linear-gradient(145deg, #1c1c1c 0%, var(--u-surface) 55%, var(--u-bg) 100%);
    border-color: var(--u-border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  body .home-wallet-balance-value {
    color: var(--u-text);
  }

  body .home-section-title {
    color: var(--u-text-muted);
  }

  body .header-icon-btn {
    background: var(--u-surface);
    border-color: var(--u-border);
    color: var(--u-text);
  }

  body a.header-icon-btn:hover,
  body .header-icon-btn.drawer-toggle:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
    color: var(--u-text);
  }

  body .page-header .subtitle {
    color: var(--u-text-secondary);
  }

  body .info,
  body .list-item {
    color: var(--u-text);
    background: var(--u-surface);
    border: 1px solid var(--u-border);
  }

  body .balance {
    color: var(--u-text);
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body .empty-box {
    background: var(--u-surface);
    border: 2px dashed var(--u-border-strong);
    color: var(--u-text-secondary);
  }

  body .history-section-title,
  body .topup-presets-label,
  body .topup-section-title {
    color: var(--u-text-secondary);
  }

  body .topup-section-hint {
    color: var(--u-text-muted);
  }

  body .history-item {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
  }

  body .history-item-bank {
    color: var(--u-text);
  }

  body .history-item-date {
    color: var(--u-text-secondary);
  }

  body .history-item-bottom {
    border-top-color: var(--u-border);
  }

  body .history-item-amount {
    color: var(--u-text);
  }

  body .history-item-id {
    color: var(--u-text-muted);
  }

  body .history-status-pending {
    background: var(--u-warning-bg);
    color: var(--u-warning-text);
    border: 1px solid var(--u-warning-border);
  }

  body .history-status-approved {
    background: var(--u-success-bg);
    color: var(--u-success-text);
    border: 1px solid var(--u-success-border);
  }

  body .history-status-rejected {
    background: var(--u-error-bg);
    color: var(--u-error-text);
    border: 1px solid var(--u-error-border);
  }

  body .topup-preset-btn {
    background: var(--u-surface);
    border: 1px solid var(--u-border-strong);
    color: var(--u-text);
  }

  body .topup-preset-btn:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-text-muted);
  }

  body .topup-preset-btn.active {
    background: var(--u-primary);
    border-color: var(--u-primary);
    color: var(--u-primary-text);
  }

  body .topup-bank-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    box-shadow: none;
  }

  body a.topup-bank-link:hover {
    border-color: var(--u-border-strong);
    box-shadow: none;
  }

  body .topup-bank-name {
    color: var(--u-text);
  }

  body .topup-bank-meta,
  body .topup-bank-tap {
    color: var(--u-text-secondary);
  }

  body .topup-bank-img {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
  }

  body .topup-bank-detail {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    box-shadow: none;
  }

  body .topup-bank-detail-img {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
  }

  body .topup-bank-detail-name {
    color: var(--u-text);
  }

  body .topup-detail-row {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body .topup-detail-row .k {
    color: var(--u-text-secondary);
  }

  body .topup-detail-row .v {
    color: var(--u-text);
  }

  body .topup-copy-btn {
    background: var(--u-surface);
    border-color: var(--u-border-strong);
    color: var(--u-text);
  }

  body .topup-copy-btn:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-text-muted);
  }

  body .topup-copy-btn.copied {
    background: var(--u-success-bg);
    border-color: var(--u-success-border);
    color: var(--u-success-text);
  }

  body .topup-pay-form input[type="file"] {
    background: var(--u-surface);
    border: 1px solid var(--u-border-strong);
    color: var(--u-text);
  }

  body .home-banner-media {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body .home-banner-text {
    color: var(--u-text);
  }

  body .home-quick-item {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body .home-quick-item:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
  }

  body .home-quick-icon {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
    color: var(--u-text);
  }

  body .home-quick-label {
    color: var(--u-text);
  }

  body .home-game-card {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body .home-game-card:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
  }

  body .home-game-logo-wrap {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
  }

  body .home-game-name {
    color: var(--u-text);
  }

  body .game-packages-head,
  body .game-package-item {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body .game-packages-logo {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
  }

  body .game-packages-game-title,
  body .game-package-name,
  body .game-package-price {
    color: var(--u-text);
  }

  body .info .label {
    color: var(--u-text-secondary);
  }

  /* Flat layout — no background boxes on user app pages */
  body.app-page .card,
  body.app-page .app-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  body.app-page .home-game-card,
  body.app-page .home-banner-media,
  body.app-page .history-item,
  body.app-page .topup-bank-card,
  body.app-page .topup-bank-detail,
  body.app-page .topup-detail-row,
  body.app-page .game-packages-head,
  body.app-page .game-package-item,
  body.app-page .empty-box,
  body.app-page .info,
  body.app-page .list-item,
  body.app-page .balance {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  body.app-page .home-game-card:hover,
  body.app-page a.topup-bank-link:hover {
    background: transparent;
    box-shadow: none;
  }

  body.app-page .home-game-logo-wrap,
  body.app-page .topup-bank-img,
  body.app-page .topup-bank-detail-img,
  body.app-page .game-packages-logo {
    background: transparent;
    border: none;
  }

  body.app-page .mobile-operator-card {
    background: transparent;
    border: 1px solid var(--u-border);
  }

  body.app-page .mobile-operator-option input:checked + .mobile-operator-card,
  body.app-page .mobile-operator-card.active {
    background: var(--u-primary);
    border-color: var(--u-primary);
  }

  body.app-page .history-item {
    border-radius: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--u-border);
  }

  body.app-page .history-list .history-item:last-child {
    border-bottom: none;
  }

  body.app-page .empty-box {
    border: none;
    padding: 14px 0;
  }

  body.app-page .header-icon-btn {
    background: transparent;
    border: none;
  }

  body.app-page a.header-icon-btn:hover,
  body.app-page .header-icon-btn.drawer-toggle:hover {
    background: var(--u-surface-muted);
    border: none;
  }

  /* Home — Mobile / Games / Code quick actions with background boxes */
  body.app-page .home-quick-item {
    background: linear-gradient(180deg, var(--u-surface-muted) 0%, var(--u-surface) 100%);
    border: 1px solid var(--u-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  body.app-page .home-quick-item:hover {
    background: linear-gradient(180deg, #222 0%, var(--u-surface-muted) 100%);
    border-color: var(--u-border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  body.app-page .home-quick-icon {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  /* Topup orders — list cards with background boxes */
  body.app-page .page-content-topup-orders .history-item {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-topup-orders .history-list .history-item:last-child {
    border-bottom: none;
  }

  body.app-page .page-content-topup-orders .history-item-bottom {
    border-top: 1px solid var(--u-border);
  }

  body.app-page .page-content-currency-rate .fx-hero {
    background: linear-gradient(145deg, var(--u-surface-muted) 0%, var(--u-surface) 100%);
    border-color: var(--u-border);
  }

  body.app-page .page-content-currency-rate .fx-hero-text {
    color: var(--u-text-muted);
  }

  body.app-page .page-content-currency-rate .fx-hero-chip {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body.app-page .page-content-currency-rate .fx-hero-chip--thb {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(180deg, rgba(41, 36, 25, 0.9) 0%, var(--u-surface) 100%);
  }

  body.app-page .page-content-currency-rate .fx-hero-chip--mmk {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(180deg, rgba(20, 33, 25, 0.9) 0%, var(--u-surface) 100%);
  }

  body.app-page .page-content-currency-rate .fx-hero-chip-badge {
    background: var(--u-surface-muted);
    color: var(--u-text);
  }

  body.app-page .page-content-currency-rate .fx-hero-chip--thb .fx-hero-chip-value {
    color: #fbbf24;
  }

  body.app-page .page-content-currency-rate .fx-hero-chip--mmk .fx-hero-chip-value {
    color: #34d399;
  }

  body.app-page .page-content-currency-rate .fx-badge--thb {
    background: linear-gradient(180deg, rgba(41, 36, 25, 0.95) 0%, var(--u-surface-muted) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
  }

  body.app-page .page-content-currency-rate .fx-badge--mmk {
    background: linear-gradient(180deg, rgba(20, 33, 25, 0.95) 0%, var(--u-surface-muted) 100%);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
  }

  body.app-page .page-content-currency-rate .fx-panel {
    background: var(--u-surface);
    border-color: var(--u-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-currency-rate .fx-panel--thb {
    border-color: rgba(251, 191, 36, 0.4);
  }

  body.app-page .page-content-currency-rate .fx-panel--mmk {
    border-color: rgba(52, 211, 153, 0.35);
  }

  body.app-page .page-content-currency-rate .fx-panel-title {
    color: var(--u-text);
  }

  body.app-page .page-content-currency-rate .fx-panel-sub,
  body.app-page .page-content-currency-rate .fx-input-currency,
  body.app-page .page-content-currency-rate .fx-footnote {
    color: var(--u-text-muted);
  }

  body.app-page .page-content-currency-rate .fx-input {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
    color: var(--u-text);
  }

  body.app-page .page-content-currency-rate .fx-input:focus {
    border-color: var(--u-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  }

  body.app-page .page-content-currency-rate .fx-output {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
    color: var(--u-primary);
  }

  body.app-page .page-content-currency-rate .fx-panel--thb .fx-output {
    background: linear-gradient(180deg, rgba(41, 36, 25, 0.9) 0%, var(--u-surface-muted) 100%);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
  }

  body.app-page .page-content-currency-rate .fx-panel--mmk .fx-output {
    background: linear-gradient(180deg, rgba(20, 33, 25, 0.9) 0%, var(--u-surface-muted) 100%);
    border-color: rgba(52, 211, 153, 0.25);
    color: #34d399;
  }

  body.app-page .page-content-currency-rate .fx-footnote {
    border-top-color: var(--u-border);
  }

  body.app-page .page-content-topup-orders .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  body.app-page.site-closed-page {
    background: var(--u-bg);
  }

  body.app-page .site-closed-card {
    background: var(--u-surface);
    border-color: var(--u-border);
  }

  body.app-page .site-closed-title {
    color: var(--u-text);
  }

  body.app-page .site-closed-message {
    color: var(--u-text-muted);
  }

  body.app-page .history-channel-tabs {
    gap: 8px;
    margin-bottom: 14px;
  }

  body.app-page .history-channel-tab {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    color: var(--u-text);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }

  body.app-page .history-channel-tab.is-active {
    background: var(--u-primary);
    border-color: var(--u-primary);
    color: var(--u-primary-text);
  }

  /* Game packages — cards with background boxes */
  body.app-page .page-content-game-packages .game-packages-head {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-game-packages .game-packages-logo {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-game-packages .game-package-item {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-game-packages .game-packages-list {
    gap: 10px;
  }

  body.app-page .page-content-game-packages .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  /* Account topup (topup.php) — background boxes */
  body.app-page .page-content-account-topup .topup-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-account-topup .topup-card--banks .topup-section-title {
    margin-top: 0;
  }

  body.app-page .page-content-account-topup .topup-bank-card {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
    box-shadow: none;
  }

  body.app-page .page-content-account-topup a.topup-bank-link:hover,
  body.app-page .page-content-account-topup button.topup-bank-pick:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-account-topup button.topup-bank-pick {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
    color: var(--u-text);
    box-shadow: none;
  }

  body.app-page .page-content-account-topup button.topup-bank-pick.active {
    border-color: var(--u-primary);
    background: var(--u-surface);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  }

  body.app-page .page-content-account-topup .topup-order-btn {
    background: var(--u-primary);
    border-color: var(--u-primary);
    color: var(--u-primary-text);
  }

  body.app-page .page-content-account-topup .topup-order-btn:hover:not(:disabled) {
    background: var(--u-primary-hover);
    border-color: var(--u-primary-hover);
  }

  body.app-page .page-content-account-topup .topup-bank-img {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-account-topup .topup-bank-list {
    gap: 10px;
  }

  body.app-page .page-content-account-topup .empty-box {
    background: var(--u-surface);
    border: 1px dashed var(--u-border-strong);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    margin-top: 4px;
  }

  body.app-page .page-content-account-topup .topup-bank-arrow {
    color: var(--u-text-muted);
  }

  /* User code page — cards with background boxes */
  body.app-page .page-content-code .code-item-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-code .code-item-card:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
  }

  /* Games page — game cards with background boxes */
  body.app-page .page-content-games .home-game-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-games .home-game-card:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }

  body.app-page .page-content-games .home-game-logo-wrap {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-games .home-game-name {
    color: var(--u-text);
  }

  body.app-page .page-content-games .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  /* Code packages — cards with background boxes (same as game packages) */
  body.app-page .page-content-code-packages .game-packages-head,
  body.app-page .page-content-code-packages .code-packages-head {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-code-packages .game-packages-logo {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-code-packages .game-packages-logo--placeholder {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    color: var(--u-text-muted);
  }

  body.app-page .page-content-code-packages .game-packages-game-title {
    color: var(--u-text);
  }

  body.app-page .page-content-code-packages .game-package-item {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-code-packages .game-package-name,
  body.app-page .page-content-code-packages .game-package-price {
    color: var(--u-text);
  }

  body.app-page .page-content-code-packages .game-packages-list {
    gap: 10px;
  }

  body.app-page .page-content-code-packages a.game-package-item--link:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
  }

  body.app-page .page-content-game-packages a.game-package-item--link:hover {
    border-color: rgba(255, 255, 255, 0.22);
  }

  body.app-page .page-content-code-order .topup-card,
  body.app-page .page-content-code-order .code-order-card,
  body.app-page .page-content-game-order .topup-card,
  body.app-page .page-content-game-order .code-order-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-code-order .topup-order-btn,
  body.app-page .page-content-game-order .topup-order-btn,
  body.app-page .page-content-mobile-topup .topup-order-btn {
    background: var(--u-primary);
    border-color: var(--u-primary);
    color: var(--u-primary-text);
  }

  body.app-page .page-content-topup-orders .history-item-code-value {
    color: var(--u-text);
  }

  body.app-page .page-content-code-packages .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  /* Notifications page — cards with background boxes */
  body.app-page .page-content-notifications .notification-item {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-notifications .notification-media {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-notifications .notification-text {
    color: var(--u-text);
  }

  body.app-page .page-content-contact .contact-note-box,
  body.app-page .page-content-contact .contact-channel-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-contact .contact-channel-card:hover {
    background: var(--u-surface-muted);
    border-color: var(--u-border-strong);
  }

  body.app-page .page-content-contact .contact-channel-title {
    color: var(--u-text);
  }

  body.app-page .page-content-contact .contact-channel-subtitle {
    color: var(--u-text-muted);
  }

  body.app-page .page-content-contact .contact-note-text {
    color: var(--u-text);
  }

  body.app-page .page-content-contact .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  body.app-page .page-content-notifications .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  body.app-page .page-content-code .code-item-logo-wrap {
    background: var(--u-surface-muted);
    border-color: var(--u-border);
  }

  body.app-page .page-content-code .code-item-name {
    color: var(--u-text);
  }

  body.app-page .page-content-code .empty-box {
    background: var(--u-surface-muted);
    border: 1px dashed var(--u-border-strong);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  /* Topup pay (topup-pay.php) — background boxes */
  body.app-page .page-content-topup-pay .topup-card {
    background: var(--u-surface);
    border: 1px solid var(--u-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.app-page .page-content-topup-pay .topup-bank-detail {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  body.app-page .page-content-topup-pay .topup-bank-detail-img {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-topup-pay .topup-detail-row {
    background: var(--u-surface-muted);
    border: 1px solid var(--u-border);
  }

  body.app-page .page-content-topup-pay .topup-pay-form label {
    margin-top: 0;
  }

  body.app-page .page-content-topup-pay .topup-pay-form button[type="submit"] {
    margin-top: 16px;
  }
