:root {
    --bg-1: #0A1628;
    --bg-2: #0F1F3A;
    --bg-3: #152B4D;
    --sky: #38BDF8;
    --cyan: #22D3EE;
    --indigo: #818CF8;
    --glow: #7DD3FC;
    --text: #E0F2FE;
    --muted: #94A3B8;
    --glass: rgba(56,189,248,.08);
    --border: rgba(56,189,248,.2);
}

/* تصحيح المحدد العام من (-) إلى (*) لضبط جميع العناصر */                                                            
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* تحسين التنقل السريع: ترك مسافة علوية للأقسام عند النقر على الروابط حتى لا يغطيها الرأس الثابت */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* إزالة perspective من body لأنه يكسر position: fixed على العناصر الأبناء مثل الرأس (nav) */
body {
    background: var(--bg-1);
    color: var(--text);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 20% 30%, rgba(56,189,248,.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(129,140,248,.08) 0%, transparent 50%);
    /* إضافة مساحة علوية للجسم تعادل ارتفاع شريط التنقل الثابت لمنع اختفاء بداية المحتوى تحته */
    padding-top: 76px;
}

/* نقل منظور ثلاثي الأبعاد إلى المحتوى الرئيسي بدلاً من body للحفاظ على ثبات الرأس */
main {
    perspective: 1200px;
}

/* ===== شاشة التحميل ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .8s, visibility .8s;
}

    .loader.hide {
        opacity: 0;
        visibility: hidden;
    }

.gift-loader {
    width: 70px;
    height: 70px;
    position: relative;
    animation: bounce 1s infinite alternate;
}

    .gift-loader::before, .gift-loader::after {
        content: '';
        position: absolute;
        background: linear-gradient(135deg, var(--sky), var(--indigo));
        border-radius: 3px;
        box-shadow: 0 0 20px var(--glow);
    }

    .gift-loader::before {
        width: 100%;
        height: 16px;
        top: 24px;
    }

    .gift-loader::after {
        width: 16px;
        height: 100%;
        left: 27px;
    }

@keyframes bounce {
    to {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ===== شريط التنقل (الرأس الثابت في الأعلى) ===== */
nav,
#nav {
    position: fixed; /* تثبيت الرأس في أعلى نافذة المتصفح أثناء التمرير العمودي */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 22, 40, .88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000; /* رفع الأولوية ليبقى الرأس ظاهراً فوق جميع الطبقات */
    border-bottom: 1px solid var(--border);
    transition: .3s;
}

    nav.scrolled,
    #nav.scrolled {
        padding: 8px 5%;
        background: rgba(10, 22, 40, .96);
        box-shadow: 0 5px 30px rgba(56, 189, 248, .15);
    }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.4rem;
    background: linear-gradient(45deg, var(--sky), var(--cyan), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--indigo));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 0 25px rgba(56, 189, 248, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, .5);
    }

    50% {
        box-shadow: 0 0 40px rgba(56, 189, 248, .9);
    }
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

    .nav-links a {
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        position: relative;
        transition: .3s;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--sky), var(--cyan));
            transition: .3s;
        }

        .nav-links a:hover {
            color: var(--sky);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--sky);
    cursor: pointer;
}

/* ===== الهيرو ===== */
.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 50px 5%;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%);
        top: -200px;
        right: -200px;
        filter: blur(60px);
        animation: floatOrb 15s infinite;
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(129,140,248,.2), transparent 70%);
        bottom: -200px;
        left: -200px;
        filter: blur(60px);
        animation: floatOrb 20s infinite reverse;
    }

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(80px, -80px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--sky), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 1s ease;
    line-height: 1.3;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--muted);
    margin-bottom: 40px;
    animation: fadeUp 1s ease .2s backwards;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease .4s backwards;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .4s;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    color: var(--bg-1);
    box-shadow: 0 10px 40px rgba(56, 189, 248, .5);
}

    .btn-primary:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 20px 50px rgba(56, 189, 248, .7);
    }

