@keyframes bkBtnClickPop {
    0% {
      transform: translateZ(0) scale(1);
      filter: brightness(1);
      box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    30% {
      transform: translateZ(0) scale(0.95);
      filter: brightness(0.88);
      box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    68% {
      transform: translateZ(0) scale(1.045);
      filter: brightness(1.14);
      box-shadow: 0 0 14px rgba(255, 215, 0, 0.26);
    }
    100% {
      transform: translateZ(0) scale(1);
      filter: brightness(1);
      box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
  }

  .bk-btn-click-anim {
    animation: bkBtnClickPop 220ms cubic-bezier(0.2, 0.74, 0.24, 1) !important;
    will-change: transform, filter, box-shadow;
  }

  .profile-dropdown .additional-info.show {
    max-height: 1200px !important;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized {
    min-height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0.15rem auto 0.35rem !important;
    padding: 0 !important;
    display: block !important;
    font-size: 0 !important;
    line-height: 1 !important;
    color: #ffe082 !important;
    border: none !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    transition: color 0.2s ease !important;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.72);
    background: radial-gradient(circle at 30% 30%, rgba(255, 233, 140, 0.38) 0%, rgba(255, 215, 0, 0.16) 45%, rgba(60, 45, 10, 0.58) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 245, 186, 0.16);
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized:hover {
    color: #fff3bf !important;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized:hover::before {
    background: radial-gradient(circle at 30% 28%, rgba(255, 241, 176, 0.52) 0%, rgba(255, 215, 0, 0.24) 46%, rgba(70, 52, 12, 0.62) 100%);
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.2), inset 0 0 0 1px rgba(255, 247, 203, 0.28);
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized.bk-btn-click-anim,
  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized:active {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized:active::before {
    transform: translate(-50%, -50%) scale(0.94);
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized svg {
    width: 19px;
    height: 19px;
    display: block;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.24s ease;
  }

  .profile-dropdown.bk-admin-like .expand-btn.bk-expand-iconized.is-open svg {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .profile-dropdown.bk-admin-like .role.bk-inline-role {
    display: block;
    text-align: center;
    margin: 0.1rem 0 0.45rem;
    font-size: 0.92rem;
    line-height: 1.25;
  }


  .footer-links a {
    transition: transform 0.22s ease, filter 0.22s ease, color 0.3s ease !important;
    transform-origin: center;
  }

  .footer-links a:hover {
    transform: translateZ(0) scale(1.045);
    filter: brightness(1.08);
  }

  /* Global navbar brand sizing for newly cropped BKWARE logo */
  .navbar .logo {
    width: auto !important;
    height: 32px !important;
    object-fit: contain !important;
    display: block !important;
  }

  @media (max-width: 900px) {
    .navbar .logo {
      height: 28px !important;
    }
  }

  /* Keep navbar always visible on desktop (disable any hide-on-scroll behavior) */
  @media (min-width: 1025px) {
    .navbar {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      transform: translateY(0) !important;
      opacity: 1 !important;
    }
  }

  /* Keep navbar color stable (no background tinting from moving backdrops) */
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body:not(.bk-theme-modernized):not(.bk-theme-retro):not(.light-mode) .navbar {
    background: #000 !important;
    border-bottom: 2px solid #FFD700 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
  }

  body.light-mode:not(.bk-theme-modernized):not(.bk-theme-retro) .navbar {
    background: linear-gradient(180deg, #fff7df 0%, #f3e7c5 100%) !important;
    border-bottom: 1px solid rgba(142, 116, 56, 0.28) !important;
    box-shadow: 0 8px 22px rgba(122, 93, 34, 0.16) !important;
  }

  button:active,
  input[type="button"]:active,
  input[type="submit"]:active,
  input[type="reset"]:active,
  a[role="button"]:active,
  .footer-links a:active,
  .nav-links a:active,
  .mobile-top-panel .nav-links a:active,
  .dropdown-btn:active,
  .nav-link:active,
  .login-link:active,
  .back-link:active,
  .message-btn:active,
  .update-btn:active,
  .delete-btn:active,
  .add-btn:active,
  .archive-btn:active,
  .toolbar-btn:active,
  .tab:active,
  .confirm-btn:active,
  .btn:active {
    transform: scale(0.955) !important;
    filter: brightness(0.88) !important;
  }

  .cheesecoin-display,
  .coin-balance {
    position: relative;
    overflow: visible !important;
  }

  .cheesecoin-display.bk-cc-gain,
  .coin-balance.bk-cc-gain {
    animation: bkCoinGainPulse 620ms ease;
  }

  .cheesecoin-display.bk-cc-loss,
  .coin-balance.bk-cc-loss {
    animation: bkCoinLossPulse 620ms ease;
  }

  .cheesecoin-display.bk-cc-gain img,
  .coin-balance.bk-cc-gain img {
    animation: bkCoinGainSpin 650ms cubic-bezier(0.2, 0.72, 0.2, 1);
  }

  .cheesecoin-display.bk-cc-loss img,
  .coin-balance.bk-cc-loss img {
    animation: bkCoinLossSpin 650ms cubic-bezier(0.2, 0.72, 0.2, 1);
  }

  .cheesecoin-display .bk-cc-delta,
  .coin-balance .bk-cc-delta {
    position: absolute;
    right: -8px;
    top: -16px;
    z-index: 20;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: rgba(0, 0, 0, 0.8);
    text-shadow: none;
    pointer-events: none;
    transform: translateY(0) scale(0.94);
    opacity: 0;
    animation: bkCoinDeltaFloat 900ms ease forwards;
  }

  .cheesecoin-display .bk-cc-delta.gain,
  .coin-balance .bk-cc-delta.gain {
    color: #6bff9c;
    box-shadow: 0 0 12px rgba(107, 255, 156, 0.38);
  }

  .cheesecoin-display .bk-cc-delta.loss,
  .coin-balance .bk-cc-delta.loss {
    color: #ff7f7f;
    box-shadow: 0 0 12px rgba(255, 127, 127, 0.35);
  }

  @keyframes bkCoinGainPulse {
    0% { box-shadow: 0 0 0 rgba(107, 255, 156, 0); transform: translateZ(0) scale(1); }
    45% { box-shadow: 0 0 16px rgba(107, 255, 156, 0.48); transform: translateZ(0) scale(1.06); }
    100% { box-shadow: 0 0 0 rgba(107, 255, 156, 0); transform: translateZ(0) scale(1); }
  }

  @keyframes bkCoinLossPulse {
    0% { box-shadow: 0 0 0 rgba(255, 127, 127, 0); transform: translateZ(0) scale(1); }
    45% { box-shadow: 0 0 16px rgba(255, 127, 127, 0.45); transform: translateZ(0) scale(0.97); }
    100% { box-shadow: 0 0 0 rgba(255, 127, 127, 0); transform: translateZ(0) scale(1); }
  }

  @keyframes bkCoinGainSpin {
    0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(107, 255, 156, 0)); }
    50% { transform: rotate(17deg) scale(1.12); filter: drop-shadow(0 0 8px rgba(107, 255, 156, 0.6)); }
    100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(107, 255, 156, 0)); }
  }

  @keyframes bkCoinLossSpin {
    0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(255, 127, 127, 0)); }
    50% { transform: rotate(-14deg) scale(0.93); filter: drop-shadow(0 0 8px rgba(255, 127, 127, 0.55)); }
    100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(255, 127, 127, 0)); }
  }

  @keyframes bkCoinDeltaFloat {
    0% { opacity: 0; transform: translateY(4px) scale(0.94); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-15px) scale(1.03); }
  }

  @media (prefers-reduced-motion: reduce) {
    .bk-btn-click-anim {
      animation: none;
    }
  }
