html {
    scroll-behavior: smooth;
}

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

:root {
    --bg-base: #06070a;
    --bg-elev: #0b0d12;
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-mid: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.62);
    --text-muted: rgba(255, 255, 255, 0.42);
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --accent-glow: rgba(124, 92, 255, 0.45);
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    background-image: url('../images/cyber_background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    overflow: visible;
    height: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.status-bar {
    width: 100%;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    padding: 0 20px;
    color: #a0a0a0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border-bottom: 3px solid #333;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px #4CAF50;
}

.status-bar p {
    color: #a0a0a0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.status-bar p:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(0, 212, 255, 0.5);
}

.status-bar p::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    right: 0;
    background-color: #ffffff;
    display: none;
}

.status-bar p:hover::after {
    display: block;

}

/* ═══════════════════════════════════════════════════════
   شريط العروض الكلاسيكي الأنيق
   • خلفية داكنة هادية + خط ذهبي رفيع + فواصل بسيطة
   • بدون أيقونات أو نيون
   ═══════════════════════════════════════════════════════ */
.promo-strip {
    position: relative;
    width: 100%;
    height: 55px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    border-top: 1px solid #1f1f1f;
    border-bottom: 1px solid #1f1f1f;
    margin-bottom: 0;
    padding: 0;
    box-shadow: none;
}

/* إزالة الفيديو والـ overlay لأن الستايل كلاسيكي */
.promo-video,
.promo-overlay,
.promo-border-top,
.promo-border-bottom {
    display: none;
}

/* الحاوي */
.promo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

/* المسار المتحرك — حركة هادئة */
.promo-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marqueeSlide 45s linear infinite;
    width: max-content;
}

@keyframes marqueeSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* عناصر النص — خط أنيق هادي */
.promo-item {
    display: inline-flex;
    align-items: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    /* أبيض محايد هادي */
    letter-spacing: 1.2px;
    text-shadow: none;
    text-transform: none;
    animation: none;
    padding: 0 30px;
    position: relative;
}

/* فاصل بين العناصر — خط عمودي رفيع محايد */
.promo-item::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #2a2a2a;
    margin-left: 30px;
    vertical-align: middle;
}

/* توحيد كل الألوان للأبيض المحايد */
.promo-item:nth-child(odd),
.promo-item-pink,
.promo-item-purple {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
    animation: none;
}

/* تظليل للكلمات المهمة — أبيض ساطع */
.promo-item em,
.promo-item strong {
    color: rgba(255, 255, 255, 0.95);
    font-style: normal;
    font-weight: 500;
}

/* إخفاء النجوم والوسوم تماماً */
.promo-star,
.promo-tag {
    display: none !important;
}

/* للموبايل — مدمج وأنيق */
@media (max-width: 768px) {
    .promo-strip {
        height: 45px;
    }

    .promo-item {
        font-size: 11px;
        letter-spacing: 0.8px;
        padding: 0 20px;
    }

    .promo-item::after {
        height: 8px;
        margin-left: 20px;
    }
}

.stack-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0;
    height: 100vh;
    min-height: 100vh;
    z-index: 1;
    overflow: visible;

    /* ═══ 3D context for the KSD image ═══ */
    perspective: 1400px;
    perspective-origin: 25% 50%;
}

.video-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   الهيدر — لوجو + زرار احترافي + Nav Bar جوا
   (image-box اتحوّل لـ header)
   ═══════════════════════════════════════════════════════ */
.image-box {
    position: absolute;
    /* ◀ الهيدر فوق — قريب من الـstatus bar + promo strip */
    top: 20px;
    left: 20px;
    right: 20px;
    height: 130px;

    /* خلفية فاخرة — تدرج رمادي داكن أنيق بدون توهج */
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.85) 0%, rgba(30, 30, 35, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* حد رفيع جداً — ذهبي خفيف جداً (إحساس فاخر) */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;

    /* ظل ناعم مش فج */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 0;
    z-index: 10;
    overflow: visible;
}

/* محتوى الهيدر — اللوجو بس (تحت) */
.header-content {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 30px 0 30px;
    direction: ltr;
}

/* خط فاصل رفيع بين الـnav والـlogo */
.header-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   شريط التنقل (جوا الهيدر) — Luxury Minimal
   ═══════════════════════════════════════════════════════ */
.nav-bar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    z-index: 3;
}

/* روابط التنقل — في نص الـnav-bar */
.nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    z-index: 1;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* خط رفيع تحت الـactive — لون محايد أبيض شفاف */
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: width 0.3s ease;
}

.nav-item:hover a {
    color: #ffffff;
}

.nav-item:hover a::after,
.nav-item.active a::after {
    width: 70%;
}

