/* --- 메인 컨텐츠 --- */
.main-content {
  max-width: 1100px;
  margin: 24px auto 80px;
  padding: 0 20px;
  color: #e6e6e6;
}

.profile-kicker {
  margin: 0 0 8px;
  color: rgba(255, 216, 179, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.profile-subtitle {
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

/* --- 프로필 카드 전체 --- */
.profile-card {
  width: 100%;
  max-width: 820px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(22, 22, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
}

.card-inner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- 아바타 --- */
.profile-avatar {
  width: 170px;
  flex: 0 0 170px;
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 170px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

/* --- 정보 텍스트 --- */
.profile-info {
  flex: 1;
  min-width: 0; /* 오버플로우 방지의 핵심 */
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

dt {
  width: 78px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

dd {
  margin: 0;
  color: #f2f2f2;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.input-inline {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
}

/* 긴 이메일 자동 줄맞춤 */
.long-text {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 사진 변경 버튼 */
.photo-actions {
  margin-top: 18px;
}

.avatar-change {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 999px;
}

/* 저장 / 탈퇴 */
.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  border: 1px solid transparent;
  background: transparent;
}

.btn-save {
  background: linear-gradient(180deg, #ff8a1d, #dc6500);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.2);
}

.btn-delete {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 92, 92, 0.22);
  color: #ffb1b1;
}

/* --- 모바일 최적화 --- */
@media (max-width: 600px) {
  .card-inner {
    flex-direction: column;
    align-items: center;
  }

  .profile-avatar {
    margin-bottom: 14px;
  }

  dt {
    width: 100%;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-inline {
    width: 100%;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
    justify-content: stretch;
  }

  .btn {
    width: 100%;
  }
}
