/* --- Footnote Modal (Dark Theme) --- */
.tppl-fn-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.7);
    animation-duration: 0.25s;
    animation-fill-mode: both;
  }
  .tppl-fn-modal.visible { display: block; animation-name: fadeIn; }
  .tppl-fn-modal.closing { animation-name: fadeOut; }
  
  /* Keyframes for fade transitions */
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
  }
  
  .tppl-fn-content {
    background: #1b1431;
    color: #eae6ff;
    border-radius: 8px;
    max-width: 600px;
    margin: 10% auto;
    padding: 1.8rem 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    position: relative;
    line-height: 1.6;
    animation: slideIn 0.25s ease forwards;
  }
  @keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  
  .tppl-fn-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.4rem;
    color: #a47cff;
    cursor: pointer;
  }
  .tppl-fn-close:hover { color: #F02E65; }
  
  .tppl-fn-text p { margin: 0 0 .75rem; }
  .tppl-fn-text a {
    color: #a47cff;
    text-decoration: underline;
  }
  .tppl-fn-text a:hover { color: #F02E65; }