/* ============================================================ */
/*  IPTVSky Interac Gateway — Brand Variables                    */
/* ============================================================ */
:root {
  --ips-purple: #6D3DF5;
  --ips-purple-2: #8B5CF6;
  --ips-purple-dark: #4C1D95;
  --ips-purple-soft: #F3EEFF;
  --ips-purple-softer: #FAF7FF;
  --ips-ink: #181225;
  --ips-ink-soft: #3A3349;
  --ips-muted: #6B6378;
  --ips-line: #E6DBFF;
  --ips-line-soft: #EEE6FF;
  --ips-white: #FFFFFF;
  --ips-green: #25D366;
  --ips-green-dark: #128C7E;
  --ips-amber: #F59E0B;
}

/* ============================================================ */
/*  CHECKOUT PAYMENT BANNER                                       */
/* ============================================================ */
.iptvsky-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  background: var(--ips-white);
  border: 1px solid var(--ips-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.iptvsky-banner img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.iptvsky-banner strong {
  font-size: 15px;
  color: var(--ips-ink);
  font-weight: 700;
}

.iptvsky-banner p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ips-muted);
  line-height: 1.4;
}

/* ============================================================ */
/*  MODAL OVERLAY + MODAL BOX                                     */
/* ============================================================ */
.iptvsky-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(20, 14, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: iptvskyFadeIn 0.25s ease;
  transition: opacity 0.2s ease;
}

.iptvsky-modal-overlay.iptvsky-modal--gone {
  display: none;
}

@keyframes iptvskyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.iptvsky-modal {
  background: var(--ips-white);
  border-radius: 18px;
  padding: 36px 28px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.1);
  text-align: center;
  animation: iptvskyModalIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes iptvskyModalIn {
  from { transform: translateY(24px) scale(0.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.iptvsky-modal__icon {
  font-size: 48px;
  margin-bottom: 14px;
  line-height: 1;
}

.iptvsky-modal h2 {
  margin: 0 0 22px !important;
  font-size: 23px;
  font-weight: 800;
  color: var(--ips-ink) !important;
  letter-spacing: -0.02em;
}

.iptvsky-modal__list {
  list-style: none !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.iptvsky-modal__list li {
  font-size: 14px;
  color: var(--ips-ink-soft);
  line-height: 1.55;
  background: var(--ips-purple-softer);
  border: 1px solid var(--ips-line-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 !important;
}

.iptvsky-modal__list li strong {
  color: var(--ips-ink);
  font-weight: 700;
}

.iptvsky-modal__btn {
  display: block;
  width: 100%;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--ips-purple) 0%, var(--ips-purple-2) 100%);
  color: var(--ips-white) !important;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px -6px rgba(109, 61, 245, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.iptvsky-modal__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(109, 61, 245, 0.6);
}

.iptvsky-modal__btn:active {
  transform: translateY(0);
}

/* ============================================================ */
/*  PAYMENT CARD                                                  */
/* ============================================================ */
.iptvsky-card {
  margin: 28px 0;
  background: var(--ips-white);
  border: 1px solid var(--ips-line);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 12px 32px -8px rgba(109, 61, 245, 0.15);
  position: relative;
  overflow: hidden;
  animation: iptvskyCardIn 0.4s ease;
}

@keyframes iptvskyCardIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.iptvsky-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ips-purple) 0%, var(--ips-purple-2) 100%);
  border-radius: 16px 0 0 16px;
}

.iptvsky-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ips-line-soft);
}

.iptvsky-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.iptvsky-card h3 {
  margin: 0 !important;
  font-size: 19px;
  font-weight: 800;
  color: var(--ips-ink) !important;
  letter-spacing: -0.02em;
}

/* Numbered steps */
.iptvsky-steps {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: step;
}

.iptvsky-steps li {
  counter-increment: step;
  margin: 14px 0 !important;
  font-size: 14.5px;
  color: var(--ips-ink-soft);
  line-height: 1.55;
  position: relative;
  padding-left: 38px;
}

.iptvsky-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ips-purple), var(--ips-purple-2));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 10px -2px rgba(109, 61, 245, 0.4);
}

.iptvsky-steps li strong {
  color: var(--ips-ink);
  font-weight: 700;
}

/* Payment info box */
.iptvsky-box {
  border: 1px solid var(--ips-line);
  background: var(--ips-purple-softer);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iptvsky-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iptvsky-line strong {
  flex-shrink: 0;
  min-width: 100px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ips-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.iptvsky-copy {
  flex: 1;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ips-ink);
  word-break: break-all;
}

.iptvsky-copy.iptvsky-highlight {
  background: var(--ips-purple-soft);
  color: var(--ips-purple-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 15px;
}

.iptvsky-copy-btn {
  border: none;
  background: var(--ips-purple);
  color: #FFFFFF !important;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.iptvsky-copy-btn:hover {
  background: var(--ips-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(109, 61, 245, 0.4);
}

.iptvsky-copy-btn[disabled] {
  opacity: 0.95;
  cursor: default;
  background: var(--ips-green-dark);
  transform: none;
}

/* Soft privacy alert */
.iptvsky-alert {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
  color: var(--ips-ink-soft);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  border-left: 3px solid var(--ips-amber);
}

.iptvsky-alert strong {
  color: var(--ips-ink);
  font-weight: 700;
}

/* "I Sent My Interac" WhatsApp button */
.iptvsky-sent-btn {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--ips-green) 0%, var(--ips-green-dark) 100%) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: 12px;
  box-shadow:
    0 16px 36px -8px rgba(37, 211, 102, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}

.iptvsky-sent-btn:hover,
.iptvsky-sent-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -8px rgba(37, 211, 102, 0.65);
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.iptvsky-sent-btn__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  color: #FFFFFF;
}

.iptvsky-sent-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.iptvsky-sent-btn__text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF !important;
}

.iptvsky-sent-btn__text small {
  font-size: 12px;
  opacity: 0.92;
  font-weight: 500;
  margin-top: 3px;
  color: #FFFFFF;
}

/* Card hidden until modal accepted */
.iptvsky-card--hidden {
  display: none !important;
}

/* ============================================================ */
/*  MOBILE RESPONSIVE                                             */
/* ============================================================ */
@media (max-width: 640px) {
  .iptvsky-card {
    padding: 20px 18px 18px;
    margin: 20px 0;
  }
  .iptvsky-card__header {
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .iptvsky-card__logo {
    width: 38px;
    height: 38px;
  }
  .iptvsky-card h3 {
    font-size: 17px;
  }
  .iptvsky-steps li {
    padding-left: 34px;
    font-size: 14px;
  }
  .iptvsky-steps li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .iptvsky-box {
    padding: 12px;
    gap: 8px;
  }
  .iptvsky-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .iptvsky-line strong {
    min-width: 0;
  }
  .iptvsky-copy-btn {
    align-self: flex-start;
  }
  .iptvsky-modal {
    padding: 28px 22px 22px;
  }
  .iptvsky-modal h2 {
    font-size: 20px;
  }
  .iptvsky-modal__icon {
    font-size: 42px;
  }
  .iptvsky-modal__list li {
    font-size: 13.5px;
    padding: 11px 12px;
  }
  .iptvsky-sent-btn {
    padding: 14px 18px;
    gap: 12px;
  }
  .iptvsky-sent-btn__icon {
    width: 36px;
    height: 36px;
  }
  .iptvsky-sent-btn__text strong {
    font-size: 14px;
  }
  .iptvsky-sent-btn__text small {
    font-size: 11.5px;
  }
}
