/* نام کلاس را مطابق کلاس خودتان در HTML ست کنید */
.counter {
    display: inline-block; /* یا inline */
    font-family: inherit;  /* اجبار به ارث‌بری فونت اصلی سایت */
    font-size: inherit;    /* اجبار به ارث‌بری سایز اصلی */
    font-weight: bold;     /* یا هر مقداری که قبلاً داشتید */
    min-width: 1ch;        /* جلوگیری از پرش متن هنگام تغییر اعداد */
    font-variant-numeric: tabular-nums; /* اگر فونت شما پشتیبانی کند، اعداد را هم‌عرض نگه می‌دارد */
}

/* Particles*/
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
.particle-area{
      position: relative;
    height: 500px; /* ارتفاع سکشن */
    overflow: hidden;
}

/* ایجاد فضای لازم برای انیمیشن در المان اکتیو */
.pricing-active {
    position: relative;
    border: none !important; /* حذف Border ثابت قبلی برای جایگزینی با انیمیشن */
    z-index: 0;
    overflow: hidden; /* برای جلوگیری از بیرون زدگی لایه چرخان */
    background: #161618; /* رنگ پس‌زمینه کارت شما */
}

/* لایه چرخان رنگی */
.pricing-active::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    /* ایجاد گرادینت با رنگ اصلی بنفش شما */
    background-image: conic-gradient(transparent, #6C58C9, #a897ff, transparent 30%);
    animation: rotate-border 4s linear infinite;
}

/* لایه رویی برای ایجاد ضخامت ۲ پیکسل */
.pricing-active::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px; /* ضخامت حاشیه */
    top: 2px;
    right: 2px;
    bottom: 2px;
    background: #161618; /* دقیقا همرنگ پس‌زمینه کارت */
    border-radius: inherit; /* حفظ انحنای لبه‌ها */
}

/* انیمیشن چرخش */
@keyframes rotate-border {
    100% {
        transform: rotate(1turn);
    }
}

/* اضافه کردن درخشش نرم (Glow) در اطراف */
.pricing-active {
    box-shadow: 0 0 15px rgba(108, 88, 201, 0.3);
} 