  /* ---public\css\forum\category.css--- */
  /* --- CSS ספציפי לעמוד הזה --- */
    
    /* מבנה גריד ראשי */
    .forum-container-layout {
        max-width: 1400px;
        margin: 30px auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 300px; /* תוכן + סרגל צד */
        gap: 30px;
    }

    /* --- Header ספציפי לפורום --- */
    .forum-page-header {
        background: var(--bg-card, #14141a);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        padding: 25px 30px;
        margin-bottom: 25px;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* פס קישוטי צדדי - משתמש בצבע הדינמי */
    .forum-page-header::before {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, var(--primary), var(--secondary, #fff));
    }

    .header-content h1 {
        font-family: 'Rubik', sans-serif;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 5px;
        color: #fff;
    }

    .header-content p {
        color: #9494a0;
        font-size: 0.95rem;
        max-width: 700px;
    }

    /* פירורי לחם */
    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #9494a0;
        margin-bottom: 10px;
        flex-wrap: wrap; /* שבירת שורה במובייל */
    }
    .breadcrumb a:hover { color: var(--primary); }

    /* כפתור יצירת נושא חדש */
    .btn-new-topic {
        background: var(--primary);
        color: black;
        padding: 12px 25px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(0,0,0, 0.3);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        text-decoration: none;
        white-space: nowrap; /* מונע שבירת טקסט בכפתור */
    }
    .btn-new-topic:hover {
        transform: translateY(-2px);
        background: white;
        box-shadow: 0 0 20px var(--primary);
    }
    /* כפתור יצירת נושא חדש */
    .btn-close-topic {
        background: #444;
        color: #FFFFFF;
        padding: 12px 25px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(0,0,0, 0.3);
        border: none;
        
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        text-decoration: none;
        white-space: nowrap; /* מונע שבירת טקסט בכפתור */
    }
    .btn-close-topic i {
 
        color: red;
        
    }

    /* כפתור נעילת נושא חדש */
    .btn-new-topic {
        background: var(--primary);
        color: black;
        padding: 12px 25px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(0,0,0, 0.3);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        text-decoration: none;
        white-space: nowrap; /* מונע שבירת טקסט בכפתור */
    }
    .btn-new-topic:hover {
        transform: translateY(-2px);
        background: white;
        box-shadow: 0 0 20px var(--primary);
    }

    /* --- רשימת הנושאים --- */
    .topics-container {
        background: var(--bg-card, #14141a);
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .topics-head {
        display: grid;
        grid-template-columns: 60px 1fr 80px 80px 180px; 
        padding: 15px 20px;
        background: rgba(255,255,255,0.02);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.85rem;
        color: #9494a0;
        font-weight: 600;
    }

    .topic-row {
        display: grid;
        grid-template-columns: 60px 1fr 80px 80px 180px;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        align-items: center;
        transition: 0.2s;
        cursor: pointer;
        text-decoration: none;
        position: relative;
    }

    .topic-row:last-child { border-bottom: none; }
    
    .topic-row:hover {
        background: rgba(255,255,255,0.05);
    }

    /* שורה נעוצה */
    .topic-row.pinned {
        background: rgba(255, 166, 0, 0.03);
    }
    .topic-row.pinned .topic-icon { color: #FFB800; }

    .topic-icon {
        font-size: 1.2rem;
        color: #9494a0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .topic-title {
        font-family: 'Rubik', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: #fff;
        margin-bottom: 6px;
        display: block;
        line-height: 1.3;
    }
    .topic-row:hover .topic-title { color: var(--primary); }

    .topic-meta {
        font-size: 0.8rem;
        color: #9494a0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .user-avatar-small {
        width: 18px; height: 18px; border-radius: 50%; object-fit: cover;
    }

    .topic-stats {
        text-align: center;
        font-size: 0.9rem;
    }
    .stat-number { color: #fff; font-weight: 700; display: block; }
    .stat-label { font-size: 0.75rem; color: #9494a0; }

    .topic-last-info {
        font-size: 0.8rem;
        color: #9494a0;
        text-align: left;
        position: relative;
    }
    .last-user { color: var(--primary); font-weight: 500; }

    /* --- עיצוב כפתורי ניהול (Admin Actions) --- */
    .topic-admin-actions {
        display: none;
        position: absolute;
        top: 50%;
        left: -10px;
        transform: translateY(-50%);
        background: #1e1e24;
        padding: 5px;
        border-radius: 6px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        gap: 5px;
        border: 1px solid rgba(255,255,255,0.1);
        z-index: 10;
    }

    .topic-row:hover .topic-admin-actions {
        display: none;
    }
.topic-row:hover .topic-admin-actions.show-mobile,
    .topic-admin-actions.show-mobile {
        display: flex !important;
    }
    .topic-admin-actions button {
        background: transparent;
        border: none;
        color: #bbb;
        cursor: pointer;
        padding: 5px 8px;
        font-size: 0.9rem;
        transition: 0.2s;
        border-radius: 4px;
    }

    .topic-admin-actions button:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    /* --- סרגל צד --- */
    .widget {
        background: var(--bg-card, #14141a);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
    }
    .widget-title { 
        font-family: 'Rubik', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 15px; 
        color: #fff;
        display: flex; align-items: center; gap: 8px;
    }

    .sidebar-btn { width: 100%; padding: 10px; border-radius: 6px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; }
    .discord-btn { background: #5865F2; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .discord-btn:hover { background: #4752c4; }

    /* --- עיצוב חלון אישור (Confirm Modal) --- */
    .gaming-confirm-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.8); z-index: 99999;
        display: none; justify-content: center; align-items: center;
        backdrop-filter: blur(4px);
    }
    .gaming-confirm-box {
        background: #1a1a20; border: 1px solid rgba(255,255,255,0.1);
        width: 90%; max-width: 400px; padding: 25px; border-radius: 12px;
        text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .gaming-confirm-icon {
        font-size: 2.5rem; color: #ff005c; margin-bottom: 15px;
    }
    .gaming-confirm-title {
        color: white; font-family: 'Rubik'; font-size: 1.3rem; margin-bottom: 10px;
    }
    .gaming-confirm-msg {
        color: #9494a0; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5;
    }
    .gaming-confirm-actions {
        display: flex; gap: 15px; justify-content: center;
    }
    .gaming-confirm-actions button {
        padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer;
        border: none; transition: 0.2s; font-family: inherit; width: 45%;
    }
    .btn-confirm-cancel {
        background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
    }
    .btn-confirm-cancel:hover { background: rgba(255,255,255,0.1); }
    .btn-confirm-ok {
        background: #ff005c; color: white;
    }
    .btn-confirm-ok:hover { filter: brightness(1.1); transform: translateY(-2px); }

    /* --- שאר ה-CSS הכללי --- */
    .breadcrumb a { color: #b0b0b9; text-decoration: none; transition: all 0.2s ease; font-weight: 500; }
    .breadcrumb .separator { font-size: 0.7rem; opacity: 0.5; color: #666; margin-top: 2px; }
    .breadcrumb .current { color: #fff; font-weight: 600; opacity: 0.9; }
    
    .widget.promo-widget {
        background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
        border: none; position: relative; overflow: hidden; text-align: center; padding: 25px 20px; color: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    }
    .promo-widget::before {
        content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
        animation: pulse 4s infinite;
    }
    .promo-icon { font-size: 2.5rem; margin-bottom: 15px; color: rgba(255,255,255,0.9); filter: drop-shadow(0 4px 5px rgba(0,0,0,0.3)); }
    .promo-title { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; line-height: 1.2; }
    .promo-text { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-bottom: 20px; line-height: 1.6; }
    .btn-promo {
        background: #fff; color: #FF005C; display: flex; align-items: center; justify-content: center; gap: 10px;
        width: 100%; padding: 12px; border-radius: 6px; font-weight: 800; text-decoration: none;
        transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2); position: relative; z-index: 10;
        cursor: pointer; animation: nudge-left 2s infinite ease-in-out;
    }
    .btn-promo:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); background: #fff; }
    
    @keyframes nudge-left {
        0%, 10%, 100% { transform: translateX(0); }
        5% { transform: translateX(-6px); }
        12% { transform: translateX(-2px); }
        15% { transform: translateX(0); }
    }
    @keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 0.5; } }

    /* --- מודל התחברות --- */
    .auth-modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.7); z-index: 9999;
        display: none; justify-content: center; align-items: center;
        backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
    }
    .auth-modal-overlay.active { display: flex; opacity: 1; }
    .auth-modal {
        background: #1a1a20; border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 450px;
        padding: 30px 20px; /* צמצום פדינג למובייל */
        border-radius: 12px; text-align: center; position: relative;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease;
    }
    .auth-modal-overlay.active .auth-modal { transform: translateY(0); }
    .modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #666; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
    .modal-close:hover { color: #fff; }
    .modal-icon-wrapper { width: 80px; height: 80px; background: rgba(255, 0, 92, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-size: 2rem; }
    .modal-title { font-family: 'Rubik'; font-size: 1.5rem; color: white; margin-bottom: 10px; }
    .modal-text { color: #9494a0; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.5; }
    .modal-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 6px; text-decoration: none; font-weight: 700; color: white; transition: 0.2s; border: 1px solid transparent; box-sizing: border-box; }
    .modal-auth-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
    .btn-discord-modal { background: #5865F2; }
    .btn-google-modal { background: #fff; color: #333; }
    .btn-twitch-modal { background: #9146FF; }

    .icon-pinned { color: #FFC107; transform: rotate(45deg); }
    .icon-locked { color: #FF4B4B; }
    .icon-default { opacity: 0.5; }
    
    .badge-prefix {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        margin-left: 8px;
        color: #fff; 
        background: #444; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        vertical-align: middle;
        transform: translateY(-2px);
    }
    /* --- עיצוב להודעות קופצות (Toasts) --- */
#gaming-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gaming-toast {
    background: #1e1e24;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Heebo', 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-right: 4px solid var(--primary);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.gaming-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.gaming-toast.success { border-color: #2ecc71; }
.gaming-toast.success i { color: #2ecc71; font-size: 1.2rem; }

.gaming-toast.error { border-color: #ff4444; }
.gaming-toast.error i { color: #ff4444; font-size: 1.2rem; }
/* כפתור תפריט ניהול למובייל - מוסתר במחשב */
.mobile-admin-toggle {
    display: none;
}

    /* --- רספונסיביות מותאמת אישית (NEW MOBILE CSS) --- */
    @media (max-width: 900px) {
        
        /* שינוי המבנה הראשי לטור אחד */
        .forum-container-layout { 
            grid-template-columns: 1fr; 
            padding: 0 10px; /* צמצום רווחים בצדדים */
            display: flex;
            flex-direction: column;
        }

        /* סרגל צד יורד למטה */
        .sidebar-col {
            order: 2;
        }

        /* Header הופך לטור */
        .forum-page-header { 
            flex-direction: column; 
            align-items: stretch; /* מתיחה לרוחב מלא */
            gap: 20px; 
            padding: 20px 15px;
            text-align: center;
        }

        .header-content h1 { font-size: 1.5rem; }
        .breadcrumb { justify-content: center; }
        
        /* כפתור יצירת נושא - רחב במובייל */
        .btn-new-topic {
            justify-content: center;
            width: 100%;
        }

        /* הסתרת כותרות הטבלה */
        .topics-head { display: none; }

        /* --- עיצוב שורת נושא למובייל (כרטיס) --- */
        .topic-row { 
            display: grid;
            /* הגדרת גריד: אייקון מימין, תוכן במרכז */
            grid-template-columns: 40px 1fr; 
            grid-template-rows: auto auto;
            gap: 5px 10px; 
            padding: 15px; 
            position: relative;
            align-items: start;
        }

        /* מיקום האייקון */
        .topic-icon { 
            grid-column: 1; 
            grid-row: 1 / span 2; /* תופס שתי שורות */
            font-size: 1.4rem;
            margin-top: 5px;
        }

        /* התוכן הראשי */
        .topic-main {
            grid-column: 2;
            grid-row: 1;
        }

        /* הסטטיסטיקה והמידע האחרון - עוברים לשורה למטה */
        .topic-stats, .topic-last-info {
            display: none; /* ברירת מחדל נסתיר את העיצוב הישן */
        }
        
        /* נציג מידע מצומצם בתוך המטא */
        .mobile-stats-row {
            grid-column: 2;
            grid-row: 2;
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.75rem;
            color: #666;
            margin-top: 5px;
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 8px;
        }

        /* כפתור ה-3 נקודות יוצג במובייל */
    .mobile-admin-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        left: 15px; /* ממוקם בצד שמאל */
        background: rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        z-index: 10;
        justify-content: center;
        align-items: center;
    }

    /* עיצוב התפריט הצף במובייל (מוסתר כברירת מחדל) */
    .topic-admin-actions {
        display: none; /* מסתירים אותו עד שלוחצים */
        position: absolute;
        top: 55px; /* מופיע מתחת לכפתור */
        left: 15px;
        background: #1e1e24;
        flex-direction: column; /* מסדר את הכפתורים אחד מתחת לשני */
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
        border: 1px solid rgba(255,255,255,0.1);
        z-index: 20;
        width: max-content;
        margin-top: 0;
        transform: none;
    }

    /* המחלקה שנוסיף עם ה-JS כדי להציג את התפריט */
    .topic-admin-actions.show-mobile {
        display: flex !important;
    }

    /* סידור הכפתורים בתוך התפריט */
    .topic-admin-actions button {
        text-align: right;
        padding: 10px 15px;
        justify-content: flex-start;
        display: flex;
        gap: 10px;
        width: 100%;
        border-radius: 4px;
    }
    
    .topic-admin-actions button:hover {
        background: rgba(255,255,255,0.05);
    }
    }