/* BPB Guide Page Styles - Rewritten */

/* ============================================
   PAGE LAYOUT
   ============================================ */

html {
    scroll-behavior: smooth;
}

.bpb-guide-page {
    background: #000000;
    min-height: 100vh;
    padding: 3rem 0;
    position: relative;
}

.bpb-guide-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(34, 197, 94, 0.08) 25%, rgba(34, 197, 94, 0.08) 26%, transparent 27%, transparent 74%, rgba(34, 197, 94, 0.08) 75%, rgba(34, 197, 94, 0.08) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(34, 197, 94, 0.08) 25%, rgba(34, 197, 94, 0.08) 26%, transparent 27%, transparent 74%, rgba(34, 197, 94, 0.08) 75%, rgba(34, 197, 94, 0.08) 76%, transparent 77%, transparent);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.bpb-guide-page > .container {
    position: relative;
    z-index: 1;
}

.bpb-guide-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    position: relative;
}

/* ============================================
   SIDEBAR - DESKTOP (Sticky - moves with scroll)
   ============================================ */

.bpb-sidebar {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(15, 15, 15, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
    order: 2;
    grid-column: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    /* Smooth transition */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Sticky positioning only on desktop - با استایل یکتا و قوی */
@media (min-width: 1025px) {
    /* Container مخصوص BPB */
    .bpb-container {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Layout مخصوص BPB */
    .bpb-layout-sticky {
        display: grid !important;
        grid-template-columns: 1fr 320px !important;
        gap: 2rem !important;
        align-items: start !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Sidebar مخصوص BPB */
    .bpb-sidebar-sticky {
        position: sticky !important;
        top: 2rem !important;
        z-index: 10 !important;
        max-height: calc(100vh - 4rem) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: start !important;
        will-change: transform !important;
        /* مخفی کردن scrollbar */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
    }
    
    /* مخفی کردن scrollbar در Chrome, Safari */
    .bpb-sidebar-sticky::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Hover effect for sticky sidebar */
.bpb-sidebar:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Wizard Image Container */
.wizard-image-container {
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wizard-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.wizard-image:hover {
    transform: scale(1.02);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s ease;
}

.sidebar-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: 'AbarMidFaNum', 'Tahoma', sans-serif;
    white-space: nowrap;
}

.toggle-sidebar:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease,
                transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.sidebar-nav.hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nav-section-title {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
    opacity: 0.9;
}

.sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    margin-bottom: 0.25rem;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: right;
    font-weight: 400;
    border-radius: 8px;
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: height 0.25s ease;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    height: 70%;
}

.sidebar-link .link-text {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

.sidebar-link:hover {
    background: rgba(34, 197, 94, 0.08);
    padding-right: 1rem;
}

.sidebar-link:hover .link-text {
    color: #22c55e;
}

.sidebar-link.active {
    background: rgba(34, 197, 94, 0.12);
}

.sidebar-link.active .link-text {
    color: #22c55e;
    font-weight: 500;
}

.sidebar-link.active .link-number {
    color: #22c55e;
}

.link-number {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    min-width: 1.5rem;
    text-align: right;
    display: inline-block;
    direction: ltr;
    padding-left: 0.3rem;
}

.link-text {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.35;
    flex: 1;
    text-align: right;
    word-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.bpb-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6), rgba(15, 15, 15, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3.5rem;
    order: 1;
    grid-column: 1;
}

.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section:last-child {
    border-bottom: none;
}

.section-icon {
    display: none;
}

.section-icon svg {
    width: 28px;
    height: 28px;
    color: #22c55e;
}

.section-header-with-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.section-header-with-icon h2 {
    margin: 0;
}

.section-book-icon {
    position: absolute;
    top: -1rem;
    left: 0;
    width: 56px;
    height: 56px;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.15));
    border-radius: 14px;
    color: #fbbf24;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.content-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'AbarLowFaNum', sans-serif;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.content-section h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'AbarLowFaNum', sans-serif;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'AbarLowFaNum', sans-serif;
    margin-bottom: 0.75rem;
}

.content-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ============================================
   INFO & WARNING BOXES
   ============================================ */

.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.info-content strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.warning-content strong {
    color: #f87171;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   FEATURE LIST
   ============================================ */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.95043 20.6471C6.17301 19.9956 4.00437 17.827 3.35287 15.0496C2.88237 13.0437 2.88237 10.9563 3.35287 8.95043C4.00437 6.17301 6.17301 4.00437 8.95043 3.35288C10.9563 2.88237 13.0437 2.88237 15.0496 3.35287C17.827 4.00437 19.9956 6.173 20.6471 8.95043C21.1176 10.9563 21.1176 13.0437 20.6471 15.0496C19.9956 17.827 17.827 19.9956 15.0496 20.6471C13.0437 21.1176 10.9563 21.1176 8.95043 20.6471Z' stroke='%2322C55E' stroke-width='1.5'/%3E%3Cpath d='M8.95043 20.6471C10.9563 21.1176 13.0437 21.1176 15.0496 20.6471C17.827 19.9956 19.9956 17.827 20.6471 15.0496C21.1176 13.0437 21.1176 10.9563 20.6471 8.95043C19.9956 6.173 17.827 4.00437 15.0496 3.35288C13.0437 2.88237 10.9563 2.88237 8.95043 3.35288C6.173 4.00437 4.00437 6.17301 3.35287 8.95043' stroke='%2316A34A' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M9.25 11.75L11.25 13.75L14.75 10' stroke='%2322C55E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.warning-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(157, 9, 19, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 9, 19, 0.3);
    padding: 6px;
    box-sizing: border-box;
}

.warning-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(31, 111, 209, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(31, 111, 209, 0.3);
    padding: 8px;
    box-sizing: border-box;
}

.info-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.yellow-icon {
    width: 56px;
    height: 56px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 12px;
    box-sizing: border-box;
}

.yellow-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-list strong {
    color: #22c55e;
}

/* ============================================
   REQUIREMENT CARDS
   ============================================ */

.requirement-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.req-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    flex-shrink: 0;
}

.req-content h4 {
    margin-bottom: 0.5rem;
}

.req-content p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.req-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.req-link:hover {
    color: #16a34a;
    gap: 0.75rem;
}

/* ============================================
   STEP CARDS
   ============================================ */

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.3));
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.step-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.step-link:hover {
    color: #16a34a;
    gap: 0.75rem;
}

