/* ============================================
   InfluenceHub – Sent requests birthday empty CTA block
   - Prominent empty-state card shown in the sent-requests
     section when the client has no birthday requests yet.
   - Explains how to order a birthday greeting from the
     catalog and provides two CTAs:
       * "Naršyti katalogą" – scrolls to the catalog
       * "Rodyti visas užklausas" – resets the filter
   - Matches the brand-600 / violet palette, dark mode,
     44px touch targets, focus-visible rings,
     prefers-reduced-motion and forced-colors support.
   ============================================ */

/* ---------- Wrapper ---------- */

.sent-birthday-empty-cta-block {
  margin-top: 1rem;
  border-radius: 1.25rem;
  border: 1px solid #e9d5ff;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 55%),
    linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
  box-shadow: 0 10px 30px -18px rgba(124, 58, 237, 0.35);
  overflow: hidden;
  animation: sent-birthday-empty-cta-in 0.3s ease-out;
}

.sent-birthday-empty-cta-block.hidden {
  display: none !important;
}

@keyframes sent-birthday-empty-cta-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Inner layout ---------- */

.sent-birthday-empty-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .sent-birthday-empty-cta-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
  }
}

/* ---------- Icon ---------- */

.sent-birthday-empty-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.6);
}

.sent-birthday-empty-cta-icon i {
  width: 1.75rem;
  height: 1.75rem;
}

/* ---------- Content ---------- */

.sent-birthday-empty-cta-content {
  flex: 1;
  min-width: 0;
}

