html {
    background-color: #0a0000; /* خلفية داكنة تميل للون الأحمر المحروق */
    overscroll-behavior-y: none; /* يمنع ارتداد الشاشة المزعج في الموبايل */
    scrollbar-width: none; /* لمتصفح Firefox */
    -ms-overflow-style: none; /* لمتصفحات IE و Edge القديمة */
}

/* =========================================
   🔥 iOS Style Glassmorphism - Fire Red Theme
   ========================================= */
:root {
    --white-primary: #ff3300;     /* أحمر ناري قوي */
    --white-secondary: #ff6a00;   /* برتقالي لهب */
    --white-glow: #ff0000;        /* توهج أحمر */
    --white-light: rgba(255, 51, 0, 0.2);
    --white-dark: #1a0505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 69, 0, 0.3);
    --glass-border-hover: rgba(255, 51, 0, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --shadow-glass: 0 15px 35px rgba(40, 0, 0, 0.5); /* ظل محمر */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* متصفحات Chrome و Safari و Opera (الكمبيوتر والموبايل) */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* خلفية متحركة نارية */
@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes floatBubble {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-1000px) translateX(200px); opacity: 0; }
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

body {
    margin: 0;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary);
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* تدرج ناري داكن */
    background: linear-gradient(135deg, #1a0505 0%, #4a0000 50%, #1a0505 100%);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 0, 0, 0.7); /* لون داكن ناري لتخفيف الفلتر */
    z-index: -1;
}

.bubble {
    position: fixed;
    background: rgba(255, 69, 0, 0.15); /* فقاعات برتقالية محمرة */
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: floatBubble 20s linear infinite;
    will-change: transform, opacity;
}

.bubble:nth-child(1) { width: 200px; height: 200px; top: 10%; left: 5%; animation-duration: 25s; }
.bubble:nth-child(2) { width: 150px; height: 150px; top: 50%; right: 10%; animation-duration: 18s; }
.bubble:nth-child(3) { width: 100px; height: 100px; bottom: 20%; left: 15%; animation-duration: 22s; }

/* الهيدر الموحد */
.header-section {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(40, 0, 0, 0.3); /* خلفية زجاجية محمرة */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 15px;
    box-shadow: var(--shadow-glass);
    width: 100%;
    max-width: 100%;
    position: relative;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--white-primary);
    box-shadow: 0 0 20px var(--white-primary); /* توهج ناري للوجو */
    margin-bottom: 8px;
    object-fit: cover;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white-primary);
    color: white; /* تم تغييره للأبيض ليتناسب مع الأحمر */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--white-primary);
}

.title-neon {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #fff, var(--white-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--white-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* تصميم زر المشاركة الجديد */
.share-btn {
    position: absolute;
    top: 65px;
    left: 15px;
    background: rgba(255, 51, 0, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--white-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 51, 0, 0.2);
    z-index: 10;
    outline: none;
}

.share-btn:hover {
    background: var(--white-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--white-primary);
}

/* 🟢 تصميم مؤشر حالة التواجد (Live Status) */
.status-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-text {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* 🟢 حالة متصل الآن (نحافظ على اللون الأخضر لأنه يدل على الأمان) */
.status-container.online {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}
.status-container.online .status-dot {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseOnline 1.5s infinite;
}
.status-container.online .status-text {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

@keyframes pulseOnline {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* 📈 تصميم شريط بورصة الحسابات (Live Ticker) */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: rgba(40, 10, 10, 0.6); /* خلفية حمراء داكنة */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin: 0 0 15px 0; /* ملتصق بأعلى الهيدر */
    padding: 8px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    direction: ltr;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #1a0505, transparent);
}

.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #1a0505, transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: scrollTicker 30s linear infinite;
}

.ticker-wrapper:hover .ticker-track,
.ticker-wrapper:active .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    color: var(--white-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0 25px;
    text-shadow: 0 0 5px rgba(255, 51, 0, 0.5);
    position: relative;
    direction: rtl;
}

.ticker-item::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: rgba(255, 255, 255, 0.2);
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 🔍 Search Bar */
.search-container {
    width: 100%;
    margin: 15px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glass);
}

.search-input:focus {
    outline: none;
    border-color: var(--white-primary);
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-primary);
    font-size: 1rem;
    pointer-events: none;
}

.search-results-count {
    text-align: center;
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 📊 تصميم قسم الإحصائيات (العدادات) */
.stats-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
    gap: 8px;
}

.stat-box {
    flex: 1;
    background: rgba(40, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 12px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--white-primary);
    background: rgba(255, 51, 0, 0.1);
}

.stat-box i {
    color: var(--white-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px var(--white-primary));
}

.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px var(--white-primary);
}

.stat-text {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

/* 🗂️ تصميم أزرار التصفية (Filter Tabs) */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.filter-btn {
    background: rgba(40, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--white-primary);
    background: rgba(255, 51, 0, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--white-primary);
    color: white;
    border-color: var(--white-primary);
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.5);
}

/* حركة الكروت أثناء التصفية */
.card.hide { display: none !important; }
.card.show { animation: fadeInCard 0.4s ease forwards; }

@keyframes fadeInCard {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* شبكة الكروت */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.card {
    background: rgba(40, 10, 10, 0.85); /* لون شفاف ناري */
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--white-primary);
    box-shadow: 0 10px 20px rgba(255, 51, 0, 0.2);
    background: rgba(255, 51, 0, 0.1);
}

.card i {
    font-size: 1.2rem;
    color: var(--white-primary);
    filter: drop-shadow(0 0 5px var(--white-primary));
    min-width: 25px;
    text-align: center;
}

