/* ═══════════════════════════════════════════
   SALOGI PUBLIC LAYOUT — Global Styles
   All pages using SalogiPublicLayout share these.
   Extracted from inline <style> block.
═══════════════════════════════════════════ */

/* Salogi Variables — scoped to avoid conflicts with global Sky365 theme */
.salogi-public-root,
.salogi-modern-root {
    --navy: #003B95;
    --navy-dark: #002865;
    --navy-light: #0052CC;
    --orange: #F37021;
    --orange-light: #FF8C42;
    --orange-glow: rgba(243, 112, 33, 0.15);
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base */
.salogi-public-root * {
    box-sizing: border-box;
}

.salogi-public-root {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    background: var(--slate-50);
    color: var(--slate-800);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

.salogi-modern-root {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    background: var(--slate-50);
    color: var(--slate-800);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────── */
.sal-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: box-shadow 0.3s, background 0.3s;
}

.sal-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 59, 149, 0.12);
}

.sal-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sal-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sal-nav-logo {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 59, 149, 0.25);
}

.sal-nav-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.sal-nav-subtitle {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--slate-400);
    font-weight: 700;
}

.sal-nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sal-nav-links {
        display: flex;
    }
}

.sal-nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--navy);
    transition: all 0.2s;
}

.sal-nav-burger:hover {
    background: #e0e7ff;
    border-color: #bfdbfe;
}

@media (min-width: 768px) {
    .sal-nav-burger {
        display: none !important;
    }
}

.sal-nav-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sal-nav-link:hover {
    border-bottom-color: var(--orange);
    color: var(--orange);
}

.sal-nav-link.active {
    border-bottom-color: var(--orange);
    color: var(--orange);
    font-weight: 800;
}

/* Mega Menu */
.sal-mega-wrap {
    position: relative;
}

.sal-mega-wrap::after {
    content: "";
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: min(30rem, calc(100vw - 2rem));
    height: 0.9rem;
    z-index: 119;
}

.sal-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 26rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 50px rgba(0, 59, 149, 0.12);
    border: 1px solid var(--slate-100);
    padding: 1.5rem;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    z-index: 120;
}

.sal-mega-wrap:hover::after,
.sal-mega-wrap:focus-within::after {
    display: block;
}

.sal-mega-wrap:hover .sal-mega-menu,
.sal-mega-wrap:focus-within .sal-mega-menu,
.sal-mega-wrap.is-open .sal-mega-menu {
    display: grid;
}

.sal-mega-col-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.sal-mega-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.sal-mega-link:hover {
    background: var(--slate-50);
    color: var(--navy);
}

.sal-mega-link i {
    width: 1.5rem;
    text-align: center;
    color: var(--navy-light);
}

/* Expand Menu Overlay */
#salogiExpandOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#salogiExpandContent {
    position: fixed;
    right: 1.5rem;
    top: 5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    width: 18rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

/* Mobile Menu */
.sal-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.sal-mobile-menu.active {
    display: flex;
}

.sal-mobile-menu a,
.sal-mobile-menu button {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-700);
    text-decoration: none;
}

.sal-mobile-menu a.active {
    color: var(--orange);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-right: 4px solid var(--orange);
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    box-shadow: 0 8px 20px rgba(243, 112, 33, 0.16);
    text-decoration: none;
}

.sal-expand-link.active {
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%) !important;
    border-right: 4px solid var(--navy);
    color: var(--navy) !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px rgba(0, 59, 149, 0.12);
}

/* ── BUTTONS ────────────────────────────── */
.btn-orange {
    background: var(--orange);
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 112, 33, 0.35);
}

.btn-navy {
    background: var(--navy);
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy) !important;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 0.65rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--slate-50);
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 0.75rem;
}

/* Form Input */
.sal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--slate-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    outline: none;
}

.sal-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 59, 149, 0.08);
}

/* ── FOOTER ─────────────────────────────── */
.sal-footer {
    background: linear-gradient(135deg, var(--slate-900), var(--navy-dark));
    color: #fff;
    padding: 3rem 1.5rem;
}

.sal-footer a {
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.2s;
}

.sal-footer a:hover {
    color: #fff;
}

/* ── AUTH MODAL ─────────────────────────── */
.sal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.sal-modal-overlay.active {
    display: flex;
}

.sal-modal-box {
    background: #fff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.sal-tab-btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--slate-400);
    border-bottom: 2px solid transparent;
    transition: all 0.25s;
}

.sal-tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.sal-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 0.6rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ── FAM (Floating Action Menu) ────────── */
.sal-fam {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 300;
}

.sal-fam-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    transform-origin: bottom right;
    animation: salFamInUp 0.22s ease;
}

.sal-fam-menu.active {
    display: flex;
}

.sal-fam.fam-down .sal-fam-menu {
    transform-origin: top right;
    animation: salFamInDown 0.22s ease;
}

