@charset "UTF-8";
nav {
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 22px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #404040;
}
nav a {
  color: white;
  transition: color 0.2s ease;
}
nav a:hover {
  color: #EFEFEF;
}
nav .links {
  padding-left: 20px;
}
nav .links a {
  margin-right: 16px;
  color: #D0D0D0;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
}
nav .links a:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}
nav .links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}
nav .links a:hover::after {
  width: 100%;
}
nav .main-link {
  color: white;
  text-decoration: none;
  position: relative;
  margin-right: auto;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
nav .main-link:hover {
  color: #f8f9fa;
  transform: scale(1.02);
}
nav .auth {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: auto;
  gap: 12px;
}
nav .auth .btn {
  background: none;
  border: none;
  transition: all 0.2s ease;
}
nav .auth .btn:hover {
  transform: scale(1.05);
}
nav .auth .profile-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #404040;
  transition: all 0.2s ease;
  object-fit: cover;
  max-width: 42px;
  max-height: 42px;
  display: block;
  background: #2d2d2d;
  min-width: 42px;
  min-height: 42px;
}
nav .auth .profile-image:hover {
  border-color: #007bff;
  transform: scale(1.05);
}
nav .auth .dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .auth .dropdown-menu {
  right: 0;
  text-align: right;
  width: max-content;
  background: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  animation: dropdownFadeIn 0.2s ease;
}
nav .auth .dropdown-menu h5 {
  padding: 12px 16px 8px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
  border-bottom: 1px solid #404040;
}
nav .auth .dropdown-menu .dropdown-item {
  color: #d0d0d0;
  padding: 10px 16px;
  transition: all 0.2s ease;
}
nav .auth .dropdown-menu .dropdown-item:hover {
  background: #404040;
  color: #ffffff;
}
nav .auth .coin-msg, nav .auth .ticket-msg {
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
nav .auth .coin-msg {
  color: #ffd700;
}
nav .auth .ticket-msg {
  color: #60a25b;
}
nav .auth .fancy-coin, nav .auth .fancy-ticket {
  width: 24px !important;
  height: 24px !important;
  margin-left: 0 !important;
  transition: transform 0.2s ease;
}
nav .auth .fancy-coin:hover, nav .auth .fancy-ticket:hover {
  transform: rotate(15deg) scale(1.1);
}
@media (max-width: 767.98px) {
  nav .auth {
    display: none;
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#adminPage .admin-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
  background: #dedede;
  margin-bottom: 10px;
}

#leaguePage h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}
#leaguePage h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  border-radius: 2px;
}
#leaguePage body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}
#leaguePage .week-link {
  padding: 10px;
}
#leaguePage .league-header-logo {
  float: right;
}
#leaguePage #league-carousel {
  margin-bottom: 30px;
}
#leaguePage #league-carousel .carousel-contents {
  padding-top: 3px;
}
#leaguePage #league-carousel .carousel-item {
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#leaguePage #league-carousel .carousel-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
#leaguePage #league-carousel .championship {
  flex-shrink: 0;
}
#leaguePage #league-carousel .league-carousel-week a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
#leaguePage #league-carousel .league-carousel-week a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}
#leaguePage #leagueTable, #leaguePage #league-notes {
  float: left;
  width: calc(100% - 220px - 10px);
}
#leaguePage #league-notes-responsive {
  margin-bottom: 20px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
#leaguePage #league-notes-responsive {
  display: none;
}
#leaguePage #league-notes {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}
#leaguePage #leagueTable {
  margin-bottom: 30px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#leaguePage #leagueTable thead {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
}
#leaguePage #leagueTable thead td {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: none;
}
#leaguePage #leagueTable tbody tr {
  transition: all 0.2s ease;
}
#leaguePage #leagueTable tbody tr:hover {
  background-color: rgba(44, 90, 160, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#leaguePage #leagueTable tbody tr:nth-child(1), #leaguePage #leagueTable tbody tr:nth-child(2), #leaguePage #leagueTable tbody tr:nth-child(3), #leaguePage #leagueTable tbody tr:nth-child(4) {
  background: rgba(0, 255, 150, 0.08);
}
#leaguePage #leagueTable tbody tr:nth-child(1) td.fixed-column, #leaguePage #leagueTable tbody tr:nth-child(2) td.fixed-column, #leaguePage #leagueTable tbody tr:nth-child(3) td.fixed-column, #leaguePage #leagueTable tbody tr:nth-child(4) td.fixed-column {
  background: rgba(225, 225, 225, 0.9);
}
#leaguePage #leagueTable tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  color: #1f2937;
}
#leaguePage #leagueTable.three-tiered tr {
  background: rgba(255, 0, 0, 0.02);
}
#leaguePage #leagueTable.three-tiered tr td.fixed-column {
  background: rgba(225, 225, 225, 0.8);
}
#leaguePage #leagueTable.three-tiered tr:nth-child(1), #leaguePage #leagueTable.three-tiered tr:nth-child(2), #leaguePage #leagueTable.three-tiered tr:nth-child(3), #leaguePage #leagueTable.three-tiered tr:nth-child(4), #leaguePage #leagueTable.three-tiered tr:nth-child(5), #leaguePage #leagueTable.three-tiered tr:nth-child(6), #leaguePage #leagueTable.three-tiered tr:nth-child(7), #leaguePage #leagueTable.three-tiered tr:nth-child(8) {
  background: rgba(0, 255, 150, 0.04);
}
#leaguePage #leagueTable.three-tiered tr:nth-child(1) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(2) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(3) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(4) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(5) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(6) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(7) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(8) td.fixed-column {
  background: rgba(225, 225, 225, 0.85);
}
#leaguePage #leagueTable.three-tiered tr:nth-child(9), #leaguePage #leagueTable.three-tiered tr:nth-child(10), #leaguePage #leagueTable.three-tiered tr:nth-child(11), #leaguePage #leagueTable.three-tiered tr:nth-child(12), #leaguePage #leagueTable.three-tiered tr:nth-child(13), #leaguePage #leagueTable.three-tiered tr:nth-child(14), #leaguePage #leagueTable.three-tiered tr:nth-child(15), #leaguePage #leagueTable.three-tiered tr:nth-child(16) {
  background: rgba(255, 255, 0, 0.0325);
}
#leaguePage #leagueTable.three-tiered tr:nth-child(9) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(10) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(11) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(12) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(13) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(14) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(15) td.fixed-column, #leaguePage #leagueTable.three-tiered tr:nth-child(16) td.fixed-column {
  background: rgba(225, 225, 225, 0.8);
}
#leaguePage #leagueTable.three-tiered-large tr {
  background: rgba(255, 0, 0, 0.02);
}
#leaguePage #leagueTable.three-tiered-large tr td.fixed-column {
  background: rgba(225, 225, 225, 0.8);
}
#leaguePage #leagueTable.three-tiered-large tr:nth-child(1), #leaguePage #leagueTable.three-tiered-large tr:nth-child(2), #leaguePage #leagueTable.three-tiered-large tr:nth-child(3), #leaguePage #leagueTable.three-tiered-large tr:nth-child(4), #leaguePage #leagueTable.three-tiered-large tr:nth-child(5), #leaguePage #leagueTable.three-tiered-large tr:nth-child(6), #leaguePage #leagueTable.three-tiered-large tr:nth-child(7), #leaguePage #leagueTable.three-tiered-large tr:nth-child(8), #leaguePage #leagueTable.three-tiered-large tr:nth-child(9), #leaguePage #leagueTable.three-tiered-large tr:nth-child(10) {
  background: rgba(0, 255, 150, 0.04);
}
#leaguePage #leagueTable.three-tiered-large tr:nth-child(1) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(2) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(3) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(4) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(5) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(6) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(7) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(8) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(9) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(10) td.fixed-column {
  background: rgba(225, 225, 225, 0.85);
}
#leaguePage #leagueTable.three-tiered-large tr:nth-child(11), #leaguePage #leagueTable.three-tiered-large tr:nth-child(12), #leaguePage #leagueTable.three-tiered-large tr:nth-child(13), #leaguePage #leagueTable.three-tiered-large tr:nth-child(14), #leaguePage #leagueTable.three-tiered-large tr:nth-child(15), #leaguePage #leagueTable.three-tiered-large tr:nth-child(16), #leaguePage #leagueTable.three-tiered-large tr:nth-child(17), #leaguePage #leagueTable.three-tiered-large tr:nth-child(18), #leaguePage #leagueTable.three-tiered-large tr:nth-child(19), #leaguePage #leagueTable.three-tiered-large tr:nth-child(20) {
  background: rgba(255, 255, 0, 0.0325);
}
#leaguePage #leagueTable.three-tiered-large tr:nth-child(11) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(12) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(13) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(14) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(15) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(16) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(17) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(18) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(19) td.fixed-column, #leaguePage #leagueTable.three-tiered-large tr:nth-child(20) td.fixed-column {
  background: rgba(225, 225, 225, 0.8);
}
#leaguePage #leagueTable td:first-child {
  white-space: nowrap;
  min-width: 200px;
}
#leaguePage #leagueTable td {
  text-align: center;
  font-weight: 600;
}
@media (max-width: 880px) {
  #leaguePage #leagueTable .worst-score {
    display: none;
  }
}
@media (max-width: 810px) {
  #leaguePage #leagueTable .best-score {
    display: none;
  }
}
@media (max-width: 480px) {
  #leaguePage #leagueTable {
    font-size: 12px;
  }
  #leaguePage #leagueTable .avatar-circle, #leaguePage #leagueTable .avatar-placeholder {
    width: 28px;
    height: 28px;
  }
  #leaguePage #leagueTable .username-link {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  #leaguePage #leagueTable .hide-for-small {
    display: none;
  }
}
@media (max-width: 400px) {
  #leaguePage .earnings-text {
    display: none;
  }
}
@media (min-width: 401px) {
  #leaguePage .earnings-dollars {
    display: none;
  }
}
#leaguePage .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
#leaguePage .user-avatar {
  flex-shrink: 0;
}
#leaguePage .avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
#leaguePage .avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#leaguePage .avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#leaguePage .username-container {
  flex: 1;
  min-width: 0;
}
#leaguePage .username-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
#leaguePage .username-link:hover {
  color: #2563eb;
  text-decoration: underline;
}
#leaguePage .username-link.current-user {
  color: #059669;
}
#leaguePage .username-link.current-user:hover {
  color: #047857;
}
#leaguePage .rank {
  width: 24px;
  display: inline-block;
  text-align: right;
  margin-right: 8px;
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
}
@media (max-width: 480px) {
  #leaguePage .rank {
    display: none;
  }
}
#leaguePage #league-favorites-panel {
  width: 220px;
  float: right;
}
#leaguePage #league-favorites-panel .league-favorite-image-wrapper {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#leaguePage #league-favorites-panel .league-favorite-image-wrapper img {
  max-width: 100%;
  max-height: 100px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#leaguePage #league-favorites-panel .box {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#leaguePage #league-favorites-panel .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
@media (max-width: 480px) {
  #leaguePage #league-favorites-panel .box {
    padding: 10px;
  }
}
#leaguePage #league-favorites-panel-contents {
  max-width: 220px;
  margin: 0 auto;
  text-align: center;
}
#leaguePage #league-favorites-panel-contents .team-box-text, #leaguePage #league-favorites-panel-contents .player-box-text {
  font-weight: bold;
  margin: 6px 0;
}
#leaguePage #league-favorites-panel-contents .team-name, #leaguePage #league-favorites-panel-contents .player-name {
  font-weight: bold;
}
#leaguePage #league-favorites-panel-contents .team-name-subtext, #leaguePage #league-favorites-panel-contents .player-name-subtext {
  margin-bottom: 8px;
  font-size: 12px;
}
#leaguePage #league-favorites-panel-contents .secondary-favorite {
  color: #c3c3c3;
  font-size: 12px;
}
#leaguePage #league-favorites-panel-contents .secondary-favorite-name {
  float: left;
}
#leaguePage #league-favorites-panel-contents .secondary-favorite-count {
  float: right;
}
@media (max-width: 1200px) {
  #leaguePage #leagueTable, #leaguePage #league-notes {
    width: 100%;
    float: none;
  }
  #leaguePage #league-notes {
    display: none;
  }
  #leaguePage #league-notes-responsive {
    display: block;
  }
  #leaguePage #league-favorites-panel {
    width: 100%;
    margin-right: -12px;
    float: none;
  }
  #leaguePage #league-favorites-panel .box {
    width: calc(33% - 12px);
    margin: 0 6px 6px 0;
    float: left;
  }
  #leaguePage #league-favorites-panel-contents {
    max-width: none;
  }
}
@media (max-width: 768px) {
  #leaguePage #leagueTable {
    font-size: 14px;
  }
  #leaguePage #leagueTable .user-info {
    gap: 8px;
  }
  #leaguePage #leagueTable .avatar-circle, #leaguePage #leagueTable .avatar-placeholder {
    width: 32px;
    height: 32px;
  }
  #leaguePage #leagueTable .username-link {
    font-size: 13px;
  }
  #leaguePage #league-favorites-panel {
    margin-right: -10px;
  }
  #leaguePage #league-favorites-panel .box {
    width: calc(50% - 10px);
    margin: 0 10px 10px 0;
    float: left;
  }
}
@media (max-width: 670px) {
  #leaguePage #leagueTable {
    min-width: auto !important;
  }
  #leaguePage #leagueTable .user-info {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 8px;
  }
  #leaguePage #leagueTable .rank {
    font-weight: 700;
    grid-column: 1;
    grid-row: 1/3;
    width: auto;
  }
  #leaguePage #leagueTable .user-avatar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
  }
  #leaguePage #leagueTable .username-container {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }
  #leaguePage #leagueTable tbody td {
    padding: 8px 6px;
  }
  #leaguePage #leagueTable td:first-child {
    min-width: 140px;
  }
}
@media (max-width: 480px) {
  #leaguePage #league-favorites-panel {
    margin-right: 0;
  }
  #leaguePage #league-favorites-panel .box {
    width: 100%;
    margin: 0 0 10px 0;
    float: left;
  }
}
#leaguePage .avatar-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
#leaguePage .avatar-modal-content {
  background-color: white;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
#leaguePage .avatar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}
#leaguePage .avatar-modal-username {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}
#leaguePage .avatar-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}
#leaguePage .avatar-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}
#leaguePage .avatar-modal-body {
  padding: 24px;
  text-align: center;
}
#leaguePage .avatar-modal-body img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#leaguePage .clickable-avatar {
  cursor: pointer;
  transition: all 0.2s ease;
}
#leaguePage .clickable-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#weekPage h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}
#weekPage h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  border-radius: 2px;
}
#weekPage body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}
#weekPage #weekTable {
  float: left;
  width: calc(100% - 310px - 10px);
  margin-bottom: 30px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#weekPage #weekTable thead {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
}
#weekPage #weekTable thead td {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: none;
  text-align: center;
}
#weekPage #weekTable tbody tr {
  transition: all 0.2s ease;
}
#weekPage #weekTable tbody tr:hover {
  background-color: rgba(44, 90, 160, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#weekPage #weekTable tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.02);
}
#weekPage #weekTable tbody tr:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.25) 100%) !important;
  border-left: 4px solid #FFD700;
}
#weekPage #weekTable tbody tr:nth-child(2) {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.25) 100%) !important;
  border-left: 4px solid #C0C0C0;
}
#weekPage #weekTable tbody tr:nth-child(3) {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.25) 100%) !important;
  border-left: 4px solid #CD7F32;
}
#weekPage #weekTable tbody tr.winning {
  background: rgba(0, 255, 150, 0.08) !important;
}
#weekPage #weekTable tbody tr.winning:nth-child(odd) {
  background: rgba(0, 255, 150, 0.12) !important;
}
#weekPage #weekTable tbody tr.winning td.fixed-column {
  background: rgba(225, 225, 225, 0.9);
}
#weekPage #weekTable tbody tr.current-user {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
  border-left: 4px solid #3B82F6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
#weekPage #weekTable tbody tr.current-user:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
#weekPage #weekTable tbody tr.current-user td {
  font-weight: 600;
}
#weekPage #weekTable tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  color: #1f2937;
  text-align: center;
  font-weight: 500;
}
#weekPage #weekTable td:first-child {
  white-space: nowrap;
  min-width: 60px;
}
@media (max-width: 799px) {
  #weekPage #weekTable .worst-score {
    display: none;
  }
}
@media (max-width: 680px) {
  #weekPage #weekTable {
    font-size: 12px;
  }
}
@media (max-width: 375px) {
  #weekPage #weekTable {
    font-size: 11px;
  }
}
#weekPage .week-header-nav-links {
  font-size: 12px;
  margin-bottom: 8px;
  position: relative;
  min-height: 15px;
}
#weekPage .week-header-nav-links .previous-week-link {
  float: left;
}
#weekPage .week-header-nav-links .center-link {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}
#weekPage .week-header-nav-links .next-week-link {
  float: right;
}
#weekPage #week-favorites-panel {
  width: 310px;
  float: right;
}
#weekPage #week-favorites-panel .week-favorite-user-image-wrapper {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#weekPage #week-favorites-panel .week-favorite-user-image-wrapper img {
  max-width: 100%;
  max-height: 125px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#weekPage #week-favorites-panel .box {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#weekPage #week-favorites-panel .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
@media (max-width: 500px) {
  #weekPage #week-favorites-panel .box {
    padding: 10px;
  }
}
#weekPage #week-favorites-panel-contents {
  max-width: 310px;
  margin: 0 auto;
  text-align: center;
}
#weekPage #week-favorites-panel-contents h1, #weekPage #week-favorites-panel-contents h2, #weekPage #week-favorites-panel-contents h3, #weekPage #week-favorites-panel-contents h4, #weekPage #week-favorites-panel-contents h5 {
  margin: 0;
}
#weekPage #week-favorites-panel-contents .team-box-text, #weekPage #week-favorites-panel-contents .player-box-text {
  font-weight: bold;
  margin: 6px 0;
  color: #1f2937;
}
#weekPage #week-favorites-panel-contents .team-name, #weekPage #week-favorites-panel-contents .player-name {
  font-weight: bold;
  color: #1f2937;
}
#weekPage #week-favorites-panel-contents .team-name-subtext, #weekPage #week-favorites-panel-contents .player-name-subtext {
  margin-bottom: 8px;
  font-size: 12px;
  color: #6b7280;
}
#weekPage #week-favorites-panel-contents .team-name-subtext-inline, #weekPage #week-favorites-panel-contents .player-name-subtext-inline {
  font-size: 12px;
  color: #6b7280;
}
#weekPage #week-favorites-panel-contents .secondary-favorite {
  color: #c3c3c3;
  font-size: 12px;
  margin-bottom: 2px;
}
#weekPage #week-favorites-panel-contents .secondary-favorite-name {
  float: left;
}
#weekPage #week-favorites-panel-contents .secondary-favorite-count {
  float: right;
}
#weekPage .week-notes {
  margin: 10px 0;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}
