/* Mood — пилот редизайна кошелька в профиле (v2) */

/* Сетка и поля: как pf-layout (1416 / 238+1fr), без узкой колонки 1280px */
body.mood-account-page-mode #accountModal .account-modal-body:has(#accountAuth.mood-profile-wallet-v2) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 27px 32px 44px !important;
  box-sizing: border-box;
}

body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 {
  width: 100%;
  max-width: 1416px !important;
  margin: 0 auto !important;
  grid-template-columns: 238px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
}

#accountModal:has(#accountAuth.mood-profile-wallet-v2) .account-auth {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 26px;
  max-width: 1416px;
  margin: 0 auto;
}

#accountModal:has(#accountAuth.mood-profile-wallet-v2) .modal-dialog.account-modal-box {
  max-width: min(1416px, calc(100vw - 32px));
}

#accountModal:has(#accountAuth.mood-profile-wallet-v2) .account-modal-body {
  padding: 27px 32px 44px;
}

#accountAuth.mood-profile-wallet-v2 {
  --pf-bg: var(--bg, #0C1016);
  --pf-panel: var(--surface, #151B25);
  --pf-raised: var(--surface-2, #202734);
  --pf-ink: var(--text, #F3F5F8);
  --pf-muted: var(--text-muted, #A5AFBF);
  --pf-line: #FFFFFF14;
  --pf-accent: #59DFCF;
  --pf-brand: linear-gradient(105deg, #44EBD5, #80BDC2 55%, #C888A6);
  --pf-button-ink: #152D2D;
  --pf-amber: #E8C482;
  --pf-amber-bg: #382F2244;
}

html[data-theme="light"] #accountAuth.mood-profile-wallet-v2 {
  --pf-line: #15213916;
  --pf-accent: #B93B53;
  --pf-brand: linear-gradient(105deg, #FFA325, #F3536B);
  --pf-button-ink: #382014;
  --pf-amber: #855D24;
  --pf-amber-bg: #FBF0DF80;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__wallet {
  display: none !important;
}

/* Сайдбар профиля — pf-profile-side */
#accountAuth.mood-profile-wallet-v2 #accDash {
  padding: 18px 12px 10px;
  border-radius: 20px;
  background: var(--pf-panel);
  border: 1px solid var(--pf-line);
  gap: 0;
  box-shadow: none;
}

/* Шапка игрока — pf-player */
#accountAuth.mood-profile-wallet-v2 .acc-dash__hero {
  position: relative;
  overflow: visible;
  margin: 0 0 11px;
  padding: 2px 8px 23px;
  border: 0;
  border-bottom: 1px solid var(--pf-line);
  border-radius: 0;
  background: transparent;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__hero-glow {
  display: none;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__identity {
  align-items: center;
  gap: 13px;
}

#accountAuth.mood-profile-wallet-v2 .acc-avatar-wrap {
  width: 52px;
  height: 52px;
}

#accountAuth.mood-profile-wallet-v2 .acc-avatar {
  width: 52px;
  height: 52px;
  font-size: 25px;
  font-weight: 650;
  font-family: inherit;
  border: 0;
  box-shadow: none;
  background: var(--pf-brand);
  color: var(--pf-button-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-avatar:hover {
  transform: none;
  box-shadow: none;
}

#accountAuth.mood-profile-wallet-v2 .acc-avatar__level {
  right: -3px;
  bottom: -3px;
  min-width: 21px;
  width: 21px;
  height: 21px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  border: 3px solid var(--pf-panel);
  border-radius: 50%;
  background: var(--pf-raised);
  color: var(--pf-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__who {
  gap: 1px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__name {
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--pf-ink);
  -webkit-text-fill-color: unset;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__level-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--pf-accent);
  background: none;
  -webkit-text-fill-color: unset;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__id {
  margin-top: 1px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pf-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__id:hover {
  background: none;
  border: 0;
  color: var(--pf-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp {
  margin-top: 20px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-head {
  margin: 0;
  color: var(--pf-muted);
  font-size: 10px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-label,
#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--pf-muted);
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-value {
  color: var(--pf-ink);
  white-space: nowrap;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-track {
  height: 4px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--pf-raised);
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__xp-fill {
  background: var(--pf-brand);
  border-radius: 8px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__logout {
  margin-top: 12px;
  border-top: 1px solid var(--pf-line);
  padding-top: 8px;
  min-height: 44px;
  color: var(--pf-muted);
  font-size: 11px;
  background: none;
}

/* Хлебные крошки и заголовок раздела */
#accountAuth.mood-profile-wallet-v2 .acc-pf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 22px;
  font-size: 11px;
  color: var(--pf-muted);
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-breadcrumb strong {
  font-weight: 550;
  color: var(--pf-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 23px;
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-heading__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--pf-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-heading__sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pf-muted);
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-private {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--pf-muted);
  white-space: nowrap;
}

#accountAuth.mood-profile-wallet-v2 .acc-pf-private > span {
  font-size: 17px;
}

#accountAuth.mood-profile-wallet-v2 .acc-panel > .acc-panel-title,
#accountAuth.mood-profile-wallet-v2 .acc-panel > .acc-panel-sub {
  display: none;
}

body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 .acc-panel {
  padding: 0 !important;
}

#accountAuth.mood-profile-wallet-v2 .acc-main {
  min-width: 0;
}

/* Вертикальное меню разделов в сайдбаре (как в макете) */
#accountAuth.mood-profile-wallet-v2 .acc-dash__nav.acc-nav {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin: 2px 0 8px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: static;
  flex-wrap: nowrap;
}

body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: none !important;
  color: var(--pf-muted) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  white-space: nowrap !important;
  text-align: left !important;
  box-shadow: none !important;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--pf-muted);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
  text-align: left;
}

body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item:hover:not(.active),
#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item:hover:not(.active) {
  background: var(--pf-raised) !important;
  color: var(--pf-ink) !important;
}

body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active,
#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active {
  background: var(--pf-brand) !important;
  color: var(--pf-button-ink) !important;
  font-weight: 720 !important;
  box-shadow: none !important;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active:hover {
  color: var(--pf-button-ink) !important;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item > span:not(.acc-nav-icon) {
  flex: 1;
  min-width: 0;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active::after {
  content: "↗";
  flex: none;
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active .acc-nav-badge,
#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active .acc-nav-dot {
  margin-left: auto;
  margin-right: 6px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item svg {
  display: none;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-icon,
#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .mood-profile-icon-img {
  width: 25px;
  height: 26px;
  flex: none;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-badge {
  margin-left: auto;
  background: var(--pf-raised);
  color: var(--pf-ink);
  font-size: 9px;
  min-width: 16px;
  height: 16px;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active .acc-nav-badge {
  background: color-mix(in srgb, var(--pf-button-ink) 18%, transparent);
  color: var(--pf-button-ink);
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-dot {
  margin-left: auto;
}

#accountAuth.mood-profile-wallet-v2 .acc-dash__nav .acc-nav-item.active .acc-nav-dot {
  background: var(--pf-button-ink);
}

@media (min-width: 901px) {
  body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 #accDash,
  #accountAuth.mood-profile-wallet-v2 #accDash {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    scrollbar-width: thin;
  }

  #accountAuth.mood-profile-wallet-v2 .acc-dash__statuses,
  #accountAuth.mood-profile-wallet-v2 .acc-dash__facts {
    display: none;
  }
}

#accountAuth.mood-profile-wallet-v2 #accWalletsBlock {
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  background: var(--pf-panel);
  padding: 24px;
}

#accountAuth.mood-profile-wallet-v2 #accWalletsBlock .acc-card__aside {
  display: none;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 25px;
  padding: 22px 0;
  border-top: 1px solid var(--pf-line);
  border-bottom: 1px solid var(--pf-line);
  flex-wrap: wrap;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-real {
  min-width: 150px;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-bonus {
  border-left: 1px solid var(--pf-line);
  padding-left: 28px;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-row > div > span {
  font-size: 12px;
  color: var(--pf-muted);
  display: block;
  margin-bottom: 7px;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-real > strong {
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 720;
  white-space: nowrap;
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-bonus > strong {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 650;
  white-space: nowrap;
  letter-spacing: -0.025em;
  color: var(--accent-2, #E8C482);
}

#accountAuth.mood-profile-wallet-v2 .pf-balance-row strong > small,
#accountAuth.mood-profile-wallet-v2 .pf-balance-row .acc-balance-cur {
  font-size: 0.57em;
  color: var(--pf-muted);
  font-weight: 600;
}

#accountAuth.mood-profile-wallet-v2 .pf-money-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}

#accountAuth.mood-profile-wallet-v2 .pf-money-actions .btn-primary {
  background: var(--pf-brand);
  color: var(--pf-button-ink);
  border: 0;
}

#accountAuth.mood-profile-wallet-v2 .pf-account-note {
  font-size: 11px;
  color: var(--pf-muted);
  margin-top: 14px;
}

#accountAuth.mood-profile-wallet-v2 .pf-active-currency {
  font-size: 8px;
  font-weight: 600;
  background: var(--pf-raised);
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--pf-ink);
}

#accountAuth.mood-profile-wallet-v2 .pf-verification {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 12px 17px;
  background: var(--pf-amber-bg);
  border-radius: 13px;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification.hidden,
#accountAuth.mood-profile-wallet-v2 .pf-verification[hidden] {
  display: none !important;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification > div {
  flex: 1;
  min-width: 0;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification strong {
  font-size: 12px;
  font-weight: 650;
  color: var(--pf-amber);
}

#accountAuth.mood-profile-wallet-v2 .pf-verification p {
  font-size: 11px;
  color: var(--pf-muted);
  margin: 2px 0 0;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification .pf-text-button {
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
  padding: 10px 4px;
  color: var(--pf-ink);
  font-size: 11px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification .pf-text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#accountAuth.mood-profile-wallet-v2 .pf-verification > [data-profile-icon] {
  width: 31px;
  height: 34px;
  flex: none;
  display: block;
}

#accountAuth.mood-profile-wallet-v2 .pm-block-heading .pm-block-icon[data-profile-icon] {
  width: 40px;
  height: 40px;
  display: block;
}

#accountAuth.mood-profile-wallet-v2 #accPayoutMethodsBlock {
  margin-top: 0;
}

#accountAuth.mood-profile-wallet-v2 .acc-balance-hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--pf-muted);
  margin-top: 22px;
}

@media (max-width: 1000px) {
  #accountAuth.mood-profile-wallet-v2 .pf-balance-row {
    gap: 20px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-money-actions {
    margin-left: 0;
    width: 100%;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-money-actions > .btn {
    flex: 1;
  }
}

@media (max-width: 800px) {
  #accountAuth.mood-profile-wallet-v2 .pf-verification {
    flex-wrap: wrap;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-verification .pf-text-button {
    margin-left: 43px;
  }
}

@media (max-width: 600px) {
  #accountAuth.mood-profile-wallet-v2 #accWalletsBlock {
    padding: 18px 16px;
    border-radius: 18px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-balance-row {
    margin-top: 10px;
    gap: 22px;
    padding: 20px 0 18px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-balance-real {
    min-width: 115px;
    flex: 1;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-balance-real > strong {
    font-size: 31px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-balance-bonus {
    padding-left: 22px;
    flex: 1;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-balance-bonus > strong {
    font-size: 24px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-verification {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  #accountAuth.mood-profile-wallet-v2 .pf-verification .pf-text-button {
    margin-left: 37px;
  }
}

@media (max-width: 550px) {
  #accountAuth.mood-profile-wallet-v2 .pf-verification .pf-text-button {
    margin-left: 0;
    flex-basis: 100%;
    justify-content: flex-start;
    padding-left: 37px;
  }
}

@media (max-width: 1500px) {
  body.mood-account-page-mode #accountModal .account-modal-body:has(#accountAuth.mood-profile-wallet-v2) {
    padding: 24px !important;
  }

  body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 {
    grid-template-columns: 224px minmax(0, 1fr) !important;
    gap: 22px !important;
  }
}

@media (max-width: 1000px) {
  body.mood-account-page-mode #accountAuth.mood-profile-wallet-v2 {
    grid-template-columns: 212px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #accountAuth.mood-profile-wallet-v2 .acc-pf-private {
    display: none;
  }

  #accountAuth.mood-profile-wallet-v2 .acc-pf-heading__title {
    font-size: 26px;
  }
}

@media (max-width: 800px) {
  body.mood-account-page-mode #accountModal .account-modal-body:has(#accountAuth.mood-profile-wallet-v2) {
    padding: 18px !important;
  }

  body.mood-mobile-v3 #accountAuth.mood-profile-wallet-v2 .acc-pf-breadcrumb,
  body.mood-mobile-v3 #accountAuth.mood-profile-wallet-v2 .acc-pf-heading {
    display: none;
  }

  #accountAuth.mood-profile-wallet-v2 .acc-pf-heading__title {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  body.mood-account-page-mode #accountModal .account-modal-body:has(#accountAuth.mood-profile-wallet-v2) {
    padding: 15px 14px 28px !important;
  }
}
