/* ==========================================================================
   Profile Popup — styling v3 (hero photo + avatar + white footer bar)
   Tone warna: teal (--pp-teal) & coral (--pp-coral)

   linear-gradient(135deg, rgba(89, 190, 178, .82), rgba(237, 137, 112, .82));
   ========================================================================== */

:root {
  --pp-teal: #59BEB2;
  --pp-coral: #ED8970;
  --pp-panel-light: #ffffff;
  --pp-radius: 32px;
}

.pp-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(89, 190, 178, .82), rgba(244, 241, 241, 0.82));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9999;
  padding: 24px;
  overflow-y: auto;
}

.pp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pp-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--pp-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  background: var(--pp-panel-light);
  transform: scale(.94) translateY(10px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
  margin: auto;
}

.pp-overlay.is-open .pp-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.pp-card-body {
  display: flex;
  flex-direction: column;
}

.pp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, .4);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  z-index: 10;
}

.pp-close:hover,
.pp-close:focus-visible {
  background: rgba(10, 10, 10, .6);
}

.pp-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Hero photo (atas) ---- */
.pp-hero-photo {
  position: relative;
  padding: 52px 26px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(to top, rgba(8, 14, 13, .78), rgba(8, 14, 13, 0) 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, var(--pp-teal), var(--pp-coral));
}

.pp-avatar-ring {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, var(--pp-teal), var(--pp-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pp-avatar-initials {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.pp-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

.pp-headline {
  margin: 0 0 14px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.pp-tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

/* ---- Footer bar (bawah, putih) ---- */
.pp-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px;
  background: var(--pp-panel-light);
}

.pp-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pp-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.pp-icon-badge:hover {
  border-color: var(--pp-teal);
  color: var(--pp-teal);
  transform: translateY(-2px);
}

.pp-icon-badge:focus-visible {
  outline: 2px solid var(--pp-teal);
  outline-offset: 2px;
}

.pp-icon-badge svg {
  width: 20px;
  height: 20px;
}

.pp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--pp-teal);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}

.pp-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pp-cta svg {
  width: 18px;
  height: 18px;
}

body.pp-lock-scroll {
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 420px) {
  .pp-hero-photo {
    min-height: 380px;
    padding: 44px 20px 32px;
  }

  .pp-footer-bar {
    justify-content: center;
  }

  .pp-cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pp-overlay,
  .pp-card {
    transition: none !important;
  }
}
