/* =========================
    TYPOGRAPHY
  ========================= */
body,
p,
li {
  font-family: "Inter", sans-serif;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

h3,
h4 {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  margin: 6px 0 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

body[data-lang="fa"] .section-sub {
  text-align: right;
}

/* =========================
    GRID SYSTEM
  ========================= */
.grid-responsive {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.grid-auto-fit-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-auto-fit-220 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-auto-fit-320 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-auto-fit-420 {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: 1fr; /* هر ردیف فقط یک کارت */
    gap: 35px; /* فاصله بین کارت‌ها */
}


.grid-auto-fill-260 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
}

.licenses-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  margin-top: 28px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  margin-top: 28px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(380px, 1fr);
    gap: 24px;
}

/* تبلت */
@media (max-width: 1024px) {
    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل */
@media (max-width: 600px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive grids */
@media (max-width: 900px) {
  .grid-licenses,
  .grid-3-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .feat-card {
    flex: 0 0 45%;
  }
}

@media (max-width: 600px) {
  .grid-responsive,
  .grid-licenses {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feat-card {
    flex: 0 0 90%;
    margin: 0 auto;
  }
  body[data-lang="fa"] .faq-card h4,
  body[data-lang="fa"] .faq-card p {
    text-align: right;
  }
}

/* =========================
    FORMS & CARDS
  ========================= */
.ptt-form-card,
.card-base,
.license-card,
.faq-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0)
  );
  border-radius: var(--radius-base);
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ptt-form-card {
  max-width: 480px;
  margin: 20px auto;
  padding: 32px 28px;
}

.ptt-form-card .ptt-form-title,
.license-card h4,
.faq-card h4 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.ptt-form-card .ptt-form-sub {
  color: var(--color-muted);
}

.card-base:hover,
.license-card:hover,
.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(--color-neon-shadow);
}

/* Responsive form & card */
@media (max-width: 600px) {
  .ptt-form-card,
  .license-card,
  .card-base {
    padding: 20px;
  }
  .ptt-form-card .ptt-form-title,
  .license-card h4 {
    font-size: 1.6rem;
  }
  .faq-card h4 {
    font-size: 1.15rem;
  }
  .ptt-form-card .ptt-form-sub,
  .license-card .price,
  .license-card .ribbon {
    font-size: 0.9rem;
  }
}

/* =========================
    BUTTONS
  ========================= */
.ptt-btn-primary,
.card-btn,
.btn-download,
.card-btn.add-cart,
.btn-gateway {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-base);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ptt-btn-primary:hover,
.card-btn:hover,
.btn-download:hover,
.card-btn.add-cart:hover,
.btn-gateway:hover {
  background: var(--color-accent-alt);
  box-shadow: var(--color-neon-shadow);
  transform: translateY(-2px);
}

/* Danger button */
.ptt-btn-danger {
  background: #ff4d4d;
  color: #fff;
}

.ptt-btn-danger:hover {
  background: #ff1a1a;
  box-shadow: var(--color-neon-shadow);
}

/* =========================
    INPUT / SELECT / TEXTAREA
  ========================= */
.ptt-input,
.ptt-select,
.ptt-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-base);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--color-input-bg);
  color: var(--color-input-text);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.ptt-input:focus,
.ptt-select:focus,
.ptt-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 6px rgba(107, 92, 255, 0.25);
}

/* ========================= LICENSE CARDS ========================= */
.license-card.featured {
  border-color: rgba(107, 92, 255, 0.4);
}
.ribbon {
  position: absolute;
  right: 0;
  top: 0;
  padding: 6px 14px;
  font-weight: bold;
  font-size: 13px;
  border-bottom-left-radius: 8px;
  color: #fff;
  background: rgba(107, 92, 255, 0.4);
}
.ribbon-active {
  background: #28a745;
}
.ribbon-inactive {
  background: #ffc107;
  color: #000;
}
.ribbon-expired {
  background: #dc3545;
}
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff8c00;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 2;
}
.price {
  margin: 12px 0;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  display: block;
}
.new-price {
  color: #4caf50;
  font-size: 1.4rem;
  font-weight: bold;
}
/* =========================
    FEATURES SLIDER
  ========================= */
.features-wrap {
  position: relative;
  padding: 0;
}

.feat-window {
  width: 100%;
  overflow: hidden;
  padding: 0 30px; /* فاصله واقعی محتوا */
}

.feat-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
  flex-wrap: nowrap;
}
.feat-card {
  flex: 0 0 300px;
  margin: 20px;
}
.feat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

/* فاصله برابر */
.feat-arrow.left {
  left: 12px;
}

.feat-arrow.right {
  right: -2px;
}


