@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ================================================================
   L2 TAVERNA — DARK THEME v2
   #1a1a1a | #222 | #2a2a2a | #f5a623 | #4caf50
   ================================================================ */
:root {
    --bg:      #1a1a1a;
    --surface: #222222;
    --card:    #2a2a2a;
    --border:  #333333;
    --orange:  #f5a623;
    --orange2: #d4891c;
    --green:   #4caf50;
    --red:     #ef5350;
    --blue:    #42a5f5;
    --text:    #e8e8e0;
    --text2:   #aaaaaa;
    --text3:   #888888;
    --gold:    #c28f39;
    --r:       8px;
    --shadow:  0 4px 24px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; outline: none; margin: 0; padding: 0; }

body {
    background: var(--bg);
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    min-height: 100vh;
}

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ── BUTTONS ───────────────────────────────── */
.btn-purple {
    width: 100%; padding: 11px; background: var(--orange); color: #1a1a1a;
    border: none; border-radius: var(--r); font-weight: 700; font-size: 13px;
    text-transform: uppercase; cursor: pointer; transition: .2s; margin-top: 10px;
    letter-spacing: .6px; font-family: 'Roboto', sans-serif;
}
.btn-purple:hover { background: var(--orange2); }
.btn-purple:disabled { background: #444; color: #999; cursor: not-allowed; }
.btn-gray {
    width: 100%; padding: 9px; background: var(--border); color: var(--text2);
    border: none; border-radius: var(--r); font-weight: 600; font-size: 11px;
    cursor: pointer; margin-top: 8px; transition: .2s;
}
.btn-gray:hover { background: #3a3a3a; color: var(--text); }

/* ── LOGIN ───────────────────────────────────── */
.login-container {
    width: 900px; max-width: 96vw; height: 550px;
    background: var(--card); border-radius: 16px;
    display: flex; overflow: hidden;
    box-shadow: 0 0 60px rgba(245,166,35,.12), var(--shadow);
    border: 1px solid var(--border);
}
.login-art {
    flex: 1;
    background: url('https://i.imgur.com/VsgjRMG.jpeg') no-repeat center center;
    background-size: cover; position: relative;
}
.login-art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(245,166,35,.2), rgba(0,0,0,.05));
}
.login-form-area {
    width: 420px; padding: 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; background: var(--card);
}
.login-title { font-family: 'Cinzel', serif; font-size: 22px; color: var(--orange); margin-bottom: 8px; }
.login-subtitle { font-size: 12px; color: var(--text3); margin-bottom: 28px; }
.login-input-group { width: 100%; margin-bottom: 14px; text-align: left; }
.login-label {
    background: var(--border); color: var(--orange); padding: 4px 10px;
    font-size: 11px; font-weight: 700; border-radius: 4px 4px 0 0;
    display: inline-block; letter-spacing: .4px;
}
.login-input {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border);
    background: #1e1e1e; border-radius: 0 4px 4px 4px;
    color: var(--text); font-size: 13px; transition: border-color .18s;
}
.login-input:focus { border-color: var(--orange); }
.login-input::placeholder { color: var(--text3); }

/* ── PANEL WRAPPER ───────────────────────────── */
.panel-wrapper {
    width: 1100px; max-width: 98vw; min-height: 700px;
    background: var(--card); border-radius: 16px;
    display: flex; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(245,166,35,.06), var(--shadow);
}