/* Sub-menu container — hidden by default, visible when .active */
.sal-fam-submenu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    transform-origin: bottom right;
    animation: salFamInUp 0.22s ease;
}

.sal-fam-submenu.active {
    display: flex;
}

.sal-fam.fam-down .sal-fam-submenu {
    transform-origin: top right;
    animation: salFamInDown 0.22s ease;
}

/* Trigger button rotation when menu is open */
.sal-fam-trigger {
    transition: transform 0.25s, box-shadow 0.2s;
}

/* Shared shell layouts */
.salogi-client-root {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    direction: rtl;
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.salogi-client-sidebar {
    width: 16rem;
    background: #1e293b;
    color: #fff;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.salogi-client-brand {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.salogi-client-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 16rem;
}

.salogi-client-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #1e293b;
}

.salogi-client-content {
    flex: 1;
    padding: 2rem 1.5rem;
}

.client-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.client-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.client-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.client-nav-icon {
    width: 1rem;
    text-align: center;
}

.client-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.salogi-client-sidebar::-webkit-scrollbar {
    width: 4px;
}

.salogi-client-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.salogi-provider-root {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    direction: rtl;
    display: flex;
    min-height: 100vh;
    background: #fdfcfb;
}

.salogi-provider-sidebar {
    width: 16rem;
    background: #1e1b4b;
    color: #fff;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.salogi-provider-brand {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.salogi-provider-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 16rem;
}

.salogi-provider-topbar {
    background: #fff;
    border-bottom: 1px solid #e0e7ff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #1e1b4b;
}

.salogi-provider-content {
    flex: 1;
    padding: 2rem 1.5rem;
}

.provider-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.provider-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.provider-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.provider-nav-icon {
    width: 1rem;
    text-align: center;
}

.provider-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.salogi-provider-sidebar::-webkit-scrollbar {
    width: 4px;
}

.salogi-provider-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.salogi-wms-root {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    direction: rtl;
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.salogi-wms-sidebar {
    width: 16rem;
    background: #0f172a;
    color: #fff;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.salogi-wms-brand {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.salogi-wms-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 16rem;
}

.salogi-wms-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #0f172a;
}

.salogi-wms-content {
    flex: 1;
    padding: 2rem 1.5rem;
}

.wms-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.wms-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wms-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wms-nav-icon {
    width: 1rem;
    text-align: center;
}

.wms-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.wms-nav-section {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
}

.wms-step-badge {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    margin-right: auto;
}

.salogi-elite-root {
    font-family: 'Outfit', sans-serif;
    background: #030712;
    color: #f9fafb;
    min-height: 100vh;
    direction: rtl;
}

.salogi-elite-root .elite-nav {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salogi-elite-root .elite-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.salogi-elite-root .elite-main {
    padding-top: 5rem;
}

.salogi-elite-root .elite-footer {
    background: #111827;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.elite-merchant-root {
    font-family: 'Outfit', sans-serif;
    background: #030712;
    color: #f9fafb;
    min-height: 100vh;
    display: flex;
    direction: rtl;
}

.elite-merchant-root .elite-sidebar {
    width: 18rem;
    background: #111827;
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.elite-merchant-root .elite-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    color: #9ca3af;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.elite-merchant-root .elite-nav-item:hover,
.elite-merchant-root .elite-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.1);
}

.elite-merchant-root .elite-main {
    flex: 1;
    margin-right: 18rem;
    display: flex;
    flex-direction: column;
}

.elite-merchant-root .elite-topbar {
    height: 5rem;
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.elite-merchant-root .elite-content {
    padding: 3rem;
}

.elite-merchant-root .elite-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .salogi-client-sidebar {
        width: 4rem;
        padding: 1rem 0.5rem;
    }

    .salogi-client-main {
        margin-right: 4rem;
    }

    .client-nav-text {
        display: none;
    }

    .salogi-client-brand-text {
        display: none;
    }

    .salogi-provider-sidebar {
        width: 4rem;
        padding: 1rem 0.5rem;
    }

    .salogi-provider-main {
        margin-right: 4rem;
    }

    .provider-nav-text {
        display: none;
    }

    .salogi-provider-brand-text {
        display: none;
    }

    .salogi-wms-sidebar {
        width: 4rem;
        padding: 1rem 0.5rem;
    }

    .salogi-wms-main {
        margin-right: 4rem;
    }

    .wms-nav-text {
        display: none;
    }

    .wms-nav-section {
        display: none;
    }
}

.sal-fam-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sal-fam-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@keyframes salFamInUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes salFamInDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Salogi feature components */
.elite-apps-container {
    display: flex;
    height: calc(100vh - 80px);
    background: #f8fafc;
    overflow: hidden;
}

.elite-apps-container .elite-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.elite-apps-container .sidebar-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 700;
}

