
/* ══ TOOLTIP (JS-alapú, body-hoz csatolt) ═══════════════════ */
.js-tooltip {
    position: fixed;
    background: #0a1828;
    color: #cde;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #1a3a6c;
    box-shadow: 0 4px 12px rgba(0,0,0,.7);
    pointer-events: none;
    z-index: 99999;
    white-space: nowrap;
    transition: opacity .15s ease;
    opacity: 0;
}
.js-tooltip.visible { opacity: 1 }

/* ========================================
   RACING DUEL - Main Stylesheet
   Dark racing game theme
   ======================================== */
*{box-sizing:border-box;margin:0;padding:0}
body{background:#050b14 url('../images/bg.jpg') center top/cover fixed;font-family:Arial,Helvetica,sans-serif;color:#ccc;min-height:100vh;font-size:14px}
a{color:#4af;text-decoration:none}
a:hover{color:#7cf}
img{max-width:100%}
input,select,textarea{background:#060e1c;border:1px solid #1a3a5c;color:#ccc;padding:8px 12px;border-radius:3px;font-size:13px;outline:none;transition:border .2s}
input:focus,select:focus,textarea:focus{border-color:#4af}
button,.btn{cursor:pointer;font-size:13px}


/* ══ TOPBAR ═══════════════════════════════════════════════════ */
.sticky-header-wrap{position:sticky;top:0;z-index:1000;max-width:960px;margin:0 auto}
.topbar{background:#040b14;border:1px solid #0d1c30;border-top:none;border-radius:0 0 0 0;padding:4px 15px;display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:11px}
.topbar-left{display:flex;gap:12px;align-items:center}
.topbar-right{margin-left:auto;position:relative}

/* ══ GAME HEADER ══════════════════════════════════════════════ */
.game-header-bg{background:linear-gradient(to bottom,#08111e 0%,#050d1a 100%);border-bottom:1px solid #152840}
.game-header-inner{padding:8px 15px;display:flex;align-items:stretch;gap:14px}
.logo-wrap{flex-shrink:0;display:flex;align-items:center;padding-right:14px;border-right:1px solid #162a50;min-width:130px}

/* Stats 3×2 grid panel */
.stats-panel{flex:1;display:grid;grid-template-columns:1fr 1fr 1fr;background:#0a1525;border:1px solid #1a3357;border-radius:4px;overflow:hidden}
.sp-block{display:flex;align-items:center;gap:10px;padding:8px 14px;border-right:1px solid #1a3357;border-bottom:1px solid #1a3357}
.sp-block.sp-row2{border-bottom:none}
.sp-block:nth-child(3),.sp-block:nth-child(6){border-right:none}
.sp-icon{font-size:22px;flex-shrink:0;width:28px;text-align:center}
.sp-stars{flex-shrink:0;display:flex;gap:2px;align-items:center}
.sp-star-on{color:#fc0;font-size:14px}
.sp-star-off{color:#2a3a50;font-size:14px}
.sp-body{flex:1;min-width:0}
.sp-main{font-size:12px;color:#ccd;font-weight:bold;white-space:nowrap}
.sp-val{color:#4af;font-weight:bold}
.sp-big{font-size:15px}
.sp-money{color:#8fd}
.sp-label{color:#4a6880;font-size:10px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-xpbar-wrap{background:#0f2040;height:4px;border-radius:2px;margin-top:4px;overflow:hidden;width:100%}
.sp-xpbar{height:4px;background:linear-gradient(to right,#1a5090,#4af);border-radius:2px;transition:width .5s}

/* ══ MAIN NAV ═════════════════════════════════════════════════ */
.main-nav{background:#07101e;border-bottom:2px solid #152840}
.nav-inner{display:flex;align-items:stretch}
.nav-item{padding:12px 20px;color:#6888a0;font-size:12px;font-weight:bold;letter-spacing:.5px;border-right:1px solid #0f1e32;transition:background .15s,color .15s;text-transform:uppercase;display:flex;align-items:center}
.nav-item:hover{background:#0d1e34;color:#8ab}
.nav-item.active{background:#0a1828;color:#fff;border-bottom:2px solid #4af;margin-bottom:-2px}
.nav-premium{color:#fc0!important}
.nav-premium.active{border-bottom-color:#fc0!important}
.nav-premium:hover{color:#ffd040!important}
.nav-help{padding:12px 16px;color:#3a5070;margin-left:auto;font-size:14px;display:flex;align-items:center}
.nav-help:hover{color:#7aadcf}

/* Legacy aliases so existing page code still works */
.stat-block{background:#0b1525;border:1px solid #1e3a5f;border-radius:3px;padding:6px 14px;min-width:110px;text-align:center;font-size:12px}
.stat-main{font-size:13px;font-weight:bold;color:#dde}
.stat-val{color:#4af;font-weight:bold;font-size:15px}
.stat-label{color:#5a7090;font-size:10px;margin-top:1px}
.stat-stars{margin-bottom:3px}
.star-gold{color:#fc0}
.star-grey{color:#2a3a50}
.stat-bar-wrap{background:#0f2040;height:4px;border-radius:2px;margin-top:3px;overflow:hidden}
.xp-bar-wrap{background:#0f2040;border-radius:2px;height:4px;margin-top:3px;overflow:hidden}
.xp-bar{height:4px;background:linear-gradient(to right,#2060c0,#4af);border-radius:2px;transition:width .5s}
.stat-icon{font-size:18px;margin-bottom:3px}
.money-block{min-width:150px}
.stat-money{color:#8fd}

/* ── TOPBAR ── */
.topbar-left{display:flex;gap:12px;align-items:center}
.topbar-right{margin-left:auto;position:relative}
.tb-link{color:#9cf}
.tb-link.has-msg{color:#fa0;font-weight:bold}
.guest-bar{justify-content:flex-start;gap:10px}

/* User dropdown */
.user-menu-wrap{position:relative}
.user-btn{background:#0a1a30;border:1px solid #1a3a6c;padding:5px 12px;border-radius:4px;cursor:pointer;color:#9cf;font-size:12px}
.user-btn:hover{background:#0f2040}
.user-dropdown{display:none;position:absolute;right:0;top:100%;background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;min-width:160px;z-index:2000;box-shadow:0 4px 20px rgba(0,0,0,.8)}
.user-menu-wrap:hover .user-dropdown{display:block}
.user-dropdown a{display:flex;align-items:center;gap:8px;padding:9px 14px;color:#9cf;font-size:12px;border-bottom:1px solid #0f2040}
.user-dropdown a:hover{background:#0a1a30;color:#fff}
.user-dropdown a.logout{color:#f77;border-bottom:none}

/* ── GAME HEADER ── */
.logo{height:65px}

/* ── MAIN NAV ── */
.nav-item:hover{background:#0d1e34;color:#6ab}
.nav-item.active{background:#0a1828;color:#4af;border-bottom:2px solid #4af;margin-bottom:-2px}
.nav-premium:hover{color:#ffd040!important}
.nav-premium.active{border-bottom-color:#fc0!important}

/* ── PAGE LAYOUT ── */
.page-wrap{background: #050b14;padding:20px 10px 60px;min-height:calc(100vh - 200px);max-width:960px;margin:0 auto}
.content-inner{width:100%}

/* Guest page (no sidebar) */
.guest-wrap{display:flex;justify-content:center;align-items:flex-start;min-height:calc(100vh - 40px);padding:20px}

/* ── PAGE BANNER ── */
.page-banner{background:linear-gradient(to right,#0a1428,#1a2a4c,#0a1428);border:1px solid #1a3a6c;border-radius:4px;padding:0;overflow:hidden;margin-bottom:15px;position:relative;height:80px;display:flex;align-items:center}
.page-banner h2{font-size:1.6em;font-weight:bold;color:#fff;letter-spacing:3px;text-transform:uppercase;text-shadow:2px 2px 10px rgba(0,0,0,.8);padding:0 25px;z-index:1;position:relative}
.page-banner .banner-img{position:absolute;right:0;top:0;height:100%;object-fit:cover;opacity:.6;width:200px}

/* ── TAB NAV ── */
.tab-nav{display:flex;border-bottom:1px solid #1a3a6c;margin-bottom:15px;background:#060e1c}
.tab-item{padding:10px 18px;color:#567;font-size:12px;font-weight:bold;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;text-transform:uppercase}
.tab-item:hover{color:#9cf}
.tab-item.active{color:#4af;border-bottom-color:#4af;background:#0a1428}
.tab-item a{color:inherit}

/* ── CARDS & PANELS ── */
.panel{background:rgba(6,14,28,.92);border:1px solid #1a3a6c;border-radius:4px;margin-bottom:12px;overflow:hidden}
.panel-header{background:linear-gradient(to right,#0a1a30,#060e1c);padding:10px 15px;border-bottom:1px solid #1a3a6c;display:flex;align-items:center;justify-content:space-between}
.panel-header h3{color:#9cf;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.panel-body{padding:15px}

/* ── PROFILE PAGE ── */
.profile-grid{display:grid;grid-template-columns:200px 1fr;gap:15px}
.profile-avatar{text-align:center}
.profile-avatar img{width:140px;height:140px;border-radius:4px;border:2px solid #1a3a6c;object-fit:cover}
.avatar-placeholder{width:140px;height:140px;border-radius:4px;border:2px solid #1a3a6c;background:#0a1428;display:flex;align-items:center;justify-content:center;font-size:50px;margin:0 auto}
.profile-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.pstat{background:#060e1c;border:1px solid #1a3a6c;border-radius:3px;padding:8px 12px;font-size:12px}
.pstat-label{color:#567}
.pstat-val{color:#4af;font-weight:bold}
.badge-row{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.badge{width:40px;height:40px;border-radius:4px;background:#0a1428;border:1px solid #1a3a6c;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;position:relative}
.car-showcase{background:#0a0a18;border:1px solid #1a3a6c;border-radius:4px;margin-top:10px;overflow:hidden}
.car-showcase .car-name{color:#4af;font-weight:bold;font-size:13px;text-align:center;padding:7px 12px;background:#060e1c;border-bottom:1px solid #1a3a6c}
.car-stat-icons{display:flex;justify-content:center;gap:15px;margin-top:10px}
.car-stat-icons span{color:#4af;font-size:12px}

/* ── TASKS ── */
.task-item{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;margin-bottom:8px;overflow:hidden}
.task-header{padding:10px 15px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background:#080f1e}
.task-header h4{color:#9cf;font-size:13px}
.task-header .task-pct{color:#4af;font-size:12px}
.task-body{padding:12px 15px;border-top:1px solid #0f2040;display:flex;gap:15px;align-items:center}
.task-img{width:80px;height:60px;border-radius:3px;object-fit:cover;flex-shrink:0;background:#0a1428}
.task-info{flex:1}
.task-need{font-size:12px;color:#567;margin-bottom:4px}
.task-need span{color:#ccc}
.task-reward{font-size:12px;color:#567;margin-bottom:8px}
.task-reward span{color:#8f4}
.task-btn-group{display:flex;gap:6px}
.task-locked{background:#0a1428;border:1px solid #1a3a6c;border-radius:4px;padding:10px 15px;text-align:center;color:#456;font-size:12px;margin-bottom:8px}
.task-locked i{margin-right:6px}
.progress-bar-wrap{background:#0a1428;height:5px;border-radius:3px;overflow:hidden;margin-top:4px}
.progress-bar{height:5px;background:linear-gradient(to right,#2060c0,#4af);border-radius:3px;transition:width .5s}
.progress-bar.complete{background:linear-gradient(to right,#080,#4f8)}

/* ── SHOP ITEMS (Cars, Equipment, etc.) ── */
.shop-item{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;margin-bottom:8px;display:grid;grid-template-columns:90px 1fr auto;gap:0;overflow:hidden}
.shop-item.locked{opacity:.6;border-color:#111}
.shop-img{background:#0a0a18;display:flex;align-items:center;justify-content:center;padding:10px;min-height:70px}
.shop-img img{max-height:55px;max-width:75px;object-fit:contain}
.shop-info{padding:10px 15px;border-left:1px solid #0f2040}
.shop-name{color:#4af;font-weight:bold;font-size:13px;margin-bottom:4px}
.shop-name a{color:#4af}
.shop-price{font-size:12px;color:#fc0;margin-bottom:4px}
.shop-bonuses{display:flex;gap:10px;font-size:11px;color:#789}
.shop-bonuses span{display:flex;align-items:center;gap:3px}
.shop-bonuses .pos{color:#4af}
.shop-actions{padding:10px;border-left:1px solid #0f2040;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:110px;font-size:12px}
.shop-count{color:#567;font-size:11px;margin-bottom:3px}
.shop-lock-icon{font-size:24px;color:#334;margin-bottom:4px}
.qty-ctrl{display:flex;align-items:center;gap:4px}
.qty-ctrl input{width:45px;text-align:center;padding:4px}
.qty-btn{background:#0a1a30;border:1px solid #1a3a6c;color:#4af;width:22px;height:22px;border-radius:3px;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center}
.qty-btn:hover{background:#1a3a6c}

/* ── BUTTONS ── */
.btn-blue{background:linear-gradient(to bottom,#1060c0,#0848a0);color:#fff;border:1px solid #2070d0;padding:6px 14px;border-radius:3px;font-size:12px;font-weight:bold;cursor:pointer;transition:all .2s}
.btn-blue:hover{background:linear-gradient(to bottom,#2070d0,#1858b0)}
.btn-red{background:linear-gradient(to bottom,#c02020,#a01010);color:#fff;border:1px solid #d03030;padding:6px 14px;border-radius:3px;font-size:12px;font-weight:bold;cursor:pointer;transition:all .2s}
.btn-red:hover{background:linear-gradient(to bottom,#d03030,#b02020)}
.btn-green{background:linear-gradient(to bottom,#208020,#106010);color:#fff;border:1px solid #309030;padding:6px 14px;border-radius:3px;font-size:12px;font-weight:bold;cursor:pointer;transition:all .2s}
.btn-green:hover{background:linear-gradient(to bottom,#309030,#208020)}
.btn-gold{background:linear-gradient(to bottom,#c08000,#a06000);color:#fff;border:1px solid #d09010;padding:6px 14px;border-radius:3px;font-size:12px;font-weight:bold;cursor:pointer;transition:all .2s}
.btn-gold:hover{background:linear-gradient(to bottom,#d09010,#b07010)}
.btn-sm{padding:4px 10px;font-size:11px}
.btn-block{display:block;width:100%;text-align:center;padding:10px}

/* ── DUELS ── */
.duel-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ranking-table{width:100%;border-collapse:collapse;font-size:12px}
.ranking-table th{background:#0a1428;color:#567;font-weight:bold;padding:8px 12px;border-bottom:1px solid #1a3a6c;text-align:left;font-size:11px;text-transform:uppercase}
.ranking-table td{padding:8px 12px;border-bottom:1px solid #0f2040;color:#ccc}
.ranking-table tr:hover td{background:#080f1e}
.ranking-table tr.highlight td{background:#0a2040;color:#4af}
.rank-num{color:#567;font-size:12px;font-weight:bold}
.player-name{color:#9cf;font-weight:bold}
.player-name a{color:#9cf}
.duel-start-btn{background:linear-gradient(to bottom,#1060c0,#0848a0);color:#fff;border:1px solid #2070d0;padding:5px 12px;border-radius:3px;font-size:11px;font-weight:bold;cursor:pointer;white-space:nowrap}
.duel-start-btn:hover{background:linear-gradient(to bottom,#2070d0,#1858b0)}
.bot-badge{background:#2a1010;color:#f66;border:1px solid #600;border-radius:2px;font-size:10px;padding:1px 4px;margin-left:3px}

/* ── TEAMS ── */
.team-info-box{display:grid;grid-template-columns:160px 1fr;gap:15px}
.team-logo{width:150px;height:150px;border:2px solid #1a3a6c;background:#0a0a18;display:flex;align-items:center;justify-content:center;font-size:60px;border-radius:4px}
.team-logo img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.team-info-list{font-size:12px;line-height:2}
.team-info-list strong{color:#9cf}
.team-manager-tools{background:#0a1428;border:1px solid #fc0;border-radius:4px;padding:12px 15px;margin-top:10px}
.team-manager-tools h4{color:#fc0;font-size:12px;font-weight:bold;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.manager-links{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12px}
.manager-links a{color:#4af;display:flex;align-items:center;gap:6px}
.member-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:8px}
.member-table th{background:#0a1428;color:#567;padding:7px 12px;border-bottom:1px solid #1a3a6c;text-align:left;font-size:11px;text-transform:uppercase}
.member-table td{padding:7px 12px;border-bottom:1px solid #0f2040}
.team-icon-nav{display:flex;gap:4px;margin-bottom:12px}
.team-icon-btn{background:#0a1428;border:1px solid #1a3a6c;border-radius:4px;width:50px;height:45px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;color:#567;transition:all .2s}
.team-icon-btn:hover,.team-icon-btn.active{background:#0f2040;border-color:#4af;color:#4af}

/* ── LEAGUE / RACE TABLE ── */
.league-table{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;overflow:hidden}
.league-table .lt-header{background:#0a1428;padding:10px 15px;border-bottom:1px solid #1a3a6c;font-size:12px;font-weight:bold;color:#9cf;text-align:center}

/* ── BANK ── */
.bank-box{background:#0a1428;border:1px solid #1a3a6c;border-radius:4px;padding:20px;text-align:center}
.bank-balance{font-size:2em;color:#8f4;font-weight:bold;margin-bottom:15px}
.bank-ops{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:15px}
.bank-op{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:15px;text-align:center}
.bank-op h4{color:#9cf;font-size:13px;margin-bottom:10px;display:flex;align-items:center;gap:8px;justify-content:center}
.bank-op .bank-op-info{color:#567;font-size:11px;margin-bottom:10px}
.bank-op input{width:100%;margin-bottom:10px}

/* ── MESSAGES ── */
.msg-table{width:100%;border-collapse:collapse;font-size:12px}
.msg-table th{background:#0a1428;color:#567;padding:8px 12px;border-bottom:1px solid #1a3a6c;text-align:left;font-size:11px;text-transform:uppercase}
.msg-table td{padding:8px 12px;border-bottom:1px solid #0f2040}
.msg-table tr:hover td{background:#080f1e}
.msg-unread td{color:#fff}
.msg-unread .msg-subject{color:#4af;font-weight:bold}
.msg-read .msg-subject{color:#789}
.msg-from{color:#567}
.msg-time{color:#345;font-size:11px}
.msg-form{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:20px}
.msg-form-row{display:grid;grid-template-columns:100px 1fr;gap:10px;align-items:center;margin-bottom:12px}
.msg-form-row label{color:#567;font-size:12px;font-weight:bold}
.msg-form-row input,.msg-form-row textarea{width:100%}
.msg-form textarea{height:200px;resize:vertical}

/* ── PREMIUM ── */
.premium-card{background:#0a1428;border:1px solid #1a3a6c;border-radius:4px;padding:20px;margin-bottom:12px}
.premium-card h3{color:#fc0;font-size:14px;margin-bottom:10px;text-align:center;text-transform:uppercase;letter-spacing:1px}
.premium-card .premium-price{color:#4af;font-weight:bold;font-size:13px;margin-top:10px}
.premium-features{list-style:none;font-size:12px;margin:10px 0}
.premium-features li{padding:4px 0;color:#9cf;display:flex;align-items:center;gap:6px}
.premium-features li:before{content:"•";color:#4af}
.credits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}
.credit-pkg{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:15px;text-align:center;position:relative;cursor:pointer;transition:border-color .2s}
.credit-pkg:hover{border-color:#4af}
.credit-pkg.featured{border-color:#fc0;background:#0a1010}
.credit-pkg .pkg-badge{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:#fc0;color:#000;font-size:10px;font-weight:bold;padding:2px 8px;border-radius:10px;white-space:nowrap}
.credit-pkg .pkg-badge.best{background:#080;color:#fff}
.credit-pkg .pkg-amount{font-size:2em;font-weight:bold;color:#4af}
.credit-pkg .pkg-price{color:#ccc;font-size:13px;margin-top:5px}
.credit-pkg .pkg-extra{color:#4af;font-size:11px}

/* ── ALERTS ── */
.alert{padding:12px 15px;border-radius:4px;margin-bottom:12px;font-size:13px;display:flex;align-items:center;gap:10px}
.alert i{font-size:16px}
.alert-success{background:#0a2a1a;border:1px solid #1a5a3c;color:#4f8}
.alert-error{background:#2a0a0a;border:1px solid #5a1a1a;color:#f88}
.alert-warning{background:#2a1a0a;border:1px solid #5a3a1a;color:#fa8}
.alert-info{background:#0a1a2a;border:1px solid #1a3a5c;color:#4af}
.alert-orange{background:#1a0a00;border:1px solid #c04000;color:#f84;padding:14px 18px}

/* ── FORM STYLES ── */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-field{margin-bottom:14px}
.form-field label{display:block;color:#7af;font-size:12px;margin-bottom:5px;font-weight:bold}
.form-field input,.form-field select,.form-field textarea{width:100%}
.form-field .hint{color:#456;font-size:11px;margin-top:3px}
.form-sep{border:none;border-top:1px solid #1a3a6c;margin:15px 0}

/* ── GUEST / LOGIN PAGE ── */
.guest-bg{position:fixed;top:0;left:0;width:100%;height:100%;background:#050b14 url('../images/bg.jpg') center/cover;z-index:-1}
.guest-cars{position:fixed;bottom:0;left:0;width:100%;height:60%;pointer-events:none;z-index:0}
.login-wrap{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;min-height:100vh;padding-top:20px}
.site-logo{margin-bottom:20px;text-align:center}
.site-logo img{max-height:120px}
.login-box{background:rgba(6,14,28,.95);border:1px solid #1a3a6c;border-radius:4px;width:480px;overflow:hidden;box-shadow:0 4px 40px rgba(0,0,50,.8);box-sizing:border-box}
.login-hero{background:linear-gradient(to right,#0a1428,#1a2a4c);padding:20px 20px 0;display:flex;gap:15px;align-items:flex-end;position:relative;border-bottom:2px solid #800020}
.login-hero-text{padding-bottom:20px}
.login-hero-text h2{color:#4af;font-size:1.2em;text-transform:uppercase;letter-spacing:2px}
.login-hero-text h3{color:#fc0;font-size:.95em;font-weight:normal;margin-top:4px}
.login-hero-text .tagline{color:#9cf;font-size:.85em;margin-top:8px;font-style:italic}
.login-hero-img{height:130px;object-fit:cover;object-position:top}
.login-flag{position:absolute;top:10px;right:10px;width:40px;height:26px}
.login-tabs{display:flex;background:#060e1c;border-bottom:1px solid #1a3a6c}
.login-tab{flex:1;padding:10px;text-align:center;color:#567;font-size:12px;font-weight:bold;cursor:pointer;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid transparent;transition:all .2s}
.login-tab.active-blue{color:#4af;border-bottom-color:#4af;background:#0a1428}
.login-tab.active-red{color:#fff;border-bottom-color:#c00;background:#200}
.login-form{padding:20px;width:100%;box-sizing:border-box}
.login-form-row{display:grid;grid-template-columns:1fr 1fr 120px;gap:8px;align-items:center;margin-bottom:10px}
.login-form-row input{background:#0a1428;border:1px solid #1a3a6c;padding:9px 12px}
.login-btn{background:linear-gradient(to bottom,#1060c0,#0848a0);color:#fff;border:none;padding:9px 20px;border-radius:3px;font-size:13px;font-weight:bold;cursor:pointer;white-space:nowrap}
.login-btn.reg{background:linear-gradient(to bottom,#a02020,#800010)}
.forgot-link{text-align:right;margin-top:-5px;margin-bottom:8px;font-size:11px}
.fb-btn{background:#3b5998;color:#fff;border:none;padding:9px 15px;border-radius:3px;font-size:12px;cursor:pointer;display:flex;align-items:center;gap:8px;justify-content:center;width:100%}
.fb-btn:hover{background:#4a6abb}
.about-box{background:rgba(6,14,28,.85);border:1px solid #1a3a6c;border-radius:4px;padding:20px;margin-top:20px;width:480px}
.about-box h4{color:#4af;font-weight:bold;margin-bottom:8px}
.about-box p{color:#789;font-size:12px;line-height:1.6}
.about-screens{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}
.about-screens img{border:1px solid #1a3a6c;border-radius:2px}
.about-screen-placeholder{background:#0a1428;border:1px solid #1a3a6c;border-radius:2px;height:60px;display:flex;align-items:center;justify-content:center;color:#234;font-size:20px}

/* ── PROPERTIES (TULAJDONSÁGOK) ── */
.props-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.prop-box{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:15px}
.prop-box h3{color:#9cf;font-size:12px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;border-bottom:1px solid #0f2040;padding-bottom:8px;display:flex;align-items:center;justify-content:space-between}
.prop-box h3 .bonus{color:#4af;font-size:11px}
.prop-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #080f1e}
.prop-row:last-child{border-bottom:none}
.prop-label{display:flex;align-items:center;gap:8px;color:#9cf;font-size:13px}
.prop-label i{width:20px;text-align:center;font-size:15px}
.prop-val{font-size:1.3em;font-weight:bold;color:#4af}
.prop-actions{display:flex;align-items:center;gap:6px}
.prop-cost{color:#567;font-size:11px;text-align:right}

/* ── SEARCH ── */
.search-box{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:20px}
.search-bar{display:flex;gap:8px;margin-bottom:15px}
.search-bar input{flex:1;background:#0a1428;border:1px solid #1a3a6c;color:#ccc;padding:10px 14px;border-radius:3px;font-size:14px}
.search-result{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #0f2040}
.search-result:hover{background:#080f1e}
.search-result .sr-name{color:#9cf;font-weight:bold}
.search-result .sr-info{color:#567;font-size:11px}

/* ── SETTINGS ── */
.settings-box{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:20px;margin-bottom:15px}
.settings-box h3{color:#4af;font-size:13px;margin-bottom:15px;padding-bottom:8px;border-bottom:1px solid #1a3a6c}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.settings-section h4{color:#9cf;font-size:12px;margin-bottom:12px}
.setting-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px}
.setting-row label{color:#789}
.setting-row input{width:200px}

/* ── SPONSORS ── */
.sponsor-item{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;margin-bottom:8px;display:grid;grid-template-columns:90px 1fr auto;overflow:hidden}
.sponsor-img{background:#0a0a18;display:flex;align-items:center;justify-content:center;padding:10px;min-height:70px}
.sponsor-img img{max-height:55px;object-fit:contain}
.sponsor-info{padding:10px 15px;border-left:1px solid #0f2040}
.sponsor-name{color:#4af;font-weight:bold;font-size:13px;margin-bottom:4px}
.sponsor-income{color:#8f4;font-size:12px}
.sponsor-price{color:#789;font-size:11px}
.sponsor-actions{padding:10px;border-left:1px solid #0f2040;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:110px;font-size:12px}
.sponsor-count{color:#567;font-size:11px}

/* ── CHALLENGES ── */
.challenge-item{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;margin-bottom:8px;overflow:hidden;position:relative}
.challenge-header{background:linear-gradient(to right,#1a2040,#060e1c);padding:8px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #0f2040}
.challenge-header h4{color:#4af;font-size:12px}
.challenge-body{padding:12px 15px;display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center}
.challenge-npc{text-align:center}
.challenge-npc img{width:75px;height:75px;border-radius:3px;object-fit:cover;border:1px solid #1a3a6c}
.challenge-npc-name{color:#9cf;font-size:11px;margin-top:4px}
.challenge-rewards{display:flex;gap:10px}
.challenge-reward-box{background:#0a1428;border:1px solid #1a3a6c;border-radius:4px;padding:8px 12px;text-align:center;min-width:80px}
.challenge-reward-box .r-val{font-size:1.1em;font-weight:bold;color:#8f4}
.challenge-reward-box .r-label{color:#567;font-size:10px}
.completed-stamp{position:absolute;right:15px;bottom:15px;background:rgba(200,0,0,.8);color:#fff;font-size:1.4em;font-weight:bold;border:3px solid #f00;border-radius:4px;padding:4px 10px;transform:rotate(-10deg);letter-spacing:2px}
.pending-lock{background:#0a1428;border:1px solid #334;border-radius:4px;padding:8px 12px;text-align:center;color:#456;font-size:12px}
.pending-lock i{margin-right:6px}

/* ── HALL OF FAME ── */
.hof-banner{width:100%;border-radius:4px;overflow:hidden;margin-bottom:15px;position:relative;height:120px;background:linear-gradient(to right,#1a1000,#2a1800,#1a1000);display:flex;align-items:center;justify-content:center}
.hof-banner h2{color:#fc0;font-size:2em;text-shadow:0 0 20px rgba(255,200,0,.5);font-style:italic}
.hof-table{width:100%;border-collapse:collapse;font-size:12px}
.hof-table th{background:#0a0800;color:#888;padding:8px 12px;border-bottom:1px solid #2a1800;text-align:left;font-size:11px;text-transform:uppercase}
.hof-table td{padding:8px 12px;border-bottom:1px solid #1a0f00;color:#ccc}
.hof-table tr:nth-child(odd) td{background:#06050000}
.hof-1 td{color:#fc0;font-weight:bold}

/* ── RACE COMPLEX MAP ── */
.race-complex{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:15px;margin-bottom:15px}
.race-complex h3{color:#9cf;font-size:13px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.complex-map{position:relative;width:100%;height:200px;background:#0a0a18;border:1px solid #1a3a6c;border-radius:4px;margin-bottom:10px;overflow:hidden}
.complex-legend{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;margin-bottom:10px}
.legend-item{display:flex;align-items:center;gap:4px;color:#678}
.legend-dot{width:8px;height:8px;border-radius:50%}

/* ── ITEM IMAGES ── */
.shop-img img, .task-img img, .sponsor-img img {
    max-height:55px;max-width:80px;object-fit:contain;display:block;margin:auto
}
.shop-img .img-fallback, .task-img .img-fallback, .sponsor-img .img-fallback {
    font-size:2.2em;display:flex;align-items:center;justify-content:center;width:100%;height:100%
}
.shop-img { background:#0a0a18;display:flex;align-items:center;justify-content:center;padding:8px;min-height:70px;min-width:90px }
.task-img  { width:80px;height:60px;border-radius:3px;object-fit:cover;flex-shrink:0;background:#0a1428;display:flex;align-items:center;justify-content:center;overflow:hidden }
.sponsor-img { background:#0a0a18;display:flex;align-items:center;justify-content:center;padding:10px;min-height:70px }
.sponsor-img img { max-height:50px;max-width:70px }

/* ── UTILITY ── */
.text-center{text-align:center}
.text-right{text-align:right}
.color-blue{color:#4af}
.color-green{color:#4f8}
.color-red{color:#f44}
.color-gold{color:#fc0}
.color-grey{color:#567}
.mt-10{margin-top:10px}
.mt-15{margin-top:15px}
.mb-10{margin-bottom:10px}
.mb-15{margin-bottom:15px}
.flex{display:flex}
.flex-center{display:flex;align-items:center;justify-content:center}
.gap-10{gap:10px}
.bold{font-weight:bold}
.small{font-size:11px}

/* ── FOOTER ── */
.site-footer{background:#030810;border-top:1px solid #0f2040;padding:15px;text-align:center;max-width:960px;margin:0 auto}
.footer-links{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin-bottom:8px}
.footer-links a{color:#456;font-size:12px}
.footer-links a:hover{color:#789}
.footer-version{color:#234;font-size:11px}

/* ── ADMIN ── */
.admin-wrap{display:flex;min-height:100vh}
.admin-sidebar{width:220px;background:#030810;border-right:1px solid #0f2040;flex-shrink:0;padding:15px 0}
.admin-logo{padding:15px 20px;border-bottom:1px solid #0f2040;margin-bottom:10px;font-size:14px;font-weight:bold;color:#4af}
.admin-nav a{display:flex;align-items:center;gap:10px;padding:10px 20px;color:#567;font-size:13px;transition:all .2s}
.admin-nav a:hover,.admin-nav a.active{background:#060e1c;color:#9cf;border-left:3px solid #4af;padding-left:17px}
.admin-nav .nav-section{padding:8px 20px;color:#345;font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-top:10px}
.admin-content{flex:1;padding:20px}
.admin-title{font-size:1.5em;color:#9cf;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #1a3a6c}
.admin-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}
.admin-card{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:20px;text-align:center}
.admin-card .card-num{font-size:2em;font-weight:bold;color:#4af}
.admin-card .card-label{color:#567;font-size:12px;margin-top:5px}
.admin-card .card-icon{font-size:2em;margin-bottom:10px}
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.admin-table th{background:#060e1c;color:#4af;padding:10px 12px;border-bottom:1px solid #1a3a6c;text-align:left;font-size:11px;text-transform:uppercase;font-weight:bold}
.admin-table td{padding:10px 12px;border-bottom:1px solid #0f2040;color:#ccc}
.admin-table tr:hover td{background:#060e1c}
.admin-btn{background:#1a3a6c;color:#9cf;border:none;padding:5px 10px;border-radius:3px;font-size:11px;cursor:pointer}
.admin-btn:hover{background:#2a5a9c}
.admin-btn.danger{background:#3a0a0a;color:#f88}
.admin-btn.danger:hover{background:#5a1a1a}
.admin-form{background:#060e1c;border:1px solid #1a3a6c;border-radius:4px;padding:20px}
.admin-form label{display:block;color:#567;font-size:12px;margin-bottom:4px}
.admin-form input,.admin-form select,.admin-form textarea{width:100%;margin-bottom:12px;background:#0a1428}
.admin-form textarea{height:120px;resize:vertical}
.admin-filter-bar{display:flex;gap:10px;align-items:center;margin-bottom:15px;background:#060e1c;border:1px solid #1a3a6c;padding:10px;border-radius:4px}
.admin-filter-bar input,.admin-filter-bar select{background:#0a1428}
.paginator{display:flex;gap:4px;justify-content:center;margin-top:15px}
.paginator a,.paginator span{background:#0a1428;border:1px solid #1a3a6c;color:#9cf;padding:5px 10px;border-radius:3px;font-size:12px}
.paginator .current{background:#1a3a6c;color:#fff}
.badge-admin{background:#1a3a6c;color:#4af;border-radius:3px;padding:2px 6px;font-size:10px}
.badge-prem{background:#2a1a00;color:#fc0;border-radius:3px;padding:2px 6px;font-size:10px}

/* ═══════════════════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════════════════ */
.chat-widget {
    position: fixed;
    right: 0;
    top: 0; /* JS állítja be */
    width: 460px;
    height: calc(100vh - 168px);
    background: rgba(5, 10, 20, 0.97);
    border-left: 1px solid #1a3060;
    border-top: 1px solid #1a3060;
    display: flex;
    flex-direction: column;
    z-index: 500;
    transition: transform .25s ease;
    box-shadow: -3px 0 20px rgba(0,0,0,.6);
}
.chat-widget.collapsed {
    transform: translateY(calc(100% - 34px));
}
/* body/foot maradnak renderelve, csak a transform tolja le őket */

/* Head */
.chat-head {
    display: flex;
    align-items: center;
    background: #0a1428;
    border-top: 1px solid #1a3060;
    border-bottom: 1px solid #1a3060;
    flex-shrink: 0;
    height: 34px;
}
.chat-tabs { display: flex; flex: 1; height: 100% }
.chat-tab {
    flex: 1;
    text-align: center;
    line-height: 34px;
    font-size: 12px;
    font-weight: bold;
    color: #567;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    user-select: none;
}
.chat-tab:hover { color: #9cf }
.chat-tab.active { color: #4af; border-bottom-color: #4af; background: #060e1c }
.chat-toggle {
    background: none;
    border: none;
    color: #456;
    font-size: 11px;
    cursor: pointer;
    padding: 0 8px;
    height: 100%;
    transition: color .15s;
    flex-shrink: 0;
}
.chat-toggle:hover { color: #9cf }

/* Body – messages */
.chat-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.chat-msgs {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 4px }
.chat-msgs::-webkit-scrollbar-track { background: transparent }
.chat-msgs::-webkit-scrollbar-thumb { background: #1a3060; border-radius: 2px }

/* Date separator */
.chat-date-sep {
    text-align: center;
    color: #345;
    font-size: 10px;
    padding: 4px 0;
    border-top: 1px solid #0f1e35;
    border-bottom: 1px solid #0f1e35;
    margin: 4px 0;
    background: #060c18;
}

/* Message row */
.chat-msg {
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 6px;
    border-radius: 2px;
    word-break: break-word;
    transition: background .1s;
}
.chat-msg:hover { background: rgba(255,255,255,.03) }
.chat-time { color: #345; font-size: 10px; margin-right: 2px }
.chat-user { font-weight: bold; margin-right: 3px; cursor: pointer }
.chat-user:hover { text-decoration: underline }
.chat-user.u-normal  { color: #5af }
.chat-user.u-premium { color: #fc0 }
.chat-user.u-admin   { color: #f44 }
.chat-text { color: #aaa }

/* No messages / info */
.chat-empty {
    text-align: center;
    color: #345;
    font-size: 12px;
    padding: 20px 10px;
}
.chat-no-team {
    text-align: center;
    color: #567;
    font-size: 11px;
    padding: 15px 10px;
    line-height: 1.6;
}

/* Footer – input */
.chat-foot {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #1a3060;
    background: #060e1c;
    flex-shrink: 0;
}
.chat-bbcode-bar {
    display: flex;
    gap: 2px;
    padding: 4px 6px;
    border-bottom: 1px solid #1a3060;
    background: #070f1e;
}
.chat-bbcode-bar button {
    background: none;
    border: 1px solid #1a3060;
    color: #789;
    font-size: 11px;
    padding: 2px 7px;
    cursor: pointer;
    border-radius: 3px;
    min-width: 26px;
    transition: color .15s, background .15s;
}
.chat-bbcode-bar button:hover { background: #0a1428; color: #9cf; border-color: #4af; }
.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 12px;
    padding: 7px 8px;
    outline: none;
    min-width: 0;
}
.chat-input::placeholder { color: #345 }
.chat-send {
    background: none;
    border: none;
    border-left: 1px solid #1a3060;
    color: #4af;
    font-size: 16px;
    padding: 0 10px;
    cursor: pointer;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.chat-send:hover { background: #0a1428; color: #7cf }



@media(max-width: 900px) {
    .chat-widget { display: none }
    
    
}

/* ═══════════════════════════════════════════════════════
   FÓRUM
   ═══════════════════════════════════════════════════════ */

/* Kategória lista */
.forum-cat-row {
    display: grid;
    grid-template-columns: 50px 1fr 220px;
    gap: 0;
    background: rgba(6,14,28,.92);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background .15s;
    overflow: hidden;
}
.forum-cat-row:hover { background: #080f1e }
.forum-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    background: #060e1c;
    border-right: 1px solid #1a3a6c;
    padding: 15px 0;
}
.forum-cat-info { padding: 12px 15px; border-right: 1px solid #1a3a6c }
.forum-cat-name { font-size: 14px; font-weight: bold; margin-bottom: 4px }
.forum-cat-name a { color: #9cf }
.forum-cat-name a:hover { color: #fff }
.forum-cat-desc { color: #567; font-size: 12px; margin-bottom: 5px }
.forum-cat-stats { display: flex; gap: 15px; font-size: 11px; color: #456 }
.forum-cat-stats span { display: flex; align-items: center; gap: 4px }
.forum-cat-last { padding: 12px 15px; display: flex; flex-direction: column; justify-content: center }
.forum-last-title a { color: #7af; font-size: 12px }
.forum-last-meta { color: #456; font-size: 11px; margin-top: 3px }

/* Téma lista */
.forum-topic-row {
    display: grid;
    grid-template-columns: 36px 1fr 70px 70px 180px;
    gap: 0;
    background: rgba(6,14,28,.92);
    border: 1px solid #1a3a6c;
    border-top: none;
    align-items: center;
    transition: background .15s;
}
.forum-topic-row:hover { background: #080f1e }
.forum-topic-row.pinned { background: rgba(10,20,50,.95); border-color: #2a4a8c }
.ftopic-icon { display:flex;align-items:center;justify-content:center;padding:12px 0;border-right:1px solid #1a3a6c;font-size:15px }
.ftopic-info { padding: 10px 14px; border-right: 1px solid #1a3a6c }
.ftopic-title { font-size: 13px; margin-bottom: 3px }
.ftopic-title a { color: #9cf; font-weight: bold }
.ftopic-title a:hover { color: #fff }
.ftopic-meta { font-size: 11px; color: #456; display: flex; gap: 10px }
.ftopic-count { text-align: center; padding: 10px 5px; color: #567; font-size: 13px; border-right: 1px solid #1a3a6c }
.ftopic-last { padding: 8px 12px; font-size: 12px }
.ftag { display: inline-block; font-size: 10px; font-weight: bold; padding: 1px 5px; border-radius: 3px; margin-left: 5px; text-transform: uppercase }
.ftag.pin  { background: #2a1a00; color: #fc0; border: 1px solid #6a3a00 }
.ftag.lock { background: #1a1a2a; color: #789; border: 1px solid #3a3a5a }
.ftag.new  { background: #002a1a; color: #4f8; border: 1px solid #006a3a }

/* Hozzászólás */
.forum-post {
    display: grid;
    grid-template-columns: 140px 1fr;
    background: rgba(6,14,28,.92);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}
.fpost-user {
    background: #060e1c;
    border-right: 1px solid #1a3a6c;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.fpost-avatar {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 2px solid #1a3a6c;
    object-fit: cover;
    margin-bottom: 4px;
}
.fpost-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    background: #0a1428;
}
.fpost-username { font-size: 13px; font-weight: bold; text-align: center; word-break: break-all }
.fpost-badge { font-size: 10px; font-weight: bold; padding: 1px 6px; border-radius: 3px }
.fpost-badge.admin { background: #3a0000; color: #f44; border: 1px solid #800 }
.fpost-badge.prem  { background: #2a1a00; color: #fc0; border: 1px solid #6a3a00 }
.fpost-meta-item { font-size: 11px; color: #456; display: flex; align-items: center; gap: 4px }
.fpost-content { padding: 12px 16px; display: flex; flex-direction: column }
.fpost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #0f2040;
    margin-bottom: 10px;
}
.fpost-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap }
.fpost-btn {
    background: #0a1428;
    border: 1px solid #1a3a6c;
    color: #4af;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fpost-btn:hover { background: #0f2040; color: #7cf }
.fpost-btn.danger { color: #f66; border-color: #3a1a1a }
.fpost-btn.danger:hover { background: #2a0a0a }
.fpost-like-btn {
    background: #0a1428;
    border: 1px solid #1a3a6c;
    color: #567;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fpost-like-btn:hover,
.fpost-like-btn.liked { background: #2a0a1a; border-color: #8a2a4a; color: #f55 }
.fpost-like-btn.liked .fas { color: #f55 }
.fpost-body { font-size: 13px; line-height: 1.7; color: #ccc; flex: 1 }

/* Reply box */
.forum-reply-box {
    background: rgba(6,14,28,.92);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   BBCODE PARSER OUTPUT
   ═══════════════════════════════════════════════════════ */
.bb-quote {
    background: #060e1c;
    border-left: 3px solid #2a5a9c;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    margin: 8px 0;
    color: #789;
    font-size: 12px;
}
.bb-quote-by { color: #4af; font-size: 11px; font-weight: bold; margin-bottom: 5px }
.bb-quote-body { color: #9ab }
.bb-code {
    background: #030810;
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #4f8;
    overflow-x: auto;
    margin: 6px 0;
    white-space: pre;
}
.bb-link { color: #4af; text-decoration: underline }
.bb-link:hover { color: #7cf }
.bb-list { padding-left: 20px; margin: 6px 0 }
.bb-list li { margin-bottom: 3px; color: #ccc }
.bb-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 8px 0; border-radius: 4px }
.bb-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100% }
.bb-spoiler { background: #060e1c; border: 1px solid #1a3a6c; border-radius: 4px; margin: 6px 0; overflow: hidden }
.bb-spoiler summary { padding: 8px 12px; cursor: pointer; color: #4af; font-size: 12px; font-weight: bold; user-select: none }
.bb-spoiler summary:hover { background: #0a1428 }
.bb-spoiler-body { padding: 10px 14px; border-top: 1px solid #1a3a6c; color: #ccc }

/* ═══════════════════════════════════════════════════════
   BBCODE EDITOR TOOLBAR
   ═══════════════════════════════════════════════════════ */
.bb-toolbar {
    background: #0a1428;
    border: 1px solid #1a3a6c;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}
.bb-btn {
    background: #060e1c;
    border: 1px solid #1a3a6c;
    color: #9cf;
    width: 28px;
    height: 26px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: Arial, sans-serif;
    padding: 0;
}
.bb-btn:hover { background: #1a3a6c; color: #fff }
.bb-emoji-btn { width: auto; padding: 0 5px; font-size: 14px }
.bb-sep { width: 1px; height: 20px; background: #1a3a6c; margin: 0 3px; flex-shrink: 0 }
.bb-textarea {
    width: 100%;
    background: #060e1c;
    border: 1px solid #1a3a6c;
    color: #ccc;
    padding: 10px 12px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    resize: vertical;
    outline: none;
    min-height: 160px;
    line-height: 1.6;
    border-radius: 0;
}
.bb-textarea:focus { border-color: #2a6aac }
.bb-emoji-picker {
    background: #060e1c;
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 320px;
    position: absolute;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,.8);
}
.bb-emoji {
    font-size: 1.4em;
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    transition: background .1s;
    line-height: 1;
}
.bb-emoji:hover { background: #1a3a6c }

/* ── FÓRUM RESPONSIVE ── */
@media(max-width:700px) {
    .forum-cat-row    { grid-template-columns: 40px 1fr }
    .forum-cat-last   { display: none }
    .forum-topic-row  { grid-template-columns: 30px 1fr 50px }
    .ftopic-count:last-of-type, .ftopic-last { display: none }
    .forum-post       { grid-template-columns: 1fr }
    .fpost-user       { flex-direction: row; padding: 8px 12px; border-right: none; border-bottom: 1px solid #1a3a6c }
}

/* ═══════════════════════════════════════════════════════
   DUEL COMPARISON PAGE
   ═══════════════════════════════════════════════════════ */
.duel-compare-wrap {
    background: rgba(6,14,28,.95);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}
.duel-compare-title {
    background: #0a1428;
    border-bottom: 1px solid #1a3a6c;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #9cf;
    text-align: center;
}
.duel-compare-grid {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    min-height: 200px;
}
.duel-player-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #060e1c;
}
.duel-player-col.left  { border-right: 1px solid #1a3a6c }
.duel-player-col.right { border-left:  1px solid #1a3a6c }
.duel-avatar {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border: 2px solid #1a3a6c;
    border-radius: 4px;
    display: block;
}
.duel-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    background: #0a1428;
}
.duel-middle-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    gap: 10px;
    background: #080f1e;
}
.duel-middle-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.duel-middle-buttons .btn-blue,
.duel-middle-buttons .btn-red { width: 100%; text-align: center }

.duel-vs-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #1a3a6c;
    background: #080f1e;
}
.duel-vs-badge {
    background: radial-gradient(circle, #c00 0%, #800 100%);
    border: 2px solid #f44;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(255,0,0,.4);
}
.duel-player-name {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}
.duel-player-name a { color: #9cf }
.duel-player-name.left  { justify-content: flex-start }
.duel-player-name.right { justify-content: flex-end }
.duel-prestige { color: #fc0; font-size: 12px; display:flex;align-items:center;gap:3px }

/* Stats table */
.duel-stats-table {
    background: rgba(6,14,28,.95);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}
.duel-stat-row {
    display: grid;
    grid-template-columns: 120px 60px 60px 120px;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #0f2040;
    font-size: 13px;
}
.duel-stat-row:last-child { border-bottom: none }
.duel-stat-label { color: #789 }
.duel-stat-label.right { text-align: right }
.duel-stat-val {
    text-align: center;
    font-weight: bold;
    color: #567;
    font-size: 14px;
}
.duel-stat-val.winner { color: #4f8 }

/* Two column layout */
.duel-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.duel-section-box {
    background: rgba(6,14,28,.95);
    border: 1px solid #1a3a6c;
    border-radius: 4px;
    overflow: hidden;
}
.duel-section-title {
    background: #0a1428;
    border-bottom: 1px solid #1a3a6c;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: bold;
    color: #9cf;
    text-align: center;
}
.duel-car-img {
    background: #0a0a14;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #1a3a6c;
}
.duel-equip-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #1a3a6c;
}
.duel-equip-slot {
    background: #0a0a18;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    min-height: 72px;
    border-right: 1px solid #1a3a6c;
}
.duel-equip-slot:last-child { border-right: none }
.duel-bonus-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 5px;
    background: #060e1c;
    gap: 5px;
}
.duel-bonus-row span { display:flex;align-items:center;justify-content:center;gap:5px;color:#4af }

@media(max-width:700px) {
    .duel-compare-grid { grid-template-columns: 1fr 100px 1fr }
    .duel-two-col { grid-template-columns: 1fr }
    .duel-avatar { width:80px;height:110px }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:#060e1c}
::-webkit-scrollbar-thumb{background:#1a3a6c;border-radius:3px}

/* ── RESPONSIVE ── */
@media(max-width:768px){
                    .login-box,.about-box{width:95vw}
    .props-grid{grid-template-columns:1fr}
    .duel-grid{grid-template-columns:1fr}
    .admin-cards{grid-template-columns:1fr 1fr}
    .admin-sidebar{display:none}
    .content-inner{max-width:100%}
    .shop-item{grid-template-columns:70px 1fr}
    .shop-actions{grid-column:1/-1;border-top:1px solid #0f2040;border-left:none;flex-direction:row;justify-content:flex-end;padding:8px 12px}
}


/* Tooltip pozíciók */
[data-tip-pos="right"]::after  { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%) translateX(4px) }
[data-tip-pos="right"]::before { left: calc(100% + 2px); bottom: auto; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-right-color: #1a3a6c }
[data-tip-pos="right"]:hover::after  { transform: translateY(-50%) translateX(0) }
[data-tip-pos="right"]:hover::before { transform: translateY(-50%) }

[data-tip-pos="bottom"]::after  { top: calc(100% + 8px); bottom: auto; transform: translateX(-50%) translateY(-4px) }
[data-tip-pos="bottom"]::before { top: calc(100% + 2px); bottom: auto; border: 5px solid transparent; border-bottom-color: #1a3a6c }
[data-tip-pos="bottom"]:hover::after  { transform: translateX(-50%) translateY(0) }

[data-tip-pos="left"]::after  { right: calc(100% + 8px); left: auto; bottom: auto; top: 50%; transform: translateY(-50%) translateX(-4px) }
[data-tip-pos="left"]::before { right: calc(100% + 2px); left: auto; bottom: auto; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #1a3a6c }
[data-tip-pos="left"]:hover::after  { transform: translateY(-50%) translateX(0) }
[data-tip-pos="left"]:hover::before { transform: translateY(-50%) }