#weekPage .week-notes h1 {
  text-align: center;
}
#weekPage .week-notes h2 {
  margin-bottom: 20px;
}
#weekPage .podium {
  position: relative;
  height: 270px;
}
#weekPage .podium img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#weekPage .podium .avatar-img.winner-img {
  top: 0;
  width: 240px;
  box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}
#weekPage .podium .avatar-img.second-img {
  width: 200px;
  top: 20px;
  left: calc(50% - 190px);
  border: 3px solid silver;
  border-radius: 5px;
  box-shadow: 5px 5px 4px 0 rgba(0, 0, 0, 0.65);
}
#weekPage .podium .avatar-img.third-img {
  width: 180px;
  top: 30px;
  left: calc(50% + 175px);
  border: 3px solid saddlebrown;
  border-radius: 5px;
  box-shadow: 4px 4px 3px 0 rgba(0, 0, 0, 0.55);
}
#weekPage .podium .avatar-img.fourth-img {
  width: 120px;
  top: 60px;
  left: calc(50% - 320px);
  border: 2px solid #5E5E5E;
  border-radius: 5px;
  box-shadow: 3px 3px 2px 0 rgba(0, 0, 0, 0.45);
}
#weekPage .podium .avatar-img.fifth-img {
  width: 100px;
  top: 75px;
  left: calc(50% + 300px);
  border: 2px solid #5E5E5E;
  border-radius: 5px;
  box-shadow: 3px 3px 2px 0 rgba(0, 0, 0, 0.45);
}
#weekPage .podium .banner-img {
  width: 42px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}
#weekPage .podium .banner-img.second-banner {
  width: 38px;
  bottom: 15px;
  left: calc(50% - 190px);
}
#weekPage .podium .banner-img.third-banner {
  width: 34px;
  bottom: 31px;
  left: calc(50% + 175px);
}
#weekPage .podium .frame-img {
  height: 240px;
  width: 240px;
  top: 0;
  pointer-events: none;
}
@media (max-width: 799px) {
  #weekPage .podium .avatar-img.second-img {
    width: 180px;
    top: 30px;
    left: calc(50% - 180px);
  }
  #weekPage .podium .avatar-img.third-img {
    width: 160px;
    top: 40px;
    left: calc(50% + 165px);
  }
  #weekPage .podium .avatar-img.fourth-img {
    left: calc(50% - 300px);
  }
  #weekPage .podium .avatar-img.fifth-img {
    left: calc(50% + 280px);
  }
  #weekPage .podium .banner-img.second-banner {
    bottom: 25px;
    left: calc(50% - 180px);
  }
  #weekPage .podium .banner-img.third-banner {
    bottom: 41px;
    left: calc(50% + 165px);
  }
}
@media (max-width: 767px) {
  #weekPage .podium .avatar-img.second-img {
    width: 160px;
    top: 40px;
    left: calc(50% - 170px);
  }
  #weekPage .podium .avatar-img.third-img {
    width: 140px;
    top: 50px;
    left: calc(50% + 155px);
  }
  #weekPage .podium .avatar-img.fourth-img {
    left: calc(50% - 285px);
  }
  #weekPage .podium .avatar-img.fifth-img {
    left: calc(50% + 265px);
  }
  #weekPage .podium .banner-img.second-banner {
    bottom: 35px;
    left: calc(50% - 170px);
  }
  #weekPage .podium .banner-img.third-banner {
    bottom: 51px;
    left: calc(50% + 155px);
  }
}
@media (max-width: 729px) {
  #weekPage .podium .avatar-img.second-img {
    left: calc(50% - 160px);
  }
  #weekPage .podium .avatar-img.third-img {
    left: calc(50% + 145px);
  }
  #weekPage .podium .avatar-img.fourth-img {
    left: calc(50% - 270px);
  }
  #weekPage .podium .avatar-img.fifth-img {
    left: calc(50% + 250px);
  }
  #weekPage .podium .banner-img.second-banner {
    left: calc(50% - 160px);
  }
  #weekPage .podium .banner-img.third-banner {
    left: calc(50% + 145px);
  }
}
@media (max-width: 689px) {
  #weekPage .podium {
    height: 230px;
  }
  #weekPage .podium .avatar-img.winner-img {
    width: 200px;
  }
  #weekPage .podium .avatar-img.second-img {
    left: calc(50% - 140px);
    top: 20px;
  }
  #weekPage .podium .avatar-img.third-img {
    left: calc(50% + 125px);
    top: 30px;
  }
  #weekPage .podium .avatar-img.fourth-img {
    left: calc(50% - 250px);
    top: 40px;
  }
  #weekPage .podium .avatar-img.fifth-img {
    left: calc(50% + 230px);
    top: 55px;
  }
  #weekPage .podium .banner-img.second-banner {
    left: calc(50% - 140px);
    bottom: 17px;
  }
  #weekPage .podium .banner-img.third-banner {
    left: calc(50% + 125px);
    bottom: 32px;
  }
  #weekPage .podium .frame-img {
    height: 200px;
    width: 200px;
  }
}
@media (max-width: 659px) {
  #weekPage .podium {
    scale: 0.9;
    margin-bottom: -5px;
  }
}
@media (max-width: 609px) {
  #weekPage .podium {
    scale: 0.825;
    margin-bottom: -8px;
  }
}
@media (max-width: 559px) {
  #weekPage .podium {
    scale: 0.75;
    margin-bottom: -10px;
  }
}
@media (max-width: 500px) {
  #weekPage .podium {
    scale: 0.7;
    margin-bottom: -13px;
  }
}
@media (max-width: 459px) {
  #weekPage .podium {
    scale: 0.65;
    margin-bottom: -16px;
  }
}
@media (max-width: 429px) {
  #weekPage .podium {
    scale: 0.6;
    margin-bottom: -20px;
  }
}
@media (max-width: 400px) {
  #weekPage .podium {
    scale: 0.55;
    margin-bottom: -25px;
  }
}
@media (max-width: 380px) {
  #weekPage .podium {
    scale: 0.52;
    margin-bottom: -30px;
  }
}
@media (max-width: 360px) {
  #weekPage .podium {
    scale: 0.475;
    margin-bottom: -35px;
  }
}
#weekPage #gameCarousel .box {
  cursor: pointer;
}
#weekPage #gameCarousel .box .box-color-border, #weekPage #gameCarousel .box .box-inside-color-border {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-style: solid;
  border-top-width: 0;
  border-bottom-width: 0;
}
#weekPage #gameCarousel .box .box-color-border {
  border-left-width: 10px;
  border-right-width: 10px;
}
#weekPage #gameCarousel .box .box-inside-color-border {
  border-left-width: 5px;
  border-right-width: 5px;
}
#weekPage #gameCarousel .game-team img {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 14px;
}
#weekPage #gameCarousel .game-team .game-team-name {
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  width: 50px;
  text-align: center;
  top: 65px;
}
#weekPage #gameCarousel .game-team .game-team-score {
  font-size: 20px;
  position: absolute;
  top: 34px;
}
#weekPage #gameCarousel .game-team.away-team img, #weekPage #gameCarousel .game-team.away-team .game-team-name {
  left: 8px;
}
#weekPage #gameCarousel .game-team.away-team .game-team-score {
  left: 80px;
}
#weekPage #gameCarousel .game-team.home-team img, #weekPage #gameCarousel .game-team.home-team .game-team-name {
  right: 8px;
}
#weekPage #gameCarousel .game-team.home-team .game-team-score {
  right: 80px;
}
#weekPage .game-summary .modal-dialog {
  max-width: 80vw;
}
#weekPage .game-summary .modal-dialog .modal-title {
  text-align: center;
  flex-grow: 1;
}
#weekPage .game-summary .modal-dialog .modal-title img {
  max-height: 30px;
  margin: 0 10px;
  position: relative;
  top: -2px;
}
#weekPage #badgeCarousel .carousel {
  height: 102px;
}
#weekPage #badgeCarousel .badge-item {
  height: 80px;
  width: 80px;
  position: relative;
  display: inline-block;
  margin-right: 10px;
}
#weekPage #badgeCarousel .badge-item img {
  width: 100%;
  height: 100%;
}
#weekPage #badgeCarousel .badge-item .badge-name {
  position: absolute;
  top: 52px;
  left: 160px;
}
#weekPage #badgeCarousel .badge-item .badge-tooltip {
  position: absolute;
  top: 78px;
  left: 160px;
}
#weekPage .badge-modal .modal-header {
  flex: 0 0 auto;
}
#weekPage .badge-modal .modal-header .btn-close {
  position: absolute;
  right: 14px;
  top: 14px;
}
#weekPage .badge-modal .modal-row {
  display: flex;
  align-items: center;
  height: 74px;
}
#weekPage .badge-modal .modal-row img {
  width: 60px;
  height: 60px;
}
#weekPage .badge-modal .modal-row .user-name {
  margin-left: 12px;
}
#weekPage .badge-modal .modal-row a {
  margin-left: auto;
}
#weekPage .badge-modal .modal-dialog {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
#weekPage .badge-modal .modal-body {
  max-height: calc(90vh - 3.5rem);
  overflow-y: auto;
}
#weekPage .badge-modal .modal-content {
  overflow: hidden;
}
#weekPage .badge-modal .modal-content .modal-header {
  display: block;
  height: auto;
  text-align: center;
}
#weekPage .badge-modal .modal-content .modal-header .modal-badge-icon {
  width: 150px;
  height: 150px;
  display: block;
  margin: 10px auto;
}
#weekPage #weekTable .ff-tooltip .ff-tooltip-text {
  text-align: left;
}
@media (min-width: 1200px) {
  #weekPage #week-favorites-panel .ff-tooltip .ff-tooltip-text {
    left: 0;
    transform: none;
  }
}
@media (max-width: 1200px) {
  #weekPage #weekTable {
    width: 100%;
    float: none;
  }
  #weekPage #week-notes {
    display: none;
  }
  #weekPage #week-notes-responsive {
    display: block;
  }
  #weekPage #week-favorites-panel {
    width: 100%;
    margin-right: -12px;
    float: none;
  }
  #weekPage #week-favorites-panel .box {
    width: calc(33% - 12px);
    margin: 0 6px 6px 0;
    float: left;
  }
  #weekPage #week-favorites-panel-contents {
    max-width: none;
  }
}
@media (max-width: 980px) {
  #weekPage #week-favorites-panel {
    margin-right: -10px;
  }
  #weekPage #week-favorites-panel .box {
    display: inline-block;
    width: calc(50% - 10px);
    margin: 0 10px 10px 0;
    float: left;
  }
}
@media (max-width: 650px) {
  #weekPage #week-favorites-panel {
    margin-right: 0;
  }
  #weekPage #week-favorites-panel .box {
    width: 100%;
    margin: 0 0 10px 0;
    float: left;
  }
}

#userPage .page-header {
  margin-bottom: 20px;
  line-height: 40px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#userPage .page-header .sub-page-header {
  font-size: 24px;
  font-weight: normal;
  font-style: italic;
}
#userPage .page-header .avatar {
  position: absolute;
  top: 50%;
  right: 0;
  height: 160px;
  transform: translateY(-50%);
}

#userTable {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#userTable thead {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
}
#userTable thead td {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: none;
  text-align: center;
}
#userTable tbody tr {
  transition: all 0.2s ease;
}
#userTable tbody tr:hover {
  background-color: rgba(44, 90, 160, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#userTable tbody tr.active-league {
  background: rgba(0, 255, 150, 0.08);
}
#userTable tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  color: #1f2937;
  text-align: center;
  font-weight: 600;
}
@media (max-width: 600px) {
  #userTable {
    font-size: 12px;
    margin-bottom: 20px;
  }
  #userTable thead td {
    padding: 12px 8px;
    font-size: 11px;
  }
  #userTable tbody td {
    padding: 12px 8px;
    font-size: 11px;
  }
}

#league-selection {
  margin-bottom: 30px;
  text-align: center;
}
#league-selection .selection-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  #league-selection .selection-row {
    flex-direction: column;
    gap: 1rem;
  }
}
#league-selection .selection-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
}
#league-selection label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
}
#league-selection select {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}
#league-selection select:hover {
  border-color: #2c5aa0;
}
#league-selection select:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.league-link {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.league-link:hover {
  background-color: rgba(44, 90, 160, 0.1);
  color: #1e3a8a;
  text-decoration: none;
}

#playerSelect, #leagueSelect {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}
#playerSelect:hover, #leagueSelect:hover {
  border-color: #2c5aa0;
}
#playerSelect:focus, #leagueSelect:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

#userSpendingContainer {
  margin-top: 20px;
  padding: 20px;
  width: 48%;
  float: left;
  margin-right: 2%;
}
#userSpendingContainer p {
  margin: 2px 0;
  color: #3e3e3e;
  font-size: 12px;
}

#userRankContainer {
  width: 48%;
  float: right;
  margin-left: 2%;
}
#userRankContainer p {
  margin: 2px 0;
  color: #3e3e3e;
  font-size: 12px;
}

#spendingChartContainer {
  width: 100%;
  height: 400px;
}

#rankChartContainer {
  width: 100%;
  height: 400px;
}

@media (max-width: 520px) {
  #userPage {
    text-align: center;
  }
  #userPage .page-header {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
  }
  #userPage .page-header .avatar {
    position: relative;
    height: 140px;
    margin: 20px auto 0;
    transform: none;
  }

  #userTable {
    margin: 0 auto;
  }
}
.carousel {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #c3c3c3;
  height: 120px;
}
.carousel.large {
  height: 138px;
}
.carousel .carousel-item {
  padding: 6px;
  padding-top: 26px;
  width: 262px;
}

.league-carousel-week {
  color: #c3c3c3;
  font-size: 12px;
  position: absolute;
  top: 6px;
  right: 6px;
}

.league-carousel-week-column {
  float: left;
  width: 50%;
}
.league-carousel-week-column.championship {
  width: 100%;
  text-align: center;
}

.league-carousel-week-winner, .league-carousel-week-finisher {
  line-height: 20px;
  font-size: 14px;
  color: #c3c3c3;
}

.league-carousel-week-winner {
  font-weight: bold;
  color: black;
}
.league-carousel-week-winner.champion {
  color: #CFA000;
  font-size: 20px;
  margin: 6px 0;
}

