/* =========================================================
   DONATION SECTION
========================================================= */

.donation-section{
  padding:120px 20px;
  background:#edf4fb;
  position:relative;
  overflow:hidden;
}

.donation-container{
  max-width:900px;
  margin:auto;
  text-align:center;
  position:relative;
  z-index:2;
}

.donation-container h2{
  font-size:58px;
  line-height:1.1;
  font-weight:700;
  color:#173b63;
  margin-bottom:24px;
}

.donation-container p{
  max-width:760px;
  margin:auto;
  font-size:22px;
  line-height:1.8;
  color:#58697d;
}

/* =========================================================
   DONATE BUTTON
========================================================= */

.donate-btn{
  margin-top:42px;

  border:none;
  outline:none;
  cursor:pointer;

  display:inline-flex;
  align-items:center;
  gap:14px;

  padding:20px 38px;

  border-radius:999px;

  background:linear-gradient(
    135deg,
    #2f8fff,
    #59b7ff
  );

  color:#fff;
  font-size:20px;
  font-weight:600;

  transition:.35s ease;

  box-shadow:
    0 12px 30px rgba(47,143,255,.25);
}

.donate-btn:hover{
  transform:translateY(-4px);
  box-shadow:
    0 18px 40px rgba(47,143,255,.35);
}

.donate-icon{
  transition:.3s ease;
}

.donate-btn:hover .donate-icon{
  transform:translateX(5px);
}

/* =========================================================
   POPUP WRAPPER
========================================================= */

.donation-popup{
  position:fixed;
  inset:0;

  z-index:99999;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:24px;

  opacity:0;
  visibility:hidden;

  transition:.35s ease;
}

.donation-popup.active{
  opacity:1;
  visibility:visible;
}

/* =========================================================
   OVERLAY
========================================================= */

.popup-overlay{
  position:absolute;
  inset:0;

  background:rgba(12,18,28,.62);

  backdrop-filter:blur(12px);
}

/* =========================================================
   MODAL CARD
========================================================= */

.popup-card{
  position:relative;

  width:min(840px,100%);
  max-height:90vh;

  overflow-y:auto;
  overflow-x:hidden;

  display:grid;
  grid-template-columns:1fr 320px;

  border-radius:34px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.92),
      rgba(248,251,255,.95)
    );

  backdrop-filter:blur(20px);

  border:1px solid rgba(255,255,255,.6);

  box-shadow:
    0 30px 60px rgba(0,0,0,.18),
    0 10px 25px rgba(0,0,0,.08);

  transform:translateY(20px) scale(.96);

  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    opacity .4s ease;

  scrollbar-width:none;
}

.popup-card::-webkit-scrollbar{
  display:none;
}

.donation-popup.active .popup-card{
  transform:translateY(0) scale(1);
}

/* =========================================================
   LEFT SIDE
========================================================= */

.popup-left{
  padding:42px;
}

.popup-badge{
  display:inline-flex;
  align-items:center;

  padding:12px 22px;

  border-radius:999px;

  background:#e7f1ff;

  color:#2c82ff;

  font-size:15px;
  font-weight:600;

  margin-bottom:28px;
}

.popup-left h3{
  font-size:52px;
  line-height:1.08;
  color:#163a63;
  margin-bottom:24px;
}

.popup-text{
  font-size:18px;
  line-height:1.9;
  color:#617387;

  margin-bottom:34px;

  max-width:520px;
}

/* =========================================================
   BANK CARD
========================================================= */

.bank-card{
  background:#fff;

  border-radius:28px;

  padding:28px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.06);
}

.bank-label{
  display:block;

  font-size:15px;
  color:#7d8ea3;

  margin-bottom:12px;
}

.bank-card h4{
  font-size:22px;
  color:#173b63;

  margin-bottom:20px;
}

.account-number{
  font-size:38px;
  font-weight:700;

  letter-spacing:1px;

  color:#1f6fff;

  margin-bottom:18px;

  line-height:1.2;
}

.account-name{
  font-size:17px;
  line-height:1.7;
  color:#607286;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.popup-right{
  padding:28px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #edf5ff 100%
    );
}

/* =========================================================
   QR WRAPPER
========================================================= */

.qris-wrapper{
  width:100%;

  background:#fff;

  border-radius:28px;

  padding:18px;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 15px 35px rgba(0,0,0,.06);

  animation:floatCard 4s ease-in-out infinite;
}

.qris-image{
  width:100%;
  max-width:220px;

  display:block;

  border-radius:16px;

  user-select:none;
  pointer-events:none;
  -webkit-user-drag:none;
}

.scan-text{
  margin-top:20px;

  text-align:center;

  font-size:15px;
  line-height:1.8;

  color:#5c6e82;

  max-width:240px;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.close-popup{
  position:absolute;

  top:18px;
  right:18px;

  width:48px;
  height:48px;

  border:none;
  cursor:pointer;

  border-radius:50%;

  background:rgba(255,255,255,.9);

  color:#222;

  font-size:20px;

  transition:.3s ease;

  z-index:5;

  box-shadow:
    0 8px 20px rgba(0,0,0,.08);
}

.close-popup:hover{
  transform:rotate(90deg) scale(1.06);
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes floatCard{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-8px);
  }

  100%{
    transform:translateY(0px);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:860px){

  .popup-card{
    width:100%;
    max-width:420px;

    grid-template-columns:1fr;

    max-height:none;

    overflow:visible;
  }

  .popup-left{
    padding:32px 28px;
  }

  .popup-right{
    padding:
      0 28px 28px;
  }

  .popup-left h3{
    font-size:38px;
  }

  .popup-text{
    font-size:16px;
    line-height:1.8;
    margin-bottom:26px;
  }

  .bank-card{
    padding:24px;
    border-radius:22px;
  }

  .account-number{
    font-size:30px;
  }

  .qris-image{
    max-width:210px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:480px){

  .donation-section{
    padding:90px 20px;
  }

  .donation-container h2{
    font-size:40px;
  }

  .donation-container p{
    font-size:17px;
    line-height:1.8;
  }

  .donate-btn{
    width:100%;
    justify-content:center;

    font-size:18px;

    padding:18px 28px;
  }

  .donation-popup{
    padding:14px;
    align-items:flex-start;

    overflow-y:auto;
  }

  .popup-card{
    border-radius:26px;
  }

  .popup-left{
    padding:28px 22px;
  }

  .popup-right{
    padding:
      0 22px 24px;
  }

  .popup-left h3{
    font-size:32px;
  }

  .popup-badge{
    font-size:13px;
    padding:10px 16px;
  }

  .popup-text{
    font-size:15px;
  }

  .bank-card h4{
    font-size:20px;
  }

  .account-number{
    font-size:28px;
  }

  .account-name{
    font-size:15px;
  }

  .close-popup{
    width:42px;
    height:42px;

    font-size:18px;

    top:14px;
    right:14px;
  }

  .scan-text{
    font-size:14px;
  }
}