/* --- انیمیشن‌های سراسری --- */
@keyframes super-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rainbow-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-500px) scale(0.5); }
}


@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* =========================================
   ساختار اصلی و لایه سه‌بعدی
========================================= */

/* کانتینر اصلی + قاب تاریک بیرونی (مخصوص سایت‌های روشن) */
.nokteyar-container {
    position: relative;
    max-width: 850px; 
    margin: 60px auto; 
    direction: rtl;
    font-family: inherit;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* قاب تاریک دورِ مار */
    background: #0f172a; 
    padding: 12px; /* ضخامت قاب بیرونی */
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* سایه نرم کل باکس روی سایت */
}

/* لایه هاله نور قدیمی (حذف شد تا دور باکس نیفته) */
.nokteyar-glow-layer {
    display: none !important;
}

.nokteyar-content { opacity: 0; }

/* =========================================
   قاب مار متحرک
========================================= */

/* لایه دربرگیرنده مار */
.nokteyar-border-wrap {
    position: relative;
    padding: 3px; /* ضخامت خودِ مار */
    border-radius: 12px;
    overflow: hidden;
    background: transparent; 
    z-index: 1; 
}

/* خود مار (با شفافیت 100% و تغییر 7 رنگ) */
.nokteyar-border-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3000px; 
    height: 3000px;
    background: conic-gradient(
        transparent 0%, 
        transparent 65%, 
        rgba(56, 189, 248, 0.1) 70%, 
        rgba(56, 189, 248, 0.6) 85%, 
        rgba(56, 189, 248, 1) 100%  
    );
    animation: 
        super-spin 8s linear infinite, 
        rainbow-shift 20s linear infinite;
    z-index: 0;
}

/* =========================================
   محتوای داخلی و هاله نور موس (داخل باکس)
========================================= */

/* باکس اصلی محتوا */
.nokteyar-body {
    position: relative;
    z-index: 2; 
    background: #1e293b; /* رنگ تیره داخلی */
    border-radius: 10px; 
    padding: 35px 45px;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px; 
    overflow: hidden; 
}

/* هاله نور ملایم داخل باکس که دنبال موس می‌رود */
.nokteyar-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* هاله بسیار کمرنگ سفید/شیشه‌ای */
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.04), 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* مزاحم کلیک نشود */
    z-index: 0;
}

.nokteyar-container:hover .nokteyar-body::before {
    opacity: 1; /* نمایش هاله داخلی موقع ورود موس */
}

/* تضمین اینکه متن‌ها روی هاله نور بمانند */
.nokteyar-header, .nokteyar-content, .nokteyar-timer-row {
    position: relative;
    z-index: 1;
}

/* کلاس Shine لغو شد (عنوان ساده و خوانا) */
.shine-text {
    background: none !important;
    color: #f8fafc !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

/* هدر باکس */
.nokteyar-header {
    font-size: 1.4rem; 
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    padding-bottom: 15px;
}

/* آیکون متحرک هدر (وضوح کامل و رنگ ثابت طلایی) */
.nokteyar-icon { 
    font-size: 1.8rem; 
    display: inline-block;
    color: #fbbf24; /* رنگ طلایی */
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    animation: iconBounce 2.5s infinite ease-in-out;
}

/* محتوای متنی */
.nokteyar-content {
    font-size: 1.15rem; 
    line-height: 2;
    color: #e2e8f0;
    margin-bottom: 30px;
}

/* لینک ورود */
a.nokteyar-login-link {
    font-size: inherit; 
    font-weight: bold !important; 
    text-decoration: none !important; 
    border: none !important; 
    color: #38bdf8 !important;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

a.nokteyar-login-link:hover {
    color: #7dd3fc !important;
}

/* =========================================
   تایمرها و ذرات
========================================= */

/* ردیف تایمر در باکس اصلی */
.nokteyar-timer-row {
    background: rgba(15, 23, 42, 0.5); 
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; 
}

.nokteyar-timer-row .timer-text {
    font-size: 1.05rem;
    color: #94a3b8;
}

.nokteyar-timer-row .nokteyar-live-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', Courier, monospace;
    direction: ltr;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* ذرات معلق (Particles) */
.nokteyar-particle {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: floatUp linear infinite;
}

/* پیغام ارور */
.nokteyar-error {
    background: #450a0a;
    color: #f87171;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #7f1d1d;
    line-height: 1.8;
}

/* =========================================
   شورت‌کد تایمر مستقل
========================================= */
.nokteyar-standalone-timer-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    direction: rtl;
}

.nokteyar-standalone-timer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
    padding: 15px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f8fafc;
}

.nokteyar-standalone-timer .timer-icon { font-size: 1.5rem; color: #fbbf24; }
.nokteyar-standalone-timer .timer-label { font-size: 1.05rem; color: #cbd5e1; }
.nokteyar-standalone-timer .nokteyar-live-timer {
    color: #10b981;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.4rem;
    direction: ltr;
    background: #020617;
    padding: 5px 12px;
    border-radius: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* =========================================
   ریسپانسیو (برای موبایل)
========================================= */
@media (max-width: 768px) {
    .nokteyar-container { margin: 30px 15px; padding: 10px; }
    .nokteyar-body { padding: 25px 20px; min-height: auto; }
    .nokteyar-header { font-size: 1.25rem; margin-bottom: 15px; flex-direction: column; text-align: center; gap: 8px; }
    .nokteyar-icon { font-size: 1.6rem; }
    .nokteyar-content { font-size: 1rem; line-height: 1.8; margin-bottom: 25px; text-align: center; }
    .nokteyar-timer-row { flex-direction: column; gap: 12px; text-align: center; padding: 15px; }
    .nokteyar-timer-row .nokteyar-live-timer { font-size: 1.3rem; }
    .nokteyar-standalone-timer { padding: 30px 0; flex-direction: column; text-align: center; width: 300px; }
    
    
    
    
    
    
    
    
}
