body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #F9F9F9;
  max-width: 100%;
}

.containerpay2 {
  padding: 2rem;
  width: 100%;
  margin: 0 auto;
}


.headerpayoywn {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* aligns both items to the top */
  margin-bottom: 40px; /* move spacing here instead of title */
}

.titlepa1 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Lato', sans-serif;
  margin: 0; /* remove default h1 margin */
}

.add-btn {
  background-color: #4182F9;
  color: white;
  padding: 8px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 949px) {
.card-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
}
}
.card {
  border-radius: 17px;
  padding: 20px;
  color: white;

  position: relative;
}

.card-1 {
  background: linear-gradient(to right, #f8cba0, #cfc9ac);
}

.card-2 {
  background: linear-gradient(to right, #95d8db, #6eb6b8);
}

.card-3 {
  background: linear-gradient(to right, #9475e0, #7a58c3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 34px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.card-icons {
  display: flex;
  gap: 8px;
}

.card-icons img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.card-number {
  letter-spacing: 1px;
  font-size: 27px;
  font-weight: bold;
  margin-bottom: 34px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer1 {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 400;
}

.boldde {
  font-weight: 700;
  font-size: 15px;
}

.card-icon {
  width: 53px;
  height: 31px;
}










.overlaypayoywn {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popupcardpayoywn {
  background: white;
  width: 800px;
  height: 630px;
  padding: 30px;
  border-radius: 15.6px;
  border: #85B7CC 2px solid;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Makes the content take all the available height */
}

.popup-headerpayoywn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.titlepopup {
  font-weight: 700;
  font-size: 24px;
}

.close-iconpayoywn {
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

.closepayo {
  width: 25px;
  height: 25px;
}

.input-grouppayoywn {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.input-grouppayoywn label {
  font-weight: bold;
  font-size: 21px;
  margin-bottom: 5px;
}

.input-grouppayoywn input,
.input-grouppayoywn select {
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9fbff;
}

.rowpayoywn {
  display: flex;
  gap: 15px;
}

.rowpayoywn .input-grouppayoywn {
  flex: 1;
}

.savebtnpayoywn {
  width: 100%;
  background-color: #D3EEFF;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}
