/* استيراد خط Cairo */
/* تم إزالة Google Fonts لتحسين الأداء بدون إنترنت */
/* @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap'); */

/* خط Cairo محلي محسن */
@font-face {
    font-family: 'Cairo-Local';
    src: url('../fonts/cairo.ttf') format('truetype'),
         local('Cairo'),
         local('Tahoma'),
         local('Arial Unicode MS'),
         local('Microsoft Sans Serif');
    font-display: swap;
    font-weight: 300 700;
    font-style: normal;
}

/* تعيين متغير عام للخط وتطبيقه بقوة على جميع العناصر */
:root {
    --cairo-font: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

html, body, *, *::before, *::after {
    font-family: var(--cairo-font) !important;
}

/* أنماط إشعار إعادة التسجيل التلقائي */
.auto-relogin-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.notification-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

.notification-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.notification-content p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.speed-display {
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c851, #4fa8d8);
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
}

.progress-text {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

/* أنيميشن إعادة التسجيل */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100%); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideOutRight {
    from { 
        opacity: 1; 
        transform: translateX(0); 
    }
    to { 
        opacity: 0; 
        transform: translateX(100%); 
    }
}

/* أنماط تحديث البيانات */
.data-updated {
    animation: dataUpdatePulse 2s ease-in-out;
    border: 2px solid #4fa8d8;
    border-radius: 10px;
}

@keyframes dataUpdatePulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(79, 168, 216, 0.7);
        border-color: #4fa8d8;
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(79, 168, 216, 0);
        border-color: #6bb8e3;
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(79, 168, 216, 0);
        border-color: transparent;
    }
}

/* مؤشر تحديث البيانات */
.data-refresh-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #4fa8d8;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-refresh-indicator.active {
    opacity: 1;
}

/* تحسين مظهر قسم البيانات */
.data-usage-section {
    position: relative;
    transition: all 0.3s ease;
}

.data-info span {
    transition: color 0.5s ease, font-weight 0.3s ease;
}

.data-info span.highlight {
    color: #4fa8d8;
    font-weight: bold;
}

