/* ==========================================================================
   WINGPAL - PROFILE & SETTINGS CSS
   Matches official WingPal design specifications
   ========================================================================== */

:root {
  --teal-primary: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #F0FDFA;
  --teal-border: #99F6E4;
  --teal-pill-bg: #CCFBF1;
  --orange-primary: #EA580C;
  --orange-light: #FFF7ED;
  --orange-border: #FFEDD5;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --green-600: #16A34A;
  --green-50: #F0FDF4;
  --green-border: #BBF7D0;
  --red-500: #EF4444;
  --red-50: #FEF2F2;
  --red-border: #FECACA;
  --card-radius: 18px;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

body.profile-settings-body {
  background-color: #F8FAFC;
  color: var(--slate-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Nav header overrides */
.profile-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.dash-nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dash-nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-nav-link:hover {
  color: var(--teal-primary);
}

.dash-nav-link.active {
  color: var(--slate-900);
  font-weight: 700;
}

.nav-counter-badge {
  background: var(--orange-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
}

.location-pin-icon {
  width: 16px;
  height: 16px;
  color: var(--teal-primary);
}

.chevron-down-icon {
  width: 14px;
  height: 14px;
  color: var(--slate-500);
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-btn .bell-icon {
  width: 20px;
  height: 20px;
}

.notification-badge-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 8px;
  height: 8px;
  background-color: var(--orange-primary);
  border-radius: 50%;
  border: 2px solid #fff;
}

.user-avatar-link {
  display: block;
}

.user-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E2E8F0;
}

/* 3-Column Layout */
.profile-main-layout {
  max-width: 1320px;
  margin: 32px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.profile-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-profile-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}

.sidebar-user-block {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
}

.sidebar-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-primary);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.avatar-edit-badge:hover {
  background: var(--teal-dark);
  transform: scale(1.08);
}

.sidebar-user-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px;
}

.sidebar-user-email {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0 0 12px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.verified-pill svg {
  width: 13px;
  height: 13px;
}

/* Sidebar Menu */
.sidebar-menu-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px 80px;
  position: relative;
  z-index: 2;
}

.sidebar-menu-item {
  margin-bottom: 4px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.15s ease;
}

.sidebar-menu-link svg {
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  transition: color 0.15s ease;
}

.sidebar-menu-link:hover {
  background: var(--slate-50);
  color: var(--teal-primary);
}

.sidebar-menu-link:hover svg {
  color: var(--teal-primary);
}

.sidebar-menu-link.active {
  background: var(--teal-light);
  color: var(--teal-primary);
  font-weight: 700;
}

.sidebar-menu-link.active svg {
  color: var(--teal-primary);
}

/* Sidebar bottom curved wave */
.sidebar-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sidebar-bottom-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   CENTER MAIN CONTENT
   ========================================================================== */
.profile-content-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-page-header {
  margin-bottom: 6px;
}

.profile-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.profile-page-subtitle {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
}

/* Content Cards */
.profile-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-header-icon svg {
  width: 18px;
  height: 18px;
}

.card-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 3px;
}

.card-subheading {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid var(--teal-primary);
  color: var(--teal-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.card-action-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.card-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Profile Info Grid */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 6px;
}

.info-field-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: capitalize;
}

.field-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  word-break: break-word;
}

/* Role & Access Card */
.role-access-card {
  border-left: 4px solid var(--teal-primary);
}

.role-display-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}

.role-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFF7ED;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-icon-circle svg {
  width: 22px;
  height: 22px;
}

.role-info-text {
  flex: 1;
}

.current-role-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0 0 3px;
}

.current-role-badge {
  color: var(--teal-primary);
  font-weight: 800;
}

.current-role-desc {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.4;
}

/* Payment Methods Card */
.payment-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.payment-card-row:hover {
  background: #FFFFFF;
  border-color: var(--teal-primary);
}

.payment-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-brand-badge {
  background: #1E3A8A;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-digits-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
}

.default-pill {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.payment-chevron {
  color: var(--slate-400);
}

.payment-chevron svg {
  width: 16px;
  height: 16px;
}

.add-payment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--teal-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.add-payment-link:hover {
  color: var(--teal-dark);
}

.add-payment-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   RIGHT SIDEBAR
   ========================================================================== */
.profile-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-widget-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.status-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.status-shield-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-shield-icon svg {
  width: 22px;
  height: 22px;
}

.status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value-text {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
}

.status-desc-text {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.45;
  margin: 0;
}

/* Right Role Card */
.role-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.role-widget-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFF7ED;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-widget-icon svg {
  width: 20px;
  height: 20px;
}

.role-widget-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
}

.role-widget-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
}

.role-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.4;
}