@media (max-width: 1000px) {
  #userRankContainer, #userSpendingContainer {
    width: 100%;
    float: none;
    margin: 0 0 20px 0;
  }

  #userTable {
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  #spendingChartContainer, #rankChartContainer {
    height: 320px;
  }

  #userTable thead td {
    padding: 12px 8px;
    font-size: 11px;
  }
  #userTable tbody td {
    padding: 12px 8px;
    font-size: 11px;
  }
}
#profile-badges {
  margin-top: 40px;
}
#profile-badges h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#profile-badges .badges-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1200px) {
  #profile-badges .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #profile-badges .badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.badges-container {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.badges-header {
  text-align: center;
  margin-bottom: 3rem;
}
.badges-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badges-header .badges-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.badges-sorting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(44, 90, 160, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}
.badges-sorting .sort-label {
  font-weight: 600;
  color: #374151;
}
.badges-sorting .sort-buttons {
  display: flex;
  gap: 0.5rem;
}
.badges-sorting .sort-buttons .sort-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.badges-sorting .sort-buttons .sort-btn:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
}
.badges-sorting .sort-buttons .sort-btn.active {
  background: #2c5aa0;
  color: white;
  border-color: #2c5aa0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1200px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.badge-card:nth-child(1) {
  animation-delay: 0.0325s;
}
.badge-card:nth-child(2) {
  animation-delay: 0.065s;
}
.badge-card:nth-child(3) {
  animation-delay: 0.0975s;
}
.badge-card:nth-child(4) {
  animation-delay: 0.13s;
}
.badge-card:nth-child(5) {
  animation-delay: 0.1625s;
}
.badge-card:nth-child(6) {
  animation-delay: 0.195s;
}
.badge-card:nth-child(7) {
  animation-delay: 0.2275s;
}
.badge-card:nth-child(8) {
  animation-delay: 0.26s;
}
.badge-card:nth-child(9) {
  animation-delay: 0.2925s;
}
.badge-card:nth-child(10) {
  animation-delay: 0.325s;
}
.badge-card:nth-child(11) {
  animation-delay: 0.3575s;
}
.badge-card:nth-child(12) {
  animation-delay: 0.39s;
}
.badge-card:nth-child(13) {
  animation-delay: 0.4225s;
}
.badge-card:nth-child(14) {
  animation-delay: 0.455s;
}
.badge-card:nth-child(15) {
  animation-delay: 0.4875s;
}
.badge-card:nth-child(16) {
  animation-delay: 0.52s;
}
.badge-card:nth-child(17) {
  animation-delay: 0.5525s;
}
.badge-card:nth-child(18) {
  animation-delay: 0.585s;
}
.badge-card:nth-child(19) {
  animation-delay: 0.6175s;
}
.badge-card:nth-child(20) {
  animation-delay: 0.65s;
}
.badge-card:nth-child(21) {
  animation-delay: 0.6825s;
}
.badge-card:nth-child(22) {
  animation-delay: 0.715s;
}
.badge-card:nth-child(23) {
  animation-delay: 0.7475s;
}
.badge-card:nth-child(24) {
  animation-delay: 0.78s;
}
.badge-card:nth-child(25) {
  animation-delay: 0.8125s;
}
.badge-card:nth-child(26) {
  animation-delay: 0.845s;
}
.badge-card:nth-child(27) {
  animation-delay: 0.8775s;
}
.badge-card:nth-child(28) {
  animation-delay: 0.91s;
}
.badge-card:nth-child(29) {
  animation-delay: 0.9425s;
}
.badge-card:nth-child(30) {
  animation-delay: 0.975s;
}
.badge-card:nth-child(31) {
  animation-delay: 1.0075s;
}
.badge-card:nth-child(32) {
  animation-delay: 1.04s;
}
.badge-card:nth-child(33) {
  animation-delay: 1.0725s;
}
.badge-card:nth-child(34) {
  animation-delay: 1.105s;
}
.badge-card:nth-child(35) {
  animation-delay: 1.1375s;
}
.badge-card:nth-child(36) {
  animation-delay: 1.17s;
}
.badge-card:nth-child(37) {
  animation-delay: 1.2025s;
}
.badge-card:nth-child(38) {
  animation-delay: 1.235s;
}
.badge-card:nth-child(39) {
  animation-delay: 1.2675s;
}
.badge-card:nth-child(40) {
  animation-delay: 1.3s;
}
.badge-card:nth-child(41) {
  animation-delay: 1.3325s;
}
.badge-card:nth-child(42) {
  animation-delay: 1.365s;
}
.badge-card:nth-child(43) {
  animation-delay: 1.3975s;
}
.badge-card:nth-child(44) {
  animation-delay: 1.43s;
}
.badge-card:nth-child(45) {
  animation-delay: 1.4625s;
}
.badge-card:nth-child(46) {
  animation-delay: 1.495s;
}
.badge-card:nth-child(47) {
  animation-delay: 1.5275s;
}
.badge-card:nth-child(48) {
  animation-delay: 1.56s;
}
.badge-card:nth-child(49) {
  animation-delay: 1.5925s;
}
.badge-card:nth-child(50) {
  animation-delay: 1.625s;
}
.badge-card:nth-child(51) {
  animation-delay: 1.6575s;
}
.badge-card:nth-child(52) {
  animation-delay: 1.69s;
}
.badge-card:nth-child(53) {
  animation-delay: 1.7225s;
}
.badge-card:nth-child(54) {
  animation-delay: 1.755s;
}
.badge-card:nth-child(55) {
  animation-delay: 1.7875s;
}
.badge-card:nth-child(56) {
  animation-delay: 1.82s;
}
.badge-card:nth-child(57) {
  animation-delay: 1.8525s;
}
.badge-card:nth-child(58) {
  animation-delay: 1.885s;
}
.badge-card:nth-child(59) {
  animation-delay: 1.9175s;
}
.badge-card:nth-child(60) {
  animation-delay: 1.95s;
}
.badge-card:nth-child(61) {
  animation-delay: 1.9825s;
}
.badge-card:nth-child(62) {
  animation-delay: 2.015s;
}
.badge-card:nth-child(63) {
  animation-delay: 2.0475s;
}
.badge-card:nth-child(64) {
  animation-delay: 2.08s;
}
.badge-card:nth-child(65) {
  animation-delay: 2.1125s;
}
.badge-card:nth-child(66) {
  animation-delay: 2.145s;
}
.badge-card:nth-child(67) {
  animation-delay: 2.1775s;
}
.badge-card:nth-child(68) {
  animation-delay: 2.21s;
}
.badge-card:nth-child(69) {
  animation-delay: 2.2425s;
}
.badge-card:nth-child(70) {
  animation-delay: 2.275s;
}
.badge-card:nth-child(71) {
  animation-delay: 2.3075s;
}
.badge-card:nth-child(72) {
  animation-delay: 2.34s;
}
.badge-card:nth-child(73) {
  animation-delay: 2.3725s;
}
.badge-card:nth-child(74) {
  animation-delay: 2.405s;
}
.badge-card:nth-child(75) {
  animation-delay: 2.4375s;
}
.badge-card:nth-child(76) {
  animation-delay: 2.47s;
}
.badge-card:nth-child(77) {
  animation-delay: 2.5025s;
}
.badge-card:nth-child(78) {
  animation-delay: 2.535s;
}
.badge-card:nth-child(79) {
  animation-delay: 2.5675s;
}
.badge-card:nth-child(80) {
  animation-delay: 2.6s;
}
.badge-card:nth-child(81) {
  animation-delay: 2.6325s;
}
.badge-card:nth-child(82) {
  animation-delay: 2.665s;
}
.badge-card:nth-child(83) {
  animation-delay: 2.6975s;
}
.badge-card:nth-child(84) {
  animation-delay: 2.73s;
}
.badge-card:nth-child(85) {
  animation-delay: 2.7625s;
}
.badge-card:nth-child(86) {
  animation-delay: 2.795s;
}
.badge-card:nth-child(87) {
  animation-delay: 2.8275s;
}
.badge-card:nth-child(88) {
  animation-delay: 2.86s;
}
.badge-card:nth-child(89) {
  animation-delay: 2.8925s;
}
.badge-card:nth-child(90) {
  animation-delay: 2.925s;
}
.badge-card:nth-child(91) {
  animation-delay: 2.9575s;
}
.badge-card:nth-child(92) {
  animation-delay: 2.99s;
}
.badge-card:nth-child(93) {
  animation-delay: 3.0225s;
}
.badge-card:nth-child(94) {
  animation-delay: 3.055s;
}
.badge-card:nth-child(95) {
  animation-delay: 3.0875s;
}
.badge-card:nth-child(96) {
  animation-delay: 3.12s;
}
.badge-card:nth-child(97) {
  animation-delay: 3.1525s;
}
.badge-card:nth-child(98) {
  animation-delay: 3.185s;
}
.badge-card:nth-child(99) {
  animation-delay: 3.2175s;
}
.badge-card:nth-child(100) {
  animation-delay: 3.25s;
}
.badge-card:nth-child(101) {
  animation-delay: 3.2825s;
}
.badge-card:nth-child(102) {
  animation-delay: 3.315s;
}
.badge-card:nth-child(103) {
  animation-delay: 3.3475s;
}
.badge-card:nth-child(104) {
  animation-delay: 3.38s;
}
.badge-card:nth-child(105) {
  animation-delay: 3.4125s;
}
.badge-card:nth-child(106) {
  animation-delay: 3.445s;
}
.badge-card:nth-child(107) {
  animation-delay: 3.4775s;
}
.badge-card:nth-child(108) {
  animation-delay: 3.51s;
}
.badge-card:nth-child(109) {
  animation-delay: 3.5425s;
}
.badge-card:nth-child(110) {
  animation-delay: 3.575s;
}
.badge-card:nth-child(111) {
  animation-delay: 3.6075s;
}
.badge-card:nth-child(112) {
  animation-delay: 3.64s;
}
.badge-card:nth-child(113) {
  animation-delay: 3.6725s;
}
.badge-card:nth-child(114) {
  animation-delay: 3.705s;
}
.badge-card:nth-child(115) {
  animation-delay: 3.7375s;
}
.badge-card:nth-child(116) {
  animation-delay: 3.77s;
}
.badge-card:nth-child(117) {
  animation-delay: 3.8025s;
}
.badge-card:nth-child(118) {
  animation-delay: 3.835s;
}
.badge-card:nth-child(119) {
  animation-delay: 3.8675s;
}
.badge-card:nth-child(120) {
  animation-delay: 3.9s;
}
.badge-card:nth-child(121) {
  animation-delay: 3.9325s;
}
.badge-card:nth-child(122) {
  animation-delay: 3.965s;
}
.badge-card:nth-child(123) {
  animation-delay: 3.9975s;
}
.badge-card:nth-child(124) {
  animation-delay: 4.03s;
}
.badge-card:nth-child(125) {
  animation-delay: 4.0625s;
}
.badge-card:nth-child(126) {
  animation-delay: 4.095s;
}
.badge-card:nth-child(127) {
  animation-delay: 4.1275s;
}
.badge-card:nth-child(128) {
  animation-delay: 4.16s;
}
.badge-card:nth-child(129) {
  animation-delay: 4.1925s;
}
.badge-card:nth-child(130) {
  animation-delay: 4.225s;
}
.badge-card:nth-child(131) {
  animation-delay: 4.2575s;
}
.badge-card:nth-child(132) {
  animation-delay: 4.29s;
}
.badge-card:nth-child(133) {
  animation-delay: 4.3225s;
}
.badge-card:nth-child(134) {
  animation-delay: 4.355s;
}
.badge-card:nth-child(135) {
  animation-delay: 4.3875s;
}
.badge-card:nth-child(136) {
  animation-delay: 4.42s;
}
.badge-card:nth-child(137) {
  animation-delay: 4.4525s;
}
.badge-card:nth-child(138) {
  animation-delay: 4.485s;
}
.badge-card:nth-child(139) {
  animation-delay: 4.5175s;
}
.badge-card:nth-child(140) {
  animation-delay: 4.55s;
}
.badge-card:nth-child(141) {
  animation-delay: 4.5825s;
}
.badge-card:nth-child(142) {
  animation-delay: 4.615s;
}
.badge-card:nth-child(143) {
  animation-delay: 4.6475s;
}
.badge-card:nth-child(144) {
  animation-delay: 4.68s;
}
.badge-card:nth-child(145) {
  animation-delay: 4.7125s;
}
.badge-card:nth-child(146) {
  animation-delay: 4.745s;
}
.badge-card:nth-child(147) {
  animation-delay: 4.7775s;
}
.badge-card:nth-child(148) {
  animation-delay: 4.81s;
}
.badge-card:nth-child(149) {
  animation-delay: 4.8425s;
}
.badge-card:nth-child(150) {
  animation-delay: 4.875s;
}
.badge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.badge-card:hover::before {
  transform: scaleX(1);
}
.badge-card:hover .badge-icon {
  transform: scale(1.05);
}
.badge-card:hover .badge-earned-count {
  transform: scale(1.1);
}
.badge-card.unearned {
  opacity: 0.7;
}
.badge-card.unearned:hover {
  opacity: 1;
}

.badge-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}
.badge-icon-wrapper .badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.badge-icon-wrapper .badge-earned-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  transition: transform 0.2s ease;
}
.badge-icon-wrapper .badge-unearned-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-icon-wrapper .badge-unearned-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.8;
}

.badge-info {
  flex: 1;
  min-width: 0;
}
.badge-info .badge-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.badge-info .badge-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.unearned-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(44, 90, 160, 0.1);
}
.unearned-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}
.unearned-section .unearned-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.unearned-section .unearned-grid {
  margin-bottom: 0;
}

.modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}
.modal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
  padding: 1.5rem;
  position: relative;
}
.modal .modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.modal .modal-header .btn-close::before {
  content: "×";
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  line-height: 1;
}
.modal .modal-header .btn-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}
.modal .modal-header .btn-close:hover::before {
  color: #374151;
}
.modal .modal-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.modal .modal-header-content .modal-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.modal .modal-header-content .modal-badge-info {
  flex: 1;
}
.modal .modal-header-content .modal-badge-info .modal-badge-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}
.modal .modal-header-content .modal-badge-info .modal-badge-description {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.modal .modal-body {
  padding: 1.5rem;
}

.earners-list h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.earner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(44, 90, 160, 0.02);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.earner-item:hover {
  background: rgba(44, 90, 160, 0.05);
  transform: translateX(4px);
}
.earner-item:last-child {
  margin-bottom: 0;
}
.earner-item .earner-avatar {
  flex-shrink: 0;
}
.earner-item .earner-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.earner-item:hover .earner-avatar img {
  transform: scale(1.1);
}
.earner-item .earner-info {
  flex: 1;
  min-width: 0;
}
.earner-item .earner-info .earner-name {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.earner-item .earner-info .earner-count {
  font-size: 0.9rem;
  color: #6b7280;
}
.earner-item .earner-link {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid #2c5aa0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.earner-item .earner-link:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.unearned-message {
  text-align: center;
  padding: 1rem;
}
.unearned-message .tracking-note {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
}
.unearned-message .no-earners {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 0;
  font-weight: 600;
}
.unearned-message .be-first {
  color: #2c5aa0;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1rem 0 0 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 600px) {
  .badges-container {
    padding: 1rem;
  }

  .badges-header h1 {
    font-size: 2.5rem;
  }
  .badges-header .badges-subtitle {
    font-size: 1.1rem;
  }

  .badge-card {
    padding: 1.25rem;
  }

  .badge-card-content {
    gap: 1rem;
  }

  .badge-icon-wrapper .badge-icon {
    width: 64px;
    height: 64px;
  }

  .badge-info .badge-name {
    font-size: 1.1rem;
  }

  .modal-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .modal-header-content .modal-badge-icon {
    width: 64px;
    height: 64px;
  }
}
.banner {
  width: 100vw;
  background: black;
  height: 40vh;
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid black;
  margin-bottom: 2rem;
}
.banner img {
  width: 100%;
  min-width: 680px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 860px) {
  .banner {
    height: 32vh;
  }
  .banner img {
    min-width: 500px;
    min-height: 32vh;
  }
}
@media (max-width: 560px) {
  .banner {
    height: 28vh;
  }
  .banner img {
    max-width: none;
    min-width: 100%;
    height: 100%;
    width: auto;
    min-height: 0;
  }
}
@media (max-width: 360px) {
  .banner {
    height: 24vh;
  }
}

.home-content {
  width: 80vw;
  margin: 40px auto 0;
  background: white;
  border: 1px solid black;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}
@media (max-width: 1099px) {
  .home-content {
    width: 86vw;
    margin: 22px auto 0;
  }
}
@media (max-width: 950px) {
  .home-content {
    width: 90vw;
    margin: 20px auto 0;
  }
}
@media (max-width: 767px) {
  .home-content {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }
}

.active-league-container {
  background: white;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.active-league-container .league-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.active-league-container .league-header .league-title-section {
  flex: 1;
}
.active-league-container .league-header .league-title-section .league-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.active-league-container .league-header .league-title-section .league-week {
  font-size: 1.25rem;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.active-league-container .league-header .league-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.active-league-container .league-content {
  padding: 2rem;
  display: flex;
  gap: 3rem;
}
@media (max-width: 768px) {
  .active-league-container .league-content {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }
}
.active-league-container .standings-section,
.active-league-container .earnings-section {
  flex: 1;
}
.active-league-container .standings-section .section-title,
.active-league-container .earnings-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937 !important;
  margin: 0 0 1.5rem 0;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  text-shadow: none;
}
.active-league-container .standings-section .player-list .player-row,
.active-league-container .earnings-section .player-list .player-row {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #2c5aa0;
  transition: all 0.2s ease;
}
.active-league-container .standings-section .player-list .player-row:hover,
.active-league-container .earnings-section .player-list .player-row:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}
.active-league-container .standings-section .player-list .player-row .player-rank,
.active-league-container .earnings-section .player-list .player-row .player-rank {
  font-weight: 700;
  color: #2c5aa0 !important;
  margin-right: 0.75rem;
  min-width: 2rem;
}
.active-league-container .standings-section .player-list .player-row .player-name,
.active-league-container .earnings-section .player-list .player-row .player-name {
  flex: 1;
  font-weight: 600;
  color: #1f2937 !important;
}
.active-league-container .standings-section .player-list .player-row .player-record,
.active-league-container .standings-section .player-list .player-row .player-earnings,
.active-league-container .earnings-section .player-list .player-row .player-record,
.active-league-container .earnings-section .player-list .player-row .player-earnings {
  font-weight: 600;
  color: #059669 !important;
}
.active-league-container .earnings-section .section-title {
  border-bottom-color: #059669;
  color: #1f2937 !important;
}
.active-league-container .earnings-section .player-list .player-row {
  border-left-color: #059669;
}
.active-league-container .earnings-section .player-list .player-row .player-rank {
  color: #059669 !important;
}
.active-league-container .league-actions {
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .active-league-container .league-actions {
    flex-direction: column;
    padding: 1.5rem;
  }
}
.active-league-container .league-actions .action-btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}
.active-league-container .league-actions .action-btn.primary {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
}
.active-league-container .league-actions .action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}
.active-league-container .league-actions .action-btn.secondary {
  background: white;
  color: #2c5aa0;
  border: 2px solid #2c5aa0;
}
.active-league-container .league-actions .action-btn.secondary:hover {
  background: #2c5aa0;
  color: white;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .active-league-container .league-actions .action-btn {
    width: 100%;
  }
}

