/*
 * WOW ATLAS Global 2.0 — P1 Passport / Profile / Atlas Club overlay.
 *
 * Reversible presentation layer: this file only overrides existing .g2-* DOM.
 * It does not replace Angular templates, hashed chunks or API behaviour.
 */

:root {
  --p1-mint: #cbe4dc;
  --p1-mint-deep: #bcdad1;
  --p1-green: #103f38;
  --p1-coral: #f45a48;
  --p1-paper: #fbf8ef;
  --p1-yellow: #f4ca58;
  --p1-lilac: #d8cde8;
  --p1-blue: #ccdce9;
  --p1-olive: #dce5bd;
  --p1-soft-shadow: 0 18px 38px rgba(16, 63, 56, .11);
}

/* Shared page atmosphere: one calm mint canvas, as in the approved prototype. */
.p1-passport-profile .g2-passport,
.p1-passport-profile .g2-club,
.p1-passport-profile .g2-user-profile {
  background:
    radial-gradient(circle at 112% 14%, rgba(255, 255, 255, .38) 0 20%, transparent 20.4%),
    radial-gradient(circle at -14% 86%, rgba(222, 207, 195, .27) 0 24%, transparent 24.4%),
    var(--p1-mint) !important;
  color: var(--p1-green) !important;
}

.p1-passport-profile .g2-passport > small,
.p1-passport-profile .g2-club > small,
.p1-passport-profile .g2-user-profile > small {
  color: var(--p1-coral) !important;
  letter-spacing: .15em !important;
}

.p1-passport-profile .g2-passport > h1,
.p1-passport-profile .g2-club > h1,
.p1-passport-profile .g2-user-profile > h1,
.p1-passport-profile .g2-passport > h2,
.p1-passport-profile .g2-club > h2 {
  color: var(--p1-green) !important;
}

.p1-passport-profile .g2-passport > h1 em,
.p1-passport-profile .g2-club > h1 em,
.p1-passport-profile .g2-user-profile > h1 em,
.p1-passport-profile .g2-passport > h2 em,
.p1-passport-profile .g2-club > h2 em {
  color: var(--p1-green) !important;
}

.p1-passport-profile .g2-passport > h1,
.p1-passport-profile .g2-user-profile > h1 {
  margin: 28px 0 20px !important;
  line-height: .9 !important;
}

.p1-passport-profile .g2-back {
  border: 1px solid rgba(255, 255, 255, .7) !important;
  background: rgba(251, 248, 239, .88) !important;
  color: var(--p1-green) !important;
  box-shadow: 0 10px 22px rgba(16, 63, 56, .08);
}

/* Passport tabs */
.p1-passport-profile .g2-passport .g2-segment,
.p1-passport-profile .g2-passport .g2-tabbar,
.p1-passport-profile .g2-club .g2-tabbar {
  min-height: 62px !important;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px !important;
  padding: 5px !important;
  background: rgba(251, 248, 239, .62) !important;
  box-shadow: 0 12px 27px rgba(16, 63, 56, .07);
}

.p1-passport-profile .g2-passport .g2-segment > button,
.p1-passport-profile .g2-tabbar > button {
  border-radius: 20px !important;
  color: rgba(16, 63, 56, .54) !important;
}

.p1-passport-profile .g2-passport .g2-segment > button.active,
.p1-passport-profile .g2-tabbar > button.active {
  background: var(--p1-green) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(16, 63, 56, .24) !important;
}

/* Passport / Cities: illustrated chapter cards with visible progress. */
.p1-passport-profile .g2-city-chapters {
  margin-top: 24px !important;
  display: grid !important;
  gap: 16px !important;
}

.p1-passport-profile .g2-city-chapters > button {
  --p1-city-card: var(--p1-blue);
  --p1-city-progress: 88%;
  position: relative !important;
  min-height: 218px !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 35px !important;
  padding: 53px 32px 34px 175px !important;
  display: block !important;
  overflow: hidden !important;
  text-align: left !important;
  background: var(--p1-city-card) !important;
  box-shadow: var(--p1-soft-shadow) !important;
  isolation: isolate;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), box-shadow .26s ease !important;
}

