/* === HEADER PROFIL === */
.header-profil {
  background: linear-gradient(135deg, var(--warna-sekunder) 0%, #16213E 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-profil::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.avatar-profil {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--warna-utama);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
}

.nama-profil-besar {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.telepon-profil {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

/* === KARTU STATISTIK === */
.baris-statistik-profil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.kartu-stat-profil {
  background: white;
  border: 1.5px solid var(--warna-batas);
  border-radius: var(--radius-medium);
  padding: 1.25rem;
  text-align: center;
}

.angka-stat {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--warna-utama);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.label-stat {
  font-size: 0.78rem;
  color: var(--warna-teks-muda);
  font-weight: 500;
}

/* === KARTU INFO PROFIL === */
.kartu-info-profil {
  background: white;
  border: 1.5px solid var(--warna-batas);
  border-radius: var(--radius-medium);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.item-info-profil {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--warna-batas);
  gap: 1rem;
}

.item-info-profil:last-child {
  border-bottom: none;
}

.item-info-profil label {
  font-size: 0.82rem;
  color: var(--warna-teks-muda);
  font-weight: 600;
  flex-shrink: 0;
}

.item-info-profil span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warna-teks);
  text-align: right;
}

/* === EDIT NAMA === */
.baris-edit-nama {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tombol-edit-nama {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--warna-utama);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-kecil);
  transition: var(--transisi);
  font-family: inherit;
}

.tombol-edit-nama:hover {
  background: var(--warna-aksen-muda);
}

.input-edit-nama {
  border: 1.5px solid var(--warna-utama);
  border-radius: var(--radius-kecil);
  padding: 4px 10px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  width: 160px;
}

/* === RIWAYAT PESANAN === */
.judul-seksi-profil {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kartu-pesanan {
  background: white;
  border: 1.5px solid var(--warna-batas);
  border-radius: var(--radius-medium);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: var(--transisi);
}

.kartu-pesanan:hover {
  border-color: var(--warna-utama);
  box-shadow: var(--bayangan-lembut);
}

.header-pesanan {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.625rem;
  gap: 0.5rem;
}

.nama-resto-pesanan {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--warna-teks);
}

.tanggal-pesanan {
  font-size: 0.75rem;
  color: var(--warna-teks-muda);
  white-space: nowrap;
}

.daftar-item-pesanan {
  font-size: 0.8rem;
  color: var(--warna-teks-muda);
  margin-bottom: 0.625rem;
  line-height: 1.5;
}

.footer-pesanan {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-pesanan {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--warna-utama);
}

.lencana-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-bulat);
  background: #DCFCE7;
  color: #166534;
}

/* === KOSONG RIWAYAT === */
.kosong-riwayat {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--warna-teks-muda);
  background: white;
  border: 1.5px solid var(--warna-batas);
  border-radius: var(--radius-medium);
}

.kosong-riwayat .ikon-kosong-besar {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.5;
}

/* === TOMBOL KELUAR PROFIL === */
.tombol-keluar-profil {
  display: block;
  width: 100%;
  background: transparent;
  color: #EF4444;
  border: 2px solid #EF4444;
  border-radius: var(--radius-bulat);
  padding: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transisi);
  text-align: center;
  margin-top: 1rem;
  font-family: inherit;
}

.tombol-keluar-profil:hover {
  background: #EF4444;
  color: white;
}

/* === RESPONSIF === */
@media (max-width: 576px) {
  .baris-statistik-profil {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .angka-stat {
    font-size: 1.5rem;
  }
}
