:root { 
    --bg-dark: #09090b; --bg-card: #121216; --bg-topbar: rgba(13, 13, 16, 0.85); 
    --neon-blue: #00d2ff; --neon-glow: rgba(0, 210, 255, 0.5); 
    --text-main: #f0f0f0; --text-muted: #888891; 
    --sidebar-width: 260px; --topbar-height: 70px; 
    --card: #18181b; --win: #22c55e; --loss: #ef4444; --gold: #eab308;
}




/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -150%; /* Rejtve van alapból, alul */
    left: 0;
    width: 100%;
    background: rgba(13, 13, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--neon-blue);
    padding: 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.show {
    bottom: 0; /* Beúszik a képernyőre */
}

.cookie-content {
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-text {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.cookie-text strong {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--neon-blue);
    color: #000;
}

.cookie-btn.accept:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

.cookie-btn.decline {
    background: #27272a;
    color: #fff;
    border: 1px solid #3f3f46;
}

.cookie-btn.decline:hover {
    background: #ef4444;
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .cookie-btn { flex: 1; }
}

/* ==========================================================================
   1. ALAPOK (RESET, GÖRGÉS LETILTÁSA)
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }

body { 
    font-family: 'Roboto', sans-serif; background-color: var(--bg-dark); color: var(--text-main); 
    background-image: radial-gradient(circle at 50% -10%, #112233 0%, var(--bg-dark) 60%); 
    min-height: 100vh; padding-top: var(--topbar-height); display: flex; flex-direction: column;
}


/* ==========================================================================
   2. TOPBAR ÉS MENÜK
   ========================================================================== */
.topbar { 
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-height); 
    background: var(--bg-topbar); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(0, 210, 255, 0.1); 
    display: flex; justify-content: space-between; align-items: center; padding: 0 30px; 
    z-index: 2000; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); 
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.menu-toggle { color: var(--text-main); font-size: 24px; cursor: pointer; transition: 0.3s; }
.menu-toggle:hover { color: var(--neon-blue); }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-main); transition: 0.3s; }
.topbar-brand:hover { text-shadow: 0 0 10px var(--neon-glow); }
.topbar-brand img { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); height: 35px; width: auto; }
.topbar-brand span { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 1px; }

