:root {
  --bsa-bg: radial-gradient(circle at top, #101329 0%, #0a0e23 45%, #060915 100%);
  --bsa-panel: rgba(15, 22, 45, 0.95);
  --bsa-card: #152055;
  --bsa-cyan: #00ccff;
  --bsa-purple: #d400d4;
  --bsa-green: #00ff15;
  --bsa-orange: #ff6b35;
  --bsa-orange2: #ff7733;
  --bsa-text: #ebf4ff;
  --bsa-muted: #95a2c7;
  --bsa-border: rgba(0, 204, 255, 0.3);
  --radius-lg: 16px;
  --bsa-ruby-img: none;
}

body {
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bsa-text);
}

.bsa-page {
  min-height: 100vh;
  background: var(--bsa-bg);
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
  position: relative;
  overflow: hidden;
}

.bsa-page__layer-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -180px;
  right: -180px;
  background: radial-gradient(circle, rgba(212, 0, 212, 0.3) 0%, rgba(10, 14, 35, 0) 70%);
  filter: drop-shadow(0 0 60px rgba(212, 0, 212, 0.6));
  pointer-events: none;
}

.bsa-page__container {
  width: min(1400px, 100%);
  z-index: 1;
}

/* HEADER */
.bsa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

/* compact user block used on payments page header */
.bsa-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bsa-user__name {
  font-size: 15px;
  color: var(--bsa-text);
  font-weight: 600;
}

.bsa-header__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--bsa-cyan);
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 0 15px rgba(0, 204, 255, 0.35);
}

.bsa-header__rate {
  margin: 4px 0 0;
  color: var(--bsa-muted);
  font-size: 14px;
}

/* CURRENCY */
.bsa-currency {
  background: rgba(9, 12, 28, 0.6);
  border: 1px solid rgba(0, 204, 255, 0.35);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 6px;
}

.bsa-currency__btn {
  background: transparent;
  border: none;
  color: var(--bsa-cyan);
  padding: 6px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.bsa-currency__btn:hover {
  background: rgba(0, 204, 255, 0.1);
}

.bsa-currency__btn--active {
  background: linear-gradient(140deg, rgba(0, 204, 255, 0.9), rgba(117, 12, 196, 0.9));
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 204, 255, 0.5);
}

/* TABS */
.bsa-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid rgba(38, 52, 90, 0.5);
  margin-bottom: 28px;
}

.bsa-tabs__item {
  background: transparent;
  border: none;
  color: var(--bsa-cyan);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0 14px;
  position: relative;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.bsa-tabs__item:hover {
  color: #ffffff;
}

.bsa-tabs__item--active {
  color: var(--bsa-purple);
  font-weight: 600;
}

.bsa-tabs__item--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--bsa-cyan), var(--bsa-purple));
  box-shadow: 0 0 12px rgba(212, 0, 212, 0.45);
}

/* CONTENT */
.bsa-content {
  min-height: 480px;
}

/* CARDS GRID */
.bsa-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 1250px) {
  .bsa-cards-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 960px) {
  .bsa-cards-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .bsa-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bsa-card {
    min-height: auto;
  }
  
  .bsa-card__visual {
    height: 180px;
  }
  
  .bsa-card__ruby-img {
    width: 160px;
    height: 140px;
  }
}

/* CARD */
.bsa-card {
  background: radial-gradient(circle at top, rgba(21, 32, 85, 0.8) 0%, rgba(4, 5, 10, 0.2) 70%);
  border: 2px solid rgba(0, 204, 255, 0.25);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.35);
  transition: 0.18s ease-out;
  backdrop-filter: blur(8px);
  min-height: 460px;
}

.bsa-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 204, 255, 0.6);
  box-shadow: 0 0 22px rgba(0, 204, 255, 0.25);
}

