/* ===== ACCOUNT PAGES (Profil Saya / Pengaturan) =====
   Mengikuti konsep desain utama: navy #2c3e50, biru aksen #3b82f6,
   Montserrat, kartu putih dengan shadow lembut. */

.account-page {
  max-width: 720px;
  margin: 0 auto 60px;
}

.account-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

/* ----- Header kartu profil (avatar + nama + join date) ----- */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-header-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.profile-join-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2c3e50;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 20px;
}

.profile-join-badge svg {
  width: 13px;
  height: 13px;
}

/* ----- Baris statistik ----- */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.profile-stat {
  text-align: center;
}

.profile-stat-number {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2px;
}

.profile-stat-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ----- Form ----- */
.profile-form-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.profile-form-title--danger {
  color: #ef4444;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  color: #2c3e50;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  opacity: 0.6;
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: 11px;
  color: #94a3b8;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-save-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: #2c3e50;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-profile:hover {
  background: #1a252f;
  transform: translateY(-1px);
}

.btn-save-profile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-save-profile svg {
  width: 15px;
  height: 15px;
}

/* ----- Toggle switch (preferensi notifikasi) ----- */
.settings-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.settings-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-toggle-text strong {
  display: block;
  font-size: 13.5px;
  color: #2c3e50;
  margin-bottom: 3px;
}

.settings-toggle-text p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: 0.25s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-slider {
  background-color: #3b82f6;
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* ----- Danger zone ----- */
.profile-card--danger {
  border: 1.5px solid #fecaca;
}

.danger-zone-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-delete-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-account:hover {
  background: #ef4444;
  color: white;
}

.btn-delete-account svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 600px) {
  .profile-card-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .profile-stat-number {
    font-size: 20px;
  }
}