/* ============================================================
   PROFILE MODALS (Mess Rules, Support, Edit Profile, Change Password)
   ============================================================ */

/* ============================================================
   MESS RULES (Desktop Modal & Shared Base Styles)
   ============================================================ */
.mess-rules-modal-content {
  max-width: 520px;
  width: 92%;
  max-height: 88vh;
  border-radius: 20px;
  background: #ffffff;
  padding: 0;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mess-rules-mobile-topbar {
  display: none;
}

.mess-rules-modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.mess-rules-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.mess-rules-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px;
  letter-spacing: -0.015em;
}

.mess-rules-modal-sub {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
}

.mess-rules-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mess-rules-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

.mess-rules-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

/* Onboarding style rules list */
#messRulesModal .join-rules-wrapper {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

#messRulesModal .join-rules-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

#messRulesModal .rule-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 1px 0 !important;
}

#messRulesModal .rule-dot {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  border-radius: 50% !important;
  background-color: #10b981 !important;
  margin-top: 6px !important;
  flex-shrink: 0 !important;
}

#messRulesModal .rule-text {
  font-size: 0.86rem !important;
  color: #334155 !important;
  line-height: 1.40 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  font-family: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif !important;
  word-break: break-word !important;
}

/* In-Body Title Banner for Mess Rules (Minimal Ash B&W Style) */
.mess-rules-body-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  flex-shrink: 0 !important;
}

.mess-rules-banner-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.mess-rules-banner-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.mess-rules-banner-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
  gap: 2px !important;
}

.mess-rules-banner-tag {
  display: none !important;
}

.mess-rules-banner-title {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mess-rules-banner-sub {
  font-size: 0.76rem !important;
  color: #64748B !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 769px) {
  .mess-rules-body-header {
    display: none !important;
  }
}

.mess-rules-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
  flex-shrink: 0;
}

.mess-rules-confirm-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mess-rules-confirm-btn:hover {
  background: #047857;
}

/* ============================================================
   MESS RULES (Mobile Full Page View)
   ============================================================ */
@media (max-width: 768px) {
  #messRulesModal.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  #messRulesModal.modal-overlay.active {
    display: flex !important;
    flex-direction: column !important;
  }

  #messRulesModal .mess-rules-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .mess-rules-mobile-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: max(14px, env(safe-area-inset-top, 14px)) 16px 14px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #F1F5F9 !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
  }

  .mess-rules-back-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    transition: background 0.15s ease !important;
  }

  .mess-rules-back-btn:active {
    background: #E2E8F0 !important;
  }

  .mess-rules-mobile-page-title {
    font-size: 1.10rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 !important;
    letter-spacing: -0.015em !important;
  }

  .mess-rules-modal-header {
    display: none !important;
  }

  .mess-rules-modal-footer {
    display: none !important;
  }

  .mess-rules-modal-body {
    background: #ffffff !important;
    padding: 14px 14px max(24px, env(safe-area-inset-bottom, 24px)) 14px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }

  #messRulesModal .join-rules-wrapper {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 14px !important;
    box-sizing: border-box !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }

  #messRulesModal .join-rules-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  #messRulesModal .rule-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 1px 0 !important;
  }

  #messRulesModal .rule-dot {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    border-radius: 50% !important;
    background-color: #10b981 !important;
    margin-top: 6px !important;
    flex-shrink: 0 !important;
  }

  #messRulesModal .rule-text {
    font-size: 0.86rem !important;
    color: #334155 !important;
    line-height: 1.40 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    font-family: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif !important;
    word-break: break-word !important;
  }
}