.nav-item.active a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* سهم القائمة المنسدلة */
.nav-chevron {
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-chevron {
    opacity: 1;
}

/* القائمة المنسدلة */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px;

    background: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-dropdown li a::after {
    display: none;
    /* مفيش خط ذهبي في الـdropdown */
}

.nav-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* الأيقونات على اليمين */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* زرار اللغة */
.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-lang:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* زرار Account — ستايل فاتح Luxury (بدون أصفر فج) */
.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-account:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-account-icon {
    fill: #ffffff;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.nav-account:hover .nav-account-icon {
    opacity: 1;
}

/* للموبايل */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }

    .nav-links {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .nav-item a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 4px 0 0 16px;
        min-width: 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .nav-lang,
    .nav-account {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* اللوجو — ستايل Luxury Minimal */
.header-logo {
    height: 44px;
    margin-top: 0;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}

.header-logo:hover {
    opacity: 1;
}

/* زرار "ابدأ الآن" القديم اتشال — استُبدل بـ Login جوا الـnav-bar */

/* ═══════════════════════════════════════════════════════
   الصورة الإضافية (KSD) — مع أنيميشن 3D إبداعي متعدد الطبقات
   • هالة ضوئية دوارة
   • جزيئات متطايرة
   • لمعان يمر على الصورة
   • تطفو + دوران + نبضة قلب + parallax
   ═══════════════════════════════════════════════════════ */



/* ═══ الصورة نفسها ═══ */
.header-corner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    will-change: transform, filter;
    backface-visibility: hidden;
    cursor: pointer;

    /* ═══ توهج متعدد الألوان + ظل ═══ */
    filter:
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 20px rgba(124, 92, 255, 0.5))
        drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
    opacity: 0.95;

    /* ═══ أنيميشن: تطفو + دوران Y + نبضة + لمعان ═══ */
    animation: ksdFloat3D 7s ease-in-out infinite,
        ksdGlowPulse 4.5s ease-in-out infinite,
        ksdHeartbeat 2.4s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.5s ease;
}

/* ═══ الهالة الضوئية الدوارة (وراء الصورة) ═══ */
.ksd-aura {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            transparent 0%,
            rgba(124, 92, 255, 0.35) 15%,
            rgba(0, 212, 255, 0.35) 35%,
            rgba(255, 92, 222, 0.35) 55%,
            rgba(124, 92, 255, 0.35) 75%,
            transparent 100%);
    filter: blur(30px);
    z-index: -1;
    animation: ksdAuraRotate 8s linear infinite,
        ksdAuraPulse 4.5s ease-in-out infinite;
    opacity: 0.7;
}

/* ═══ اللمعان اللي بيعدي على الصورة (shine sweep) ═══ */
.ksd-shine {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg,
            transparent 30%,
            rgba(255, 255, 255, 0) 35%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 65%,
            transparent 70%);
    background-size: 300% 100%;
    background-position: 200% 0;
    mix-blend-mode: overlay;
    animation: ksdShineSweep 5s ease-in-out infinite;
}

/* ═══ الجزيئات المتطايرة ═══ */
.ksd-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.9) 0%, rgba(124, 92, 255, 0) 70%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    opacity: 0;
}

/* توزيع الجزيئات حول الصورة بشكل دائري */
.p1 {
    top: 5%;
    left: 50%;
    animation: particleFloat1 4s ease-in-out infinite;
}

.p2 {
    top: 30%;
    left: 95%;
    animation: particleFloat2 5s ease-in-out infinite 0.5s;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.9) 0%, rgba(0, 212, 255, 0) 70%);
    box-shadow: 0 0 8px rgba(124, 92, 255, 0.8);
}

.p3 {
    top: 50%;
    left: 100%;
    animation: particleFloat3 4.5s ease-in-out infinite 1s;
}

.p4 {
    top: 75%;
    left: 90%;
    animation: particleFloat4 5.5s ease-in-out infinite 1.5s;
    background: radial-gradient(circle, rgba(255, 92, 222, 0.9) 0%, rgba(255, 92, 222, 0) 70%);
    box-shadow: 0 0 8px rgba(255, 92, 222, 0.8);
}

.p5 {
    top: 95%;
    left: 50%;
    animation: particleFloat5 4.2s ease-in-out infinite 2s;
}

.p6 {
    top: 75%;
    left: 10%;
    animation: particleFloat6 5s ease-in-out infinite 0.8s;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.9) 0%, rgba(0, 212, 255, 0) 70%);
    box-shadow: 0 0 8px rgba(124, 92, 255, 0.8);
}

.p7 {
    top: 50%;
    left: 0%;
    animation: particleFloat7 4.8s ease-in-out infinite 1.2s;
}

.p8 {
    top: 30%;
    left: 5%;
    animation: particleFloat8 5.2s ease-in-out infinite 0.3s;
    background: radial-gradient(circle, rgba(255, 92, 222, 0.9) 0%, rgba(255, 92, 222, 0) 70%);
    box-shadow: 0 0 8px rgba(255, 92, 222, 0.8);
}

/* ═══════════════════════════════════════════════════════
   الـ Keyframes
   ═══════════════════════════════════════════════════════ */