/* ============================================
   APPS GRID
   ============================================ */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.app-card:hover {
    border-color: #22c55e;
    border-width: 1px;
}

a.app-card {
    color: inherit;
    text-decoration: none;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.app-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 16px;
}

.app-card h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.app-platform {
    color: #22c55e !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    margin: 0 !important;
}

.app-platform-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 500;
}

.platform-icon {
    width: 18px;
    height: 18px;
    color: #22c55e;
}

/* آیکون اندروید بزرگتر */
.platform-icon[viewBox="0 0 64 64"] {
    width: 22px;
    height: 22px;
}

.app-desc {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    line-height: 1.4;
}

.app-card-multi {
    cursor: default;
}

.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.download-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.download-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   FAQ ITEMS
   ============================================ */

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: #22c55e;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   SECURITY LIST
   ============================================ */

.security-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.security-list li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.security-list li::before {
    content: '🔒';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
}

/* ============================================
   CTA BOX
   ============================================ */

.cta-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.04));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    text-align: right;
    margin-top: 0.6rem;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-box h3 {
    color: white;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
}

.cta-box p {
    display: none;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #22c55e;
    color: #000;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-button:hover {
    background: #1ea34a;
    transform: translateY(-1px);
}

.cta-button svg {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
}

.cta-button:hover svg {
    transform: translateX(-4px);
}

/* ============================================
   MOBILE SIDEBAR TOGGLE BUTTON
   ============================================ */

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 1003;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-sidebar-toggle:active {
    transform: scale(0.95);
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.mobile-sidebar-toggle svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* ============================================
   SIDEBAR OVERLAY (Mobile only)
   ============================================ */

.sidebar-overlay {
    display: none;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

@media (max-width: 1024px) {
    .bpb-guide-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bpb-sidebar,
    .bpb-sidebar-sticky {
        position: fixed !important; /* Override sticky in mobile */
        top: 0 !important;
        right: -100%;
        height: 100vh !important;
        max-height: 100vh !important; /* Override desktop max-height */
        max-width: 90%;
        width: 90%;
        z-index: 1002 !important;
        transition: right 0.3s ease;
        overflow-y: auto !important;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
        margin: 0;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(15, 15, 15, 0.95));
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        align-self: auto !important;
    }
    
    .bpb-sidebar.active {
        right: 0;
        opacity: 1;
    }

    .bpb-content {
        order: 1;
        padding: 2rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        pointer-events: auto !important;
        width: 100%;
        touch-action: auto;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        touch-action: none;
    }
    
    .bpb-sidebar .sidebar-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: auto !important;
    }
}

@media (max-width: 768px) {
    .bpb-guide-page {
        padding: 1.5rem 0;
    }

    .bpb-content {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-header h3 {
        font-size: 1rem;
    }

    .link-text {
        font-size: 0.8rem;
    }

    .link-number {
        font-size: 0.7rem;
    }
    
    .sidebar-link {
        padding: 0.75rem 0.5rem;
        margin-bottom: 0.25rem;
        border-radius: 8px;
        min-height: 44px;
        align-items: center;
    }
    
    .sidebar-link:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
    
    .toggle-sidebar {
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        border-radius: 6px;
    }
    
    .toggle-sidebar:active {
        background: rgba(255, 255, 255, 0.1);
    }
}
