/* Cashback Pro V36.8.20 — align account primary actions with the shared scene CTA palette. */

/*
 * Reuse the exact action tokens introduced in V36.8.6. The pumpkin variable is
 * intentionally decorative and remains orange on some themes; it is not the
 * customer-action color token.
 */
.profile-account-primary-action {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--v3686-cta, var(--scene-accent, #9b8af0)) 82%, white),
    var(--v3686-cta, var(--scene-accent, #9b8af0))
  ) !important;
  border: 1px solid color-mix(
    in srgb,
    var(--v3686-cta, var(--scene-accent, #9b8af0)) 74%,
    white
  ) !important;
  color: var(--v3686-cta-ink, #1b1735) !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 16px color-mix(
    in srgb,
    var(--v3686-cta, var(--scene-accent, #9b8af0)) 20%,
    transparent
  ) !important;
  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(--v3686-cta, var(--scene-accent, #9b8af0)) !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(--v3686-cta, var(--scene-accent, #9b8af0)) 30%,
      transparent
    ) !important;
    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(--v3686-cta, var(--scene-accent, #9b8af0)) 72%,
    white
  ) !important;
  outline-offset: 3px !important;
}

.profile-account-primary-action:disabled {
  opacity: .58;
  cursor: not-allowed;
}

/* Keep “Ở lại” and “Đăng xuất” side by side on desktop and mobile. */
.logout-confirm-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  gap: 10px !important;
  flex-wrap: initial !important;
}

.logout-confirm-actions > button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px;
  padding: 10px 16px;
  margin: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .profile-account-primary-action,
  .logout-confirm-actions > button {
    transition: none !important;
  }
}