/* تطفو + دوران 3D للحاوية كلها */
@keyframes ksdContainerFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* تطفو + دوران Y/X للصورة نفسها */
@keyframes ksdFloat3D {

    0%,
    100% {
        transform: translateY(0) translateZ(0) rotateY(-10deg) rotateX(3deg);
    }

    25% {
        transform: translateY(-12px) translateZ(40px) rotateY(0deg) rotateX(-3deg);
    }

    50% {
        transform: translateY(-20px) translateZ(70px) rotateY(10deg) rotateX(3deg);
    }

    75% {
        transform: translateY(-12px) translateZ(40px) rotateY(0deg) rotateX(-3deg);
    }
}

/* نبضة توهج متعددة الألوان */
@keyframes ksdGlowPulse {

    0%,
    100% {
        filter:
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 20px rgba(124, 92, 255, 0.5))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
    }

    33% {
        filter:
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 30px rgba(0, 212, 255, 0.7))
            drop-shadow(0 0 55px rgba(255, 92, 222, 0.4));
    }

    66% {
        filter:
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 35px rgba(255, 92, 222, 0.6))
            drop-shadow(0 0 60px rgba(124, 92, 255, 0.5));
    }
}

/* نبضة قلب خفيفة جداً (scale ناعم) */
@keyframes ksdHeartbeat {

    0%,
    100% {
        --pulse: 1;
    }

    50% {
        --pulse: 1.04;
    }
}

/* الهالة تدور حول الصورة */
@keyframes ksdAuraRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* الهالة تنبض (تظهر وتختفي) */
@keyframes ksdAuraPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.85;
    }
}

/* اللمعان يمر على الصورة بشكل مائل */
@keyframes ksdShineSweep {
    0% {
        background-position: 200% 0;
    }

    20%,
    100% {
        background-position: -100% 0;
    }
}

/* حركات الجزيئات — كل واحدة بمسار مختلف */
@keyframes particleFloat1 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(20px, -30px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(40px, -60px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat2 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(30px, 20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(60px, 40px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat3 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(25px, -10px) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(50px, -20px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat4 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(15px, -25px) scale(1.3);
        opacity: 1;
    }

    100% {
        transform: translate(30px, -50px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat5 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-15px, -20px) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-30px, -40px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat6 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-25px, 10px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50px, 20px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat7 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-20px, -15px) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-40px, -30px) scale(0);
        opacity: 0;
    }
}

@keyframes particleFloat8 {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-15px, 20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-30px, 40px) scale(0);
        opacity: 0;
    }
}

/* ═══ عند الـ hover: وقّف الأنيميشن الأساسي وادّي pose مذهل ═══ */
.header-corner-wrap:hover .header-corner-img {
    animation-play-state: paused;
    transform: translateY(-40px) translateZ(140px) rotateY(22deg) rotateX(-6deg) scale(1.18);
    filter:
        drop-shadow(0 12px 20px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 50px rgba(124, 92, 255, 1))
        drop-shadow(0 0 90px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 120px rgba(255, 92, 222, 0.5));
}

/* عند الـ hover: الهالة تكبر وتدور أسرع */
.header-corner-wrap:hover .ksd-aura {
    animation-duration: 3s, 2s;
    opacity: 1;
}

/* عند الـ hover: الجزيئات تطلع أكتر */
.header-corner-wrap:hover .particle {
    animation-duration: 2s;
}

/* ═══ Responsive — للموبايل نسخة مخففة ═══ */
@media (max-width: 768px) {
    .stack-wrapper {
        perspective: 1000px;
        perspective-origin: 50% 50%;
    }

    .header-corner-wrap {
        width: 90px;
        height: 90px;
    }

    .header-corner-wrap.ksd-top {
        width: 90px;
        height: 90px;
        top: calc(100vh - 190px);
        left: 65px;
    }

    .header-corner-wrap.ksd-bottom-left {
        width: 90px;
        height: 90px;
        top: calc(100vh - 100px);
        left: 14px;
    }

    .header-corner-wrap.ksd-bottom-right {
        width: 90px;
        height: 90px;
        top: calc(100vh - 100px);
        left: 115px;
    }

    .header-corner-img {
        border-radius: 10px;
        animation: ksdFloat3DMobile 6s ease-in-out infinite,
            ksdGlowPulse 4.5s ease-in-out infinite;
    }

    .ksd-aura {
        inset: -30%;
        filter: blur(20px);
    }

    .particle {
        width: 4px;
        height: 4px;
    }
}

@keyframes ksdFloat3DMobile {

    0%,
    100% {
        transform: translateY(0) translateZ(0) rotateY(-7deg) rotateX(2deg);
    }

    50% {
        transform: translateY(-14px) translateZ(35px) rotateY(7deg) rotateX(-2deg);
    }
}

/* ═══════════════════════════════════════════════════════
   الصورة الإضافية (Kyoko)
   ═══════════════════════════════════════════════════════ */
.image-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    max-width: 90vw;
    max-height: 90vh;
    background-image: url('../images/1.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1; /* Changed to 1 so the model overlay (z-index 2) sits in front of it */
    filter: drop-shadow(0 0 50px rgba(56, 189, 248, 0.7));
    display: block;
}

.model-overlay {
    position: fixed;
    top: 72%;
    left: 75%; /* Moved slightly to the left */
    transform: translate(-50%, -50%);
    width: 2000px;
    height: 2000px;
    pointer-events: none;
    z-index: 2; /* Sits in front of the anime character */
    display: block;
}



