/* Braden's Values v2.30.2 — clean responsive account profile */
#accountModal {
  --profile-panel: #0f0f16;
  --profile-panel-soft: #12111a;
  --profile-line: rgba(255, 255, 255, 0.085);
  --profile-muted: #8f8b9b;
  --profile-text: #f7f5fb;
  --profile-accent: #9b86ff;
  --profile-accent-soft: rgba(139, 124, 255, 0.12);
}

#accountModal .account-box {
  width: min(920px, calc(100vw - 32px));
  max-height: min(840px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 20px;
  background: #09090f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

#accountModal .account-modal-head {
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--profile-line);
  background: rgba(9, 9, 15, 0.96);
  backdrop-filter: blur(18px);
}

#accountModal .account-modal-head h2 {
  margin: 2px 0 1px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

#accountModal .account-modal-kicker {
  color: #a99af1;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

#accountModal .account-modal-body {
  max-height: calc(100dvh - 102px);
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

#accountModal .account-profile-shell {
  display: grid;
  gap: 10px;
}

#accountModal .account-profile-cover {
  position: relative;
  min-height: 164px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(164, 139, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(139, 124, 255, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(139, 124, 255, 0.095), transparent 52%),
    #111019;
  box-shadow: none;
}

#accountModal .account-profile-cover::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -70px;
  width: 220px;
  height: 150px;
  border: 1px solid rgba(177, 158, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

#accountModal .account-cover-glow {
  display: none;
}

#accountModal .account-profile-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), transparent 42%),
    linear-gradient(145deg, #9d87ff, #6551d9 68%, #49349f);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(31, 20, 77, 0.45);
  box-shadow: 0 12px 30px rgba(43, 27, 100, 0.34);
}

#accountModal .account-profile-identity {
  min-width: 0;
  padding: 0;
}

#accountModal .account-profile-kicker {
  margin-bottom: 4px;
  color: #9b96a6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#accountModal .account-profile-identity h3 {
  margin: 0;
  overflow: hidden;
  color: var(--profile-text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountModal .account-profile-identity p {
  margin: 6px 0 0;
  color: var(--profile-muted);
  font-size: 10px;
}

#accountModal .account-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

#accountModal .account-profile-badges span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbc7d5;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: none;
}

#accountModal .account-profile-badges .synced {
  border-color: rgba(105, 218, 153, 0.2);
  background: rgba(94, 210, 143, 0.06);
  color: #aeeac5;
}

#accountModal .account-profile-badges .synced i,
#accountModal .account-profile-status i,
#accountModal .account-sync-line::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6ddb9d;
  box-shadow: 0 0 0 3px rgba(109, 219, 157, 0.1);
}

#accountModal .account-sync-line::before {
  content: "";
}

#accountModal .account-profile-status {
  position: static;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--profile-line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
  color: #d1ced8;
  font-size: 8px;
  font-weight: 800;
}

#accountModal .account-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#accountModal .account-profile-stats article {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--profile-line);
  border-radius: 13px;
  background: var(--profile-panel);
}

#accountModal .account-profile-stats article:first-child {
  border-color: rgba(255, 211, 84, 0.16);
  background: linear-gradient(180deg, rgba(255, 210, 81, 0.055), transparent), var(--profile-panel);
}

#accountModal .account-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--profile-accent-soft);
}

#accountModal .account-profile-stats article:first-child .account-stat-icon {
  background: rgba(255, 209, 78, 0.1);
}

#accountModal .account-stat-icon img {
  width: 17px;
  height: 17px;
  opacity: 0.88;
}

#accountModal .account-profile-stats article:first-child .account-stat-icon img {
  filter: sepia(0.7) saturate(1.4);
}

#accountModal .account-profile-stats article > div {
  min-width: 0;
}

#accountModal .account-profile-stats article > div > span,
#accountModal .account-panel-heading span {
  display: block;
  color: #777382;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#accountModal .account-profile-stats strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--profile-text);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountModal .account-profile-stats article:first-child strong {
  color: #f6d970;
}

#accountModal .account-profile-stats small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #6e6a78;
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountModal .account-profile-lower {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 8px;
}

#accountModal .account-profile-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--profile-line);
  border-radius: 13px;
  background: var(--profile-panel);
}

#accountModal .account-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#accountModal .account-panel-heading h4 {
  margin: 4px 0 0;
  color: #efedf4;
  font-size: 14px;
  letter-spacing: -0.02em;
}

#accountModal .account-panel-heading > strong {
  color: #b8a8ff;
  font-size: 21px;
  line-height: 1;
}

