.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
  }
  
  .modal__container {
    background-color: #fff;
    /* width: 100%; */
    max-width: 700px;
    max-height: 100vh;
    border-radius: 10px;
    /* overflow-y: auto; */
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
  }
  
  .modal__close {
    background: #ffffff41;
    color: #fff;
    border: 0;
    padding: 10px;
    border-radius: 50%;
    position: absolute;
    z-index: 99;
    top: 30px;
    left: 30px;
  }
  
  .modal__header .modal__close:before { content: "\2715"; }
  
  .modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
  }
  
  .modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
  }
  
  .modal__btn:focus, .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  
  .modal__btn-primary {
    background-color: #00449e;
    color: #fff;
  }
  
  
  
  /**************************\
    Demo Animation Style
  \**************************/
  @keyframes mmfadeIn {
      from { opacity: 0; }
        to { opacity: 1; }
  }
  
  @keyframes mmfadeOut {
      from { opacity: 1; }
        to { opacity: 0; }
  }
  
  @keyframes mmslideIn {
    from { transform: translateY(15%); }
      to { transform: translateY(0); }
  }
  
  @keyframes mmslideOut {
      from { transform: translateY(0); }
      to { transform: translateY(-10%); }
  }
  
  .micromodal-slide {
    display: none;
  }
  
  .micromodal-slide.is-open {
    display: block;
  }
  
  .micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }
  
  .micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
  }
  
  .micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }
  
  .micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
  }
  
  /* Removed will-change for mobile performance */

  /* ========================
     Donation Modal Styles
  ======================== */

  .donation-modal {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  /* Custom Scrollbar */
  .donation-modal::-webkit-scrollbar {
    width: 8px;
  }

  .donation-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .donation-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14394473 0%, #14394473 100%);
    border-radius: 10px;
  }

  .donation-modal::-webkit-scrollbar-thumb:hover {
    background: #0A5167;
  }

  /* Header */
  .donation-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 2rem 0;
  }

  .donation-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #06AA87 0%, #0D8A6C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(6, 170, 135, 0.3);
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  .donation-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
  }

  .donation-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .donation-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
  }

  /* Amount Selection */
  .donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .donation-pay{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .amount-btn {
    padding: 1rem;
    background: #0341540a;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }


  .amount-btn:hover {
    transform: translateY(-3px);
  }

  .amount-btn.active {
    background: #034154;
    color: white;
  }

  /* Custom Amount Input */
  .custom-amount-wrapper {
    margin-top:0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .custom-amount-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
  }

  .custom-amount-input:focus {
    outline: none;
    border-color: #03415481;
  }

  /* Form Styles */
  .donation-form {
    margin-top: 2rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
  }

  .donation-form .inputF {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
  }

  .donation-form .inputF:focus {
    outline: none;
    border-color: #06AA87;
    box-shadow: 0 0 0 4px rgba(6, 170, 135, 0.1);
  }

  /* Payment Methods */
  .payment-methods {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
  }

  .payment-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
  }

  .payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .payment-option {
    position: relative;
    cursor: pointer;
  }

  .payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  .payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 80px;
  }

  .payment-label i {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    color: #666;
  }

  .payment-option input[type="radio"]:checked + .payment-label {
    background: linear-gradient(135deg, #06AA87 0%, #0D8A6C 100%);
    border-color: #06AA87;
    color: white;
    transform: scale(1.05);
  }

  .payment-option input[type="radio"]:checked + .payment-label i {
    color: white;
  }

  .payment-label:hover {
    border-color: #06AA87;
    transform: translateY(-2px);
  }

  /* Donation Total */
  .donation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #06AA87 0%, #0D8A6C 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(6, 170, 135, 0.3);
  }

  .total-amount {
    font-size: 1.75rem;
    animation: numberChange 0.3s ease;
  }

  @keyframes numberChange {
    0% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* Submit Button */
  .btn-submit-donation {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #06AA87 0%, #0D8A6C 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(6, 170, 135, 0.3);
    margin-top: 1.5rem;
  }

  .btn-submit-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 170, 135, 0.4);
  }

  .btn-submit-donation:active {
    transform: translateY(-1px);
  }

  .btn-submit-donation i {
    animation: heartbeat 1.5s ease-in-out infinite;
  }

  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
  }

  /* Close Button */
  .donation-modal .modal__close {
    position: absolute;
    top: .5rem;
    left: .5rem;
    width: 40px;
    height: 40px;
    background: #ffffff3d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 99;
    color: #fff;
  }

  .donation-modal .modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
  }

  .donation-modal .modal__close i {
    width: 20px;
    height: 20px;
    color: #666;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .donation-modal {
      max-height: 95vh;
    }

    .donation-title {
      font-size: 1.4rem;
    }

    .donation-amounts {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }
 .donation-pay{
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }
    .payment-options {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }

    .payment-label {
      flex-direction: row;
      justify-content: flex-start;
      gap: 1rem;
      padding: 1rem;
    }

    .payment-label i {
      margin-bottom: 0;
    }

    .donation-total {
      font-size: 1.1rem;
    }

    .total-amount {
      font-size: 1.5rem;
    }
  }

  /* RTL Support */
  [dir="rtl"] .donation-modal .modal__close {
    left: 0.5rem;
  }

  /* Enhanced Modal Container */
  .modal__container {
    padding: 0;
    margin: 10px;
  }

  .modal__content {
    margin: 0;
  }

  /* Backdrop blur effect - disabled on mobile for performance */
  @media (min-width: 769px) {
    .modal__overlay {
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
  }

  /* Icon styling for payment options */
  .payment-label svg {
    width: 24px;
    height: 24px;
  }

  /* Success message animation */
  @keyframes successPop {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Loading state for submit button */
  .btn-submit-donation.loading {
    pointer-events: none;
    opacity: 0.7;
  }

  .btn-submit-donation.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Form validation styles */
  .donation-form .inputF:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
  }

  .donation-form .inputF:valid:not(:placeholder-shown) {
    border-color: #06AA87;
  }

  /* Tooltip for amount buttons */
  .amount-btn[data-popular]::after {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #06AA87;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .amount-btn[data-popular]:hover::after {
    opacity: 1;
  }

  /* Removed global transition for better mobile performance */



.donation-btn-pay{
    padding: 1rem;
    background: #0341540a;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border: 3px solid transparent;
}

.donation-btn-pay:hover {
    transform: translateY(-3px);
}

.donation-btn-pay.active {
    border: 3px solid #034154;
    color: white;
}

.donation-btn-pay img{
  object-fit: contain;
  max-width: 100px;
  max-height: 60px;
}


.donationS{ 
  padding: 1.6rem 1rem;
  background: #0341540a;
  border-radius: 8px;
}

.imageds img{
  object-fit: contain;
  max-width: 100px;
  max-height: 60px;
}