.model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/model_shape.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.95;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 40s infinite linear, planetWobble 8s infinite ease-in-out;
}

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

@keyframes planetWobble {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 244, 255, 0.1)) translateY(0px);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.2)) translateY(-25px);
    }
}

.top-model-overlay {
    position: fixed;
    top: 22%;
    left: 20%; /* Centered around the Welcome text area */
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    z-index: 1; /* Sits behind the hero text but above the space background */
    display: block;
}



.top-model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/top_model_shape.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 45s infinite linear reverse, planetWobbleTop 9s infinite ease-in-out;
}

@keyframes planetWobbleTop {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.1)) translateY(0px) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.2)) translateY(-20px) rotate(3deg);
    }
}

.third-model-overlay {
    position: fixed;
    top: 78%;
    left: 15%; /* Positioned on the bottom-left side */
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    z-index: 1; /* Sits behind the hero text but above the space background */
    display: block;
}



.third-model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/third_model_shape.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 55s infinite linear, planetWobbleThird 10s infinite ease-in-out;
}

@keyframes planetWobbleThird {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 244, 255, 0.1)) translateY(0px) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.2)) translateY(-18px) rotate(-2deg);
    }
}

.fourth-model-overlay {
    position: fixed;
    top: 25%;
    left: 80%; /* Positioned on the top-right side */
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    z-index: 1; /* Sits behind the main content but above background */
    display: block;
}

.fourth-model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/fourth_model_shape.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 50s infinite linear reverse, planetWobbleFourth 11s infinite ease-in-out;
}

@keyframes planetWobbleFourth {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 244, 255, 0.1)) translateY(0px) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.2)) translateY(-15px) rotate(3deg);
    }
}

.fifth-model-overlay {
    position: fixed;
    top: 55%;
    left: 35%; /* Offset to the left to create a beautiful diagonal composition */
    transform: translate(-50%, -50%);
    width: 330px;
    height: 330px;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    z-index: 1; /* Sits behind the text content but above background */
    display: block;
}

.fifth-model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/fifth_model_shape.png'); /* The new shape image */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.8;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 60s infinite linear reverse, planetWobbleFifth 12s infinite ease-in-out;
}

@keyframes planetWobbleFifth {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 244, 255, 0.1)) translateY(0px) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.15)) translateY(-20px) rotate(-3deg);
    }
}

.six-model-overlay {
    position: fixed;
    top: 15%;
    left: 55%; /* Floating center-top, balancing top-left and top-right */
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    z-index: 2; /* In front of others */
    display: block;
}

.six-model-planet-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/six_model_shape.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    will-change: transform;
    /* Planet-like rotation and slow orbit wobble animations */
    animation: planetRotate 42s infinite linear, planetWobbleSix 8.5s infinite ease-in-out;
}

@keyframes planetWobbleSix {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 244, 255, 0.1)) translateY(0px) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.2)) translateY(-15px) rotate(2deg);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter:
            drop-shadow(0 0 50px rgba(56, 189, 248, 0.7)) drop-shadow(0 0 100px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 150px rgba(56, 189, 248, 0.2));
    }

    50% {
        filter:
            drop-shadow(0 0 70px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 130px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 180px rgba(56, 189, 248, 0.3));
    }
}

/* ═══════════════════════════════════════════════════════
   محتوى الشمال — Pixel/Retro hero (Welcome text)
   • تحت الهيدر مباشرة، شمال الـviewport
   • خط monospace مع توهج أبيض زي ستايل الصورة
   ═══════════════════════════════════════════════════════ */
.hero-content {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(calc(-50% + 12vh));
    z-index: 5;
    max-width: 520px;
    text-align: left;
    direction: ltr;
    pointer-events: auto;
}

.hero-title {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 44px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.6),
        0 0 32px rgba(255, 255, 255, 0.3);
}

/* 3-layer "Welcome" stack — pixel layered effect
   layer-3 = furthest back (darkest), layer-1 = closest (brightest white) */
.hero-welcome-stack {
    position: relative;
    display: inline-block;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 44px;
    line-height: 1;
    margin: 0 0 4px 0;
    letter-spacing: 2px;
    color: #ffffff;
}

.welcome-layer {
    display: block;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.welcome-layer-1 {
    position: relative;
    color: #ffffff;
    transform: translate(0, 0);
    z-index: 3;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.6),
        0 0 32px rgba(255, 255, 255, 0.3);
}

.welcome-layer-2 {
    position: absolute;
    inset: 0;
    color: rgba(255, 255, 255, 0.18);
    transform: translate(-4px, 4px);
    z-index: 2;
    filter: blur(1px);
}