.card h3 {
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    padding: 0 8px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

/* زر iOS للإنضمام */
.join-btn {
    background: rgba(255, 51, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 10px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
}

.join-btn:hover {
    background: var(--white-primary);
    color: white;
    border-color: var(--white-primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 51, 0, 0.4);
}

/* قسم الدفع */
.payment-section {
    margin-top: 25px;
    text-align: center;
    width: 100%;
    background: rgba(40, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 15px;
    box-shadow: var(--shadow-glass);
}

.payment-section h2 {
    color: var(--white-primary);
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--white-primary);
    font-size: 1.2rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pay-item {
    background: rgba(40, 10, 10, 0.85);
    border: 1px solid var(--glass-border);
    padding: 10px 3px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
}

.pay-item i {
    font-size: 1rem;
    color: var(--white-primary);
}

.pay-item:hover {
    transform: translateY(-2px);
    border-color: var(--white-primary);
    background: rgba(255, 51, 0, 0.15);
}

.footer-text {
    margin: 20px 0 15px;
    color: var(--white-primary);
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--white-primary);
    background: rgba(40, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 8px 20px;
}

/* زر الدعم */
.wa-float {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 1000;
}

.wa-btn {
    background: var(--white-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white; /* تم تغييره للأبيض */
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.6);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wa-btn:hover {
    transform: scale(1.05);
    background: white;
    color: var(--white-primary);
}

.wa-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: rgba(26, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    width: 200px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.wa-menu a {
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wa-menu a:last-child { border-bottom: none; }

.wa-menu a:hover {
    background: rgba(255, 51, 0, 0.15);
    transform: translateX(5px);
    color: var(--white-primary);
}

.wa-menu a i {
    font-size: 1rem;
    color: var(--white-primary);
    width: 18px;
}

.show { display: flex; }

/* 🎯 النافذة المنبثقة (Popup) */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.popup-content {
    background: rgba(26, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--white-primary);
    border-radius: 30px;
    padding: 25px 20px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 51, 0, 0.6);
    animation: popupFadeIn 0.5s ease;
}

.popup-close {
    position: absolute;
    top: 10px; left: 15px;
    color: var(--white-primary);
    font-size: 24px;
    cursor: pointer;
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--white-primary);
    color: white;
}

.popup-icon {
    font-size: 45px;
    color: var(--white-primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px var(--white-primary));
}

.popup-title {
    font-size: 1.6rem;
    color: var(--white-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--white-primary);
}

.popup-offer {
    background: rgba(255, 51, 0, 0.1);
    border: 1px solid var(--white-primary);
    border-radius: 40px;
    padding: 8px;
    margin: 15px 0;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 15px var(--white-primary);
}

.popup-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-btn {
    display: inline-block;
    background: var(--white-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--white-primary);
    margin-bottom: 8px;
    width: 100%;
    max-width: 250px;
}

.popup-btn:hover {
    background: transparent;
    color: var(--white-primary);
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--white-primary);
}

.popup-small-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* منع التحديد والسحب */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
img { -webkit-user-drag: none; -moz-user-drag: none; -ms-user-drag: none; user-drag: none; pointer-events: none; }
a { -webkit-user-select: none; user-select: none; }

/* تحسينات الموبايل */
@media (max-width: 380px) {
    .payment-grid { grid-template-columns: repeat(2, 1fr); }
    .title-neon { font-size: 1.3rem; }
    .card h3 { font-size: 0.8rem; }
    .join-btn { font-size: 0.7rem; padding: 4px 8px; }
    .stat-text { font-size: 0.55rem; }
    .stat-number { font-size: 0.95rem; }
    .stat-box i { font-size: 1rem; }
    .ticker-item { font-size: 0.75rem; padding: 0 15px; }
}
.verified-img { width: 30px; height: 30px; }
        .title-neon {
            font-size: 2.2rem;
            text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-red);
            margin: 0;
        }

        /* =========================================
   🕒 إشعار ساعات العمل بجوار اللوجو
   ========================================= */
.logo-wrapper {
    position: relative;
    display: inline-block;
}

.working-hours-popup {
    position: absolute;
    top: 50%;
    right: 110%; /* يظهر على يسار الصورة (بسبب اتجاه RTL) */
    transform: translateY(-50%) translateX(20px);
    background: rgba(40, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid var(--white-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* حركة ارتدادية جذابة */
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.4);
    z-index: 20;
}

/* السهم الصغير الذي يشير للوجو */
.working-hours-popup::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    border-width: 7px 0 7px 7px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white-primary);
}

.working-hours-popup.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =========================================
   🔴 حالة مغلق الآن (Offline Status)
   ========================================= */
.status-container.offline {
    background: rgba(255, 51, 0, 0.05);
    border-color: rgba(255, 51, 0, 0.2);
}
.status-container.offline .status-dot {
    background-color: var(--white-primary);
    box-shadow: 0 0 10px var(--white-primary);
    animation: pulseOffline 2s infinite;
}
.status-container.offline .status-text {
    color: var(--white-primary);
    text-shadow: 0 0 5px rgba(255, 51, 0, 0.4);
}

@keyframes pulseOffline {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 0, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 51, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 0, 0); }
}

/* تحسين للموبايل لتجنب خروج الإشعار عن الشاشة */
@media (max-width: 400px) {
    .working-hours-popup {
        right: 50%;
        top: 110%;
        transform: translateX(50%) translateY(-10px);
    }
    .working-hours-popup.show {
        transform: translateX(50%) translateY(0);
    }
    .working-hours-popup::after {
        top: -7px;
        right: 50%;
        transform: translateX(50%);
        border-width: 0 7px 7px 7px;
        border-color: transparent transparent var(--white-primary) transparent;
    }
}