.sent-birthday-empty-cta-title {
  margin: 0 0 0.5rem;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.sent-birthday-empty-cta-text {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

/* ---------- Feature list ---------- */

.sent-birthday-empty-cta-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sent-birthday-empty-cta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.sent-birthday-empty-cta-list li i {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #7c3aed;
  background: #f3e8ff;
  border-radius: 9999px;
  padding: 0.125rem;
}

/* ---------- Feature list – dark-mode contrast fix (WCAG AA) ----------
   Re-assert the list text and check-icon colors with !important so
   generic dark-mode text utilities (e.g. html.dark .text-slate-400)
   cannot reduce the contrast below AA.

   Light mode:
     - list text: #334155 on #ffffff = 10.4:1 (passes AA)
     - icon:      #7c3aed on #f3e8ff = 6.9:1 (passes AA)
   Dark mode:
     - list text: #e2e8f0 on rgba(15,23,42,0.9) ≈ 13.4:1 (passes AA)
     - icon:      #c4b5fd on rgba(124,58,237,0.25) over #0f172a
                  ≈ 8.1:1 (passes AA) */

.sent-birthday-empty-cta-list li {
  color: #334155 !important;
}

.sent-birthday-empty-cta-list li i {
  color: #7c3aed !important;
  background: #f3e8ff !important;
}

.dark .sent-birthday-empty-cta-list li {
  color: #e2e8f0 !important;
}

.dark .sent-birthday-empty-cta-list li i {
  color: #c4b5fd !important;
  background: rgba(124, 58, 237, 0.25) !important;
}

/* ---------- Feature list – prefers-reduced-motion guard ----------
   The list items and their check icons must not animate or transition
   for users who prefer reduced motion. */

@media (prefers-reduced-motion: reduce) {
  .sent-birthday-empty-cta-list,
  .sent-birthday-empty-cta-list li,
  .sent-birthday-empty-cta-list li i {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* Neutralise any hover/focus/active transform on the list items */
  .sent-birthday-empty-cta-list li:hover,
  .sent-birthday-empty-cta-list li:focus,
  .sent-birthday-empty-cta-list li:focus-visible,
  .sent-birthday-empty-cta-list li:active {
    transform: none !important;
    transition: none !important;
  }

  /* Icons inside the list must not animate either */
  .sent-birthday-empty-cta-list li i,
  .sent-birthday-empty-cta-list li i::before,
  .sent-birthday-empty-cta-list li i::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Feature list – forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .sent-birthday-empty-cta-list li {
    color: CanvasText !important;
  }

  .sent-birthday-empty-cta-list li i {
    background: Canvas !important;
    color: CanvasText !important;
  }
}

/* ---------- Actions ---------- */

.sent-birthday-empty-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Actions – dark-mode contrast fix (WCAG AA) ----------
   The actions row is a transparent flex container that sits on the
   CTA block's violet gradient surface. Re-assert a neutral text color
   so any inherited dark-mode slate utility cannot reduce the contrast
   of the buttons' labels below AA.

   Light mode: buttons carry their own fills (violet gradient / white),
   so the row itself only needs a neutral fallback color.
   Dark mode:  the row inherits the dark card surface; the primary CTA
   keeps white text on the violet gradient (>= 4.5:1) and the secondary
   CTA uses #cbd5e1 on the dark surface (>= 11:1). */

.sent-birthday-empty-cta-actions {
  color: #334155 !important;
}

.dark .sent-birthday-empty-cta-actions {
  color: #e2e8f0 !important;
}

/* ---------- Actions – prefers-reduced-motion guard ----------
   The actions row itself does not animate, but its children (the two
   CTA buttons) may carry hover/focus transforms and transitions. Users
   who prefer reduced motion should see state changes instantly, with
   no motion. */

@media (prefers-reduced-motion: reduce) {
  .sent-birthday-empty-cta-actions,
  .sent-birthday-empty-cta-actions * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* Neutralise any hover/focus/active transform on the row itself */
  .sent-birthday-empty-cta-actions:hover,
  .sent-birthday-empty-cta-actions:focus,
  .sent-birthday-empty-cta-actions:focus-within,
  .sent-birthday-empty-cta-actions:active {
    transform: none !important;
    transition: none !important;
  }

  /* Buttons inside the row must not animate either */
  .sent-birthday-empty-cta-actions > *:hover,
  .sent-birthday-empty-cta-actions > *:focus,
  .sent-birthday-empty-cta-actions > *:focus-visible,
  .sent-birthday-empty-cta-actions > *:active {
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Actions – forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .sent-birthday-empty-cta-actions {
    color: CanvasText !important;
  }
}

.sent-birthday-empty-cta-primary,
.sent-birthday-empty-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  /* WCAG 2.5.5 – minimum 44x44px touch target for mobile users */
  min-height: 44px;
  min-width: 44px;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
  /* Ensure the focus ring is never clipped by the card's rounded corners */
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ID-based selectors – guarantee the 44px touch target even if a
   utility class (e.g. Tailwind's py-2) would otherwise shrink the
   button below the WCAG 2.5.5 minimum. */
#sent-birthday-empty-cta-browse,
#sent-birthday-empty-cta-show-all {
  min-height: 44px;
  min-width: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* Ensure the 44px target is preserved even when the CTAs stack
   vertically on very small screens (<= 360px) where the flex
   container may otherwise compress the buttons. */
@media (max-width: 360px) {
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Focus-visible ring (keyboard) ---------- */

/* High-contrast, always-visible ring for keyboard users. The ring is
   drawn with both an outline and a box-shadow halo so it stays visible
   against the violet gradient (primary CTA) and the white/rose
   (secondary) backgrounds. */
#sent-birthday-empty-cta-browse:focus-visible,
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

/* Primary CTA uses a violet gradient fill – add a white inner ring so
   the violet outline stays visible against the gradient. */
#sent-birthday-empty-cta-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Secondary CTA uses a white/rose fill – keep the violet outline
   visible against the light surface with a white inner ring. */
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* ---------- 44px minimum touch target (WCAG 2.5.5) ----------
   Guarantee the two CTA buttons in the sent-requests birthday
   empty-state block are always at least 44x44px, regardless of
   utility classes or flex compression. */

#sent-birthday-empty-cta-browse,
#sent-birthday-empty-cta-show-all {
  min-height: 44px;
  min-width: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Keep the 44px target when the CTAs stack vertically on very
   small screens (<= 360px) where the flex container may otherwise
   compress the buttons. */
@media (max-width: 360px) {
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* Primary CTA uses a violet gradient fill – add a white inner ring so
   the violet outline stays visible against the gradient. */
#sent-birthday-empty-cta-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Secondary CTA uses a white/rose fill – keep the violet outline
   visible against the light surface with a white inner ring. */
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* ---------- Dark mode focus-visible ---------- */

.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

.dark #sent-birthday-empty-cta-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark #sent-birthday-empty-cta-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* ---------- Fallback for browsers without :focus-visible ---------- */

@supports not selector(:focus-visible) {
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }

  #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }

  .dark #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* ---------- 44px minimum touch target (WCAG 2.5.5) ----------
   Guarantee the two CTA buttons in the sent-requests birthday
   empty-state block are always at least 44x44px, regardless of
   utility classes or flex compression. */

#sent-birthday-empty-cta-browse,
#sent-birthday-empty-cta-show-all {
  min-height: 44px;
  min-width: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Keep the 44px target when the CTAs stack vertically on very
   small screens (<= 360px) where the flex container may otherwise
   compress the buttons. */
@media (max-width: 360px) {
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* Primary CTA uses a violet gradient fill – add a white inner ring so
   the violet outline stays visible against the gradient. */
#sent-birthday-empty-cta-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Secondary CTA uses a white/rose fill – keep the violet outline
   visible against the light surface with a white inner ring. */
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* ---------- Dark mode focus-visible ---------- */

.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

.dark #sent-birthday-empty-cta-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* ---------- Fallback for browsers without :focus-visible ---------- */

@supports not selector(:focus-visible) {
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }

  #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }

  .dark #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* ---------- 44px minimum touch target (WCAG 2.5.5) ----------
   Guarantee the two CTA buttons in the sent-requests birthday
   empty-state block are always at least 44x44px, regardless of
   utility classes or flex compression. */

#sent-birthday-empty-cta-browse,
#sent-birthday-empty-cta-show-all {
  min-height: 44px;
  min-width: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Keep the 44px target when the CTAs stack vertically on very
   small screens (<= 360px) where the flex container may otherwise
   compress the buttons. */
@media (max-width: 360px) {
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* Primary CTA uses a violet gradient fill – add a white inner ring so
   the violet outline stays visible against the gradient. */
#sent-birthday-empty-cta-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Secondary CTA uses a white/rose fill – keep the violet outline
   visible against the light surface with a white inner ring. */
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* ---------- Dark mode focus-visible ---------- */

.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

.dark #sent-birthday-empty-cta-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* ---------- Fallback for browsers without :focus-visible ---------- */

@supports not selector(:focus-visible) {
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }

  #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }

  .dark #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

.sent-birthday-empty-cta-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.6);
}

.sent-birthday-empty-cta-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.75);
  transform: translateY(-1px);
}

.sent-birthday-empty-cta-primary:active {
  transform: translateY(0);
}

.sent-birthday-empty-cta-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.sent-birthday-empty-cta-secondary:hover {
  background: #f8fafc;
  border-color: #c4b5fd;
  color: #6d28d9;
}

/* ---------- Focus-visible rings ---------- */

/* High-contrast, always-visible ring for keyboard users. The ring is
   drawn with both an outline and a box-shadow halo so it stays visible
   against the violet gradient (primary CTA) and the white/rose
   (secondary) backgrounds. */
.sent-birthday-empty-cta-primary:focus-visible,
.sent-birthday-empty-cta-secondary:focus-visible,
#sent-birthday-empty-cta-browse:focus-visible,
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

/* Primary CTA: white inner ring so the violet outline stays visible
   against the violet gradient background. */
.sent-birthday-empty-cta-primary:focus-visible,
#sent-birthday-empty-cta-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Secondary CTA: white inner ring so the violet outline stays visible
   against the light surface. */
.sent-birthday-empty-cta-secondary:focus-visible,
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Fallback for browsers without :focus-visible support */
@supports not selector(:focus-visible) {
  .sent-birthday-empty-cta-primary:focus,
  .sent-birthday-empty-cta-secondary:focus,
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }

  .sent-birthday-empty-cta-primary:focus,
  #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .sent-birthday-empty-cta-secondary:focus,
  #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }
}

/* ---------- Dark mode ---------- */

.dark .sent-birthday-empty-cta-block {
  border-color: rgba(139, 92, 246, 0.4);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(168, 85, 247, 0.18) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.dark .sent-birthday-empty-cta-title {
  color: #f1f5f9;
}

.dark .sent-birthday-empty-cta-text {
  color: #cbd5e1;
}

.dark .sent-birthday-empty-cta-list li {
  color: #e2e8f0;
}

.dark .sent-birthday-empty-cta-list li i {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.25);
}

.dark .sent-birthday-empty-cta-secondary {
  background: transparent;
  color: #cbd5e1;
  border-color: #334155;
}

.dark .sent-birthday-empty-cta-secondary:hover {
  background: #1e293b;
  border-color: #7c3aed;
  color: #c4b5fd;
}

.dark .sent-birthday-empty-cta-primary:focus-visible,
.dark .sent-birthday-empty-cta-secondary:focus-visible,
.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

.dark .sent-birthday-empty-cta-primary:focus-visible,
.dark #sent-birthday-empty-cta-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

.dark .sent-birthday-empty-cta-secondary:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

@supports not selector(:focus-visible) {
  .dark .sent-birthday-empty-cta-primary:focus,
  .dark .sent-birthday-empty-cta-secondary:focus,
  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
  }

  .dark .sent-birthday-empty-cta-primary:focus,
  .dark #sent-birthday-empty-cta-browse:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }

  .dark .sent-birthday-empty-cta-secondary:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .sent-birthday-empty-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sent-birthday-empty-cta-primary,
  .sent-birthday-empty-cta-secondary {
    width: 100%;
  }

  /* Keep the 44px touch target when the CTAs stack vertically. */
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Very small screens (<= 360px) ----------
   On the narrowest phones the two CTAs may still be laid out
   side-by-side by the flex container. Force them to stack and
   keep the 44px touch target so neither button shrinks below
   the WCAG 2.5.5 minimum. */
@media (max-width: 360px) {
  .sent-birthday-empty-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Dark-mode contrast fix (WCAG AA) ----------
   Re-assert the CTA block text colors with !important so generic
   dark-mode text utilities (e.g. html.dark .text-slate-400) cannot
   reduce the contrast below AA.

   Light mode:
     - title: #0f172a on #faf5ff ≈ 17.9:1 (passes AA)
     - text:  #475569 on #ffffff = 7.5:1 (passes AA)
     - list:  #334155 on #ffffff = 10.4:1 (passes AA)
     - icon:  #ffffff on #7c3aed = 5.9:1 (passes AA)
   Dark mode:
     - title: #f1f5f9 on rgba(30,27,75,0.6) over #0f172a ≈ 14.8:1
     - text:  #cbd5e1 on rgba(15,23,42,0.9) ≈ 11.6:1
     - list:  #e2e8f0 on rgba(15,23,42,0.9) ≈ 13.4:1
     - icon:  #ffffff on #7c3aed = 5.9:1
*/

.sent-birthday-empty-cta-title {
  color: #0f172a !important;
}

.sent-birthday-empty-cta-text {
  color: #475569 !important;
}

.sent-birthday-empty-cta-list li {
  color: #334155 !important;
}

.sent-birthday-empty-cta-icon {
  color: #ffffff !important;
}

.dark .sent-birthday-empty-cta-title {
  color: #f1f5f9 !important;
}

.dark .sent-birthday-empty-cta-text {
  color: #cbd5e1 !important;
}

.dark .sent-birthday-empty-cta-list li {
  color: #e2e8f0 !important;
}

.dark .sent-birthday-empty-cta-icon {
  color: #ffffff !important;
}

/* ---------- prefers-reduced-motion guard ----------
   The CTA block fades/slides in on mount and its icon may pulse.
   Users who prefer reduced motion should see the block appear
   instantly, with no hover/focus transforms on the title, text,
   list or icon. */

@media (prefers-reduced-motion: reduce) {
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list,
  .sent-birthday-empty-cta-list li,
  .sent-birthday-empty-cta-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* Neutralise any hover/focus/active transform on the text and icon */
  .sent-birthday-empty-cta-title:hover,
  .sent-birthday-empty-cta-title:focus,
  .sent-birthday-empty-cta-title:focus-visible,
  .sent-birthday-empty-cta-title:active,
  .sent-birthday-empty-cta-text:hover,
  .sent-birthday-empty-cta-text:focus,
  .sent-birthday-empty-cta-text:focus-visible,
  .sent-birthday-empty-cta-text:active,
  .sent-birthday-empty-cta-list li:hover,
  .sent-birthday-empty-cta-list li:focus,
  .sent-birthday-empty-cta-list li:focus-visible,
  .sent-birthday-empty-cta-list li:active,
  .sent-birthday-empty-cta-icon:hover,
  .sent-birthday-empty-cta-icon:focus,
  .sent-birthday-empty-cta-icon:focus-visible,
  .sent-birthday-empty-cta-icon:active {
    transform: none !important;
    transition: none !important;
  }

  /* Icons inside the list and the main icon must not animate either */
  .sent-birthday-empty-cta-icon i,
  .sent-birthday-empty-cta-list li i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the icon itself */
  .sent-birthday-empty-cta-icon,
  .sent-birthday-empty-cta-icon::before,
  .sent-birthday-empty-cta-icon::after {
    animation: none !important;
    transform: none !important;
  }

  /* Keep the focus ring visible but static (no animated halo) */
  .sent-birthday-empty-cta-icon:focus-visible {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
  }

  .dark .sent-birthday-empty-cta-icon:focus-visible {
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35) !important;
  }
}

/* ---------- Forced colors (Windows High Contrast) ----------
   Ensure the title, text, list and icon keep a visible border/contrast
   in forced-colors mode so the CTA block remains legible. */

@media (forced-colors: active) {
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list li {
    color: CanvasText !important;
  }

  .sent-birthday-empty-cta-icon {
    background: Highlight !important;
    color: HighlightText !important;
    border: 1px solid HighlightText;
    box-shadow: none !important;
  }

  .sent-birthday-empty-cta-list li i {
    background: Canvas !important;
    color: CanvasText !important;
  }
}

/* ---------- Dark-mode contrast fix for the icon gradient ----------
   The icon uses a violet→fuchsia gradient. In dark mode the gradient
   is darkened slightly so the white glyph keeps a contrast ratio
   above 4.5:1 against the darkest stop (#6d28d9 → white = 7.0:1). */

.dark .sent-birthday-empty-cta-icon {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #db2777 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -8px rgba(109, 40, 217, 0.7) !important;
}

/* ---------- Dark-mode contrast fix for the list check icons ----------
   The check icons use a violet glyph on a light violet pill. In dark
   mode the pill is darkened and the glyph lightened so the icon stays
   visible against the dark card surface. */

.dark .sent-birthday-empty-cta-list li i {
  color: #c4b5fd !important;
  background: rgba(124, 58, 237, 0.25) !important;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sent-birthday-empty-cta-block {
    animation: none !important;
  }

  /* Title, text, list and icon must not animate or transition. */
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list,
  .sent-birthday-empty-cta-list li,
  .sent-birthday-empty-cta-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  /* Icons inside the list and the main icon must not animate either. */
  .sent-birthday-empty-cta-icon i,
  .sent-birthday-empty-cta-list li i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the icon itself. */
  .sent-birthday-empty-cta-icon,
  .sent-birthday-empty-cta-icon::before,
  .sent-birthday-empty-cta-icon::after {
    animation: none !important;
    transform: none !important;
  }

  /* Neutralise any hover/focus/active transform on the CTA block
     itself so no motion is perceived. */
  .sent-birthday-empty-cta-block:hover,
  .sent-birthday-empty-cta-block:focus,
  .sent-birthday-empty-cta-block:focus-within,
  .sent-birthday-empty-cta-block:active {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Title, text, list and icon must not animate or transition. */
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list,
  .sent-birthday-empty-cta-list li,
  .sent-birthday-empty-cta-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  /* Icons inside the list and the main icon must not animate either. */
  .sent-birthday-empty-cta-icon i,
  .sent-birthday-empty-cta-list li i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the icon itself. */
  .sent-birthday-empty-cta-icon,
  .sent-birthday-empty-cta-icon::before,
  .sent-birthday-empty-cta-icon::after {
    animation: none !important;
    transform: none !important;
  }

  .sent-birthday-empty-cta-primary,
  .sent-birthday-empty-cta-secondary,
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .sent-birthday-empty-cta-primary:hover,
  #sent-birthday-empty-cta-browse:hover,
  #sent-birthday-empty-cta-show-all:hover {
    transform: none !important;
  }

  /* Neutralise any hover/focus/active transform so no motion is perceived */
  #sent-birthday-empty-cta-browse:hover,
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-browse:active,
  #sent-birthday-empty-cta-show-all:hover,
  #sent-birthday-empty-cta-show-all:focus,
  #sent-birthday-empty-cta-show-all:active {
    transform: none !important;
    transition: none !important;
  }

  /* Title, text, list and icon must not animate or transition. */
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list,
  .sent-birthday-empty-cta-list li,
  .sent-birthday-empty-cta-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  /* Icons inside the list and the main icon must not animate either. */
  .sent-birthday-empty-cta-icon i,
  .sent-birthday-empty-cta-list li i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the icon itself. */
  .sent-birthday-empty-cta-icon,
  .sent-birthday-empty-cta-icon::before,
  .sent-birthday-empty-cta-icon::after {
    animation: none !important;
    transform: none !important;
  }

  /* Keep the focus ring visible but static (no animated halo) */
  .sent-birthday-empty-cta-primary:focus-visible,
  .sent-birthday-empty-cta-secondary:focus-visible,
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
  }

  .sent-birthday-empty-cta-primary:focus-visible,
  #sent-birthday-empty-cta-browse:focus-visible {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35) !important;
  }

  .sent-birthday-empty-cta-secondary:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35) !important;
  }

  .dark .sent-birthday-empty-cta-primary:focus-visible,
  .dark .sent-birthday-empty-cta-secondary:focus-visible,
  .dark #sent-birthday-empty-cta-browse:focus-visible,
  .dark #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35) !important;
  }

  .dark .sent-birthday-empty-cta-primary:focus-visible,
  .dark #sent-birthday-empty-cta-browse:focus-visible {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45) !important;
  }

  .dark .sent-birthday-empty-cta-secondary:focus-visible,
  .dark #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45) !important;
  }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .sent-birthday-empty-cta-block {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .sent-birthday-empty-cta-icon {
    background: Highlight;
    color: HighlightText;
    box-shadow: none;
  }

  .sent-birthday-empty-cta-primary {
    background: Highlight;
    color: HighlightText;
    border: 1px solid HighlightText;
    box-shadow: none;
  }

  .sent-birthday-empty-cta-secondary {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }

  .sent-birthday-empty-cta-list li i {
    background: Canvas;
    color: CanvasText;
  }

  /* Ensure the title, text and icon keep a visible border/contrast in
     forced-colors mode so the CTA block remains legible. */
  .sent-birthday-empty-cta-title,
  .sent-birthday-empty-cta-text,
  .sent-birthday-empty-cta-list li {
    color: CanvasText !important;
  }

  .sent-birthday-empty-cta-icon {
    background: Highlight !important;
    color: HighlightText !important;
    border: 1px solid HighlightText;
    box-shadow: none !important;
  }

  .sent-birthday-empty-cta-primary:focus-visible,
  .sent-birthday-empty-cta-secondary:focus-visible,
  .sent-birthday-empty-cta-primary:focus,
  .sent-birthday-empty-cta-secondary:focus,
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible,
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }

  /* Ensure the ID-based CTAs keep a visible border in forced-colors mode
     so their 44px hit area is clearly delineated. */
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    min-height: 44px;
    min-width: 44px;
  }

  #sent-birthday-empty-cta-browse:hover,
  #sent-birthday-empty-cta-show-all:hover {
    background: Highlight;
    color: HighlightText;
  }

  /* Keep the 44px target when the CTAs stack on small screens. */
  @media (max-width: 480px) {
    #sent-birthday-empty-cta-browse,
    #sent-birthday-empty-cta-show-all {
      min-height: 44px;
      min-width: 44px;
      width: 100%;
    }
  }
}

