.battlepass-page,
.customavatar-page {
  padding: var(--pages-frame-pad-top, clamp(12px, 2vw, 32px))
    var(--pages-frame-pad-x, clamp(10px, 2.5vw, 44px))
    var(--pages-frame-pad-bottom, clamp(14px, 2vw, 28px));
  direction: rtl;
  margin-top: 20px;
}

.battlepass-page-title {
  margin: 0 0 12px;
  font-size: clamp(18px, 4vw, 24px);
  color: #f3d27a;
  text-align: center;
}

.battlepass-header {
  margin: 0 0 12px;
  text-align: center;
}

.battlepass-banner {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
}

.battlepass-loading,
.bp-unavailable,
.bp-empty {
  text-align: center;
  color: #cfcfcf;
  padding: 18px 8px;
}

.bp-card {
  position: relative;
  border: 1px solid rgba(243, 210, 122, 0.35);
  border-radius: 14px;
  background: rgba(12, 12, 16, 0.72);
  padding: 16px 14px;
  margin-bottom: 14px;
}

.bp-lead,
.bp-active-lead,
.ca-lead {
  margin: 0 0 12px;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.bp-perks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bp-perk {
  position: relative;
  padding-inline-start: 20px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.7;
}

.bp-perk::before {
  content: "★";
  position: absolute;
  inset-inline-start: 0;
  color: #f3d27a;
  font-size: 12px;
}

.bp-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bp-price-now {
  font-size: 22px;
  font-weight: 700;
  color: #f3d27a;
}

.bp-price-old {
  font-size: 15px;
  color: #9a9a9a;
  text-decoration: line-through;
}

.bp-duration {
  font-size: 12px;
  color: #b9b9b9;
}

.bp-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.bp-discount-badge {
  background: #b3261e;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.bp-discount-timer,
.mb-float-btn-timer {
  font-size: 12px;
  color: #f3d27a;
  font-variant-numeric: tabular-nums;
}

.mb-float-btn-timer {
  display: block;
  text-align: center;
  margin-top: 2px;
}

.bp-buy-btn,
.bp-trial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  text-decoration: none;
}

.bp-buy-btn {
  background: linear-gradient(180deg, #2477c4 0%, #18558c 100%);
  color: #fff;
}

.bp-trial-btn {
  background: transparent;
  border: 1px solid rgba(243, 210, 122, 0.55);
  color: #f3d27a;
}

.bp-buy-btn[disabled],
.bp-trial-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.bp-msg {
  margin: 8px 0 0;
  font-size: 13px;
  color: #ff9d9d;
  text-align: center;
}

.bp-card--active {
  padding: 18px 16px 16px;
  text-align: center;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(74, 222, 128, 0.12) 0%, rgba(74, 222, 128, 0) 60%),
    linear-gradient(180deg, rgba(18, 24, 20, 0.92) 0%, rgba(10, 12, 14, 0.92) 100%);
  box-shadow: 0 0 0 1px rgba(243, 210, 122, 0.12) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bp-active-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  font-size: 14px;
  font-weight: 800;
}

.bp-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: bp-active-ping 1.8s ease-out infinite;
}

@keyframes bp-active-ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.bp-active-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}

.bp-active-count-num {
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  color: #f3d27a;
  text-shadow: 0 2px 12px rgba(243, 210, 122, 0.35);
}

.bp-active-count-label {
  font-size: 14px;
  font-weight: 700;
  color: #d7d7d7;
}

