 /* --- 6. Modal (Pop-up) Styles --- */
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 0;
    border-radius: 0.625rem;
    /* 10px */
    width: 90%;
    /* Mobile friendly percentage width */
    max-width: 31.25rem;
    /* 500px */
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.3);
    animation-name: animatetop;
    animation-duration: 0.4s;
  }
  @keyframes animatetop {
    from {
      top: -18.75rem;
      opacity: 0
    }
    /* 300px */
    to {
      top: 0;
      opacity: 1
    }
  }
  .modal-header {
    padding: 0.9375rem 1.25rem;
    /* 15px 20px */
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--card-bg);
    border-top-left-radius: 0.625rem;
    border-top-right-radius: 0.625rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .modal-body {
    padding: 1.25rem;
    /* 20px */
  }
  .close-btn {
    color: var(--card-bg);
    float: right;
    font-size: 1.75rem;
    /* 28px */
    font-weight: bold;
    cursor: pointer;
  }
  .modal-input {
    width: 100%;
    padding: 0.625rem;
    /* 10px */
    margin: 0.625rem 0;
    /* 10px */
    box-sizing: border-box;
    border: 0.0625rem solid #ccc;
    /* 1px */
    border-radius: 0.3125rem;
    /* 5px */
  }
  .modal-transfer-btn {
    width: 100%;
    margin-top: 0.625rem;
    /* 10px */
  }