/*
 * FINZO WALLET — local Font Awesome hybrid icon polish.
 *
 * Font Awesome is fully local. Feature/decorative icons keep the Pro duotone
 * treatment; small navigation, control, status and action glyphs are rendered
 * as crisp classic icons so they never look washed out, especially in dark
 * mode. Brand icons are intentionally untouched.
 */

/* Stronger, cleaner duotone layers than Font Awesome's default 0.40. */
:is(.fad, .fa-duotone, .fadr) {
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: .56;
}

/* Dark surfaces need a more visible secondary layer to avoid a faded look. */
[data-theme="dark"] :is(.fad, .fa-duotone, .fadr) {
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: .70;
}


/*
 * Utility glyphs should read as a single strong shape rather than a decorative
 * two-layer icon. This also catches icons inserted dynamically by JavaScript.
 */
:is(.fad, .fa-duotone):is(
  .fa-angle-double-right,
  .fa-arrow-down,
  .fa-arrow-left,
  .fa-arrow-right,
  .fa-arrow-right-arrow-left,
  .fa-arrow-right-from-bracket,
  .fa-arrow-rotate-left,
  .fa-arrow-up,
  .fa-arrow-up-from-bracket,
  .fa-arrow-up-right-from-square,
  .fa-arrows-rotate,
  .fa-ban,
  .fa-bars,
  .fa-check,
  .fa-chevron-down,
  .fa-chevron-left,
  .fa-chevron-right,
  .fa-chevron-up,
  .fa-circle-check,
  .fa-circle-exclamation,
  .fa-circle-info,
  .fa-circle-minus,
  .fa-circle-plus,
  .fa-circle-xmark,
  .fa-clock,
  .fa-clock-rotate-left,
  .fa-copy,
  .fa-delete-left,
  .fa-download,
  .fa-ellipsis,
  .fa-expand,
  .fa-eye,
  .fa-eye-slash,
  .fa-floppy-disk,
  .fa-forward,
  .fa-link,
  .fa-link-slash,
  .fa-lock,
  .fa-lock-open,
  .fa-magnifying-glass,
  .fa-minus,
  .fa-paste,
  .fa-pause,
  .fa-pen,
  .fa-play,
  .fa-plus,
  .fa-power-off,
  .fa-repeat,
  .fa-right-from-bracket,
  .fa-right-to-bracket,
  .fa-rotate,
  .fa-rotate-left,
  .fa-rotate-right,
  .fa-scissors,
  .fa-share-nodes,
  .fa-slash,
  .fa-spinner,
  .fa-trash,
  .fa-trash-can,
  .fa-triangle-exclamation,
  .fa-user-xmark,
  .fa-volume-high,
  .fa-volume-xmark,
  .fa-xmark
) {
  --fa-family: var(--fa-family-classic);
  --fa-style: 900;
}

:is(.fad, .fa-duotone):is(
  .fa-angle-double-right,
  .fa-arrow-down,
  .fa-arrow-left,
  .fa-arrow-right,
  .fa-arrow-right-arrow-left,
  .fa-arrow-right-from-bracket,
  .fa-arrow-rotate-left,
  .fa-arrow-up,
  .fa-arrow-up-from-bracket,
  .fa-arrow-up-right-from-square,
  .fa-arrows-rotate,
  .fa-ban,
  .fa-bars,
  .fa-check,
  .fa-chevron-down,
  .fa-chevron-left,
  .fa-chevron-right,
  .fa-chevron-up,
  .fa-circle-check,
  .fa-circle-exclamation,
  .fa-circle-info,
  .fa-circle-minus,
  .fa-circle-plus,
  .fa-circle-xmark,
  .fa-clock,
  .fa-clock-rotate-left,
  .fa-copy,
  .fa-delete-left,
  .fa-download,
  .fa-ellipsis,
  .fa-expand,
  .fa-eye,
  .fa-eye-slash,
  .fa-floppy-disk,
  .fa-forward,
  .fa-link,
  .fa-link-slash,
  .fa-lock,
  .fa-lock-open,
  .fa-magnifying-glass,
  .fa-minus,
  .fa-paste,
  .fa-pause,
  .fa-pen,
  .fa-play,
  .fa-plus,
  .fa-power-off,
  .fa-repeat,
  .fa-right-from-bracket,
  .fa-right-to-bracket,
  .fa-rotate,
  .fa-rotate-left,
  .fa-rotate-right,
  .fa-scissors,
  .fa-share-nodes,
  .fa-slash,
  .fa-spinner,
  .fa-trash,
  .fa-trash-can,
  .fa-triangle-exclamation,
  .fa-user-xmark,
  .fa-volume-high,
  .fa-volume-xmark,
  .fa-xmark
)::before {
  position: static;
  color: currentColor;
  opacity: 1;
}