.welcome-layer-3 {
    position: absolute;
    inset: 0;
    color: rgba(255, 255, 255, 0.09);
    transform: translate(-9px, 9px);
    z-index: 1;
    filter: blur(1.8px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-subtitle {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 22px 0;
    letter-spacing: 1px;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.5),
        0 0 14px rgba(255, 255, 255, 0.25);
}

.hero-description {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0 0 14px 0;
    letter-spacing: 0.4px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.hero-meta {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin: 0 0 28px 0;
    letter-spacing: 0.4px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}

.hero-cta {
    display: inline-block;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 400;
    color: #0a0a0a;
    background: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 24px rgba(255, 255, 255, 0.3);
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.8),
        0 0 32px rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Image-as-button variant — strip pill chrome, let the image show */
.hero-cta-image {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    line-height: 0;
}

.hero-cta-image:hover {
    background: transparent;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.hero-cta-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72px;
    border-radius: 6px;
}

/* صورة تحت الـ Pixel Marquee — متمركزة تحت الشريط مباشرة */
.below-marquee-image {
    position: absolute;
    bottom: 20px;
    right: 40%;
    display: block;
    max-width: 320px;
    width: auto;
    height: auto;
    max-height: 80px;
    z-index: 7;
}

/* ═══════════════════════════════════════════════════════
   شريط الصورة المتحرك — تحت كلام الـ dashboard
   زي الـ promo-strip اللي فوق بس فيه صور
   ═══════════════════════════════════════════════════════ */
.image-marquee-strip {
    position: relative;
    /* بعرض الشاشة كامل — بيكسر أي max-width للـ parent */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* يمتد على كل الأعمدة في الـ grid */
    grid-column: 1 / -1;
    height: 64px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    margin-bottom: 60px;
}

.image-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: imageMarqueeSlide 35s linear infinite;
    width: max-content;
}

@keyframes imageMarqueeSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-img {
    display: inline-block;
    height: 44px;
    width: auto;
    padding: 0 14px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.marquee-img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .stack-wrapper {
        height: 100vh;
        min-height: 500px;
    }

    .video-box {
        height: 100%;
    }

    .image-box {
        height: 120px;
        top: 50px;
        left: 10px;
        right: 10px;
        border-radius: 6px;
        padding: 8px 0;
    }

    .header-content {
        padding: 8px 15px 0 15px;
    }

    .header-logo {
        height: 32px;
    }

    .image-overlay {
        width: 180px;
        height: 180px;
    }

    .header-corner-img {
        border-radius: 10px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        top: 50%;
        transform: translateY(calc(-50% + 6vh));
        max-width: none;
    }

    .hero-title,
    .hero-welcome-stack {
        font-size: 30px;
    }

    .welcome-layer-2 {
        transform: translate(-3px, 3px);
    }

    .welcome-layer-3 {
        transform: translate(-6px, 6px);
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-description,
    .hero-meta {
        font-size: 15px;
    }

    .hero-cta {
        font-size: 11px;
        padding: 12px 22px;
    }

    /* Pixel marquee — أصغر في الموبايل */
    .pixel-marquee {
        height: 38px;
        bottom: 20px;
    }

    .marquee-segment {
        font-size: 10px;
        letter-spacing: 1px;
        padding: 0 18px;
    }

    .marquee-arrow {
        font-size: 13px;
        padding: 0 5px;
    }

    .pixel-marquee::before,
    .pixel-marquee::after {
        width: 40px;
    }
}

/* ═══════════════════════════════════════════════════════
   المحتوى اللي تحت الـhero — بيظهر مع الـscroll
   ═══════════════════════════════════════════════════════ */

/* ===== Pixel Marquee — LEARN MORE · SCROLL DOWN =====
   شريط متحرك بـ pixel font بين آخر الـhero والـdivider
   بيتحرك من اليمين للشمال (RTL) في loop مستمر ===== */
.pixel-marquee {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg,
            rgba(6, 7, 10, 0.0) 0%,
            rgba(6, 7, 10, 0.55) 50%,
            rgba(6, 7, 10, 0.0) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 8;
    pointer-events: none;
}

/* vignette يمين + شمال: يخلي النص يظهر ويختفي تدريجياً */
.pixel-marquee::before,
.pixel-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.pixel-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(6, 7, 10, 0.95), transparent);
}

.pixel-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(6, 7, 10, 0.95), transparent);
}

/* خط فاصل رفيع فوق وتحت الـmarquee */
.pixel-marquee::marker {
    content: '';
}

/* ═══════════════════════════════════════════════════════
   Pixel Marquee — LEARN MORE · SCROLL DOWN
   شريط متحرك بـ pixel font بين آخر الـhero والـdivider
   بيتحرك من اليمين للشمال (RTL) في loop مستمر
   ═══════════════════════════════════════════════════════ */
.pixel-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
    animation: marquee-scroll 28s linear infinite;
    will-change: transform;
}

/* سرعة أبطأ عند hover */
.pixel-marquee:hover .pixel-marquee-track {
    animation-duration: 60s;
}

.marquee-segment {
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow:
        0 0 6px rgba(124, 92, 255, 0.35),
        0 0 14px rgba(0, 212, 255, 0.18);
    padding: 0 16px;
    flex-shrink: 0;
    opacity: 0.85;
}