.news-list {
  margin-bottom: 2rem;
}
.news-list .list-banner {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.news-list .box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.news-list .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.game-team img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.game-team .game-team-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.at-symbol {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b7280;
  margin: 0 1rem;
}

.news-box .news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.news-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.news-box .news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-box .news-footer .news-date {
  color: #6b7280;
  font-size: 0.875rem;
}
.news-box .news-footer .news-link {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.news-box .news-footer .news-link:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.league-list {
  margin-bottom: 2rem;
}
.league-list .list-banner {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.league-list .league-box {
  margin-top: 15px;
  height: 100px;
  padding: 20px 12px 20px 100px;
  margin-right: 12px;
  display: inline-block;
  float: left;
  text-decoration: none;
  width: calc(25% - 14px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: inherit;
  position: relative;
}
.league-list .league-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(44, 90, 160, 0.2);
}
.league-list .league-box.inactive {
  color: #8d8d8d;
}
.league-list .league-box.inactive .football-image {
  background: rgba(0, 200, 0, 0.06);
}
.league-list .league-box.inactive img {
  filter: grayscale(75%);
  opacity: 0.75;
}
@media (max-width: 1625px) {
  .league-list .league-box {
    width: calc(33% - 14px);
  }
}
@media (max-width: 1230px) {
  .league-list .league-box {
    width: calc(50% - 14px);
  }
}
@media (max-width: 830px) {
  .league-list .league-box {
    width: 100%;
  }
}
.league-list .league-box .football-image {
  height: 60px;
  width: 60px;
  padding: 10px;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(0, 200, 0, 0.3);
  border-radius: 50%;
}
.league-list .league-box .football-image img {
  width: 40px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.league-list .league-box .league-name {
  line-height: 60px;
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}
.league-list .league-box .league-year {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 768px) {
  .home-content {
    padding: 0 0.5rem;
  }

  .news-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .game-team img {
    width: 50px;
    height: 50px;
  }
}
.banner {
  width: 100vw;
  background: black;
  height: 40vh;
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid black;
}
.banner img {
  width: 100%;
  min-width: 680px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 860px) {
  .banner {
    height: 32vh;
  }
  .banner img {
    min-width: 500px;
    min-height: 32vh;
  }
}
@media (max-width: 560px) {
  .banner {
    height: 28vh;
  }
  .banner img {
    max-width: none;
    min-width: 100%;
    height: 100%;
    width: auto;
    min-height: 0;
  }
}
@media (max-width: 360px) {
  .banner {
    height: 24vh;
  }
}

#homePage, #tinkerPage {
  min-height: 100vh;
  position: relative;
}
#homePage .news-list, #tinkerPage .news-list {
  margin-bottom: 12px;
}
#homePage .news-list .news-box, #tinkerPage .news-list .news-box {
  width: 400px;
  display: inline-flex;
  margin: 0 10px 10px 0;
  height: 220px;
  padding: 16px;
  position: relative;
}
#homePage .news-list .news-box .news-title, #tinkerPage .news-list .news-box .news-title {
  font-size: 1.4rem;
  line-height: 1.6rem;
  padding-right: 105px;
  max-height: 166px;
  overflow: hidden;
}
#homePage .news-list .news-box img, #tinkerPage .news-list .news-box img {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 100px;
  height: 100px;
}
#homePage .news-list .news-box .news-footer, #tinkerPage .news-list .news-box .news-footer {
  position: absolute;
  bottom: 10px;
  font-size: 0.8rem;
  left: 10px;
  right: 10px;
}
#homePage .news-list .news-box .news-footer a.news-link, #tinkerPage .news-list .news-box .news-footer a.news-link {
  position: absolute;
  right: 0;
}
@media (max-width: 1600px) {
  #homePage .news-list .news-box, #tinkerPage .news-list .news-box {
    width: calc(33.3% - 9px);
  }
  #homePage .news-list .news-box .news-title, #tinkerPage .news-list .news-box .news-title {
    font-size: 1.25rem;
    line-height: 1.4rem;
  }
  #homePage .news-list .news-box:nth-child(3n+1), #tinkerPage .news-list .news-box:nth-child(3n+1) {
    margin-right: 0;
  }
}
@media (max-width: 1250px) {
  #homePage .news-list .news-box, #tinkerPage .news-list .news-box {
    width: calc(50% - 7px);
  }
  #homePage .news-list .news-box:nth-child(3n+1), #tinkerPage .news-list .news-box:nth-child(3n+1) {
    margin-right: 10px;
  }
  #homePage .news-list .news-box:nth-child(odd), #tinkerPage .news-list .news-box:nth-child(odd) {
    margin-right: 0;
  }
  #homePage .news-list .news-box .news-title, #tinkerPage .news-list .news-box .news-title {
    font-size: 1.15rem;
    line-height: 1.32rem;
    padding-right: 97px;
  }
  #homePage .news-list .news-box img, #tinkerPage .news-list .news-box img {
    width: 92px;
    height: 92px;
  }
}
@media (max-width: 750px) {
  #homePage .news-list .news-box, #tinkerPage .news-list .news-box {
    width: 100%;
    margin-right: 0;
  }
  #homePage .news-list .news-box .news-title, #tinkerPage .news-list .news-box .news-title {
    font-size: 1.1rem;
    line-height: 1.28rem;
    padding-right: 75px;
  }
  #homePage .news-list .news-box img, #tinkerPage .news-list .news-box img {
    width: 70px;
    height: 70px;
  }
}
#homePage .chug-challenge-list, #tinkerPage .chug-challenge-list {
  margin-top: 60px;
}
#homePage #body-content-wrapper, #tinkerPage #body-content-wrapper {
  padding: 0;
}
#homePage #body-content-wrapper .body-content, #tinkerPage #body-content-wrapper .body-content {
  padding: 0;
  max-width: none;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  background: none;
}
#homePage .bannered-content, #tinkerPage .bannered-content {
  width: 80vw;
  margin: 40px auto 0;
  background: white;
  border: 1px solid black;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}
@media (max-width: 1099px) {
  #homePage .bannered-content, #tinkerPage .bannered-content {
    width: 86vw;
    margin: 22px auto 0;
  }
}
@media (max-width: 950px) {
  #homePage .bannered-content, #tinkerPage .bannered-content {
    width: 90vw;
    margin: 20px auto 0;
  }
}
@media (max-width: 767px) {
  #homePage .bannered-content, #tinkerPage .bannered-content {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }
  #homePage .bannered-content .selected-players-list, #tinkerPage .bannered-content .selected-players-list {
    margin-top: 20px;
  }
}
#homePage .active-league-box, #tinkerPage .active-league-box {
  height: 164px;
  padding: 12px;
  text-decoration: none;
  margin-bottom: 36px;
  position: relative;
}
#homePage .active-league-box .football-image, #tinkerPage .active-league-box .football-image {
  height: 60px;
  width: 60px;
  padding: 10px;
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 200, 0, 0.3);
  border-radius: 50%;
}
#homePage .active-league-box .football-image img, #tinkerPage .active-league-box .football-image img {
  width: 40px;
}
#homePage .active-league-box .standings, #tinkerPage .active-league-box .standings {
  position: absolute;
  top: 12px;
  left: 400px;
}
#homePage .active-league-box .earnings-winner, #tinkerPage .active-league-box .earnings-winner {
  position: absolute;
  top: 12px;
  left: 675px;
}
@media (max-width: 1350px) {
  #homePage .active-league-box .earnings-winner, #tinkerPage .active-league-box .earnings-winner {
    display: none;
  }
}
#homePage .active-league-box h1, #tinkerPage .active-league-box h1 {
  border-bottom: none;
}
#homePage .active-league-box .active-league-week, #tinkerPage .active-league-box .active-league-week {
  position: absolute;
  right: 12px;
  top: 16px;
}
#homePage .active-league-box .action-btns, #tinkerPage .active-league-box .action-btns {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
#homePage .active-league-box .action-btns a, #tinkerPage .active-league-box .action-btns a {
  display: block;
  margin-top: 12px;
}
#homePage .active-league-box .player-name, #tinkerPage .active-league-box .player-name {
  width: 170px;
  display: inline-block;
}
@media (max-width: 1020px) {
  #homePage .active-league-box, #tinkerPage .active-league-box {
    height: 140px;
  }
  #homePage .active-league-box .standings, #tinkerPage .active-league-box .standings {
    display: none;
  }
  #homePage .active-league-box .action-btns a, #tinkerPage .active-league-box .action-btns a {
    display: inline-block;
    margin-left: 14px;
    margin-top: 0;
  }
}
@media (max-width: 650px) {
  #homePage .active-league-box h1, #tinkerPage .active-league-box h1 {
    font-size: 30px;
  }
  #homePage .active-league-box .active-league-week, #tinkerPage .active-league-box .active-league-week {
    font-size: 22px;
  }
}
@media (max-width: 520px) {
  #homePage .active-league-box h1, #tinkerPage .active-league-box h1 {
    font-size: 24px;
  }
  #homePage .active-league-box .active-league-week, #tinkerPage .active-league-box .active-league-week {
    font-size: 17px;
  }
}
@media (max-width: 440px) {
  #homePage .active-league-box .active-league-week, #tinkerPage .active-league-box .active-league-week {
    right: auto;
    left: 12px;
    top: 48px;
  }
  #homePage .active-league-box .football-image, #tinkerPage .active-league-box .football-image {
    display: none;
  }
}
#homePage .league-box, #tinkerPage .league-box {
  margin-top: 15px;
  height: 100px;
  padding: 20px 12px 20px 100px;
  margin-right: 12px;
  display: inline-block;
  float: left;
  text-decoration: none;
  width: calc(25% - 14px);
}
#homePage .league-box.inactive, #tinkerPage .league-box.inactive {
  color: #8d8d8d;
}
#homePage .league-box.inactive .football-image, #tinkerPage .league-box.inactive .football-image {
  background: rgba(0, 200, 0, 0.06);
}
#homePage .league-box.inactive img, #tinkerPage .league-box.inactive img {
  filter: grayscale(75%);
  opacity: 0.75;
}
@media (max-width: 1625px) {
  #homePage .league-box, #tinkerPage .league-box {
    width: calc(33% - 14px);
  }
}
@media (max-width: 1230px) {
  #homePage .league-box, #tinkerPage .league-box {
    width: calc(50% - 14px);
  }
}
@media (max-width: 830px) {
  #homePage .league-box, #tinkerPage .league-box {
    width: 100%;
  }
}
#homePage .league-box .football-image, #tinkerPage .league-box .football-image {
  height: 60px;
  width: 60px;
  padding: 10px;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(0, 200, 0, 0.3);
  border-radius: 50%;
}
#homePage .league-box .football-image img, #tinkerPage .league-box .football-image img {
  width: 40px;
}
#homePage .league-box .league-name, #tinkerPage .league-box .league-name {
  line-height: 60px;
}

#dressing-room-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
#dressing-room-page .dressing-room-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#dressing-room-page .dressing-room-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#dressing-room-page .dressing-room-header .dressing-room-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}
#dressing-room-page .pending-avatar-banner {
  margin-bottom: 3rem;
}
#dressing-room-page .pending-avatar-banner .banner-content {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}
#dressing-room-page .pending-avatar-banner .banner-content .banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
#dressing-room-page .pending-avatar-banner .banner-content .banner-text {
  flex: 1;
}
#dressing-room-page .pending-avatar-banner .banner-content .banner-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}
#dressing-room-page .pending-avatar-banner .banner-content .banner-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}
#dressing-room-page .pending-avatar-banner .banner-content .finalize-btn {
  background: white;
  color: #ff6b35;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
#dressing-room-page .pending-avatar-banner .banner-content .finalize-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #ff6b35;
}
#dressing-room-page .dressing-room-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
#dressing-room-page .dressing-room-content .inventory-section h3 {
  color: #2c5aa0;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
#dressing-room-page .dressing-room-content .inventory-section .inventory-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-title {
  color: #2c5aa0;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item.selected {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-color: #28a745;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item.selected .item-name {
  color: #155724;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item.selected .item-description {
  color: #155724;
  opacity: 0.8;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-image-container {
  text-align: center;
  margin-bottom: 0.75rem;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-image-container .item-image {
  max-width: 80px;
  max-height: 80px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-details .item-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c5aa0;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-details .item-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.4;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .no-items {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .no-items .no-items-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
#dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .no-items p {
  margin: 0;
  font-style: italic;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
  position: sticky;
  top: 2rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card h3 {
  color: #2c5aa0;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display {
  margin-bottom: 2rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display h4 {
  color: #2c5aa0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display .selected-items-list {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1rem;
  min-height: 120px;
  border: 2px dashed #dee2e6;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display .selected-items-list .no-selection {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  margin: 0;
  padding: 2rem 0;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display .selected-items-list .selected-item {
  background: white;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display .selected-items-list .selected-item:last-child {
  margin-bottom: 0;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .selected-items-display .selected-items-list .selected-item .category-tag {
  background: #2c5aa0;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions {
  margin-bottom: 2rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 15px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn .btn-text {
  font-size: 1.1rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn .btn-icon {
  font-size: 1.3rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.15);
  border: 2px solid #f5c6cb;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card .no-tickets-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card h4 {
  color: #721c24;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card p {
  color: #721c24;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card .buy-ticket-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 1rem;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card .buy-ticket-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  color: white;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card .buy-ticket-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#dressing-room-page .dressing-room-content .generation-section .generation-card .no-tickets-card .ticket-info {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #721c24;
  opacity: 0.8;
}

#buyTicketModal .modal-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
  position: relative;
}
#buyTicketModal .modal-header .modal-title {
  font-weight: 700;
}
#buyTicketModal .modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  opacity: 1;
}
#buyTicketModal .modal-header .btn-close::before {
  content: "×";
  font-size: 24px;
  font-weight: bold;
  color: white;
  line-height: 1;
}
#buyTicketModal .modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  #dressing-room-page .dressing-room-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card {
    position: static;
  }
}
@media (max-width: 768px) {
  #dressing-room-page {
    padding: 1rem;
  }
  #dressing-room-page .dressing-room-header {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  #dressing-room-page .dressing-room-header h2 {
    font-size: 2.5rem;
  }
  #dressing-room-page .dressing-room-header .dressing-room-subtitle {
    font-size: 1.1rem;
  }
  #dressing-room-page .pending-avatar-banner .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  #dressing-room-page .pending-avatar-banner .banner-content .banner-icon {
    font-size: 2.5rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section h3 {
    font-size: 1.6rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card {
    padding: 1.25rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item {
    padding: 0.75rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-image-container .item-image {
    max-width: 60px;
    max-height: 60px;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card {
    padding: 1.5rem;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card h3 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  #dressing-room-page .dressing-room-header {
    padding: 1.5rem;
  }
  #dressing-room-page .dressing-room-header h2 {
    font-size: 2rem;
  }
  #dressing-room-page .dressing-room-header .dressing-room-subtitle {
    font-size: 1rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card {
    padding: 1rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-image-container .item-image {
    max-width: 50px;
    max-height: 50px;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-details .item-name {
    font-size: 0.9rem;
  }
  #dressing-room-page .dressing-room-content .inventory-section .category-grid .category-card .category-items .inventory-item .item-details .item-description {
    font-size: 0.8rem;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card {
    padding: 1.25rem;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  #dressing-room-page .dressing-room-content .generation-section .generation-card .generation-actions .generate-btn .btn-text {
    font-size: 1rem;
  }
}
#choose-avatar-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
#choose-avatar-page .choose-avatar-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#choose-avatar-page .choose-avatar-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#choose-avatar-page .choose-avatar-header .choose-avatar-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}
#choose-avatar-page .avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
#choose-avatar-page .avatar-selection-grid .avatar-option {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}
#choose-avatar-page .avatar-selection-grid .avatar-option:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
#choose-avatar-page .avatar-selection-grid .avatar-option.selected {
  border-color: #2c5aa0;
  box-shadow: 0 16px 48px rgba(44, 90, 160, 0.3);
}
#choose-avatar-page .avatar-selection-grid .avatar-option.selected .selection-overlay {
  opacity: 1;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container .avatar-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container .selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 90, 160, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container .selection-overlay .selection-icon {
  font-size: 4rem;
  color: white;
  font-weight: bold;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions {
  padding: 1.5rem;
  text-align: center;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions .select-avatar-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
}
#choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions .select-avatar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}
#choose-avatar-page .avatar-selection-actions {
  text-align: center;
}
#choose-avatar-page .avatar-selection-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
#choose-avatar-page .avatar-selection-actions .btn.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
}
#choose-avatar-page .avatar-selection-actions .btn.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

@media (max-width: 768px) {
  #choose-avatar-page {
    padding: 1rem;
  }
  #choose-avatar-page .choose-avatar-header {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  #choose-avatar-page .choose-avatar-header h2 {
    font-size: 2.5rem;
  }
  #choose-avatar-page .choose-avatar-header .choose-avatar-subtitle {
    font-size: 1.1rem;
  }
  #choose-avatar-page .avatar-selection-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container {
    padding: 1.5rem;
    min-height: 250px;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container .avatar-image {
    max-height: 220px;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions {
    padding: 1.25rem;
  }
}
@media (max-width: 480px) {
  #choose-avatar-page .choose-avatar-header {
    padding: 1.5rem;
  }
  #choose-avatar-page .choose-avatar-header h2 {
    font-size: 2rem;
  }
  #choose-avatar-page .choose-avatar-header .choose-avatar-subtitle {
    font-size: 1rem;
  }
  #choose-avatar-page .avatar-selection-grid {
    gap: 1.5rem;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container {
    padding: 1rem;
    min-height: 200px;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-image-container .avatar-image {
    max-height: 180px;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions {
    padding: 1rem;
  }
  #choose-avatar-page .avatar-selection-grid .avatar-option .avatar-actions .select-avatar-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
#change-avatar-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
#change-avatar-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#change-avatar-page .page-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#change-avatar-page .page-header .page-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}
#change-avatar-page .avatars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
#change-avatar-page .avatars-grid .avatar-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}
#change-avatar-page .avatars-grid .avatar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
#change-avatar-page .avatars-grid .avatar-card.active {
  border-color: #28a745;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.2);
}
#change-avatar-page .avatars-grid .avatar-card.active .active-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  position: absolute;
  top: 1rem;
  right: 1rem;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}
#change-avatar-page .avatars-grid .avatar-card .avatar-image-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#change-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
#change-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image:hover {
  transform: scale(1.05);
}
#change-avatar-page .avatars-grid .avatar-card .avatar-info {
  padding: 1.5rem;
  text-align: center;
}
#change-avatar-page .avatars-grid .avatar-card .avatar-info .avatar-description {
  margin: 0 0 1.5rem 0;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#change-avatar-page .avatars-grid .avatar-card .avatar-info .choose-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
