:root {

    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);

    --bg-dark: #0f172a;

    --glass-bg: rgba(30, 41, 59, 0.7);

    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;

    --text-secondary: #94a3b8;

    --success: #10b981;

    --warning: #f59e0b;

}



body {

    font-family: 'Cairo', sans-serif;

    background-color: var(--bg-dark);

    background-image: 

        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 

        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 

        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);

    color: var(--text-primary);

    margin: 0;

    min-height: 100vh;

    overflow-x: hidden;

}



/* --- Navbar & Dashboard Header --- */

.dashboard-header {

    background: var(--glass-bg);

    backdrop-filter: blur(12px);

    border-bottom: var(--glass-border);

    padding: 15px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 100;

}



.user-info {

    display: flex;

    align-items: center;

    gap: 15px;

}



.user-avatar {

    width: 45px; height: 45px;

    border-radius: 50%;

    border: 2px solid #0072ff;

}



.wallet-card {

    display: flex;

    gap: 15px;

    background: rgba(0,0,0,0.3);

    padding: 8px 15px;

    border-radius: 50px;

    border: var(--glass-border);

}



.wallet-item {

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 0.9rem;

    font-weight: 700;

}



.wallet-item.balance { color: var(--success); }

.wallet-item.points { color: var(--warning); }



/* --- Auth Forms (Login/Register) --- */

.auth-container {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

    padding: 20px;

}



.auth-box {

    background: var(--glass-bg);

    backdrop-filter: blur(16px);

    border: var(--glass-border);

    padding: 40px;

    border-radius: 24px;

    width: 100%;

    max-width: 400px;

    text-align: center;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);

}



.auth-title {

    font-size: 1.8rem;

    margin-bottom: 30px;

    background: var(--primary-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    font-weight: 800;

}



.input-group {

    position: relative;

    margin-bottom: 20px;

}



.input-group input {

    width: 100%;

    padding: 15px 45px 15px 15px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    color: white;

    font-family: 'Cairo', sans-serif;

    box-sizing: border-box;

    transition: 0.3s;

}



.input-group i {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--text-secondary);

}



.input-group input:focus {

    border-color: #0072ff;

    box-shadow: 0 0 15px rgba(0, 114, 255, 0.2);

}



.btn-primary {

    width: 100%;

    padding: 15px;

    background: var(--primary-gradient);

    border: none;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    font-size: 1rem;

    cursor: pointer;

    transition: 0.3s;

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 20px rgba(0, 114, 255, 0.4);

}



.auth-link {

    margin-top: 20px;

    color: var(--text-secondary);

    font-size: 0.9rem;

}



.auth-link a { color: #00c6ff; text-decoration: none; }



/* --- Offers Grid (من الكود السابق) --- */

.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }

.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

.offer-card { background: rgba(255,255,255,0.07); border: var(--glass-border); border-radius: 20px; padding: 15px; text-align: center; cursor: pointer; transition: 0.4s; }

.offer-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.12); }

.offer-img { width: 90px; height: 90px; border-radius: 18px; margin-bottom: 10px; }

.offer-title { color: white; font-size: 1rem; font-weight: 700; }



/* --- Responsive --- */

@media (max-width: 768px) {

    .dashboard-header { flex-direction: column; gap: 15px; }

    .wallet-card { width: 100%; justify-content: center; }

}



/* --- إضافات صفحة المحفظة والجدوال (Wallet & Tables) --- */



/* كروت الإحصائيات في المحفظة */