.bp-active-bar {
  height: 8px;
  margin: 0 auto 8px;
  max-width: 320px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bp-active-bar > span {
  display: block;
  height: 100%;
  margin-inline-start: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.bp-active-until {
  margin: 0;
  font-size: 12px;
  color: #a8b3ab;
}

.bp-active-tag {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .bp-active-dot {
    animation: none;
  }
}

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

.bp-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px;
  border: 1px solid rgba(243, 210, 122, 0.3);
  border-radius: 12px;
  background: rgba(20, 20, 26, 0.8);
  color: #eee;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.bp-tile-icon {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.vip-badge,
.vip-tag {
  display: inline-block;
  border-radius: 999px;
  background: #000;
  color: #f3d27a;
  font-weight: 700;
  line-height: 1;
}

.vip-badge {
  padding: 2px 7px;
  font-size: 10px;
  margin-inline-start: 6px;
}

.vip-tag {
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid rgba(243, 210, 122, 0.5);
}


.quest-vip-btn,
.achievement-vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: #000;
  color: #f3d27a;
  border: 1px solid rgba(243, 210, 122, 0.55);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.scenario-picker-item-badge.is-vip {
  background: #000;
  color: #f3d27a;
}

.bp-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.bp-list-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.bp-list-body {
  flex: 1 1 auto;
  min-width: 0;
}

.bp-list-title {
  margin: 0 0 4px;
  font-size: 14px;
  color: #f0f0f0;
}

.bp-list-period {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.1);
  color: #e8e8e8;
}

.bp-list-period--daily {
  background: rgba(36, 119, 196, 0.25);
  color: #9fcbf3;
}

.bp-list-period--weekly {
  background: rgba(155, 89, 208, 0.25);
  color: #d6b3f2;
}

.bp-list-period--monthly {
  background: rgba(243, 210, 122, 0.2);
  color: #f3d27a;
}

.bp-list-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #b9b9b9;
  line-height: 1.7;
}

.bp-list-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bp-list-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c99b31, #f3d27a);
}

.bp-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #cfcfcf;
}

.bp-list-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f3d27a;
}

.bp-list-reward img {
  width: 14px;
  height: 14px;
}

.bp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.bp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bp-modal-box {
  position: relative;
  width: min(420px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(243, 210, 122, 0.4);
  border-radius: 14px;
  background: #121218;
  padding: 26px 10px;
  direction: rtl;
}

.bp-modal-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  font-size: 18px;
  cursor: pointer;
}

.bp-modal-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #f3d27a;
  text-align: center;
}

.ca-card {
  border: 1px solid rgba(243, 210, 122, 0.35);
  border-radius: 14px;
  background: rgba(12, 12, 16, 0.72);
  padding: 16px 14px;
}

.ca-pick-hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #f3d27a;
}

.ca-pick-hint[hidden] {
  display: none;
}

.ca-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2477c4 0%, #18558c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
}

.ca-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ca-generate-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.ca-generate-price img {
  width: 16px;
  height: 16px;
}

.ca-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.ca-previews[hidden] {
  display: none;
}

.ca-preview {
  padding: 0;
  border: 1px solid rgba(243, 210, 122, 0.35);
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.ca-preview img,
.ca-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ca-modal-img {
  border-radius: 12px;
  margin-bottom: 12px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
  width: 250px;
  height: 250px;
}

.ca-progress,
.ca-modal-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
}

.ca-progress[hidden],
.ca-modal-progress[hidden] {
  display: none;
}

.ca-think {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ca-think > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9ae0;
  animation: ca-think-pulse 1.2s ease-in-out infinite;
}

.ca-think > span:nth-child(2) {
  animation-delay: 0.18s;
}

