/* The old global bottom safe-space produced a visible white strip after the footer. */
    body.sabron-has-site-footer,
    body:has(.creative-footer) {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    html:has(.creative-footer) {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        background: #0f172a;
    }

    .creative-footer {
        margin-bottom: 0 !important;
    }

    /* ========================================= */
    /* 1. Elite Footer Styles */
    /* ========================================= */
    .creative-footer {
        position: relative;
        overflow: hidden;
        direction: inherit;
        font-family:'Cairo',sans-serif;
        color: #e2e8f0;
        padding-top: 52px;
        padding-bottom: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background:
            radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.20), transparent 25%),
            radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.16), transparent 25%),
            radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.08), transparent 30%),
            linear-gradient(180deg, #08101d 0%, #0b1120 45%, #0f172a 100%);
    }

    .creative-footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255,255,255,0.02), transparent 20%, transparent 80%, rgba(255,255,255,0.02)),
            linear-gradient(180deg, rgba(255,255,255,0.015), transparent 25%);
        pointer-events: none;
        z-index: 0;
    }

    .footer-bg-glow {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background:
            radial-gradient(circle at center top, rgba(139, 92, 246, 0.10), transparent 38%),
            radial-gradient(circle at left bottom, rgba(14, 165, 233, 0.06), transparent 28%);
    }

    .footer-shell {
        position: relative;
        z-index: 2;
        border-radius: 28px;
        padding: 28px 22px 20px;
        border: 1px solid rgba(255,255,255,0.08);
        background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
        box-shadow:
            0 20px 60px rgba(2, 6, 23, 0.35),
            inset 0 1px 0 rgba(255,255,255,0.05);
        backdrop-filter: blur(8px);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.18fr 1.08fr 0.94fr;
        gap: 22px;
        align-items: stretch;
    }

    .footer-card {
        position: relative;
        height: 100%;
        padding: 20px 18px;
        border-radius: 22px;
        border: 1px solid rgba(255,255,255,0.07);
        background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
        overflow: hidden;
    }

    .footer-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent 35%);
        pointer-events: none;
    }

    .footer-brand-head {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
    }

    .footer-logo-box {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 82px;
        height: 82px;
        border-radius: 21px;
        border: 1px solid rgba(212, 175, 55, 0.45);
        background: #ffffff;
        box-shadow:
            0 14px 34px rgba(2, 6, 23, 0.28),
            0 0 0 5px rgba(212, 175, 55, 0.08);
        overflow: hidden;
    }

    .footer-logo {
        width: 78px !important;
        height: 78px !important;
        min-width: 78px !important;
        min-height: 78px !important;
        max-width: 78px !important;
        max-height: 78px !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        border-radius: 18px;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-brand-text {
        min-width: 0;
    }

    .footer-brand-title {
        margin: 0 0 8px 0;
        font-size: 1.48rem;
        line-height: 1.2;
        font-weight: 900;
        color: #fff;
        letter-spacing: -0.3px;
    }

    .footer-brand-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 0.84rem;
        font-weight: 800;
        color: #ddd6fe;
        background: rgba(124, 58, 237, 0.12);
        border: 1px solid rgba(196, 181, 253, 0.18);
    }

    .footer-brand-badge::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8b5cf6, #3b82f6);
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.55);
    }

    .footer-desc {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.9;
        color: #d8e2ef;
    }

    .social-icons {
        display: flex;
        gap: 12px;
        margin-top: 18px;
    }

    .social-link {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
        font-size: 1.05rem;
        border: 1px solid rgba(255,255,255,0.10);
        background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
        box-shadow: 0 10px 28px rgba(2, 6, 23, 0.22);
        transition: all 0.3s ease;
    }

    .social-link:hover {
        background: #1877F2;
        border-color: #1877F2;
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 16px 32px rgba(24, 119, 242, 0.28);
    }

    .f-title {
        color: #fff;
        font-size: 1.14rem;
        font-weight: 900;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        letter-spacing: -0.2px;
    }

    .f-title::before {
        content: '';
        width: 4px;
        height: 22px;
        border-radius: 3px;
        background: linear-gradient(180deg, #8b5cf6, #3b82f6);
        box-shadow: 0 0 12px rgba(124, 58, 237, 0.35);
    }

    .f-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 20px;
    }

    .f-links li {
        margin: 0;
    }

    .f-links a {
        color: #f8fafc;
        text-decoration: none;
        font-size: 0.96rem;
        font-weight: 700;
        line-height: 1.75;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.28s ease;
        opacity: 0.96;
    }

    .f-links a:hover {
        color: #ffffff;
        transform: translateX(-6px);
        text-shadow: 0 0 14px rgba(255,255,255,0.08);
    }

    .f-links i {
        font-size: 0.76rem;
        color: #a78bfa;
        transition: transform 0.28s ease, color 0.28s ease;
    }

    .f-links a:hover i {
        transform: translateX(-3px);
        color: #ddd6fe;
    }

    .contact-stack {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .contact-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #a78bfa;
        font-size: 1rem;
        border: 1px solid rgba(255,255,255,0.09);
        background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18);
    }

    .contact-meta-label {
        display: block;
        margin-bottom: 4px;
        color: #94a3b8;
        font-size: 0.85rem;
        font-weight: 700;
    }

    .contact-meta-link {
        color: #fff;
        text-decoration: none;
        font-size: 0.98rem;
        font-weight: 800;
        transition: color 0.3s ease;
        word-break: break-word;
    }

    .contact-meta-link:hover {
        color: #ddd6fe;
    }

    .wa-card {
        position: relative;
        overflow: hidden;
        margin-top: 4px;
        border-radius: 18px;
        padding: 15px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        text-decoration: none;
        border: 1px solid rgba(37, 211, 102, 0.22);
        background: linear-gradient(145deg, rgba(19, 32, 51, 0.98), rgba(15, 23, 42, 0.98));
        box-shadow: 0 12px 32px rgba(2, 6, 23, 0.20);
        transition: all 0.35s ease;
    }

    .wa-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(37,211,102,0.08), transparent 45%);
        pointer-events: none;
    }

    .wa-card:hover {
        transform: translateY(-4px);
        border-color: #25D366;
        box-shadow: 0 18px 36px rgba(37, 211, 102, 0.14);
    }

    .wa-info h4 {
        margin: 0 0 4px 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 900;
    }

    .wa-info span {
        display: block;
        color: #a8b5c7;
        font-size: 0.86rem;
        line-height: 1.8;
    }

    .wa-icon {
        flex-shrink: 0;
        font-size: 2rem;
        color: #25D366;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
        text-align: center;
        font-size: 0.96rem;
        color: #cbd5e1;
        line-height: 1.8;
    }

    .footer-bottom strong {
        color: #fff;
        font-weight: 900;
    }

    /* زر الصعود للأعلى */
    #smart-scroll-btn {
        position: fixed;
        bottom: 25px;
        left: 25px;
        width: 45px;
        height: 45px;
        background: #fff;
        color: #0f172a;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        border: 2px solid #fff;
        transition: all 0.4s;
    }

    #smart-scroll-btn:hover {
        background: #7c3aed;
        color: #fff;
        border-color: #7c3aed;
    }

    /* Responsive */
    @media (max-width: 991px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }

        .footer-card.brand-card {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 768px) {
        .creative-footer {
            text-align: center;
            padding-top: 36px;
            padding-bottom: 16px;
        }

        .footer-shell {
            padding: 22px 16px 18px;
            border-radius: 22px;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }

        .footer-card {
            padding: 18px 15px;
            border-radius: 20px;
        }

        .footer-brand-head {
            flex-direction: column;
            text-align: center;
            gap: 12px;
        }

        .footer-logo-box {
            margin: 0 auto;
        }

        .footer-brand-title,
        .f-title {
            justify-content: center;
        }

        .footer-brand-badge {
            justify-content: center;
        }

        .footer-desc {
            font-size: 0.94rem;
            line-height: 1.85;
        }

        .social-icons {
            justify-content: center;
        }

        .f-links {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .f-links a {
            justify-content: center;
            font-size: 0.92rem;
        }

        .contact-meta-link {
            font-size: 0.92rem;
        }

        .contact-row {
            justify-content: center;
            text-align: center;
        }

        .wa-card {
            text-align: right;
        }

        #smart-scroll-btn {
            left: 20px;
            bottom: 20px;
            width: 40px;
            height: 40px;
        }

        #sabron-chat-widget {
            width: 90% !important;
            right: 5% !important;
            bottom: 85px !important;
            height: 60vh !important;
        }
    }

    /* ========================================= */
    /* 2. Chatbot Widget Styles */
    /* ========================================= */
    #sabron-chat-widget {
        display: none;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 380px;
        height: 550px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 9999;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Cairo', sans-serif;
        border: 1px solid rgba(0,0,0,0.05);
        animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .chat-header {
        background: linear-gradient(135deg, #6f42c1, #4c1d95);
        color: white;
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .chat-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .chat-avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #fff;
        padding: 2px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .chat-status {
        font-size: 11px;
        opacity: 0.9;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chat-status::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        display: block;
    }

    #chat-box {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: #f8f9fa;
        background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
        background-size: 20px 20px;
        scroll-behavior: smooth;
    }

    .chat-input-area {
        padding: 15px;
        background: white;
        border-top: 1px solid #f0f0f0;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    #user-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 25px;
        outline: none;
        font-family: 'Cairo', sans-serif;
        font-size: 14px;
        transition: border-color 0.3s;
    }

    #user-input:focus {
        border-color: #6f42c1;
    }

    #send-btn {
        background: #6f42c1;
        color: white;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s, background 0.2s;
        font-size: 16px;
    }

    #send-btn:hover {
        background: #5b21b6;
        transform: scale(1.05);
    }

    #chat-toggle {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #6f42c1, #4c1d95);
        color: white;
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 20px rgba(111, 66, 193, 0.4);
        cursor: pointer;
        z-index: 9998;
        font-size: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
    }

    #chat-toggle:hover {
        transform: scale(1.1) rotate(5deg);
    }

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

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

html[lang="en"] .sabron-footer{font-family:'Inter',Arial,sans-serif;}