.role-perk-check {
  color: var(--teal-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.role-perk-check svg {
  width: 15px;
  height: 15px;
}

/* Quick Actions Card */
.quick-actions-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.quick-actions-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 14px;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--slate-50);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.quick-action-row:hover {
  background: #FFFFFF;
  border-color: var(--teal-primary);
}

.quick-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-icon svg {
  width: 14px;
  height: 14px;
}

.quick-action-texts {
  display: flex;
  flex-direction: column;
}

.quick-action-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
}

.quick-action-sublabel {
  font-size: 11px;
  color: var(--slate-500);
}

.quick-action-arrow {
  color: var(--slate-400);
}

.quick-action-arrow svg {
  width: 14px;
  height: 14px;
}

.sign-out-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #FCA5A5;
  color: #DC2626;
  font-size: 14px;
  font-weight: 700;
  padding: 11px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sign-out-btn:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

.sign-out-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SWITCH ROLE MODAL (Exact match to media_1794276762543_c397569d.jpg)
   ========================================================================== */
.switch-role-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
}

.switch-role-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.switch-role-modal {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  width: 100%;
  max-width: 520px;
  padding: 32px 30px 26px;
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-role-modal-backdrop.active .switch-role-modal {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--slate-700);
  background: var(--slate-100);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-header-block {
  margin-bottom: 24px;
  padding-right: 24px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--slate-600);
  margin: 0;
}

.modal-roles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.role-selection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--slate-200);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.role-selection-card:hover {
  border-color: #CBD5E1;
  background: var(--slate-50);
}

.role-selection-card.selected {
  border-color: var(--teal-primary);
  background: #F0FDFA;
  box-shadow: 0 0 0 1px var(--teal-primary);
}

.role-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.role-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFEDD5;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-avatar-circle svg {
  width: 22px;
  height: 22px;
}

.role-card-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.role-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

.role-card-desc {
  font-size: 13px;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.35;
}

.role-status-badge {
  background: var(--teal-pill-bg);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

.role-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.role-selection-card.selected .role-radio-circle {
  border-color: var(--teal-primary);
  background: #FFFFFF;
}

.role-selection-card.selected .role-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-primary);
}

/* Info Notice Box */
.role-info-notice {
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #0F766E;
  font-weight: 500;
}

.notice-info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #CCFBF1;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
}

/* Modal Action Buttons */
.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-modal-cancel {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-modal-continue-action {
  background: var(--teal-primary);
  border: 1.5px solid var(--teal-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-modal-continue-action:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-modal-continue-action svg {
  width: 16px;
  height: 16px;
}

.modal-footer-caption {
  text-align: center;
  font-size: 12px;
  color: var(--slate-500);
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .profile-main-layout {
    grid-template-columns: 240px 1fr;
  }
  .profile-sidebar-right {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-main-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar-right {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .profile-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sidebar-avatar-img {
  cursor: pointer;
}

.profile-photo-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  color: #0f172a;
  background: #fff;
}

.profile-photo-dialog::backdrop {
  background: #0f172a80;
}

.profile-photo-dialog h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.profile-photo-dialog label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.profile-photo-dialog input {
  max-width: 100%;
}

#profilePhotoDialog {
  width: min(380px, calc(100% - 24px));
  max-height: 90dvh;
  padding: clamp(16px, 5vw, 22px);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 16px 42px rgb(9 39 52 / 20%);
}

.profile-photo-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-photo-heading span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  background: #e9f9f6;
  color: #086f68;
}

.profile-photo-heading svg {
  width: 20px;
  height: 20px;
}

#profilePhotoTitle {
  margin: 0;
  font-size: 19px;
}

.profile-photo-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 24px auto;
  border-radius: 50%;
  overflow: hidden;
  outline: 1px solid #dce7e9;
  border: 4px solid #fff;
  background: #e9f9f6;
  color: #086f68;
  font-size: 28px;
  font-weight: 700;
}

#profilePhotoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profilePhotoChoose {
  width: 100%;
  min-height: 44px;
  border: 1px dashed #0f766e;
  border-radius: 12px;
  background: #e9f9f6;
  color: #086f68;
  font-weight: 700;
}

#profilePhotoStatus {
  margin: 8px 0 0;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #53677a;
}

#profilePhotoDialog .profile-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border-top: 1px solid #dce7e9;
  padding-top: 14px;
  margin-top: 20px;
}

#profilePhotoCancel {
  background: #fff;
  color: #334155;
}

#profilePhotoSave:enabled {
  box-shadow: 0 4px 10px rgb(15 118 110 / 24%);
}

.profile-photo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.profile-photo-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
}

#profilePhotoSave {
  background: #0f766e;
  color: #fff;
}