.elite-apps-container .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elite-apps-container .category-list li {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.elite-apps-container .category-list li:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.elite-apps-container .category-list li.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.elite-apps-container .elite-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.elite-apps-container .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.elite-apps-container .search-box {
    position: relative;
    width: 400px;
}

.elite-apps-container .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.elite-apps-container .search-box input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.elite-apps-container .search-box input:focus {
    border-color: #3b82f6;
}

.elite-apps-container .apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.elite-apps-container .app-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.elite-apps-container .app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

.elite-apps-container .app-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.elite-apps-container .app-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.elite-apps-container .app-info p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.elite-apps-container .app-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.elite-apps-container .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.elite-apps-container .badge.industry {
    background: #fef3c7;
    color: #b45309;
}

.elite-apps-container .app-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.elite-apps-container .btn-activate {
    flex: 1;
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.elite-apps-container .btn-activate:hover {
    background: #1d4ed8;
}

.elite-apps-container .btn-learn {
    flex: 1;
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.elite-apps-container .btn-premium {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roadmap-container {
    padding: 20px;
    direction: rtl;
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title-group h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.title-group p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.roadmap-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: #1e293b;
    padding: 8px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-badge.active {
    border-color: #38bdf8;
}

.stat-badge .label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.stat-badge .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
}

.roadmap-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.roadmap-column {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roadmap-column.active {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(56, 189, 248, 0.1);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.03);
}

.column-header .count {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.roadmap-item {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.roadmap-item:hover {
    transform: translateY(-5px);
    background: #232f45;
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.roadmap-item.active {
    border-left: 4px solid #38bdf8;
}

.roadmap-item.completed {
    opacity: 0.8;
}

.item-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tag-ai { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.tag-mobile { background: rgba(244, 63, 94, 0.1); color: #fb7185; }
.tag-ui { background: rgba(14, 165, 233, 0.1); color: #38bdf8; }
.tag-data { background: rgba(234, 179, 8, 0.1); color: #facc15; }
.tag-core { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.tag-rental { background: rgba(255, 159, 64, 0.1); color: #ff9f40; }
.tag-archive { background: rgba(108, 92, 231, 0.1); color: #6c5ce7; }
.tag-subcontractor { background: rgba(0, 184, 148, 0.1); color: #00b894; }
.tag-concrete { background: rgba(99, 110, 114, 0.1); color: #636e72; }
.tag-pharmacy { background: rgba(0, 184, 148, 0.12); color: #00b894; border: 1px solid rgba(0,184,148,0.2); }
.tag-pos { background: rgba(9, 132, 227, 0.12); color: #0984e3; border: 1px solid rgba(9,132,227,0.2); }
.tag-barcode { background: rgba(225, 112, 85, 0.12); color: #e17055; border: 1px solid rgba(225,112,85,0.2); }
.tag-qrcode { background: rgba(0, 206, 201, 0.12); color: #00cec9; border: 1px solid rgba(0,206,201,0.2); }
.tag-clothing { background: rgba(253, 121, 168, 0.12); color: #fd79a8; border: 1px solid rgba(253,121,168,0.2); }
.tag-workshop { background: rgba(251, 146, 60, 0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.tag-fleet { background: rgba(100, 116, 139, 0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.tag-storage { background: rgba(234, 179, 8, 0.12); color: #eab308; border: 1px solid rgba(234,179,8,0.2); }
.tag-charity { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.tag-quran { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.tag-coop { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.2); }

.roadmap-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.roadmap-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to left, #38bdf8, #818cf8);
    border-radius: 10px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.priority {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.priority.high { color: #f87171; }

.sal-reg-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: right;
    direction: rtl;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 22px 48px rgba(15, 42, 84, 0.10);
}

.sal-reg-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.sal-reg-icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #0f62fe, #4338ca);
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}

.sal-reg-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f2a54;
    margin: 0;
}

.sal-reg-sub {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.sal-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.sal-reg-field { display: flex; flex-direction: column; }
.sal-reg-field--full { grid-column: 1 / -1; }

.sal-reg-field label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 0.35rem;
}

.sal-reg-field label span { color: #dc2626; }

.sal-reg-field input {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sal-reg-field input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.sal-reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.sal-reg-btn--block { width: 100%; }

.sal-reg-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #0f62fe 0%, #1d4ed8 48%, #4338ca 100%);
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.28);
}

.sal-reg-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(29, 78, 216, 0.34);
    filter: saturate(1.05);
}

.sal-reg-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.sal-reg-foot {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 700;
}

.sal-reg-foot a {
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: none;
}

.sal-reg-foot a:hover { text-decoration: underline; }

.sal-reg-alert {
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sal-reg-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sal-reg-card--done { text-align: center; }
.sal-reg-card--done .sal-reg-icon {
    margin: 0 auto 0.85rem;
    background: linear-gradient(135deg, #059669, #0f766e);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.28);
}

@media (max-width: 575.98px) {
    .sal-reg-grid { grid-template-columns: 1fr; }
    .sal-reg-head { flex-direction: column; }
}
