/* ===========================
   Slide 23 — Access Control (RBAC)
   =========================== */
.slide-23 {
    background: radial-gradient(ellipse at 70% 50%, #110a1a 0%, #08050d 60%, #030205 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.glow-access-center {
    position: absolute;
    top: 40%;
    right: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

.gold-text {
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.slide-layout-two-col {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* بطاقة المستثمر */
.investor-note {
    background: linear-gradient(90deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.02) 100%);
    border-right: 4px solid var(--gold);
    padding: 18px 20px;
    border-radius: 12px 0 0 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .p-feature:hover {
        background: rgba(255,255,255,0.03);
        border-color: rgba(255,255,255,0.08);
        transform: translateX(-5px);
    }

/* الواجهة التخيلية (Access Mockup) */
.access-mockup {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    direction: rtl;
}

    .access-mockup:hover {
        transform: perspective(1000px) rotateY(0deg);
    }

.mockup-header {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-title {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
}

.access-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* بطاقات الأدوار */
.roles-selection {
    display: flex;
    gap: 12px;
}

.role-card {
    flex: 1;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.3s;
}

.active-role {
    background: rgba(139,92,246,0.1);
    border-color: #8b5cf6;
}

.role-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.role-info strong {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.role-info span {
    color: rgba(255,255,255,0.4);
    font-size: 0.6rem;
}

/* مصفوفة الصلاحيات */
.permissions-matrix {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 16px;
}

.matrix-header {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .toggle-item span {
        color: rgba(255,255,255,0.7);
        font-size: 0.75rem;
    }

/* تصميم المفاتيح (Switches) */
.switch {
    width: 34px;
    height: 18px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

    .switch.on {
        background: #22c55e;
    }

    .switch.off {
        background: #374151;
    }

    .switch::after {
        content: '';
        position: absolute;
        top: 2px;
        width: 14px;
        height: 14px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

    .switch.on::after {
        left: 18px;
    }

    .switch.off::after {
        left: 2px;
    }

/* شارة الحماية */
.security-shield-badge {
    background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(139,92,246,0.02) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-icon {
    font-size: 1.5rem;
    color: #8b5cf6;
}

.security-shield-badge strong {
    display: block;
    color: #8b5cf6;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.security-shield-badge span {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .slide-layout-two-col {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .access-mockup {
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}
