
/* ── Profile detail pages ── */
.pmo-prof-page { padding: 0 0 100px; }

.pmo-prof-form { padding: 16px; }

.pmo-prof-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pmo-prof-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB347, #FF6B6B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.pmo-prof-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pmo-prof-avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.pmo-prof-btn-sm {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--pmo-border);
  background: var(--pmo-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.pmo-prof-btn-sm.primary { background: var(--pmo-red); border-color: var(--pmo-red); color: #fff; }
.pmo-prof-btn-sm.danger { color: var(--pmo-red); border-color: #FFCDD2; }

.pmo-prof-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pmo-prof-phone-row { display: flex; gap: 8px; }
.pmo-prof-phone-row .pmo-input:first-child { max-width: 88px; flex-shrink: 0; }

.pmo-prof-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.pmo-prof-badge.verified { background: #E8F8EF; color: #1E8449; }
.pmo-prof-badge.unverified { background: #FFF3E0; color: #E65100; }

.pmo-prof-actions {
  display: flex;
  gap: 10px;
  padding: 16px;
  position: sticky;
  bottom: 72px;
  background: var(--pmo-white);
  border-top: 1px solid var(--pmo-border);
  z-index: 10;
}

.pmo-prof-actions .pmo-btn-primary { flex: 1; }
.pmo-prof-actions .pmo-prof-btn-cancel {
  flex: 1;
  padding: 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  background: var(--pmo-white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.pmo-prof-alert {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.pmo-prof-alert.show { display: block; }
.pmo-prof-alert.error { background: #FFF0F0; color: var(--pmo-red); }
.pmo-prof-alert.success { background: #E8F8EF; color: #1E8449; }
.pmo-prof-alert.info { background: #E3F2FD; color: #1565C0; }

.pmo-prof-loading {
  opacity: 0.6;
  pointer-events: none;
}

.pmo-save-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pmo-save-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pmo-save-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: var(--pmo-radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  min-width: 220px;
}

.pmo-save-overlay-card .pmo-loading {
  width: 28px;
  height: 28px;
  border-width: 3px;
  border-color: rgba(228, 0, 43, 0.2);
  border-top-color: var(--pmo-red);
  margin-right: 0;
}

.pmo-save-overlay-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--pmo-text);
}

.pmo-address-card {
  margin: 12px 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  position: relative;
}

.pmo-address-card.default { border-color: var(--pmo-red); background: #FFF8F9; }

.pmo-address-default-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pmo-red);
  text-transform: uppercase;
}

.pmo-address-card h4 { font-size: 15px; margin-bottom: 4px; padding-right: 60px; }
.pmo-address-card p { font-size: 13px; color: var(--pmo-muted); line-height: 1.45; margin-bottom: 10px; }

.pmo-address-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pmo-pay-card {
  margin: 12px 16px;
  padding: 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pmo-pay-card.default { border-color: var(--pmo-red); }
.pmo-pay-brand {
  width: 48px;
  height: 32px;
  background: var(--pmo-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--pmo-red);
}

.pmo-pay-info { flex: 1; }
.pmo-pay-info strong { display: block; font-size: 15px; }
.pmo-pay-info span { font-size: 12px; color: var(--pmo-muted); }

.pmo-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pmo-border);
  gap: 12px;
}

.pmo-toggle-row:last-child { border-bottom: none; }

.pmo-toggle-label strong { display: block; font-size: 14px; font-weight: 600; }
.pmo-toggle-label small { display: block; font-size: 11px; color: var(--pmo-muted); margin-top: 2px; line-height: 1.35; }

.pmo-toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #CCC;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.pmo-toggle.on { background: var(--pmo-red); }
.pmo-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pmo-toggle.on::after { transform: translateX(20px); }

.pmo-toggle.disabled { opacity: 0.5; cursor: not-allowed; }

.pmo-toggle-section {
  margin: 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  overflow: hidden;
}

.pmo-toggle-section-title {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pmo-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--pmo-bg);
}

.pmo-strength {
  height: 4px;
  background: var(--pmo-border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.pmo-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.2s, background 0.2s;
}

.pmo-ref-box-inline {
  margin: 16px;
  padding: 16px;
  background: var(--pmo-bg);
  border-radius: var(--pmo-radius);
  text-align: center;
}

.pmo-ref-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--pmo-red);
  margin: 8px 0 12px;
}

.pmo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px;
}

.pmo-stat-box {
  background: var(--pmo-bg);
  border-radius: var(--pmo-radius);
  padding: 12px;
  text-align: center;
}

.pmo-stat-box .num { font-size: 20px; font-weight: 800; color: var(--pmo-red); }
.pmo-stat-box .lbl { font-size: 11px; color: var(--pmo-muted); margin-top: 2px; }

.pmo-legal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pmo-border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 15px;
}

.pmo-legal-link:last-child { border-bottom: none; }

.pmo-delete-warning {
  margin: 16px;
  padding: 16px;
  background: #FFF0F0;
  border: 1.5px solid #FFCDD2;
  border-radius: var(--pmo-radius);
  color: #B71C1C;
  font-size: 13px;
  line-height: 1.5;
}

.pmo-delete-warning h4 { font-size: 15px; margin-bottom: 8px; color: #C62828; }

.pmo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.pmo-modal-overlay.open { opacity: 1; visibility: visible; }

.pmo-modal {
  background: var(--pmo-white);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.pmo-modal h3 { font-size: 18px; margin-bottom: 8px; }
.pmo-modal p { font-size: 14px; color: var(--pmo-muted); margin-bottom: 20px; line-height: 1.5; }

.pmo-modal-actions { display: flex; gap: 10px; }
.pmo-modal-actions button { flex: 1; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; border: none; }
.pmo-modal-actions .cancel { background: var(--pmo-bg); color: var(--pmo-text); }
.pmo-modal-actions .confirm { background: var(--pmo-red); color: #fff; }
.pmo-modal-actions .confirm.danger { background: #C62828; }

.pmo-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--pmo-white);
}

.pmo-pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.pmo-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pmo-border);
  background: var(--pmo-white);
}

.pmo-pin-dot.filled { background: var(--pmo-red); border-color: var(--pmo-red); }

.pmo-add-fab {
  position: fixed;
  bottom: 88px;
  right: calc(50% - var(--pmo-max) / 2 + 16px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pmo-red);
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(228,0,43,0.4);
  z-index: 50;
  line-height: 1;
}

@media (max-width: 430px) {
  .pmo-add-fab { right: 16px; }
}

.pmo-verification-banner {
  margin: 12px 16px;
  padding: 12px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  font-size: 13px;
}

.pmo-verification-banner button {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--pmo-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.pmo-wallet-option {
  margin: 12px 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pmo-section-block { margin: 16px; }
.pmo-section-block h3 { font-size: 16px; margin-bottom: 12px; }

.pmo-promo-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--pmo-border);
  font-size: 14px;
}

.pmo-promo-item:last-child { border-bottom: none; }
.pmo-promo-item .code { font-weight: 700; color: var(--pmo-red); }
.pmo-promo-item .desc { font-size: 12px; color: var(--pmo-muted); }

.pmo-set-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  background: var(--pmo-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--pmo-text);
  text-align: left;
}

.pmo-set-option.active {
  border-color: var(--pmo-red);
  color: var(--pmo-red);
  background: #FFF8F9;
}

.pmo-legal-updated { font-size: 12px; color: var(--pmo-muted); padding: 8px 16px 0; }

.pmo-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.pmo-checkbox-row input { margin-top: 3px; accent-color: var(--pmo-red); }

.pmo-session-item {
  margin: 12px 16px;
  padding: 14px;
  border: 1px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  font-size: 13px;
}

.pmo-session-item strong { display: block; margin-bottom: 2px; }
.pmo-session-item span { color: var(--pmo-muted); font-size: 12px; }

.pmo-map-hint {
  font-size: 12px;
  color: var(--pmo-muted);
  margin-top: 4px;
}

.pmo-coords-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