#change-avatar-page .avatars-grid .avatar-card .avatar-info .choose-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
  #change-avatar-page .avatars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  #change-avatar-page {
    padding: 1rem;
  }
  #change-avatar-page .page-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  #change-avatar-page .page-header h2 {
    font-size: 2.5rem;
  }
  #change-avatar-page .page-header .page-subtitle {
    font-size: 1.1rem;
  }
  #change-avatar-page .avatars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-image-container {
    padding: 1.5rem;
    min-height: 180px;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
    max-height: 160px;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-info {
    padding: 1.25rem;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-info .avatar-description {
    font-size: 0.9rem;
    min-height: 2.4rem;
  }
}
@media (max-width: 480px) {
  #change-avatar-page .page-header {
    padding: 1rem;
  }
  #change-avatar-page .page-header h2 {
    font-size: 2rem;
  }
  #change-avatar-page .page-header .page-subtitle {
    font-size: 1rem;
  }
  #change-avatar-page .avatars-grid {
    gap: 1rem;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-image-container {
    padding: 1rem;
    min-height: 160px;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
    max-height: 140px;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-info {
    padding: 1rem;
  }
  #change-avatar-page .avatars-grid .avatar-card .avatar-info .choose-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}
.badges-container {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.badges-header {
  text-align: center;
  margin-bottom: 3rem;
}
.badges-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badges-header .badges-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.badges-sorting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(44, 90, 160, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}
.badges-sorting .sort-label {
  font-weight: 600;
  color: #374151;
}
.badges-sorting .sort-buttons {
  display: flex;
  gap: 0.5rem;
}
.badges-sorting .sort-buttons .sort-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.badges-sorting .sort-buttons .sort-btn:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
}
.badges-sorting .sort-buttons .sort-btn.active {
  background: #2c5aa0;
  color: white;
  border-color: #2c5aa0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1200px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.badge-card:nth-child(1) {
  animation-delay: 0.0325s;
}
.badge-card:nth-child(2) {
  animation-delay: 0.065s;
}
.badge-card:nth-child(3) {
  animation-delay: 0.0975s;
}
.badge-card:nth-child(4) {
  animation-delay: 0.13s;
}
.badge-card:nth-child(5) {
  animation-delay: 0.1625s;
}
.badge-card:nth-child(6) {
  animation-delay: 0.195s;
}
.badge-card:nth-child(7) {
  animation-delay: 0.2275s;
}
.badge-card:nth-child(8) {
  animation-delay: 0.26s;
}
.badge-card:nth-child(9) {
  animation-delay: 0.2925s;
}
.badge-card:nth-child(10) {
  animation-delay: 0.325s;
}
.badge-card:nth-child(11) {
  animation-delay: 0.3575s;
}
.badge-card:nth-child(12) {
  animation-delay: 0.39s;
}
.badge-card:nth-child(13) {
  animation-delay: 0.4225s;
}
.badge-card:nth-child(14) {
  animation-delay: 0.455s;
}
.badge-card:nth-child(15) {
  animation-delay: 0.4875s;
}
.badge-card:nth-child(16) {
  animation-delay: 0.52s;
}
.badge-card:nth-child(17) {
  animation-delay: 0.5525s;
}
.badge-card:nth-child(18) {
  animation-delay: 0.585s;
}
.badge-card:nth-child(19) {
  animation-delay: 0.6175s;
}
.badge-card:nth-child(20) {
  animation-delay: 0.65s;
}
.badge-card:nth-child(21) {
  animation-delay: 0.6825s;
}
.badge-card:nth-child(22) {
  animation-delay: 0.715s;
}
.badge-card:nth-child(23) {
  animation-delay: 0.7475s;
}
.badge-card:nth-child(24) {
  animation-delay: 0.78s;
}
.badge-card:nth-child(25) {
  animation-delay: 0.8125s;
}
.badge-card:nth-child(26) {
  animation-delay: 0.845s;
}
.badge-card:nth-child(27) {
  animation-delay: 0.8775s;
}
.badge-card:nth-child(28) {
  animation-delay: 0.91s;
}
.badge-card:nth-child(29) {
  animation-delay: 0.9425s;
}
.badge-card:nth-child(30) {
  animation-delay: 0.975s;
}
.badge-card:nth-child(31) {
  animation-delay: 1.0075s;
}
.badge-card:nth-child(32) {
  animation-delay: 1.04s;
}
.badge-card:nth-child(33) {
  animation-delay: 1.0725s;
}
.badge-card:nth-child(34) {
  animation-delay: 1.105s;
}
.badge-card:nth-child(35) {
  animation-delay: 1.1375s;
}
.badge-card:nth-child(36) {
  animation-delay: 1.17s;
}
.badge-card:nth-child(37) {
  animation-delay: 1.2025s;
}
.badge-card:nth-child(38) {
  animation-delay: 1.235s;
}
.badge-card:nth-child(39) {
  animation-delay: 1.2675s;
}
.badge-card:nth-child(40) {
  animation-delay: 1.3s;
}
.badge-card:nth-child(41) {
  animation-delay: 1.3325s;
}
.badge-card:nth-child(42) {
  animation-delay: 1.365s;
}
.badge-card:nth-child(43) {
  animation-delay: 1.3975s;
}
.badge-card:nth-child(44) {
  animation-delay: 1.43s;
}
.badge-card:nth-child(45) {
  animation-delay: 1.4625s;
}
.badge-card:nth-child(46) {
  animation-delay: 1.495s;
}
.badge-card:nth-child(47) {
  animation-delay: 1.5275s;
}
.badge-card:nth-child(48) {
  animation-delay: 1.56s;
}
.badge-card:nth-child(49) {
  animation-delay: 1.5925s;
}
.badge-card:nth-child(50) {
  animation-delay: 1.625s;
}
.badge-card:nth-child(51) {
  animation-delay: 1.6575s;
}
.badge-card:nth-child(52) {
  animation-delay: 1.69s;
}
.badge-card:nth-child(53) {
  animation-delay: 1.7225s;
}
.badge-card:nth-child(54) {
  animation-delay: 1.755s;
}
.badge-card:nth-child(55) {
  animation-delay: 1.7875s;
}
.badge-card:nth-child(56) {
  animation-delay: 1.82s;
}
.badge-card:nth-child(57) {
  animation-delay: 1.8525s;
}
.badge-card:nth-child(58) {
  animation-delay: 1.885s;
}
.badge-card:nth-child(59) {
  animation-delay: 1.9175s;
}
.badge-card:nth-child(60) {
  animation-delay: 1.95s;
}
.badge-card:nth-child(61) {
  animation-delay: 1.9825s;
}
.badge-card:nth-child(62) {
  animation-delay: 2.015s;
}
.badge-card:nth-child(63) {
  animation-delay: 2.0475s;
}
.badge-card:nth-child(64) {
  animation-delay: 2.08s;
}
.badge-card:nth-child(65) {
  animation-delay: 2.1125s;
}
.badge-card:nth-child(66) {
  animation-delay: 2.145s;
}
.badge-card:nth-child(67) {
  animation-delay: 2.1775s;
}
.badge-card:nth-child(68) {
  animation-delay: 2.21s;
}
.badge-card:nth-child(69) {
  animation-delay: 2.2425s;
}
.badge-card:nth-child(70) {
  animation-delay: 2.275s;
}
.badge-card:nth-child(71) {
  animation-delay: 2.3075s;
}
.badge-card:nth-child(72) {
  animation-delay: 2.34s;
}
.badge-card:nth-child(73) {
  animation-delay: 2.3725s;
}
.badge-card:nth-child(74) {
  animation-delay: 2.405s;
}
.badge-card:nth-child(75) {
  animation-delay: 2.4375s;
}
.badge-card:nth-child(76) {
  animation-delay: 2.47s;
}
.badge-card:nth-child(77) {
  animation-delay: 2.5025s;
}
.badge-card:nth-child(78) {
  animation-delay: 2.535s;
}
.badge-card:nth-child(79) {
  animation-delay: 2.5675s;
}
.badge-card:nth-child(80) {
  animation-delay: 2.6s;
}
.badge-card:nth-child(81) {
  animation-delay: 2.6325s;
}
.badge-card:nth-child(82) {
  animation-delay: 2.665s;
}
.badge-card:nth-child(83) {
  animation-delay: 2.6975s;
}
.badge-card:nth-child(84) {
  animation-delay: 2.73s;
}
.badge-card:nth-child(85) {
  animation-delay: 2.7625s;
}
.badge-card:nth-child(86) {
  animation-delay: 2.795s;
}
.badge-card:nth-child(87) {
  animation-delay: 2.8275s;
}
.badge-card:nth-child(88) {
  animation-delay: 2.86s;
}
.badge-card:nth-child(89) {
  animation-delay: 2.8925s;
}
.badge-card:nth-child(90) {
  animation-delay: 2.925s;
}
.badge-card:nth-child(91) {
  animation-delay: 2.9575s;
}
.badge-card:nth-child(92) {
  animation-delay: 2.99s;
}
.badge-card:nth-child(93) {
  animation-delay: 3.0225s;
}
.badge-card:nth-child(94) {
  animation-delay: 3.055s;
}
.badge-card:nth-child(95) {
  animation-delay: 3.0875s;
}
.badge-card:nth-child(96) {
  animation-delay: 3.12s;
}
.badge-card:nth-child(97) {
  animation-delay: 3.1525s;
}
.badge-card:nth-child(98) {
  animation-delay: 3.185s;
}
.badge-card:nth-child(99) {
  animation-delay: 3.2175s;
}
.badge-card:nth-child(100) {
  animation-delay: 3.25s;
}
.badge-card:nth-child(101) {
  animation-delay: 3.2825s;
}
.badge-card:nth-child(102) {
  animation-delay: 3.315s;
}
.badge-card:nth-child(103) {
  animation-delay: 3.3475s;
}
.badge-card:nth-child(104) {
  animation-delay: 3.38s;
}
.badge-card:nth-child(105) {
  animation-delay: 3.4125s;
}
.badge-card:nth-child(106) {
  animation-delay: 3.445s;
}
.badge-card:nth-child(107) {
  animation-delay: 3.4775s;
}
.badge-card:nth-child(108) {
  animation-delay: 3.51s;
}
.badge-card:nth-child(109) {
  animation-delay: 3.5425s;
}
.badge-card:nth-child(110) {
  animation-delay: 3.575s;
}
.badge-card:nth-child(111) {
  animation-delay: 3.6075s;
}
.badge-card:nth-child(112) {
  animation-delay: 3.64s;
}
.badge-card:nth-child(113) {
  animation-delay: 3.6725s;
}
.badge-card:nth-child(114) {
  animation-delay: 3.705s;
}
.badge-card:nth-child(115) {
  animation-delay: 3.7375s;
}
.badge-card:nth-child(116) {
  animation-delay: 3.77s;
}
.badge-card:nth-child(117) {
  animation-delay: 3.8025s;
}
.badge-card:nth-child(118) {
  animation-delay: 3.835s;
}
.badge-card:nth-child(119) {
  animation-delay: 3.8675s;
}
.badge-card:nth-child(120) {
  animation-delay: 3.9s;
}
.badge-card:nth-child(121) {
  animation-delay: 3.9325s;
}
.badge-card:nth-child(122) {
  animation-delay: 3.965s;
}
.badge-card:nth-child(123) {
  animation-delay: 3.9975s;
}
.badge-card:nth-child(124) {
  animation-delay: 4.03s;
}
.badge-card:nth-child(125) {
  animation-delay: 4.0625s;
}
.badge-card:nth-child(126) {
  animation-delay: 4.095s;
}
.badge-card:nth-child(127) {
  animation-delay: 4.1275s;
}
.badge-card:nth-child(128) {
  animation-delay: 4.16s;
}
.badge-card:nth-child(129) {
  animation-delay: 4.1925s;
}
.badge-card:nth-child(130) {
  animation-delay: 4.225s;
}
.badge-card:nth-child(131) {
  animation-delay: 4.2575s;
}
.badge-card:nth-child(132) {
  animation-delay: 4.29s;
}
.badge-card:nth-child(133) {
  animation-delay: 4.3225s;
}
.badge-card:nth-child(134) {
  animation-delay: 4.355s;
}
.badge-card:nth-child(135) {
  animation-delay: 4.3875s;
}
.badge-card:nth-child(136) {
  animation-delay: 4.42s;
}
.badge-card:nth-child(137) {
  animation-delay: 4.4525s;
}
.badge-card:nth-child(138) {
  animation-delay: 4.485s;
}
.badge-card:nth-child(139) {
  animation-delay: 4.5175s;
}
.badge-card:nth-child(140) {
  animation-delay: 4.55s;
}
.badge-card:nth-child(141) {
  animation-delay: 4.5825s;
}
.badge-card:nth-child(142) {
  animation-delay: 4.615s;
}
.badge-card:nth-child(143) {
  animation-delay: 4.6475s;
}
.badge-card:nth-child(144) {
  animation-delay: 4.68s;
}
.badge-card:nth-child(145) {
  animation-delay: 4.7125s;
}
.badge-card:nth-child(146) {
  animation-delay: 4.745s;
}
.badge-card:nth-child(147) {
  animation-delay: 4.7775s;
}
.badge-card:nth-child(148) {
  animation-delay: 4.81s;
}
.badge-card:nth-child(149) {
  animation-delay: 4.8425s;
}
.badge-card:nth-child(150) {
  animation-delay: 4.875s;
}
.badge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.badge-card:hover::before {
  transform: scaleX(1);
}
.badge-card:hover .badge-icon {
  transform: scale(1.05);
}
.badge-card:hover .badge-earned-count {
  transform: scale(1.1);
}
.badge-card.unearned {
  opacity: 0.7;
}
.badge-card.unearned:hover {
  opacity: 1;
}

.badge-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}
.badge-icon-wrapper .badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.badge-icon-wrapper .badge-earned-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  transition: transform 0.2s ease;
}
.badge-icon-wrapper .badge-unearned-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-icon-wrapper .badge-unearned-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.8;
}

.badge-info {
  flex: 1;
  min-width: 0;
}
.badge-info .badge-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.badge-info .badge-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.unearned-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(44, 90, 160, 0.1);
}
.unearned-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}
.unearned-section .unearned-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.unearned-section .unearned-grid {
  margin-bottom: 0;
}

.modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}
.modal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
  padding: 1.5rem;
  position: relative;
}
.modal .modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.modal .modal-header .btn-close::before {
  content: "×";
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  line-height: 1;
}
.modal .modal-header .btn-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}
.modal .modal-header .btn-close:hover::before {
  color: #374151;
}
.modal .modal-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.modal .modal-header-content .modal-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.modal .modal-header-content .modal-badge-info {
  flex: 1;
}
.modal .modal-header-content .modal-badge-info .modal-badge-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}
.modal .modal-header-content .modal-badge-info .modal-badge-description {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.modal .modal-body {
  padding: 1.5rem;
}

.earners-list h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.earner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(44, 90, 160, 0.02);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.earner-item:hover {
  background: rgba(44, 90, 160, 0.05);
  transform: translateX(4px);
}
.earner-item:last-child {
  margin-bottom: 0;
}
.earner-item .earner-avatar {
  flex-shrink: 0;
}
.earner-item .earner-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.earner-item:hover .earner-avatar img {
  transform: scale(1.1);
}
.earner-item .earner-info {
  flex: 1;
  min-width: 0;
}
.earner-item .earner-info .earner-name {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.earner-item .earner-info .earner-count {
  font-size: 0.9rem;
  color: #6b7280;
}
.earner-item .earner-link {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid #2c5aa0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.earner-item .earner-link:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.unearned-message {
  text-align: center;
  padding: 1rem;
}
.unearned-message .tracking-note {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
}
.unearned-message .no-earners {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 0;
  font-weight: 600;
}
.unearned-message .be-first {
  color: #2c5aa0;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1rem 0 0 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 600px) {
  .badges-container {
    padding: 1rem;
  }

  .badges-header h1 {
    font-size: 2.5rem;
  }
  .badges-header .badges-subtitle {
    font-size: 1.1rem;
  }

  .badge-card {
    padding: 1.25rem;
  }

  .badge-card-content {
    gap: 1rem;
  }

  .badge-icon-wrapper .badge-icon {
    width: 64px;
    height: 64px;
  }

  .badge-info .badge-name {
    font-size: 1.1rem;
  }

  .modal-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .modal-header-content .modal-badge-icon {
    width: 64px;
    height: 64px;
  }
}
#profile-page {
  margin: 0 auto;
  padding: 2rem;
}
#profile-page .profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: white;
}
#profile-page .profile-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#profile-page .profile-header .avatar-section .avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
#profile-page .profile-header .avatar-section .avatar-image:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
}
#profile-page .profile-info-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
#profile-page .profile-info-card .info-section {
  flex: 1;
}
#profile-page .profile-info-card .info-section .info-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
#profile-page .profile-info-card .info-section .info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
#profile-page .profile-info-card .info-section .info-row .info-label {
  font-weight: 600;
  color: #555;
  min-width: 140px;
  margin-right: 1rem;
}
#profile-page .profile-info-card .info-section .info-row .info-value {
  color: #333;
  font-size: 1.1rem;
}
#profile-page .profile-info-card .info-section .info-row .info-value.coins-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #d4af37;
}
#profile-page .profile-info-card .actions-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}
#profile-page .profile-info-card .actions-section .action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
#profile-page .profile-info-card .actions-section .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
#profile-page .fancy-coin, #profile-page .fancy-ticket {
  width: 24px;
  height: 24px;
  position: relative;
  top: -1px;
}
#profile-page #profile-badges {
  margin-top: 2rem;
}
#profile-page #profile-badges h3 {
  font-size: 2rem;
  color: #2c5aa0;
  font-weight: 700;
}
#profile-page #profile-badges .no-badges-message {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px dashed #dee2e6;
}
#profile-page #profile-badges .no-badges-message p {
  margin: 0;
  color: #6c757d;
  font-size: 1.1rem;
}
#profile-page #profile-badges .no-badges-message p a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}
#profile-page #profile-badges .no-badges-message p a:hover {
  text-decoration: underline;
}

.avatar-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.avatar-modal .avatar-modal-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}
.avatar-modal .avatar-modal-content .avatar-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.avatar-modal .avatar-modal-content .avatar-modal-close:hover {
  color: #333;
}
.avatar-modal .avatar-modal-content .new-avatar-header {
  margin-bottom: 1.5rem;
}
.avatar-modal .avatar-modal-content .new-avatar-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c5aa0;
}
.avatar-modal .avatar-modal-content .new-avatar-header p {
  margin: 0;
  font-size: 1.1rem;
  color: #6c757d;
}
.avatar-modal .avatar-modal-content .avatar-modal-avatar {
  margin: 1rem 0 2rem 0;
}
.avatar-modal .avatar-modal-content .avatar-modal-avatar img {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 4px solid #f8f9fa;
}
.avatar-modal .avatar-modal-content .avatar-modal-actions .action-btn {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1.1rem;
}
.avatar-modal .avatar-modal-content .avatar-modal-actions .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  #profile-page {
    padding: 1rem;
  }
  #profile-page .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  #profile-page .profile-header h2 {
    font-size: 2rem;
  }
  #profile-page .profile-header .avatar-section .avatar-image {
    width: 100px;
    height: 100px;
  }
  #profile-page .profile-info-card {
    flex-direction: column;
    gap: 1.5rem;
  }
  #profile-page .profile-info-card .actions-section {
    min-width: auto;
    width: 100%;
  }
  #profile-page .profile-info-card .actions-section .action-btn {
    width: 100%;
  }

  .avatar-modal .avatar-modal-content {
    margin: 10% auto;
    padding: 1.5rem;
    width: 95%;
  }
  .avatar-modal .avatar-modal-content .avatar-modal-avatar img {
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 480px) {
  #profile-page .profile-info-card {
    padding: 1.5rem;
  }
  #profile-page .profile-info-card .info-section .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  #profile-page .profile-info-card .info-section .info-row .info-label {
    min-width: auto;
    margin-right: 0;
  }

  .avatar-modal .avatar-modal-content {
    margin: 15% auto;
    padding: 1rem;
  }
  .avatar-modal .avatar-modal-content .avatar-modal-avatar img {
    width: 180px;
    height: 180px;
  }
}
#tinkerPage .dropdown-player-count {
  color: #999;
  width: 30px;
}
#tinkerPage .accordion-body > div {
  margin-top: 10px;
}
#tinkerPage .accordion-body > div:first-child {
  margin-top: 0;
}
#tinkerPage .selected-players {
  font-size: 14px;
}
#tinkerPage .selected-players > div > div:nth-child(2) {
  margin-top: 0;
}
#tinkerPage .selected-players button {
  font-size: 12px;
}
#tinkerPage .salary-bar-container {
  position: relative;
  width: 100%;
  height: 20px;
  background-color: #d3d3d3;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 12px;
}
#tinkerPage .salary-bar-container img {
  z-index: 999;
}
#tinkerPage .salary-bar {
  position: relative;
  width: 100%;
  height: 100%;
}
#tinkerPage .remaining-salary-bar {
  position: absolute;
  left: 0;
  height: 100%;
  background-color: gold;
  transition: width 0.3s ease;
}
#tinkerPage .salary-indicator {
  position: absolute;
  top: -2px;
  height: 23px;
  transition: right 0.3s ease;
}

