/* =========================================================================
   1. التنسيقات الأساسية والانتقالات (Core Layout & Transitions)
   ========================================================================= */

.view { display: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.view.active { display: block; opacity: 1; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.fade-transition { transition: opacity 0.5s ease-in-out; }

.lazy-image { opacity: 0; filter: blur(10px); transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out; }
.lazy-image.loaded { opacity: 1; filter: blur(0); }

.gaming-border { position: relative; }
.gaming-border::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #eab308, #ef4444, #3b82f6, #10b981);
    z-index: -1; border-radius: 18px; filter: blur(8px); opacity: 0; transition: opacity 0.3s ease;
}
.gaming-border:hover::before { opacity: 0.6; }

.section-card-bg { position: relative; z-index: 1; overflow: hidden; }
.section-card-bg::before {
    content: ''; position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0.4; z-index: -2; transition: transform 0.5s ease;
}
.section-card-bg:hover::before { transform: scale(1.1); }
.section-card-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), rgba(15,23,42,0.7)); z-index: -1;
}

.bg-bounty::before { background-image: url('imag-شحن/bounty.jpg'); }
.bg-shipping::before { background-image: url('imag-الصور/backgruond.png'); }
.bg-exchange::before { background-image: url('imag-الصور/money.jpg'); }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.custom-select-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: left 0.5rem center; background-size: 1em;
}

#toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999;
    display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
    width: 90%; max-width: 350px;
}
.custom-toast {
    transform: translateY(-20px) scale(0.9); opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: auto; width: 100%; justify-content: center;
}
.custom-toast.show { transform: translateY(0) scale(1); opacity: 1; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar-overlay { transition: opacity 0.3s ease-in-out; }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }
.sidebar-menu { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-menu.active { transform: translateX(0); }

.custom-scrollbar::-webkit-scrollbar { height: 6px; width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #475569; }

/* =========================================================================
   2. تأثيرات أزرار المُخصص وأيقونات الألعاب (Custom Configurator Effects)
   ========================================================================= */

.builder-os-btn, .ef-builder-os-btn, .dbl-builder-os-btn { position: relative; overflow: hidden; }
.builder-os-btn::after, .ef-builder-os-btn::after, .dbl-builder-os-btn::after { 
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); 
    width: 100%; height: 100%; background: rgba(255,255,255,0.1); border-radius: 50%; transition: transform 0.3s; pointer-events: none; 
}
.builder-os-btn:active::after, .ef-builder-os-btn:active::after, .dbl-builder-os-btn:active::after { 
    transform: translate(-50%, -50%) scale(2); transition: 0s; 
}

/* تأثير اللمعان والنبض لأيقونات الكريستال (باونتي) */
.shard-icon { animation: pulseShard 2s infinite ease-in-out; }
@keyframes pulseShard {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8)); }
}

/* تأثير اللمعان والنبض للكوينز (بيس) */
.coin-icon { animation: pulseCoin 2s infinite ease-in-out; }
@keyframes pulseCoin {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8)); }
}

/* تأثير اللمعان والنبض للكريستال (دراغون بول) */
.gem-icon { animation: pulseGem 2s infinite ease-in-out; }
@keyframes pulseGem {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8)); }
}

/* =========================================================================
   3. شريط النشاط العام والمراجعات السريعة (Tickers & Sliders)
   ========================================================================= */

.ticker-wrapper { overflow: hidden; white-space: nowrap; display: flex; align-items: center; width: 100%; direction: rtl; }
.ticker-content { display: inline-block; animation: tickerRTL 25s linear infinite; padding-right: 100%; }
.ticker-wrapper:hover .ticker-content { animation-play-state: paused; }
@keyframes tickerRTL {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
}

/* شريط التقييمات السريع (Top Review Slider) */
#quick-reviews-ticker {
    backdrop-filter: blur(8px);
}
.ticker-item {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   4. تصميم كروت العروض والأقسام (Topup Sections)
   ========================================================================= */

.topup-card { 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    background-color: #0f172a; 
}
.topup-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.6); 
    z-index: 10; 
}
.topup-card-bar {
    transition: background-color 0.3s ease;
}

.topup-view-trans { 
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
@keyframes fadeSlideUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* =========================================================================
   5. نظام كرت المسابقة والمؤقت الحي (Giveaway Engine & Neon Glow)
   ========================================================================= */

#giveaway-section {
    position: relative;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.2);
    animation: giveawayGlowPulse 4s infinite alternate ease-in-out;
}

@keyframes giveawayGlowPulse {
    0% {
        border-color: rgba(6, 182, 212, 0.35);
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    }
    100% {
        border-color: rgba(56, 189, 248, 0.6);
        box-shadow: 0 0 45px rgba(6, 182, 212, 0.35);
    }
}

/* صناديق العداد التنازلي الحي */
.timer-card {
    background: #020617;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 0.85rem;
    padding: 0.5rem 0.65rem;
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.15), 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.timer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.8);
}
.timer-card span {
    font-size: 1.25rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1.1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.timer-card label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    font-weight: 700;
}

/* =========================================================================
   6. نظام النجوم التفاعلية والتقييمات (Interactive Reviews & Star Rating)
   ========================================================================= */

.star-rating {
    user-select: none;
    line-height: 1;
}
.star-rating .star {
    transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
    display: inline-block;
}
.star-rating .star:hover {
    transform: scale(1.25);
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}
.star-rating .star:hover ~ .star {
    color: #fbbf24 !important;
}

/* =========================================================================
   7. شارات الإعلانات وسوق الحسابات (Market & Badges)
   ========================================================================= */

.paid-ad-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}