/* Dark Theme Support */
body.dark-theme #messRulesModal.modal-overlay,
[data-theme="dark"] #messRulesModal.modal-overlay,
body.dark-theme #messRulesModal .mess-rules-modal-content,
[data-theme="dark"] #messRulesModal .mess-rules-modal-content,
body.dark-theme .mess-rules-mobile-topbar,
[data-theme="dark"] .mess-rules-mobile-topbar,
body.dark-theme .mess-rules-modal-header,
[data-theme="dark"] .mess-rules-modal-header,
body.dark-theme .mess-rules-modal-body,
[data-theme="dark"] .mess-rules-modal-body,
body.dark-theme .mess-rules-modal-footer,
[data-theme="dark"] .mess-rules-modal-footer {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-theme .mess-rules-mobile-page-title,
[data-theme="dark"] .mess-rules-mobile-page-title,
body.dark-theme .mess-rules-modal-title,
[data-theme="dark"] .mess-rules-modal-title {
  color: #f8fafc !important;
}

body.dark-theme .mess-rules-modal-sub,
[data-theme="dark"] .mess-rules-modal-sub {
  color: #94A3B8 !important;
}

body.dark-theme .mess-rules-back-btn,
[data-theme="dark"] .mess-rules-back-btn,
body.dark-theme .mess-rules-close-btn,
[data-theme="dark"] .mess-rules-close-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-theme #messRulesModal .join-rules-wrapper,
[data-theme="dark"] #messRulesModal .join-rules-wrapper {
  background-color: rgba(30, 41, 59, 0.7) !important;
  border-color: #334155 !important;
}

body.dark-theme #messRulesModal .rule-text,
[data-theme="dark"] #messRulesModal .rule-text {
  color: #e2e8f0 !important;
}

body.dark-theme .mess-rules-body-header,
[data-theme="dark"] .mess-rules-body-header {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}

body.dark-theme .mess-rules-banner-icon,
[data-theme="dark"] .mess-rules-banner-icon {
  background: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}

body.dark-theme .mess-rules-banner-tag,
[data-theme="dark"] .mess-rules-banner-tag {
  display: none !important;
}

body.dark-theme .mess-rules-banner-title,
[data-theme="dark"] .mess-rules-banner-title {
  color: #F8FAFC !important;
}

body.dark-theme .mess-rules-banner-sub,
[data-theme="dark"] .mess-rules-banner-sub {
  color: #94A3B8 !important;
}

/* ============================================================
   CONTACT SUPPORT MODAL (Desktop Dialog & Mobile Bottom Sheet)
   ============================================================ */
.support-modal-dialog {
  max-width: 440px;
  width: 92%;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px 22px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  position: relative;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.support-modal-drag-indicator {
  display: none;
}

.support-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 5;
}

.support-modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

.support-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.support-header-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.support-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.support-header-sub {
  font-size: 0.83rem;
  color: #64748B;
  margin: 0;
}

.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.support-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.support-card-report:hover {
  border-color: #7C3AED;
  background: #F5F3FF;
}

.support-card-wa:hover {
  border-color: #25D366;
  background: #F0FDF4;
}

.support-card-blue:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.support-channel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-channel-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-channel-icon-box.icon-purple {
  background: #EDE9FE;
  color: #7C3AED;
  box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.25);
}

.support-channel-icon-box.icon-green {
  background: #DCFCE7;
  color: #15803D;
}

.support-channel-icon-box.icon-blue {
  background: #DBEAFE;
  color: #1D4ED8;
}

.support-channel-text {
  display: flex;
  flex-direction: column;
}

.support-channel-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-channel-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0F172A;
}

.support-badge-online {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 1px 6px;
  border-radius: 99px;
}

.support-channel-sub {
  font-size: 0.76rem;
  color: #64748B;
}

.support-channel-chevron {
  flex-shrink: 0;
}

.support-email-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-email-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-email-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-email-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-email-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  font-family: monospace;
}

.support-copy-btn {
  background: #ffffff;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.support-copy-btn:hover {
  border-color: #059669;
  color: #059669;
}

.support-actions-row {
  display: flex;
  gap: 10px;
}

