* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

h1 {
  color: #333;
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 600;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 30px;
}

button {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid #333;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: #333;
  color: white;
}

.input-group {
  max-width: 400px;
  margin: 0 auto;
  display: none;
}

.input-group.show {
  display: block;
}

input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
}

input:focus {
  outline: none;
  border-color: #333;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-top: 20px;
  cursor: pointer;
}

.back-link:hover {
  color: #333;
}

/* Profile Section */
.profile-section {
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-image-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.profile-image:hover {
  border-color: #333;
}

.profile-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  color: white;
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.profile-upload-btn:hover {
  background: #555;
  transform: scale(1.1);
}

.user-name-input {
  flex: 1;
  max-width: 250px;
  margin-bottom: 0;
}

.save-profile-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #333;
  background: white;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.save-profile-btn:hover {
  background: #333;
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .button-group {
    max-width: 100%;
    margin-top: 20px;
    gap: 12px;
  }

  button {
    padding: 12px 24px;
    font-size: 15px;
  }

  .profile-section {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .profile-container {
    gap: 12px;
  }

  .profile-image-wrapper {
    width: 50px;
    height: 50px;
  }

  .profile-image {
    width: 50px;
    height: 50px;
  }

  .profile-upload-btn {
    width: 20px;
    height: 20px;
  }

  .profile-upload-btn svg {
    width: 12px;
    height: 12px;
  }

  .user-name-input {
    max-width: 200px;
    font-size: 14px;
    padding: 12px;
  }

  .save-profile-btn {
    width: 50px;
    height: 50px;
  }

  .save-profile-btn svg {
    width: 20px;
    height: 20px;
  }

  input {
    padding: 12px;
    font-size: 15px;
  }

  .input-group {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .button-group {
    gap: 10px;
  }

  button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .profile-image-wrapper {
    width: 45px;
    height: 45px;
  }

  .profile-image {
    width: 45px;
    height: 45px;
  }

  .user-name-input {
    max-width: 150px;
    font-size: 13px;
    padding: 10px;
  }

  .save-profile-btn {
    width: 45px;
    height: 45px;
  }

  .save-profile-btn svg {
    width: 18px;
    height: 18px;
  }
}