.stats-container {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.stat-card {

    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 20px;

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 20px;

    backdrop-filter: blur(10px);

}



.stat-icon {

    width: 60px; height: 60px;

    border-radius: 15px;

    display: flex; align-items: center; justify-content: center;

    font-size: 1.8rem;

    background: rgba(0,0,0,0.2);

}



.stat-info h3 { margin: 0; color: #94a3b8; font-size: 0.9rem; }

.stat-info p { margin: 5px 0 0; font-size: 1.5rem; font-weight: 800; color: white; }



/* زر تعبئة الرصيد */

.btn-topup {

    background: linear-gradient(135deg, #00b09b, #96c93d);

    color: white; border: none; padding: 12px 25px;

    border-radius: 50px; cursor: pointer; font-weight: bold;

    text-decoration: none; display: inline-block;

    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.4);

    transition: 0.3s;

}

.btn-topup:hover { transform: scale(1.05); }



/* الجداول الاحترافية */

.table-container {

    background: var(--glass-bg);

    border: var(--glass-border);

    border-radius: 20px;

    padding: 20px;

    overflow-x: auto; /* للتجاوب مع الموبايل */

}



.custom-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 600px; /* لضمان عدم انكماش الجدول في الموبايل */

}



.custom-table th {

    text-align: right;

    padding: 15px;

    color: #94a3b8;

    border-bottom: 1px solid rgba(255,255,255,0.1);

    font-weight: 600;

}



.custom-table td {

    padding: 15px;

    border-bottom: 1px solid rgba(255,255,255,0.05);

    color: white;

}



.custom-table tr:last-child td { border-bottom: none; }

.custom-table tr:hover { background: rgba(255,255,255,0.02); }



/* حالات الطلب (Badges) */

.status-badge {

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: bold;

}

.status-completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #ef4444; }



/* تصميم التبويبات (Tabs) في المحفظة */

.wallet-tabs {

    display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;

}

.tab-link {

    background: none; border: none; color: #94a3b8;

    font-family: 'Cairo'; font-size: 1rem; cursor: pointer;

    padding: 10px 20px; border-radius: 10px; transition: 0.3s;

}

.tab-link.active { background: rgba(255,255,255,0.1); color: white; font-weight: bold; }

/* --- قسم الديون (Debt Badge) --- */
.debt-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.debt-badge::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: #ef4444;
}
.debt-amount { display: block; font-size: 1.2rem; font-weight: bold; color: #ef4444; }
.debt-label { font-size: 0.8rem; color: #fca5a5; }

/* --- الفوتر الجديد ومركز المساعدة (Footer Area) --- */
.site-footer-area {
    margin-top: 80px;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* عمود نبذة عن الموقع */
.footer-about h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-about p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* عمود مركز المساعدة (الأزرار) */
.help-center-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
}
.help-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}
.help-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}
.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}
.contact-btn.whatsapp:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.1); }
.contact-btn.telegram:hover { border-color: #0088cc; background: rgba(0, 136, 204, 0.1); }
.contact-btn.phone:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

.c-info { text-align: right; }
.c-name { display: block; color: white; font-weight: bold; font-size: 0.9rem; }
.c-desc { font-size: 0.75rem; color: #94a3b8; }
.c-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* حقوق النشر */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .contact-btn { text-align: right; } /* للحفاظ على اتجاه الأزرار */
    .c-info { text-align: right; }
}

/* =========================================
   تصميم أيقونة ذهبية S الاحترافي
   ========================================= */
.sofiz-card-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.sofiz-icon {
    font-size: 80px;
    background: linear-gradient(135deg, #FDB931 0%, #FFD700 30%, #FDB931 70%, #9e7f11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(253, 185, 49, 0.4));
    animation: goldShine 3s infinite linear;
}

.sofiz-badge {
    position: absolute;
    bottom: 5px;
    right: -5px;
    background: linear-gradient(45deg, #d90429, #ef233c);
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: 900;
    font-size: 18px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #1e293b; /* نفس لون خلفية المودال */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@keyframes goldShine {
    0% { filter: drop-shadow(0 4px 15px rgba(253, 185, 49, 0.4)) brightness(1); }
    50% { filter: drop-shadow(0 4px 25px rgba(253, 185, 49, 0.6)) brightness(1.2); }
    100% { filter: drop-shadow(0 4px 15px rgba(253, 185, 49, 0.4)) brightness(1); }
}