:root {
  --primary: #FD37A0;
  --background: #000000;
  --text: #FFFFFF;
  --accent: #00BCE7;
  --box-bg: rgb(13, 15, 19);
  --box-border: rgb(43, 43, 43);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

#video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
}

#video-background-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--accent);
}

header h1 {
  font-family: 'Anton', sans-serif;
  font-size: 4rem;
  color: var(--accent);
}

.logo {
  width: 120px;
  margin: 0 auto 20px;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.left-section, .right-section {
  flex: 1 1 48%;
  min-width: 320px;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .left-section, .right-section {
    flex: 1 1 100%;
  }
}

.video-preview img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
  margin-bottom: 1.5rem;
}

.quote {
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.info, form, .faq-box details {
  background: var(--box-bg);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  border: 1px solid var(--box-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}



label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--box-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(253, 55, 160, 0.3);
}

input::placeholder {
  color: #888;
  opacity: 1;
}

.input-icon-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon-wrapper input {
  padding-left: 2.5rem; /* جا برای آیکون */
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.how-to-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.howto-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.howto-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.how-to-step p {
  margin: 0;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}



.submit-btn, .tw-count-btn {
  background: var(--primary);
  border: none;
  padding: 1rem;
  width: 100%;
  color: var(--text);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-btn:hover, .tw-count-btn:hover {
  transform: scale(0.96);
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  padding: 2rem 1rem;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
}
.toast-message.show {
  opacity: 1;
}


@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#paymentPopup .popup-inner {
  animation: popupFadeIn 0.35s ease forwards;
  transform-origin: center;
  opacity: 0; /* حالت اولیه قبل از اجرا */
}

.faq-box details {
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 10px;
  padding: 1.2rem 1.2rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Remove native marker */
.faq-box summary {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-box summary::-webkit-details-marker {
  display: none;
}
.faq-box summary::marker {
  content: "";
}

/* Hover effect */
.faq-box summary:hover {
  color: var(--primary);
}

/* + and − icon */
.faq-box summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-box details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

/* FAQ content animation */
.faq-box details > *:not(summary) {
  overflow: hidden;
  height: 0;
  display: none;
}


.faq-box p {
  margin-top: 0.75rem;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}


h2, h3 {
  font-family: 'Poppins', 'Poppins Placeholder', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 2.4px !important;
  line-height: 19.2px !important;
  text-decoration: none !important;
  color: rgb(253, 55, 160) !important;
  white-space: pre-wrap !important;
  word-spacing: 0px !important;
}

/* Expand animation */
@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popupFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

#paymentPopup .popup-inner {
  animation: popupFadeIn 0.3s ease forwards;
  transform-origin: center;
}

@media (max-width: 480px) {
  #paymentPopup .popup-inner {
    max-width: 90vw !important;
    padding: 1.25rem !important;
    font-size: 0.95rem;
  }

  #paymentPopup .tw-popup {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  #paymentPopup .tw-popup code {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .right-section {
    order: -1; /* بیاد بالاتر از left-section */
  }

  .left-section {
    order: 1;
  }
}
@media screen and (max-width: 480px) {
  h2, h3 {
    font-size: 16px !important;
    letter-spacing: 1.8px;
    line-height: 1.3;
  }
}