/* ============================================
   מדריך משותף - עיצוב אחיד לכל המדריכים
   ============================================ */

/* ============================================
   Guide Access Loader - לודר לבדיקת הרשאות
   ============================================ */

#guide-access-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#guide-access-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.guide-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(69, 224, 249, 0.2);
    border-top-color: #45e0f9;
    border-radius: 50%;
    animation: guide-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes guide-spin {
    to { transform: rotate(360deg); }
}

.guide-loader-text {
    color: #45e0f9;
    font-size: 1.1rem;
    font-weight: 500;
}

body.guide-loading .container-fluid {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   KPI Cards Styling - כרטיסי דרישות מערכת
   ============================================ */

.kpi-section {
    margin: 30px 0 !important;
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    padding: 25px !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3)) !important;
}

.kpi-section-title {
    color: #45e0f9 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 25px !important;
}

.kpi-card {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
    padding: 25px !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 10px !important;
}

.kpi-card:hover {
    background: var(--cs-glass-surface-hover, rgba(255, 255, 255, 0.08)) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

.computer-kpi { 
    border-left: 8px solid #3b82f6 !important; 
}

.vpn-kpi { 
    border-left: 8px solid #f59e0b !important; 
}

.phone-kpi { 
    border-left: 8px solid #10b981 !important; 
}

.kpi-icon {
    font-size: 3rem !important;
    margin-bottom: 20px !important;
    display: block !important;
    text-align: center !important;
}

.kpi-title {
    color: #45e0f9 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.kpi-description {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    margin-bottom: 18px !important;
    font-weight: 500 !important;
}

.kpi-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.kpi-link {
    color: #45e0f9 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    padding: 10px 18px !important;
    background: rgba(69, 224, 249, 0.2) !important;
    border-radius: 24px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(69, 224, 249, 0.4) !important;
    font-weight: 600 !important;
}

.kpi-link:hover {
    background: rgba(69, 224, 249, 0.35) !important;
    color: #ffffff !important;
    border-color: #45e0f9 !important;
    transform: scale(1.05) !important;
}

.kpi-status {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    padding: 8px 15px !important;
    border-radius: 24px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.kpi-status.required {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.kpi-footer {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
    padding: 30px !important;
    text-align: center !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3)) !important;
    margin-top: 25px !important;
}

.kpi-footer-icon {
    font-size: 3rem !important;
    margin-bottom: 18px !important;
    display: block !important;
}

.kpi-footer h4 {
    color: #22c55e !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

/* ============================================
   Guide Back Button - כפתור חזרה לעמוד הבית
   ============================================ */

.guide-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background: linear-gradient(135deg, rgba(69, 224, 249, 0.2), rgba(69, 224, 249, 0.1));
    color: #45e0f9;
    border: 2px solid rgba(69, 224, 249, 0.4);
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(69, 224, 249, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.guide-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(69, 224, 249, 0.2), transparent);
    transition: left 0.5s ease;
}

.guide-back-btn:hover::before {
    left: 100%;
}

.guide-back-btn:hover,
.guide-back-btn:focus {
    background: linear-gradient(135deg, rgba(69, 224, 249, 0.3), rgba(69, 224, 249, 0.2));
    color: #ffffff;
    border-color: #45e0f9;
    box-shadow: 0 6px 25px rgba(69, 224, 249, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.guide-back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(69, 224, 249, 0.3);
}

.guide-back-btn .back-icon {
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.guide-back-btn:hover .back-icon {
    transform: scale(1.1);
}

.guide-back-btn .back-text {
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .guide-back-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        border-radius: 20px;
    }
    
    .guide-back-btn .back-icon {
        font-size: 1.1em;
    }
}

/* ============================================
   Guide Background Pattern - תמונת רקע עם pattern על כל העמוד
   ============================================ */

/* וידוא שה-body לא חוסם את הרקע */
body.guide-netflix,
body.guide-canva,
body.guide-stremio,
body.guide-chess,
body.guide-prime-video,
body.guide-hbo-max,
body.guide-travelgoogoo {
    position: relative;
    min-height: 100vh;
}

/* רקע fixed על כל העמוד - Netflix */
body.guide-netflix::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(0, 100, 150, 0.05) 100%),
        url('../../img/icons/netflix.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - Canva */
body.guide-canva::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(34, 197, 94, 0.05) 100%),
        url('../../img/icons/canva-logo.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - Stremio */
body.guide-stremio::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(0, 150, 100, 0.05) 100%),
        url('../../img/icons/stremio.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - Chess.com */
body.guide-chess::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(150, 100, 50, 0.05) 100%),
        url('../../img/icons/chess.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - Prime Video */
body.guide-prime-video::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(255, 152, 0, 0.05) 100%),
        url('../../img/icons/amazon-prime.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - HBO MAX */
body.guide-hbo-max::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(138, 43, 226, 0.05) 100%),
        url('../../img/icons/hbo-logo.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* רקע fixed על כל העמוד - Travelgoogoo */
body.guide-travelgoogoo::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 133, 195, 0.08) 0%, rgba(69, 224, 249, 0.05) 100%),
        url('../../img/icons/travelgoogoo.png');
    background-repeat: repeat;
    background-size: 80px 80px;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Guide Container - מיכל המדריך
   ============================================ */