.p1-passport-profile .g2-city-chapters > button:nth-child(2) {
  --p1-city-card: var(--p1-olive);
  --p1-city-progress: 66%;
}

.p1-passport-profile .g2-city-chapters > button:nth-child(3) {
  --p1-city-card: #efd9c8;
  --p1-city-progress: 12%;
}

.p1-passport-profile .g2-city-chapters > button::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 24px;
  top: 36px;
  width: 124px;
  height: 124px;
  border: 8px solid rgba(255, 255, 255, .88);
  border-radius: 31px;
  background:
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    var(--p1-city-image, url("../images/map-preview/moscow.jpg")) center / cover no-repeat;
  box-shadow: 0 12px 24px rgba(16, 63, 56, .15);
  transform: rotate(-1.2deg);
}

.p1-passport-profile .g2-city-chapters > button::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 17px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--p1-coral) var(--p1-city-progress), rgba(255, 255, 255, .55) var(--p1-city-progress));
}

.p1-passport-profile .g2-city-chapters > button > b {
  position: absolute !important;
  right: 22px;
  top: 18px;
  color: rgba(16, 63, 56, .45) !important;
  font: italic 18px var(--wow-serif) !important;
}

.p1-passport-profile .g2-city-chapters > button > span {
  position: absolute;
  z-index: 2;
  left: 111px;
  top: 116px;
  width: 55px !important;
  height: 55px !important;
  border: 4px solid rgba(255, 255, 255, .92) !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: var(--p1-coral) !important;
  color: #fff !important;
  font: 900 10px var(--wow-sans) !important;
  box-shadow: 0 9px 18px rgba(16, 63, 56, .19);
  transform: rotate(3deg) !important;
}

.p1-passport-profile .g2-city-chapters > button > i {
  min-width: 0;
  color: var(--p1-green) !important;
}

.p1-passport-profile .g2-city-chapters > button > i > small {
  color: var(--p1-coral) !important;
  font-size: 8px !important;
  letter-spacing: .1em;
}

.p1-passport-profile .g2-city-chapters > button > i > strong {
  margin: 8px 0 6px !important;
  font: 700 29px/.95 var(--wow-serif) !important;
}

.p1-passport-profile .g2-city-chapters > button > i > em {
  color: rgba(16, 63, 56, .62) !important;
  font-size: 10px !important;
}

.p1-passport-profile .g2-city-chapters > button > strong {
  position: absolute;
  right: 25px;
  bottom: 34px;
  color: var(--p1-green);
}

.p1-passport-profile .g2-city-chapters > button:hover {
  transform: translateY(-4px) rotate(.25deg) !important;
  box-shadow: 0 22px 42px rgba(16, 63, 56, .16) !important;
}

/* Passport / Collection: two-up visual cards from the prototype. */
.p1-passport-profile .g2-passport .g2-filter-row {
  margin: 16px 0 20px !important;
  overflow: visible !important;
}

.p1-passport-profile .g2-passport .g2-filter-row > button {
  border: 1px solid rgba(255, 255, 255, .65) !important;
  background: rgba(251, 248, 239, .72) !important;
}

.p1-passport-profile .g2-passport .g2-filter-row > button.active {
  background: var(--p1-coral) !important;
  color: #fff !important;
}

.p1-passport-profile .g2-collection {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 13px !important;
}

.p1-passport-profile .g2-collection > button {
  position: relative !important;
  min-height: 272px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 31px !important;
  padding: 172px 17px 18px !important;
  display: block !important;
  overflow: hidden;
  text-align: left !important;
  background: var(--p1-paper) !important;
  box-shadow: 0 15px 30px rgba(16, 63, 56, .1);
  transition: transform .24s ease, box-shadow .24s ease !important;
}

.p1-passport-profile .g2-collection > button::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 142px;
  border-radius: 25px;
  background: var(--p1-collection-image, url("../images/map-preview/moscow.jpg")) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(16, 63, 56, .04);
}

