:root{
    --opb-footer-bg:#071226;
    --opb-footer-bg-2:#0b1730;
    --opb-footer-text:#f8fbff;
    --opb-footer-muted:#b8c4d8;
    --opb-footer-soft:#8ea2c4;
    --opb-footer-link:#eef5ff;
    --opb-footer-line:rgba(255,255,255,.10);
    --opb-footer-chip:rgba(255,255,255,.055);
    --opb-footer-chip-hover:rgba(84,137,255,.18);
    --opb-footer-shadow:0 18px 44px rgba(2,8,23,.20);
    --opb-font:Cairo,Tajawal,"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
}

.sp-store-footer{
    width:100%;
    margin:24px 0 0;
    padding:0 16px 16px;
    background:transparent;
    color:var(--opb-footer-text);
    font-family:var(--opb-font);
    direction:rtl;
    box-sizing:border-box;
}

.sp-store-footer *,
.sp-store-footer *::before,
.sp-store-footer *::after{
    box-sizing:border-box;
}

.sp-store-footer-shell{
    width:min(1320px,100%);
    margin:0 auto;
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(56,189,248,.07), transparent 22%),
        linear-gradient(135deg,var(--opb-footer-bg-2),var(--opb-footer-bg));
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    box-shadow:var(--opb-footer-shadow);
    padding:18px 20px 16px;
    overflow:hidden;
    position:relative;
}

.sp-store-footer-shell::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.03),transparent 30%);
}

.sp-store-footer-brand,
.sp-store-footer-brand-mark,
.sp-store-footer-brand-copy,
.sp-store-footer-top,
.sp-store-footer-contact,
.sp-store-footer-contact-chip{
    display:none !important;
}

.sp-store-footer-links{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
    margin:0;
    padding:0;
}

.sp-store-footer-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 15px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background:var(--opb-footer-chip);
    color:var(--opb-footer-link);
    text-decoration:none;
    font-size:14px;
    line-height:1;
    font-weight:1000;
    white-space:nowrap;
    transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.sp-store-footer-link:hover{
    color:#ffffff;
    background:var(--opb-footer-chip-hover);
    border-color:rgba(154,191,255,.28);
    transform:translateY(-2px);
    box-shadow:0 10px 18px rgba(0,0,0,.14);
}

.sp-store-footer-bottom{
    position:relative;
    z-index:1;
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid var(--opb-footer-line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

.sp-store-footer-bottom-copy{
    color:var(--opb-footer-muted);
    font-size:13px;
    line-height:1.7;
    font-weight:900;
}

.sp-store-footer-bottom-meta{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    color:var(--opb-footer-soft);
    font-size:12px;
    line-height:1.6;
    font-weight:1000;
}

.sp-store-footer-dot{
    width:5px;
    height:5px;
    border-radius:50%;
    background:rgba(255,255,255,.28);
    display:inline-block;
}

.sp-floating-whatsapp{
    position:fixed;
    bottom:22px;
    z-index:99990;
    min-width:58px;
    min-height:58px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:0 18px;
    border-radius:999px;
    background:linear-gradient(135deg,#25D366,#128C7E);
    color:#fff;
    text-decoration:none;
    box-shadow:0 18px 40px rgba(18,140,126,.32);
    border:1px solid rgba(255,255,255,.25);
    font-family:var(--opb-font);
    font-weight:1000;
    line-height:1;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sp-floating-whatsapp.is-left{
    left:22px;
}

.sp-floating-whatsapp.is-right{
    right:22px;
}

.sp-floating-whatsapp:hover{
    transform:translateY(-3px);
    filter:brightness(1.04);
    box-shadow:0 22px 48px rgba(18,140,126,.42);
}

.sp-floating-whatsapp-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
}

.sp-floating-whatsapp-icon svg{
    width:30px;
    height:30px;
    display:block;
}

.sp-floating-whatsapp-text{
    font-size:14px;
    white-space:nowrap;
}

.opb-public-body{
    margin:0;
    background:#f7f8fb;
    color:#111827;
    font-family:var(--opb-font);
}

.opb-public-header{
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(10px);
    border-bottom:1px solid #e5e7eb;
    padding:14px clamp(14px,4vw,44px);
}

.opb-public-brand{
    color:#111827;
    text-decoration:none;
    font-size:20px;
    font-weight:1000;
}

.opb-public-header nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.opb-public-header nav a{
    color:#334155;
    text-decoration:none;
    font-weight:900;
}

.opb-public-page{
    width:min(960px,calc(100% - 28px));
    margin:32px auto;
}

.opb-public-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:clamp(20px,4vw,42px);
    box-shadow:0 18px 42px rgba(15,23,42,.08);
    line-height:2;
}

.opb-public-card h1{
    margin-top:0;
    font-size:clamp(26px,4vw,42px);
}

.opb-public-card h2{
    margin-top:24px;
}

.opb-public-card p,
.opb-public-card li{
    font-size:16px;
    color:#334155;
    font-weight:700;
}

@media (max-width:760px){
    .sp-store-footer{
        margin-top:18px;
        padding:0 10px 14px;
    }

    .sp-store-footer-shell{
        border-radius:20px;
        padding:14px 12px 12px;
    }

    .sp-store-footer-links{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .sp-store-footer-link{
        width:100%;
        min-height:42px;
        padding:0 10px;
        border-radius:14px;
        font-size:12.5px;
    }

    .sp-store-footer-bottom{
        margin-top:12px;
        padding-top:12px;
        gap:8px;
        justify-content:center;
        text-align:center;
    }

    .sp-store-footer-bottom-copy{
        width:100%;
        font-size:12px;
        text-align:center;
    }

    .sp-store-footer-bottom-meta{
        width:100%;
        justify-content:center;
        gap:8px;
        font-size:11.5px;
    }

    .sp-floating-whatsapp{
        bottom:16px;
        min-width:56px;
        min-height:56px;
        width:56px;
        height:56px;
        padding:0;
        border-radius:50%;
    }

    .sp-floating-whatsapp.is-left{
        left:16px;
    }

    .sp-floating-whatsapp.is-right{
        right:16px;
    }

    .sp-floating-whatsapp-text{
        display:none;
    }

    .opb-public-header{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media (max-width:390px){
    .sp-store-footer-shell{
        padding:12px 10px;
        border-radius:18px;
    }

    .sp-store-footer-links{
        grid-template-columns:1fr;
    }

    .sp-store-footer-link{
        min-height:40px;
    }
}

@media (max-width:760px){
    .sp-floating-whatsapp.hide-mobile{display:none !important;}
}
@media (min-width:761px){
    .sp-floating-whatsapp.hide-desktop{display:none !important;}
}


/* V7: WhatsApp above mobile bottom navbar */
@media (max-width:1024px){
    .sp-floating-whatsapp{
        bottom:calc(88px + env(safe-area-inset-bottom)) !important;
    }
}
@media (max-width:760px){
    .sp-floating-whatsapp{
        bottom:calc(82px + env(safe-area-inset-bottom)) !important;
    }
}
.opb-lang-switch{
    border:1px solid #e5e7eb;
    border-radius:999px;
    padding:6px 10px;
    background:#ffffff;
}
html[dir="ltr"] .opb-public-card{
    direction:ltr;
    text-align:left;
}
html[dir="ltr"] .opb-public-header,
html[dir="ltr"] .sp-store-footer{
    direction:ltr;
}