/* ── SIDEBAR ───────────────────────────────── */
.panel-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.user-card {
    background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
    border-bottom: 1px solid var(--border); padding: 16px; text-align: center;
}
.user-header {
    background: #1e1e1e; padding: 7px 10px; border-radius: 6px;
    font-weight: 700; color: var(--orange);
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; font-size: 13px; font-family: 'Cinzel', serif;
    border: 1px solid var(--border);
}
.balance-box {
    background: #1a1a1a; border: 1px solid var(--border);
    padding: 10px; border-radius: 6px; margin-bottom: 10px;
}
.balance-text { color: var(--green); font-weight: 700; font-size: 15px; }
.menu-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.menu-item {
    padding: 12px 15px; background: transparent;
    border-bottom: 1px solid var(--border);
    color: var(--text2); font-weight: 600; font-size: 13px;
    cursor: pointer; transition: .18s;
    display: flex; align-items: center; gap: 10px;
}
.menu-item img { width: 22px; height: 22px; object-fit: contain; filter: brightness(.8); flex-shrink: 0; }
.menu-item:hover { background: #2e2e2e; color: var(--orange); }
.menu-item:hover img { filter: brightness(1.2) sepia(1) saturate(3) hue-rotate(-10deg); }
.menu-item.active { background: rgba(245,166,35,.1); color: var(--orange); border-left: 3px solid var(--orange); }
.menu-item.active img { filter: brightness(1.3) sepia(1) saturate(4) hue-rotate(-10deg); }
.menu-item i { width: 16px; text-align: center; flex-shrink: 0; }

/* ── PANEL CONTENT ───────────────────────────── */
.panel-content {
    flex: 1; padding: 22px;
    display: flex; flex-direction: column; gap: 18px;
    overflow-y: auto; background: #1e1e1e;
}
.content-header {
    background: #252525; padding: 11px 16px; border-radius: var(--r);
    font-weight: 700; color: var(--orange); font-family: 'Cinzel', serif;
    border-left: 3px solid var(--orange);
    display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.content-header img { width: 24px; height: 24px; object-fit: contain; }

/* ── CARDS ───────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-box { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--card); }
.box-title {
    background: #252525; color: var(--orange);
    padding: 10px 14px; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border); font-family: 'Cinzel', serif;
}
.box-title img { width: 20px; height: 20px; object-fit: contain; }
.box-title i { color: var(--orange); }
.data-row {
    display: flex; justify-content: space-between; padding: 10px 14px;
    border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text2);
    transition: background .15s;
}
.data-row:hover { background: #2e2e2e; }
.data-row:last-child { border-bottom: none; }
.data-row .val { color: var(--text); font-weight: 600; }

/* ── TABLES ─────────────────────────────────── */
.dark-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dark-table th {
    background: #252525; padding: 10px 14px; text-align: left;
    font-size: 11px; font-weight: 700; color: var(--text3);
    text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}
.dark-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
.dark-table tr:hover td { background: #2e2e2e; color: var(--text); }
.dark-table tr:last-child td { border-bottom: none; }

/* ── SHOP ────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.shop-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
    padding: 16px; text-align: center; transition: .2s; cursor: pointer;
}
.shop-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,166,35,.15); }
.item-icon {
    width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 8px;
    background: #1e1e1e; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--orange); overflow: hidden;
}
.item-icon img { width: 56px; height: 56px; object-fit: contain; }
.item-name { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.item-desc { font-size: 11px; color: var(--text3); height: 30px; overflow: hidden; margin-bottom: 8px; }
.item-price { color: var(--orange); font-weight: 700; margin-bottom: 10px; font-size: 14px; }

/* ── RANKING ─────────────────────────────────── */
.rank-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.rank-header {
    background: #252525; color: var(--orange); padding: 11px 16px;
    font-weight: 700; display: flex; align-items: center; gap: 8px;
    font-family: 'Cinzel', serif; border-bottom: 1px solid var(--border);
}
.rank-header img { width: 22px; height: 22px; object-fit: contain; }

/* ── STATUS ─────────────────────────────────── */
.status-online  { color: var(--green); font-weight: 700; }
.status-offline { color: var(--red);   font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.on  { background: var(--green); box-shadow: 0 0 5px var(--green); }
.dot.off { background: var(--red);   box-shadow: 0 0 5px var(--red); }

/* ── MESSAGES ────────────────────────────────── */
.msg-alert { padding: 10px 14px; margin-bottom: 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.error   { background: rgba(239,83,80,.1); color: var(--red); border: 1px solid rgba(239,83,80,.2); }
.success { background: rgba(76,175,80,.1); color: var(--green); border: 1px solid rgba(76,175,80,.2); }

/* ── FORUM ───────────────────────────────────── */
.forum-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.forum-header h2 {
    font-size: 17px; font-weight: 700; color: var(--orange);
    display: flex; align-items: center; gap: 10px;
    border-left: 3px solid var(--orange); padding-left: 12px;
    font-family: 'Cinzel', serif;
}
.forum-breadcrumb { font-size: 12px; color: var(--text3); margin-bottom: 12px; }
.forum-breadcrumb a { color: var(--orange); text-decoration: none; }
.forum-cat-block { border-radius: var(--r); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--border); }
.forum-cat-head {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    color: var(--orange); padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--orange);
}
.forum-cat-head h3 { font-size: 13px; font-weight: 700; font-family: 'Cinzel', serif; }
.forum-subcat-row {
    display: flex; align-items: center; padding: 13px 16px;
    border-bottom: 1px solid var(--border); background: #232323;
    gap: 12px; cursor: pointer; transition: background .15s;
}
.forum-subcat-row:last-child { border-bottom: none; }
.forum-subcat-row:hover { background: #2a2a2a; }
.forum-subcat-icon {
    width: 38px; height: 38px; background: #1a1a1a; border: 1px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--orange); font-size: 17px; flex-shrink: 0; overflow: hidden;
}
.forum-subcat-icon img { width: 32px; height: 32px; object-fit: contain; }
.forum-subcat-info .name { font-weight: 700; font-size: 13px; color: var(--text); }
.forum-subcat-info .desc { font-size: 11px; color: var(--text3); margin-top: 2px; }
.forum-subcat-stat .num { font-size: 15px; font-weight: 700; color: var(--orange); }
.forum-subcat-stat .lbl { font-size: 10px; color: var(--text3); }
.forum-subcat-last { font-size: 11px; color: var(--text3); min-width: 150px; text-align: right; }
.forum-subcat-last a { color: var(--orange); font-weight: 600; text-decoration: none; }
.topic-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #232323; gap: 12px; transition: .15s; }
.topic-row:hover { background: #2a2a2a; }
.topic-row.fixed { border-left: 3px solid var(--orange); background: #252520; }
.topic-row.featured { border-left: 3px solid var(--gold); background: #252520; }
.topic-icon { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-icon.normal { background: #1a1a1a; color: var(--orange); border: 1px solid var(--border); }
.topic-icon.fixed { background: rgba(245,166,35,.15); color: var(--orange); }
.topic-icon.featured { background: rgba(194,143,57,.15); color: var(--gold); }
.badge-fixed { background: var(--orange); color: #1a1a1a; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.badge-featured { background: var(--gold); color: #1a1a1a; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.badge-locked { background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.topic-title-link { font-weight: 700; font-size: 13px; color: var(--text); text-decoration: none; }
.topic-title-link:hover { color: var(--orange); }
.topic-stat { text-align: center; min-width: 52px; font-size: 11px; color: var(--text3); }
.topic-stat .num { font-size: 13px; font-weight: 700; color: var(--text2); display: block; }
.topic-last { font-size: 11px; color: var(--text3); min-width: 130px; text-align: right; }
.post-card { display: flex; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: #232323; }
.post-author { width: 120px; flex-shrink: 0; background: #1a1a1a; border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.post-author .author-name { font-weight: 700; font-size: 12px; color: var(--text); }
.post-author .stat-row { font-size: 10px; color: var(--text3); display: flex; justify-content: space-between; width: 100%; }
.post-author .stat-row span { color: var(--orange); font-weight: 600; }
.post-body { flex: 1; padding: 13px 16px; display: flex; flex-direction: column; background: #232323; }
.post-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-date { font-size: 11px; color: var(--text3); }
.post-content { font-size: 13px; color: var(--text2); line-height: 1.7; flex: 1; }
.post-content blockquote { background: #1a1a1a; border-left: 3px solid var(--orange); padding: 8px 12px; margin: 8px 0; border-radius: 0 4px 4px 0; font-size: 12px; color: var(--text3); }
.post-content code { background: #1a1a1a; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 12px; color: var(--orange); }
.post-content img { max-width: 100%; border-radius: 4px; }
.post-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.like-btn { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; transition: .15s; }
.like-btn:hover, .like-btn.liked { background: rgba(239,83,80,.15); color: var(--red); }
.quote-btn { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; transition: .15s; }
.quote-btn:hover { background: rgba(245,166,35,.15); color: var(--orange); }
.report-btn { background: none; border: none; cursor: pointer; font-size: 11px; color: #bbb; margin-left: auto; padding: 3px; border-radius: 4px; transition: .15s; }
.report-btn:hover { color: var(--red); }
.forum-editor { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.editor-toolbar { background: #1a1a1a; padding: 7px 10px; display: flex; gap: 3px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.editor-btn { background: #2a2a2a; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 12px; cursor: pointer; color: var(--text2); transition: .15s; }
.editor-btn:hover { background: var(--orange); color: #1a1a1a; border-color: var(--orange); }
.editor-area { min-height: 120px; padding: 12px; font-size: 13px; color: var(--text); outline: none; line-height: 1.7; background: #232323; }
.editor-area:empty:before { content: attr(data-placeholder); color: var(--text3); }
.poll-box { border: 2px solid var(--orange); border-radius: var(--r); padding: 16px; margin-bottom: 14px; background: #1a1a1a; }
.poll-box h4 { color: var(--orange); font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.poll-bar-wrap { background: #333; border-radius: 20px; height: 9px; overflow: hidden; margin-top: 4px; }
.poll-bar { background: var(--orange); border-radius: 20px; height: 9px; transition: width .5s; }
.forum-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 14px; }
.forum-pagination a, .forum-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; font-size: 13px; color: var(--text2); background: #232323; border: 1px solid var(--border); text-decoration: none; transition: .15s; }
.forum-pagination a:hover { border-color: var(--orange); color: var(--orange); }
.forum-pagination span.current { background: var(--orange); color: #1a1a1a; border-color: var(--orange); }
.viewers-box { background: #1a1a1a; border: 1px solid var(--border); border-radius: 6px; padding: 9px 14px; font-size: 12px; color: var(--text3); margin-top: 14px; }
.modal-ov { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; align-items: center; justify-content: center; }
.modal-ov.open { display: flex; }
.modal-box { background: #2a2a2a; border: 1px solid var(--border); border-radius: 12px; padding: 26px; width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.7); }
.modal-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--text); font-family: 'Cinzel', serif; }
.f-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; margin-bottom: 10px; background: #1a1a1a; color: var(--text); }
.f-input:focus { border-color: var(--orange); outline: none; }
.f-label { font-size: 11px; font-weight: 700; color: var(--text3); margin-bottom: 4px; display: block; text-transform: uppercase; letter-spacing: .4px; }
.btn-forum-purple { background: var(--orange); color: #1a1a1a; border: none; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; transition: .2s; font-family: inherit; }
.btn-forum-purple:hover { background: var(--orange2); }
.btn-forum-gray { background: var(--border); color: var(--text2); border: none; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; transition: .2s; margin-top: 8px; font-family: inherit; }
.btn-forum-green { background: var(--green); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s; font-family: inherit; }
.topic-admin-btns { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.btn-fix { background: rgba(245,166,35,.2); color: var(--orange); border: 1px solid rgba(245,166,35,.4); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.btn-lock { background: rgba(239,83,80,.2); color: var(--red); border: 1px solid rgba(239,83,80,.4); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.btn-del { background: #2a2a2a; color: var(--text2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; font-family: inherit; }
.not-verified { background: rgba(245,166,35,.1); border: 1px solid var(--orange); border-radius: 8px; padding: 11px 15px; font-size: 13px; color: var(--orange); margin-bottom: 14px; }
.rep-card { background: #232323; border: 1px solid var(--border); border-radius: var(--r); padding: 15px 18px; margin-bottom: 12px; }
.rep-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rep-reason { background: #1a1a1a; border-left: 3px solid var(--orange); padding: 8px 12px; border-radius: 0 4px 4px 0; font-size: 13px; color: var(--text2); font-style: italic; margin-bottom: 10px; }

/* ── UTILS ───────────────────────────────────── */
.hidden { display: none; }
.text-orange { color: var(--orange) !important; }
.text-green  { color: var(--green) !important; }
.text-red    { color: var(--red) !important; }
.text-muted  { color: var(--text3) !important; }
.mono { font-family: 'Courier New', monospace; font-size: 12px; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pag { display: flex; gap: 4px; margin-top: 16px; align-items: center; justify-content: flex-end; }

@media (max-width: 900px) {
    .panel-wrapper { flex-direction: column; width: 100%; border-radius: 0; }
    .panel-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .info-grid, .two-col, .tw { grid-template-columns: 1fr !important; }
}