.btn-outline {
    background: rgba(56, 189, 248, .05);
    color: var(--sky);
    border: 2px solid var(--sky);
    backdrop-filter: blur(10px);
}

    .btn-outline:hover {
        background: var(--sky);
        color: var(--bg-1);
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(56, 189, 248, .4);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نجوم متلألئة */
.stars-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow);
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: .2;
        transform: scale(.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ===== العناوين ===== */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--sky), var(--cyan), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* الفلترة */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(56, 189, 248, .05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    font-size: .95rem;
    backdrop-filter: blur(10px);
}

    .filter-btn:hover {
        background: rgba(56, 189, 248, .15);
        border-color: var(--sky);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, var(--sky), var(--cyan));
        color: var(--bg-1);
        box-shadow: 0 5px 25px rgba(56, 189, 248, .5);
        border-color: transparent;
    }

/* شبكة الهدايا */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.gift-card {
    background: linear-gradient(145deg, rgba(15,31,58,.9), rgba(21,43,77,.9));
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: .5s cubic-bezier(.2,.8,.2,1);
    transform-style: preserve-3d;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

    .gift-card.hide-card {
        opacity: 0;
        transform: scale(.8);
        pointer-events: none;
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    .gift-card:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
        border-color: var(--sky);
        box-shadow: 0 25px 60px rgba(56, 189, 248, .35), 0 0 40px rgba(56, 189, 248, .2);
    }

.gift-img {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
    transition: .5s;
}

.gift-card:hover .gift-img {
    transform: scale(1.1) rotate(5deg);
}

.gift-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15,31,58,.95) 100%);
}

.gift-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

    .gift-info h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        color: var(--sky);
    }

    .gift-info p {
        color: var(--muted);
        font-size: .95rem;
        line-height: 1.7;
    }

.gift-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(56, 189, 248, .15);
    color: var(--sky);
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, .3);
}

/* ألوان سماوية لكل نوع */
.type-baby {
    background: linear-gradient(135deg, #7DD3FC, #38BDF8);
}

.type-grad {
    background: linear-gradient(135deg, #818CF8, #38BDF8);
}

.type-wedding {
    background: linear-gradient(135deg, #22D3EE, #818CF8);
}

.type-birthday {
    background: linear-gradient(135deg, #38BDF8, #22D3EE);
}

.type-love {
    background: linear-gradient(135deg, #818CF8, #22D3EE);
}

.type-custom {
    background: linear-gradient(135deg, #0EA5E9, #7DD3FC);
}

/* ===== معرض الصور ===== */
.gallery {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: .4s;
    border: 1px solid var(--border);
}

    .gallery-item:hover {
        transform: scale(1.03);
        border-color: var(--sky);
        box-shadow: 0 20px 50px rgba(56, 189, 248, .35);
    }

    .gallery-item .g-img {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 5rem;
        transition: .5s;
    }

    .gallery-item:hover .g-img {
        transform: scale(1.15) rotate(5deg);
    }

    .gallery-item .g-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,.95));
        display: flex;
        align-items: flex-end;
        padding: 20px;
        opacity: 0;
        transition: .4s;
    }

    .gallery-item:hover .g-overlay {
        opacity: 1;
    }

.g-overlay span {
    color: var(--sky);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

    .lightbox.show {
        display: flex;
    }

.lightbox-content {
    max-width: 700px;
    width: 100%;
    background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    border: 2px solid var(--sky);
    box-shadow: 0 0 60px rgba(56, 189, 248, .4);
    position: relative;
    animation: zoomIn .4s;
}

@keyframes zoomIn {
    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-emoji {
    font-size: 8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, .6));
}

.lightbox h3 {
    color: var(--sky);
    font-size: 2rem;
    margin-bottom: 15px;
}

.lightbox p {
    color: var(--muted);
    line-height: 1.8;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, .15);
    border: none;
    color: var(--sky);
    font-size: 1.5rem;
    cursor: pointer;
    transition: .3s;
}

    .lightbox-close:hover {
        background: var(--sky);
        color: var(--bg-1);
        transform: rotate(90deg);
    }

/* ===== حاسبة السعر ===== */
.calculator-section {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.calculator {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 31, 58, .7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(56, 189, 248, .1);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--sky);
    font-weight: 600;
}

.calc-group select, .calc-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    background: rgba(56, 189, 248, .05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: .3s;
}

    .calc-group select:focus, .calc-group input:focus {
        border-color: var(--sky);
        box-shadow: 0 0 25px rgba(56, 189, 248, .3);
        background: rgba(56, 189, 248, .1);
    }

    .calc-group select option {
        background: var(--bg-2);
        color: var(--text);
    }

.extras-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 15px;
    background: rgba(56, 189, 248, .04);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: .3s;
    user-select: none;
}

    .extra-item:hover {
        background: rgba(56, 189, 248, .1);
        border-color: var(--sky);
    }

    .extra-item.checked {
        background: rgba(56, 189, 248, .2);
        border-color: var(--sky);
        box-shadow: 0 0 20px rgba(56, 189, 248, .3);
    }

    .extra-item input {
        accent-color: var(--sky);
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .extra-item span {
        font-weight: 600;
        font-size: .9rem;
    }

    .extra-item small {
        margin-right: auto;
        color: var(--sky);
        font-weight: 700;
        font-size: .8rem;
    }

.calc-total {
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56,189,248,.1), rgba(129,140,248,.1));
    border: 2px dashed var(--sky);
    text-align: center;
    margin-top: 20px;
}

    .calc-total .label {
        color: var(--muted);
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .calc-total .price {
        font-size: 2.5rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--sky), var(--cyan), var(--indigo));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: .4s;
    }

        .calc-total .price.bump {
            transform: scale(1.15);
        }