/* ---------- Final 44px touch target guarantee (WCAG 2.5.5) ----------
   Placed at the end of the file so it wins over any earlier rule that
   might otherwise shrink the CTA buttons below the 44x44px minimum.
   Applies to both the class-based and ID-based selectors so the
   guarantee holds regardless of how the buttons are rendered. */

.sent-birthday-empty-cta-primary,
.sent-birthday-empty-cta-secondary,
#sent-birthday-empty-cta-browse,
#sent-birthday-empty-cta-show-all {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Explicit focus-visible ring for the two CTA buttons ----------
   The two CTAs in the sent-requests birthday empty-state block must
   always show a clearly visible focus ring for keyboard users. The
   ring is drawn with both an outline and a box-shadow halo so it
   stays visible against the violet gradient (primary CTA) and the
   white/rose surface (secondary CTA). */

#sent-birthday-empty-cta-browse:focus-visible,
#sent-birthday-empty-cta-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* Dark mode – lighter violet ring with a dark inner halo so it stays
   visible against the dark card surface. */
.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* Fallback for browsers without :focus-visible support. */
@supports not selector(:focus-visible) {
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* Reduced motion – keep the ring visible but static (no animated halo). */
@media (prefers-reduced-motion: reduce) {
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35) !important;
  }

  .dark #sent-birthday-empty-cta-browse:focus-visible,
  .dark #sent-birthday-empty-cta-show-all:focus-visible {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45) !important;
  }
}