/* CARD VISUAL */
.bsa-card__visual {
  position: relative;
  height: 220px;
  background: radial-gradient(circle, rgba(146, 41, 41, 0.6) 0%, rgba(3, 2, 5, 0.1) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Улучшенный фон для пакетов без бонуса */
.bsa-card__visual--no-bonus {
  background: radial-gradient(circle, rgba(212, 100, 50, 0.7) 0%, rgba(146, 41, 41, 0.5) 50%, rgba(3, 2, 5, 0.1) 70%) !important;
}

.bsa-card__ruby-img {
  width: 200px;
  height: 175px;
  background-image: var(--bsa-ruby-img);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 16px 25px rgba(255, 67, 0, 0.55));
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

/* Анимация для всех рубинов */
.bsa-card__ruby-img--animated {
  animation: rubyPulse 2s ease-in-out infinite;
}

@keyframes rubyPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.bsa-card:hover .bsa-card__ruby-img--animated {
  transform: scale(1.08);
  filter: drop-shadow(0 20px 35px rgba(255, 67, 0, 0.8));
}

/* Для пакетов без бонуса - увеличенный размер */
.bsa-card__ruby-img--no-bonus {
  width: 220px !important;
  height: 190px !important;
  filter: drop-shadow(0 20px 35px rgba(255, 67, 0, 0.7)) !important;
}

@keyframes decorGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.bsa-card__decor {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 24px;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  animation: decorGlow 2s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.bsa-card:hover .bsa-card__decor {
  opacity: 0.9;
}

.bsa-card__badges {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* small zoom control in the visual bottom-right like on the reference */
.bsa-card__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 14, 35, 0.55);
  border: 1px solid rgba(0, 204, 255, 0.35);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.25);
  backdrop-filter: blur(2px);
}

.bsa-card__badge {
  background: radial-gradient(circle, var(--bsa-green) 0%, #007c18 75%);
  color: #03150c;
  font-weight: 700;
  font-size: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(0, 255, 21, 0.35);
}

.bsa-card__badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.bsa-card__badge-desc {
  font-size: 10px;
  color: var(--bsa-text);
  opacity: 0.85;
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
  width: 100%;
}

/* CARD BODY */
.bsa-card__body {
  flex: 1;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(7, 9, 18, 0) 0%, rgba(7, 9, 18, 0.6) 45%, rgba(7, 9, 18, 1) 100%);
}

.bsa-card__rubies {
  font-size: 18px;
  font-weight: 600;
  color: var(--bsa-cyan);
  line-height: 1.3;
  text-align: center;
}

/* Улучшенный стиль для пакетов без бонуса - только увеличенный размер, без анимации */
.bsa-card__rubies--no-bonus {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--bsa-cyan) !important;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .bsa-card__rubies {
    font-size: 16px;
  }
  
  .bsa-card__rubies--no-bonus {
    font-size: 20px !important;
  }
  
  .bsa-card__price {
    font-size: 16px;
  }
  
  .bsa-card__body {
    padding: 16px 14px 14px;
    gap: 12px;
  }
  
  .bsa-card__btn {
    height: 44px;
    font-size: 14px;
  }
  
  .bsa-card__badge {
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
  
  .bsa-card__badge-desc {
    font-size: 9px;
  }
}

.bsa-card__bonus {
  display: inline-block;
  color: var(--bsa-green);
  font-weight: 700;
  margin-left: 2px;
}

.bsa-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bsa-purple);
  font-size: 18px;
  font-weight: 700;
  justify-content: flex-end; /* price aligned to the right like in the screenshot */
}

.bsa-card__price-icon {
  font-size: 16px;
}