/* نموذج الطلب */
.order-section {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    position: relative;
    overflow: hidden;
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 31, 58, .7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(56, 189, 248, .1);
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--sky);
    font-weight: 600;
    font-size: .95rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    background: rgba(56, 189, 248, .05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: .3s;
    outline: none;
}

    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
        border-color: var(--sky);
        background: rgba(56, 189, 248, .1);
        box-shadow: 0 0 25px rgba(56, 189, 248, .3);
    }

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--bg-2);
    color: var(--text);
}

.full {
    grid-column: 1/-1;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    color: var(--bg-1);
    font-weight: 900;
    font-size: 1.15rem;
    border: none;
    cursor: pointer;
    transition: .4s;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 10px 40px rgba(56, 189, 248, .4);
}

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 50px rgba(56, 189, 248, .6);
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
        transition: .6s;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

/* آراء الزبائن */
.testimonials {
    background: var(--bg-1);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testi-card {
    background: linear-gradient(145deg, rgba(15,31,58,.9), rgba(21,43,77,.9));
    border-radius: 24px;
    padding: 35px;
    position: relative;
    border: 1px solid var(--border);
    transition: .4s;
    backdrop-filter: blur(10px);
}

    .testi-card:hover {
        transform: translateY(-10px);
        border-color: var(--sky);
        box-shadow: 0 20px 50px rgba(56, 189, 248, .3);
    }

    .testi-card::before {
        content: '"';
        position: absolute;
        top: -10px;
        right: 25px;
        font-size: 6rem;
        color: var(--sky);
        opacity: .3;
        font-family: serif;
    }

.stars {
    color: var(--sky);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testi-text {
    color: #CBD5E1;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--indigo));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: var(--bg-1);
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, .5);
}

.testi-author h4 {
    color: var(--sky);
    margin-bottom: 3px;
}

.testi-author span {
    color: var(--muted);
    font-size: .85rem;
}

/* لوحة التحكم */
.admin-toggle {
    position: fixed;
    bottom: 70px; /* رفع الزر قليلاً لعدم التداخل مع التذييل الثابت */
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--indigo));
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(56, 189, 248, .6);
    z-index: 999;
    transition: .4s;
    color: var(--bg-1);
}

    .admin-toggle:hover {
        transform: scale(1.1) rotate(15deg);
        box-shadow: 0 15px 50px rgba(56, 189, 248, .9);
    }

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
    border-left: 2px solid var(--sky);
    z-index: 10001;
    transform: translateX(-100%);
    transition: .5s cubic-bezier(.2,.8,.2,1);
    padding: 30px;
    overflow-y: auto;
    box-shadow: 10px 0 60px rgba(56, 189, 248, .3);
}

    .admin-panel.open {
        transform: translateX(0);
    }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

    .admin-header h2 {
        color: var(--sky);
        font-size: 1.5rem;
    }