.faq-container {
  width: 100%;
  margin: 40px auto 0;
  background: white;
  border: 1px solid black;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}
@media (max-width: 1099px) {
  .faq-container {
    width: 86vw;
    margin: 22px auto 0;
  }
}
@media (max-width: 950px) {
  .faq-container {
    width: 90vw;
    margin: 20px auto 0;
  }
}
@media (max-width: 767px) {
  .faq-container {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 1.5rem;
  }
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-header .faq-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

#faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#faq-list li {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
#faq-list li:nth-child(1) {
  animation-delay: 0.1s;
}
#faq-list li:nth-child(2) {
  animation-delay: 0.2s;
}
#faq-list li:nth-child(3) {
  animation-delay: 0.3s;
}
#faq-list li:nth-child(4) {
  animation-delay: 0.4s;
}
#faq-list li:nth-child(5) {
  animation-delay: 0.5s;
}
#faq-list li:nth-child(6) {
  animation-delay: 0.6s;
}
#faq-list li:nth-child(7) {
  animation-delay: 0.7s;
}
#faq-list li:nth-child(8) {
  animation-delay: 0.8s;
}
#faq-list li:nth-child(9) {
  animation-delay: 0.9s;
}
#faq-list li:nth-child(10) {
  animation-delay: 1s;
}
#faq-list li:nth-child(11) {
  animation-delay: 1.1s;
}
#faq-list li:nth-child(12) {
  animation-delay: 1.2s;
}
#faq-list li:nth-child(13) {
  animation-delay: 1.3s;
}
#faq-list li:nth-child(14) {
  animation-delay: 1.4s;
}
#faq-list li:nth-child(15) {
  animation-delay: 1.5s;
}
#faq-list li:nth-child(16) {
  animation-delay: 1.6s;
}
#faq-list li:nth-child(17) {
  animation-delay: 1.7s;
}
#faq-list li:nth-child(18) {
  animation-delay: 1.8s;
}
#faq-list li:nth-child(19) {
  animation-delay: 1.9s;
}
#faq-list li:nth-child(20) {
  animation-delay: 2s;
}
#faq-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
}
#faq-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
#faq-list li:last-child {
  margin-bottom: 0;
}
#faq-list li h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(44, 90, 160, 0.1);
  position: relative;
}
#faq-list li h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  transition: width 0.3s ease;
}
#faq-list li:hover h3::after {
  width: 100%;
}
#faq-list li p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1rem;
}
#faq-list li p:last-child {
  margin-bottom: 0;
}
#faq-list li p a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
#faq-list li p a:hover {
  border-bottom-color: #2c5aa0;
  color: #1e3a8a;
}
#faq-list li ul, #faq-list li ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
#faq-list li ul li, #faq-list li ol li {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 0;
  position: relative;
  opacity: 1;
  transform: none;
  animation: none;
}
#faq-list li ul li::before, #faq-list li ol li::before {
  display: none;
}
#faq-list li ul li:hover, #faq-list li ol li:hover {
  transform: none;
}
#faq-list li ul li::marker, #faq-list li ol li::marker {
  color: #2c5aa0;
  font-weight: 600;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .faq-container {
    padding: 1rem;
  }

  .faq-header h1 {
    font-size: 2.5rem;
  }
  .faq-header .faq-subtitle {
    font-size: 1.1rem;
  }

  #faq-list li {
    padding: 1.5rem;
  }
  #faq-list li h3 {
    font-size: 1.3rem;
  }
  #faq-list li p {
    font-size: 1rem;
  }
}
.badges-container {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.badges-header {
  text-align: center;
  margin-bottom: 3rem;
}
.badges-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badges-header .badges-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.badges-sorting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(44, 90, 160, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}
.badges-sorting .sort-label {
  font-weight: 600;
  color: #374151;
}
.badges-sorting .sort-buttons {
  display: flex;
  gap: 0.5rem;
}
.badges-sorting .sort-buttons .sort-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.badges-sorting .sort-buttons .sort-btn:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
}
.badges-sorting .sort-buttons .sort-btn.active {
  background: #2c5aa0;
  color: white;
  border-color: #2c5aa0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1200px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.badge-card:nth-child(1) {
  animation-delay: 0.0325s;
}
.badge-card:nth-child(2) {
  animation-delay: 0.065s;
}
.badge-card:nth-child(3) {
  animation-delay: 0.0975s;
}
.badge-card:nth-child(4) {
  animation-delay: 0.13s;
}
.badge-card:nth-child(5) {
  animation-delay: 0.1625s;
}
.badge-card:nth-child(6) {
  animation-delay: 0.195s;
}
.badge-card:nth-child(7) {
  animation-delay: 0.2275s;
}
.badge-card:nth-child(8) {
  animation-delay: 0.26s;
}
.badge-card:nth-child(9) {
  animation-delay: 0.2925s;
}
.badge-card:nth-child(10) {
  animation-delay: 0.325s;
}
.badge-card:nth-child(11) {
  animation-delay: 0.3575s;
}
.badge-card:nth-child(12) {
  animation-delay: 0.39s;
}
.badge-card:nth-child(13) {
  animation-delay: 0.4225s;
}
.badge-card:nth-child(14) {
  animation-delay: 0.455s;
}
.badge-card:nth-child(15) {
  animation-delay: 0.4875s;
}
.badge-card:nth-child(16) {
  animation-delay: 0.52s;
}
.badge-card:nth-child(17) {
  animation-delay: 0.5525s;
}
.badge-card:nth-child(18) {
  animation-delay: 0.585s;
}
.badge-card:nth-child(19) {
  animation-delay: 0.6175s;
}
.badge-card:nth-child(20) {
  animation-delay: 0.65s;
}
.badge-card:nth-child(21) {
  animation-delay: 0.6825s;
}
.badge-card:nth-child(22) {
  animation-delay: 0.715s;
}
.badge-card:nth-child(23) {
  animation-delay: 0.7475s;
}
.badge-card:nth-child(24) {
  animation-delay: 0.78s;
}
.badge-card:nth-child(25) {
  animation-delay: 0.8125s;
}
.badge-card:nth-child(26) {
  animation-delay: 0.845s;
}
.badge-card:nth-child(27) {
  animation-delay: 0.8775s;
}
.badge-card:nth-child(28) {
  animation-delay: 0.91s;
}
.badge-card:nth-child(29) {
  animation-delay: 0.9425s;
}
.badge-card:nth-child(30) {
  animation-delay: 0.975s;
}
.badge-card:nth-child(31) {
  animation-delay: 1.0075s;
}
.badge-card:nth-child(32) {
  animation-delay: 1.04s;
}
.badge-card:nth-child(33) {
  animation-delay: 1.0725s;
}
.badge-card:nth-child(34) {
  animation-delay: 1.105s;
}
.badge-card:nth-child(35) {
  animation-delay: 1.1375s;
}
.badge-card:nth-child(36) {
  animation-delay: 1.17s;
}
.badge-card:nth-child(37) {
  animation-delay: 1.2025s;
}
.badge-card:nth-child(38) {
  animation-delay: 1.235s;
}
.badge-card:nth-child(39) {
  animation-delay: 1.2675s;
}
.badge-card:nth-child(40) {
  animation-delay: 1.3s;
}
.badge-card:nth-child(41) {
  animation-delay: 1.3325s;
}
.badge-card:nth-child(42) {
  animation-delay: 1.365s;
}
.badge-card:nth-child(43) {
  animation-delay: 1.3975s;
}
.badge-card:nth-child(44) {
  animation-delay: 1.43s;
}
.badge-card:nth-child(45) {
  animation-delay: 1.4625s;
}
.badge-card:nth-child(46) {
  animation-delay: 1.495s;
}
.badge-card:nth-child(47) {
  animation-delay: 1.5275s;
}
.badge-card:nth-child(48) {
  animation-delay: 1.56s;
}
.badge-card:nth-child(49) {
  animation-delay: 1.5925s;
}
.badge-card:nth-child(50) {
  animation-delay: 1.625s;
}
.badge-card:nth-child(51) {
  animation-delay: 1.6575s;
}
.badge-card:nth-child(52) {
  animation-delay: 1.69s;
}
.badge-card:nth-child(53) {
  animation-delay: 1.7225s;
}
.badge-card:nth-child(54) {
  animation-delay: 1.755s;
}
.badge-card:nth-child(55) {
  animation-delay: 1.7875s;
}
.badge-card:nth-child(56) {
  animation-delay: 1.82s;
}
.badge-card:nth-child(57) {
  animation-delay: 1.8525s;
}
.badge-card:nth-child(58) {
  animation-delay: 1.885s;
}
.badge-card:nth-child(59) {
  animation-delay: 1.9175s;
}
.badge-card:nth-child(60) {
  animation-delay: 1.95s;
}
.badge-card:nth-child(61) {
  animation-delay: 1.9825s;
}
.badge-card:nth-child(62) {
  animation-delay: 2.015s;
}
.badge-card:nth-child(63) {
  animation-delay: 2.0475s;
}
.badge-card:nth-child(64) {
  animation-delay: 2.08s;
}
.badge-card:nth-child(65) {
  animation-delay: 2.1125s;
}
.badge-card:nth-child(66) {
  animation-delay: 2.145s;
}
.badge-card:nth-child(67) {
  animation-delay: 2.1775s;
}
.badge-card:nth-child(68) {
  animation-delay: 2.21s;
}
.badge-card:nth-child(69) {
  animation-delay: 2.2425s;
}
.badge-card:nth-child(70) {
  animation-delay: 2.275s;
}
.badge-card:nth-child(71) {
  animation-delay: 2.3075s;
}
.badge-card:nth-child(72) {
  animation-delay: 2.34s;
}
.badge-card:nth-child(73) {
  animation-delay: 2.3725s;
}
.badge-card:nth-child(74) {
  animation-delay: 2.405s;
}
.badge-card:nth-child(75) {
  animation-delay: 2.4375s;
}
.badge-card:nth-child(76) {
  animation-delay: 2.47s;
}
.badge-card:nth-child(77) {
  animation-delay: 2.5025s;
}
.badge-card:nth-child(78) {
  animation-delay: 2.535s;
}
.badge-card:nth-child(79) {
  animation-delay: 2.5675s;
}
.badge-card:nth-child(80) {
  animation-delay: 2.6s;
}
.badge-card:nth-child(81) {
  animation-delay: 2.6325s;
}
.badge-card:nth-child(82) {
  animation-delay: 2.665s;
}
.badge-card:nth-child(83) {
  animation-delay: 2.6975s;
}
.badge-card:nth-child(84) {
  animation-delay: 2.73s;
}
.badge-card:nth-child(85) {
  animation-delay: 2.7625s;
}
.badge-card:nth-child(86) {
  animation-delay: 2.795s;
}
.badge-card:nth-child(87) {
  animation-delay: 2.8275s;
}
.badge-card:nth-child(88) {
  animation-delay: 2.86s;
}
.badge-card:nth-child(89) {
  animation-delay: 2.8925s;
}
.badge-card:nth-child(90) {
  animation-delay: 2.925s;
}
.badge-card:nth-child(91) {
  animation-delay: 2.9575s;
}
.badge-card:nth-child(92) {
  animation-delay: 2.99s;
}
.badge-card:nth-child(93) {
  animation-delay: 3.0225s;
}
.badge-card:nth-child(94) {
  animation-delay: 3.055s;
}
.badge-card:nth-child(95) {
  animation-delay: 3.0875s;
}
.badge-card:nth-child(96) {
  animation-delay: 3.12s;
}
.badge-card:nth-child(97) {
  animation-delay: 3.1525s;
}
.badge-card:nth-child(98) {
  animation-delay: 3.185s;
}
.badge-card:nth-child(99) {
  animation-delay: 3.2175s;
}
.badge-card:nth-child(100) {
  animation-delay: 3.25s;
}
.badge-card:nth-child(101) {
  animation-delay: 3.2825s;
}
.badge-card:nth-child(102) {
  animation-delay: 3.315s;
}
.badge-card:nth-child(103) {
  animation-delay: 3.3475s;
}
.badge-card:nth-child(104) {
  animation-delay: 3.38s;
}
.badge-card:nth-child(105) {
  animation-delay: 3.4125s;
}
.badge-card:nth-child(106) {
  animation-delay: 3.445s;
}
.badge-card:nth-child(107) {
  animation-delay: 3.4775s;
}
.badge-card:nth-child(108) {
  animation-delay: 3.51s;
}
.badge-card:nth-child(109) {
  animation-delay: 3.5425s;
}
.badge-card:nth-child(110) {
  animation-delay: 3.575s;
}
.badge-card:nth-child(111) {
  animation-delay: 3.6075s;
}
.badge-card:nth-child(112) {
  animation-delay: 3.64s;
}
.badge-card:nth-child(113) {
  animation-delay: 3.6725s;
}
.badge-card:nth-child(114) {
  animation-delay: 3.705s;
}
.badge-card:nth-child(115) {
  animation-delay: 3.7375s;
}
.badge-card:nth-child(116) {
  animation-delay: 3.77s;
}
.badge-card:nth-child(117) {
  animation-delay: 3.8025s;
}
.badge-card:nth-child(118) {
  animation-delay: 3.835s;
}
.badge-card:nth-child(119) {
  animation-delay: 3.8675s;
}
.badge-card:nth-child(120) {
  animation-delay: 3.9s;
}
.badge-card:nth-child(121) {
  animation-delay: 3.9325s;
}
.badge-card:nth-child(122) {
  animation-delay: 3.965s;
}
.badge-card:nth-child(123) {
  animation-delay: 3.9975s;
}
.badge-card:nth-child(124) {
  animation-delay: 4.03s;
}
.badge-card:nth-child(125) {
  animation-delay: 4.0625s;
}
.badge-card:nth-child(126) {
  animation-delay: 4.095s;
}
.badge-card:nth-child(127) {
  animation-delay: 4.1275s;
}
.badge-card:nth-child(128) {
  animation-delay: 4.16s;
}
.badge-card:nth-child(129) {
  animation-delay: 4.1925s;
}
.badge-card:nth-child(130) {
  animation-delay: 4.225s;
}
.badge-card:nth-child(131) {
  animation-delay: 4.2575s;
}
.badge-card:nth-child(132) {
  animation-delay: 4.29s;
}
.badge-card:nth-child(133) {
  animation-delay: 4.3225s;
}
.badge-card:nth-child(134) {
  animation-delay: 4.355s;
}
.badge-card:nth-child(135) {
  animation-delay: 4.3875s;
}
.badge-card:nth-child(136) {
  animation-delay: 4.42s;
}
.badge-card:nth-child(137) {
  animation-delay: 4.4525s;
}
.badge-card:nth-child(138) {
  animation-delay: 4.485s;
}
.badge-card:nth-child(139) {
  animation-delay: 4.5175s;
}
.badge-card:nth-child(140) {
  animation-delay: 4.55s;
}
.badge-card:nth-child(141) {
  animation-delay: 4.5825s;
}
.badge-card:nth-child(142) {
  animation-delay: 4.615s;
}
.badge-card:nth-child(143) {
  animation-delay: 4.6475s;
}
.badge-card:nth-child(144) {
  animation-delay: 4.68s;
}
.badge-card:nth-child(145) {
  animation-delay: 4.7125s;
}
.badge-card:nth-child(146) {
  animation-delay: 4.745s;
}
.badge-card:nth-child(147) {
  animation-delay: 4.7775s;
}
.badge-card:nth-child(148) {
  animation-delay: 4.81s;
}
.badge-card:nth-child(149) {
  animation-delay: 4.8425s;
}
.badge-card:nth-child(150) {
  animation-delay: 4.875s;
}
.badge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.badge-card:hover::before {
  transform: scaleX(1);
}
.badge-card:hover .badge-icon {
  transform: scale(1.05);
}
.badge-card:hover .badge-earned-count {
  transform: scale(1.1);
}
.badge-card.unearned {
  opacity: 0.7;
}
.badge-card.unearned:hover {
  opacity: 1;
}

.badge-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}
.badge-icon-wrapper .badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.badge-icon-wrapper .badge-earned-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  transition: transform 0.2s ease;
}
.badge-icon-wrapper .badge-unearned-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-icon-wrapper .badge-unearned-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.8;
}

.badge-info {
  flex: 1;
  min-width: 0;
}
.badge-info .badge-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.badge-info .badge-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.unearned-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(44, 90, 160, 0.1);
}
.unearned-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}
.unearned-section .unearned-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.unearned-section .unearned-grid {
  margin-bottom: 0;
}

.modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}
.modal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
  padding: 1.5rem;
  position: relative;
}
.modal .modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.modal .modal-header .btn-close::before {
  content: "×";
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  line-height: 1;
}
.modal .modal-header .btn-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}
.modal .modal-header .btn-close:hover::before {
  color: #374151;
}
.modal .modal-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.modal .modal-header-content .modal-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.modal .modal-header-content .modal-badge-info {
  flex: 1;
}
.modal .modal-header-content .modal-badge-info .modal-badge-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}
.modal .modal-header-content .modal-badge-info .modal-badge-description {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.modal .modal-body {
  padding: 1.5rem;
}

.earners-list h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.earner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(44, 90, 160, 0.02);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.earner-item:hover {
  background: rgba(44, 90, 160, 0.05);
  transform: translateX(4px);
}
.earner-item:last-child {
  margin-bottom: 0;
}
.earner-item .earner-avatar {
  flex-shrink: 0;
}
.earner-item .earner-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.earner-item:hover .earner-avatar img {
  transform: scale(1.1);
}
.earner-item .earner-info {
  flex: 1;
  min-width: 0;
}
.earner-item .earner-info .earner-name {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.earner-item .earner-info .earner-count {
  font-size: 0.9rem;
  color: #6b7280;
}
.earner-item .earner-link {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid #2c5aa0;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.earner-item .earner-link:hover {
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.unearned-message {
  text-align: center;
  padding: 1rem;
}
.unearned-message .tracking-note {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
}
.unearned-message .no-earners {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 0;
  font-weight: 600;
}
.unearned-message .be-first {
  color: #2c5aa0;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1rem 0 0 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 600px) {
  .badges-container {
    padding: 1rem;
  }

  .badges-header h1 {
    font-size: 2.5rem;
  }
  .badges-header .badges-subtitle {
    font-size: 1.1rem;
  }

  .badge-card {
    padding: 1.25rem;
  }

  .badge-card-content {
    gap: 1rem;
  }

  .badge-icon-wrapper .badge-icon {
    width: 64px;
    height: 64px;
  }

  .badge-info .badge-name {
    font-size: 1.1rem;
  }

  .modal-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .modal-header-content .modal-badge-icon {
    width: 64px;
    height: 64px;
  }
}
#bettingPage .bet-row-wrapper {
  height: 120px;
  margin: 12px;
}
#bettingPage .bet-row-wrapper > div, #bettingPage .bet-row-wrapper > div > div, #bettingPage .bet-row-wrapper > div > div > div {
  height: 100%;
}
#bettingPage .box {
  cursor: pointer;
}
#bettingPage .box .box-color-border, #bettingPage .box .box-inside-color-border {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-style: solid;
  border-top-width: 0;
  border-bottom-width: 0;
}
#bettingPage .box .box-color-border {
  border-left-width: 10px;
  border-right-width: 10px;
}
#bettingPage .box .box-inside-color-border {
  border-left-width: 5px;
  border-right-width: 5px;
}
#bettingPage .at-symbol {
  font-size: 30px;
  line-height: 30px;
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 15px);
}
#bettingPage .game-team img {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 18px;
}
#bettingPage .game-team .game-team-name {
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  width: 80px;
  text-align: center;
  top: 92px;
}
#bettingPage .game-team.away-team img, #bettingPage .game-team.away-team .game-team-name {
  left: 8px;
}
#bettingPage .game-team.away-team .game-team-score {
  left: 80px;
}
#bettingPage .game-team.home-team img, #bettingPage .game-team.home-team .game-team-name {
  right: 8px;
}
#bettingPage .game-team.home-team .game-team-score {
  right: 80px;
}

#chug-challenges .video-player {
  display: none;
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
#chug-challenges .video-player.visible {
  display: block;
}
#chug-challenges .video-player iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#chug-challenges .challenge-box {
  margin-top: 15px;
  height: 100px;
  padding: 20px 20px 20px 100px;
  margin-right: 12px;
  display: inline-block;
  float: left;
  text-decoration: none;
  width: 342px;
  cursor: pointer;
}
@media (max-width: 500px) {
  #chug-challenges .challenge-box {
    min-width: 0;
    width: 100%;
  }
}
#chug-challenges .challenge-box .beer-image {
  height: 60px;
  width: 60px;
  padding: 10px;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(0, 200, 0, 0.3);
  border-radius: 50%;
}
#chug-challenges .challenge-box .beer-image img {
  width: 40px;
  position: relative;
  left: 2px;
}
#chug-challenges .challenge-box .challenge-loser {
  line-height: 35px;
}
#chug-challenges .challenge-box .challenge-winner {
  opacity: 0.5;
}

.carousel {
  position: relative;
}
.carousel .carousel-contents-wrapper {
  height: 100%;
  margin: 0 -20px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 500px) {
  .carousel .carousel-contents-wrapper {
    margin: -12px;
    padding: 0 12px;
  }
}
.carousel .carousel-contents-slider {
  position: relative;
  height: 100%;
  overflow-x: hidden;
  white-space: nowrap;
}
.carousel .carousel-contents {
  display: flex;
  transition: transform 0.75s ease-in-out;
  transform: translateX(0);
  position: relative;
  height: 100%;
}
.carousel .carousel-item {
  display: inline-flex;
  flex: 0 0 auto;
  height: 100%;
  position: relative;
  margin-right: 12px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}
@media (max-width: 500px) {
  .carousel .carousel-item {
    margin-right: 8px;
  }
}
.carousel .carousel-left-arrow,
.carousel .carousel-right-arrow {
  width: 26px;
  height: 26px;
  padding: 4px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #c3c3c3;
  color: #c3c3c3;
  background: white;
  position: absolute;
  font-size: 16px;
  top: calc(50% - 13px);
  display: none;
  cursor: pointer;
}
.carousel .carousel-left-arrow i,
.carousel .carousel-right-arrow i {
  display: block;
  transform: scale(1, 1.5);
  position: relative;
  top: -4px;
}
.carousel .carousel-left-arrow {
  left: 7px;
  padding-left: 1px;
}
.carousel .carousel-right-arrow {
  right: 7px;
}
.carousel.has-left-arrow .carousel-left-arrow {
  display: block;
}
.carousel.has-right-arrow .carousel-right-arrow {
  display: block;
}

.user-badge {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
  text-align: center;
}
.user-badge img {
  width: 100%;
  height: 100%;
  margin: 0;
}
.user-badge .badge-count {
  position: absolute;
  border-radius: 50%;
  background: white;
  border: 1px #3e3e3e solid;
  right: 1px;
  bottom: 1px;
  width: 32px;
  height: 32px;
  padding: 5px 0;
  font-size: 14px;
  text-align: center;
}
.user-badge .ff-tooltip-text {
  top: 100px;
}

.modal.user-badge-modal .modal-header {
  height: 224px;
  position: relative;
}
.modal.user-badge-modal .modal-header .badge-header-icon {
  width: 150px;
  height: 150px;
  position: absolute;
  left: calc(50% - 75px);
  top: 10px;
}
.modal.user-badge-modal .modal-header .modal-title {
  position: absolute;
  top: 156px;
  left: 0;
  right: 0;
  text-align: center;
}
.modal.user-badge-modal .modal-header .modal-subtitle {
  position: absolute;
  top: 195px;
  left: 0;
  right: 0;
  text-align: center;
}
.modal.user-badge-modal .modal-header .btn-close {
  margin-left: auto;
  margin-bottom: auto;
}
.modal.user-badge-modal .modal-badge {
  position: relative;
  height: 60px;
  margin-bottom: 5px;
}
.modal.user-badge-modal .modal-badge .badge-when {
  position: absolute;
  left: 70px;
  top: 18px;
}
.modal.user-badge-modal .modal-badge img {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 0;
  top: 0;
}
.modal.user-badge-modal .modal-badge a {
  position: absolute;
  right: 0;
  top: 18px;
}
.modal.user-badge-modal .modal-footnote {
  font-size: 12px;
  text-align: center;
  position: relative;
  top: 3px;
}

#shop-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
#shop-page .shop-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#shop-page .shop-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#shop-page .shop-header .shop-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}
#shop-page .shop-header .shop-subtitle .how-work-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  cursor: pointer;
}
#shop-page .shop-header .shop-subtitle .how-work-link:hover {
  border-bottom-color: #ffd700;
  color: #fff;
}
#shop-page .shop-event-banner {
  margin-bottom: 3rem;
  text-align: center;
}
#shop-page .shop-event-banner img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#shop-page .login-required {
  margin-bottom: 3rem;
}
#shop-page .login-required .login-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 2px dashed #dee2e6;
}
#shop-page .login-required .login-card h3 {
  color: #6c757d;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
#shop-page .login-required .login-card p {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
#shop-page .login-required .login-card .login-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
}
#shop-page .pending-upgrade-banner {
  margin-bottom: 3rem;
}
#shop-page .pending-upgrade-banner .banner-content {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}
#shop-page .pending-upgrade-banner .banner-content .banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
#shop-page .pending-upgrade-banner .banner-content .banner-text {
  flex: 1;
}
#shop-page .pending-upgrade-banner .banner-content .banner-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}
#shop-page .pending-upgrade-banner .banner-content .banner-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}
#shop-page .pending-upgrade-banner .banner-content .finalize-btn {
  background: white;
  color: #ff6b35;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
#shop-page .pending-upgrade-banner .banner-content .finalize-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #ff6b35;
}
#shop-page .user-info-banner {
  margin-bottom: 3rem;
}
#shop-page .user-info-banner .banner-content {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(44, 90, 160, 0.2);
}
#shop-page .user-info-banner .banner-content .banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
#shop-page .user-info-banner .banner-content .banner-text {
  flex: 1;
}
#shop-page .user-info-banner .banner-content .banner-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}
#shop-page .user-info-banner .banner-content .banner-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}
#shop-page .user-info-banner .banner-content .dressing-room-btn {
  background: white;
  color: #2c5aa0;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
#shop-page .user-info-banner .banner-content .dressing-room-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #2c5aa0;
}
#shop-page .shop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
#shop-page .shop-items-grid .shop-item-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
}
#shop-page .shop-items-grid .shop-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
#shop-page .shop-items-grid .shop-item-card.disabled-coins {
  opacity: 0.6;
  filter: grayscale(0.3);
  cursor: not-allowed;
}
#shop-page .shop-items-grid .shop-item-card.disabled-coins .item-link {
  pointer-events: none;
}
#shop-page .shop-items-grid .shop-item-card.disabled-coins .item-cost {
  color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1) !important;
}
#shop-page .shop-items-grid .shop-item-card.disabled-coins::before {
  content: "💸";
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  z-index: 2;
}
#shop-page .shop-items-grid .shop-item-card.disabled-requirement {
  opacity: 0.7;
  filter: grayscale(0.2);
  cursor: not-allowed;
}
#shop-page .shop-items-grid .shop-item-card.disabled-requirement .item-link {
  pointer-events: none;
}
#shop-page .shop-items-grid .shop-item-card.disabled-requirement .requirement-badge.requirement-missing {
  background: #dc3545;
}
#shop-page .shop-items-grid .shop-item-card.disabled-requirement::before {
  content: "🔒";
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  z-index: 2;
}
#shop-page .shop-items-grid .shop-item-card.already-owned {
  opacity: 0.8;
  filter: grayscale(0.1);
}
#shop-page .shop-items-grid .shop-item-card.already-owned .item-cost {
  background: rgba(40, 167, 69, 0.9) !important;
  color: white !important;
}
#shop-page .shop-items-grid .shop-item-card.already-owned::before {
  content: "✅";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  z-index: 2;
}
#shop-page .shop-items-grid .shop-item-card .owned-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(40, 167, 69, 0.95);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}
#shop-page .shop-items-grid .shop-item-card .owned-badge .owned-icon {
  font-size: 1rem;
}
#shop-page .shop-items-grid .shop-item-card .item-actions {
  margin-top: 1rem;
  text-align: center;
}
#shop-page .shop-items-grid .shop-item-card .item-actions .purchase-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
#shop-page .shop-items-grid .shop-item-card .item-actions .purchase-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}
#shop-page .shop-items-grid .shop-item-card .item-actions .purchase-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#shop-page .shop-items-grid .shop-item-card .item-actions .purchase-btn .btn-text {
  font-size: 1rem;
}
#shop-page .shop-items-grid .shop-item-card .item-actions .purchase-btn .btn-icon {
  font-size: 1.1rem;
}
#shop-page .shop-items-grid .shop-item-card .item-actions .owned-message {
  color: #28a745;
  font-weight: 600;
  font-style: italic;
  padding: 0.75rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 10px;
  border: 2px dashed #28a745;
}
#shop-page .shop-items-grid .shop-item-card .item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
#shop-page .shop-items-grid .shop-item-card .item-link:hover {
  text-decoration: none;
  color: inherit;
}
#shop-page .shop-items-grid .shop-item-card .item-image-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#shop-page .shop-items-grid .shop-item-card .item-image-container .item-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
#shop-page .shop-items-grid .shop-item-card .item-image-container .item-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
#shop-page .shop-items-grid .shop-item-card .item-image-container .item-overlay .item-cost {
  background: rgba(255, 215, 0, 0.95);
  color: #333;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}
#shop-page .shop-items-grid .shop-item-card .item-image-container .item-overlay .item-cost .cost-amount {
  font-size: 1.2rem;
}
#shop-page .shop-items-grid .shop-item-card .item-image-container .item-overlay .item-cost .coin-icon {
  width: 20px;
  height: 20px;
}
#shop-page .shop-items-grid .shop-item-card .item-details {
  padding: 1.5rem;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-header {
  margin-bottom: 1rem;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-header .item-name {
  margin: 0 0 0.5rem 0;
  color: #2c5aa0;
  font-size: 1.4rem;
  font-weight: 700;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-header .item-category {
  background: #e9ecef;
  color: #6c757d;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-description {
  color: #495057;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #17a2b8;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-timer .timer-icon {
  font-size: 1.2rem;
}
#shop-page .shop-items-grid .shop-item-card .item-details .item-timer .timer-text {
  color: #17a2b8;
  font-weight: 600;
  font-size: 0.9rem;
}
#shop-page .shop-items-grid .shop-item-card .item-details .requirement-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
#shop-page .shop-items-grid .shop-item-card .item-details .requirement-badge.requirement-missing {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}
#shop-page .shop-items-grid .shop-item-card .item-details .requirement-badge.requirement-fulfilled {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
#shop-page .shop-items-grid .shop-item-card .item-details .requirement-badge .requirement-icon {
  font-size: 1.1rem;
}

.shop-item-card[data-tooltip] {
  position: relative;
}
.shop-item-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  margin-bottom: 0.5rem;
  max-width: 300px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.shop-item-card[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  margin-bottom: -0.5rem;
}
.shop-item-card[data-tooltip]:hover::after, .shop-item-card[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.shop-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shop-modal.modal-open {
  opacity: 1;
}
.shop-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.shop-modal .modal-container {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px) scale(0.9);
  transition: transform 0.3s ease;
}
.modal-open .shop-modal .modal-container {
  transform: translateY(0) scale(1);
}
.shop-modal .modal-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shop-modal .modal-header .modal-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}
.shop-modal .modal-header .modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-modal .modal-header .modal-close:hover {
  opacity: 1;
}
.shop-modal .modal-body {
  padding: 2rem;
}
.shop-modal .modal-body .info-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #2c5aa0;
}
.shop-modal .modal-body .info-section:last-child {
  margin-bottom: 0;
}
.shop-modal .modal-body .info-section.warning {
  border-left-color: #ffc107;
  background: #fff3cd;
}
.shop-modal .modal-body .info-section h6 {
  margin: 0 0 0.5rem 0;
  color: #2c5aa0;
  font-weight: 700;
  font-size: 1.1rem;
}
.shop-modal .modal-body .info-section p {
  margin: 0;
  color: #495057;
  line-height: 1.5;
}
.shop-modal .modal-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: right;
  border-top: 1px solid #dee2e6;
}
.shop-modal .modal-footer .btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  #shop-page .shop-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  #shop-page {
    padding: 1rem;
  }
  #shop-page .shop-header {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  #shop-page .shop-header h2 {
    font-size: 2.5rem;
  }
  #shop-page .shop-header .shop-subtitle {
    font-size: 1.1rem;
  }
  #shop-page .shop-items-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #shop-page .shop-items-grid .shop-item-card .item-image-container {
    padding: 1.5rem;
    min-height: 180px;
  }
  #shop-page .shop-items-grid .shop-item-card .item-image-container .item-image {
    max-height: 160px;
  }
  #shop-page .shop-items-grid .shop-item-card .item-details {
    padding: 1.25rem;
  }
  #shop-page .shop-items-grid .shop-item-card .item-details .item-description {
    min-height: 2.5rem;
  }
  #shop-page .pending-upgrade-banner .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  #shop-page .pending-upgrade-banner .banner-content .banner-icon {
    font-size: 2.5rem;
  }

  .shop-modal .modal-container {
    margin: 10% auto;
    width: 95%;
  }
}
@media (max-width: 480px) {
  #shop-page .shop-header {
    padding: 1.5rem;
  }
  #shop-page .shop-header h2 {
    font-size: 2rem;
  }
  #shop-page .shop-header .shop-subtitle {
    font-size: 1rem;
  }
  #shop-page .shop-items-grid {
    gap: 1rem;
  }
  #shop-page .shop-items-grid .shop-item-card .item-image-container {
    padding: 1rem;
    min-height: 160px;
  }
  #shop-page .shop-items-grid .shop-item-card .item-image-container .item-image {
    max-height: 140px;
  }
  #shop-page .shop-items-grid .shop-item-card .item-details {
    padding: 1rem;
  }
  #shop-page .shop-items-grid .shop-item-card .item-details .item-name {
    font-size: 1.2rem;
  }

  .shop-modal .modal-container {
    margin: 15% auto;
    width: 98%;
  }
  .shop-modal .modal-container .modal-header {
    padding: 1rem 1.5rem;
  }
  .shop-modal .modal-container .modal-header .modal-title {
    font-size: 1.3rem;
  }
  .shop-modal .modal-container .modal-body {
    padding: 1.5rem;
  }
  .shop-modal .modal-container .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}
#choose-avatar-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
#choose-avatar-page .choose-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#choose-avatar-page .choose-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#choose-avatar-page .choose-header .choose-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}
#choose-avatar-page .avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
#choose-avatar-page .avatars-grid .avatar-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}
#choose-avatar-page .avatars-grid .avatar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: #2c5aa0;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-image-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
  max-width: 100%;
  max-height: 250px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-image-container:hover .avatar-image {
  transform: scale(1.05);
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions {
  padding: 1.5rem;
  text-align: center;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  cursor: pointer;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.4);
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn:active {
  transform: translateY(-1px);
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn .btn-text {
  font-size: 1.1rem;
}
#choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn .btn-icon {
  font-size: 1.3rem;
}
#choose-avatar-page .choose-footer .info-card {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.1);
}
#choose-avatar-page .choose-footer .info-card .info-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
#choose-avatar-page .choose-footer .info-card .info-content h4 {
  margin: 0 0 1rem 0;
  color: #1565c0;
  font-size: 1.3rem;
  font-weight: 700;
}
#choose-avatar-page .choose-footer .info-card .info-content p {
  margin: 0;
  color: #1976d2;
  line-height: 1.6;
  font-size: 1.1rem;
}