.mobile-guide,
.guide {
    padding: 10px;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ============================================
   Guide Content Protection - הגנת תוכן המדריך
   ============================================ */

/* מונע בחירת טקסט בתוכן המדריך, אך מאפשר קליקים על קישורים */
.mobile-guide,
.guide,
.mobile-guide *:not(a),
.guide *:not(a) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* מאפשר קליקים על קישורים */
.mobile-guide a,
.guide a {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* מאפשר פעולה על קלטים (inputs, buttons) אם יש */
.mobile-guide input,
.mobile-guide button,
.mobile-guide textarea,
.mobile-guide select,
.guide input,
.guide button,
.guide textarea,
.guide select {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* תיקון כפתור חזרה בתוך product-details - רווח מההדר במובייל בלבד */
@media (max-width: 1199px) {
    #product-details .mobile-guide,
    #product-details .guide {
        margin-top: 90px;
    }
}

/* תיקון מיקום product-details בתצוגת מחשב - הסרת מרכוז והוספת רווח מההדר */
@media (min-width: 1200px) {
    /* תיקון wrapper */
    main.container.glass .product-details-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        display: block !important;
    }
    
    /* תיקון product-details - הסרת מרכוז והוספת רווח מההדר */
    main.container.glass .product-details-wrapper #product-details,
    main.container.glass #product-details {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 200px !important;
        margin-bottom: 32px !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        padding-top: 0 !important;
    }
    
    /* תיקון mobile-guide בתוך product-details - הסרת margin-top שהוספנו במובייל */
    main.container.glass #product-details .mobile-guide,
    main.container.glass #product-details .guide {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* תיקון נוסף - וידוא שהתוכן לא מתחיל גבוה מדי */
    main.container.glass #product-details .mobile-guide > div:first-child,
    main.container.glass #product-details .guide > div:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ============================================
   כל הכרטיסיות במדריכים - החלפת רקעים ל-glass-kit
   ============================================ */

/* החלפת רקעים בכל ה-divs במדריכים (עם !important כדי לעקוף inline styles) */
.mobile-guide > div:not(.guide-banner):not(.mobile-step):not(:has(.guide-back-btn)),
.guide > div:not(.guide-banner):not(.mobile-step):not(:has(.guide-back-btn)),
.mobile-guide .mobile-step-content > div:not(.step-highlight),
.guide .mobile-step-content > div:not(.step-highlight) {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3)) !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
}

/* הסרת רקע מה-div שמכיל את כפתור חזרה לעמוד הבית */
.mobile-guide > div:has(.guide-back-btn),
.guide > div:has(.guide-back-btn) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* תיקון ספציפי ל-divs עם inline styles */
.mobile-guide div[style*="background"],
.guide div[style*="background"] {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3)) !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
}

/* תיקון ל-list items */
.mobile-guide li,
.guide li,
.mobile-guide li[style*="background"],
.guide li[style*="background"] {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03)) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: var(--cs-glass-radius, 24px) !important;
}

/* תיקון ל-links בתוך כרטיסיות */
.mobile-guide a[style*="background"],
.guide a[style*="background"] {
    background: rgba(69, 224, 249, 0.2) !important;
    backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px)) !important;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08)) !important;
}

/* תיקון רווח מההדר הקבוע */
body.has-fixed-header .mobile-guide,
body.has-fixed-header .guide {
    padding-top: 100px;
}

/* תיקון לתצוגת מחשב - וידוא שיש רווח מספיק מההדר הקבוע */
@media (min-width: 1200px) {
    .mobile-guide,
    .guide {
        padding-top: 120px !important;
    }
}

/* תיקון נוסף למובייל */
@media (max-width: 768px) {
    body.has-fixed-header .mobile-guide,
    body.has-fixed-header .guide {
        padding-top: 100px !important;
    }
}