.bsa-card__btn {
  margin-top: auto;
  width: 100%;
  height: 48px;
  background: linear-gradient(130deg, var(--bsa-orange) 0%, var(--bsa-orange2) 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
  transition: 0.15s ease-out;
}

.bsa-card__btn:hover {
  box-shadow: 0 0 18px rgba(255, 148, 121, 0.5);
  transform: translateY(-1px);
}

/* AFDIAN */
.bsa-afdian {
  max-width: 620px;
  background: radial-gradient(circle, rgba(10, 35, 45, 0.6), rgba(3, 5, 8, 0.4));
  border: 1px solid rgba(0, 204, 255, 0.35);
  border-radius: 16px;
  padding: 40px 36px 46px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.bsa-afdian__icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(140deg, #00ccff, #d400d4);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 0 18px rgba(212, 0, 212, 0.4);
}

.bsa-afdian__title {
  color: var(--bsa-cyan);
  font-size: 20px;
  margin-bottom: 8px;
}

.bsa-afdian__text {
  color: var(--bsa-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .bsa-afdian {
    padding: 28px 24px 36px;
    margin: 0 auto;
  }
  
  .bsa-afdian__icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
    margin-bottom: 14px;
  }
  
  .bsa-afdian__title {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .bsa-afdian__text {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .bsa-afdian__btn {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }
}

.bsa-afdian__btn {
  background: linear-gradient(90deg, #00ccff, #d400d4);
  border: none;
  border-radius: 10px;
  height: 54px;
  padding: 0 30px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 204, 255, 0.35);
  transition: 0.15s ease-out;
}

.bsa-afdian__btn:hover {
  box-shadow: 0 0 28px rgba(212, 0, 212, 0.5);
}

/* simple responsive */
@media (max-width: 1080px) {
  .bsa-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .bsa-currency {
    margin-top: 0;
  }
  
  .bsa-header__right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .bsa-page {
    padding: 20px 12px 40px;
  }
  
  .bsa-header__title {
    font-size: 32px;
  }
  
  .bsa-header__rate {
    font-size: 13px;
  }
  
  .bsa-header__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  
  .bsa-user__name {
    max-width: 150px;
    font-size: 14px;
  }
  
  .bsa-user img {
    width: 40px;
    height: 40px;
  }
  
  .bsa-currency {
    width: 100%;
    justify-content: center;
  }
  
  .bsa-currency__btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bsa-page {
    padding: 16px 8px 32px;
  }
  
  .bsa-header__title {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .bsa-header__rate {
    font-size: 12px;
    margin-top: 6px;
  }
  
  .bsa-user {
    gap: 8px;
  }
  
  .bsa-user img {
    width: 36px;
    height: 36px;
  }
  
  .bsa-user__name {
    max-width: 120px;
    font-size: 13px;
  }
}

/* Simple logo-only header for payments page */
.bsa-logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.bsa-logo-header img {
  height: 56px;
  width: auto;
  image-rendering: auto;
}

/* Large centered logo for payments page */
.bsa-hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 22px;
}

.bsa-hero-logo img {
  height: 120px;
  width: auto;
  image-rendering: auto;
  filter: drop-shadow(0 0 18px rgba(0, 204, 255, 0.35));
}

@media (max-width: 640px) {
  .bsa-hero-logo {
    padding: 8px 0 16px;
  }
  
  .bsa-hero-logo img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .bsa-hero-logo img {
    height: 70px;
  }
}

@media (max-width: 360px) {
  .bsa-page {
    padding: 12px 6px 24px;
  }
  
  .bsa-header__title {
    font-size: 24px;
  }
  
  .bsa-header__rate {
    font-size: 11px;
  }
  
  .bsa-hero-logo img {
    height: 60px;
  }
  
  .bsa-card__visual {
    height: 160px;
  }
  
  .bsa-card__ruby-img {
    width: 140px;
    height: 120px;
  }
  
  .bsa-card__body {
    padding: 14px 12px 12px;
  }
  
  .bsa-card__rubies {
    font-size: 15px;
  }
  
  .bsa-card__rubies--no-bonus {
    font-size: 18px !important;
  }
  
  .bsa-card__price {
    font-size: 15px;
  }
  
  .bsa-card__btn {
    height: 42px;
    font-size: 13px;
  }
  
  .bsa-currency__btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .bsa-modal__content {
    padding: 18px 14px;
  }
  
  .bsa-modal__title {
    font-size: 16px;
  }
  
  .bsa-modal__method {
    padding: 12px;
  }
}

/* MODAL */
.bsa-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bsa-modal[hidden] {
  display: none;
}

.bsa-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.bsa-modal__content {
  position: relative;
  background: radial-gradient(circle, rgba(10, 35, 45, 0.95), rgba(3, 5, 8, 0.95));
  border: 2px solid rgba(0, 204, 255, 0.35);
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.bsa-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.35);
  border-radius: 50%;
  color: var(--bsa-cyan);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s ease-out;
}

.bsa-modal__close:hover {
  background: rgba(0, 204, 255, 0.2);
  border-color: rgba(0, 204, 255, 0.6);
  transform: rotate(90deg);
}

.bsa-modal__title {
  color: var(--bsa-cyan);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
  text-shadow: 0 0 15px rgba(0, 204, 255, 0.35);
}

.bsa-modal__methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.bsa-modal__method {
  background: radial-gradient(circle, rgba(21, 32, 85, 0.6), rgba(4, 5, 10, 0.3));
  border: 2px solid rgba(0, 204, 255, 0.25);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: 0.18s ease-out;
  text-align: left;
}

.bsa-modal__method:hover {
  border-color: rgba(0, 204, 255, 0.6);
  background: radial-gradient(circle, rgba(21, 32, 85, 0.8), rgba(4, 5, 10, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

.bsa-modal__method--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bsa-modal__method--disabled:hover {
  transform: none;
  border-color: rgba(0, 204, 255, 0.25);
  box-shadow: none;
}

.bsa-modal__method-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bsa-modal__method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bsa-modal__method-name {
  color: var(--bsa-cyan);
  font-size: 18px;
  font-weight: 600;
}

.bsa-modal__method-desc {
  color: var(--bsa-muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .bsa-modal {
    padding: 12px;
  }
  
  .bsa-modal__content {
    padding: 24px 20px;
    max-width: 100%;
    border-radius: 16px;
  }
  
  .bsa-modal__close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .bsa-modal__title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .bsa-modal__methods {
    gap: 12px;
  }
  
  .bsa-modal__method {
    padding: 16px;
    gap: 12px;
  }
  
  .bsa-modal__method-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .bsa-modal__method-info {
    gap: 3px;
  }
  
  .bsa-modal__method-name {
    font-size: 16px;
  }
  
  .bsa-modal__method-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .bsa-modal {
    padding: 8px;
  }
  
  .bsa-modal__content {
    padding: 20px 16px;
  }
  
  .bsa-modal__title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .bsa-modal__method {
    padding: 14px;
    gap: 10px;
  }
  
  .bsa-modal__method-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }
  
  .bsa-modal__method-name {
    font-size: 15px;
  }
  
  .bsa-modal__method-desc {
    font-size: 11px;
  }
}


