.profile-card {
    background-color: var(--secondary-black);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.photo-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cropper-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.photo-cropper-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.photo-cropper-modal__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  background: var(--secondary-black);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.photo-cropper-modal__viewport {
  --cropper-hole: 70%;
  position: relative;
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  margin: 0 auto;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.photo-cropper-modal__viewport.is-dragging {
  cursor: grabbing;
}

.photo-cropper-modal__viewport img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-cropper-modal__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 0 calc(var(--cropper-hole) / 2),
    rgba(0, 0, 0, 0.6) calc(var(--cropper-hole) / 2 + 1px)
  );
}

.photo-cropper-modal__controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-cropper-modal__label {
  font-size: 13px;
  color: var(--accent-white);
}

.photo-cropper-modal__controls input[type="range"] {
  width: 100%;
}

.photo-cropper-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.photo-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.55);
}

.photo-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--secondary-black);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--primary-white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.photo-loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-color);
  animation: photo-loading-spin 0.9s linear infinite;
}

.photo-loading-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-white);
}

@keyframes photo-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-number.stat-placeholder,
.stat-value.stat-placeholder {
  color: var(--accent-white);
  opacity: 0.45;
}

.stat-unit {
  font-size: 14px;
  opacity: 0.7;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.player-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-white);
}

.edit-profile-header {
    margin-bottom: 20px;
    text-align: center;
}

.edit-profile-header h2 {
    color: var(--primary-white);
    font-size: 1.5rem;
    margin: 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.hidden {
    display: none !important;
}
