/* ==========================================================================
   تصميم مستقبلي نقي وفخم ومضبوط 100% بدون أي ترحيل أو مشاكل مقاسات
   ========================================================================== */

:root {
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.4);
    --purple: #8b5cf6;
    --border: rgba(56, 189, 248, 0.18);
    --border-hover: rgba(6, 182, 212, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #03050c;
    color: #f1f5f9;
    font-family: 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* صورة الخلفية المستقبلية مثبتة وممتدة بالكامل */
.futuristic-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: url('../img/futuristic_bg.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

/* هالات توهج ناعمة خفيفة في الأطراف */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.22;
    z-index: 1;
}

.glow-orb-1 {
    width: 320px;
    height: 320px;
    background: #06b6d4;
    top: -50px;
    right: -50px;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -50px;
    left: -50px;
}

/* كارت السايبر المستقبلي الزجاجي المضبوط */
.cyber-card {
    position: relative;
    background: rgba(8, 14, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(6, 182, 212, 0.12);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.cyber-card:hover {
    border-color: var(--border-hover);
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(6, 182, 212, 0.22);
}

/* حقول الإدخال */
.cyber-input {
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    transition: all 0.2s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
    background: rgba(3, 7, 18, 0.95);
}

/* أزرار مستقبلية متوهجة */
.cyber-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 800;
    border-radius: 0.75rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cyber-btn:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.55);
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.cyber-btn:active {
    transform: translateY(1px);
}

/* شارات النيون */
.neon-badge-cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22d3ee;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.neon-badge-purple {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* السكرول بار */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #03050c;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* ==========================================================================
   تحسينات العرض المتجاوبة المخصصة للتابلت وشاشات اللمس (768px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    /* ضبط الحشو الداخلي للبطاقات على التابلت */
    .cyber-card {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    
    /* تسهيل التمرير باللمس لشريط المحطات */
    #stepper-nav {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* تكبير مساحة اللمس للأزرار لتناسب أصابع اليد على شاشة التابلت */
    button, .cyber-btn {
        min-height: 40px;
    }
}

/* دعم كسر الكلمات العربية الطويلة ومنع أي خروج عن الإطار */
p, span, h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-break: normal;
}