:is(.fad, .fa-duotone):is(
  .fa-angle-double-right,
  .fa-arrow-down,
  .fa-arrow-left,
  .fa-arrow-right,
  .fa-arrow-right-arrow-left,
  .fa-arrow-right-from-bracket,
  .fa-arrow-rotate-left,
  .fa-arrow-up,
  .fa-arrow-up-from-bracket,
  .fa-arrow-up-right-from-square,
  .fa-arrows-rotate,
  .fa-ban,
  .fa-bars,
  .fa-check,
  .fa-chevron-down,
  .fa-chevron-left,
  .fa-chevron-right,
  .fa-chevron-up,
  .fa-circle-check,
  .fa-circle-exclamation,
  .fa-circle-info,
  .fa-circle-minus,
  .fa-circle-plus,
  .fa-circle-xmark,
  .fa-clock,
  .fa-clock-rotate-left,
  .fa-copy,
  .fa-delete-left,
  .fa-download,
  .fa-ellipsis,
  .fa-expand,
  .fa-eye,
  .fa-eye-slash,
  .fa-floppy-disk,
  .fa-forward,
  .fa-link,
  .fa-link-slash,
  .fa-lock,
  .fa-lock-open,
  .fa-magnifying-glass,
  .fa-minus,
  .fa-paste,
  .fa-pause,
  .fa-pen,
  .fa-play,
  .fa-plus,
  .fa-power-off,
  .fa-repeat,
  .fa-right-from-bracket,
  .fa-right-to-bracket,
  .fa-rotate,
  .fa-rotate-left,
  .fa-rotate-right,
  .fa-scissors,
  .fa-share-nodes,
  .fa-slash,
  .fa-spinner,
  .fa-trash,
  .fa-trash-can,
  .fa-triangle-exclamation,
  .fa-user-xmark,
  .fa-volume-high,
  .fa-volume-xmark,
  .fa-xmark
)::after {
  content: none !important;
  display: none !important;
}

/* Regular-weight duotone is intentionally rendered as classic regular.
 * It is ideal for copy/time/image/folder-style helpers and avoids the thin,
 * washed-out secondary layer that is most noticeable on dark surfaces. */
.fadr {
  --fa-family: var(--fa-family-classic);
  --fa-style: 400;
}

.fadr::before {
  position: static;
  color: currentColor;
  opacity: 1;
}

.fadr::after {
  content: none !important;
  display: none !important;
}

/* Main bottom navigation and sidebar are controls, not decorative artwork. */
.bottomnav :is(.fad, .fa-duotone),
.side-link :is(.fad, .fa-duotone),
.sidebar-user-arrow:is(.fad, .fa-duotone),
.sidebar-download-arrow:is(.fad, .fa-duotone) {
  --fa-family: var(--fa-family-classic);
  --fa-style: 900;
}

.bottomnav :is(.fad, .fa-duotone)::before,
.side-link :is(.fad, .fa-duotone)::before,
.sidebar-user-arrow:is(.fad, .fa-duotone)::before,
.sidebar-download-arrow:is(.fad, .fa-duotone)::before {
  position: static;
  color: currentColor;
  opacity: 1;
}

.bottomnav :is(.fad, .fa-duotone)::after,
.side-link :is(.fad, .fa-duotone)::after,
.sidebar-user-arrow:is(.fad, .fa-duotone)::after,
.sidebar-download-arrow:is(.fad, .fa-duotone)::after {
  content: none !important;
  display: none !important;
}

/* Do not remap .fas/.fa-solid or .far/.fa-regular: they remain true classic
 * local Font Awesome icons. This keeps legacy/admin-saved icon values crisp. */