.ca-think > span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes ca-think-pulse {
  0%, 80%, 100% {
    transform: scale(0.55);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.ca-think-text {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(90deg, #7fb3de 0%, #ffffff 45%, #7fb3de 90%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ca-think-shimmer 2.2s linear infinite;
}

@keyframes ca-think-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-think > span,
  .ca-think-text {
    animation: none;
  }
  .ca-think-text {
    background: none;
    color: #cfe3f5;
    -webkit-text-fill-color: #cfe3f5;
  }
}

@media (max-width: 380px) {
  /*.bp-tiles {
    grid-template-columns: 1fr;
  }*/
}

.ca-vip-link {
  display: inline-block;
  margin-top: 6px;
  color: #f3d27a;
  font-weight: 700;
}

.bp-tiles + .bp-card--locked {
  margin-top: 12px;
}

.bp-btn-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bp-btn-price img {
  width: 16px;
  height: 16px;
}

.bp-btn-old-price {
  opacity: 0.65;
  text-decoration: line-through;
  font-weight: 400;
  margin-inline-end: 4px;
}

.bp-sheet-box {
  width: min(460px, 100%);
  max-height: 90vh;
  padding: 18px 16px 16px;
  border: 1px solid rgba(74, 154, 224, 0.45);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(36, 119, 196, 0.22) 0%, rgba(36, 119, 196, 0) 60%),
    linear-gradient(180deg, #121826 0%, #0d0f16 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 210, 122, 0.08) inset;
}

.bp-sheet-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
}

.bp-sheet-title-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(36, 119, 196, 0.45));
}

.bp-sheet .ca-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.ca-tips {
  list-style: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(74, 154, 224, 0.3);
  background: rgba(36, 119, 196, 0.1);
}

.ca-tips li {
  position: relative;
  padding-inline-start: 16px;
  color: #d8e7f6;
  font-size: 13px;
  line-height: 1.8;
}

.ca-tips li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a9ae0;
}

.ca-drop {
  position: relative;
  display: block;
  margin-bottom: 12px;
  border: 1.5px dashed rgba(74, 154, 224, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ca-drop:hover {
  border-color: #4a9ae0;
  background: rgba(36, 119, 196, 0.08);
}

.ca-drop.has-file {
  border-style: solid;
  border-color: rgba(74, 222, 128, 0.5);
}

.ca-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ca-drop-empty,
.ca-drop-filled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
}

.ca-drop-empty {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.ca-drop-empty[hidden],
.ca-drop-filled[hidden] {
  display: none;
}

.ca-drop-icon {
  width: 30px;
  height: 30px;
  color: #4a9ae0;
}

.ca-drop-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ca-drop-sub {
  color: #93a3b6;
  font-size: 12px;
}

.ca-drop-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(74, 222, 128, 0.6);
}

.ca-drop-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ca-drop-name {
  color: #eaeaea;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-drop-change {
  color: #4a9ae0;
  font-size: 12px;
  font-weight: 700;
}

.ca-preview {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ca-preview:hover,
.ca-preview:focus-visible {
  transform: translateY(-2px);
  border-color: #f3d27a;
  box-shadow: 0 6px 16px rgba(243, 210, 122, 0.25);
  outline: none;
}

.bp-modal-box--confirm {
  width: min(380px, 100%);
  padding: 24px 16px 16px;
  border-color: rgba(74, 154, 224, 0.45);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(36, 119, 196, 0.2) 0%, rgba(36, 119, 196, 0) 60%),
    linear-gradient(180deg, #121826 0%, #0d0f16 100%);
}

.bp-confirm {
  text-align: center;
}

.bp-confirm-icon {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 2px 6px rgba(243, 210, 122, 0.35));
}

.bp-confirm-lead {
  margin: 0 0 14px;
  color: #e6ecf3;
  font-size: 14px;
  line-height: 1.9;
}

.bp-confirm-lead strong {
  color: #f3d27a;
}

.bp-confirm-summary {
  margin-bottom: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.bp-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: #c9d3de;
  font-size: 13px;
}

.bp-confirm-row + .bp-confirm-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bp-confirm-row--total {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.bp-confirm-discount {
  color: #4ade80;
  font-weight: 700;
}

.bp-confirm-note {
  margin: 0 0 14px;
  color: #93a3b6;
  font-size: 12px;
}

.bp-confirm-actions .bp-buy-btn {
  margin-bottom: 8px;
}

.bp-confirm-cancel {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  color: #d6dde5;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

#customAvatarRoot img,
#customAvatarRoot video,
#customAvatarModal img,
#customAvatarModal video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