.p1-passport-profile .g2-collection > button > b {
  position: absolute;
  z-index: 2;
  right: 23px;
  top: 23px;
  width: 47px !important;
  height: 47px !important;
  border-radius: 50% !important;
  background: rgba(251, 248, 239, .96) !important;
  color: var(--p1-coral) !important;
  box-shadow: 0 8px 18px rgba(16, 63, 56, .12);
}

.p1-passport-profile .g2-collection > button > span {
  display: block;
}

.p1-passport-profile .g2-collection > button small {
  margin: 0 0 6px !important;
  color: var(--p1-coral) !important;
  font-size: 8px !important;
  font-weight: 900;
  letter-spacing: .1em;
}

.p1-passport-profile .g2-collection > button strong {
  color: var(--p1-green);
  font: 700 21px/.96 var(--wow-serif) !important;
}

.p1-passport-profile .g2-collection > button em {
  margin-top: 7px !important;
  color: rgba(16, 63, 56, .61) !important;
  font-size: 9px !important;
}

.p1-passport-profile .g2-collection > button:hover {
  transform: translateY(-4px) rotate(.25deg);
  box-shadow: 0 20px 37px rgba(16, 63, 56, .15);
}

/* Atlas Club: opaque yellow balance card, mint page and prototype hierarchy. */
.p1-passport-profile .g2-club > .g2-back {
  margin-bottom: 24px !important;
}

.p1-passport-profile .g2-club > h1 {
  margin-bottom: 24px;
  line-height: .9;
}

.p1-passport-profile .g2-balance {
  position: relative !important;
  min-height: 285px !important;
  margin-top: 18px !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 36px !important;
  padding: 29px !important;
  overflow: hidden !important;
  background: var(--p1-yellow) !important;
  color: var(--p1-green) !important;
  box-shadow: 0 20px 39px rgba(108, 82, 20, .16) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.p1-passport-profile .g2-balance::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -82px;
  width: 205px;
  height: 205px;
  border: 2px dashed rgba(16, 63, 56, .23);
  border-radius: 50%;
}