@media (max-width: 900px) {
  .feat-card {
    flex: 0 0 45%;
  }
}
@media (max-width: 600px) {
  .feat-window {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .feat-card {
    flex: 0 0 90%;
    margin: 0 auto;
  }
  .feat-arrow {
    display: none;
  }
}

/* =========================
    MODAL / POPUP
  ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-base);
  padding: 28px 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(107, 92, 255, 0.25);
  position: relative;
  animation: modalFade 0.3s ease;
  color: #fff;
  font-family: inherit;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--color-accent);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.modal-close:hover {
  opacity: 0.6;
}

.payment-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
#payment-lic-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
#payment-lic-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-top: 6px;
}
.btn-gateway {
  margin-top: 20px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
}

/* =========================
    PASSWORD FIELD
  ========================= */
.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 40px;
}
.password-field .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #555;
  font-size: 16px;
}
.password-field .toggle-password:focus {
  outline: none;
}

/* =========================
    CHECKBOXES
  ========================= */
.checkbox-group {
  margin: 10px 0;
}

.ptt-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #333;
  user-select: none;
}
.ptt-checkbox-label input[type="checkbox"] {
  display: none;
}
.ptt-checkbox-label .custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #888;
  border-radius: 5px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  background-color: #fff;
}
.ptt-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #4caf50;
  border-color: #4caf50;
}
.ptt-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ptt-checkbox-label:hover .custom-checkbox {
  border-color: #4caf50;
}

/* =========================
    STAR RATING
  ========================= */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.5rem;
  cursor: pointer;
}
.star {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}
.star.hover,
.star.selected {
  color: #ffcc00;
}

/* =========================
    THEME / CROSSHAIR SEARCH BOX
  ========================= */
.theme-search-box,
.crosshair-search-box,
.macro-search-box{
  max-width: 400px;
  margin: 0 auto 25px auto;
  display: block;
  padding: 12px 14px;
  font-size: 1rem;
  background: var(--color-input-bg);
  color: var(--color-input-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-base);
  transition: all 0.25s ease;
  text-align: center;
}
.theme-search-box:focus,
.crosshair-search-box:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(107, 92, 255, 0.35);
}
@media (max-width: 600px) {
  .theme-search-box,
  .crosshair-search-box {
    width: 100%;
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

/* =========================
    CROSSHAIR PREVIEW
  ========================= */
.crosshair-preview {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 10px auto;
}
.crosshair-preview .line {
  position: absolute;
}

/* Card styling */
.card-base.tutorial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* دکمه ها همیشه پایین */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 15px;
  min-height: 380px; /* ارتفاع ثابت تا دکمه‌ها تراز باشند */
}

/* Card content */
.card-base.tutorial-card h4,
.card-base.tutorial-card p {
  margin: 5px 0;
  flex-shrink: 0;
}

/* Buttons container */
.card-base.tutorial-card > div {
  margin-top: auto; /* push buttons to bottom */
  display: flex;
  justify-content: center; /* وسط افقی */
  gap: 10px;
  flex-wrap: wrap;
}

/* =================================================
   PRODUCT GRID
================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  justify-items: center;
  margin-top: 56px;
}

/* =================================================
   PRODUCT CARD (BASE)
================================================= */
.card-base.product-card {
  width: 100%;
  max-width: 320px;
  min-width: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.015)
  );

  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);

  box-shadow:
    0 14px 40px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card-base.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.07);
}

/* =================================================
   IMAGE AREA (LOGO / BADGE OPTIMIZED)
================================================= */
.product-img-box {
  width: 100%;
  height: 260px;
  padding: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  isolation: isolate;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.03) 60%,
      transparent 100%
    );
}

/* soft glow */
.product-img-box::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background: radial-gradient(
    circle,
    rgba(255,215,0,0.35),
    transparent 70%
  );
  filter: blur(18px);
  z-index: -1;
}

/* IMAGE ITSELF */
.product-img-box img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;

  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.6));
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.15);
}

/* =================================================
   PRODUCT CONTENT
================================================= */
.product-card h3 {
  margin: 20px 16px 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  line-height: 1.25;
}

.product-card p {
  margin: 0 18px 16px;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.5;
}

/* =================================================
   PRICE
================================================= */
.product-card .price {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-alt);
  letter-spacing: 0.4px;
}

/* =================================================
   CTA BUTTON
================================================= */
.product-card .btn-primary {
  width: calc(100% - 44px);
  margin-bottom: 24px;
  padding: 14px 0;

  border-radius: 16px;
  border: none;

  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-alt)
  );

  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.product-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  filter: brightness(1.08);
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 900px) {
  .product-grid {
    gap: 24px;
  }

  .card-base.product-card {
    max-width: 300px;
    min-width: 300px;
  }

  .product-img-box {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .card-base.product-card {
    max-width: 260px;
    min-width: 260px;
  }

  .product-img-box {
    height: 200px;
  }

  .product-card h3 {
    font-size: 1.05rem;
  }

  .product-card p {
    font-size: 0.88rem;
  }

  .product-card .price {
    font-size: 1.05rem;
  }
}




.items-author{
	font-size:0.85rem;
	color:#666;
	margin-bottom:8px;
}