.topbar-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; width: 450px; }
.topbar-search { display: flex; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; overflow: hidden; width: 100%; transition: 0.3s; }
.topbar-search:focus-within { border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 210, 255, 0.15); }
.topbar-server-select { background: rgba(255, 255, 255, 0.05); color: #fff; border: none; border-right: 1px solid rgba(255, 255, 255, 0.1); padding: 0 15px; font-weight: bold; outline: none; cursor: pointer; font-family: 'Roboto', sans-serif; }
.topbar-server-select option { background: var(--bg-card); color: #fff; }
.topbar-search input { background: transparent; border: none; color: #fff; padding: 10px 15px; flex: 1; outline: none; font-family: 'Roboto', sans-serif; }
.topbar-search button { background: transparent; border: none; color: var(--text-muted); padding: 0 15px; cursor: pointer; transition: 0.3s; }
.topbar-search button:hover { color: var(--neon-blue); }

.topbar-right { display: flex; align-items: center; gap: 20px;}
.auth-links { display: flex; gap: 15px; align-items: center; }
.auth-links a { text-decoration: none; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 16px; transition: 0.3s; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.btn-login:hover { color: var(--neon-blue); }
.btn-register { background: rgba(0, 210, 255, 0.1); color: var(--neon-blue) !important; padding: 8px 20px; border-radius: 6px; border: 1px solid var(--neon-blue); }
.btn-register:hover { background: var(--neon-blue); color: var(--bg-dark) !important; box-shadow: 0 0 15px var(--neon-glow); }

/* ==========================================================================
   3. DROPDOWN ÉS ÉRTESÍTÉS MENÜK
   ========================================================================== */
.user-menu-wrapper, .notif-wrapper { position: relative; display: flex; align-items: center; height: var(--topbar-height); }
.user-menu-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: #fff; transition: 0.3s; padding: 5px 10px; border-radius: 8px; }
.user-menu-btn:hover { background: rgba(255, 255, 255, 0.05); }
.user-menu-btn img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--neon-blue); object-fit: cover; }
.user-menu-btn span { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: bold; }

.user-dropdown, .notif-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid #27272a; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 2500; overflow: hidden; }
.user-dropdown { width: 180px; }
.user-dropdown.show, .notif-dropdown.show { display: block !important; animation: fadeIn 0.2s ease; }
.user-dropdown a { display: block; padding: 12px 15px; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.3s; border-bottom: 1px solid #27272a;}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover { background: rgba(0, 210, 255, 0.1); color: var(--neon-blue); padding-left: 20px; }

.btn-notif { background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; position: relative; transition: 0.3s; padding: 5px 10px; border-radius: 8px;}
.btn-notif:hover { color: var(--neon-blue); background: rgba(255, 255, 255, 0.05); }
.notif-badge { position: absolute; top: -5px; right: -5px; background: var(--loss); color: #fff; font-size: 10px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.notif-dropdown { width: 320px; margin-top: 0; }

.mobile-search-btn { display: none; color: #fff; font-size: 20px; cursor: pointer; transition: 0.3s; padding: 5px 10px; margin-right: 5px; }
.mobile-search-btn:hover { color: var(--neon-blue); }

.mobile-search-dropdown { display: none; position: fixed; top: var(--topbar-height); left: 0; width: 100%; background: var(--bg-topbar); backdrop-filter: blur(15px); border-bottom: 1px solid var(--neon-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 1999; padding: 15px 20px; }
.mobile-search-dropdown.show { display: block; animation: fadeIn 0.2s ease; }

/* ==========================================================================
   4. CHAT ABLAK DIZÁJN
   ========================================================================== */
.chat-container { position: fixed; bottom: 20px; right: 20px; width: 320px; background: var(--bg-card); border-radius: 12px 12px 0 0; border: 1px solid #27272a; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 2000; overflow: hidden; display: none; flex-direction: column; transition: width 0.3s, height 0.3s;}
.chat-container.active-chat { display: flex; }
.chat-header { background: #1e293b; padding: 12px 15px; font-family: 'Rajdhani'; font-weight: bold; font-size: 16px; color: #fff; border-bottom: 1px solid var(--neon-blue); display: flex; justify-content: space-between; align-items: center; user-select: none; }
.chat-header-actions { display: flex; gap: 15px; align-items: center; font-size: 16px; }
.chat-header-actions i { cursor: pointer; transition: 0.2s; color: #a1a1aa; }
.chat-header-actions i:hover { color: #fff; }
.chat-body { height: 350px; background: #09090b; display: flex; flex-direction: column; }
.chat-collapsed .chat-body { display: none; }

.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; height: 250px;}
.chat-msg { padding: 8px 12px; border-radius: 12px; font-size: 13px; max-width: 85%; word-wrap: break-word; line-height: 1.4; width: max-content; }
.chat-msg.mine { background: rgba(0, 210, 255, 0.15) !important; border: 1px solid rgba(0, 210, 255, 0.3) !important; align-self: flex-end !important; margin-left: auto !important; color: #fff !important; border-bottom-right-radius: 2px !important; }
.chat-msg.theirs { background: #27272a !important; border: 1px solid #3f3f46 !important; align-self: flex-start !important; margin-right: auto !important; color: #f0f0f0 !important; border-bottom-left-radius: 2px !important; }
.chat-sender { display: none !important; }
.mobile-chat-bubble { display: none; } /* Gépen rejtve */

/* ==========================================================================
   5. INDEX OLDAL DIZÁJN
   ========================================================================== */
.hero-section { text-align: center; padding: 120px 20px 80px; position: relative; }
.hero-logo { width: 150px; height: auto; margin-bottom: 20px; filter: drop-shadow(0 0 20px var(--neon-glow)); }
.hero-section h1 { font-family: 'Rajdhani', sans-serif; font-size: clamp(35px, 6vw, 60px); color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; line-height: 1; }
.big-search-box { max-width: 700px; margin: 0 auto 40px; display: flex; background: var(--bg-card); border: 2px solid #3f3f46; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s; }
.big-search-box:focus-within { border-color: var(--neon-blue); box-shadow: 0 0 20px rgba(0, 210, 255, 0.2); }
.big-server-select { background: rgba(255, 255, 255, 0.05); color: #fff; border: none; border-right: 1px solid #3f3f46; padding: 0 20px; font-weight: bold; font-size: 16px; outline: none; cursor: pointer; font-family: 'Roboto', sans-serif; }
.big-server-select option { background: var(--bg-card); color: #fff; }
.big-search-box input { background: transparent; border: none; color: #fff; padding: 20px 25px; font-size: 18px; flex: 1; outline: none; font-family: 'Roboto', sans-serif; width: 100%;}
.big-search-btn { background: var(--neon-blue); color: #000; border: none; padding: 0 30px; font-size: 20px; cursor: pointer; transition: 0.3s; }
.big-search-btn:hover { background: #fff; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.section-box { background: var(--card); border: 1px solid #27272a; border-radius: 12px; padding: 25px; }
.section-header { font-family: 'Rajdhani'; font-size: 24px; color: #fff; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #27272a; padding-bottom: 10px; text-transform: uppercase; }
.section-header a { font-size: 14px; color: var(--neon-blue); text-decoration: none; font-family: 'Roboto'; font-weight: bold; }

.ladder-list-item { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid #27272a; transition: 0.3s; border-radius: 8px; }
.ladder-list-item:hover { background: rgba(0, 210, 255, 0.05); padding-left: 25px; border-left: 3px solid var(--neon-blue); }
.ladder-list-item:last-child { border-bottom: none; }
.lad-info h4 { font-family: 'Rajdhani'; font-size: 20px; color: #fff; margin-bottom: 5px; }
.lad-stats { display: flex; align-items: center; gap: 10px; color: #a1a1aa; font-size: 13px; margin-top: 5px; flex-wrap: wrap; }
.lad-divider { color: #3f3f46; font-weight: bold; }
.lad-btn { background: rgba(0, 210, 255, 0.1); border: 1px solid var(--neon-blue); color: var(--neon-blue); padding: 8px 15px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 13px; transition: 0.3s; }
.lad-btn:hover { background: var(--neon-blue); color: #000; }

.patch-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px dashed #3f3f46; padding-bottom: 15px; }
.patch-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.patch-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid #3f3f46; }
.patch-details h4 { color: #fff; font-size: 15px; margin-bottom: 5px; cursor: pointer; transition: 0.2s; }
.patch-details h4:hover { color: var(--neon-blue); }
.patch-details p { color: #888; font-size: 12px; line-height: 1.4; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; width: 100%; }
.feature-card { background: var(--card); border: 1px solid #27272a; padding: 40px 30px; border-radius: 12px; text-align: center; transition: 0.3s; }
.feature-card:hover { border-color: var(--neon-blue); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1); }
.feature-icon { font-size: 40px; color: var(--neon-blue); margin-bottom: 20px; }
.feature-card h3 { font-family: 'Rajdhani'; font-size: 24px; margin-bottom: 15px; color: #fff; }
.feature-card p { color: #888; font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   6. PROFIL OLDAL DIZÁJN
   ========================================================================== */
.prof-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.prof-header-box { background: linear-gradient(90deg, #1e293b, #0f172a); padding: 40px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #334155; margin-bottom: 30px; flex-wrap: wrap; gap: 20px;}
.prof-info-flex { display: flex; align-items: center; gap: 30px; }
.prof-icon-wrapper { position: relative; }
.prof-icon-img { width: 120px; height: 120px; border-radius: 20px; border: 3px solid var(--neon-blue); }
.prof-level-badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: #000; padding: 4px 16px; border-radius: 20px; font-size: 15px; font-weight: bold; border: 1px solid var(--neon-blue); color: var(--neon-blue); }
.prof-live-btn { background: var(--loss); color: white; padding: 12px 25px; border-radius: 8px; font-weight: bold; font-family: 'Rajdhani'; font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
.prof-live-btn.offline { background: #27272a; box-shadow: none; color: #888; pointer-events: none; }
.prof-main-layout { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 25px; 
    min-height: 800px; 
    align-items: start; 
}

/* FIX: AZ OSZLOP MEGTARTJA A MAGASSÁGÁT ÜRES LISTA ESETÉN IS */
.history { min-height: 800px; display: flex; flex-direction: column; }
#most-played-container { 
    min-height: 330px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.prof-sidebar-col { display: flex; flex-direction: column; gap: 20px; }
.prof-stat-card { background: var(--card); border-radius: 12px; border: 1px solid #27272a; padding: 20px; }
.prof-card-title { font-family: 'Rajdhani'; font-size: 18px; font-weight: 700; color: #a1a1aa; border-bottom: 1px solid #27272a; margin: -5px 0 15px; padding-bottom: 10px; text-transform: uppercase; }
.prof-rank-item { display: flex; align-items: center; gap: 15px; padding: 10px 0; }
.prof-rank-img { width: 120px; height: 120px; object-fit: cover; transform: scale(1.1); }
.prof-tier-text { font-size: 18px; font-weight: 700; color: #fff; text-transform: uppercase;}
.prof-lp-text { color: var(--neon-blue); font-weight: 500; }

.top-champ-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #27272a; }
.top-champ-item:last-child { border-bottom: none; }
.top-champ-img { width: 40px; height: 40px; border-radius: 50%; }
.top-champ-info { flex: 1; }
.top-champ-name { font-weight: bold; font-size: 14px; color: #fff; }
.top-champ-stats { font-size: 12px; color: #a1a1aa; margin-top: 3px; }
.stat-circle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.stat-mini { background: #121214; padding: 10px; border-radius: 8px; text-align: center; border: 1px solid #27272a;}
.stat-val { font-size: 18px; font-weight: bold; color: var(--gold); }
.chart-container { background: #121214; padding: 10px; border-radius: 8px; border: 1px solid #27272a; margin-top: 15px; position: relative; height: 200px; width: 100%;}

.match-card { background: var(--card); border-radius: 8px; margin-bottom: 12px; border-left: 8px solid #3f3f46; transition: 0.2s; }
.match-card.win { border-left-color: var(--win); background: rgba(34, 197, 94, 0.05); }
.match-card.loss { border-left-color: var(--loss); background: rgba(239, 68, 68, 0.05); }
.m-header { display: grid; grid-template-columns: 110px 100px 120px 1fr 150px 40px; align-items: center; padding: 15px; cursor: pointer; }
.champ-spell-group { display: flex; align-items: center; gap: 4px; }
.spells-col { display: flex; flex-direction: column; gap: 2px; }
.spell-img, .mini-spell { border-radius: 4px; }
.spell-img { width: 22px; height: 22px; }
.mini-spell { width: 14px; height: 14px; }
.item-img { width: 25px; height: 25px; border-radius: 4px; }
.item-empty { width: 25px; height: 25px; background: #27272a; border-radius: 4px; }
.details-box { display: none; padding: 20px; background: #121214; border-top: 1px solid #27272a; overflow-x: auto; }
.table-container { width: 100%; overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 650px; }
.team-table th { text-align: left; padding: 8px 5px; color: #a1a1aa; border-bottom: 1px solid #27272a; cursor: pointer; }
.team-table td { padding: 6px 5px; border-bottom: 1px solid #222; vertical-align: middle; }
.p-row { display: flex; align-items: center; gap: 8px; }
.p-row a { color: #ddd; text-decoration: none; font-weight: 500; }
.mini-champ { width: 28px; height: 28px; border-radius: 4px; }
.mini-item { width: 20px; height: 20px; border-radius: 3px; }
.filters { display: flex; gap: 5px; flex-wrap: wrap;}
.filter-btn { background: #222; border: 1px solid #3f3f46; color: #a1a1aa; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.filter-btn.active { background: var(--neon-blue); color: #000; border-color: var(--neon-blue); font-weight: bold; }


/* ==========================================================================
   LADDERS.PHP SPECIFIC STYLES
   ========================================================================== */
.page-ladders .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.page-ladders .header-title { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: clamp(28px, 4vw, 36px); 
    text-transform: uppercase; 
    margin-bottom: 30px; 
    border-bottom: 2px solid var(--neon-blue); 
    padding-bottom: 10px; 
    display: inline-block;
    color: #fff;
}

/* Alert Boxes (Flash Messages) */
.alert { 
    padding: 15px 20px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    font-weight: 600; 
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}
.alert.success { background: rgba(34, 197, 94, 0.1); color: var(--win); border: 1px solid var(--win); }
.alert.error { background: rgba(239, 68, 68, 0.1); color: var(--loss); border: 1px solid var(--loss); }

/* Ladder Grid Layout */
.ladder-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px; 
    margin-bottom: 50px;
}

/* Ladder Cards */
.ladder-card { 
    background: var(--card); 
    border-radius: 12px; 
    border: 1px solid #27272a; 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden;
    cursor: pointer;
}
.ladder-card:hover { 
    border-color: var(--neon-blue); 
    box-shadow: 0 10px 30px rgba(0,210,255,0.08); 
    transform: translateY(-5px);
}
.ladder-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 4px; 
    background: var(--neon-blue); 
    transition: 0.3s;
}

.l-name { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: #fff; 
}
.l-reqs { 
    margin-bottom: 20px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.req-item {
    font-size: 14px; 
    color: #a1a1aa; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.req-item span { 
    color: #fff; 
    font-weight: 600; 
}
.req-item i {
    width: 16px;
    color: #52525b;
}

.l-players { 
    font-size: 14px; 
    color: var(--neon-blue); 
    margin-bottom: 25px; 
    font-weight: 600;
}

/* Actions inside card */
.ladder-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn { 
    padding: 12px; 
    border-radius: 6px; 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 700; 
    font-size: 16px; 
    text-transform: uppercase; 
    border: none; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s ease; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-join { background: var(--neon-blue); color: #000; }
.btn-join:hover { background: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.btn-disabled { background: #18181b; color: #52525b; cursor: not-allowed; border: 1px solid #27272a; }
.btn-joined { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); cursor: default; }

/* Inaktiválás (Leave) Gomb */
.btn-leave {
    background: rgba(239, 68, 68, 0.1); 
    color: #ef4444; 
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.btn-leave:hover {
    background: var(--loss);
    color: #fff;
}

/* ==========================================================================
   LADDER DETAILS OLDAL SPECIFIKUS STÍLUSOK (ladder-det- prefix)
   ========================================================================== */

.ladder-det-btn-back { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #f0f0f0; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-family: 'Rajdhani', sans-serif; font-weight: bold; font-size: 16px; transition: 0.3s; margin-bottom: 20px;}
.ladder-det-btn-back:hover { background: rgba(0, 210, 255, 0.1); color: var(--neon-blue); border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);}

.ladder-det-header { background: linear-gradient(90deg, #1e293b, #0f172a); padding: 40px; border-radius: 16px; border: 1px solid #334155; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}
.ladder-det-title { font-family: 'Rajdhani', sans-serif; font-size: 38px; font-weight: bold; color: #fff; margin-bottom: 5px; text-transform: uppercase;}
.ladder-det-info { color: var(--neon-blue); font-size: 16px; font-weight: 500;}

.ladder-det-status-badge { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid #4ade80; padding: 8px 16px; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-weight: bold; font-size: 16px; }
.ladder-det-status-badge.not-joined { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: #ef4444; }

.ladder-det-main-tabs { display: flex; gap: 20px; border-bottom: 1px solid #27272a; margin-bottom: 30px; }
.ladder-det-tab-btn { background: transparent; border: none; color: #a1a1aa; font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: bold; cursor: pointer; padding: 10px 15px; border-bottom: 3px solid transparent; transition: 0.3s; }
.ladder-det-tab-btn.active { color: var(--neon-blue); border-bottom-color: var(--neon-blue); }
.ladder-det-tab-btn:hover:not(.active) { color: #fff; }

.ladder-det-tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.ladder-det-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ladder-det-filter-btns { display: flex; gap: 10px; margin-bottom: 20px; }
.ladder-det-filter-btn { background: #18181b; border: 1px solid #3f3f46; color: #a1a1aa; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.3s;}
.ladder-det-filter-btn.active { background: var(--neon-blue); color: #000; border-color: var(--neon-blue);}

.ladder-det-matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.ladder-det-match-card { background: var(--bg-card, #121216); border: 1px solid #27272a; border-radius: 12px; padding: 15px; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden;}
.ladder-det-match-card:hover { border-color: var(--neon-blue); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,210,255,0.1); }
.ladder-det-match-card.finished { border-color: #3f3f46; opacity: 0.8; }
.ladder-det-match-card.finished:hover { border-color: #fff; opacity: 1; }

.ladder-det-mc-header { display: flex; justify-content: space-between; font-size: 12px; color: #a1a1aa; margin-bottom: 15px; font-weight: bold; }
.ladder-det-mc-status.pending { color: var(--gold, #eab308); } 
.ladder-det-mc-status.completed { color: var(--win, #22c55e); } 
.ladder-det-mc-status.disputed { color: var(--loss, #ef4444); }

.ladder-det-mc-players { display: flex; justify-content: space-between; align-items: center; }
.ladder-det-mc-player { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 40%; }
.ladder-det-mc-player img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #3f3f46; }
.ladder-det-mc-player.winner img { border-color: var(--gold, #eab308); box-shadow: 0 0 10px var(--gold, #eab308); }
.ladder-det-mc-player span { font-weight: bold; font-size: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}
.ladder-det-mc-vs { font-family: 'Rajdhani', sans-serif; font-weight: bold; font-size: 20px; color: #555; }

.ladder-det-table-wrapper { background: var(--bg-card, #121216); border-radius: 12px; border: 1px solid #27272a; overflow-x: auto; }
.ladder-det-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.ladder-det-table th { background: #18181b; padding: 15px 20px; color: #a1a1aa; font-family: 'Rajdhani', sans-serif; font-size: 16px; text-transform: uppercase; border-bottom: 1px solid #3f3f46; text-align: left; white-space: nowrap;}
.ladder-det-table td { padding: 15px 20px; border-bottom: 1px solid #27272a; vertical-align: middle; }
.ladder-det-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.ladder-det-table tr.is-me { background: rgba(0, 210, 255, 0.05); }

.ladder-det-rank-number { font-size: 20px; font-family: 'Rajdhani', sans-serif; font-weight: bold; color: #888; }
.ladder-det-rank-1 { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); font-size: 24px;} 
.ladder-det-rank-2 { color: #94a3b8; font-size: 22px;} 
.ladder-det-rank-3 { color: #b45309; font-size: 22px;}

.ladder-det-player-info { display: flex; align-items: center; gap: 15px; }
.ladder-det-player-info img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #3f3f46; }
.ladder-det-player-name { font-weight: bold; font-size: 16px; color: #fff; text-decoration: none; }

.ladder-det-lp-text { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: bold; color: var(--neon-blue); }
.ladder-det-winrate-container { width: 100px; height: 6px; background: var(--loss, #ef4444); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.ladder-det-winrate-fill { height: 100%; background: var(--win, #22c55e); }

.ladder-det-btn-challenge { background: transparent; color: var(--neon-blue); border: 1px solid var(--neon-blue); padding: 8px 15px; border-radius: 6px; font-family: 'Rajdhani', sans-serif; font-weight: bold; cursor: pointer; transition: 0.3s; white-space: nowrap;}
.ladder-det-btn-challenge:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);}

.ladder-det-disputed-badge { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--loss, #ef4444); color: var(--loss, #ef4444); padding: 5px 10px; border-radius: 6px; font-weight: bold; font-size: 14px; animation: ladderDetPulse 2s infinite; }
@keyframes ladderDetPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* Modál ablakok felülírásai erre az oldalra */
.ladder-det-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 3000; display: none; align-items: center; justify-content: center; }
.ladder-det-modal-box { background: var(--bg-card, #121216); padding: 30px; border-radius: 12px; border: 1px solid #3f3f46; box-shadow: 0 0 40px rgba(0,0,0,0.6); width: 100%; max-width: 450px; }
.ladder-det-modal-box h3 { font-family: 'Rajdhani', sans-serif; font-size: 24px; margin-bottom: 20px; color: #fff; border-bottom: 1px solid #27272a; padding-bottom: 10px; text-align: center; }
.ladder-det-modal-btn-group { display: flex; gap: 10px; margin-top: 20px;}
.ladder-det-modal-btn { flex: 1; padding: 12px; border: none; border-radius: 6px; font-family: 'Rajdhani', sans-serif; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; }
.ladder-det-btn-confirm { background: var(--neon-blue); color: #000; } .ladder-det-btn-confirm:hover { background: #fff; }
.ladder-det-btn-cancel { background: #27272a; color: #fff; } .ladder-det-btn-cancel:hover { background: #ef4444; }

.ladder-det-match-info-box { max-width: 600px; padding: 0; overflow: hidden;}
.ladder-det-mi-header { background: #18181b; padding: 20px; text-align: center; border-bottom: 1px solid #27272a; }
.ladder-det-mi-date { color: var(--neon-blue); font-weight: bold; font-size: 18px; margin-top: 10px;}
.ladder-det-mi-body { padding: 20px; }
.ladder-det-mi-map { width: 100%; border-radius: 8px; border: 1px solid #27272a; margin: 15px 0; display: block; }
.ladder-det-report-section { background: rgba(255,255,255,0.03); border: 1px dashed #3f3f46; border-radius: 8px; padding: 20px; text-align: center; margin-top: 20px; }
.ladder-det-report-section h4 { color: #fff; margin-bottom: 15px; font-family: 'Rajdhani', sans-serif; font-size: 20px; }
.ladder-det-btn-win { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--win, #22c55e); color: var(--win, #22c55e); display:flex; justify-content:center; align-items:center; gap:8px;} .ladder-det-btn-win:hover { background: var(--win, #22c55e); color: #000; }
.ladder-det-btn-lose { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--loss, #ef4444); color: var(--loss, #ef4444); display:flex; justify-content:center; align-items:center; gap:8px;} .ladder-det-btn-lose:hover { background: var(--loss, #ef4444); color: #fff; }


/* ==========================================================================
   7. EGYÉB KOMPONENSEK (Sidebar, Footer, Modals)
   ========================================================================== */
.sidebar { position: fixed; top: var(--topbar-height); left: calc(-1 * var(--sidebar-width)); width: var(--sidebar-width); height: calc(100% - var(--topbar-height)); background: rgba(13, 13, 16, 0.98); backdrop-filter: blur(10px); border-right: 1px solid rgba(0, 210, 255, 0.2); transition: 0.4s; z-index: 1000; padding-top: 20px; }
.sidebar.active { left: 0; box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); }
.sidebar ul { list-style: none; }
.sidebar ul li a { display: flex; align-items: center; padding: 18px 30px; color: var(--text-main); text-decoration: none; font-family: 'Rajdhani'; font-size: 20px; font-weight: 600; transition: 0.3s; border-left: 4px solid transparent; }
.sidebar ul li a i { margin-right: 15px; width: 25px; color: var(--neon-blue); }
.sidebar ul li a:hover { background: rgba(0, 210, 255, 0.05); color: var(--neon-blue); border-left: 4px solid var(--neon-blue); padding-left: 35px; }

.footer { background: var(--bg-card); padding: 40px 20px; text-align: center; border-top: 1px solid #27272a; margin-top: auto; color: #888; font-size: 14px; width: 100%; }
.footer-logo { width: 40px; margin-bottom: 15px; filter: drop-shadow(0 0 10px var(--neon-glow)); transition: 0.3s; }
.footer-links { margin: 15px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-main); text-decoration: none; transition: 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--neon-blue); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 3000; display: none; align-items: center; justify-content: center; }
.modal-box { background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid #3f3f46; box-shadow: 0 0 40px rgba(0,0,0,0.6); width: 100%; max-width: 450px; margin: 0 15px; }

/* ==========================================================================
   8. RESPONSIVE DESIGN (Média lekérdezések)
   ========================================================================== */
@media (max-width: 992px) { 
    .topbar { display: flex !important; justify-content: space-between !important; padding: 0 20px; width: 100%; } 
    .topbar-center { display: none !important; } 
    .mobile-search-btn { display: block; }
}

@media (max-width: 1150px) { 
    .prof-main-layout { grid-template-columns: 1fr; } 
}

@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { 
    .topbar { padding: 0 15px !important; } 
    .feature-grid { padding: 0 20px 40px; } 
    .m-header { grid-template-columns: 1fr; gap: 10px; text-align: center; justify-items: center; } 
    .m-header > div { justify-content: center; }
}

@media (max-width: 600px) {
    .big-search-box { flex-direction: column; }
    .big-server-select { border-right: none; border-bottom: 1px solid #3f3f46; padding: 15px; }
    .big-search-btn { padding: 15px; }
    .ladder-grid {
        grid-template-columns: 1fr; /* Szigorúan 1 oszlop mobilon */
        gap: 15px; /* Kisebb távolság a kártyák között */
    }
    .ladder-card {
        padding: 20px; /* Picit vékonyabb belső margó */
    }
    .ladder-card-actions {
        flex-direction: column; /* Mobilon egymás alá ugranak a "Joined" és a "Leave" gombok, hogy ne nyomják össze egymást */
    }
}

@media (max-width: 480px) {
    .topbar-brand span, .user-menu-btn span, .auth-links a span { display: none !important; }
    .topbar-left, .topbar-right { gap: 10px !important; }
    .topbar-brand img { height: 28px !important; margin-right: 0 !important; }
    .auth-links a { width: 40px !important; height: 40px !important; padding: 0 !important; justify-content: center !important; border-radius: 50% !important; }
    .mobile-search-btn { margin-right: 0 !important; font-size: 18px !important;}
    .user-menu-wrapper { margin-left: 0 !important; }
    .hero-section { padding: 100px 15px 60px; }
    .hero-section h1 { font-size: 32px; }
    .content-grid { padding: 0 15px; }
    .feature-grid { grid-template-columns: 1fr; padding: 0 15px 40px; gap: 20px; }
    .feature-card { padding: 25px 20px; }
    .lad-stats { flex-direction: column; align-items: flex-start; gap: 5px; }
    .lad-divider { display: none; }
    .ladder-list-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .lad-btn { width: 100%; text-align: center; }
    .notif-dropdown { position: fixed !important; top: 65px !important; right: 10px !important; left: 10px !important; width: auto !important; max-width: none !important; }
    .modal-box { width: 95%; margin: 0 auto; padding: 15px; max-height: 90vh; overflow-y: auto; }
    .mc-players { flex-direction: column; gap: 15px; }
    .mc-vs { transform: rotate(90deg); margin: 10px 0; }
    .chat-container { width: 100% !important; height: 100dvh !important; bottom: 0 !important; right: 0 !important; left: 0 !important; top: 0 !important; border-radius: 0; display: none !important; z-index: 3000; }
    .chat-container.mobile-open { display: flex !important; }
    .chat-header { border-radius: 0; }
    .chat-body { height: calc(100dvh - 50px) !important; }
    #minimizeIcon { display: none !important; }
    
    .mobile-chat-bubble { 
        display: flex !important; 
        position: fixed !important; 
        bottom: 20px !important; 
        right: 20px !important; 
        left: auto !important; 
        width: 65px !important; 
        height: 65px !important; 
        background: var(--neon-blue) !important; 
        border-radius: 50% !important; 
        color: #000 !important; 
        font-size: 28px !important; 
        align-items: center !important; 
        justify-content: center !important; 
        box-shadow: 0 0 20px var(--neon-glow) !important; 
        z-index: 2999 !important; 
        cursor: pointer !important; 
    }
    
    .mobile-chat-bubble .notif-badge { 
        position: absolute !important; 
        top: -5px !important; 
        right: -5px !important; 
        background: var(--loss) !important; 
        color: #fff !important; 
        font-size: 12px !important; 
        width: 22px !important; 
        height: 22px !important; 
        border-radius: 50% !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
    }
}