/* Cashback Pro V36.8.19 — account/password dialog polish with theme-aware CTA. */
.profile-password-modal-card,
.logout-confirm-card {
  width: min(100%, 500px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  background: var(--bg-surface, var(--card-bg, #17243d));
  border: 1px solid var(--border-color, rgba(145,170,205,.35));
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.profile-password-modal-card .modal-head,
.logout-confirm-card .modal-head { margin-bottom: 16px; }
.profile-password-modal-card .profile-page-fields { padding: 0 !important; }
.profile-password-modal-card .form-group { margin-bottom: 14px; }
.profile-password-modal-card .auth-hint { color: var(--text-sub, #aebbd0); }
.profile-password-modal-card .profile-forgot-password-link,
#auth-forgot-view .profile-recovery-back {
  min-height: 34px;
  padding: 5px 0;
  color: var(--link-color, #91cfff);
  font-weight: 750;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
#auth-forgot-view .profile-recovery-back { display: inline-flex; align-items: center; margin: 0 0 8px; }
#auth-forgot-view .profile-recovery-back.hidden { display: none !important; }

/* The two account save actions share the same seasonal orange/accent treatment. */
.profile-account-primary-action {
  border: 1px solid color-mix(in srgb, var(--pumpkin, #ff812e) 84%, white) !important;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--pumpkin, #ff812e) 78%, white),
    var(--pumpkin, #ff812e)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--pumpkin, #ff812e) 20%, transparent);
  transition: transform .15s ease, filter .16s ease, box-shadow .16s ease,
              background .18s ease, border-color .18s ease !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@supports not (background: color-mix(in srgb, red, white)) {
  .profile-account-primary-action { background: var(--pumpkin, #ff812e) !important; }
}
@media (hover:hover) and (pointer:fine) {
  .profile-account-primary-action:hover:not(:disabled) {
    filter: brightness(1.06) saturate(1.06);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--pumpkin, #ff812e) 30%, transparent);
    transform: translateY(-1px);
  }
}
.profile-account-primary-action:active:not(:disabled) {
  filter: brightness(.94) !important;
  transform: translateY(1px) scale(.978) !important;
  box-shadow: inset 0 2px 5px rgba(30,18,8,.22) !important;
}
.profile-account-primary-action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pumpkin, #ff812e) 72%, white) !important;
  outline-offset: 3px !important;
}
.profile-account-primary-action:disabled { opacity: .58; cursor: not-allowed; }

.logout-confirm-copy { color: var(--text-main, var(--text-color)); line-height: 1.6; margin: 0 0 20px; }
.logout-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.logout-confirm-actions > button { min-width: 112px; min-height: 42px; padding: 10px 16px; }
.logout-confirm-actions .btn-copy { transition: transform .14s ease, filter .16s ease, background .16s ease; }
.logout-confirm-actions .btn-copy:active { transform: translateY(1px) scale(.98); }
@media (max-width: 520px) {
  .profile-password-modal-card, .logout-confirm-card { padding: 18px; border-radius: 16px; }
  .logout-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .logout-confirm-actions > button { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-account-primary-action, .logout-confirm-actions .btn-copy { transition: none !important; }
}