#profilePhotoSave:disabled {
  background: #e2e8f0;
  color: #475569;
}

.edit-profile-form {
  display: grid;
  gap: 12px;
}

.edit-profile-form label:not([hidden]) {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 14px;
}

.edit-profile-form input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

.edit-profile-form .profile-photo-actions {
  margin-top: 0;
}

.edit-profile-form button[type="submit"]:enabled {
  color: #fff;
  background: #0f766e;
}

.edit-profile-form button:disabled {
  opacity: .55;
}

#profileSettingsContent {
  display: grid;
  gap: 12px;
}

#profileSettingsDialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(85vh, 85dvh);
  overflow: hidden;
}

.profile-settings-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  margin-inline: -4px;
}

.profile-settings-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

#profileSettingsStatus {
  margin: 0 0 8px;
  font-size: 14px;
}

#profileSettingsStatus:empty {
  margin: 0;
}

#profileSettingsActions {
  margin-top: 0;
}

#closeProfileSettings {
  background: #fff;
  color: #334155;
}

#profileSettingsActions .profile-settings-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  box-shadow: 0 3px 8px rgb(15 118 110 / 20%);
}

#profileSettingsActions .profile-settings-primary:disabled {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #475569;
  box-shadow: none;
}

@media (max-width: 480px) {
  #profileSettingsActions .profile-settings-primary {
    flex: 1;
  }
}

#profileSettingsContent label {
  margin: 0;
}

#profileSettingsContent input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

#profileSettingsContent .card-action-btn {
  width: fit-content;
  min-height: 44px;
  flex-shrink: 0;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}

#paymentSummary {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.saved-card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
}

.saved-card-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  object-fit: contain;
  border-radius: 5px;
}

span.saved-card-icon {
  background: #eef3f7;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}

#editPublicProfile {
  width: 100%;
  text-align: left;
  font: inherit;
}

#editPublicProfile[hidden] {
  display: none;
}

#publicProfileDialog {
  box-sizing: border-box;
  padding: clamp(14px, 5vw, 22px);
  overflow-y: auto;
}

#publicProfileTitle {
  font-size: 19px;
}

.public-profile-preview {
  background: #edf9f7;
  border: 1px solid #d8e5e8;
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.public-profile-caption {
  margin: 0 0 10px;
  color: #086d65;
  font-size: 12px;
  font-weight: 700;
}

.public-profile-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-profile-identity img,
.public-profile-initials {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.public-profile-initials:not([hidden]) {
  display: grid;
  place-items: center;
  background: white;
  color: #086d65;
  font-weight: 700;
}

.public-profile-preview [data-preview="city"],
.public-profile-note {
  color: #516474;
  font-size: 13px;
}

.public-profile-preview [data-preview="bio"] {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

#publicProfileDialog textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

#publicProfileDialog .profile-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
}

#publicProfileDialog button[type="submit"]:enabled {
  box-shadow: 0 4px 10px rgb(15 118 110 / 24%);
}

#setPalPreferences {
  width: 100%;
  text-align: left;
  font: inherit;
}

#setPalPreferences[hidden] {
  display: none;
}

#palPreferencesDialog {
  box-sizing: border-box;
  padding: clamp(14px, 5vw, 22px);
  overflow-y: auto;
}

#palPreferencesTitle {
  margin: 0;
  font-size: 19px;
}

.pal-preferences-note {
  margin: 8px 0 0;
  color: #516474;
  font-size: 13px;
}

#palPreferencesDialog form {
  margin-top: 18px;
}

#palPreferencesDialog fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

#palPreferencesDialog legend {
  font-weight: 700;
}

.pal-interest-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

#palPreferencesDialog .pal-interest-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 6px;
  border: 1px solid #d5e3e6;
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#palPreferencesDialog .pal-interest-options label:has(:checked) {
  background: #e7f8f4;
  border-color: #086d65;
}

.pal-interest-options input {
  margin: 0;
  flex: none;
  accent-color: #087970;
}

.pal-interest-options svg,
.pal-distance-control svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #086d65;
}

.pal-distance-control {
  position: relative;
}

.pal-distance-control select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 8px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
}

.pal-distance-control svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pal-distance-control svg:first-child { inset-inline-start: 12px; }
.pal-distance-control svg:last-child { inset-inline-end: 12px; }

#palPreferencesDialog .profile-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  padding-top: 13px;
  border-top: 1px solid #d5e3e6;
}

#palPreferencesDialog button[type="submit"]:enabled {
  background: #087970;
  color: #fff;
  box-shadow: 0 4px 10px rgb(8 121 112 / 25%);
}

#palPreferencesDialog button[type="submit"]:disabled {
  background: #e7f8f4;
  color: #516474;
}