@media (max-width: 1200px) {
  #choose-avatar-page .avatars-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  #choose-avatar-page {
    padding: 1rem;
  }
  #choose-avatar-page .choose-header {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  #choose-avatar-page .choose-header h2 {
    font-size: 2.5rem;
  }
  #choose-avatar-page .choose-header .choose-subtitle {
    font-size: 1.1rem;
  }
  #choose-avatar-page .avatars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-image-container {
    padding: 1.5rem;
    min-height: 250px;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
    max-height: 200px;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions {
    padding: 1.25rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn .btn-text {
    font-size: 1rem;
  }
  #choose-avatar-page .choose-footer .info-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  #choose-avatar-page .choose-header {
    padding: 1.5rem;
  }
  #choose-avatar-page .choose-header h2 {
    font-size: 2rem;
  }
  #choose-avatar-page .choose-header .choose-subtitle {
    font-size: 1rem;
  }
  #choose-avatar-page .avatars-grid {
    gap: 1rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-image-container {
    padding: 1rem;
    min-height: 200px;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-image-container .avatar-image {
    max-height: 160px;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions {
    padding: 1rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  #choose-avatar-page .avatars-grid .avatar-card .avatar-actions .choose-btn .btn-text {
    font-size: 0.95rem;
  }
  #choose-avatar-page .choose-footer .info-card {
    padding: 1rem;
  }
  #choose-avatar-page .choose-footer .info-card .info-content h4 {
    font-size: 1.2rem;
  }
  #choose-avatar-page .choose-footer .info-card .info-content p {
    font-size: 1rem;
  }
}
#image-upgrade-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
#image-upgrade-page .upgrade-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#image-upgrade-page .upgrade-header h2 {
  margin: 0 0 1rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#image-upgrade-page .upgrade-header .upgrade-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}
#image-upgrade-page .upgrade-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
#image-upgrade-page .item-preview-section .item-preview-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
}
#image-upgrade-page .item-preview-section .item-preview-card h3 {
  margin: 0 0 1.5rem 0;
  color: #2c5aa0;
  font-size: 1.8rem;
  font-weight: 700;
}
#image-upgrade-page .item-preview-section .item-preview-card .item-image-container {
  margin-bottom: 1.5rem;
}
#image-upgrade-page .item-preview-section .item-preview-card .item-image-container .item-preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
#image-upgrade-page .item-preview-section .item-preview-card .item-details .item-category {
  background: #e9ecef;
  color: #6c757d;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 1rem;
}
#image-upgrade-page .item-preview-section .item-preview-card .item-details .item-description {
  color: #495057;
  line-height: 1.6;
  margin: 0;
  font-size: 1.1rem;
}
#image-upgrade-page .avatar-comparison-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}
#image-upgrade-page .avatar-comparison-section .comparison-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
}
#image-upgrade-page .avatar-comparison-section .comparison-card h3 {
  margin: 0 0 1.5rem 0;
  color: #2c5aa0;
  font-size: 1.6rem;
  font-weight: 700;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container {
  margin-bottom: 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .avatar-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .new-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 2px dashed #dee2e6;
  min-height: 200px;
  justify-content: center;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .new-avatar-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .new-avatar-placeholder .placeholder-text {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 600;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .prompt-details h4 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1.2rem;
  font-weight: 600;
}
#image-upgrade-page .avatar-comparison-section .comparison-card .prompt-details .prompt-text {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #2c5aa0;
}
#image-upgrade-page .avatar-comparison-section .comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}
#image-upgrade-page .avatar-comparison-section .comparison-arrow .arrow-icon {
  font-size: 2rem;
  color: #2c5aa0;
}
#image-upgrade-page .avatar-comparison-section .comparison-arrow .arrow-text {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#image-upgrade-page .warning-section .warning-card {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
}
#image-upgrade-page .warning-section .warning-card .warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
#image-upgrade-page .warning-section .warning-card .warning-content h4 {
  margin: 0 0 1rem 0;
  color: #856404;
  font-size: 1.3rem;
  font-weight: 700;
}
#image-upgrade-page .warning-section .warning-card .warning-content p {
  margin: 0;
  color: #856404;
  line-height: 1.6;
  font-size: 1.1rem;
}
#image-upgrade-page .purchase-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
#image-upgrade-page .purchase-section .balance-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
#image-upgrade-page .purchase-section .balance-card h3 {
  margin: 0 0 1.5rem 0;
  color: #2c5aa0;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}
#image-upgrade-page .purchase-section .balance-card .balance-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row:hover {
  background: #f8f9fa;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row .balance-label {
  color: #495057;
  font-weight: 600;
  font-size: 1.1rem;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row .balance-value {
  color: #28a745;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row .balance-value .fancy-coin, #image-upgrade-page .purchase-section .balance-card .balance-details .balance-row .balance-value .fancy-ticket {
  width: 24px;
  height: 24px;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row.cost-row {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row.cost-row .cost-value {
  color: #dc3545;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row.total-row {
  background: #d4edda;
  border-left: 4px solid #28a745;
  border-top: 2px solid #c3e6cb;
  border-bottom: 2px solid #c3e6cb;
  border-right: 2px solid #c3e6cb;
}
#image-upgrade-page .purchase-section .balance-card .balance-details .balance-row.total-row .total-value {
  color: #155724;
  font-size: 1.3rem;
}
#image-upgrade-page .purchase-section .purchase-form {
  text-align: center;
}
#image-upgrade-page .purchase-section .purchase-form .purchase-btn {
  padding: 1.25rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  min-width: 250px;
  justify-content: center;
}
#image-upgrade-page .purchase-section .purchase-form .purchase-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.4);
}
#image-upgrade-page .purchase-section .purchase-form .purchase-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
#image-upgrade-page .purchase-section .purchase-form .purchase-btn .btn-text {
  font-size: 1.2rem;
}
#image-upgrade-page .purchase-section .purchase-form .purchase-btn .btn-icon {
  font-size: 1.4rem;
}

@media (max-width: 1200px) {
  #image-upgrade-page .avatar-comparison-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  #image-upgrade-page .avatar-comparison-section .comparison-arrow {
    transform: rotate(90deg);
    padding: 0.5rem;
  }
}
@media (max-width: 768px) {
  #image-upgrade-page {
    padding: 1rem;
  }
  #image-upgrade-page .upgrade-header {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  #image-upgrade-page .upgrade-header h2 {
    font-size: 2.5rem;
  }
  #image-upgrade-page .upgrade-header .upgrade-subtitle {
    font-size: 1.1rem;
  }
  #image-upgrade-page .item-preview-section .item-preview-card,
#image-upgrade-page .avatar-comparison-section .comparison-card,
#image-upgrade-page .warning-section .warning-card,
#image-upgrade-page .purchase-section .balance-card {
    padding: 1.5rem;
  }
  #image-upgrade-page .avatar-comparison-section {
    margin: 1.5rem 0;
  }
  #image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container {
    min-height: 180px;
  }
  #image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .avatar-image,
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .new-avatar-placeholder {
    max-height: 160px;
  }
  #image-upgrade-page .purchase-section .purchase-form .purchase-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
  }
  #image-upgrade-page .purchase-section .purchase-form .purchase-btn .btn-text {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  #image-upgrade-page .upgrade-header {
    padding: 1.5rem;
  }
  #image-upgrade-page .upgrade-header h2 {
    font-size: 2rem;
  }
  #image-upgrade-page .upgrade-header .upgrade-subtitle {
    font-size: 1rem;
  }
  #image-upgrade-page .item-preview-section .item-preview-card,
#image-upgrade-page .avatar-comparison-section .comparison-card,
#image-upgrade-page .warning-section .warning-card,
#image-upgrade-page .purchase-section .balance-card {
    padding: 1rem;
  }
  #image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container {
    min-height: 160px;
  }
  #image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .avatar-image,
#image-upgrade-page .avatar-comparison-section .comparison-card .avatar-image-container .new-avatar-placeholder {
    max-height: 140px;
  }
  #image-upgrade-page .warning-section .warning-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  #image-upgrade-page .purchase-section .balance-card .balance-details .balance-row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  #image-upgrade-page .purchase-section .purchase-form .purchase-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
    flex-direction: column;
    gap: 0.5rem;
  }
  #image-upgrade-page .purchase-section .purchase-form .purchase-btn .btn-text {
    font-size: 1rem;
  }
}
#shop-admin-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
#shop-admin-page .admin-header {
  text-align: center;
  margin-bottom: 30px;
}
#shop-admin-page .admin-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.5rem;
}
#shop-admin-page .admin-header .admin-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0;
}
#shop-admin-page .admin-actions {
  margin-bottom: 30px;
  text-align: center;
}
#shop-admin-page .admin-actions .btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
#shop-admin-page .admin-actions .btn .btn-icon {
  font-size: 1.2rem;
}
#shop-admin-page .admin-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#shop-admin-page .admin-section {
  margin-bottom: 40px;
}
#shop-admin-page .admin-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
}
#shop-admin-page .admin-section .section-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
}
#shop-admin-page .admin-section .section-header .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
#shop-admin-page .admin-section .section-header .btn .btn-icon {
  font-size: 1.1rem;
}
#shop-admin-page .admin-section .section-header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#shop-admin-page .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
#shop-admin-page .events-grid .event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
#shop-admin-page .events-grid .event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
#shop-admin-page .events-grid .event-card.active {
  border-color: #27ae60;
}
#shop-admin-page .events-grid .event-card.inactive {
  border-color: #e74c3c;
  opacity: 0.7;
}
#shop-admin-page .events-grid .event-card .event-header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#shop-admin-page .events-grid .event-card .event-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}
#shop-admin-page .events-grid .event-card .event-header .event-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}
#shop-admin-page .events-grid .event-card .event-header .event-status.active {
  background: #27ae60;
  color: white;
}
#shop-admin-page .events-grid .event-card .event-header .event-status.inactive {
  background: #e74c3c;
  color: white;
}
#shop-admin-page .events-grid .event-card .event-details {
  padding: 15px 20px;
}
#shop-admin-page .events-grid .event-card .event-details p {
  margin: 5px 0;
  color: #34495e;
  font-size: 0.9rem;
}
#shop-admin-page .events-grid .event-card .event-details p strong {
  color: #2c3e50;
}
#shop-admin-page .events-grid .event-card .event-actions {
  padding: 15px 20px;
  border-top: 1px solid #ecf0f1;
  display: flex;
  gap: 8px;
}
#shop-admin-page .events-grid .event-card .event-actions .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
#shop-admin-page .events-grid .event-card .event-actions .btn.btn-secondary {
  background: #95a5a6;
  color: white;
}
#shop-admin-page .events-grid .event-card .event-actions .btn.btn-secondary:hover {
  background: #7f8c8d;
}
#shop-admin-page .events-grid .event-card .event-actions .btn.btn-danger {
  background: #e74c3c;
  color: white;
}
#shop-admin-page .events-grid .event-card .event-actions .btn.btn-danger:hover {
  background: #c0392b;
}
#shop-admin-page .shop-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
#shop-admin-page .shop-items-grid .shop-item-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
#shop-admin-page .shop-items-grid .shop-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
#shop-admin-page .shop-items-grid .shop-item-card.active {
  border-color: #27ae60;
}
#shop-admin-page .shop-items-grid .shop-item-card.inactive {
  border-color: #e74c3c;
  opacity: 0.7;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container {
  position: relative;
  height: 150px;
  overflow: hidden;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container .item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container:hover .item-image {
  transform: scale(1.05);
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container .item-status {
  position: absolute;
  top: 10px;
  right: 10px;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container .item-status .status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container .item-status .status-badge.active {
  background: #27ae60;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-image-container .item-status .status-badge.inactive {
  background: #e74c3c;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details {
  padding: 15px;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-header {
  margin-bottom: 10px;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-header .item-name {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-header .item-category {
  color: #7f8c8d;
  font-size: 0.9rem;
  text-transform: capitalize;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-info {
  margin-bottom: 15px;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-info p {
  margin: 3px 0;
  color: #34495e;
  font-size: 0.8rem;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-info p strong {
  color: #2c3e50;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-secondary {
  background: #95a5a6;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-secondary:hover {
  background: #7f8c8d;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-info {
  background: #3498db;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-info:hover {
  background: #2980b9;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-danger {
  background: #e74c3c;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-danger:hover {
  background: #c0392b;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-success {
  background: #27ae60;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-success:hover {
  background: #229954;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-warning {
  background: #f39c12;
  color: white;
}
#shop-admin-page .shop-items-grid .shop-item-card .item-details .item-actions .btn.btn-warning:hover {
  background: #e67e22;
}
#shop-admin-page .shop-admin-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#shop-admin-page .shop-admin-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
#shop-admin-page .shop-admin-modal .modal-container {
  position: relative;
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-header .modal-title {
  margin: 0;
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-header .modal-close:hover {
  background: #ecf0f1;
  color: #2c3e50;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body {
  padding: 25px;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group {
  margin-bottom: 20px;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9rem;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ecf0f1;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group .form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group textarea.form-control {
  resize: vertical;
  min-height: 80px;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #2c3e50;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .form-group .checkbox-label input[type=checkbox] {
  margin-right: 8px;
  transform: scale(1.2);
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  background: #f8f9fa;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option h6 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .form-control {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #ecf0f1;
  border-radius: 4px;
  font-size: 0.9rem;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .form-control:focus {
  outline: none;
  border-color: #3498db;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-primary {
  background: #3498db;
  color: white;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-primary:hover {
  background: #2980b9;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-warning {
  background: #f39c12;
  color: white;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-warning:hover {
  background: #e67e22;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-info {
  background: #17a2b8;
  color: white;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-body .grant-options .grant-option .grant-form .btn.btn-info:hover {
  background: #138496;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #ecf0f1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer .btn.btn-secondary {
  background: #95a5a6;
  color: white;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer .btn.btn-secondary:hover {
  background: #7f8c8d;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer .btn.btn-primary {
  background: #3498db;
  color: white;
}
#shop-admin-page .shop-admin-modal .modal-container .modal-footer .btn.btn-primary:hover {
  background: #2980b9;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1200px) {
  #shop-admin-page .shop-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  #shop-admin-page .shop-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #shop-admin-page {
    padding: 15px;
  }
  #shop-admin-page .shop-items-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #shop-admin-page .shop-admin-modal .modal-container {
    width: 95%;
    margin: 10% auto;
  }
  #shop-admin-page .modal-body .grant-options .grant-option .grant-form {
    flex-direction: column;
    align-items: stretch;
  }
  #shop-admin-page .modal-body .grant-options .grant-option .grant-form .btn {
    margin-top: 10px;
  }
}

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: url("/images/turf.jpg");
  background-repeat: repeat;
}

body {
  background: rgba(0, 80, 0, 0.85);
}

@media (max-width: 580px) {
  html, body {
    background: black;
  }

  .body-content {
    max-width: 100%;
    width: 100%;
  }
}
#body-content-wrapper {
  padding: 12px 0;
  overflow: hidden;
}
@media (max-width: 1199.98px) {
  #body-content-wrapper {
    padding: 0;
  }
  #body-content-wrapper .body-content {
    border-radius: 0;
  }
}

.headered-body {
  position: relative;
}
.headered-body .body-content {
  padding: 20px;
  max-width: 90em;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 6px 6px 5px 0 rgba(0, 0, 0, 0.75);
}
@media (max-width: 580px) {
  .headered-body .body-content {
    padding: 12px;
    border-radius: 0;
    box-shadow: none;
  }
}

.body-content {
  min-height: calc(100vh - 3.5rem - 24px);
}

a {
  color: #0F2964;
}
a:hover {
  color: #0C2258;
}

/* Add these styles to handle scrollbar compensation */
body.modal-open {
  padding-right: 0 !important;
  /* Adjust padding-right to prevent shifting */
}

#adminPage h1, #userPage h1, #shopPage h1, #shopAdminPage h1, #chooseAvatarPage h1, #dressingRoomPage h1, #badgeCompendiumPage h1, #tinkerPage h1, #bettingPage h1, #chugChallengesPage h1 {
  font-size: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c3c3c3;
  margin-bottom: 20px;
}
@media (max-width: 500px) {
  #adminPage h1, #userPage h1, #shopPage h1, #shopAdminPage h1, #chooseAvatarPage h1, #dressingRoomPage h1, #badgeCompendiumPage h1, #tinkerPage h1, #bettingPage h1, #chugChallengesPage h1 {
    font-size: 32px;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
}

table {
  border-spacing: 0;
  border: 1px solid #dedede;
  border-top: 0;
  border-bottom: 0;
}

thead {
  background: black;
  color: white;
}

td {
  padding: 5px 10px;
  text-align: center;
  border: 1px solid #dedede;
  border-left: 0;
  border-right: 0;
  position: relative;
}
td.fixed-column {
  background: #ebebeb;
  text-align: left;
}

@media (max-width: 1000px) {
  td {
    padding: 5px;
  }
}
@media (max-width: 680px) {
  td {
    padding: 3px;
  }
}
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.error-message, .success-message {
  color: #CC5555;
  border: 1px solid #CC5555;
  position: fixed;
  z-index: 999;
  background: white;
  font-size: 22px;
  left: calc(50% - 15vw);
  width: 30vw;
  text-align: center;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.success-message {
  color: #00AB66;
  border: 1px solid #00AB66;
}

.error-message {
  color: #CC5555;
  border: 1px solid #CC5555;
}

.streak-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 500px) {
  .hide-for-small {
    display: none;
  }
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.fancy-coin {
  width: 24px;
  margin-left: 4px;
}

.box {
  position: relative;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
  padding: 12px;
  border: 2px solid #999;
  border-radius: 5px;
}
.box .box-label {
  color: #c3c3c3;
  position: absolute;
  top: 12px;
  right: 12px;
}

.ff-tooltip {
  position: relative;
  cursor: help;
}
.ff-tooltip .ff-tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1000;
  background: white;
  color: #1f2937;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  min-width: 120px;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
}
.ff-tooltip .ff-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #d1d5db transparent transparent transparent;
}
.ff-tooltip .ff-tooltip-text::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: white transparent transparent transparent;
  z-index: 1;
}
.ff-tooltip:hover .ff-tooltip-text {
  visibility: visible;
}