/* Custom styles */
    .tab-content {
      display: none;
    }
    .active-tab-content {
      display: block;
      animation: fadeIn 0.3s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .toast-notification {
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    .toast-notification.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    .full-iframe-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: white;
      z-index: 9999;
      display: none;
    }
    .full-iframe-overlay iframe {
      width: 100%;
      height: 100%;
      border: none;
    }
    .close-iframe-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      background: #dc2626;
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 24px;
      cursor: pointer;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .close-iframe-btn:hover {
      background: #b91c1c;
      transform: scale(1.05);
    }
    .modal {
      display: none;
      position: fixed;
      z-index: 9998;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      align-items: center;
      justify-content: center;
    }
    .modal-content {
      background-color: white;
      border-radius: 1rem;
      max-width: 500px;
      width: 90%;
      padding: 1.5rem;
      animation: slideIn 0.3s ease;
      max-height: 90vh;
      overflow-y: auto;
    }
    @keyframes slideIn {
      from { transform: translateY(-50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .modal-close {
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: #666;
      transition: color 0.2s;
    }
    .modal-close:hover {
      color: #000;
    }
    .btn-gift, .btn-buy, .btn-pay, .btn-disabled {
      transition: all 0.2s ease;
    }
    .btn-gift:hover, .btn-buy:hover, .btn-pay:hover {
      transform: translateY(-2px);
    }
    .product-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.15);
    }
    .form-group {
      margin-bottom: 1rem;
    }
    .form-group label {
      display: block;
      font-weight: 500;
      margin-bottom: 0.5rem;
      color: #374151;
    }
    .form-group input {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #d1d5db;
      border-radius: 0.75rem;
      transition: all 0.2s;
    }
    .form-group input:focus {
      outline: none;
      border-color: #4f46e5;
      ring: 2px solid #4f46e5;
    }
    .modal-close {
  color: #ffffff;
  background-color: #ef4444;
  font-size: 28px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

  .animate-fadeIn {
    animation: fadeIn .25s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px) scale(.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Better input styling for dynamic fields */
  #dynamicFormFields input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
    transition: all .2s ease;
    font-size: 15px;
  }

  #dynamicFormFields input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.15);
  }

  #dynamicFormFields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
  }

  /* Loading state */
  #payNowButton.loading {
    opacity: .8;
    pointer-events: none;
  }

  #payNowButton.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  /* =========================
IFRAME OVERLAY
========================= */
.iframe-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(5px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
  padding:15px;
}

/* CONTAINER */
.iframe-container{
  position:relative;
  width:100%;
  max-width:1200px;
  height:92vh;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,0.3);
  animation:fadeIn .25s ease;
}

/* IFRAME */
#externalIframe{
  width:100%;
  height:100%;
  border:none;
  background:#fff;
}

/* CLOSE BUTTON */
.iframe-close{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#000;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  z-index:10;
  transition:.2s;
}

.iframe-close:hover{
  transform:scale(1.08);
}

/* LOADER */
.iframe-loader{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background:#fff;
  z-index:5;
}

.spinner{
  width:55px;
  height:55px;
  border:5px solid #eee;
  border-top:5px solid #2563eb;
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin-bottom:15px;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:scale(.97);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* MOBILE */
@media(max-width:768px){
  .iframe-container{
    height:100vh;
    width:100%;
    border-radius:0;
  }
}
/* =========================
   MODERN PHONE INPUTS
========================= */

.modern-field {
  margin-bottom: 22px;
}

.modern-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  transition: all .25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.phone-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 5px rgba(99,102,241,.12);
  transform: translateY(-1px);
}

.country-code {
  padding: 0 14px;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid #e5e7eb;
  height: 56px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.modern-phone-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 16px;
  height: 56px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.modern-phone-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.input-helper {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  padding-left: 4px;
}

.modern-error {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
}

/* =========================
   BETTER CHECKBOX
========================= */

.same-number-box {
  background: linear-gradient(
    135deg,
    #eef2ff,
    #f5f3ff
  );
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  transition: all .25s ease;
}

.same-number-box:hover {
  border-color: #818cf8;
  transform: translateY(-1px);
}

.modern-checkbox {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

/* HIDE DEFAULT */
.modern-checkbox input {
  display: none;
}

/* CUSTOM BOX */
.checkbox-ui {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 10px;
  border: 2px solid #6366f1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(99,102,241,.12);
}

/* CHECK ICON */
.checkbox-ui i {
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: scale(.5);
  transition: all .2s ease;
}

/* ACTIVE STATE */
.modern-checkbox input:checked + .checkbox-ui {
  background: linear-gradient(
    135deg,
    #6366f1,
    #8b5cf6
  );
  border-color: #6366f1;
}

.modern-checkbox input:checked + .checkbox-ui i {
  opacity: 1;
  transform: scale(1);
}

/* TEXT AREA */
.checkbox-content {
  flex: 1;
}

.checkbox-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.checkbox-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

/* CLICK EFFECT */
.modern-checkbox:active .checkbox-ui {
  transform: scale(.95);
}

/* MOBILE */
@media (max-width: 640px) {

  .same-number-box {
    padding: 14px;
  }

  .checkbox-title {
    font-size: 14px;
  }

  .checkbox-desc {
    font-size: 12px;
  }

  .checkbox-ui {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}