/* GloomBet Profile page + header user dropdown */

/* ── Header dropdown (obsidian neon) ── */
.header__user-profile {
  position: relative;
}

.header__user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border: 1px solid transparent;
  border-radius: var(--gb-radius-md, 12px);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.header__user-trigger:hover,
.header__user-profile.dropdown .header__user-trigger {
  border-color: rgba(162, 0, 255, 0.35);
  background: rgba(162, 0, 255, 0.06);
  box-shadow: 0 0 18px rgba(162, 0, 255, 0.12);
}

.header__user-trigger__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--gb-muted, #888e9b);
  transition: transform 0.22s ease, color 0.2s ease;
}

.header__user-profile.dropdown .header__user-trigger__chevron {
  transform: rotate(180deg);
  color: var(--gb-purple, #a200ff);
}

.header__user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  min-width: 240px;
  padding: 0;
  background: linear-gradient(165deg, #12141c 0%, #0d0d14 55%, #101018 100%) !important;
  border: 1px solid rgba(162, 0, 255, 0.32) !important;
  border-radius: 14px !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(162, 0, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  overflow: hidden;
}

.header__user-profile.dropdown .header__user-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.header__user-profile.dropdown {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.header__user-profile.dropdown::before,
.header__user-profile.dropdown:before {
  display: none !important;
}

@media (max-width: 1125px) {
  .header.header--user-menu-open {
    overflow: visible;
    z-index: 120;
  }

  .header__user-trigger {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 6px;
  }

  .header__user-trigger__chevron {
    display: flex;
  }

  #dropdownUser.dropdown .header__user-dropdown {
    position: fixed;
    top: calc(56px + 4px);
    right: 8px;
    left: auto;
    width: min(198px, calc(100vw - 24px));
    min-width: 0;
    z-index: 121;
    border-radius: 12px !important;
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(162, 0, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 8px !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__name {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__id {
    margin-top: 0 !important;
    font-size: 10px !important;
    white-space: nowrap;
  }

  #dropdownUser.dropdown .header__user-dropdown__menu {
    padding: 3px 2px !important;
  }

  #dropdownUser.dropdown .header__user-dropdown a.header__user-dropdown__item,
  #dropdownUser.dropdown .header__user-dropdown__item {
    gap: 6px !important;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    font-size: 12px !important;
    text-transform: none !important;
  }

  #dropdownUser.dropdown .header__user-dropdown a.header__user-dropdown__item svg,
  #dropdownUser.dropdown .header__user-dropdown__item svg {
    width: 15px !important;
    height: 15px !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__divider {
    margin: 2px 6px !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__logout {
    gap: 6px !important;
    width: calc(100% - 4px) !important;
    margin: 2px 2px 5px !important;
    padding: 9px 6px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  #dropdownUser.dropdown .header__user-dropdown__logout svg {
    width: 15px !important;
    height: 15px !important;
  }

  .theme--dark .header__user-profile.dropdown {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .theme--dark #dropdownUser.dropdown .header__user-dropdown {
    border-top: 1px solid rgba(162, 0, 255, 0.32) !important;
    border-radius: 12px !important;
  }

  .header__user-trigger__chevron svg {
    width: 16px;
    height: 16px;
  }
}

.header__user-dropdown__head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__user-dropdown__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gb-text-strong, #e8eaed);
  line-height: 1.3;
  word-break: break-word;
}

.header__user-dropdown__id {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(162, 0, 255, 0.72);
}

.header__user-dropdown__menu {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.header__user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--gb-text, #c4c8d0) !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  border: none !important;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.header__user-dropdown__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gb-muted, #888e9b);
  transition: color 0.18s ease, filter 0.18s ease;
}

.header__user-dropdown__item:hover {
  color: var(--gb-text-strong, #fff) !important;
  background: rgba(162, 0, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(162, 0, 255, 0.18);
}

.header__user-dropdown__item:hover svg {
  color: var(--gb-accent, #00ff41);
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.45));
}

.header__user-dropdown__divider {
  height: 1px;
  margin: 4px 12px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(162, 0, 255, 0.35) 20%,
    rgba(0, 255, 65, 0.25) 80%,
    transparent
  );
}

.header__user-dropdown__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 12px);
  margin: 4px 6px 8px;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ff8a8a !important;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.header__user-dropdown__logout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header__user-dropdown__logout:hover {
  background: rgba(255, 90, 90, 0.1);
}

/* Sidebar Profile item */
.sidebar__nav-item--profile:hover {
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(162, 0, 255, 0.08) 100%);
}

.sidebar__nav-item--profile:hover .sidebar__nav-icon svg {
  filter:
    drop-shadow(0 0 8px rgba(0, 255, 65, 0.75))
    drop-shadow(0 0 12px rgba(162, 0, 255, 0.45));
}

.sidebar__nav-item--profile.sidebar__nav-item--active {
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.14) 0%, rgba(162, 0, 255, 0.12) 100%);
  border-right-color: var(--gb-accent, #00ff41);
}

