@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: #090a0f; color: #e1e4e8; min-height: 100vh; line-height: 1.5; color-scheme: dark; overflow-x: hidden; width: 100%; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== LOGIN ===== */
.login-body {
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(ellipse at top, #1a1a3e 0%, #090a0f 70%);
}
.login-box {
    background: rgba(22, 24, 35, 0.95); backdrop-filter: blur(20px);
    padding: 48px 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
    text-align: center; width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.login-box h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; background: linear-gradient(135deg, #ffaa00, #ff6b35); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-box::after { content: "Admin Dashboard"; display: block; color: #6e7681; font-size: 13px; margin-bottom: 28px; }
.login-box input {
    width: 100%; padding: 14px 16px; margin: 8px 0; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    color: #fff; font-size: 15px; transition: 0.2s; outline: none;
}
.login-box input:focus { border-color: #ffaa00; box-shadow: 0 0 0 3px rgba(255,170,0,0.15); }
.login-box button {
    width: 100%; padding: 14px; margin-top: 12px; border-radius: 10px;
    border: none; background: linear-gradient(135deg, #ffaa00, #ff6b35);
    color: #000; font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.login-box button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,170,0,0.3); }

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; position: relative; }
.sidebar {
    width: 240px; background: linear-gradient(180deg, #111320 0%, #0d0f18 100%);
    border-right: 1px solid rgba(255,255,255,0.06); padding: 24px 0;
    flex-shrink: 0; display: flex; flex-direction: column;
    transition: transform 0.25s ease;
    overflow-y: auto;
}
.nav-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #484f58;
    padding: 14px 24px 4px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 24px; margin: 2px 12px;
    color: #8b949e; text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 500; transition: 0.15s;
}
.nav-item:hover { color: #e1e4e8; background: rgba(255,255,255,0.04); }
.nav-item.active { color: #ffaa00; background: rgba(255,170,0,0.08); font-weight: 600; }
.nav-icon { font-size: 18px; }
.sidebar-footer { margin-top: auto; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.btn-logout { color: #f85149; text-decoration: none; font-size: 14px; font-weight: 500; }

.main-content { flex: 1; padding: 32px 40px; overflow-y: auto; max-width: 1300px; }
.main-content h1 { margin-bottom: 28px; font-size: 26px; font-weight: 700; color: #fff; }
.main-content h1::before { content: ""; }

/* Hamburger toggle */
.hamburger {
    display: none; position: fixed; top: 12px; left: 12px; z-index: 200;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(17,19,32,0.95); backdrop-filter: blur(12px); cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 4px;
    transition: 0.15s;
}
.hamburger:hover { border-color: rgba(255,170,0,0.3); }
.hamburger span {
    display: block; width: 18px; height: 2px; background: #8b949e;
    border-radius: 2px; transition: 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sidebar overlay on mobile */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99;
}

/* ===== LEADERBOARD ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 0; }
.container h1 { color: #fff; margin-bottom: 24px; font-size: 26px; }
.table-container { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #111320; color: #8b949e; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 16px; text-align: left; }
td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:hover td { background: rgba(255,255,255,0.02); }
td:first-child, th:first-child { text-align: center; width: 40px; color: #ffaa00; font-weight: 700; }
a { color: #58a6ff; text-decoration: none; font-weight: 500; }
a:hover { color: #79c0ff; }

/* ===== PLAYER ===== */
.player-info { background: #111320; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 28px; margin: 16px 0; }
.player-info h1 { margin-bottom: 20px; font-size: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { background: rgba(255,255,255,0.03); padding: 16px; border-radius: 10px; text-align: center; border: 1px solid rgba(255,255,255,0.04); }
.stat-item .label { color: #6e7681; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-item .value { color: #e1e4e8; font-size: 20px; font-weight: 700; margin-top: 4px; }

/* ===== ADMIN ===== */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; }
.card {
    background: linear-gradient(135deg, #141627 0%, #0f1120 100%);
    border: 1px solid rgba(255,255,255,0.07); border-radius: 12px;
    padding: 24px; transition: 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.card:hover { border-color: rgba(255,170,0,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.card h2 { color: #ffaa00; font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px; }
.card h2::before { content: ""; display: inline-block; width: 3px; height: 16px; background: #ffaa00; border-radius: 2px; }
.card form { display: flex; flex-wrap: wrap; gap: 10px; }
.card select, .card input {
    padding: 10px 14px; border-radius: 8px; font-size: 13px;
    border: 1px solid rgba(255,255,255,0.08); background: #1a1d2e;
    color: #e1e4e8; flex: 1; min-width: 130px; outline: none; transition: 0.15s;
    font-family: 'Inter', sans-serif;
}
.card select option {
    background: #1a1d2e; color: #e1e4e8; padding: 8px;
}
.card select option:hover,
.card select option:focus,
.card select option:active,
.card select option:checked {
    background: #2a2d40; color: #ffaa00;
}
.card select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
    background-color: #1a1d2e;
}
.card select:focus, .card input:focus { border-color: #ffaa00; box-shadow: 0 0 0 3px rgba(255,170,0,0.1); }
.card button {
    padding: 10px 22px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, #ffaa00, #ff6b35); color: #000;
    font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: 0.15s;
    letter-spacing: 0.3px;
}
.card button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,170,0,0.3); }
.card button:active { transform: translateY(0); }
.btn-danger { padding: 6px 14px; border-radius: 6px; border: none; background: linear-gradient(135deg, #f85149, #da3633); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.btn-danger:hover { filter: brightness(1.15); }
.btn-danger:active { filter: brightness(0.95); }
.btn-secondary { padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #8b949e; font-size: 12px; font-weight: 500; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.btn-secondary:hover { color: #e1e4e8; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-small { padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #8b949e; font-size: 11px; cursor: pointer; vertical-align: middle; transition: 0.15s; }
.btn-small:hover { background: rgba(255,255,255,0.08); color: #e1e4e8; }
.card hr { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 16px 0; }
.card h3, .card h4 { margin: 14px 0 8px; color: #ffaa00; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.card .section-label { color: #8b949e; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin: 20px 0 10px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; border-radius: 8px; overflow: hidden; }
.inv-table thead th { background: rgba(255,255,255,0.03); color: #8b949e; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px; text-align: left; }
.inv-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr:hover td { background: rgba(255,255,255,0.02); }
.inv-table td:last-child { white-space: nowrap; text-align: right; }
.inv-table input[type=number] { padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: #1a1d2e; color: #e1e4e8; width: 55px; font-size: 12px; outline: none; transition: 0.15s; }
.inv-table input[type=number]:focus { border-color: #ffaa00; }
.inv-table .item-name { color: #e1e4e8; font-weight: 500; }
.inv-table .item-detail { color: #8b949e; font-size: 12px; }
.inv-table .equipped-badge { display: inline-block; background: rgba(63,185,80,0.15); color: #3fb950; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.card-row { width: 100%; }
.card-row form { display: flex; }

/* Inspect section */
.inspect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.inspect-card { margin-bottom: 16px; }
.inspect-form { display: flex; gap: 10px; align-items: center; }
.inspect-form select { flex: 1; }
.inspect-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.inspect-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 16px; flex-wrap: wrap; }
.inspect-container { display: none; }
.inspect-stat { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.inspect-stat .label { color: #8b949e; font-size: 12px; font-weight: 500; }
.inspect-stat .value { color: #e1e4e8; font-size: 14px; font-weight: 600; }
.inspect-stat .actions { display: flex; gap: 6px; align-items: center; }
.inspect-stat .actions input { width: 55px; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: #1a1d2e; color: #e1e4e8; font-size: 12px; outline: none; }
.revoke-form { display: inline; }
.revoke-form input[type=number] { width: 55px; }
.inspect-stat .actions input:focus { border-color: #ffaa00; }
.inspect-section-title { color: #ffaa00; font-size: 13px; font-weight: 600; margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.inspect-section-title::before { content: ""; display: inline-block; width: 3px; height: 14px; background: #ffaa00; border-radius: 2px; }

/* Balance section */
.bal-hint { color: #8b949e; font-size: 12px; margin-left: 8px; }
.balance-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.balance-row label { color: #8b949e; font-size: 13px; }
.balance-row input[type=number] { padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: #1a1d2e; color: #e1e4e8; font-size: 13px; outline: none; width: 80px; transition: 0.15s; }
.balance-row input[type=number]:focus { border-color: #ffaa00; }
.balance-row .btn-small { padding: 6px 10px; }
.tier-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 4px 0; background: rgba(255,255,255,0.02); border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); flex-wrap: wrap; }
.tier-row label { color: #8b949e; font-size: 12px; }
.tier-row input[type=number] { padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: #1a1d2e; color: #e1e4e8; font-size: 12px; outline: none; width: 60px; transition: 0.15s; }
.tier-row input[type=number]:focus { border-color: #ffaa00; }
.tier-row .btn-small { padding: 3px 8px; font-size: 10px; }
.tier-header { display: flex; align-items: center; gap: 8px; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.toggle-wrap label { color: #e1e4e8; font-size: 13px; font-weight: 500; cursor: pointer; }
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #30363d; border-radius: 22px; transition: 0.2s; }
.toggle-slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #8b949e; border-radius: 50%; transition: 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: rgba(255,170,0,0.25); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #ffaa00; }
.toggle-switch input:focus-visible + .toggle-slider { box-shadow: 0 0 0 2px rgba(255,170,0,0.3); }

/* Save button */
.btn-save { padding: 10px 28px; border-radius: 8px; border: none; background: linear-gradient(135deg, #ffaa00, #ff6b35); color: #000; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.15s; letter-spacing: 0.3px; }
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,170,0,0.3); }
.btn-save:active { transform: translateY(0); }

.msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.success { background: rgba(46,160,67,0.12); color: #3fb950; border: 1px solid rgba(46,160,67,0.2); }
.error { background: rgba(248,81,73,0.12); color: #f85149; border: 1px solid rgba(248,81,73,0.2); }

/* ===== INSPECT TABS ===== */
.tab-btn {
    padding: 8px 16px; border: none; border-radius: 8px 8px 0 0;
    background: transparent; color: #8b949e; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: 0.15s; font-family: 'Inter', sans-serif;
}
.tab-btn:hover { color: #e1e4e8; background: rgba(255,255,255,0.03); }
.tab-btn.active { color: #ffaa00; background: rgba(255,170,0,0.08); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.page-link {
    padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
    background: transparent; color: #8b949e; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: 0.15s;
}
.page-link:hover { border-color: rgba(255,170,0,0.3); color: #e1e4e8; }
.page-link.active { background: rgba(255,170,0,0.12); color: #ffaa00; border-color: rgba(255,170,0,0.2); font-weight: 600; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== MOBILE RESPONSIVE (must be last to override base rules) ===== */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0;
        transform: translateX(-100%); z-index: 100;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { padding: 16px; padding-top: 64px; max-width: 100%; width: 100%; }
    .layout { max-width: 100vw; overflow-x: hidden; }
    .main-content h1 { font-size: 20px; margin-bottom: 16px; }
    .admin-grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 16px; }
    .card form { flex-direction: column; }
    .card select, .card input { min-width: 0; width: 100%; }
    .card button { width: 100%; }
    .inspect-grid { grid-template-columns: 1fr; }
    .inspect-form { flex-direction: column; align-items: stretch; }
    .inspect-form button { width: 100%; }
    .inspect-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .balance-row { flex-direction: column; align-items: stretch; }
    .balance-row input[type=number] { width: 100%; }
    .tier-row { flex-direction: column; align-items: stretch; }
    .tier-row input[type=number] { width: 100%; }
    .tab-btn { flex: 1; text-align: center; font-size: 12px; padding: 8px 4px; }
    .inspect-tabs { gap: 2px; }
    .inspect-stat { flex-direction: column; align-items: stretch; }
    .inspect-stat .label, .inspect-stat .value { display: inline; }
    .inspect-stat .actions { width: 100%; display: flex; gap: 6px; }
    .inspect-stat .actions input { flex: 1; min-width: 0; }
    .revoke-form { display: flex; width: 100%; }
    .revoke-form input[type=number] { flex: 1; min-width: 0; width: auto; }
    .revoke-form button { flex-shrink: 0; }
    .inv-table { font-size: 12px; }
    .inv-table td, .inv-table th { padding: 6px 8px; }
    .inv-table td:last-child { white-space: normal; }
    .inv-table input[type=number] { width: 48px; }
    .container { padding: 12px; }
    .table-container { overflow-x: auto; }
    .player-info { padding: 16px; }
    .pagination { flex-wrap: wrap; }
    .page-link { font-size: 12px; padding: 4px 10px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .login-box { width: 90%; padding: 32px 24px; }
}

/* ===== WIKI / PUBLIC COMPONENTS ===== */
.wiki-header {
    background: linear-gradient(135deg, #131722 0%, #0d0f18 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.wiki-header h1 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #ffaa00;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wiki-header p {
    margin: 0;
    color: #8b949e;
    font-size: 13px;
}
.wiki-toolbar {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.wiki-search {
    flex: 1;
    min-width: 240px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #090b12;
    color: #f0f6fc;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}
.wiki-search:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 0 3px rgba(255,170,0,0.15);
}
.wiki-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8b949e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(255,170,0,0.15);
    border-color: #ffaa00;
    color: #ffaa00;
}

/* WIKI DATA TABLE (GỌN GÀNG, CHUẨN MỰC) */
.wiki-table-wrap {
    background: #111320;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.wiki-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.wiki-table th {
    background: #0d0e1a;
    color: #8b949e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.wiki-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.wiki-table tbody tr:hover {
    background: rgba(255, 170, 0, 0.03);
}

/* Thumbnails chuẩn gọn gàng */
.thumb-card {
    width: 54px;
    height: 74px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    background: #090a12;
    display: inline-block;
    vertical-align: middle;
}
.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.thumb-card:hover img {
    transform: scale(1.15);
}

.thumb-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,255,255,0.15);
    cursor: pointer;
    background: #090a12;
    display: inline-block;
    vertical-align: middle;
}
.thumb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.thumb-avatar:hover img {
    transform: scale(1.15);
}

.thumb-square {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    background: #090a12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.thumb-square img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}
.thumb-square:hover img {
    transform: scale(1.15);
}

/* Stat Pills gọn gàng */
.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.stat-pill.hp { color: #4ade80; }
.stat-pill.atk { color: #f87171; }
.stat-pill.def { color: #60a5fa; }
.stat-pill.crit { color: #fbbf24; }
.stat-pill.pierce { color: #38bdf8; }
.stat-pill.spd { color: #c084fc; }
.stat-pill.lifesteal { color: #f43f5e; }
.stat-pill.dodge { color: #34d399; }

/* Badges */
.badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-r { background: rgba(80,250,123,0.15); color: #50fa7b; border: 1px solid rgba(80,250,123,0.3); }
.badge-sr { background: rgba(139,233,253,0.15); color: #8be9fd; border: 1px solid rgba(139,233,253,0.3); }
.badge-ssr { background: rgba(241,250,140,0.15); color: #f1fa8c; border: 1px solid rgba(241,250,140,0.3); }
.badge-ur { background: rgba(255,85,85,0.15); color: #ff5555; border: 1px solid rgba(255,85,85,0.4); }

.badge-b { background: rgba(139,148,158,0.15); color: #8b949e; border: 1px solid rgba(139,148,158,0.3); }
.badge-a { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.badge-s { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }
.badge-svip { background: rgba(155,89,182,0.15); color: #9b59b6; border: 1px solid rgba(155,89,182,0.3); }
.badge-mythic { background: linear-gradient(135deg, rgba(255,170,0,0.2), rgba(255,107,53,0.2)); color: #ffaa00; border: 1px solid #ffaa00; }

.badge-element {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.elem-kim { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.elem-moc { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.elem-thuy { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.elem-hoa { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.elem-tho { background: rgba(180,83,9,0.15); color: #f59e0b; border: 1px solid rgba(180,83,9,0.3); }

/* Skill summary box */
.skill-box-compact {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
}
.skill-box-compact b {
    color: #ffaa00;
}