.admin-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, .15);
    border: none;
    color: var(--sky);
    font-size: 1.3rem;
    cursor: pointer;
    transition: .3s;
}

    .admin-close:hover {
        background: var(--sky);
        color: var(--bg-1);
        transform: rotate(90deg);
    }

.order-item {
    background: rgba(56, 189, 248, .05);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 15px;
    transition: .3s;
}

    .order-item:hover {
        border-color: var(--sky);
        background: rgba(56, 189, 248, .1);
    }

    .order-item .order-name {
        color: var(--sky);
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 1.05rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-item .order-badge {
        padding: 3px 10px;
        border-radius: 10px;
        background: rgba(129, 140, 248, .2);
        color: var(--indigo);
        font-size: .7rem;
        font-weight: 700;
    }

    .order-item p {
        font-size: .85rem;
        color: #CBD5E1;
        margin-bottom: 5px;
        line-height: 1.6;
    }

        .order-item p strong {
            color: var(--sky);
            font-weight: 600;
        }

    .order-item .order-actions {
        display: flex;
        gap: 10px;
        margin-top: 12px;
    }

.order-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    transition: .3s;
}

.btn-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.btn-del {
    background: rgba(255, 80, 80, .2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, .3);
}

    .btn-del:hover {
        background: rgba(255, 80, 80, .4);
    }

.empty-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

    .empty-orders .empty-icon {
        font-size: 4rem;
        margin-bottom: 15px;
        opacity: .5;
    }

.admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(56, 189, 248, .1);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

    .stat-box .num {
        font-size: 1.8rem;
        font-weight: 900;
        color: var(--sky);
    }

    .stat-box .lbl {
        font-size: .75rem;
        color: var(--muted);
        margin-top: 5px;
    }

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
}

    .admin-overlay.show {
        opacity: 1;
        visibility: visible;
    }

footer {
    background: #061020;
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #38bdf8; /* لون احتياطي واضح */
    background: linear-gradient(45deg, var(--sky, #38bdf8), var(--cyan, #22d3ee), var(--indigo, #818cf8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

    .social a {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(56, 189, 248, .1);
        border: 1px solid var(--border);
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--sky);
        font-size: 1.3rem;
        text-decoration: none;
        transition: .4s;
    }

        .social a:hover {
            background: var(--sky);
            color: var(--bg-1);
            transform: translateY(-5px) rotate(360deg);
            box-shadow: 0 10px 30px rgba(56, 189, 248, .5);
        }

footer p {
    color: var(--muted);
    font-size: .9rem;
}

.toast {
    position: fixed;
    bottom: 70px;
    right: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    color: var(--bg-1);
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(56, 189, 248, .6);
    transform: translateX(500px);
    transition: .5s;
    z-index: 9999;
}

    .toast.show {
        transform: translateX(0);
    }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(.2,.8,.2,1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

@media(max-width:768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 22, 40, .98);
        padding: 20px;
        gap: 15px;
        transform: translateX(100%);
        transition: .4s;
        border-bottom: 1px solid var(--border);
    }

        .nav-links.open {
            transform: translateX(0);
        }

    .menu-btn {
        display: block;
    }

    .form-row, .calc-row {
        grid-template-columns: 1fr;
    }

    .order-form, .calculator {
        padding: 30px 20px;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 65px;
    }

    .admin-toggle {
        width: 50px;
        height: 50px;
        bottom: 65px;
        left: 15px;
    }

    .lightbox-content {
        padding: 30px 20px;
    }

    .lightbox-emoji {
        font-size: 5rem;
    }
}

/* ===== تعديلات مشروع MVC: تذييل ثابت أسفل الشاشة ===== */
body {
    padding-bottom: 58px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 5%;
    background: #061020;
}

    footer .footer-logo,
    footer .footer-content > p:not(.copyright),
    footer .social {
        display: none;
    }

    footer .copyright {
        margin: 0;
        font-size: .85rem;
    }

/* منع لوحة الإدارة من التداخل مع زرها على الشاشات الصغيرة */
@media (max-width: 768px) {
    body {
        padding-bottom: 54px;
    }

    footer {
        padding: 9px 5%;
    }
}