.p1-passport-profile .g2-balance > span {
  position: absolute !important;
  z-index: 2;
  right: 24px !important;
  top: 24px !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: transparent !important;
  background: repeating-conic-gradient(#fff 0 5deg, transparent 5deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 0 12px, #000 13px);
  mask: radial-gradient(circle, transparent 0 12px, #000 13px);
  animation: p1-compass-turn 11s linear infinite !important;
}

.p1-passport-profile .g2-balance > span app-g2-icon {
  opacity: 0;
}

.p1-passport-profile .g2-balance > small {
  color: var(--p1-green) !important;
  font-size: 8px !important;
}

.p1-passport-profile .g2-balance > strong {
  margin-top: 17px !important;
  color: var(--p1-green);
  font: 700 77px/.78 var(--wow-serif) !important;
}

.p1-passport-profile .g2-balance > em {
  color: var(--p1-green);
  font: 700 22px var(--wow-serif) !important;
}

.p1-passport-profile .g2-balance > p {
  max-width: 255px;
  margin-top: 34px !important;
  color: rgba(16, 63, 56, .66) !important;
  font-size: 10px !important;
  line-height: 1.35;
}

.p1-passport-profile .g2-balance > div {
  position: relative;
  z-index: 2;
  margin-top: 20px !important;
}

.p1-passport-profile .g2-balance > div i {
  background: linear-gradient(90deg, var(--p1-green) 78%, rgba(255, 255, 255, .5) 78%) !important;
}

.p1-passport-profile .g2-next-reward {
  min-height: 116px !important;
  border: 1px solid rgba(255, 255, 255, .75) !important;
  border-radius: 30px !important;
  background: var(--p1-paper) !important;
  box-shadow: 0 14px 29px rgba(16, 63, 56, .08);
}

.p1-passport-profile .g2-next-reward > b {
  border-color: var(--p1-coral) !important;
  color: var(--p1-coral) !important;
}

.p1-passport-profile .g2-ledger {
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.p1-passport-profile .g2-ledger > span {
  min-height: 82px !important;
  border-bottom-color: rgba(16, 63, 56, .15) !important;
}

/* Atlas Club / Get */
.p1-passport-profile .g2-earn-list {
  gap: 14px !important;
}

.p1-passport-profile .g2-earn-list > button {
  min-height: 137px !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  border-radius: 32px !important;
  padding: 19px !important;
  grid-template-columns: 68px minmax(0, 1fr) auto !important;
  gap: 16px !important;
  background: var(--p1-paper) !important;
  box-shadow: 0 14px 29px rgba(16, 63, 56, .08) !important;
}

.p1-passport-profile .g2-earn-list > button:nth-child(even) {
  background: var(--p1-olive) !important;
}

.p1-passport-profile .g2-earn-list > button > span {
  width: 66px !important;
  height: 66px !important;
  border-radius: 22px !important;
  background: var(--p1-blue) !important;
  animation: p1-icon-breathe 3.2s ease-in-out infinite;
  animation-delay: var(--p1-motion-delay, 0ms);
}

.p1-passport-profile .g2-earn-list > button i > strong {
  margin: 6px 0 !important;
  font: 700 20px/1 var(--wow-serif) !important;
}

.p1-passport-profile .g2-earn-list > button > b {
  color: var(--p1-coral) !important;
  font: 700 19px var(--wow-serif) !important;
}

/* Atlas Club / Rewards */
.p1-passport-profile .g2-reward-list {
  gap: 15px !important;
}

.p1-passport-profile .g2-reward-list > button {
  --p1-reward-bg: var(--p1-blue);
  position: relative !important;
  min-height: 202px !important;
  border: 1px solid rgba(255, 255, 255, .56) !important;
  border-radius: 36px !important;
  padding: 26px 24px 26px 175px !important;
  display: block !important;
  overflow: hidden;
  background: var(--p1-reward-bg) !important;
  box-shadow: 0 16px 32px rgba(16, 63, 56, .1) !important;
}

.p1-passport-profile .g2-reward-list > button:nth-child(2) {
  --p1-reward-bg: var(--p1-lilac);
}

.p1-passport-profile .g2-reward-list > button:nth-child(3) {
  --p1-reward-bg: var(--p1-olive);
}

.p1-passport-profile .g2-reward-list > button > span {
  position: absolute;
  left: 23px;
  top: 23px;
  width: 126px !important;
  height: 154px !important;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 34px !important;
  background: rgba(251, 248, 239, .66) !important;
  color: var(--p1-coral) !important;
  animation: p1-reward-float 3.8s ease-in-out infinite;
  animation-delay: var(--p1-motion-delay, 0ms);
}

.p1-passport-profile .g2-reward-list > button > span app-g2-icon {
  width: 48px !important;
  height: 48px !important;
}

.p1-passport-profile .g2-reward-list > button > b {
  position: absolute;
  left: 18px;
  top: 18px;
  color: rgba(16, 63, 56, .48) !important;
  font: italic 15px var(--wow-serif) !important;
}

.p1-passport-profile .g2-reward-list > button > i {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: center;
}

.p1-passport-profile .g2-reward-list > button > i > small {
  color: var(--p1-coral) !important;
  letter-spacing: .09em;
}

.p1-passport-profile .g2-reward-list > button > i > strong {
  max-width: 250px;
  margin: 9px 0 7px !important;
  color: var(--p1-green) !important;
  font: 700 25px/.98 var(--wow-serif) !important;
}

.p1-passport-profile .g2-reward-list > button > i > em {
  color: rgba(16, 63, 56, .62) !important;
  line-height: 1.35;
}

.p1-passport-profile .g2-reward-list > button > strong {
  position: absolute;
  right: 17px;
  bottom: 16px;
  min-width: 62px;
  min-height: 36px;
  border-radius: 99px;
  display: grid !important;
  place-items: center;
  background: var(--p1-green);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(16, 63, 56, .18);
}

/* Profile: mint canvas, lavender identity panel and working account rows. */
.p1-passport-profile .g2-user-avatar {
  position: relative !important;
  height: 205px !important;
  margin: 26px 0 22px !important;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 36px !important;
  padding: 96px 24px 25px 145px !important;
  display: block !important;
  overflow: hidden;
  background: var(--p1-lilac) !important;
  color: var(--p1-green) !important;
  box-shadow: var(--p1-soft-shadow);
}

.p1-passport-profile .g2-user-avatar > span {
  right: 20px !important;
  top: 18px !important;
  color: rgba(255, 255, 255, .34) !important;
  font: 900 128px/.85 var(--wow-serif) !important;
}

.p1-passport-profile .g2-user-avatar > b {
  left: 24px !important;
  top: 74px !important;
  width: 99px !important;
  height: 99px !important;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 31px !important;
  background: var(--p1-paper) !important;
  color: var(--p1-green) !important;
  font: 700 30px var(--wow-serif) !important;
  box-shadow: 0 12px 24px rgba(16, 63, 56, .08);
}

.p1-passport-profile .g2-user-avatar > i {
  position: relative;
  z-index: 2;
  padding: 0 !important;
  background: transparent !important;
  color: var(--p1-coral) !important;
  font-size: 8px !important;
  letter-spacing: .09em;
}

.p1-passport-profile .g2-user-avatar > strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px !important;
  color: var(--p1-green);
  font: 700 20px/1 var(--wow-serif) !important;
}

.p1-passport-profile .g2-profile-links {
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.p1-passport-profile .g2-profile-links > button {
  min-height: 82px !important;
  border-bottom: 1px solid rgba(16, 63, 56, .15) !important;
  grid-template-columns: 38px minmax(0, 1fr) 26px !important;
  background: transparent !important;
  color: var(--p1-green);
  transition: padding .2s ease, color .2s ease !important;
}

.p1-passport-profile .g2-profile-links > button > b {
  color: var(--p1-coral) !important;
  font: italic 18px var(--wow-serif) !important;
}

.p1-passport-profile .g2-profile-links > button > strong {
  font: 700 19px var(--wow-serif) !important;
}

.p1-passport-profile .g2-profile-links > button:hover,
.p1-passport-profile .g2-profile-links > button:focus-visible {
  padding-left: 7px;
  color: var(--p1-coral);
}

.p1-passport-profile .g2-logout {
  border: 1px solid rgba(255, 255, 255, .62) !important;
  background: rgba(251, 248, 239, .5) !important;
}

@keyframes p1-compass-turn {
  to { transform: rotate(360deg); }
}

@keyframes p1-icon-breathe {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes p1-reward-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}

@media (max-width: 520px) {
  .p1-passport-profile .g2-city-chapters > button {
    min-height: 196px !important;
    padding: 48px 22px 31px 151px !important;
  }

  .p1-passport-profile .g2-city-chapters > button::before {
    left: 18px;
    top: 33px;
    width: 109px;
    height: 109px;
  }

  .p1-passport-profile .g2-city-chapters > button > span {
    left: 91px;
    top: 101px;
    width: 51px !important;
    height: 51px !important;
  }

  .p1-passport-profile .g2-city-chapters > button > i > strong {
    font-size: 25px !important;
  }

  .p1-passport-profile .g2-collection > button {
    min-height: 245px !important;
    padding: 155px 14px 15px !important;
  }

  .p1-passport-profile .g2-collection > button::before {
    height: 127px;
  }

  .p1-passport-profile .g2-collection > button strong {
    font-size: 18px !important;
  }

  .p1-passport-profile .g2-reward-list > button {
    min-height: 185px !important;
    padding: 23px 18px 23px 146px !important;
  }

  .p1-passport-profile .g2-reward-list > button > span {
    left: 18px;
    top: 20px;
    width: 108px !important;
    height: 143px !important;
  }

  .p1-passport-profile .g2-reward-list > button > i > strong {
    font-size: 21px !important;
  }

  .p1-passport-profile .g2-user-avatar {
    padding-left: 135px !important;
  }
}

@media (max-width: 370px) {
  .p1-passport-profile .g2-collection {
    grid-template-columns: 1fr !important;
  }

  .p1-passport-profile .g2-collection > button {
    min-height: 265px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p1-passport-profile .g2-balance > span,
  .p1-passport-profile .g2-earn-list > button > span,
  .p1-passport-profile .g2-reward-list > button > span {
    animation: none !important;
  }
}
