/* =========================================================
   profile.css
   Dipakai untuk: profile.html (MAIN ONLY)
   Konsisten: Calistoga (judul) + Viga (konten)
   ========================================================= */

.profile-page {
  font-family: "Viga", sans-serif;
}

/* Title */
.profile-title {
  font-family: "Calistoga", serif;
  color: var(--primary);
  text-align: center;
  letter-spacing: 1px;
  margin: 1rem 0 1.8rem;
  font-size: 2.05rem;
  text-transform: uppercase;
}

/* Left card */
.p-card {
  border: 2px solid rgba(139, 30, 30, .28);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  text-align: center;
}

.p-avatar {
  width: 120px;
  height: 120px;
  margin: 4px auto 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(139, 30, 30, .35);
}

.p-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-name {
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.p-email {
  font-weight: 800;
  color: rgba(0, 0, 0, .65);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.p-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.6px solid rgba(139, 30, 30, .35);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  color: var(--primary);
  font-size: 0.78rem;
}

.p-actions {
  display: grid;
  gap: 10px;
}

/* Right panel */
.p-panel {
  border: 2px solid rgba(139, 30, 30, .18);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.p-section-title {
  font-family: "Calistoga", serif;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 1.15rem;
  margin: 0;
}

.p-label {
  font-weight: 900;
  color: #111;
  margin-bottom: 6px;
  display: block;
}

.p-input {
  border: 1.8px solid rgba(139, 30, 30, .35);
  border-radius: 10px;
  font-weight: 800;
}

.p-divider {
  border: none;
  border-top: 1.6px solid rgba(139, 30, 30, .22);
  margin: 16px 0;
}

/* =========================
   SELECT CHEVRON 
   ========================= */
.form-select.co-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* kasih ruang buat icon */
  padding-right: 44px;

  /* icon chevron custom */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

/* optional: kalau ada IE lama (boleh skip) */
.form-select.co-select::-ms-expand {
  display: none;
}

/* Password input with eye */
.p-pass {
  position: relative;
}

.p-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(139, 30, 30, .8);
  font-size: 16px;
}

/* Orders */
.p-orders {
  display: grid;
  gap: 10px;
}

.p-order {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 2px solid rgba(139, 30, 30, .18);
  background: #fff;
}

.p-order:hover {
  background: rgba(139, 30, 30, .05);
}

.po-id {
  font-weight: 900;
  color: #111;
}

.po-date {
  font-weight: 800;
  color: rgba(0, 0, 0, .65);
  font-size: 0.9rem;
}

.po-mid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.po-pill {
  border: 1.6px solid rgba(139, 30, 30, .25);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.78rem;
  color: #111;
}

.po-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.po-status {
  font-weight: 900;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.po-status.paid {
  color: #0a7a2a;
  background: rgba(10, 122, 42, .10);
  border: 1.6px solid rgba(10, 122, 42, .22);
}

.po-status.unpaid {
  color: var(--primary);
  background: rgba(139, 30, 30, .10);
  border: 1.6px solid rgba(139, 30, 30, .22);
}

/* Responsive */
@media (max-width: 575px) {
  .profile-title {
    font-size: 1.7rem;
  }

  .p-panel {
    padding: 14px;
  }

  .p-order {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .po-mid {
    justify-content: flex-start;
  }

  .po-right {
    justify-content: flex-start;
  }
}