/* תיקון container במדריכים */
main.container.glass {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* תיקון מיקום ה-main container בתוך col-lg-9 - וידוא שהוא ממורכז ולא מוסתר מאחורי הסיידבר */
/* הסיידבר הוא 220px רחב ו-position: fixed, אז צריך להשאיר לו מקום */
@media (min-width: 1200px) {
    /* וידוא שה-col-lg-9 לא יוצא מתחת לסיידבר - הוספת margin-right כדי לתת מקום לסיידבר */
    body.guide-netflix .col-lg-9,
    body.guide-canva .col-lg-9,
    body.guide-stremio .col-lg-9,
    body.guide-chess .col-lg-9,
    body.guide-prime-video .col-lg-9,
    body.guide-hbo-max .col-lg-9,
    body.guide-travelgoogoo .col-lg-9 {
        margin-right: 220px !important;
        max-width: calc(100% - 220px) !important;
        width: calc(100% - 220px) !important;
    }
    
    /* וידוא שה-main container ממורכז בתוך col-lg-9 */
    body.guide-netflix main.container.glass,
    body.guide-canva main.container.glass,
    body.guide-stremio main.container.glass,
    body.guide-chess main.container.glass,
    body.guide-prime-video main.container.glass,
    body.guide-hbo-max main.container.glass,
    body.guide-travelgoogoo main.container.glass {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* ביטול הכללים הכלליים מ-style.css שמזיזים את ה-main container */
    body.guide-netflix .col-lg-9 main.container.glass,
    body.guide-canva .col-lg-9 main.container.glass,
    body.guide-stremio .col-lg-9 main.container.glass,
    body.guide-chess .col-lg-9 main.container.glass,
    body.guide-prime-video .col-lg-9 main.container.glass,
    body.guide-hbo-max .col-lg-9 main.container.glass,
    body.guide-travelgoogoo .col-lg-9 main.container.glass {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* תיקון margin-top במובייל */
@media (max-width: 768px) {
    main.container.glass.my-5 {
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ============================================
   Guide Steps - שלבי המדריך
   ============================================ */

.mobile-guide .mobile-step,
.guide .mobile-step {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(var(--cs-glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px));
    border-radius: var(--cs-glass-radius, 24px);
    margin: 25px 0;
    padding: 25px 20px;
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08));
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.mobile-guide .mobile-step:hover,
.guide .mobile-step:hover {
    background: var(--cs-glass-surface-hover, rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mobile-guide .mobile-step-number,
.guide .mobile-step-number,
body.guide-netflix .mobile-step-number,
body.guide-canva .mobile-step-number,
body.guide-stremio .mobile-step-number,
body.guide-prime-video .mobile-step-number,
body.guide-hbo-max .mobile-step-number,
body.guide-travelgoogoo .mobile-step-number {
    background: linear-gradient(135deg, #45e0f9, #2dd4bf) !important;
    color: #1a1a1a !important;
    min-width: 50px !important;
    width: auto !important;
    min-height: 50px !important;
    height: auto !important;
    padding: 0 12px !important;
    border-radius: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin: 0 auto 20px auto !important;
    box-shadow: 0 4px 15px rgba(69, 224, 249, 0.3) !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.mobile-guide .mobile-step-title,
.guide .mobile-step-title {
    color: #45e0f9;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-guide .mobile-step-content,
.guide .mobile-step-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.mobile-guide .mobile-step-content p,
.guide .mobile-step-content p {
    color: #eaf8ff;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: right;
    direction: rtl;
}

.mobile-guide .mobile-step-content ol,
.mobile-guide .mobile-step-content ul,
.guide .mobile-step-content ol,
.guide .mobile-step-content ul {
    text-align: right;
    direction: rtl;
    margin: 15px 0;
    padding-right: 20px;
}

.mobile-guide .mobile-step-content li,
.guide .mobile-step-content li {
    color: #eaf8ff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Tables in guide steps - ensure full width and no overflow */
.mobile-guide .mobile-step-content table,
.guide .mobile-step-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    box-sizing: border-box;
    margin: 15px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mobile-guide .mobile-step-content table td,
.guide .mobile-step-content table td {
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 50%;
}

/* ============================================
   Step Number & Highlight - מספרי שלבים והדגשות
   ============================================ */


.mobile-guide .step-highlight,
.guide .step-highlight {
    background: var(--cs-glass-surface, rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(var(--cs-glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--cs-glass-blur, 12px));
    border-right: 4px solid var(--cs-glass-accent, #45e0f9);
    padding: 15px;
    border-radius: var(--cs-glass-radius, 24px);
    border: 1px solid var(--cs-glass-border, rgba(255, 255, 255, 0.08));
    box-shadow: var(--cs-glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.3));
    margin: 15px 0;
}

.mobile-guide .step-highlight p,
.guide .step-highlight p {
    margin: 0;
    color: #45e0f9;
    font-weight: 600;
}

/* ============================================
   Guide Banner - באנר המדריך
   ============================================ */

.guide-banner {
    margin-bottom: 30px;
    width: 100%;
}

.guide-banner img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* ============================================
   Images in Guides - תמונות במדריכים
   ============================================ */

.mobile-guide img,
.guide img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
}

/* הסרת border-radius ו-box-shadow מתמונות בתוך step-content */
.mobile-guide .mobile-step-content img,
.guide .mobile-step-content img {
    border-radius: 0;
    box-shadow: none;
}

/* ============================================
   Responsive Design - עיצוב רספונסיבי
   ============================================ */

@media (max-width: 768px) {
    /* תיקון container כדי שהבאנר יוכל להתרחב */
    main.container.glass {
        /* margin-top: 80px !important; */
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* תיקון col-lg-9 במובייל */
    .col-lg-9 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* תיקון container-fluid במובייל */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* תיקון row במובייל */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* תיקון רווח מההדר במובייל */
    .mobile-guide,
    .guide {
        padding: 100px 10px 5px 10px;
        overflow-x: hidden;
        margin-top: 0;
    }
    
    /* תיקון כפתור חזרה שלא יכנס מאחורי ההדר */
    .mobile-guide > div:first-child:not(.guide-banner),
    .guide > div:first-child:not(.guide-banner) {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* תיקון הבאנר להיות ממורכז עם מרווח קטן מהצדדים */
    .guide-banner {
        margin: 0 10px 30px 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .guide-banner img,
    .guide-banner img.img-fluid,
    .guide-banner img.w-100 {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        margin: 0 !important;
        display: block !important;
        object-fit: cover !important;
    }
    
    /* תיקון התוכן אחרי הבאנר */
    .mobile-guide > *:not(.guide-banner),
    .guide > *:not(.guide-banner) {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* תיקון כפתור חזרה */
    .mobile-guide > div:first-child:not(.guide-banner),
    .guide > div:first-child:not(.guide-banner) {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .mobile-guide .mobile-step,
    .guide .mobile-step {
        margin: 20px 5px;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .mobile-guide .mobile-step-number,
    .guide .mobile-step-number {
        min-width: 45px;
        width: auto;
        min-height: 45px;
        height: auto;
        padding: 0 10px;
        font-size: 1.3rem;
    }
    
    .mobile-guide .mobile-step-title,
    .guide .mobile-step-title {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .mobile-guide .mobile-step-content,
    .guide .mobile-step-content {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .mobile-guide .mobile-step-content p,
    .guide .mobile-step-content p {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mobile-guide .step-highlight,
    .guide .step-highlight {
        padding: 12px;
        margin: 15px 0;
    }
    
    .mobile-guide .step-number,
    .guide .step-number {
        margin-left: 5px;
        margin-right: 8px;
    }
    
    .mobile-guide img,
    .guide img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .mobile-guide .mobile-step-content img,
    .guide .mobile-step-content img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .kpi-section { 
        margin: 20px 8px !important; 
        padding: 20px !important;
    }
    
    .kpi-section-title { 
        font-size: 1.6rem !important; 
        margin-bottom: 25px !important;
    }
    
    .kpi-grid { 
        display: block !important; 
        gap: 20px !important; 
    }
    
    .kpi-card { 
        margin-bottom: 20px !important; 
        padding: 25px !important; 
        width: calc(100% - 20px) !important;
    }
    
    .kpi-title { 
        font-size: 1.3rem !important; 
    }
    
    .kpi-description { 
        font-size: 1rem !important; 
    }
    
    .kpi-link { 
        padding: 10px 15px !important; 
        font-size: 0.9rem !important; 
    }
    
    .kpi-footer { 
        padding: 25px !important; 
    }
    
    .kpi-footer h4 { 
        font-size: 1.3rem !important; 
    }
}

@media (min-width: 769px) {
    .mobile-guide img,
    .guide img {
        max-width: 65% !important;
        width: auto !important;
        margin: 20px auto !important;
        display: block !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .mobile-guide .mobile-step-content img,
    .guide .mobile-step-content img {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* ============================================
   Footer Styling in Guides - עיצוב פוטר במדריכים
   ============================================ */

/* תיקון פוטר במדריכים - וידוא שהוא לא נכנס מתחת לסיידבר */
@media (min-width: 1200px) {
    body.guide-netflix #footer-placeholder,
    body.guide-canva #footer-placeholder,
    body.guide-stremio #footer-placeholder,
    body.guide-chess #footer-placeholder,
    body.guide-prime-video #footer-placeholder,
    body.guide-hbo-max #footer-placeholder,
    body.guide-travelgoogoo #footer-placeholder {
        margin-right: 220px !important;
        max-width: calc(100% - 220px) !important;
        width: calc(100% - 220px) !important;
    }
    
    body.guide-netflix #footer-placeholder .site-footer,
    body.guide-canva #footer-placeholder .site-footer,
    body.guide-stremio #footer-placeholder .site-footer,
    body.guide-chess #footer-placeholder .site-footer,
    body.guide-prime-video #footer-placeholder .site-footer,
    body.guide-hbo-max #footer-placeholder .site-footer,
    body.guide-travelgoogoo #footer-placeholder .site-footer {
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* תיקון container של הפוטר */
    body.guide-netflix #footer-placeholder .container,
    body.guide-canva #footer-placeholder .container,
    body.guide-stremio #footer-placeholder .container,
    body.guide-chess #footer-placeholder .container,
    body.guide-prime-video #footer-placeholder .container,
    body.guide-hbo-max #footer-placeholder .container,
    body.guide-travelgoogoo #footer-placeholder .container {
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================
   Guide Thank You Section - הודעת תודה בסוף המדריך
   ============================================ */

.guide-thank-you-section {
    margin: 20px 0 15px 0;
    padding: 0 10px;
}

.guide-thank-you-card {
    background: linear-gradient(135deg, rgba(69, 224, 249, 0.1), rgba(69, 224, 249, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(69, 224, 249, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(69, 224, 249, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    max-width: 500px;
    margin: 0 auto;
}

.guide-thank-you-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #45e0f9, transparent);
    opacity: 0.4;
}

.guide-thank-you-card:hover {
    border-color: rgba(69, 224, 249, 0.35);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(69, 224, 249, 0.08);
}

.guide-thank-you-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1;
}

.guide-thank-you-title {
    color: #45e0f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(69, 224, 249, 0.2);
    letter-spacing: 0.3px;
}

.guide-thank-you-text {
    color: #eaf8ff;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.9;
}

.guide-thank-you-phone {
    margin: 12px 0 8px 0;
}

.guide-thank-you-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(69, 224, 249, 0.2), rgba(69, 224, 249, 0.1));
    color: #45e0f9;
    border: 1px solid #45e0f9;
    border-radius: 16px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 8px rgba(69, 224, 249, 0.2);
    letter-spacing: 0.3px;
}

.guide-thank-you-link:hover,
.guide-thank-you-link:focus {
    background: linear-gradient(135deg, rgba(69, 224, 249, 0.25), rgba(69, 224, 249, 0.15));
    color: #ffffff;
    border-color: #45e0f9;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(69, 224, 249, 0.3);
    text-decoration: none;
}

.guide-thank-you-link:active {
    transform: translateY(0);
}

.guide-thank-you-link i {
    font-size: 1rem;
}

.guide-thank-you-paybox-note {
    color: #bdeaff;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 6px;
    margin-bottom: 0;
    opacity: 0.75;
}

.guide-thank-you-appreciation {
    color: #bdeaff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-thank-you-section {
        margin: 15px 0 10px 0;
        padding: 0 5px;
    }

    .guide-thank-you-card {
        padding: 15px 16px;
        border-radius: 14px;
        max-width: 100%;
    }

    .guide-thank-you-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .guide-thank-you-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .guide-thank-you-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .guide-thank-you-phone {
        margin: 10px 0 6px 0;
    }

    .guide-thank-you-link {
        padding: 7px 18px;
        font-size: 0.85rem;
        gap: 6px;
        border-radius: 14px;
    }

    .guide-thank-you-link i {
        font-size: 0.95rem;
    }

    .guide-thank-you-paybox-note {
        font-size: 0.7rem;
        margin-top: 5px;
    }

    .guide-thank-you-appreciation {
        font-size: 0.8rem;
        margin-top: 6px;
    }
}