.marquee-arrow {
    font-size: 16px;
    color: var(--accent-2, #00d4ff);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
    padding: 0 6px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* الـ track يتحرك بمقدار نص عرضه بالظبط (النصف = النسخة الأولى) */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== القسم الرئيسي (features, pricing, cta) ===== */
.main-content {
    position: relative;
    z-index: 5;
    background: transparent;
}

.features-section,
.cta-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== شبكة المميزات ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== قسم الـCTA ===== */
.cta-section {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 180, 255, 0.03) 100%);
}

.cta-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #5b3eff 100%);
    color: #fff;
    padding: 14px 36px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px -8px var(--accent-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px var(--accent-glow);
}

/* Image-as-button variant — strip pill chrome, let the image show */
.cta-button-image {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    line-height: 0;
}

.cta-button-image:hover {
    box-shadow: 0 12px 32px -8px var(--accent-glow);
}

.cta-button-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    border-radius: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .features-section,
    .cta-section {
        padding: 60px 20px;
    }

    .section-title,
    .cta-title {
        font-size: 1.8rem;
    }

    .section-subtitle,
    .cta-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   Dashboard sections wrapper (الـCTA النهائي)
   ═══════════════════════════════════════════════════════ */
.dashboard-section {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 180px 8% 140px;
    direction: ltr;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 1) 100%), url('../images/2eabaf401c2ddba7019c97f98712c0c2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    border-top: none;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-section-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   Hero Split Box Container (الخلفية المستطيلة للمجسمات والنص)
   ═══════════════════════════════════════════════════════ */
.hero-split-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: -75px 0 60px; /* Pull it up directly under the scroll down marquee, stretch full width */
    padding: 70px 8%; /* Center content using percentage padding */
    border-radius: 0; /* Flat edges for full-width band look */
    /* Cyberpunk Ambient glowing backgrounds inside the card */
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 180, 0.04) 0%, transparent 40%),
        rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 240, 255, 0.15); /* Top/Bottom neon borders only */
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    border-left: none;
    border-right: none;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5), 
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 35px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 480px;
}

/* HUD Corner Brackets - Futuristic Cyber Frame */
.hud-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 240, 255, 0.85);
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.8));
}
.hud-corner.top-left {
    top: 14px;
    left: 6%; /* Aligned to content padding */
    border-right: none;
    border-bottom: none;
}
.hud-corner.top-right {
    top: 14px;
    right: 6%;
    border-left: none;
    border-bottom: none;
}
.hud-corner.bottom-left {
    bottom: 14px;
    left: 6%;
    border-right: none;
    border-top: none;
}
.hud-corner.bottom-right {
    bottom: 14px;
    right: 6%;
    border-left: none;
    border-top: none;
}

.dashboard-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 6% 0 auto; /* Push it to the right half of the box */
    color: rgba(255, 255, 255, 0.85);
    font-family: 'VT323', 'Courier New', monospace; /* Match top hero description */
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: left;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.dashboard-copy-title {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace; /* Match Welcome title font */
    font-size: 28px; /* Increased from 22px */
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.6),
        0 0 32px rgba(255, 255, 255, 0.3);
}

.dashboard-copy p {
    margin: 0 0 16px;
    opacity: 0.9;
}

.dashboard-copy p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   3D Canvas Container
   ═══════════════════════════════════════════════════════ */
#hero-3d-canvas-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

#hero-3d-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: transparent;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-split-box {
        flex-direction: column;
        margin: 40px 16px;
        padding: 40px 20px;
        min-height: auto;
    }

    #hero-3d-canvas-container {
        position: relative;
        width: 100%;
        height: 380px;
        top: 0;
        left: 0;
    }

    .dashboard-copy {
        margin: 30px auto 0;
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 120px 24px 80px;
    }

    .dashboard-copy {
        font-size: 20px;
    }

    .dashboard-copy-title {
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════════════════════
   Prism Grid CSS
   ═══════════════════════════════════════════════════════ */
.prism-grid-section {
    padding: 100px 40px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
}

.prism-grid-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.prism-grid-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.prism-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.prism-card {
    position: relative;
    background: rgba(11, 13, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.1s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    overflow: hidden;
    cursor: pointer;
}

.prism-card:hover {
    border-color: rgba(124, 92, 255, 0.4);
}

/* Dynamic glowing light spot */
.prism-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.15s ease;
}

.prism-card-inner {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
    pointer-events: none;
}

.prism-icon {
    font-size: 32px;
    color: var(--accent-2);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
    display: inline-block;
}

.prism-card:nth-child(2) .prism-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.6));
}

.prism-card:nth-child(3) .prism-icon {
    color: #ff00b4;
    filter: drop-shadow(0 0 10px rgba(255, 0, 180, 0.6));
}

.prism-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.prism-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .prism-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .prism-grid-section {
        padding: 60px 20px;
    }
    .prism-grid-title {
        font-size: 32px;
    }
}

/* ═══════════════════════════════════════════════════════
   Terminal Showcase Section (المستطيل الثاني للشاشة التفاعلية)
   ═══════════════════════════════════════════════════════ */
.terminal-showcase-section {
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 5;
}