/* تأثير تموج للتحديث */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.data-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 168, 216, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* تحسين مظهر وقت آخر تحديث */
.data-usage-section h3 small {
    display: block;
    margin-top: 5px;
    padding: 3px 8px;
    background: rgba(79, 168, 216, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.data-usage-section h3 small:hover {
    background: rgba(79, 168, 216, 0.2);
    transform: scale(1.05);
}

.data-usage-section h3 small:active {
    transform: scale(0.95);
}

/* مؤشر البيانات المُحدثة */
.data-info span.updated {
    position: relative;
    overflow: visible;
}

.data-info span.updated::after {
    content: "●";
    position: absolute;
    top: -5px;
    right: -5px;
    color: #4fa8d8;
    font-size: 12px;
    animation: blink 1s ease-in-out 3;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* إعادة تعيين الأساسيات */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* خلفية التدرج الزرقي الجديد */
body {
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 50px; /* مساحة للهيدر */
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

/* الألوان والروابط */
a {
    color: #4fa8d8;
    text-decoration: none;
}

a:hover {
    color: #6bb8e3;
}

/* الحاويات الرئيسية */
.ie-fixMinHeight {
    display: flex;
    min-height: 100vh;
}

.main {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wrap {
    margin: auto;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease-in-out;
}

/* الشعار */
.logo {
    max-width: 300px; /* +50% */
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 25px;
    padding: 25px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* دوائر عداد البيانات تشارك نفس نمط مؤقت الوقت */
.session-timer .timer-svg #data-progress-circle {
    stroke: #f59e0b; /* لون مميز لبيانات الرصيد */
}

/* العناوين */
h1 {
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.brand-name {
    text-align: center;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* النماذج */
form {
    width: 100%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== سلايدر الإعلانات المصوّر ===== */
.ad-slider-container {
    display: none;
    width: calc(100% + 80px);
    margin: 0 -40px 20px -40px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.ad-slider-container.slider-active {
    display: block !important;
    animation: adSliderFadeIn 0.5s ease-out;
}

.ad-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.ad-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.ad-slider-slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
}

.ad-slider-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.ad-slider-slide a {
    display: block;
    text-decoration: none;
}

.ad-slider-slide .ad-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px 15px 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    font-family: 'Cairo', Tahoma, sans-serif;
    pointer-events: none;
}

.ad-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.2);
}

.ad-slider-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    padding: 0;
    line-height: 1;
}

.ad-slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.ad-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ad-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ad-slider-dot.active {
    background: #4fa8d8;
    box-shadow: 0 0 6px rgba(79, 168, 216, 0.6);
    transform: scale(1.3);
}

@keyframes adSliderFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* الشريط الإخباري المتحرك (مُثبت) */
.news-ticker {
    background: #FFBB00 !important;
    border-radius: 12px;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* فرض خط Cairo على الشريط الإخباري */
.news-ticker,
.news-ticker-content,
.news-item {
    font-family: 'Cairo-Offline', 'Cairo', 'Cairo-Local', Tahoma, Arial, sans-serif !important;
}

/* اجعل الشريط الإخباري بعرض صندوق النموذج تماماً (full-bleed داخل padding) */
form .news-ticker {
    width: calc(100% + 80px);   /* 40px يسار + 40px يمين (padding النموذج الافتراضي) */
    margin: 0 -40px 25px -40px; /* تعويض الحواف الداخلية للنموذج */
}

/* تم إزالة التأثيرات المتعددة لتثبيت الشريط */

.news-ticker-content {
    display: flex;
    animation: scroll-news 25s linear infinite;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.news-item {
    color: #002063 !important;
    font-weight: 600;
    font-size: 15px;
    margin-left: 50px;
    text-shadow: none !important;
    display: inline-block;
    min-width: max-content;
    letter-spacing: 0.3px;
}

/* تأثيرات الحركة */
@keyframes scroll-news {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* تم حذف animations المتعددة المسببة لمشاكل الحركة */

/* التسميات والمدخلات */
label {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.ico {
    height: 20px;
    width: 20px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    filter: invert(1);
    opacity: 0.7;
}

input {
    outline: 0;
    appearance: none;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 12px 50px 12px 20px;
    margin-bottom: 16px;
    border-radius: 25px;
    background: transparent;
    border: 0;
    transition: all 0.25s ease;
    font-size: 16px;
    color: #ffffff;
    direction: rtl;
    text-align: right;
    caret-color: #ffffff;
}

/* تصميم select السرعة */
.speed-select {
    width: 100%;
    height: 55px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    font-size: 16px;
    color: #fff;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.speed-select:focus {
    border-color: #6bb8e3;
    box-shadow: 0 0 20px rgba(79, 168, 216, 0.35);
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    outline: none;
}

.speed-select optgroup {
    font-weight: 600;
    color: #fff;
    background: #041642;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.speed-select option {
    padding: 10px;
    background: #041642;
    color: #fff;
    direction: rtl;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.speed-select option:checked {
    background: #4fa8d8;
    color: #fff;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    outline: none;
    background: transparent;
}

input[type="text"]::placeholder, 
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* زر الإرسال */
input[type="submit"] {
    background: linear-gradient(135deg, #003e91, #002063);
    color: #fff;
    border: 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 55px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 62, 145, 0.4);
    margin-top: 10px;
    font-family: 'Cairo-Offline', 'Cairo', 'Cairo-Local', Tahoma, Arial, sans-serif !important;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
    background: linear-gradient(135deg, #004ba3, #003075);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 62, 145, 0.6);
}

/* المعلومات والنصوص */
.info {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.info.alert {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.bt {
    opacity: 0.6;
    font-size: 14px;
    margin-top: 20px;
}

/* تنسيق ليبل المطور */
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 15px;
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.whatsapp-icon svg {
    transition: transform 0.2s ease;
}

.whatsapp-icon:hover svg {
    transform: scale(1.1);
}

/* الجداول */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

table td {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    font-size: 16px;
}

table td:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

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

/* الرسوم المتحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.fadeIn {
    animation-name: fadeIn;
}

.slideIn {
    animation-name: slideIn;
}

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* التصميم المتجاوب */
@media (max-width: 576px) {
    .wrap {
        padding: 20px;
        margin: 20px;
    }
    
    form {
        padding: 30px 20px;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .brand-subtitle {
        font-size: 16px;
    }
    
    input[type="text"], 
    input[type="password"],
    input[type="submit"] {
        height: 50px;
        font-size: 16px;
    }
}

@media (min-width: 577px) {
    .wrap {
        width: 450px;
    }
}

/* تحسينات إضافية */
.status-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.user-welcome {
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* تحسين دعم RTL */
input[type="text"], 
input[type="password"] {
    text-align: right;
    padding-right: 50px;
    padding-left: 20px;
}

.ico {
    right: 15px;
    left: auto;
}

/* تصميم اختيار السرعة المحسن */
.speed-selector {
    margin-bottom: 20px;
}

.speed-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.speed-description {
    background: rgba(79, 168, 216, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    border: 1px solid rgba(79, 168, 216, 0.3);
    transition: all 0.3s ease;
}

/* إضافات جديدة لقائمة السرعة */
.speed-select-wrapper {
    position: relative;
    display: block;
}

.speed-dropdown-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #FFD700;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: bounce 2s infinite;
    z-index: 1;
}

/* ===== Dropdown مخصص للسرعة بأيقونات حديثة ===== */
.custom-speed-dropdown { position: relative; width: 100%; margin-top: 6px; z-index: 10; }
.csd-selected {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    color: #fff; border-radius: 10px;
    padding: 8px 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.25);
    transition: border-color .2s ease, box-shadow .2s ease; font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.csd-selected:hover { border-color: #6bb8e3; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.csd-left { display: flex; align-items: center; gap: 8px; }
.csd-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.csd-icon svg { width: 18px; height: 18px; display: block; }
.csd-text { font-weight: 700; color: #ffffff; line-height: 1; }
.csd-sub { font-size: 11px; color: rgba(255,255,255,0.85); font-weight: 500; line-height: 1; margin-top: 2px; }
.csd-arrow { color: #4fa8d8; font-weight: 700; font-size: 12px; }

.csd-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 9999;
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.3); max-height: 220px; overflow: auto; display: none;
}
.csd-list.open { display: block; }
.csd-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 14px; color: #fff; }
.csd-option:hover { background: rgba(255,255,255,0.08); }
.csd-option.active { background: rgba(255,255,255,0.15); }
.csd-option .csd-text { font-weight: 700; color: #ffffff; }
.csd-option .csd-sub { color: rgba(255,255,255,0.85); }

/* إخفاء select الأصلي مع إبقائه في الـ form */
.speed-select.is-hidden { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) scale(1);
    }
    40% {
        transform: translateY(-50%) scale(1.1);
    }
    60% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* تكبير وتوضيح الأيقونات داخل نص الخيارات نفسها (الإيموجي في option) */
select.speed-select option,
select.modal-speed-select option {
    font-size: 16px;
    line-height: 1.5;
}

/* عرض السرعة الحالية */
.current-speed-display {
    background: rgba(79, 168, 216, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(79, 168, 216, 0.2);
}

.current-speed-display h3 {
    color: #4fa8d8;
    margin-bottom: 15px;
    font-size: 18px;
}

.speed-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speed-value {
    font-size: 20px;
    font-weight: 600;
    color: #4fa8d8;
}

.speed-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* شريط تقدم البيانات */
.data-usage-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-usage-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.data-progress {
    margin-top: 15px;
}

.data-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.progress-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 25px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
}

.progress-fill.upload {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    left: 0;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.progress-fill.download {
    background: linear-gradient(90deg, #4fa8d8, #6bb8e3);
    right: 0;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(79, 168, 216, 0.3);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.upload-label, .download-label {
    font-weight: 500;
}

/* تفاصيل السرعة */
.speed-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.current-speeds {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.speed-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 0;
    flex: 1;
}

.speed-icon {
    font-size: 14px;
    opacity: 0.8;
}

#current-upload-speed,
#current-download-speed {
    font-weight: 600;
    color: #4fa8d8;
    font-size: 14px;
    white-space: nowrap;
}

.speed-max {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

#max-upload-speed,
#max-download-speed {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* تغيير السرعة (محسّن) */
.speed-change-section {
    background: linear-gradient(135deg, rgba(255, 213, 0, 0.1), rgba(255, 215, 0, 0.05));  /* ✅ خلفية ذهبية خفيفة */
    border-radius: 20px;                                         /* ✅ حواف أكثر انحناء */
    padding: 25px;                                              /* ✅ حشو أكبر */
    margin-bottom: 20px;
    border: 2px solid rgba(255, 213, 0, 0.2);                  /* ✅ حد ذهبي */
    backdrop-filter: blur(10px);                                /* ✅ تأثير ضبابي */
    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.1);            /* ✅ ظل ذهبي خفيف */
    transition: all 0.3s ease;                                  /* ✅ انتقال سلس */
}

.speed-change-section:hover {
    border-color: rgba(255, 213, 0, 0.4);                      /* ✅ حد ذهبي أقوى عند الـ hover */
    box-shadow: 0 12px 35px rgba(255, 213, 0, 0.15);          /* ✅ ظل أقوى */
    transform: translateY(-2px);                                /* ✅ حركة خفيفة للأعلى */
}

.speed-change-section h3 {
    color: #FFD500;                                             /* ✅ لون ذهبي للعنوان */
    margin-bottom: 20px;                                        /* ✅ مساحة أكبر */
    font-size: 20px;                                           /* ✅ خط أكبر */
    font-weight: 700;                                          /* ✅ وزن أثقل */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);               /* ✅ ظل النص */
    text-align: center;                                        /* ✅ وسط العنوان */
    letter-spacing: 0.5px;                                     /* ✅ تباعد الحروف */
}

.inline-form {
    display: flex;
    flex-direction: column;     /* ✅ تغيير لجعل العناصر عمودية */
    gap: 15px;
    align-items: stretch;       /* ✅ جعل العناصر تمتد لكامل العرض */
    margin-top: 15px;
}

.speed-select-small {
    flex: 1;
    height: 45px;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    font-size: 14px;
    color: #333;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.speed-select-small:focus {
    border-color: #4fa8d8;
    box-shadow: 0 0 15px rgba(79, 168, 216, 0.3);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.change-speed-btn {
    background: linear-gradient(135deg, #FFD500, #FFC700);     /* ✅ لون ذهبي جديد */
    color: #000;                                                /* ✅ نص أسود للتباين */
    border: none;
    padding: 15px 25px;                                        /* ✅ حشو أكبر */
    border-radius: 12px;
    font-size: 16px;                                           /* ✅ خط أكبر */
    font-weight: 700;                                          /* ✅ وزن خط أثقل */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 213, 0, 0.4);           /* ✅ ظل ذهبي */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);               /* ✅ ظل نص */
    border: 2px solid rgba(255, 213, 0, 0.3);                /* ✅ حد ذهبي خفيف */
    width: 100%;                                               /* ✅ عرض كامل */
}

.change-speed-btn:hover {
    background: linear-gradient(135deg, #FFED4E, #FFD700);     /* ✅ ذهبي أفتح عند الـ hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.6);           /* ✅ ظل ذهبي أقوى */
    border-color: rgba(255, 213, 0, 0.6);                     /* ✅ حد ذهبي أقوى */
}

.change-speed-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #FFC700, #FFB400);     /* ✅ ذهبي أغمق عند الضغط */
    box-shadow: 0 2px 10px rgba(255, 213, 0, 0.3);           /* ✅ ظل أقل عند الضغط */
}

.change-message {
    margin-top: 15px;
    font-size: 15px;                                           /* ✅ خط أكبر قليلاً */
    text-align: center;
    padding: 12px 15px;                                        /* ✅ حشو أفضل */
    border-radius: 12px;                                       /* ✅ حواف أكثر انحناء */
    background: linear-gradient(135deg, rgba(255, 213, 0, 0.1), rgba(255, 213, 0, 0.05));  /* ✅ خلفية ذهبية */
    border: 1px solid rgba(255, 213, 0, 0.3);                 /* ✅ حد ذهبي */
    color: rgba(255, 255, 255, 0.9);                          /* ✅ نص أبيض */
    transition: all 0.3s ease;
    font-weight: 500;                                          /* ✅ وزن خط متوسط */
    letter-spacing: 0.3px;                                     /* ✅ تباعد حروف */
}

/* معلومات الجلسة */
.session-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    color: #4fa8d8;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    direction: ltr;
}

.info-value a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #ff8e8e;
}

/* تحسينات إضافية للسرعة */
.speed-select option {
    padding: 10px;
    background: #041642;
    color: #fff;
    direction: rtl;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.speed-select option:checked {
    background: #4fa8d8;
    color: #fff;
}

/* تصميم متجاوب للميزات الجديدة */
@media (max-width: 576px) {
    .inline-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .speed-select-small {
        width: 100%;
        height: 50px;                                            /* ✅ ارتفاع أكبر للموبايل */
        font-size: 16px;                                        /* ✅ خط أكبر للموبايل */
        padding: 12px 18px;                                     /* ✅ حشو أفضل */
        border-radius: 15px;                                    /* ✅ حواف أكثر انحناء */
    }
    
    .change-speed-btn {
        width: 100%;
        padding: 18px 25px;                                      /* ✅ حشو أكبر للموبايل */
        font-size: 18px;                                        /* ✅ خط أكبر للموبايل */
        border-radius: 15px;                                    /* ✅ حواف أكثر انحناء */
    }
    
    .data-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .progress-bar {
        height: 20px;
    }
    
    .current-speed-display,
    .data-usage-section,
    .speed-change-section,
    .session-info,
    .session-timer {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .current-speeds {
        flex-direction: column;
        gap: 10px;
    }
    
    .speed-detail {
        justify-content: center;
        text-align: center;
    }
    
    .speed-title {
        font-size: 16px;
    }
    
    .speed-description {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .speed-value {
        font-size: 18px;
    }
    
    .speed-desc {
        font-size: 13px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 15px 0;
    }
    
    .info-label,
    .info-value {
        text-align: center;
    }
    
    .info-value {
        direction: rtl;
    }
    
    /* تحسينات المؤقت للموبايل */
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-time {
        font-size: 16px;
    }
    
    .timer-container {
        gap: 15px;
    }
    
    .timer-stats {
        min-width: auto;
        width: 100%;
    }
    

}

/* مؤشرات الشبكة الحية */
.network-status {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
    width: auto;
    max-width: 280px;
}

.network-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.signal-strength, .connection-speed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-icon, .speed-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.signal-text, .speed-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.signal-text.excellent { color: #4caf50; }
.signal-text.good { color: #8bc34a; }
.signal-text.fair { color: #ffeb3b; }
.signal-text.poor { color: #ff9800; }
.signal-text.no-signal { color: #f44336; }

.network-quality {
    text-align: center;
}

.quality-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.quality-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, #ff6b6b, #ffeb3b, #4caf50);
    width: 0%;
}

.quality-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* نظام التذكر المحلي المتقدم */
.quick-memory-section {
    background: rgba(79, 168, 216, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(79, 168, 216, 0.2);
    animation: slideDown 0.3s ease-out;
}

.quick-memory-section h4 {
    color: #4fa8d8;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

.saved-accounts {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.saved-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-account:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-username {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.account-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.account-actions {
    display: flex;
    gap: 8px;
}

.account-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.account-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.clear-memory-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.clear-memory-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-1px);
}

/* تحسين بنية مجموعة الإدخال */
.input-group {
    margin-bottom: 15px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 0;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.15);
}

.input-wrapper:focus-within {
    border-color: rgba(107, 184, 227, 0.9);
    box-shadow: 0 0 0 3px rgba(79, 168, 216, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* تصميم متطور لخيار التذكر */
.remember-option {
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

/* قسم تذكر البيانات الموحد */
.remember-data-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 0 15px;
}

.remember-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* تصميم مميز للخيار الموحد */
.remember-toggle.unified {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(79, 168, 216, 0.1), rgba(107, 184, 227, 0.1));
    border: 1px solid rgba(79, 168, 216, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 168, 216, 0.1);
}

/* نسخة مصغّرة وخفيفة لزر إيقاف التحديثات */
.remember-toggle.updates {
    padding: 8px 14px;
    border-radius: 12px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    transition: all 0.2s ease;
}
.remember-toggle.updates:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.remember-toggle.updates .remember-icon {
    font-size: 16px;
}
.remember-toggle.updates .toggle-text {
    font-size: 13px;
    font-weight: 600;
}

/* ملاحظة صغيرة أسفل زر إيقاف التحديثات */
.updates-note {
    text-align: center;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.remember-toggle.unified:hover {
    background: linear-gradient(135deg, rgba(79, 168, 216, 0.2), rgba(107, 184, 227, 0.2));
    border-color: rgba(79, 168, 216, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 168, 216, 0.2);
}

.remember-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* إخفاء checkbox الافتراضي */
.remember-toggle input[type="checkbox"] {
    display: none;
}

/* تصميم Toggle Switch مخصص */
.toggle-slider {
    position: relative;
    width: 38px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* حالة التفعيل */
.remember-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(135deg, #4fa8d8, #6bb8e3);
    border-color: #4fa8d8;
    box-shadow: 0 0 10px rgba(79, 168, 216, 0.4);
}

.remember-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: linear-gradient(135deg, #fff, #f8f9fa);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* النص */
.toggle-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* نص الخيار الموحد */
.remember-toggle.unified .toggle-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* أيقونة تذكر البيانات */
.remember-icon {
    font-size: 18px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.remember-toggle.unified:hover .remember-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(79, 168, 216, 0.4));
}

.remember-toggle.unified input[type="checkbox"]:checked ~ .remember-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.remember-toggle:hover .toggle-text {
    color: rgba(255, 255, 255, 0.95);
}

.remember-toggle input[type="checkbox"]:checked ~ .toggle-text {
    color: #4fa8d8;
    text-shadow: 0 0 8px rgba(79, 168, 216, 0.6);
}

.remember-toggle.unified input[type="checkbox"]:checked ~ .toggle-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(79, 168, 216, 0.8);
}

/* تأثيرات إضافية للتفاعل */
.remember-toggle:active {
    transform: translateY(0);
}

.remember-toggle:active .toggle-slider {
    transform: scale(0.95);
}

/* أنيميشن للتحميل */
@keyframes togglePulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 168, 216, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(79, 168, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 168, 216, 0); }
}

.remember-toggle input[type="checkbox"]:checked + .toggle-slider {
    animation: togglePulse 0.6s ease-out;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 480px) {
    .remember-toggle {
        gap: 8px;
        padding: 6px 10px;
    }
    
    .toggle-slider {
        width: 38px;
        height: 20px;
    }
    
    .toggle-slider::before {
        width: 14px;
        height: 14px;
        top: 2px;
        left: 2px;
    }
    
    .remember-toggle input[type="checkbox"]:checked + .toggle-slider::before {
        transform: translateX(18px);
    }
    
    .toggle-text {
        font-size: 12px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* مؤقت الجلسة المرئي */
.session-timer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.session-timer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: #4fa8d8;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29; /* 2 * π * 54 */
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 8px rgba(79, 168, 216, 0.5));
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    color: #4fa8d8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
}

.timer-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.timer-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.timer-stat-value {
    color: #4fa8d8;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
}

/* تأثيرات التحذير */
.timer-warning {
    animation: pulse-warning 1s ease-in-out infinite;
}

.timer-critical {
    animation: pulse-critical 0.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        stroke: #ffeb3b;
        filter: drop-shadow(0 0 8px rgba(255, 235, 59, 0.5));
    }
    50% { 
        stroke: #ff9800;
        filter: drop-shadow(0 0 12px rgba(255, 152, 0, 0.7));
    }
}

@keyframes pulse-critical {
    0%, 100% { 
        stroke: #f44336;
        filter: drop-shadow(0 0 8px rgba(244, 67, 54, 0.7));
    }
    50% { 
        stroke: #ff1744;
        filter: drop-shadow(0 0 15px rgba(255, 23, 68, 0.9));
    }
}

/* شريط الهيدر العلوي */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right, .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* أزرار الصفحات - تصميم احترافي */
.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.header-btn:hover::before { opacity: 1; }

.header-btn:hover {
    transform: translateY(-2px);
}

/* أزرار الصفحات - تأثير زجاجي */
.header-btn.prices-btn,
.header-btn.sales-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-btn.prices-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(245,158,11,0.6);
    box-shadow: 0 6px 24px rgba(245,158,11,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.header-btn.sales-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(139,92,246,0.6);
    box-shadow: 0 6px 24px rgba(139,92,246,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.header-btn .btn-icon svg {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.header-btn.prices-btn:hover .btn-icon svg {
    transform: scale(1.15);
    stroke: #fbbf24;
    filter: drop-shadow(0 2px 6px rgba(245,158,11,0.4));
}

.header-btn.sales-btn:hover .btn-icon svg {
    transform: scale(1.15);
    stroke: #a78bfa;
    filter: drop-shadow(0 2px 6px rgba(139,92,246,0.4));
}

.btn-icon {
    font-size: 17px;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}

.btn-text {
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* أزرار وسائل التواصل - تصميم احترافي */
.social-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 1px solid rgba(37,211,102,0.5);
    box-shadow: 0 2px 10px rgba(37,211,102,0.2);
}

.social-btn.whatsapp:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(37,211,102,0.45);
    border-color: rgba(37,211,102,0.8);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0d47a1);
    border: 1px solid rgba(24,119,242,0.5);
    box-shadow: 0 2px 10px rgba(24,119,242,0.2);
}

.social-btn.facebook:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(24,119,242,0.45);
    border-color: rgba(24,119,242,0.8);
}

.social-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-btn:hover .social-icon svg {
    transform: scale(1.15);
}

.social-text {
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}



/* تحسينات متجاوبة للهيدر */
@media (max-width: 768px) {
    .top-header {
        padding: 4px 0;
    }
    
    .header-container {
        padding: 0 12px;
    }
    
    .btn-text, .social-text {
        display: none;
    }
    
    .social-btn,
    .header-btn {
        padding: 7px;
        border-radius: 8px;
        width: 34px;
        height: 34px;
        justify-content: center;
        gap: 0;
    }
    
    body {
        padding-top: 45px;
    }
}

@media (max-width: 480px) {
    .header-right, .header-left {
        gap: 6px;
    }
    
    .header-container {
        padding: 0 8px;
    }
    
    .social-btn,
    .header-btn {
        width: 30px;
        height: 30px;
        padding: 5px;
        border-radius: 7px;
    }
    
    .btn-icon, .social-icon {
        font-size: 14px;
    }
    
    body {
        padding-top: 40px;
    }
}

/* النافذة المنبثقة لاختيار السرعة */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #19192c 0%, #003e91 25%, #002063 50%, #041642 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.modal-speed-selector {
    margin-bottom: 30px;
}

.modal-speed-select {
    width: 100%;
    height: 55px;
    padding: 15px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    font-size: 16px;
    color: #333;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
    margin-bottom: 15px;
}

.modal-speed-select:focus {
    border-color: #4fa8d8;
    box-shadow: 0 0 20px rgba(79, 168, 216, 0.4);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.modal-speed-description {
    background: rgba(79, 168, 216, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    border: 1px solid rgba(79, 168, 216, 0.3);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #003e91, #002063);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 62, 145, 0.4);
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #004ba3, #003075);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 62, 145, 0.6);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* التنبيهات المخصصة */
.custom-alert {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.alert-error {
    background: rgba(255, 107, 107, 0.95);
    color: #fff;
    border-color: rgba(255, 107, 107, 0.5);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.95);
    color: #333;
    border-color: rgba(255, 193, 7, 0.5);
}

.alert-info {
    background: rgba(79, 168, 216, 0.95);
    color: #fff;
    border-color: rgba(79, 168, 216, 0.5);
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 576px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-message {
        font-size: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        min-width: auto;
    }
    
    .custom-alert {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* رسوم متحركة للنافذة المنبثقة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* نافذة التحقق المنسقة */
.validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.validation-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(79, 168, 216, 0.3);
}

.validation-header {
    background: linear-gradient(135deg, #4fa8d8, #6bb8e3);
    color: white;
    padding: 25px;
    border-radius: 18px 18px 0 0;
    text-align: center;
    position: relative;
}

.validation-header h3 {
    margin: 10px 0 0 0;
    font-size: 22px;
    font-weight: 700;
}

.validation-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.validation-body {
    padding: 30px;
    direction: rtl;
    text-align: right;
}

.validation-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 107, 107, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.validation-instructions {
    background: rgba(79, 168, 216, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(79, 168, 216, 0.2);
}

.validation-instructions h4 {
    color: #4fa8d8;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.validation-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-instructions li {
    padding: 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid rgba(79, 168, 216, 0.1);
}

.validation-instructions li:last-child {
    border-bottom: none;
}

.validation-examples {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.validation-examples h4 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.example-correct {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    padding: 8px 15px;
    border-radius: 25px;
    margin: 5px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.validation-footer {
    padding: 20px 30px 30px 30px;
    text-align: center;
}

.validation-btn {
    background: linear-gradient(135deg, #4fa8d8, #6bb8e3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 168, 216, 0.4);
    font-family: 'Cairo-Offline', 'Cairo-Local', 'Cairo', 'Tahoma', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Segoe UI', 'DejaVu Sans', sans-serif;
}

.validation-btn:hover {
    background: linear-gradient(135deg, #6bb8e3, #4fa8d8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 168, 216, 0.6);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translate(-50%, -50%);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translate(-50%, -50%);
    }
    70% {
        transform: scale(0.9) translate(-50%, -50%);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%);
    }
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 480px) {
    .validation-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .validation-header {
        padding: 20px;
    }
    
    .validation-header h3 {
        font-size: 20px;
    }
    
    .validation-icon {
        font-size: 40px;
    }
    
    .validation-body {
        padding: 20px;
    }
    
    .validation-message {
        font-size: 16px;
    }
    
    .validation-instructions h4,
    .validation-examples h4 {
        font-size: 16px;
    }
    
    /* تحسينات سلايدر الإعلانات للهواتف */
    .ad-slider-container {
        width: calc(100% + 40px);
        margin: 0 -20px 15px -20px;
        border-radius: 10px;
    }
    .ad-slider-slide img {
        height: 120px;
    }
    .ad-slider-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .ad-slider-controls {
        padding: 6px 0;
    }
    .ad-slider-slide .ad-slider-caption {
        font-size: 11px;
        padding: 15px 10px 8px;
    }

    /* تحسينات الشريط الإخباري للهواتف (مُصححة) */
    .news-ticker {
        padding: 12px 0;
        border-radius: 8px;
    }
    form .news-ticker {
        width: calc(100% + 40px);   /* padding للموبايل 20px يمين ويسار */
        margin: 0 -20px 20px -20px;
    }
    
    .news-ticker-content {
        padding: 0 15px;
    }
    
    .news-item {
        font-size: 13px;
        margin-left: 35px;
    }
}

/* ===== تصميم صفحات نقاط البيع وأسعار الكروت ===== */

/* حاوي القسم الرئيسي */
.sales-points-container,
.cards-prices-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* رأس القسم */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
}

/* بطاقات نقاط البيع */
.sales-points-list,
.cards-prices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.sales-point-card,
.price-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sales-point-card:hover,
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* محتوى بطاقة نقطة البيع */
.sales-point-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sales-point-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.sales-point-info {
    flex: 1;
}

.sales-point-name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sales-point-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    font-size: 16px;
    color: #4fa8d8;
}

.location-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.4;
}

/* بطاقات الأسعار */
.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-icon {
    font-size: 36px;
}

.price-amount {
    color: #FFD700;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    font-size: 18px;
    color: #4fa8d8;
    flex-shrink: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    min-width: 100px;
}

.detail-value {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* معلومات إضافية */
.additional-info {
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
    padding-right: 5px;
}

/* أزرار التنقل */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #4fa8d8, #6bb8e3);
    color: #fff;
    border: none;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #3d96c6, #59a6d1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 168, 216, 0.3);
}

.nav-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.nav-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .sales-point-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .sales-point-icon {
        font-size: 40px;
    }
    
    .navigation-buttons {
        gap: 12px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .price-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .price-details {
        gap: 12px;
    }
    
    .detail-label {
        min-width: auto;
    }
}

/* ====== أنماط الأيقونات الاجتماعية الرسمية ====== */

/* تنسيق إضافي للأيقونات في الأزرار */
.social-icon svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

.header-btn .btn-icon img {
    filter: brightness(1.1) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.header-btn:hover .btn-icon img {
    transform: scale(1.15);
}

/* ========================================================================
   نظام حماية من تخمين الكروت - Brute Force Protection Styles
   ======================================================================== */

/* واجهة التحذير من الحظر */
.lockout-warning {
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
    animation: lockoutPulse 2s ease-in-out infinite;
    display: none;
}

.lockout-content {
    text-align: center;
    color: #fff;
}

.lockout-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: shake 0.5s ease-in-out;
}

.lockout-warning h3 {
    color: #ff6b6b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lockout-warning p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* مؤقت الحظر */
.lockout-timer {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.lockout-timer .timer-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.lockout-timer .timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lockout-timer .timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.lockout-timer .timer-progress {
    fill: none;
    stroke: #ff6b6b;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29; /* 2 * π * 54 */
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.6));
}

.lockout-timer .timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lockout-timer .timer-time {
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.lockout-timer .timer-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.lockout-message {
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* تأثيرات الحركة */
@keyframes lockoutPulse {
    0%, 100% {
        border-color: rgba(255, 107, 107, 0.4);
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
    }
    50% {
        border-color: rgba(255, 107, 107, 0.6);
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* حالة الحقول المعطلة */
input[disabled], select[disabled] {
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

input[type="submit"][disabled] {
    background: rgba(255, 107, 107, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 576px) {
    .lockout-warning {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .lockout-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .lockout-warning h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .lockout-warning p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .lockout-timer .timer-circle {
        width: 120px;
        height: 120px;
    }
    
    .lockout-timer .timer-time {
        font-size: 20px;
    }
    
    .lockout-timer .timer-label {
        font-size: 12px;
    }
    
    .lockout-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ========================================================================
   تخصيص الكرت - Card Customization Styles
   ======================================================================== */

/* زر تخصيص الكرت */
.customize-card-section {
    margin: 20px 0;
    text-align: center;
}

/* عرض التخصيص الحالي في صفحة Status */
.current-customization {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 10px 0 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.current-customization:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.customization-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.customization-text {
    flex: 1;
    font-weight: 500;
}

.customize-card-btn {
    background: linear-gradient(135deg, #d2ab17, #b89312);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    box-shadow: 0 3px 12px rgba(210, 171, 23, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    line-height: 1.15;
}

.customize-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(210, 171, 23, 0.4);
    background: linear-gradient(135deg, #e6c01f, #d2ab17);
}

.customize-card-btn:active {
    transform: translateY(0);
    background: #a8830f;
    border-color: #a8830f;
}

.customize-card-btn .btn-icon {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.customize-card-btn .btn-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.customize-card-btn .btn-subtitle {
    font-size: 12px;
    opacity: 0.95;
    /* إزالة التموضع المطلق لضمان التوسيط العمودي */
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    white-space: nowrap;
    margin-top: 2px;
}

/* نافذة تخصيص الكرت - التصميم الجديد الخفيف */
.customize-modal-content {
    max-width: 380px !important;
    width: 90% !important;
    max-height: 80vh;
    padding: 25px !important;
    background: rgba(0, 0, 0, 0.65) !important;   /* تحسين تباين النص خارج البطاقات */
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.customize-header {
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 20px;
}

.customize-header h2 {
    font-size: 20px !important;
    margin: 0 !important;
    color: #ffffff !important;  /* نص أبيض واضح */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.customize-body {
    padding: 0 !important;
    color: #ffffff; /* نص أبيض افتراضي */
}

.customize-subtitle {
    font-size: 14px;
    color: #ffffff;                   /* جعل النص أبيض */
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* بطاقات التخصيص - تصميم جديد خفيف */
.customize-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.customize-card {
    background: rgba(255, 255, 255, 0.1);        /* خلفية شفافة خفيفة */
    border: 1px solid rgba(255, 255, 255, 0.25); /* حدود أنعم */
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 85px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

/* تأثير الدخول للبطاقات */
.customize-card {
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customize-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.customize-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.customize-card .card-icon {
    font-size: 24px;
    margin-bottom: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.customize-card:hover .card-icon {
    transform: scale(1.1);
}

.customize-card .card-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;                  /* نص أبيض خارج البطاقات */
    margin-bottom: 3px;
    line-height: 1.2;
}

.customize-card.selected .card-title {
    color: white;
}

.customize-card .card-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9); /* نص أبيض باهت للوصف */
    line-height: 1.3;
    opacity: 0.8;
}

.customize-card.selected .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.customize-card .card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.customize-card.selected .card-check {
    opacity: 1;
    transform: scale(1);
}

/* ملاحظة التخصيص */
.customize-note {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-note .note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.customize-note .note-text { color: #ffffff !important; }

.customize-note .note-text {
    font-size: 12px;
    color: #744210;
    line-height: 1.4;
}

/* أزرار النافذة */
.customize-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.customize-actions .modal-btn {
    flex: 1;
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    font-weight: 600;
}

.customize-actions .modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
}

.customize-actions .modal-btn-secondary {
    background: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #4a5568 !important;
}

.customize-actions .modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* تصميم متجاوب للشاشات الصغيرة */
@media (max-width: 480px) {
    .customize-modal-content {
        max-width: 95% !important;
        padding: 20px !important;
    }
    
    .customize-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .customize-card {
        padding: 14px 10px;
        min-height: 80px;
    }
    
    .customize-card .card-icon {
        font-size: 22px;
    }
    
    .customize-card .card-title {
        font-size: 12px;
    }
    
    .customize-card .card-desc {
        font-size: 9px;
    }
}

/* تحذير التخصيص (مُصغر) */
.customize-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 87, 34, 0.08));
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.customize-warning .warning-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.customize-warning .warning-content p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.customize-warning strong {
    color: #FFB74D;
    font-weight: 600;
}

/* تحسينات الاستجابة للموبايل (للتصميم المُصغر) */
@media (max-width: 768px) {
    .customize-card-btn {
        min-width: 180px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .customize-card-btn .btn-subtitle {
        font-size: 10px;
    }
    
    #customize-modal .modal-content {
        width: 92%;
        margin: 15px;
        padding: 18px;
        max-width: 350px;
    }
    
    .customize-option {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .customize-option .option-icon {
        font-size: 24px;
    }
    
    .customize-option h3 {
        font-size: 15px;
    }
    
    .customize-option p {
        font-size: 11px;
    }
    
    .customize-warning {
        padding: 8px 10px;
        margin: 8px 0;
    }
    
    .customize-warning .warning-content p {
        font-size: 10px;
    }
}

/* تأثيرات متقدمة */
.customize-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.customize-option:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* تحسينات إضافية للنافذة المُصغرة */
#customize-modal .modal-header h2 {
    font-size: 18px;
    margin: 0;
}

#customize-modal .modal-message {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

#customize-modal .modal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#customize-modal .modal-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-width: 80px;
}

/* تحسين hover للخيارات المُصغرة */
.customize-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* ضمان ثبات الشريط الإخباري */
.news-ticker {
    contain: layout style paint;
    will-change: auto;
    transform: translateZ(0);
}

.news-ticker-content {
    contain: layout;
    will-change: transform;
}