/* ── Profile page ── */
.profile-page {
  padding: 24px 16px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-hero {
  position: relative;
  border-radius: var(--gb-radius-lg, 16px);
  background: linear-gradient(135deg, #0d0d14 0%, #151822 50%, #1a1028 100%);
  border: 1px solid rgba(162, 0, 255, 0.25);
  padding: 40px 32px;
  margin-bottom: 28px;
  overflow: hidden;
}

.profile-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.profile-hero__glow--purple {
  width: 260px;
  height: 260px;
  background: rgba(162, 0, 255, 0.35);
  top: -70px;
  right: -30px;
}

.profile-hero__glow--green {
  width: 190px;
  height: 190px;
  background: rgba(0, 255, 65, 0.2);
  bottom: -50px;
  left: -10px;
}

.profile-hero__content {
  position: relative;
  z-index: 1;
}

.profile-hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gb-accent, #00ff41);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.profile-hero__title {
  font-size: clamp(26px, 5vw, 38px);
  margin: 0 0 10px;
}

.profile-hero__title.gb-brand-page-title {
  font-size: clamp(24px, 4.5vw, 34px);
}

.profile-hero__subtitle {
  font-size: 15px;
  color: var(--gb-muted, #888e9b);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.profile-grid {
  display: grid;
  gap: 20px;
}

.profile-grid--top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.profile-grid--modules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .profile-grid--modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .profile-grid--top,
  .profile-grid--modules {
    grid-template-columns: 1fr;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }
}

.profile-grid__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 820px) {
  .profile-grid,
  .profile-grid__row {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--gb-panel, #1a1d24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gb-radius-lg, 16px);
  padding: 24px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(162, 0, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  border-color: rgba(162, 0, 255, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(162, 0, 255, 0.08);
}

.profile-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-muted, #888e9b);
  margin: 0 0 18px;
}

.profile-card--account {
  display: flex;
  flex-direction: column;
}

.profile-card--account .profile-card__title {
  flex-shrink: 0;
}

.profile-account {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  min-height: 280px;
  padding: 8px 0 4px;
}

.profile-account__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.profile-account__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(162, 0, 255, 0.5);
  box-shadow:
    0 0 32px rgba(162, 0, 255, 0.28),
    0 0 48px rgba(0, 255, 65, 0.08);
  background-size: cover;
  background-position: center;
}

.profile-account__id {
  font-size: 15px;
  color: var(--gb-muted, #888e9b);
  margin: 0;
}

.profile-account__id strong {
  font-size: 18px;
  color: var(--gb-text-strong, #e8eaed);
}

.profile-account__username {
  font-size: 15px;
  color: var(--gb-muted, #888e9b);
  margin: 0;
}

.profile-account__username strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--gb-text-strong, #e8eaed);
}

.profile-account__change-link {
  margin-top: auto;
  padding: 8px 4px 0;
  border: none;
  background: transparent;
  color: rgba(162, 0, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.profile-account__change-link:hover {
  color: var(--gb-purple, #a200ff);
  text-shadow: 0 0 12px rgba(162, 0, 255, 0.35);
}

.profile-username-modal__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--gb-radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gb-text-strong, #e8eaed);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-username-modal__input:focus {
  outline: none;
  border-color: rgba(162, 0, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(162, 0, 255, 0.14),
    0 0 18px rgba(162, 0, 255, 0.18);
}

.profile-username-modal__error {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #ff8a8a;
}

.profile-btn--modal {
  width: 100%;
}

.profile-badge--unverified {
  color: #ffb4b4;
  background: rgba(92, 16, 28, 0.85);
  border: 1px solid rgba(180, 40, 60, 0.55);
  box-shadow: 0 0 14px rgba(120, 20, 35, 0.35);
}

.profile-account__username strong,
.profile-account__username-value--flash {
  color: var(--gb-text-strong, #e8eaed);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.profile-account__username-value--flash {
  color: var(--gb-accent, #00ff41);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.45);
}

.profile-username-form {
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
}

.profile-username-form__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.profile-username-form__input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--gb-radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gb-text-strong, #e8eaed);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-username-form__input::placeholder {
  color: rgba(136, 142, 155, 0.75);
}

.profile-username-form__input:focus {
  outline: none;
  border-color: rgba(162, 0, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(162, 0, 255, 0.14),
    0 0 18px rgba(162, 0, 255, 0.18);
}

.profile-username-form__error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #ff8a8a;
}

.profile-btn--compact {
  width: auto;
  min-width: 84px;
  padding: 0 16px;
  flex-shrink: 0;
}

.profile-card--affiliate {
  border-color: rgba(162, 0, 255, 0.18);
  background: linear-gradient(165deg, #1a1d24 0%, #151822 55%, #12141c 100%);
}

.profile-card--security {
  border-color: rgba(0, 255, 65, 0.14);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-metrics--compact {
  margin-bottom: 16px;
}

.profile-metric {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-metric__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gb-muted, #888e9b);
  margin-bottom: 8px;
}

.profile-metric__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--gb-text-strong, #e8eaed);
  line-height: 1.2;
}

.profile-metric__value--green {
  color: var(--gb-accent, #00ff41);
  text-shadow: 0 0 18px rgba(0, 255, 65, 0.35);
}

.profile-metric__value--tier {
  font-size: 18px;
  color: var(--gb-purple, #a200ff);
  text-shadow: 0 0 16px rgba(162, 0, 255, 0.35);
}

.profile-metric__hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gb-muted, #888e9b);
}

.profile-code-box {
  margin-top: 4px;
}

.profile-code-box__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gb-muted, #888e9b);
  margin-bottom: 8px;
}

.profile-code-box__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.profile-code-box__code {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(162, 0, 255, 0.28);
  box-shadow: inset 0 0 16px rgba(162, 0, 255, 0.06);
  color: var(--gb-accent, #00ff41);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.profile-btn--copy {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(162, 0, 255, 0.45);
  border-radius: 10px;
  background: rgba(162, 0, 255, 0.12);
  color: var(--gb-text-strong, #e8eaed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.profile-btn--copy:hover {
  background: rgba(162, 0, 255, 0.22);
  box-shadow: 0 0 16px rgba(162, 0, 255, 0.2);
}

.profile-security {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-security__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-security__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile-security__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gb-muted, #888e9b);
}

.profile-security__limit {
  font-size: 18px;
  font-weight: 800;
  color: var(--gb-text-strong, #e8eaed);
}

.profile-security__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(136, 142, 155, 0.85);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-badge--verified {
  color: #0a0a0f;
  background: linear-gradient(135deg, #00ff41 0%, #7dff9a 100%);
  border: 1px solid rgba(0, 255, 65, 0.55);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.45);
}

.profile-cashback__rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 6px;
}

.profile-cashback__pct {
  font-size: 32px;
  font-weight: 800;
  color: var(--gb-text-strong, #e8eaed);
}

.profile-cashback__pct--next {
  color: var(--gb-accent, #00ff41);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.profile-cashback__arrow {
  font-size: 22px;
  color: var(--gb-purple, #a200ff);
}

.profile-cashback__hint {
  font-size: 13px;
  color: var(--gb-muted, #888e9b);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.profile-field {
  margin-bottom: 14px;
}

.profile-field:last-of-type {
  margin-bottom: 18px;
}

.profile-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gb-muted, #888e9b);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--gb-radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gb-text-strong, #e8eaed);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-field input:focus {
  outline: none;
  border-color: rgba(162, 0, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(162, 0, 255, 0.12);
}

.profile-field input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: var(--gb-radius-sm, 10px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.profile-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-btn--neon {
  width: 100%;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00ff41 0%, #7dff9a 100%);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.35);
}

.profile-btn--neon:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 255, 65, 0.5);
}

.profile-btn--outline {
  color: var(--gb-text-strong, #e8eaed);
  background: transparent;
  border: 1px solid rgba(162, 0, 255, 0.4);
  box-shadow: 0 0 14px rgba(162, 0, 255, 0.12);
}

.profile-btn--outline:hover:not(:disabled) {
  background: rgba(162, 0, 255, 0.1);
}

.profile-page__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 48px 16px;
}

.profile-page__loader-dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: var(--gb-accent, #00ff41);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.55);
  animation: profileLoaderPulse 0.9s ease-in-out infinite;
}

.profile-page__loader-dot:nth-child(2) { animation-delay: 0.15s; }
.profile-page__loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes profileLoaderPulse {
  0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

#profile-page-root {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}

#profile-page-root.profile-page--ready {
  opacity: 1;
  visibility: visible;
}

.profile-page__loader.profile-page__loader--hidden {
  display: none !important;
}

/* Game history / transactions sub-pages */
.gb-subpage {
  padding: 24px 16px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.gb-subpage__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gb-text-strong, #e8eaed);
  margin: 0 0 20px;
}

.gb-subpage .history {
  border-radius: var(--gb-radius-lg, 16px);
  overflow: hidden;
  border: 1px solid rgba(162, 0, 255, 0.18);
}

.profile-tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-tx-item__type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gb-purple, #a200ff);
}

.profile-tx-item__meta {
  font-size: 12px;
  color: var(--gb-muted, #888e9b);
}

.profile-tx-item__amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--gb-text-strong, #e8eaed);
}

.profile-tx-item__amount--positive {
  color: var(--gb-accent, #00ff41);
}

.profile-tx-empty {
  padding: 32px;
  text-align: center;
  color: var(--gb-muted, #888e9b);
  font-size: 14px;
}

.profile-tx-item__status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-tx-item__status--success {
  color: #8fffb0;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.25);
}

.profile-tx-item__status--pending {
  color: #e8c4ff;
  background: rgba(162, 0, 255, 0.12);
  border: 1px solid rgba(162, 0, 255, 0.28);
}

.game-card__online {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.game-card__online--pulse {
  color: var(--gb-accent, #00ff41);
  opacity: 0.88;
}

.profile-card--full {
  grid-column: 1 / -1;
}

.profile-bonus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-bonus__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid rgba(0, 255, 65, 0.28);
  color: #8fffb0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-bonus__notice,
.profile-bonus__game-note {
  margin: 0 0 14px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.profile-bonus__block + .profile-bonus__block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-bonus__subtitle {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.profile-bonus__progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #d1d5db;
  font-size: 12px;
}

.profile-bonus__progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-bonus__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a200ff 0%, #00ff41 100%);
}

.profile-bonus__stat {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.profile-bonus__stat strong {
  color: #fff;
}

.profile-bonus__milestones {
  display: grid;
  gap: 12px;
}

.profile-bonus-milestone {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-bonus-milestone.is-complete {
  border-color: rgba(0, 255, 65, 0.28);
  background: rgba(0, 255, 65, 0.06);
}

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

.profile-bonus-milestone__label {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.profile-bonus-milestone__percent {
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
}

.profile-bonus-milestone__text {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.45;
}

.gb-promotions-page__profile-link {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

.gb-promotions-page__profile-link a {
  color: #c084fc;
  text-decoration: underline;
}

.gb-promotions-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
}

.gb-promotions-notice--live {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}

.gb-live-casino-page__bonus-note {
  margin: 8px 0 0;
  max-width: 720px;
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.5;
}