.terminal-showcase-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 40px 0 80px; /* Stretch full width */
    padding: 60px 8%; /* Center content using percentage padding */
    border-radius: 0; /* Flat edges for full-width band look */
    background: 
        radial-gradient(circle at 90% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255, 0, 180, 0.04) 0%, transparent 40%),
        rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 240, 255, 0.15); /* Top/Bottom neon borders only */
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    border-left: none;
    border-right: none;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5), 
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 35px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 440px;
}

.terminal-info {
    position: relative;
    z-index: 2;
    width: 45%;
    text-align: left;
}

.terminal-title {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.6),
        0 0 32px rgba(255, 255, 255, 0.3);
}

.terminal-description {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    letter-spacing: 0.4px;
    margin-bottom: 24px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Status indicator glow */
.terminal-status-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
    color: #00f0ff;
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.pulse-glow-dot {
    width: 8px;
    height: 8px;
    background-color: #00f0ff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00f0ff;
    animation: terminalPulse 2s infinite ease-in-out;
}

@keyframes terminalPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.terminal-canvas-wrapper {
    width: 50%;
    height: 380px;
    position: relative;
    z-index: 2;
    cursor: grab;
}

.terminal-canvas-wrapper:active {
    cursor: grabbing;
}

#monitor-3d-canvas-container {
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

#monitor-3d-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: transparent;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
}

/* Responsive showcase */
@media (max-width: 1024px) {
    .terminal-showcase-container {
        flex-direction: column;
        margin: 40px 0;
        padding: 40px 20px;
        min-height: auto;
    }

    .terminal-info {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .terminal-title {
        font-size: 15px;
    }

    .terminal-canvas-wrapper {
        width: 100%;
        height: 350px;
    }
}

/* ═══════════════════════════════════════════════════════
   Spaceship Cockpit HUD & Retro CRT Scanline Styling
   ═══════════════════════════════════════════════════════ */

/* Update backgrounds of the containers with scanlines and coordinate dot grids */
.hero-split-box,
.terminal-showcase-container {
    background: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 2px, transparent 2px, transparent 4px), /* CRT horizontal scanlines */
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 180, 0.04) 0%, transparent 40%),
        radial-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px), /* Dot radar coordinate matrix */
        rgba(10, 10, 15, 0.7) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 20px 20px, 100% 100% !important;
}

/* Neon scanner sweep line */
.radar-sweep-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35) 30%, rgba(0, 240, 255, 0.35) 70%, transparent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    z-index: 2;
    pointer-events: none;
    animation: radarSweep 6s infinite linear;
}

@keyframes radarSweep {
    0% { top: 0%; opacity: 0; }
    8% { opacity: 0.7; }
    92% { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

/* HUD Cockpit telemetry text readouts */
.cockpit-telemetry {
    position: absolute;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    color: rgba(0, 240, 255, 0.45);
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
}
.cockpit-telemetry.top-left {
    top: 20px;
    left: calc(8% + 24px);
}
.cockpit-telemetry.top-right {
    top: 20px;
    right: calc(8% + 24px);
}
.cockpit-telemetry.bottom-left {
    bottom: 20px;
    left: calc(8% + 24px);
}
.cockpit-telemetry.bottom-right {
    bottom: 20px;
    right: calc(8% + 24px);
    color: rgba(255, 0, 180, 0.45); /* magenta readout */
    text-shadow: 0 0 4px rgba(255, 0, 180, 0.3);
}

/* Tactical dotted crosshair overlay behind/around 3D objects */
.target-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(0, 240, 255, 0.22);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0; /* behind models */
    animation: spinCrosshair 35s infinite linear;
}

@keyframes spinCrosshair {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.target-crosshair::before,
.target-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 240, 255, 0.18);
}

/* Vertical reticle line */
.target-crosshair::before {
    top: -12px;
    bottom: -12px;
    left: 50%;
    width: 1px;
}

/* Horizontal reticle line */
.target-crosshair::after {
    left: -12px;
    right: -12px;
    top: 50%;
    height: 1px;
}

/* Responsive adjustments for telemetry */
@media (max-width: 1024px) {
    .cockpit-telemetry {
        display: none; /* Hide complex telemetry on mobile to avoid layout crowding */
    }
    
    .target-crosshair {
        width: 100px;
        height: 100px;
    }
}

/* Pulse animation for magenta led indicators in the third card */
@keyframes terminalPulseMagenta {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════════
   Windows 95 Retro Configurator Widget Styles
   ═══════════════════════════════════════════════════════ */
/* Futuristic Cyber Configurator Widget Styles */
.cyber-panel {
    background: rgba(11, 13, 18, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 244, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 244, 255, 0.08), 
                inset 0 0 20px rgba(0, 244, 255, 0.05);
    padding: 24px;
    width: 100%;
    max-width: 840px;
    margin: 15px auto;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

/* Sidebar and workspace layout */
.cyber-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.cyber-tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    padding-inline-end: 20px;
    position: relative;
    z-index: 10;
}

.cyber-configurator-main {
    flex-grow: 1;
}

/* Tool Item */
.cyber-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-tool-item:hover {
    background: rgba(0, 244, 255, 0.04);
    border-color: rgba(0, 244, 255, 0.25);
    transform: translateX(-4px); /* slide inside RTL */
}

/* Active State */
.cyber-tool-item.active {
    background: rgba(0, 244, 255, 0.08);
    border-color: var(--accent-2);
    box-shadow: 0 0 15px rgba(0, 244, 255, 0.15), inset 0 0 8px rgba(0, 244, 255, 0.05);
}

.cyber-tool-logo-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    pointer-events: none;
}