/* Forced colors (Windows High Contrast) – use system Highlight colors. */
@media (forced-colors: active) {
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible,
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}

/* Keep the 44px target when the CTAs stack vertically on very small
   screens (<= 360px) where the flex container may otherwise compress
   the buttons. */
@media (max-width: 360px) {
  .sent-birthday-empty-cta-primary,
  .sent-birthday-empty-cta-secondary,
  #sent-birthday-empty-cta-browse,
  #sent-birthday-empty-cta-show-all {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Final focus-visible ring guarantee ----------
   Re-assert the visible focus ring at the end of the file so it is
   never overridden by later rules. Uses a white inner ring for the
   primary (violet gradient) CTA and a white inner ring for the
   secondary (light surface) CTA so the violet outline stays visible
   in both cases. */

#sent-birthday-empty-cta-browse:focus-visible,
#sent-birthday-empty-cta-show-all:focus-visible,
.sent-birthday-empty-cta-primary:focus-visible,
.sent-birthday-empty-cta-secondary:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

.dark #sent-birthday-empty-cta-browse:focus-visible,
.dark #sent-birthday-empty-cta-show-all:focus-visible,
.dark .sent-birthday-empty-cta-primary:focus-visible,
.dark .sent-birthday-empty-cta-secondary:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* Fallback for browsers without :focus-visible support */
@supports not selector(:focus-visible) {
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus,
  .sent-birthday-empty-cta-primary:focus,
  .sent-birthday-empty-cta-secondary:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #sent-birthday-empty-cta-browse:focus,
  .dark #sent-birthday-empty-cta-show-all:focus,
  .dark .sent-birthday-empty-cta-primary:focus,
  .dark .sent-birthday-empty-cta-secondary:focus {
    outline-color: #c4b5fd;
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* ---------- Reduced motion: keep the ring static ---------- */

@media (prefers-reduced-motion: reduce) {
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible,
  .sent-birthday-empty-cta-primary:focus-visible,
  .sent-birthday-empty-cta-secondary:focus-visible {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35) !important;
  }

  .dark #sent-birthday-empty-cta-browse:focus-visible,
  .dark #sent-birthday-empty-cta-show-all:focus-visible,
  .dark .sent-birthday-empty-cta-primary:focus-visible,
  .dark .sent-birthday-empty-cta-secondary:focus-visible {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45) !important;
  }
}

/* ---------- Forced colors: keep the ring visible ---------- */

@media (forced-colors: active) {
  #sent-birthday-empty-cta-browse:focus-visible,
  #sent-birthday-empty-cta-show-all:focus-visible,
  .sent-birthday-empty-cta-primary:focus-visible,
  .sent-birthday-empty-cta-secondary:focus-visible,
  #sent-birthday-empty-cta-browse:focus,
  #sent-birthday-empty-cta-show-all:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}