#accountModal .account-reward-track {
  height: 7px;
  margin: 17px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #24212e;
}

#accountModal .account-reward-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f5ce5, #aa91ff);
  box-shadow: none;
  transition: width 0.25s ease;
}

#accountModal .account-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#accountModal .account-panel-foot p {
  margin: 0;
  color: #777382;
  font-size: 9px;
  line-height: 1.4;
}

#accountModal .account-sync-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #9bdcb4;
  font-size: 8px;
  white-space: nowrap;
}

#accountModal .account-loadout-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

#accountModal .account-loadout-list > div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.014);
}

#accountModal .account-loadout-list > div:last-child {
  border-bottom: 0;
}

#accountModal .account-loadout-list span {
  color: #6f6b79;
  font-size: 8px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#accountModal .account-loadout-list strong {
  min-width: 0;
  overflow: hidden;
  color: #e6e2ed;
  font-size: 10px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountModal .account-actions {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(2, minmax(130px, 0.8fr)) minmax(96px, 0.55fr);
  gap: 7px;
  margin: 0;
  padding-top: 1px;
}

#accountModal .account-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 11px;
}

#accountModal .account-actions .account-shop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#accountModal .account-actions .account-shop-action img {
  width: 15px;
  height: 15px;
}

#accountModal .account-actions .btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

#accountModal .account-auth-shell {
  width: min(480px, 100%);
  margin: 6px auto;
  padding: 18px;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  background: var(--profile-panel);
}

#accountModal .auth-tabs {
  margin-bottom: 14px;
  border-color: var(--profile-line);
  background: #0a0a10;
}

#accountModal .account-security-note {
  margin-top: 13px;
  border-color: var(--profile-line);
  background: #0a0a10;
}

@media (max-width: 760px) {
  #accountModal {
    align-items: stretch !important;
    padding: 0 !important;
  }

  #accountModal .account-box {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  #accountModal .account-modal-head {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  }

  #accountModal .account-modal-head .small {
    display: none;
  }

  #accountModal .account-modal-body {
    max-height: calc(100dvh - 62px - env(safe-area-inset-top, 0px));
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  #accountModal .account-profile-shell {
    gap: 8px;
  }

  #accountModal .account-profile-cover {
    min-height: 126px;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
  }

  #accountModal .account-profile-avatar {
    width: 66px;
    height: 66px;
    border-radius: 19px;
    font-size: 26px;
  }

  #accountModal .account-profile-kicker {
    display: none;
  }

  #accountModal .account-profile-identity h3 {
    font-size: clamp(24px, 8vw, 31px);
  }

  #accountModal .account-profile-identity p {
    margin-top: 4px;
    font-size: 9px;
  }

  #accountModal .account-profile-badges {
    gap: 5px;
    margin-top: 9px;
  }

  #accountModal .account-profile-badges span {
    min-height: 23px;
    padding: 0 7px;
    font-size: 7.5px;
  }

  #accountModal .account-profile-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 7px;
    font-size: 7px;
  }

  #accountModal .account-profile-stats {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  #accountModal .account-profile-stats article {
    min-height: 76px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
  }

  #accountModal .account-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  #accountModal .account-stat-icon img {
    width: 15px;
    height: 15px;
  }

  #accountModal .account-profile-stats strong {
    font-size: 18px;
  }

  #accountModal .account-profile-stats small {
    font-size: 7.5px;
  }

  #accountModal .account-profile-lower {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #accountModal .account-profile-panel {
    padding: 13px;
    border-radius: 12px;
  }

  #accountModal .account-panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #accountModal .account-loadout-list > div {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  #accountModal .account-actions {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 1px;
    padding: 1px 0 0;
    background: none;
  }

  #accountModal .account-actions .account-shop-action {
    grid-column: 1 / -1;
  }

  #accountModal .account-actions .account-logout-action {
    grid-column: 1 / -1;
  }

  #accountModal .account-auth-shell {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  #accountModal .account-modal-head h2 {
    font-size: 19px;
  }

  #accountModal .account-profile-cover {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 116px;
    padding: 12px;
  }

  #accountModal .account-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 23px;
  }

  #accountModal .account-profile-identity h3 {
    font-size: 23px;
  }

  #accountModal .account-profile-badges .profile-badge-equipped {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #accountModal .account-profile-stats article {
    min-height: 70px;
    padding: 9px;
  }

  #accountModal .account-profile-stats small {
    display: none;
  }

  #accountModal .account-profile-panel {
    padding: 12px;
  }

  #accountModal .account-actions .btn {
    min-height: 40px;
    font-size: 9px;
  }
}