.cyber-tool-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.cyber-tool-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    pointer-events: none;
}

.cyber-tool-item:hover .cyber-tool-name,
.cyber-tool-item.active .cyber-tool-name {
    color: #ffffff;
}

.cyber-tool-item.active .cyber-tool-name {
    text-shadow: 0 0 8px rgba(0, 244, 255, 0.4);
}

.cyber-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-2), #ff00b4, transparent);
    opacity: 0.85;
}

/* Window Title Bar */
.cyber-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.cyber-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 244, 255, 0.4);
}

.cyber-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cyber-status-led {
    width: 8px;
    height: 8px;
    background-color: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-2);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Window Body */
.cyber-body {
    background: transparent;
}

.cyber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.cyber-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cyber-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cyber-icon {
    font-size: 16px;
    color: var(--accent-2);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.cyber-interactive {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Custom Cyber Range Input */
.cyber-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    transition: background 0.2s ease;
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    margin-top: 0;
}

.cyber-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-2), 0 0 5px #ffffff;
}

.cyber-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.cyber-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-2), 0 0 5px #ffffff;
}

/* Numeric input and units combo */
.cyber-input-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 95px;
    height: 32px;
}

.cyber-input-container:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 10px rgba(0, 244, 255, 0.2);
}

.cyber-input {
    width: 55px;
    height: 100%;
    background: transparent;
    color: #ffffff;
    border: none;
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    outline: none;
    padding: 0;
}

/* Hide spin buttons */
.cyber-input::-webkit-outer-spin-button,
.cyber-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cyber-input[type=number] {
    -moz-appearance: textfield;
}

.cyber-unit {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding-right: 10px;
    white-space: nowrap;
}

/* Window Footer */
.cyber-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Gradient Action Button */
.cyber-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5), 0 0 10px rgba(0, 244, 255, 0.3);
}

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

.cyber-price-display {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.cyber-price {
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-2);
    text-shadow: 0 0 10px rgba(0, 244, 255, 0.5);
    margin-left: 4px;
    margin-right: 4px;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .cyber-workspace {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cyber-tools-sidebar {
        border-inline-end: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-inline-end: 0;
        padding-bottom: 16px;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .cyber-tool-item {
        flex-shrink: 0;
        min-width: 150px;
        justify-content: center;
    }

    .cyber-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cyber-panel {
        padding: 16px;
    }
}


/* ═══════════════════════════════════════════════════════
   Dashboard Jet & Right 3D Canvases (المجسمات ثلاثية الأبعاد أسفل الموقع)
   ═══════════════════════════════════════════════════════ */
.dashboard-jet-wrapper {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    z-index: 3;
    pointer-events: auto; /* Enable dragging and interaction */
}

.dashboard-right-wrapper {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    z-index: 3;
    pointer-events: auto; /* Enable dragging and interaction */
}

#jet-3d-canvas-container,
#right-model-3d-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

#jet-3d-canvas-container:active,
#right-model-3d-canvas-container:active {
    cursor: grabbing;
}

.jet-load-status,
.right-model-load-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: rgba(0, 240, 255, 0.7);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* stack on smaller screens so they don't overlap centered text */
@media (max-width: 1100px) {
    .dashboard-jet-wrapper,
    .dashboard-right-wrapper {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin: 30px auto 0;
        width: 300px;
        height: 300px;
    }
}

/* ═══════════════════════════════════════════════════════
   Cyber Footer CSS (تذييل الصفحة البكسلي التفاعلي)
   ═══════════════════════════════════════════════════════ */
.cyber-footer-section {
    background: #08080c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 20px 40px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.cyber-footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cyber-footer-cta-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 16px rgba(255, 255, 255, 0.4);
}

.cyber-footer-cta-desc {
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #a0a0a5;
    max-width: 600px;
    line-height: 1.4;
    margin: 0;
}

.cyber-footer-cta-btn-wrapper {
    margin: 10px 0;
}

.cyber-footer-btn {
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 20px;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cyber-footer-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cyber-footer-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.cyber-footer-nav {
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.8;
}

.cyber-footer-nav-link {
    color: #808085;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.cyber-footer-nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cyber-footer-socials-centered {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.cyber-footer-social-icon {
    color: #606065;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cyber-footer-social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.cyber-footer-badge-wrapper {
    margin: 10px 0;
}

.cyber-footer-badge {
    font-family: 'VT323', monospace;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #808085;
    letter-spacing: 1px;
}

.cyber-footer-info {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #606065;
    line-height: 1.6;
}

.cyber-footer-quote {
    color: #808085;
    font-style: italic;
    display: inline-block;
    margin-top: 6px;
}