/* ================= ROOT ================= */

:root{
  --gold:#ffcc00;

  --blue1: rgba(1,98,136,0.88);
  --blue2: rgba(0,71,99,0.82);
  --dark: rgba(13,28,34,0.92);

  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);

  --text:#e5e7eb;
  --muted: rgba(255,255,255,0.7);
}

/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

/* ================= BODY ================= */

body{
  min-height:100vh;
  max-width: 100vw;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
  color:var(--text);
  overflow-x:hidden;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url("images/Hero-imggg.jpg");

  background-size:cover;
  background-position:center;
  position:relative;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, iframe {
  max-width: 100%;
}

body::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    var(--blue1),
    var(--blue2),
    var(--dark)
  );
  z-index:0;
}

body::after{
  content:'';
  position:absolute;
  width:420px;
  height:420px;
  background:rgba(255,204,0,0.12);
  border-radius:50%;
  filter:blur(120px);
  top:-120px;
  right:-120px;
  z-index:0;
}

/* ================= CONTAINER ================= */

.checkout-container{
  width: min(1000px, 100%);
  max-width: 100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;

  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(24px);

  border-radius:28px;
  border:1px solid var(--border);

  box-shadow:0 20px 60px rgba(0,0,0,0.35);

  position:relative;
  z-index:2;
}

/* ================= LEFT ================= */

.left{
  padding:40px;
}

.left, .right {
  min-width: 0;
}

.badge{
  display:inline-block;
  background:rgba(255,204,0,0.12);
  color:var(--gold);
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  margin-bottom:15px;
}

h1{
  font-size:28px;
  margin-bottom:10px;
}

p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:25px;
}

/* ================= COURSE BOX ================= */

.course-box{
  background:rgba(255,255,255,0.04);
  padding:20px;
  border-radius:18px;
  margin-bottom:20px;
  border:1px solid var(--border);
  transition:0.3s ease;
}

.course-box:hover{
  transform:translateY(-3px);
  border-color:rgba(255,204,0,0.25);
}

.price{
  font-size:24px;
  color:var(--gold);
  font-weight:600;
}

/* ================= FEATURES ================= */

.features{
  margin-top:20px;
}

.features li{
  list-style:none;
  margin:10px 0;
  color:var(--muted);
  font-size:14px;
}

.features i{
  color:var(--gold);
  margin-right:8px;
}

/* ================= RIGHT ================= */

.right{
  padding:40px;
  background:rgba(255,255,255,0.03);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:15px;
}

/* ================= PAYMENT BOX ================= */

.payment-box{
  background:rgba(255,255,255,0.04);
  padding:25px;
  border-radius:18px;
  border:1px solid var(--border);
  transition:0.3s ease;
}

.payment-box:hover{
  transform:translateY(-3px);
  border-color:rgba(255,204,0,0.2);
}

/* LABEL */

label{
  font-size:13px;
  color:var(--muted);
}

/* INPUT */

input{
  width:100%;
  padding:12px;
  margin-top:5px;
  margin-bottom:15px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  background:rgba(0,0,0,0.25);
  color:white;
  transition:0.3s ease;
}

input:focus{
  border-color:rgba(255,204,0,0.6);
  box-shadow:0 0 0 4px rgba(255,204,0,0.12);
}

/* ================= BUTTON ================= */

.payBtn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  background:#ffcc00;
  color:#08131b;
  font-weight:700;
  cursor:pointer;
  transition:0.3s ease;
  box-shadow:0 10px 30px rgba(255,204,0,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.payBtn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(255,204,0,0.35);
}

.payBtn:active{
  transform:scale(0.98);
}

.payBtn.loading{
  opacity:0.8;
  pointer-events:none;
}

/* ================= NOTE ================= */

.note{
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
  text-align:center;
}

/* ================= LOADING / SUCCESS ================= */

.state-screen{
  position:fixed;
  inset:0;
  background:rgba(13,28,34,0.92);
  backdrop-filter:blur(12px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:15px;
  z-index:9999;
  text-align:center;
  padding:20px;
}

.hidden{
  display:none;
}

.loader{
  width:55px;
  height:55px;
  border-radius:50%;
  border:4px solid rgba(255,255,255,0.1);
  border-top:4px solid var(--gold);
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

.checkmark{
  font-size:70px;
  color:#22c55e;
  animation:pop 0.4s ease;
}

@keyframes pop{
  0%{ transform:scale(0); }
  80%{ transform:scale(1.2); }
  100%{ transform:scale(1); }
}

.success-btn{
  margin-top:20px;
  padding:12px 20px;
  border-radius:12px;
  background:linear-gradient(90deg,#016288,var(--gold));
  color:white;
  text-decoration:none;
  font-weight:600;
  transition:0.3s ease;
}

.success-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.1);
}

/* ================= PAYPAL FIX (IMPORTANT) ================= */

#paypal-button-container{
  width:100%;
  min-height:55px;
  margin-top:15px;
  position:relative;
  z-index:50;
}

#paypal-button-container iframe{
  min-height:45px;
  width:100%;
}

/* RESPONSIVE */

@media(max-width:900px){
  .checkout-container{
    grid-template-columns:1fr;
  }
}

/* ================= LOGIN POPUP ================= */

.login-popup{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,0.65);
  backdrop-filter:blur(10px);

  display:flex;
  justify-content:center;
  align-items:center;

  z-index:99999;

  padding:20px;
}

.login-popup-box{
  width:100%;
  max-width:420px;

  background:rgba(255,255,255,0.08);

  border:1px solid rgba(255,255,255,0.12);

  backdrop-filter:blur(24px);

  border-radius:28px;

  padding:40px 30px;

  text-align:center;

  box-shadow:0 20px 60px rgba(0,0,0,0.35);

  animation:popupShow 0.35s ease;
}

.login-icon{
  width:80px;
  height:80px;

  margin:auto;
  margin-bottom:20px;

  border-radius:50%;

  background:rgba(255,204,0,0.12);

  display:flex;
  justify-content:center;
  align-items:center;
}

.login-icon i{
  font-size:38px;
  color:var(--gold);
}

.login-popup-box h2{
  font-size:28px;
  margin-bottom:10px;
}

.login-popup-box p{
  color:var(--muted);
  margin-bottom:30px;
  line-height:1.6;
}

.login-popup-buttons button{
  width:100%;

  padding:14px;

  border:none;

  border-radius:14px;

  background:linear-gradient(
    90deg,
    #016288,
    var(--gold)
  );

  color:white;

  font-weight:600;

  cursor:pointer;

  transition:0.3s ease;
}

.login-popup-buttons button:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
}

@keyframes popupShow{

  from{
    opacity:0;
    transform:translateY(20px) scale(0.95);
  }

  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.hidden{
  display:none !important;
}