﻿/* Account follows the existing cinema homepage palette and icon treatment. */
body:has(.pathe-account) #app,
body:has(.pathe-account) #app > div,
body:has(.pathe-account) #app > div > div,
body:has(.pathe-account) .van-config-provider {
  width: min(100%, 1000px) !important;
  max-width: 100vw !important;
  min-width: 0;
}
.pathe-account {
  --account-panel: #1d222d;
  --account-line: rgba(247, 244, 236, .15);
  min-height: 100vh;
  padding: 0 36px 112px;
  background: #151821;
  color: #f7f4ec;
  font-family: "Franklin Gothic Medium", "Microsoft YaHei", sans-serif;
}
.pathe-account button, .pathe-account a { -webkit-tap-highlight-color: transparent; }
.pathe-account button { font: inherit; cursor: pointer; }
.pathe-account button:focus-visible, .pathe-account a:focus-visible {
  outline: 2px solid #f4bf2d;
  outline-offset: 4px;
}
.pathe-account-header { display: flex; align-items: center; gap: 24px; min-height: 112px; border-bottom: 1px solid var(--account-line); }
.pathe-account-brand { display: flex; align-items: center; flex-shrink: 0; }
.pathe-account-brand img, .pathe-account-brand svg { width: 88px; height: 44px; object-fit: contain; }
.pathe-account-title { margin: 0; font-size: 28px; font-weight: 700; }
.pathe-account-settings { display: grid; place-items: center; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--account-line); border-radius: 50%; }
.pathe-account-icon { width: 28px; height: 28px; flex-shrink: 0; }
.pathe-account-settings .pathe-account-icon { width: 24px; height: 24px; }
.pathe-account-profile { padding: 28px 0 24px; }
.pathe-account-identity { display: flex; align-items: center; gap: 16px; }
.pathe-account-avatar .van-image { width: 64px; height: 64px; border: 1px solid var(--account-line); }
.pathe-account-name { font-size: 26px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pathe-account-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #b9bdc5; font-size: 13px; }
.pathe-account-code { color: #f7f4ec; letter-spacing: .04em; }
.pathe-account-copy { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; }
.pathe-account-copy img { width: 18px; height: 18px; }
.pathe-account-vip-badge { margin-left: auto; flex-shrink: 0; min-width: 68px; padding: 10px 14px; border: 1px solid #f4bf2d; border-radius: 4px; background: transparent; color: #f4bf2d; font-weight: 700; }
.pathe-account-credit { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 16px 0 0 80px; }
.pathe-account-credit-label { color: #b9bdc5; font-size: 12px; white-space: nowrap; }
.pathe-account-credit-track { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; }
.pathe-account-credit-value { color: #f4bf2d; font-size: 12px; }
.pathe-account-balances > div {
  padding: 24px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  background: var(--account-panel);
}
.pathe-account-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pathe-account-balance-content { flex: 1; min-width: 0; }
.pathe-account-balance-details { margin-top: 22px; }
.pathe-account-balance-stack { padding-left: 0; }
.pathe-account-balance-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.pathe-account-balance-stats > div { padding-left: 0; }
.pathe-account-balance-stats > div::before { display: none; }
.pathe-account-balances .text-sm { color: #b9bdc5; font-size: 12px; }
.pathe-account-balance-stats > div > .text-sm { min-height: 40px; }
.pathe-account-balance-stats .font-bold { margin-top: 8px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pathe-account-balance-content > .relative { width: fit-content; min-width: 150px; border: 1px solid var(--account-line); border-radius: 4px; background: #151821; color: #f7f4ec; }
.pathe-account-balances .ml-1 { font-size: 11px; }
.pathe-account-balance-progress { padding: 0 0 0 24px; border-left: 1px solid var(--account-line); }
.pathe-account-balances .van-circle { width: 100px !important; height: 100px !important; }
.pathe-account-balances .van-circle__hover { stroke: #f4bf2d !important; }
.pathe-account-balances .van-circle__text { color: #f7f4ec; font-size: 17px; }
.pathe-account-balance-progress-label { margin-top: 8px; color: #b9bdc5; font-size: 12px; }
.pathe-account-content { padding-top: 20px; }
.pathe-account-vip-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 24px; border: 1px solid var(--account-line); border-radius: 8px; background: var(--account-panel); color: #f7f4ec; text-align: left; }
.pathe-account-level-name { font-size: 18px; font-weight: 700; color: #f4bf2d; }
.pathe-account-level-label { margin-left: auto; font-size: 13px; color: #b9bdc5; }
.pathe-account-finance, .pathe-account-other { margin-top: 30px; }
.pathe-account-section-title { margin-bottom: 14px; font-size: 19px; font-weight: 700; }
.pathe-account-wallet { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 1px solid #f4bf2d; border-radius: 6px; background: transparent; color: #f4bf2d; }
.pathe-account-wallet-label { color: #f4bf2d; font-size: 15px; font-weight: 600; }
.pathe-account-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.pathe-account-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 112px; padding: 16px 8px; border: 1px solid var(--account-line); border-radius: 6px; background: var(--account-panel); color: #f7f4ec; }
.pathe-account-action-label { font-size: 14px; }
.pathe-account-support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pathe-account-support-grid.grid-cols-1 { grid-template-columns: 1fr; }
.pathe-account-support-button { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 76px; padding: 18px 22px; border: 1px solid var(--account-line); border-radius: 6px; background: var(--account-panel); color: #f7f4ec; text-align: left; }
.pathe-account-notice-column { display: flex; }
.pathe-account-notice-column > div:empty { display: none; }
.pathe-account-support-label { font-size: 14px; }
.pathe-account-logout { margin-top: 28px; }
body.pathe-app-page .pathe-account .pathe-account-logout-button { border: 1px solid var(--account-line) !important; border-radius: 6px; background: transparent !important; color: #b9bdc5 !important; }
@media (hover: hover) {
  .pathe-account-vip-card:hover, .pathe-account-action:hover, .pathe-account-support-button:hover, .pathe-account-settings:hover { border-color: #f4bf2d; background: #242a36; }
  .pathe-account-wallet:hover, .pathe-account-vip-badge:hover { background: rgba(244,191,45,.08); }
}
@media (max-width: 600px) {
  .pathe-account { padding: 0 20px 104px; }
  .pathe-account-header { min-height: 88px; gap: 16px; }
  .pathe-account-brand img, .pathe-account-brand svg { width: 72px; height: 40px; }
  .pathe-account-title { font-size: 24px; }
  .pathe-account-profile { padding: 24px 0; }
  .pathe-account-identity { gap: 12px; }
  .pathe-account-avatar .van-image { width: 52px; height: 52px; }
  .pathe-account-name { font-size: 22px; }
  .pathe-account-invite { gap: 4px; font-size: 11px; }
  .pathe-account-copy { width: 32px; height: 44px; }
  .pathe-account-vip-badge { min-width: 56px; padding: 8px 10px; font-size: 13px; }
  .pathe-account-credit { margin: 16px 0 0; max-width: none; }
  .pathe-account-balances > div { padding: 20px 16px; }
  .pathe-account-balance-row { flex-direction: column; align-items: stretch; gap: 22px; }
  .pathe-account-balance-stats { gap: 12px; }
  .pathe-account-balance-stats .font-bold { font-size: 21px; }
  .pathe-account-balances .ml-1 { display: block; margin: 4px 0 0; }
  .pathe-account-balance-progress { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--account-line); }
  .pathe-account-balances .van-circle { width: 76px !important; height: 76px !important; }
  .pathe-account-balance-progress-label { margin: 0; font-size: 13px; }
  .pathe-account-vip-card { padding: 18px 16px; }
  .pathe-account-actions, .pathe-account-support-grid { gap: 10px; }
  .pathe-account-action { min-height: 104px; }
  .pathe-account-action-label { font-size: 12px; }
  .pathe-account-support-button { padding: 16px 12px; gap: 10px; }
  .pathe-account-support-label { font-size: 12px; }
}

/* Keep earnings period choices legible on the dark account panel. */
.pathe-account-balance-content .van-dropdown-menu__bar,
.pathe-account-balance-content .van-dropdown-item__content,
.pathe-account-balance-content .van-dropdown-item__option { background: #1d222d !important; color: #f7f4ec !important; }
.pathe-account-balance-content .van-dropdown-item__option--active { color: #f4bf2d !important; }
.pathe-account-balance-content .van-dropdown-item__icon { color: #f4bf2d !important; }

/* Keep the uploaded logo proportional in the account header. */
.pathe-account-brand { width: 88px; height: 44px; flex: 0 0 88px; overflow: hidden; }
.pathe-account-brand img, .pathe-account-brand img.pathe-custom-logo, .pathe-account-brand svg { display: block; width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain !important; }
@media (max-width: 480px) { .pathe-account-brand { width: 72px; height: 40px; flex-basis: 72px; } }
