/* Modernized & Uniquified VSL Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-glow: rgba(16, 185, 129, 0.35);
  --color-accent: #ef4444;
  --color-accent-dark: #dc2626;
  --color-accent-glow: rgba(239, 68, 68, 0.35);
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-bg-page: #f8fafc;
  --color-card-bg: #ffffff;
  --color-border: #e2e8f0;
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-elevated: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f6f8fa 50%, #edf2f7 100%);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
}

body.noscroll {
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

html.is-locked,
html.is-locked body {
  height: calc(var(--window-inner-height, 100vh) - 1px);
  overflow: hidden;
}

.hide {
  display: none !important;
}

/* Header */
.main_header {
  margin: 20px auto 24px;
  padding: 0 16px;
  max-width: 860px;
  text-align: center;
}

.main_header img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  transition: transform 0.3s ease;
}

/* Video Section & Container */
.vsl-wrapper {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 0 16px;
}

#container_video {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

#vidblock {
  width: 100%;
  height: 100%;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

#video {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  background: #000000;
  cursor: pointer;
  object-fit: contain;
}

/* Desktop & Mobile Fullscreen Mode */
#container_video.fullscreen {
  background: #000000 !important;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#container_video.fullscreen #vidblock {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

#container_video.fullscreen #video {
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: auto !important;
  object-fit: contain !important;
  background: #000000 !important;
}

/* Video Close Button */
#close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s ease, background 0.2s ease;
}

#close:hover {
  transform: scale(1.1);
  background: #ffffff;
}

#close::before,
#close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
}

#close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#container_video.fullscreen #close {
  display: flex !important;
  position: fixed !important;
  top: 24px !important;
  right: 28px !important;
  width: 48px !important;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  z-index: 1000001 !important;
}

#container_video.fullscreen #close:hover {
  background: rgba(239, 68, 68, 0.95) !important;
  border-color: rgba(239, 68, 68, 1) !important;
  transform: scale(1.1) !important;
}

#container_video.fullscreen #close::before,
#container_video.fullscreen #close::after {
  background: #ffffff !important;
  width: 22px !important;
  height: 2.5px !important;
}

/* Overlays: Play, Continue, Popup */
#open-video,
#popup,
#play {
  display: none;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
  z-index: 5;
  height: fit-content;
  max-height: 160px;
  cursor: pointer;
}

#play {
  display: flex;
  align-items: center;
  justify-content: center;
}

#open-video {
  align-items: center;
  justify-content: center;
}

#popup {
  align-items: center;
  justify-content: center;
}

#play > div {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 28px 18px;
  margin: 0 auto;
  width: 85%;
  max-width: 420px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 15px 35px var(--color-primary-glow), 0 0 0 6px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  animation: modernPulse 1.8s infinite ease-in-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#play > div:hover {
  transform: scale(1.03);
}

#play h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#play h4:first-child {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 6px;
  font-weight: 600;
}

#open-video > div {
  position: relative;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 28px;
  margin: 0 auto;
  width: 85%;
  max-width: 420px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 15px 35px var(--color-accent-glow), 0 0 0 6px rgba(239, 68, 68, 0.25);
  cursor: pointer;
  animation: modernPulse 1.8s infinite ease-in-out;
}

#open-video h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#popup > div {
  position: relative;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 28px;
  margin: 0 auto;
  width: 85%;
  max-width: 420px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 15px 35px var(--color-accent-glow), 0 0 0 6px rgba(239, 68, 68, 0.25);
  cursor: pointer;
  animation: modernPulse 1.8s infinite ease-in-out;
}

#popup h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#popup h2:first-child {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 600;
}

/* CTA Overlay Button */
.cta-overlay-btn,
#ctaOverlayBtn,
#cta-link {
  display: block;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 30;
  padding: 16px 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(16, 185, 129, 0.35);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease, box-shadow 0.2s ease;
  white-space: normal;
  max-width: min(90%, 480px);
  width: max-content;
  animation: modernPulse 1.8s infinite ease-in-out;
}

.cta-overlay-btn.show,
#ctaOverlayBtn.show,
#cta-link.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.cta-overlay-btn.hide-anim,
#ctaOverlayBtn.hide-anim,
#cta-link.hide-anim {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(20px) !important;
}

.cta-overlay-btn:hover,
#ctaOverlayBtn:hover,
#cta-link:hover {
  transform: translateX(-50%) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(16, 185, 129, 0.5);
}

.cta-overlay-btn:active,
#ctaOverlayBtn:active,
#cta-link:active {
  transform: translateX(-50%) scale(0.98);
}

/* Video Progress Bar */
#progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 10;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  transition: width 0.1s ease;
}

@keyframes modernPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

/* Form Styles & Card Layout */
#order {
  display: none;
  margin: 30px auto 50px;
  padding: 0 16px;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.formFb {
  box-sizing: border-box;
  background: var(--color-card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.formFb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6, var(--color-primary));
}

.formFb__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.formFb__img {
  max-width: 190px;
  margin: 10px auto 16px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.formFb__img:hover {
  transform: translateY(-4px);
}

.formFb__img img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  object-fit: contain;
}

/* Price Section */
.formFb__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  width: 100%;
}

.formFb__price--txt {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.formFb__price--p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}

.formFb__price--old {
  font-size: 1.3rem;
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 600;
}

.formFb__price--new {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

/* Countdown Timer */
.formFb__timer {
  margin: 0 0 18px;
  text-align: center;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 30px;
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.formFb__timer--label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.timer {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 1px;
}

/* Form Inputs */
.formFb__inputs {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.formFb__inputs label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
  display: block;
}

.formFb__inputs input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--color-text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.formFb__inputs input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.formFb__inputs input::placeholder {
  color: #94a3b8;
}

/* Submit Button */
.formFb__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formFb__btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.3) 25%,
    rgba(255, 255, 255, 0) 30%
  );
  transform: rotate(30deg);
  animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translate(-100%, -100%) rotate(30deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(30deg);
  }
}

.formFb__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -4px rgba(16, 185, 129, 0.55);
}

.formFb__btn:active {
  transform: translateY(1px);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  width: 100%;
  color: var(--color-text-muted);
  font-size: 0.825rem;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  .main_header {
    margin: 12px auto 16px;
    padding: 0 10px;
  }

  .vsl-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
  }

  #container_video {
    border-radius: 14px;
  }

  #play > div,
  #open-video > div,
  #popup > div {
    width: 90%;
    padding: 12px 18px;
  }

  #play h4 {
    font-size: 1rem;
  }

  #play h4:first-child {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .cta-overlay-btn,
  #ctaOverlayBtn,
  #cta-link {
    font-size: 0.95rem;
    padding: 12px 20px;
    bottom: 35px;
    max-width: 92%;
  }

  #container_video.fullscreen #close {
    top: 12px !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 12px !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    width: 38px !important;
    height: 38px !important;
  }

  #container_video.fullscreen #close::before,
  #container_video.fullscreen #close::after {
    width: 18px !important;
    height: 2px !important;
  }

  #close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .formFb {
    padding: 1.6rem 1.2rem;
    border-radius: 16px;
  }

  .formFb__price--new {
    font-size: 2rem;
  }

  .formFb__btn {
    height: 52px;
    font-size: 1.05rem;
  }
}
