/* ── Profile Page Styles ── */
.profile-page {
  min-height: 72vh;
  padding: 1.1rem 0.7rem 2rem;
  background:
    radial-gradient(circle at 12% 8%, #ddf4e5 0%, transparent 30%),
    radial-gradient(circle at 88% 10%, #fff3d8 0%, transparent 24%),
    linear-gradient(140deg, #f6fbf7 0%, #f1f9f3 52%, #fbf8ef 100%);
  font-family: "DM Sans", sans-serif;
}

.profile-stack {
  width: min(100%, 540px);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.profile-card {
  border: 1px solid #e1e8e1;
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 87, 56, 0.06);
}

.profile-header-card { padding-top: 0.9rem; }

.profile-kicker {
  margin: 0 0 0.65rem;
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: #e2f3e8;
  color: #1a5f3d;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.profile-top { display: flex; align-items: center; gap: 0.7rem; }

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d5e8dc;
  background: #f6fbf8;
}

.profile-avatar.placeholder {
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1c5e3d;
  width: 62px;
  height: 62px;
  background: #eaf6ee;
  border-radius: 50%;
}

.profile-main h1 { margin: 0; color: #173f2d; font-size: 1.1rem; }
.profile-main p { margin: 0.2rem 0 0; color: #547264; font-size: 0.88rem; }

.profile-guest-top h3 { margin: 0.05rem 0 0.35rem; color: #173f2d; font-size: 1.2rem; }
.profile-guest-top p { margin: 0; color: #678072; font-size: 0.9rem; }

.profile-create-btn {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  background: linear-gradient(120deg, #1c8a4d 0%, #45b25f 100%);
}

.section-card { padding-top: 0.95rem; }
.section-title { margin: 0; color: #1f2e25; font-size: 1.08rem; display: flex; align-items: center; gap: 0.42rem; }

.wishlist-empty { margin: 0.75rem 0; text-align: center; color: #98a999; }
.wishlist-empty p { font-size: 1.05rem; font-weight: 700; color: #9daf9e; }

.wishlist-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.wishlist-list li { display: grid; grid-template-columns: 46px 1fr; gap: 0.55rem; align-items: center; }
.wishlist-list img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid #d6e4db; }
.wishlist-list p { margin: 0; font-weight: 700; color: #193a2a; font-size: 0.88rem; }
.wishlist-list span { font-size: 0.8rem; color: #5b6f62; }

.setting-row {
  margin-top: 0.58rem; width: 100%; border: 0; border-radius: 12px; background: #fbfefc; border: 1px solid #d7e7dd; padding: 0.7rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; text-align: left;
}
.setting-row .left { display: inline-flex; align-items: center; gap: 0.45rem; color: #193a2a; font-weight: 700; font-size: 0.95rem; }
.setting-row .right { color: #6f8678; font-size: 0.88rem; max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.switch { position: relative; width: 42px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #c6d7cc; border-radius: 999px; transition: background 0.2s ease; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.switch input:checked + .slider { background: #48a854; }
.switch input:checked + .slider::before { transform: translateX(18px); }

.account-login-btn {
  min-width: 108px; height: 44px; border: 0; border-radius: 999px; padding: 0 1.35rem; color: #fff;
  background: linear-gradient(120deg, #1c8a4d 0%, #45b25f 100%); font-size: 0.95rem; font-weight: 800; cursor: pointer;
}

@media (max-width: 640px) {
  .profile-page {
    padding: 0.85rem 0.5rem 1.35rem;
  }

  .profile-stack {
    width: 100%;
    gap: 0.75rem;
  }

  .profile-card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .profile-top {
    align-items: flex-start;
  }

  .profile-avatar,
  .profile-avatar.placeholder {
    width: 56px;
    height: 56px;
  }

  .profile-main h1 {
    font-size: 1rem;
  }

  .profile-main p {
    font-size: 0.84rem;
    word-break: break-word;
  }

  .profile-guest-top h3 {
    font-size: 1.05rem;
  }

  .profile-guest-top p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 0.98rem;
  }

  .wishlist-list {
    gap: 0.5rem;
  }

  .wishlist-list li {
    grid-template-columns: 42px 1fr;
  }

  .wishlist-list img {
    width: 42px;
    height: 42px;
  }

  .wishlist-list p {
    font-size: 0.84rem;
  }

  .wishlist-list span {
    font-size: 0.74rem;
  }

  .setting-row {
    padding: 0.72rem;
    gap: 0.5rem;
  }

  .setting-row .left {
    font-size: 0.88rem;
  }

  .setting-row .right {
    max-width: 50%;
    font-size: 0.8rem;
  }

  .account-login-btn {
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
  }
}
