.site-header {
  /* background-color: transparent; */
  box-shadow: inset 0 -1px 0 0 #dcdfe3;
  position: relative;
}

/* When buddypanel is not shown, make header full width */
body:not(.buddypanel-open) .site-header {
  width: 100% !important;
}

body:has(.buddypanel-open) .site-header {
  width: calc(100% - 300px) !important;
}

.ghi-glass-container {
  position: relative;
  width: 60%;
  max-width: 1200px;
  margin: 16px auto;
  background: white !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.ghi-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.ghi-rank {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghi-rank-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ghi-rank-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ghi-rank-letter {
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.ghi-rank-info {
  min-width: 250px;
}

.ghi-rank-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 8px; */
}

.ghi-rank-details * {
  color: black !important;
}

.ghi-rank-name {
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ghi-points {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Updated Progress Bar Styling */
.ghi-progress-bar {
  width: 100%;
  height: 18px;
  background: rgba(200, 200, 200, 0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ghi-progress-fill {
  height: 100%;
  background: #16697a;
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow:
    0 0 8px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Add a subtle animated shine effect */
/* .ghi-progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent
	);
	animation: shine 2s infinite;
	border-radius: 20px;
} */

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.ghi-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  /* background: rgba(255, 215, 0, 0.2); */
  padding: 8px 16px;
  border-radius: 24px;
  /* border: 1px solid rgba(255, 215, 0, 0.3); */
  cursor: pointer;
  transition: all 0.3s ease;
}

.ghi-coins:hover {
  /* background: rgba(255, 215, 0, 0.3); */
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.ghi-coins img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ghi-coins span {
  font-weight: 600;
  font-size: 14px;
  color: black;
  /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

.ghi-points-bottom {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
}

@media (max-width: 768px) {
  .ghi-glass-container {
    width: 100%;
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 0;
  }

  .ghi-content {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .ghi-rank {
    justify-content: center;
  }

  .ghi-coins {
    justify-content: center;
  }

  /* Toggle button styling for mobile */
  .ghi-toggle-btn-mobile {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .ghi-toggle-btn-mobile img {
    width: 24px;
    height: 24px;
  }
}

.ghi-coins-navbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  color: #333 !important;
}
.ghi-coins-navbar div {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}
.ghi-coins-navbar img {
  width: 20px !important;
  height: 20px !important;
}
.ghi-coins-navbar span {
  font-weight: 600 !important;
  color: #222 !important;
}

@media (max-width: 480px) {
  .ghi-rank-info {
    min-width: 150px;
  }

  .ghi-rank-name {
    font-size: 12px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
