/* views/profil/profil.css */

.profil-wrap {
  padding-bottom: 100px;
}

.profil-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 24px 20px 90px;
  text-align: center;
  overflow: hidden;
}

.profil-hero::before,
.profil-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.profil-hero::before {
  width: 140px;
  height: 140px;
  top: -40px;
  left: -50px;
}
.profil-hero::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  right: -60px;
}

.profil-settings-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profil-avatar {
  width: 108px;
  height: 108px;
  margin: 12px auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.profil-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profil-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.profil-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
}

.profil-contact {
  font-size: 14px;
  color: rgba(43, 27, 16, 0.75);
  margin: 0;
}

.profil-menu-wrap {
  padding: 0 20px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.profil-menu + .profil-menu {
  margin-top: 16px;
}

.profil-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.profil-info-row:first-child {
  border-top: none;
}

.profil-info-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  flex: none;
  width: 90px;
}

.profil-info-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
  flex: 1;
}

.profil-logout-btn {
  width: 100%;
  max-width: 440px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #f3d3d3;
  color: var(--red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
}

.profil-menu {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 4px 18px;
  box-shadow: 0 16px 32px -22px rgba(43, 27, 16, 0.3);
}

.profil-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
}
.profil-menu-item:first-child {
  border-top: none;
}

.profil-menu-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.profil-menu-icon-logout {
  color: var(--red);
  border-color: #f3d3d3;
}
.profil-menu-icon-logout {
  color: var(--red);
}

.profil-menu-label {
  flex: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.profil-menu-logout .profil-menu-label {
  color: var(--red);
}

.profil-menu-chevron {
  font-size: 12px;
  color: var(--ink-soft);
}

.profil-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 16, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profil-confirm-overlay[hidden] { display: none; }

.profil-confirm-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.4);
}

.profil-confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f8e2e2;
  color: var(--red);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.profil-confirm-card h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.4;
}

.profil-confirm-yes {
  width: 100%;
  background: var(--red);
  border: 1.5px solid var(--red);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 13px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}
.profil-confirm-yes:disabled { opacity: 0.6; cursor: not-allowed; }

.profil-confirm-cancel {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px;
  cursor: pointer;
}