.support-btn-close {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.support-btn-close:hover {
  background: #E2E8F0;
}

.support-btn-help {
  flex: 1.3;
  height: 40px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.support-btn-help:hover {
  background: #D1FAE5;
}

/* Mobile Support Bottom Popup Sheet */
@media (max-width: 768px) {
  #supportModal.modal-overlay {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10010 !important;
  }

  .support-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 8px 16px max(16px, env(safe-area-inset-bottom, 16px)) 16px !important;
    margin: 0 !important;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18) !important;
    max-height: 85vh !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #supportModal.modal-overlay.active .support-modal-dialog {
    transform: translateY(0) !important;
  }

  .support-modal-drag-indicator {
    display: block !important;
    width: 38px !important;
    height: 4px !important;
    background: #CBD5E1 !important;
    border-radius: 99px !important;
    margin: 4px auto 10px auto !important;
  }

  .support-modal-close-btn {
    top: 12px !important;
    right: 14px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.80rem !important;
  }

  .support-modal-header {
    margin-bottom: 12px !important;
  }

  .support-header-icon-box {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    margin-bottom: 5px !important;
  }

  .support-header-icon-box svg {
    width: 16px !important;
    height: 16px !important;
  }

  .support-header-title {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
  }

  .support-header-sub {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    color: #64748B !important;
  }

  .support-channels-list {
    gap: 7px !important;
    margin-bottom: 10px !important;
  }

  /* Compact Card Heights on Mobile */
  .support-channel-card {
    padding: 8px 12px !important;
    border-radius: 11px !important;
    border-width: 1px !important;
  }

  .support-channel-left {
    gap: 9px !important;
  }

  /* Smaller Icons on Mobile */
  .support-channel-icon-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
  }

  .support-channel-icon-box svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Reduced Font Weight and Compact Text */
  .support-channel-title {
    font-size: 0.80rem !important;
    font-weight: 600 !important;
  }

  .support-channel-sub {
    font-size: 0.68rem !important;
    font-weight: 400 !important;
  }

  .support-badge-online {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
  }

  .support-channel-chevron {
    width: 14px !important;
    height: 14px !important;
  }

  /* Bottom Email Card Compact */
  .support-email-card {
    padding: 7px 11px !important;
    margin-bottom: 12px !important;
    border-radius: 11px !important;
  }

  .support-email-left {
    gap: 8px !important;
  }

  .support-email-icon-box {
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
  }

  .support-email-icon-box svg {
    width: 13px !important;
    height: 13px !important;
  }

  .support-email-label {
    font-size: 0.60rem !important;
    font-weight: 600 !important;
  }

  .support-email-val {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
  }

  .support-copy-btn {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
  }

  /* Action Buttons Compact */
  .support-actions-row {
    gap: 8px !important;
  }

  .support-btn-close,
  .support-btn-help {
    height: 34px !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
  }
}

/* Ensure no green outline anywhere on profile cards */
#page-profile .card {
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

/* ============================================================ */
/* EDIT PROFILE MODAL (Desktop & Shared Styles)                 */
/* ============================================================ */
.edit-profile-modal-dialog {
  max-width: 420px;
  width: 90%;
  border-radius: 22px;
  background: #ffffff;
  padding: 26px 22px 22px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  position: relative;
  box-sizing: border-box;
}

.edit-profile-drag-indicator {
  display: none;
}

.edit-profile-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.edit-profile-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg) scale(1.08);
}

.edit-profile-close-btn:active {
  transform: scale(0.92);
}

.edit-profile-header-area {
  text-align: center;
  margin-bottom: 20px;
}

.edit-profile-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.edit-profile-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.edit-profile-subtitle {
  font-size: 0.84rem;
  color: #64748B;
  margin: 0;
}

.edit-profile-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.edit-profile-field-group {
  display: flex;
  flex-direction: column;
}

.edit-profile-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.edit-profile-input {
  width: 100%;
  height: 42px;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  padding: 0 14px;
  box-sizing: border-box;
  background: #ffffff;
  color: #0F172A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.edit-profile-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.edit-profile-input.readonly {
  border-color: #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  cursor: not-allowed;
}

.edit-profile-actions-row {
  display: flex;
  gap: 10px;
}

