/*************  CHECKOUT MODAL — DARK PREMIUM THEME  **************/

#paymentpopup .modal-content {
  border-radius: 21px !important;
  background: transparent;
  border: none;
}

.modal-dialog-main {
  position: relative;
  left: 0;
  margin: auto;
  right: 0;
  height: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.modal-dialog-main .modal-content {
  border: none;
}

.modal-dialog.modal-xl {
  background: #0c0c1d;
  border-radius: 20px;
  padding: 0;
  height: auto;
  box-shadow: 0 0 80px rgba(124,58,237,0.15), 0 25px 60px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 1000px;
  pointer-events: all;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- HEADER ---- */
.modal-header {
  background: linear-gradient(135deg, #1a0a3e 0%, #0d0025 50%, #0a0d2e 100%);
  width: 100%;
  display: inline-block;
  vertical-align: top;
  padding: 18px 0;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom: 1px solid rgba(124,58,237,0.3);
  position: relative;
}

.cart-container {
  width: 44px;
  height: 44px;
  background: rgba(124,58,237,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  margin-left: 15px;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.3);
}
.cart-container svg { fill: #a78bfa; }

h5.modal-title {
  float: left;
  width: 35%;
  font-size: 22px;
  color: #ffffff;
  padding: 7px 0 0 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-header ul {
  float: right;
  width: 530px;
  position: relative;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-header ul::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 140px;
  width: 168px;
  height: 1px;
  border: 1px solid rgba(255,255,255,0.2);
}

.modal-header ul::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 300px;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-right: none;
  border-top: none;
  transform: rotate(225deg);
}

.modal-header li {
  float: left;
  text-align: center;
  width: 225px;
  position: relative;
  z-index: 1;
}
.modal-header li span {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.modal-header li span h3 {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 11px !important;
  font-size: 13px;
  display: inline-block;
  vertical-align: top;
  font-weight: 600;
  background: rgba(124,58,237,0.2);
}
.modal-header li span h4 {
  font-weight: 400;
  font-size: 14px;
  margin-top: 5px;
  color: rgba(255,255,255,0.6);
}

.modal-header .active-full h3 {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff;
  border-color: #7c3aed !important;
  box-shadow: 0 0 15px rgba(124,58,237,0.4);
}
.modal-header .active-full h4 {
  color: #a78bfa;
}
.modal-header .active-lite h3 {
  color: #a78bfa;
  border-color: rgba(124,58,237,0.4) !important;
}

/* ---- CLOSE BUTTON ---- */
.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  font-weight: bold;
  box-sizing: content-box;
  padding: 0.25em;
  transition: color 0.2s;
}
.btn-close:hover { color: #fff; opacity: 1; }
.btn-close:focus { outline: 0; box-shadow: 0 0 0 0.25rem rgba(124,58,237,0.25); opacity: 1; }
.btn-close:disabled, .btn-close.disabled { pointer-events: none; user-select: none; opacity: 0.25; }
.btn-close::before {
  content: "\00d7";
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
}

/* ---- MODAL BODY ---- */
#paymentpopup .modal-body {
  background: #0c0c1d;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  padding: 20px;
}

/* ---- ORDER SUMMARY ---- */
h6.card-title {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

#paymentpopup .card {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  background: #111126;
}

#paymentpopup .card-body {
  color: #fff;
}

.col-sm-7.popup-left {
  width: 64%;
  display: inline-block;
  vertical-align: top;
}

.selected_plan_list {
  width: 100%;
}
.selected_plan_list h3 {
  color: rgba(255,255,255,0.6);
  display: inline-block;
  vertical-align: top;
  width: 100%;
  font-size: 14px;
}
.selected_plan_list h3 span { float: left; }
.selected_plan_list h3 strong { float: right; font-weight: 700; color: #fff; }

.selected_plan_list .add_to_order {
  color: #ffffff;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  font-weight: 900;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 10px 0;
  padding: 10px 0;
  padding-bottom: 0px;
}

.selected_plan_list h4 {
  color: rgba(255,255,255,0.6);
  display: inline-block;
  vertical-align: top;
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 10px 0;
  padding: 10px 0;
  padding-bottom: 0px;
}
.selected_plan_list h4 span { float: left; }
.selected_plan_list h4 strong { float: right; font-weight: 700; color: #fbbf24; }

.selected_plan_list a {
  width: 100%;
  text-align: center;
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  border-radius: 50px;
  color: #ffffff;
  font-size: 17px;
  padding: 8px 10px;
  font-weight: 800;
  transition: all 0.3s;
}
.selected_plan_list a:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: 0 6px 30px rgba(124,58,237,0.5);
  color: #fff;
}

.ordersummary .d-flex { flex-wrap: wrap; }

.modal-content { border-radius: 20px; }

/* ---- PRICE STRIKE ---- */
.strike-diagonal-price { position: relative; }
.strike-diagonal-price:before {
  position: absolute;
  content: "";
  left: 0;
  top: 45%;
  right: 0;
  border-top: 2px solid;
  border-color: #ef4444;
  transform: rotate(-155deg);
}
.strike { text-decoration: line-through; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---- LOADER ---- */
.loader {
  margin: auto;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
}
.loader::before, .loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #7c3aed;
  animation: prixClipFix 2s linear infinite;
}
.loader::after {
  border-color: #fbbf24;
  animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
  inset: 6px;
}

@keyframes rotate { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
@keyframes prixClipFix {
  0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
  25%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
  50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
  75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
  100%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}

/* ---- OFFER TIMER ---- */
.offer-timer {
  display: block;
  padding: 10px 16px;
  background: rgba(124,58,237,0.1);
  border-radius: 12px;
  border: 1px solid rgba(124,58,237,0.25);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin: 0 auto;
  width: 245px;
  margin-bottom: 15px;
  text-align: center;
}
.offer-timer span {
  font-weight: bold;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- ADDON CARD ---- */
.addon-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}
.addon-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 4px 20px rgba(124,58,237,0.15);
}
.addon-card.checked {
  border-color: #7c3aed;
  background: rgba(124,58,237,0.08);
  box-shadow: 0 4px 20px rgba(124,58,237,0.2);
}

.addon-header {
  display: flex;
  align-items: center;
  margin: -15px -15px 15px -15px;
  gap: 10px;
  background: rgba(124,58,237,0.08);
  padding: 10px 15px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.addon-header input { left: 0 !important; position: relative; }

.checkbox { margin-right: 1px; margin-top: 0; position: relative; display: flex; align-items: center; }
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: rgba(255,255,255,0.06);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.15);
  outline: none;
  transition: all 0.2s ease;
}
.checkbox input[type="checkbox"]:checked {
  background-color: #7c3aed;
  border-color: #7c3aed;
}
.checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.addon-title {
  color: #a78bfa;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
  flex-grow: 1;
  line-height: 1.2;
}

.price-label, .price-label2 {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
}
.price-label {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.2);
  background: rgba(251,191,36,0.08);
}

.addon-content { display: flex; gap: 20px; align-items: center; }
.addon-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.addon-details {
  flex-grow: 1;
  display: flex;
  min-height: 80px;
}
.addon-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  justify-content: space-between;
}
.addon-description strong { font-weight: bold; color: rgba(255,255,255,0.8); }

/* ---- PAY BUTTON ---- */
.pay-btn {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 10px 0;
  padding: 13px 10px;
  padding-bottom: 0px;
  width: 100%;
  text-align: center;
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  border-radius: 15px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
}
.pay-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: 0 6px 30px rgba(124,58,237,0.5);
}

