/* Scooter Monkeys - kozos stiluslap */
/* PHP fajlokbol kiemelt CSS. Welcome es szabalyzat scoped. */

/* ===== Globalis / fejlec ===== */
* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #121212;
            color: #e0e0e0;
            
            font-size: 16px;
            line-height: 1.5;
        }
        
        .logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
            background: transparent !important;
        }

        .logo-img {
            height: 130px;
            width: auto;
            display: block;
            object-fit: contain;
            background: transparent !important;
            mix-blend-mode: screen;
        }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box !important;
}





/* --- SCOOTER MONKEYS AGRESSZÍV DASHBOARD DIZÁJN --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0 35px 0;
}

/* A kártyák sötét, karbon-hatású alapja neonos piros kerettel */
.dash-card {
    background: #0d0d0d;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Menő tuning hatás: ha rátartod az egeret, kiemelkedik és finoman izzik */
.dash-card:hover {
    transform: translateY(-5px);
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

/* Verseny-stílusú ferde vörös fejléc */
.dash-card-header {
    background: linear-gradient(135deg, #ff1e38 0%, #b30016 100%);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); /* Finom ferde vágás a végén */
}

.dash-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modern Csevegő üzenetek: sötét buborékok zöld neon szegéllyel */
.dash-chat-item {
    background: #141414;
    border: 1px solid #222;
    border-left: 4px solid #2ecc71;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.dash-chat-item:hover {
    background: #1a1a1a;
}
.dash-chat-meta { 
    color: #a0a0a0; 
    font-size: 0.75rem; 
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.dash-chat-meta strong { color: #2ecc71; }
.dash-chat-text { color: #e0e0e0; line-height: 1.4; word-break: break-word; }

/* Letisztult, dögös Fórum lista */
.dash-forum-item {
    background: #141414;
    border: 1px solid #1f1f1f;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.dash-forum-item:hover {
    border-color: #555;
    background: #1a1a1a;
}
.dash-forum-title { 
    color: #ffffff; 
    font-weight: 600; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.3;
}
.dash-forum-title:hover { color: #ff1e38; }
.dash-forum-meta { color: #666; font-size: 0.75rem; }

/* Heti kérdés modern, kártyás opciókkal */
.dash-poll-title { 
    color: #fff; 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    line-height: 1.4;
    border-left: 3px solid #ff1e38;
    padding-left: 10px;
}
.dash-poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141414;
    border: 1px solid #1f1f1f;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-poll-option:hover {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}
/* Ha ki van jelölve a rádiógomb, a keret pirosra vált */
.dash-poll-option:has(input:checked) {
    border-color: #ff1e38;
    background: rgba(220, 53, 69, 0.05);
    color: #fff;
}

/* Verseny-gomb a szavazáshoz */
.dash-poll-btn {
    background: #ff1e38;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 5px;
}
.dash-poll-btn:hover { background: #b30016; }
.dash-poll-btn:active { transform: scale(0.98); }

/* Lábléc áttetsző gombbal */
.dash-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #1a1a1a;
    background: #090909;
}
.dash-view-all {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    transition: color 0.2s;
}
.dash-view-all:hover { 
    color: #ff1e38;
    text-decoration: none;
}


/* Fix fejléc kiegészítés a lebegő menühöz */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1a1a;
    border-bottom: 2px solid #dc3545;
    padding: 10px 15px;
    overflow: visible !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible !important;
}

/* Mobilos nézet / Lebegő buborék menü */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .hamburger-btn {
        display: block;
        z-index: 1001;
    }
    .logo-img {
        height: 75px;
    }
    
    /* Lebegő buborék menü: 40%-kal csökkentett szélesség (kb. 155px) és középre igazított elemek */
    nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 155px;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
        padding: 12px 10px;
        z-index: 2000;
        transform-origin: top right;
        animation: menuPop 0.2s ease-out forwards;
    }

    nav.active {
        display: block;
    }

    @keyframes menuPop {
        0% { opacity: 0; transform: scale(0.9); }
        100% { opacity: 1; transform: scale(1); }
    }

    nav ul {
        flex-direction: column;
        align-items: center; /* Gombok középre igazítása */
        text-align: center;
        gap: 6px;
    }

    .chat-input-row textarea {
        flex-grow: 1;
        background: #222;
        border: 1px solid #444;
        color: #fff;
        padding: 10px;
        border-radius: 4px;
        resize: none;
        height: 50px;
        font-size: 16px !important;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #262626;
        padding-bottom: 6px;
        display: flex;
        justify-content: center; /* Listaelemeken belüli tartalom középre */
    }
    
    nav ul li a {
        display: inline-block;
        text-align: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .user-menu {
        flex-direction: column;
        align-items: center; /* Felhasználói menü elemei is középre */
        gap: 5px;
        background: #141414;
        padding: 8px;
        border-radius: 6px;
        width: 100%;
        text-align: center;
    }
}

        /* Rang színek */
        .badge-role {
            display: inline-block;
            padding: 2px 6px;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 4px;
            text-transform: uppercase;
        }
        .role-owner { background-color: #8b0000; color: #fff; }
        .role-admin { 
    background-color: #0d6efd; /* Vagy #3498db */
    color: #fff; 
}
        .role-vip { background-color: #9b59b6; color: #fff; }
        .role-tag { background-color: #2ecc71; color: #fff; }
        .role-pending { background-color: #6c757d; color: #fff; }
        .role-garazsmester { background-color: #fd7e14; color: #fff; }

        /* Fix fejléc */
        header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background-color: #1a1a1a;
            border-bottom: 2px solid #dc3545;
            padding: 10px 15px;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* Jobb oldali gyorsblokk mobilra (üzenet + hamburger) */
        .header-right-mobile {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .btn-monkey {
            display: inline-block;
            width: 100%;
            background: #e74c3c;
            color: #fff;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 0.95rem;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            box-sizing: border-box;
        }

        .btn-monkey:hover {
            background: #c0392b;
        }

        .btn-monkey:active {
            transform: scale(0.98);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 15px;
            align-items: center;
        }
        nav ul li a {
            color: #e0e0e0;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.2s;
        }
        nav ul li a:hover {
            color: #dc3545;
        }
        .user-menu {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .msg-icon {
            background-color: #333;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 0.9rem;
        }
        .msg-icon:hover {
            background-color: #dc3545;
        }

        /* Hamburger gomb alapból rejtve desktopon */
        .hamburger-btn {
            display: none;
            background: #222;
            color: #fff;
            border: 1px solid #444;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 1.2rem;
            cursor: pointer;
        }

        /* Mobilos nézet */
        @media (max-width: 768px) {
            body {
                font-size: 14px;
            }
            .hamburger-btn {
                display: block;
            }
            .logo-img {
                height: 75px;
            }
            /* Alapból elrejtjük a menüt mobilon */
            nav {
                display: none;
                width: 100%;
                background: #1a1a1a;
                border-top: 1px solid #333;
                margin-top: 10px;
                padding-bottom: 10px;
            }
            /* Ha aktív, megjelenik */
            nav.active {
                display: block;
            }
            nav ul {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .chat-input-row textarea {
        flex-grow: 1;
        background: #222;
        border: 1px solid #444;
        color: #fff;
        padding: 10px;
        border-radius: 4px;
        resize: none;
        height: 50px;
        font-size: 16px !important; /* <--- EZ A KULCS: minimum 16px kell, hogy ne zoomoljon be mobiln */
    }
            nav ul li {
                width: 100%;
                border-bottom: 1px solid #222;
                padding-bottom: 8px;
            }
            .user-menu {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
        }

/* ===== admin.php ===== */
.admin-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .admin-section {
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 20px;
    }
    .admin-section h3 {
        color: #dc3545;
        margin-bottom: 15px;
        border-bottom: 1px solid #333;
        padding-bottom: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .badge-count {
        background: #dc3545;
        color: #fff;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 12px;
    }
    .admin-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }
    .admin-table th, .admin-table td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #262626;
        font-size: 0.9rem;
    }
    .admin-table th {
        color: #aaa;
        background: #161616;
    }
    .admin-form input, .admin-form textarea, .admin-form select {
        width: 100%;
        background: #222;
        border: 1px solid #444;
        color: #fff;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    .admin-form textarea {
        height: 100px;
        resize: vertical;
    }
    .admin-btn {
        background: #dc3545;
        color: #fff;
        border: none;
        padding: 8px 15px;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        font-size: 0.85rem;
    }
    .admin-btn:hover {
        background: #b02a37;
    }
    .btn-success { background: #2ecc71; color: #000; }
    .btn-success:hover { background: #27ae60; }
    .btn-secondary { background: #444; color: #fff; }
    .btn-secondary:hover { background: #555; }
    .btn-danger { background: #c0392b; color: #fff; }
    .btn-danger:hover { background: #a93226; }
    .btn-warning-action { background: #e67e22; color: #fff; }
    .btn-warning-action:hover { background: #d35400; }

    @media (max-width: 768px) {
        .admin-table {
            display: block;
            overflow-x: auto;
        }
    }

/* ===== bazar.php ===== */
.bazar-wrapper { display: flex; flex-direction: column; gap: 20px; }
    .bazar-form-box, .bazar-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 20px; }
    .bazar-card.featured-bazar { border-color: #2ecc71; background: #162219; }

    .bazar-form-box form { display: flex; flex-direction: column; gap: 12px; }
    .bazar-form-box input[type="text"], .bazar-form-box input[type="number"], .bazar-form-box textarea, .bazar-form-box select {
        background: #222; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 4px; font-size: 1rem;
    }
    .bazar-form-box textarea { resize: vertical; height: 80px; }
    .bazar-form-box button[type="submit"] { background: #dc3545; color: #fff; border: none; padding: 12px; border-radius: 4px; font-weight: bold; cursor: pointer; }
    .bazar-form-box button[type="submit"]:hover { background: #b02a37; }

    .photo-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 5px; }
    .photo-upload-card { position: relative; background: #222; border: 2px dashed #444; border-radius: 6px; height: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s; overflow: hidden; }
    .photo-upload-card:hover { border-color: #dc3545; background: #281a1c; }
    .photo-upload-card input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
    .upload-icon { font-size: 1.5rem; color: #dc3545; font-weight: bold; line-height: 1; margin-bottom: 3px; }
    .upload-text { font-size: 0.75rem; color: #aaa; text-align: center; padding: 0 4px; }
    .photo-upload-card img.preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
    
    /* Átnevezve .ads-grid -> .bazar-grid a blokkolás elkerülésére */
    .bazar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
    .bazar-card { display: flex; flex-direction: column; justify-content: space-between; transition: opacity 0.3s; position: relative; }
    .bazar-card.pending-bazar { opacity: 0.6; border: 1px dashed #ffc107; }

    .bazar-card.sold-bazar { 
        opacity: 0.5; 
        filter: grayscale(80%);
        border: 1px solid #444; 
        background: #121212; 
    }
    .bazar-card.sold-bazar.is-buyer-view {
        opacity: 1;
        filter: none;
        border-color: #2ecc71;
    }

    .bazar-images { display: flex; gap: 5px; margin-bottom: 10px; overflow-x: auto; }
    .bazar-images img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #444; cursor: pointer; transition: transform 0.2s; }
    .bazar-images img:hover { transform: scale(1.05); }
    .bazar-title { font-size: 1.2rem; font-weight: bold; color: #fff; margin-bottom: 5px; }
    .bazar-price { color: #2ecc71; font-weight: bold; font-size: 1.1rem; margin-bottom: 10px; }
    .bazar-desc { color: #ccc; font-size: 0.95rem; margin-bottom: 15px; word-break: break-word; }
    .bazar-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #262626; padding-top: 10px; font-size: 0.85rem; color: #888; }
    .msg-seller-btn { background: #0d6efd; color: #fff; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 0.85rem; }
    .msg-seller-btn:hover { background: #0b5ed7; }
    .pending-notice { color: #ffc107; font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; }
    .sold-badge { background: #dc3545; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
    .featured-badge { background: #2ecc71; color: #000; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; display: inline-block; margin-bottom: 5px; }

    .bazar-actions { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #333; display: flex; flex-direction: column; gap: 8px; }
    .btn-action { border: none; padding: 6px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; cursor: pointer; text-decoration: none; text-align: center; }
    .btn-edit { background: #ffc107; color: #000; }
    .btn-sold { background: #17a2b8; color: #fff; }
    .btn-delete { background: #dc3545; color: #fff; }

    .rating-box { background: #1a291a; border: 1px solid #2ecc71; border-radius: 6px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
    .rating-box h4 { margin: 0; color: #2ecc71; font-size: 0.95rem; }
    .rating-box select, .rating-box input[type="text"] { font-size: 0.85rem; padding: 6px; }
    .rating-box button { background: #2ecc71; color: #000; border: none; padding: 8px; border-radius: 4px; font-weight: bold; cursor: pointer; }
    .rating-display { background: #1f281f; border: 1px solid #2ecc71; color: #2ecc71; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; margin-top: 10px; }

    /* Lightbox Modal */
    #imageModal { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
    #modalImage { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 6px; object-fit: contain; }
    #modalClose { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
    #modalClose:hover { color: #bbb; }

    @media (max-width: 768px) {
        .bazar-grid { grid-template-columns: 1fr; }
        .photo-upload-grid { grid-template-columns: 1fr; }
    }

/* ===== chat.php ===== */
/* Alapvető dobozmodell és túlcsordulás elleni védelem mobilon */
    * {
        box-sizing: border-box;
    }

    .chat-layout {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .chat-main {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }
    .chat-sidebar {
        width: 280px;
        flex-shrink: 0;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 15px;
        height: 600px;
        overflow-y: auto;
    }
    .online-user-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 0.9rem;
        color: #ddd;
    }
    .online-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #2ecc71;
        flex-shrink: 0;
    }
    .chat-container {
        display: flex;
        flex-direction: column;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 8px;
        height: 600px;
        overflow: hidden;
        width: 100%;
    }
    .chat-messages-box {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: #121212;
    }
    .chat-msg-item {
        background: #1a1a1a;
        padding: 10px 14px;
        border-radius: 6px;
        border: 1px solid #262626;
        word-break: break-word;
    }
    .msg-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    .msg-avatar {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        object-fit: cover;
        flex-shrink: 0;
    }
    .msg-meta .username {
        font-weight: bold;
        color: #fff;
    }
    .msg-meta .time {
        color: #777;
        margin-left: auto;
        font-size: 0.75rem;
    }
    .msg-body {
        color: #e0e0e0;
        word-break: break-word;
        font-size: 0.95rem;
    }
    .msg-image img {
        max-width: 100%;
        width: auto;
        max-height: 250px;
        object-fit: contain;
        border-radius: 4px;
        margin-top: 5px;
        border: 1px solid #333;
        display: block;
    }
    .chat-form-area {
        padding: 12px;
        background: #1a1a1a;
        border-top: 1px solid #333;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .emoji-bar {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
    .emoji-btn {
        background: #222;
        border: 1px solid #444;
        color: #fff;
        padding: 4px 7px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.95rem;
    }
    .emoji-btn:hover {
        background: #dc3545;
    }
    .chat-input-row {
        display: flex;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    .chat-input-row textarea {
        flex-grow: 1;
        background: #222;
        border: 1px solid #444;
        color: #fff;
        padding: 8px 10px;
        border-radius: 4px;
        resize: none;
        height: 44px;
        font-size: 16px !important;
        min-width: 0;
    }
    .chat-input-row textarea.drag-over {
        border: 2px dashed #dc3545;
        background: #2a1a1a;
    }
    .chat-input-row button {
        background: #dc3545;
        color: #fff;
        border: none;
        padding: 0 16px;
        height: 44px;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        flex-shrink: 0;
    }
    .chat-input-row button:hover {
        background: #b02a37;
    }
    .file-upload-label {
        background: #333;
        color: #fff;
        padding: 0 12px;
        height: 44px;
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .file-upload-label:hover {
        background: #444;
    }
    #chat_image {
        display: none;
    }

    /* Mobilos nézet igazítása (900px alatt) */
    @media (max-width: 900px) {
        .chat-layout {
            flex-direction: column;
        }
        .chat-sidebar {
            width: 100%;
            height: auto;
            max-height: 180px;
        }
        .chat-container {
            height: 480px;
        }
    }

/* ===== edit_bike.php ===== */
.form-row { display: flex; gap: 10px; margin-bottom: 12px; }
    .form-row input[type="text"], .form-row select {
        flex-grow: 1; background: #222; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 4px; font-size: 1rem;
    }
    .photo-upload-card {
        position: relative; background: #222; border: 2px dashed #444; border-radius: 6px; height: 100px;
        display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; overflow: hidden; width: 100%;
    }
    .photo-upload-card input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
    .photo-upload-card img.preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* ===== edit_post.php ===== */
.edit-container {
        max-width: 600px;
        margin: 30px auto;
        background: #141414;
        border: 1px solid #282828;
        border-radius: 12px;
        padding: 20px;
    }
    .edit-container h2 {
        color: #e74c3c;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .edit-container textarea {
        width: 100%;
        background: #0d0d0d;
        border: 1px solid #2a2a2a;
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        resize: vertical;
        min-height: 120px;
        font-size: 0.95rem;
        font-family: inherit;
        outline: none;
        margin-bottom: 15px;
    }
    .edit-container textarea:focus {
        border-color: #e74c3c;
    }
    .current-img {
        max-width: 100%;
        max-height: 200px;
        border-radius: 8px;
        margin-bottom: 15px;
        border: 1px solid #333;
        display: block;
    }
    .btn-monkey {
        display: inline-block;
        background: #e74c3c;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.95rem;
        cursor: pointer;
        text-decoration: none;
    }
    .btn-monkey:hover {
        background: #c0392b;
    }
    .btn-secondary {
        background: #333;
        color: #ccc;
        margin-left: 10px;
    }
    .btn-secondary:hover {
        background: #444;
        color: #fff;
    }

/* ===== forum.php ===== */
.forum-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .category-box {
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 15px;
    }
    .category-title {
        color: #dc3545;
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .category-desc {
        color: #888;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .topic-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .topic-row {
        background: #121212;
        padding: 10px 12px;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-left: 3px solid #dc3545;
    }
    .topic-row a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }
    .topic-row a:hover {
        color: #dc3545;
    }
    .topic-meta {
        font-size: 0.8rem;
        color: #777;
        text-align: right;
    }
    .new-topic-btn {
        background: #dc3545;
        color: #fff;
        padding: 10px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: bold;
        display: inline-block;
        font-size: 0.9rem;
    }
    .new-topic-btn:hover {
        background: #b02a37;
    }

    @media (max-width: 768px) {
        .topic-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }
        .topic-meta {
            text-align: left;
        }
    }

/* ===== garage.php ===== */
.garage-wrapper { display: flex; flex-direction: column; gap: 20px; }
    .bike-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 20px; }
    .form-row { display: flex; gap: 10px; }
    .garage-modal-content input[type="text"], .garage-modal-content select {
        flex-grow: 1; background: #222; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 4px; font-size: 1rem;
    }

    .photo-upload-card {
        position: relative; background: #222; border: 2px dashed #444; border-radius: 6px; height: 110px;
        display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s; overflow: hidden; width: 100%;
    }
    .photo-upload-card:hover { border-color: #dc3545; background: #281a1c; }
    .photo-upload-card input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
    .upload-icon { font-size: 1.8rem; color: #dc3545; font-weight: bold; line-height: 1; margin-bottom: 4px; }
    .upload-text { font-size: 0.8rem; color: #aaa; text-align: center; padding: 0 4px; }
    .photo-upload-card img.preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

    .bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
    .bike-card { display: flex; flex-direction: column; justify-content: space-between; }
    .bike-card.private-bike { border: 1px dashed #6c757d; opacity: 0.85; }

    .bike-img-container { position: relative; width: 100%; height: 200px; margin-bottom: 12px; background: #111; border-radius: 6px; overflow: hidden; }
    .bike-img { width: 100%; height: 100%; object-fit: cover; }
    .telemetry-thumb {
        position: absolute; bottom: 8px; left: 8px; width: 50px; height: 50px; object-fit: cover; border: 2px solid #dc3545; border-radius: 4px; cursor: pointer; transition: transform 0.2s, border-color 0.2s; background: #000; z-index: 3;
    }
    .telemetry-thumb:hover { transform: scale(1.1); border-color: #fff; }
    .telemetry-badge-label {
        position: absolute; bottom: 62px; left: 8px; background: rgba(220, 53, 69, 0.9); color: #fff; font-size: 0.65rem; padding: 2px 5px; border-radius: 3px; font-weight: bold; pointer-events: none; z-index: 3; text-transform: uppercase;
    }

    .bike-title { font-size: 1.3rem; font-weight: bold; color: #fff; margin-bottom: 8px; }
    .specs-section { background: #121212; padding: 10px; border-radius: 6px; margin-bottom: 10px; font-size: 0.9rem; }
    .specs-title { color: #dc3545; font-weight: bold; margin-bottom: 5px; font-size: 0.85rem; text-transform: uppercase; }
    .spec-item { display: flex; justify-content: space-between; color: #ccc; margin-bottom: 3px; }
    .bike-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #262626; padding-top: 10px; font-size: 0.85rem; color: #888; }

    #imageModal { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
    #modalImage { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 6px; border: 2px solid #444; }
    .close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
    .close-modal:hover { color: #dc3545; }

    @media (max-width: 768px) {
        .form-row { flex-direction: column; }
        .bike-grid { grid-template-columns: 1fr; }
    }

/* ===== index.php ===== */
.home-container { display: flex; flex-direction: column; gap: 30px; }
    .hero-banner { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('uploads/hero-bg.jpg') center/cover; border: 1px solid #dc3545; border-radius: 8px; padding: 40px 20px; text-align: center; }
    .hero-banner h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; }
    .hero-banner p { color: #ccc; font-size: 1.1rem; }
   
    
    .news-card { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 15px; margin-bottom: 15px; }
    .news-title { font-size: 1.2rem; font-weight: bold; color: #fff; margin-bottom: 5px; }
    .news-meta { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
    .news-content { color: #ddd; font-size: 0.95rem; line-height: 1.6; word-break: break-word; }
    .news-image { max-width: 100%; max-height: 350px; object-fit: cover; border-radius: 4px; margin-bottom: 12px; border: 1px solid #333; display: block; }

    .feed-card { background: #141414; border: 1px solid #282828; border-radius: 12px; padding: 18px; margin-bottom: 15px; }
    .feed-author-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .author-info { display: flex; align-items: center; gap: 10px; }
    .author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #333; }
    .author-name { color: #fff; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .feed-tag { color: #2ecc71; font-weight: 600; font-size: 0.85rem; }
    
    /* Modern Blur Kép Konténer a Feed-hez */
    .feed-img-wrapper { position: relative; width: 100%; height: 350px; overflow: hidden; border-radius: 8px; margin-bottom: 12px; border: 1px solid #222; background: #000; }
    
    /* ÚJ: Hosszú szöveges posztok korlátozása és összecsukása */
    .feed-content-wrapper {
        max-height: 360px; /* Az átlagos magasság határa */
        overflow: hidden;
        position: relative;
        transition: max-height 0.3s ease-in-out;
    }
    /* Átmenetes elhalványulás alul, ha összecsukott állapotban van */
    .feed-content-wrapper:not(.expanded)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(transparent, #141414);
        pointer-events: none;
    }
    /* Ha ki van nyitva */
    .feed-content-wrapper.expanded {
        max-height: none;
    }
    /* Teljes bejegyzés megtekintése gomb stílusa */
    .expand-post-btn {
        background: none;
        border: none;
        color: #dc3545;
        font-weight: bold;
        font-size: 0.85rem;
        cursor: pointer;
        padding: 5px 0 12px 0;
        display: block;
        text-align: left;
        transition: color 0.2s;
    }
    .expand-post-btn:hover {
        color: #ff4d5d;
        text-decoration: underline;
    }
.feed-content { 
    color: #ddd; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    margin-bottom: 5px; 
    /* ✅ SZAKMAI JAVÍTÁS: Automatikus link-tördelés bekapcsolása */
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

    .feed-footer { display: flex; justify-content: space-between; border-top: 1px solid #222; padding-top: 12px; font-size: 0.85rem; color: #888; align-items: center; }
    .feed-footer a { color: #aaa; text-decoration: none; transition: color 0.2s; }
    .feed-footer a:hover { color: #dc3545; }
    .feed-date { font-size: 0.75rem; color: #666; }
    .post-owner-actions { display: flex; gap: 15px; align-items: center; }

    .grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
    .mini-card { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
    
    /* Modern Blur Kép Konténer a Kártyákhoz */
    .img-wrapper { position: relative; width: 100%; height: 160px; overflow: hidden; border-radius: 4px; margin-bottom: 8px; background: #0f0f0f; }
    .blur-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(12px) brightness(0.4); transform: scale(1.1); }
    .main-img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

    .mini-title { font-weight: bold; color: #fff; font-size: 1rem; margin-bottom: 5px; }
    .mini-price { color: #2ecc71; font-weight: bold; margin-bottom: 8px; }
    .admin-shortcut-box { background: #1a1a1a; border: 1px dashed #ffc107; padding: 15px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }

    /* Lenyíló gombok stílusa */
    .load-more-btn {
        width: 100%;
        padding: 12px;
        background: #222;
        border: 1px solid #333;
        color: #fff;
        font-weight: bold;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
        text-align: center;
        margin-top: 5px;
    }
    .load-more-btn:hover {
        background: #2b2b2b;
        border-color: #dc3545;
        color: #dc3545;
    }

    /* Reszponzív Videó Beágyazó Stílusok */
    .video-embed-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 arány */
        height: 0;
        overflow: hidden;
        max-width: 100%;
        background: #000;
        border-radius: 8px;
        margin: 12px 0;
        border: 1px solid #333;
    }
    .video-embed-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    .video-embed-container.vertical-video {
        padding-bottom: 125%; /* Magas képarány TikTok és Reels videókhoz */
        max-width: 380px;
        margin: 12px auto;
    }

    @media (max-width: 768px) {
        .hero-banner h1 { font-size: 1.6rem; }
        .grid-4 { grid-template-columns: 1fr; }
        .feed-img-wrapper { height: 260px; }
    }

/* ===== post_view.php ===== */
/* Alert Dobozok Stílusa */
    .alert-success { background: #198754; color: #fff; padding: 12px 15px; border-radius: 6px; font-size: 0.95rem; margin-bottom: 15px; }
    .alert-error { background: #e74c3c; color: #fff; padding: 12px 15px; border-radius: 6px; font-size: 0.95rem; margin-bottom: 15px; }
    .alert-warning { background: #d35400; color: #fff; padding: 12px 15px; border-radius: 6px; font-size: 0.95rem; margin-bottom: 15px; border-left: 5px solid #e67e22; }

/* ===== profile.php ===== */
.profile-header { background: #141414; border: 1px solid #282828; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
    .user-info-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    .avatar-container { position: relative; width: 65px; height: 65px; }
    .avatar-container img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #333; }
    .status-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background: #2ecc71; border: 2px solid #141414; border-radius: 50%; }
    .user-meta h2 { color: #fff; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
    .badge-owner { background: #e74c3c; color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.5px; }
    .status-text-active { color: #aaa; font-size: 0.85rem; }
    .status-text-active strong { color: #2ecc71; }

    .profile-tabs { display: flex; gap: 15px; border-top: 1px solid #222; padding-top: 15px; overflow-x: auto; }
    .profile-tab { color: #888; text-decoration: none; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 6px; padding-bottom: 4px; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
    .profile-tab:hover, .profile-tab.active { color: #e74c3c; border-bottom-color: #e74c3c; }

    .btn-monkey { display: inline-block; width: 100%; background: #e74c3c; color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-weight: bold; font-size: 0.95rem; text-align: center; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.1s; box-sizing: border-box; }
    .btn-monkey:hover { background: #c0392b; }
    .btn-monkey:active { transform: scale(0.98); }

    .file-upload-box { border: 2px dashed #444; border-radius: 8px; padding: 25px; text-align: center; background: #111; cursor: pointer; transition: border-color 0.2s, background 0.2s; margin-bottom: 15px; }
    .file-upload-box:hover { border-color: #e74c3c; background: #161616; }

    .post-creator { background: #141414; border: 1px solid #282828; border-radius: 12px; padding: 15px; margin-bottom: 20px; }
    .post-creator h3 { color: #e74c3c; font-size: 1.05rem; margin-bottom: 12px; }
    .post-creator textarea { width: 100%; background: #0d0d0d; border: 1px solid #2a2a2a; color: #fff; padding: 12px; border-radius: 8px; resize: vertical; min-height: 90px; font-size: 0.95rem; font-family: inherit; outline: none; }
    .post-creator textarea:focus { border-color: #e74c3c; }
    .post-actions-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 10px; }
    .post-tools { display: flex; gap: 8px; flex-wrap: wrap; }
    .tool-btn { background: #1a1a1a; border: 1px solid #333; color: #ccc; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.2s; text-decoration: none; }
    .tool-btn:hover { border-color: #e74c3c; color: #fff; }

    /* Feed Card & Projekt Kártyák */
    .feed-card { background: #141414; border: 1px solid #282828; border-radius: 12px; padding: 15px; margin-bottom: 15px; }
    .feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.8rem; color: #777; }
    .feed-tag { color: #2ecc71; font-weight: 600; }
    .feed-image { width: 100%; border-radius: 8px; max-height: 350px; object-fit: cover; margin-bottom: 10px; border: 1px solid #222; }
    .feed-content { color: #ddd; font-size: 0.95rem; line-height: 1.4; margin-bottom: 12px; }
    .feed-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #222; padding-top: 10px; font-size: 0.85rem; color: #888; }
    .post-owner-actions { display: flex; gap: 10px; }
    .post-owner-actions a, .post-owner-actions button { background: none; border: none; color: #888; cursor: pointer; font-size: 0.8rem; text-decoration: none; padding: 0; }
    .post-owner-actions a:hover, .post-owner-actions button:hover { color: #e74c3c; }
    
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-bottom: 25px; }
    .project-card { 
        background: #141414; 
        border: 1px solid #282828; 
        border-radius: 12px; 
        overflow: hidden; 
        transition: transform 0.2s ease, border-color 0.2s ease;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }
    .project-card:hover { transform: translateY(-3px); border-color: #e74c3c; }
    .project-card-image { width: 100%; height: 160px; object-fit: cover; background: #222; }
    .project-card-body { padding: 12px 15px; flex: 1; display: flex; flex-direction: column; }
    .project-card-title { font-size: 1.1rem; font-weight: bold; color: #fff; margin-bottom: 6px; }
    .project-card-desc { color: #aaa; font-size: 0.85rem; line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
    .project-card-footer { border-top: 1px solid #222; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #888; }
    .project-stat-badge { background: #1a1a1a; padding: 4px 8px; border-radius: 4px; border: 1px solid #333; }

    .alert-success { background: #198754; color: #fff; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9rem; }
    .alert-error { background: #e74c3c; color: #fff; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9rem; }

    .rating-item { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 15px; margin-bottom: 12px; }
    .rating-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.9rem; }
    .rating-stars { color: #f1c40f; }
    .rating-date { color: #777; font-size: 0.8rem; }
    .rating-comment { color: #ccc; font-size: 0.9rem; margin-top: 5px; }
    .rating-meta { color: #888; font-size: 0.85rem; margin-bottom: 6px; }

    /* Modal kiegészítés az Új Projekt ablakhoz */
    .project-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; padding: 20px; box-sizing: border-box; }
    .project-modal-content { max-width: 550px; margin: 50px auto; background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 25px; color: #fff; }

    /* Mobil kijelző automatikus nagyításának letiltása (16px mínusz küszöb) */
    @media (max-width: 768px) {
        input[type="text"],
        input[type="password"],
        input[type="email"],
        textarea,
        select {
            font-size: 16px !important;
        }
    }

/* ===== project_view.php (JAVÍTOTT, CSÍKMENTES VERZIÓ) ===== */
.project-header-card { 
    background: #141414; 
    border: 1px solid #282828; 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 25px; 
}

/* ✅ JAVÍTÁS: contain-re állítva, így nincs torzítás vagy fekete csík beégés a borítóképen */
.project-cover { 
    width: 100%; 
    max-height: 400px; 
    object-fit: contain !important; 
    background: #0d0d0d;
    border-radius: 8px; 
    margin-bottom: 15px; 
    border: 1px solid #222; 
}

.project-title { 
    color: #fff; 
    font-size: 1.8rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.project-desc { 
    color: #ccc; 
    font-size: 1rem; 
    line-height: 1.5; 
    margin-bottom: 15px; 
    white-space: pre-wrap; 
}

.project-meta { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-top: 1px solid #222; 
    padding-top: 12px; 
    font-size: 0.85rem; 
    color: #888; 
}

.timeline-container { 
    position: relative; 
    padding-left: 20px; 
    border-left: 2px solid #dc3545; 
    margin-top: 20px; 
}

.timeline-item { 
    position: relative; 
    margin-bottom: 25px; 
}

.timeline-item::before { 
    content: ''; 
    position: absolute; 
    left: -27px; 
    top: 15px; 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: #dc3545; 
    border: 2px solid #141414; 
}

/* ✅ BIODILATÁCIÓS JAVÍTÁS: Kigyomláljuk a fekvő képek melletti fekete sávokat és kitöltéseket! */
.timeline-item img {
    display: block !important;
    max-width: 100% !important; /* Nem engedjük túlnyúlni a kártyán */
    width: auto !important;      /* Mobilon és fekvő képnél automatikusan összeszűkül a kép valós széléig! */
    max-height: 400px !important;
    object-fit: contain !important;
    background: transparent !important; /* SEHOL SEM LESZ TÖBBÉ FEKETE HÁTTÉR-BEÉGÉS! */
    border-radius: 8px;
    margin: 0 auto 12px auto !important; /* Hajszálpontosan középre rendezi a fekvő és álló képeket is */
    border: 1px solid #222;
}


    
    .btn-monkey { background: #e74c3c; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; }
    .btn-monkey:hover { background: #c0392b; }

    .comments-section { border-top: 1px solid #222; margin-top: 15px; padding-top: 15px; }
    .comment-item { display: flex; gap: 10px; background: #0d0d0d; border: 1px solid #222; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
    .comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
    .comment-author { font-weight: bold; color: #e74c3c; font-size: 0.85rem; margin-bottom: 2px; }
    .comment-date { font-size: 0.75rem; color: #666; margin-left: 8px; }
    .comment-text { color: #ccc; font-size: 0.85rem; line-height: 1.4; white-space: pre-wrap; }
    .comment-input-box { display: flex; gap: 8px; margin-top: 12px; }
    .comment-input { flex: 1; background: #0d0d0d; border: 1px solid #333; color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; }
    .btn-comment { background: #e74c3c; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.85rem; }
    .btn-comment:hover { background: #c0392b; }

/* ===== szavazas.php ===== */
.poll-wrapper { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
    .poll-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 20px; }
    .poll-card.active-poll { border-color: #2ecc71; background: #162219; }
    .poll-title { font-size: 1.3rem; font-weight: bold; color: #fff; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
    .poll-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
    .poll-option-label { display: flex; align-items: center; gap: 10px; background: #222; padding: 10px 15px; border-radius: 6px; cursor: pointer; border: 1px solid #444; transition: background 0.2s; }
    .poll-option-label:hover { background: #2a2a2a; border-color: #2ecc71; }
    .poll-btn { background: #2ecc71; color: #000; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; }
    .poll-btn:hover { background: #27ae60; }
    
    /* Eredmény sávok */
    .result-bar-container { margin-bottom: 12px; }
    .result-info { display: flex; justify-content: space-between; font-size: 0.9rem; color: #ccc; margin-bottom: 4px; }
    .result-bar-bg { background: #222; border-radius: 4px; height: 12px; overflow: hidden; border: 1px solid #444; }
    .result-bar-fill { background: #2ecc71; height: 100%; border-radius: 3px; transition: width 0.5s ease; }
    .result-bar-fill.user-choice { background: #3498db; }
    .archive-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }

/* ===== Szabalyzat ===== */
body.page-rules {
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #0b0b0c;
            color: #d1d5db;
            line-height: 1.7;
            margin: 0;
            padding: 40px 20px;
        }
body.page-rules .container {
            max-width: 750px;
            margin: 0 auto;
            background: #131316;
            padding: 40px;
            border-radius: 12px;
            border: 1px solid #222227;
            box-shadow: 0 10px 30px rgba(0,0,0,0.7);
        }
body.page-rules h1 {
            color: #f97316; /* Dögös verseny-narancs/piros */
            font-size: 2.2rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            margin-top: 0;
            border-bottom: 1px solid #222227;
            padding-bottom: 15px;
        }
body.page-rules p.subtitle {
            color: #6b7280;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 30px;
        }
body.page-rules h2 {
            color: #f3f4f6;
            font-size: 1.3rem;
            font-weight: 700;
            margin-top: 35px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            border-left: 3px solid #f97316;
            padding-left: 12px;
        }
body.page-rules ul {
            list-style-type: none;
            padding-left: 0;
            margin: 0;
        }
body.page-rules li {
            background: #1c1c21;
            margin-bottom: 12px;
            padding: 16px;
            border-radius: 8px;
            border: 1px solid #26262b;
            font-size: 0.95rem;
        }
body.page-rules li strong {
            color: #f97316;
            display: inline-block;
            margin-bottom: 4px;
        }
body.page-rules .back-link {
            display: inline-block;
            margin-top: 35px;
            color: #9ca3af;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 10px 20px;
            border: 1px solid #26262b;
            border-radius: 6px;
            transition: all 0.2s ease;
            background: #131316;
        }
body.page-rules .back-link:hover {
            color: #ffffff;
            background: #1c1c21;
            border-color: #4b5563;
            transform: translateX(-4px);
        }

/* ===== Welcome ===== */
body.page-welcome * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
body.page-welcome {
            background-color: #0a0a0a;
            color: #ffffff;
            font-family: 'Montserrat', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at center, #1f0505 0%, #080808 100%);
            overflow-x: hidden;
            padding: 20px;
        }
body.page-welcome .container {
            max-width: 900px;
            width: 100%;
            text-align: center;
            background: rgba(15, 15, 15, 0.85);
            border: 1px solid rgba(230, 0, 0, 0.3);
            border-radius: 20px;
            padding: 40px 20px;
            box-shadow: 0 0 50px rgba(230, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            position: relative;
        }
body.page-welcome .container::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #ff0000, transparent, #ff0000);
            border-radius: 22px;
            z-index: -1;
            opacity: 0.3;
        }
body.page-welcome .logo-wrapper {
            max-width: 450px;
            margin: 0 auto 30px auto;
        }
body.page-welcome .logo-wrapper img {
            width: 100%;
            height: auto;
            filter: drop-shadow(0 0 15px rgba(235, 15, 15, 0.4));
            transition: transform 0.3s ease;
        }
body.page-welcome .logo-wrapper img:hover {
            transform: scale(1.02);
        }
body.page-welcome h1 {
            font-family: 'Teko', sans-serif;
            font-size: 3rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #ff1a1a;
            text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
            margin-bottom: 10px;
            line-height: 1.1;
        }
body.page-welcome .subtitle {
            font-size: 1.2rem;
            color: #cccccc;
            margin-bottom: 35px;
            font-weight: 400;
        }
body.page-welcome .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
body.page-welcome .feature-card {
            background: rgba(30, 30, 30, 0.8);
            border: 1px solid #2a2a2a;
            border-left: 4px solid #ff1a1a;
            border-radius: 10px;
            padding: 20px 15px;
            text-decoration: none;
            display: block;
            transition: all 0.3s ease;
        }
body.page-welcome .feature-card:hover {
            transform: translateY(-5px);
            background: rgba(40, 40, 40, 0.9);
            border-color: #ff1a1a;
            box-shadow: 0 5px 20px rgba(255, 26, 26, 0.2);
        }
body.page-welcome .feature-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }
body.page-welcome .feature-title {
            font-family: 'Teko', sans-serif;
            font-size: 1.6rem;
            color: #ffffff;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
body.page-welcome .feature-desc {
            font-size: 0.85rem;
            color: #aaaaaa;
            margin-top: 5px;
        }
body.page-welcome .status-bar {
            margin-top: 40px;
            padding: 15px;
            background: rgba(255, 26, 26, 0.1);
            border: 1px dashed rgba(255, 26, 26, 0.4);
            border-radius: 8px;
            display: inline-block;
        }
body.page-welcome .status-text {
            color: #ff4d4d;
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
body.page-welcome .footer-text {
            content: '';
            margin-top: 30px;
            font-size: 0.8rem;
            color: #666666;
        }
@media (max-width: 600px) {
body.page-welcome h1 { font-size: 2.2rem; }
body.page-welcome .subtitle { font-size: 1rem; }
body.page-welcome .container { padding: 25px 15px; }

        }

/* Footer */
footer.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

.page-body {
    margin-top: 20px;
}

.msg-icon {
    position: relative;
}

.unread-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Globális képnagyító (Lightbox) stílusok */
#imgLightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out, pointer;
    padding: 20px;
}

#lightboxImg {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

/* Modern Blur Kép Konténer a Hírekhez is */
.news-img-wrapper, .img-wrapper, .feed-img-wrapper, .bike-img-container { 
    position: relative; 
    width: 100%; 
    height: 350px; 
    overflow: hidden; 
    border-radius: 4px; 
    margin-bottom: 12px; 
    border: 1px solid #333; 
    background: #000; 
    cursor: pointer; /* ✅ Kikényszerítjük a tiszta kattintó kezet oldalbetöltéskor */
}
.news-image, .main-img, .bike-img, .feed-image { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    object-position: center; 
    display: block; 
    cursor: pointer; /* ✅ Kikényszerítjük a tiszta kattintó kezet oldalbetöltéskor */
}


/* --- SCOOTER MONKEYS AGRESSZÍV SZEKCIÓ CÍMEK --- */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

/* A cím szövege dögös, ferdén vágott piros boxban, karbon háttérrel */
.section-title span {
    background: linear-gradient(135deg, #ff1e38 0%, #b30016 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px 10px 20px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); /* Verseny-stílusú ferde vágás a jobb szélén */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Egy vékony, elegáns sötétszürke vonal, ami végigfut a cím mögött a teljes szélességben */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 18px; /* Beigazítva a doboz középvonalához */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #b30016 0%, #282828 50%, transparent 100%);
    z-index: 1;
}

/* A cím szövege – vékonyított, aszimmetrikus sportos box */
.section-title span {
    background: linear-gradient(135deg, #ff1e38 0%, #b30016 100%);
    color: #fff;
    font-size: 1rem; /* Kicsit finomítottam a betűméretet is a vékonyabb dobozhoz */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* VÉKONYÍTÁS: A 10px helyett most 6px lett a felső és alsó belső margó */
    padding: 6px 25px 6px 18px; 
    border-radius: 6px 24px 4px 6px; /* Az arányosabb ív kedvéért picit ezen is finomítottam */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Ha ráviszed az egeret az "Összes megtekintése" gombra */
.section-title a:hover {
    color: #fff;
    border-color: #ff1e38;
    background: #ff1e38;
    box-shadow: 0 0 10px rgba(255, 30, 56, 0.3);
    text-decoration: none;
}
/* ===== SCOOTER MONKEYS - MŰHELY SZINT BADGE-EK ===== */
.role-grey-monkey   { background-color: #555555; color: #fff; }
.role-green-monkey  { background-color: #2ecc71; color: #fff; }
.role-orange-monkey { background-color: #e67e22; color: #fff; }
.role-blue-monkey   { background-color: #3498db; color: #fff; }
.role-red-monkey    { background-color: #ff1e38; color: #fff; }

/* ===== SCOOTER MONKEYS - TELJESEN EGYMÁS ALÁ RENDEZETT MOBILOS JAVÍTÁS ===== */
@media (max-width: 768px) {
    /* Teljes fizikai tiltás a vízszintes csúszkálásra */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* A profil fejléc doboza: mindent szigorúan függőlegesen, egymás alá tesz */
    .profile-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Az avatar és a névblokk sorát is függőlegesre állítjuk */
    .user-info-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* A név, a TAG és a Majom dobozok egymás alá kerülnek tiszta sorokba */
    .user-meta-container-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    /* Az XP doboz és a piros folyamatjelző sáv teljesen külön sorba kerül alulra */
    .workshop-xp-bar-box {
        margin: 10px auto 0 auto !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Az XP szövegek egymás alá törnek, hogy ne érjenek össze */
    .workshop-xp-text-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    /* JAVÍTÁS: A navigációs fülek konténere szigorúan egymás alá teszi a gombokat */
    .profile-tabs {
        display: flex !important;
        flex-direction: column !important; 
        gap: 8px !important;
        width: 100% !important;
        border-top: 1px solid #222 !important;
        padding-top: 15px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* A gombok külön-külön teljes szélességű, dögös tuning dobozokká válnak */
    .profile-tab {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background: #1a1a1a !important;
        border: 1px solid #282828 !important;
        padding: 12px 10px !important;
        border-radius: 6px !important;
        font-size: 0.85rem !important;
        box-sizing: border-box !important;
    }

    /* Aktív fül kiemelése mobilon */
    .profile-tab.active {
        border-color: #ff1e38 !important;
        background: rgba(255, 30, 56, 0.05) !important;
        color: #ff1e38 !important;
    }

    /* 🔥 FIX: Letiltjuk a hosszú hírfolyam-szövegek oldalra nyúlását */
    .feed-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .feed-content {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}



/* ===== JAVÍTOTT: TŰPONTOS ÉS RESZPONZÍV BAZÁR KÁRTYA MÉRETEK ===== */
.bazar-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 520px; /* Fix magasság PC-n */
    background: #141414;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.bazar-card:hover {
    transform: translateY(-3px);
    border-color: #ff1e38;
}
.bazar-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* KÉNYSZERÍTETT MOBILOS JAVÍTÁS A BAZÁRHOZ ÉS KÍVÁNSÁGHOZ */
@media (max-width: 768px) {
    .bazar-grid, .wishes-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .bazar-card, .wish-card {
        height: auto !important; /* Felülír minden korábbi tiltást, mobilon gyönyörűen összeugrik! */
        min-height: 380px !important;
        gap: 12px !important;
    }
    .bazar-desc, .wish-desc {
        -webkit-line-clamp: 5 !important; /* Mobilon kicsit több szöveget engedünk látni kitakarás nélkül */
    }
}

