html { scroll-behavior: smooth; }

.hero-custom-size {
  font-size: 56px; /* سایز بهینه در موبایل */
}
@media (min-width: 640px) {
  .hero-custom-size {
      font-size: 80px; /* سایز در تبلت کوچک */
  }
}
@media (min-width: 768px) {
  .hero-custom-size {
      font-size: 120px; /* سایز در دسکتاپ */
  }
}

.card-gradient-overlay {
  background: linear-gradient(to top, rgba(21,16,34,0.95) 0%, rgba(21,16,34,0.6) 50%, rgba(21,16,34,0) 100%);
}

details summary::-webkit-details-marker { display: none; }

/* Pulse badge (GPU-Composited) */
.pulse-badge-container {
  position: absolute; top: 15px; left: 15px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  background: rgba(20,20,30,0.6); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-10px); opacity: 0; animation: slideInDown 0.5s forwards 0.2s;
}
.pulse-dot {
  width: 10px; height: 10px; background-color: #ef4444; border-radius: 50%;
  box-shadow: 0 0 10px rgba(239,68,68,0.8); animation: pulse-red-dot 1.5s infinite;
  will-change: transform, opacity;
}
@keyframes pulse-red-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes slideInDown { to { transform: translateY(0); opacity: 1; } }

/* Timer */
.timer-text { font-family: 'Courier New', monospace; font-weight: bold; color: #fff; font-size: 0.9rem; letter-spacing: 1px; }

/* Floating Hero Icon (GPU-Composited) */
@keyframes float-icon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.hero-icon-box {
  animation: float-icon 5s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 0 25px rgba(73,19,236,0.45));
  background: rgba(255,255,255,0.03); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* FAQ Accordion */
.faq-item { overflow: hidden; transition: all 0.3s ease; }
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0,1,0,1), opacity 0.4s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease;
}
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* افکت نوری جذاب برای دکمه‌ها */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* رفع مشکل مخفی شدن متن طولانی در توضیحات (Line Clamp) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

/* ========================================= */
/* Premium VIP Cards & Custom Themes */
/* ========================================= */

/* استایل پیش‌فرض VIP برای تم روشن (خوانایی بالا و لوکس) */
html:not(.dark) .group .vip-gold-bg {
    background-color: #FAFAFA !important;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.02), 0 10px 40px -10px rgba(251,191,36,0.3);
}
html:not(.dark) .group .vip-silver-bg {
    background-color: #FFFFFF !important;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.01), 0 10px 40px -10px rgba(148,163,184,0.2);
}
html:not(.dark) .group .vip-title { color: #0F172A !important; }
html:not(.dark) .group .vip-desc { color: #475569 !important; }
html:not(.dark) .group .vip-box { background-color: #F1F5F9 !important; border-color: #E2E8F0 !important; }

/* ----------------------------------------- */
/* ویژگی جذاب: تاریک مطلق (Force Dark) */
/* این کارت در هر دو تم روشن و تاریک، مشکی خالص، عمیق و لوکس می‌ماند */
/* ----------------------------------------- */
/* بدنه کارت */
.theme-force-dark.product-card,
.theme-force-dark .vip-gold-bg,
.theme-force-dark .vip-silver-bg,
html:not(.dark) .group.theme-force-dark .bg-\[\#110c1c\],
html:not(.dark) .group.theme-force-dark .bg-\[\#161224\],
html:not(.dark) .theme-force-dark.product-card {
    background-color: #050505 !important; /* مشکی بسیار عمیق */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 20px 40px -10px rgba(0,0,0,0.9) !important;
    border-color: #1a1a1a !important;
}

/* متون */
.theme-force-dark .vip-title,
html:not(.dark) .group.theme-force-dark h3,
html:not(.dark) .group.theme-force-dark .text-slate-900,
html:not(.dark) .theme-force-dark .vip-title { 
    color: #ffffff !important; 
}

.theme-force-dark .vip-desc,
html:not(.dark) .group.theme-force-dark p.text-slate-600,
html:not(.dark) .group.theme-force-dark .text-slate-500,
html:not(.dark) .theme-force-dark .vip-desc { 
    color: #a1a1aa !important; /* طوسی روشن و خوانا (Zinc 400) */
}

/* باکس‌های داخلی (قیمت‌ها و دکمه‌های ثانویه) */
.theme-force-dark .vip-box,
html:not(.dark) .group.theme-force-dark .vip-box,
html:not(.dark) .group.theme-force-dark .bg-slate-100 { 
    background-color: #121212 !important; 
    border-color: #222222 !important; 
}

/* پس زمینه تصویر */
.theme-force-dark .vip-img-bg,
html:not(.dark) .group.theme-force-dark .vip-img-bg,
html:not(.dark) .group.theme-force-dark .bg-slate-100.shrink-0 { 
    background-color: #000000 !important; 
}

/* گرادیانت روی تصویر */
.theme-force-dark .vip-img-overlay {
    background: linear-gradient(to top, #050505, transparent) !important;
}

/* ========================================= */
/* استایل اختصاصی بج پیشنهاد ویژه بالای فرم همکاری */
/* ========================================= */
.coop-fomo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    margin-bottom: 14px;
    background: rgba(73, 19, 236, 0.08);
    border: 1px solid rgba(73, 19, 236, 0.3);
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(73, 19, 236, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
}
.dark .coop-fomo-badge {
    background: rgba(73, 19, 236, 0.15);
    border-color: rgba(165, 180, 252, 0.35);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(73, 19, 236, 0.35);
}
.coop-fomo-badge .fire-icon { 
    color: var(--primary, #4913ec); 
    animation: coop-flame 1.5s infinite alternate; 
}
.dark .coop-fomo-badge .fire-icon { 
    color: #a5b4fc; 
}
@keyframes coop-flame { 
    0% { transform: scale(0.95); opacity: 0.85; } 
    100% { transform: scale(1.15); opacity: 1; } 
}
.coop-fomo-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary, #4913ec);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary, #4913ec);
    animation: coop-blink 1s infinite;
}
.dark .coop-fomo-badge .dot {
    background-color: #818cf8;
    box-shadow: 0 0 10px #818cf8;
}
@keyframes coop-blink { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.3; transform: scale(0.7); } 
}

/* افکت جمع‌شدن نرم محتوای میانی ویترین هنگام پخش تیزر */
.showcase-collapsible-content {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease, margin 0.4s ease;
  overflow: hidden;
}

.showcase-card.is-media-playing .showcase-collapsible-content {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

/* انیمیشن تپنده و درخشان دکمه نمونه‌کارها هنگام پخش تیزر در ویترین */
@keyframes showcasePulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
  }
}

.showcase-card.is-media-playing .showcase-gallery-btn {
  animation: showcasePulseGlow 1.8s infinite ease-in-out;
  color: #ffffff !important;
}