/* ---- PLAY BUTTON ---- */
.play-button2 {
  display: block;
  position: absolute;
  align-items: center;
  bottom: 3px;
  right: 3px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 5px 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
  gap: 8px;
  transition: all 0.3s ease;
}
.play-button2:hover { background: linear-gradient(135deg, #6d28d9, #5b21b6); }
.play-button2:active { background: linear-gradient(135deg, #5b21b6, #4c1d95); }
.play-button2 i { font-size: 1rem; }

.form-check-label { cursor: pointer; }

/* ---- FASTSPRING EMBEDDED CHECKOUT ---- */
#fsc-embedded-checkout-container {
  margin-top: -131px;
  z-index: 9;
}

/* ---- MODAL HR ---- */
#paymentpopup hr {
  border-color: rgba(255,255,255,0.08);
  opacity: 0.5;
}

/* ---- FLAG BOX (voice compare) ---- */
#paymentpopup .flagBox {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
#paymentpopup .flagBox p {
  color: rgba(255,255,255,0.7);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 610px) {
  .modal-header ul { display: none !important; }
}
@media (max-width: 576px) {
  .modal-dialog { margin: 1.75rem auto; }
}
@media (max-width: 497px) {
  .addon-image { display: none !important; }
}

/* ---- VOICE COMPARE PLAYERS ---- */
.addon-voice-compare {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.addon-voice-player {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: default;
  transition: border-color 0.2s;
}
.addon-voice-player.avp-active {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.06);
}
.avp-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(124,58,237,0.3);
}
.avp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(124,58,237,0.45);
}
.avp-info {
  flex: 1;
  min-width: 0;
}
.avp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 5px;
}
.avp-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.avp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 2px;
  transition: width 0.15s linear;
}
.avp-time {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 30px;
  text-align: right;
}
@media (max-width: 576px) {
  .addon-voice-compare { flex-direction: column; }
}

/* ---- BACKDROP ---- */
#paymentpopup {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