.edit-profile-btn-cancel {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edit-profile-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.edit-profile-btn-save {
  flex: 1.4;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.edit-profile-btn-save:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.edit-profile-btn-save:active {
  transform: scale(0.98);
}

/* ============================================================ */
/* MOBILE BOTTOM POPUP SHEET (Edit Profile) - ONLY FOR MOBILE  */
/* ============================================================ */
@media (max-width: 768px) {
  #editProfileModal.modal-overlay {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100050 !important;
  }

  .edit-profile-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 8px 18px max(18px, env(safe-area-inset-bottom, 18px)) 18px !important;
    margin: 0 !important;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(100%) !important;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
    background: #ffffff !important;
  }

  #editProfileModal.modal-overlay.active .edit-profile-modal-dialog {
    transform: translateY(0) !important;
  }

  .edit-profile-drag-indicator {
    display: block !important;
    width: 38px !important;
    height: 4px !important;
    background: #CBD5E1 !important;
    border-radius: 99px !important;
    margin: 4px auto 14px auto !important;
  }

  .edit-profile-close-btn {
    top: 14px !important;
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.80rem !important;
  }

  .edit-profile-header-area {
    margin-bottom: 14px !important;
  }

  .edit-profile-icon-box {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    margin: 0 auto 8px !important;
  }

  .edit-profile-icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }

  .edit-profile-title {
    font-size: 1.05rem !important;
  }

  .edit-profile-subtitle {
    font-size: 0.78rem !important;
  }

  .edit-profile-form-body {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .edit-profile-label {
    font-size: 0.80rem !important;
    margin-bottom: 5px !important;
  }

  .edit-profile-input {
    height: 40px !important;
    font-size: 0.90rem !important;
  }

  .edit-profile-actions-row {
    gap: 8px !important;
  }

  .edit-profile-btn-cancel,
  .edit-profile-btn-save {
    height: 38px !important;
    font-size: 0.84rem !important;
  }
}


/* ============================================================ */
/* CHANGE PASSWORD MODAL (Desktop & Shared Styles)              */
/* ============================================================ */
.change-password-modal-dialog {
  max-width: 440px;
  width: 92%;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px 22px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  position: relative;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.change-password-drag-indicator {
  display: none;
}

.change-password-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 5;
}

.change-password-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

.change-password-header-area {
  text-align: center;
  margin-bottom: 20px;
}

.change-password-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.change-password-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.change-password-subtitle {
  font-size: 0.83rem;
  color: #64748B;
  margin: 0;
}

.change-password-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.change-password-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.change-password-input {
  width: 100% !important;
  height: 44px !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.change-password-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
  outline: none;
}

.change-password-actions-row {
  display: flex;
  gap: 10px;
}

.change-password-btn-cancel {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.change-password-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.change-password-btn-save {
  flex: 1.4;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.change-password-btn-save:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.change-password-btn-save:active {
  transform: scale(0.98);
}

/* ============================================================ */
/* MOBILE BOTTOM POPUP SHEET (Change Password) - LIKE SUPPORT   */
/* ============================================================ */
@media (max-width: 768px) {
  #changePasswordModal.modal-overlay {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10010 !important;
  }

  .change-password-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 8px 18px max(18px, env(safe-area-inset-bottom, 18px)) 18px !important;
    margin: 0 !important;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18) !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
    background: #ffffff !important;
  }

  #changePasswordModal.modal-overlay.active .change-password-modal-dialog {
    transform: translateY(0) !important;
  }

  .change-password-drag-indicator {
    display: block !important;
    width: 38px !important;
    height: 4px !important;
    background: #CBD5E1 !important;
    border-radius: 99px !important;
    margin: 4px auto 14px auto !important;
  }

  .change-password-close-btn {
    top: 12px !important;
    right: 14px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.80rem !important;
  }

  .change-password-header-area {
    margin-bottom: 14px !important;
  }

  .change-password-icon-box {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    margin: 0 auto 6px !important;
  }

  .change-password-icon-box svg {
    width: 18px !important;
    height: 18px !important;
  }

  .change-password-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
  }

  .change-password-subtitle {
    font-size: 0.78rem !important;
    color: #64748B !important;
  }

  .change-password-form-body {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .change-password-label {
    font-size: 0.80rem !important;
    margin-bottom: 5px !important;
  }

  .change-password-input {
    height: 40px !important;
    font-size: 0.90rem !important;
  }

  .change-password-actions-row {
    gap: 8px !important;
  }

  .change-password-btn-cancel,
  .change-password-btn-save {
    height: 38px !important;
    font-size: 0.84rem !important;
  }
}
