/* ============================================
   BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0d0d1a;
    font-family: 'Ubuntu', sans-serif;
    color: #fff;
}

/* ============================================
   CANVAS
   ============================================ */
#canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   OVERLAY (menu)
   ============================================ */
#overlays {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 8, 20, 0.88);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(380px, 476px) minmax(300px, 340px);
    gap: 14px;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding: clamp(16px, 3vh, 34px);
    overflow: auto;
    overscroll-behavior: contain;
}

#overlays > aside,
#overlays > #helloDialog {
    position: relative;
    z-index: 2;
}

.menu-ad-slot {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: rgba(160, 236, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(0, 47, 77, 0.08)),
        rgba(7, 10, 22, 0.34);
    box-shadow:
        inset 0 0 34px rgba(0, 212, 255, 0.07),
        0 0 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(7px);
}

.menu-ad-slot::after {
    content: attr(data-size);
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.menu-ad-slot::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(0, 212, 255, 0.18);
    border-radius: inherit;
}

.modal-ad-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    margin: 0 18px 18px;
    color: rgba(160, 236, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.26);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(0, 47, 77, 0.08)),
        rgba(7, 10, 22, 0.42);
    box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.06);
    overflow: hidden;
}

.modal-ad-slot::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px dashed rgba(0, 212, 255, 0.18);
    border-radius: 9px;
}

.modal-ad-slot::after {
    content: attr(data-size);
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
}

.modal-ad-auth {
    min-height: 112px;
}

.menu-ad-left,
.menu-ad-right {
    top: 0;
    bottom: 0;
    width: clamp(150px, 10.8vw, 220px);
}

.menu-ad-left {
    left: 0;
    border-left: 0;
    border-radius: 0 12px 12px 0;
}

.menu-ad-right {
    right: 0;
    border-right: 0;
    border-radius: 12px 0 0 12px;
}

.menu-ad-bottom {
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(600px, 30vw);
    height: clamp(92px, 18vh, 190px);
    border-radius: 12px;
}

.mobile-menu-tabs {
    display: none;
}

/* ============================================
   MENU DIALOG
   ============================================ */
#helloDialog {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    transform: none;
    background: rgba(10, 12, 24, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: clamp(24px, 3.2vh, 36px) clamp(22px, 2.8vw, 32px) 26px;
    width: 100%;
    max-width: 476px;
    min-width: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 212, 255, 0.1);
}

#title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 24px;
    background: linear-gradient(to right, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

#helloDialog form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-control,
#nick,
#gamemode {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    padding: 0 16px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form-control:focus,
#nick:focus,
#gamemode:focus {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

#gamemode option {
    background: #1a1a2e;
}

.nick-skin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 10px;
    align-items: center;
}

.dual-nick-input {
    display: none;
}

body.dual-mode-enabled .nick-skin-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) 60px 60px;
}

body.dual-mode-enabled .dual-nick-input {
    display: block;
}

.dual-skin-preview-trigger {
    display: none;
}

body.dual-mode-enabled .dual-skin-preview-trigger {
    display: flex;
}

#dual-skin-preview-trigger {
    display: none;
}

body.dual-mode-enabled #dual-skin-preview-trigger {
    display: flex;
}

.skin-preview-trigger {
    position: relative;
    width: 60px;
    height: 48px !important;
    min-height: 48px;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    background: rgba(0, 212, 255, 0.07) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.skin-preview-trigger:hover {
    border-color: rgba(0, 212, 255, 0.58) !important;
    background: rgba(0, 212, 255, 0.12) !important;
}

.skin-preview-cell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(145deg, #18d7ff, #1378ff 56%, #0d2758);
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 212, 255, 0.22);
    display: block;
}

.skin-preview-cell.empty {
    background: transparent;
    box-shadow: none;
}

.skin-preview-cell.empty::after {
    content: "Skin";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.72);
    font-size: 10px;
    font-weight: 800;
}

.skin-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.admin-skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
}

.admin-skin-card .adm-btn {
    width: 100%;
}

@media (max-width: 820px), (orientation: landscape) and (max-height: 520px) {
    #admin-ranking-list {
        grid-template-columns: 1fr !important;
    }
    #admin-tab-ranking input,
    #admin-tab-ranking select,
    #admin-tab-ranking textarea,
    #admin-tab-ranking button {
        font-size: 12px !important;
    }
}

.hat-preview-img {
    position: absolute;
    left: 50%;
    top: -48px;
    width: 39px;
    height: 66px;
    object-fit: contain;
    transform: translateX(-50%);
    display: none;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

#play-btn {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, #0099ff, #00d4ff);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 180, 255, 0.3);
}

#play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 180, 255, 0.5);
}

#play-btn:active {
    transform: translateY(0);
}

#spectate-btn {
    width: 110px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #aaa;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

#spectate-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.menu-controls-hint {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-controls-hint span {
    font-size: 11px;
    color: #8e96ad;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-controls-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    color: #cfd7ff;
    font-family: monospace;
    font-size: 10px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.menu-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 16px;
}

.toggle-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #cfd7ff;
    user-select: none;
    transition: color 0.2s;
}

.toggle-setting:hover {
    color: #fff;
}

.toggle-setting input {
    display: none;
}

.toggle-track {
    position: relative;
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

.toggle-track::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-setting input:checked+.toggle-track {
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.toggle-setting input:checked+.toggle-track::before {
    transform: translateX(14px);
}

#helloDialog button:not(#play-btn):not(#spectate-btn) {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #cfd7ff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

#helloDialog button:not(#play-btn):not(#spectate-btn):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#profile-view {
    display: none !important;
}

#social-sidebar {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    transform: none;
    width: 100%;
    min-width: 0;
    height: min(78vh, 660px);
    min-height: 390px;
    background: linear-gradient(180deg, rgba(10, 13, 28, 0.96), rgba(7, 10, 22, 0.92));
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#settings-sidebar {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    transform: none;
    width: 100%;
    min-width: 0;
    height: min(78vh, 660px);
    min-height: 390px;
    background: linear-gradient(180deg, rgba(10, 13, 28, 0.94), rgba(7, 10, 22, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.top-settings-dock {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 7;
    transform: translateX(-50%);
    width: min(300px, 34vw);
    height: 34px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.top-settings-button {
    pointer-events: auto;
    height: 44px;
    min-width: 230px;
    padding: 0 22px 3px;
    border: 1px solid rgba(0, 212, 255, 0.34);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(7, 13, 27, 0.98), rgba(8, 40, 56, 0.96));
    color: #c9f7ff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 -10px 22px rgba(0, 212, 255, 0.08);
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
}

.top-settings-button span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.top-settings-button:hover {
    border-color: rgba(0, 212, 255, 0.7);
    color: #ffffff;
    transform: translateY(1px);
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 4, 12, 0.68);
    backdrop-filter: blur(8px);
}

.settings-modal-card {
    width: min(760px, 94vw);
    max-height: min(760px, 90vh);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 13, 28, 0.98), rgba(7, 10, 22, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 0 36px rgba(0, 212, 255, 0.04);
    overflow: hidden;
    animation: modalPopIn 0.18s ease-out both;
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-modal-header h3 {
    margin: 0;
    color: #eaf8ff;
    font-size: 18px;
}

.settings-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

#settings-modal-content {
    padding: 16px 18px 18px;
    min-height: 0;
    overflow: auto;
}

#settings-modal-content + .modal-ad-slot {
    flex: 0 0 auto;
}

#settings-modal-content .settings-tabs {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* ── Settings: radio groups ──────────────────────────────────────────────────── */
.settings-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}
.settings-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s;
    font-size: 12px;
    color: #dfe7ff;
}
.settings-radio:hover { background: rgba(255,255,255,0.06); }
.settings-radio.active {
    border-color: rgba(0,212,255,0.4);
    background: rgba(0,212,255,0.08);
}
.settings-radio input[type=radio] { margin-top: 2px; accent-color: #00d4ff; }
.settings-radio div { display: flex; flex-direction: column; gap: 2px; }
.settings-radio strong { font-size: 12px; font-weight: 700; }
.settings-radio span   { font-size: 10px; color: #7a8999; }

/* ── Settings: slider rows ───────────────────────────────────────────────────── */
.settings-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 4px;
}
.settings-slider-label {
    min-width: 110px;
    font-size: 11px;
    color: #bbc8de;
    font-weight: 600;
}
.settings-slider-row input[type=range] {
    flex: 1;
    accent-color: #00d4ff;
}
.settings-slider-val {
    min-width: 38px;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    color: #00d4ff;
}

/* ── Settings: keybinds row ──────────────────────────────────────────────────── */
.settings-keybinds-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.settings-keybind-btn {
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #dfe7ff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    cursor: pointer;
    transition: all 0.15s;
}
.settings-keybind-btn:hover { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.4); }

/* ── Settings: zoom step buttons ─────────────────────────────────────────────── */
.settings-zoom-step-btn {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #dfe7ff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s;
}
.settings-zoom-step-btn:hover { background: rgba(0,212,255,0.2); }

/* ── Settings: reset button ──────────────────────────────────────────────────── */
.settings-reset-btn {
    width: 100%;
    margin-top: 10px;
    padding: 7px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #7a8999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.settings-reset-btn:hover { background: rgba(255,79,106,0.12); border-color: rgba(255,79,106,0.3); color: #ff9aaa; }

#settings-modal-content .settings-body {
    max-height: min(560px, 62vh);
}

.settings-title {
    color: #e8ecff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.settings-tabs button {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #dfe7ff;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-tabs button.active {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.04);
}

.settings-body::-webkit-scrollbar {
    width: 4px;
}

.settings-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.settings-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.settings-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.55);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cfd7ff;
    font-size: 13px;
    min-height: 32px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
}

.settings-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.settings-row.range {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.settings-row.keybind button {
    min-width: 72px;
    min-height: 26px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 7px;
    background: rgba(0, 212, 255, 0.08);
    color: #dff6ff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.settings-row input[type="range"] {
    width: 100%;
}

.settings-hint {
    color: #8e96ad;
    font-size: 11px;
    line-height: 1.35;
}

.social-login-card {
    padding: 4px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-auth-empty {
    display: grid;
    gap: 10px;
}

.social-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
    gap: 8px;
}

.social-auth-actions button {
    min-height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(0, 212, 255, 0.26);
    background: rgba(0, 212, 255, 0.08);
    color: #dff8ff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.social-auth-actions button:hover {
    border-color: rgba(0, 212, 255, 0.58);
    background: rgba(0, 212, 255, 0.14);
}

.social-auth-actions .auth-text-action {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: #eaf8ff;
}

.social-auth-actions .discord {
    border-color: rgba(88, 101, 242, 0.58);
    background: #5865f2;
    color: #fff;
    overflow: hidden;
}

.social-auth-actions .discord span {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border-radius: 7px;
    background: rgba(255,255,255,0.16);
    color: transparent;
    position: relative;
}

.social-auth-actions .discord span::before {
    content: "";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.social-auth-actions .discord img,
.discord-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 4, 12, 0.7);
    backdrop-filter: blur(8px);
}

.auth-modal-card {
    width: min(420px, 94vw);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 13, 28, 0.98), rgba(7, 10, 22, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.64), inset 0 0 32px rgba(0, 212, 255, 0.04);
    overflow: hidden;
    animation: modalPopIn 0.18s ease-out both;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal-header h3 {
    margin: 0;
    color: #eaf8ff;
    font-size: 18px;
}

.auth-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 18px 0;
}

.auth-mode-tabs button,
.auth-submit,
.auth-discord-btn {
    min-height: 42px;
    border-radius: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.auth-mode-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #aab3ca;
}

.auth-mode-tabs button.active {
    border-color: rgba(0, 212, 255, 0.52);
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.auth-form-grid {
    display: grid;
    gap: 10px;
    padding: 14px 18px 0;
}

#auth-modal[data-mode="login"] #reg_user,
#auth-modal[data-mode="login"] #reg_pass,
#auth-modal[data-mode="login"] #auth-submit-register,
#auth-modal[data-mode="register"] #login_user,
#auth-modal[data-mode="register"] #login_pass,
#auth-modal[data-mode="register"] #auth-submit-login {
    display: none;
}

.auth-submit {
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: linear-gradient(90deg, #10a7f2, #08d2ff);
    color: #00131c;
    letter-spacing: .4px;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 10px;
    color: #707891;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.auth-discord-btn {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    border: 1px solid rgba(88, 101, 242, 0.65);
    background: #5865f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.discord-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.16);
    display: inline-grid;
    place-items: center;
    color: transparent;
    position: relative;
}

.discord-mark::before {
    content: "";
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.social-panel-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-notification-bell {
    position: relative;
    width: 30px;
    height: 28px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    color: #dff8ff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.social-notification-bell.has-notifications {
    border-color: rgba(255, 74, 104, 0.6);
    animation: bellWiggle 1.2s ease-in-out infinite;
}

.social-notification-bell .notif-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.55);
}

.social-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #e8ecff;
    font-size: 16px;
    font-weight: 800;
}

.social-panel-count {
    color: #00d4ff;
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    white-space: nowrap;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bellWiggle {
    0%, 48%, 100% { transform: rotate(0deg); }
    8% { transform: rotate(10deg); }
    16% { transform: rotate(-9deg); }
    24% { transform: rotate(7deg); }
    32% { transform: rotate(-5deg); }
}

.social-profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

.social-logout {
    width: 100%;
    margin-top: 8px;
    min-height: 34px;
    border: 1px solid rgba(255, 96, 120, 0.35);
    background: rgba(255, 96, 120, 0.09);
    color: #ff9aaa;
    border-radius: 9px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-logout:hover {
    background: rgba(255, 96, 120, 0.16);
    border-color: rgba(255, 96, 120, 0.58);
    color: #ffd6dc;
}

/* Ícone de logout — pequeno, no canto */
.social-logout-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 96, 120, 0.3);
    background: rgba(255, 96, 120, 0.08);
    color: #ff9aaa;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.social-logout-icon:hover {
    background: rgba(255, 96, 120, 0.18);
    border-color: rgba(255, 96, 120, 0.6);
    color: #ffd6dc;
}

.social-login-name,
.social-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.social-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-flag-btn,
.language-menu button {
    width: 34px;
    height: 30px;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-flag-btn:hover,
.language-menu button:hover,
.language-menu button.active {
    border-color: rgba(0, 212, 255, 0.48);
    background: rgba(0, 212, 255, 0.12);
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: none;
    grid-template-columns: repeat(4, 34px);
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    background: rgba(8, 10, 24, 0.98);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.language-picker.open .language-menu {
    display: grid;
}

.flag-icon {
    position: relative;
    display: inline-block;
    width: 21px;
    height: 14px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.flag-br {
    background: #149447;
}

.flag-br::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    background: #f7d23e;
    transform: translate(-50%, -50%) rotate(45deg);
}

.flag-br::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1e4fa8;
    transform: translate(-50%, -50%);
}

.flag-us {
    background: repeating-linear-gradient(to bottom, #c63c46 0 2px, #fff 2px 4px);
}

.flag-us::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 8px;
    background: #244c9f;
}

.flag-es {
    background: linear-gradient(to bottom, #c62835 0 25%, #f4c542 25% 75%, #c62835 75% 100%);
}

.social-row-open {
    flex: 1;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    border: none !important;
    background: transparent !important;
    min-height: auto !important;
}

.social-row-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.social-row-avatar.offline,
.social-row-main strong.offline {
    opacity: 0.42;
    filter: grayscale(1);
}

.presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #5a6074;
    box-shadow: none;
}

.presence-dot.online {
    background: #21d66b;
    box-shadow: 0 0 8px rgba(33, 214, 107, 0.75);
}

.presence-dot.offline {
    background: #4d5365;
    opacity: 0.55;
}

.social-login-name span,
.social-row-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-login-meta,
.social-row-main span,
.social-empty {
    display: block;
    margin-top: 3px;
    color: #a7a7b5;
    font-size: 12px;
}

.social-level-bar {
    position: relative;
    height: 13px;
    margin-top: 7px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.24);
    background: rgba(0, 0, 0, 0.32);
}

.social-level-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00d4ff, #ffd166);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.32);
}

.social-level-bar span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-shadow: 0 1px 3px #000;
}

.social-row-main span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-verified-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.social-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 6px 0;
}

/* Botões de aba com ícone */
.social-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #dfe7ff;
    border-radius: 7px;
    min-height: 36px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}
.social-tabs button img.social-tab-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.65;
    filter: saturate(0.5) brightness(1.2);
    transition: opacity 0.15s, filter 0.15s;
    display: block;
    pointer-events: none;
}
.social-tabs button:hover img.social-tab-icon,
.social-tabs button.active img.social-tab-icon {
    opacity: 1;
    filter: saturate(1) brightness(1) drop-shadow(0 0 5px rgba(0,212,255,0.55));
}
.social-tabs button .social-tab-count {
    font-size: 9px;
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
    font-family: 'Ubuntu', sans-serif;
    min-height: 10px;
}
/* Badge de notificação sobre o ícone */
.social-tab-badge {
    position: absolute;
    top: 3px;
    right: 4px;
    background: #ff3d5a;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    font-family: 'Ubuntu', sans-serif;
    border-radius: 8px;
    padding: 1px 4px;
    min-width: 14px;
    text-align: center;
    line-height: 13px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Demais botões do social panel (não abas) */
.social-row button,
.social-team-actions button,
#chat-action-menu button,
#leaderboard-action-menu button,
.team-invite-toast button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #dfe7ff;
    border-radius: 8px;
    min-height: 34px;
    cursor: pointer;
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-tabs button.active {
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(0, 212, 255, 0.14);
}

/* Tooltip customizado nas abas */
.social-tabs button[data-tooltip] { overflow: visible; }
.social-tabs button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 12, 22, 0.97);
    border: 1px solid rgba(0, 212, 255, 0.28);
    color: #c8dff0;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Ubuntu', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    z-index: 99999;
    line-height: 1.45;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
/* Pontinha do tooltip */
.social-tabs button[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 212, 255, 0.28);
    pointer-events: none;
    z-index: 99999;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 156px;
    /* ~3 itens visíveis */
    overflow-y: auto;
    padding-right: 4px;
    /* Scrollbar temática */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.04);
}

.social-list::-webkit-scrollbar {
    width: 4px;
}

.social-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.social-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.social-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.55);
}

.social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.055);
    min-width: 0;
}

#social-sidebar .social-list {
    gap: 8px;
    flex: 1;
    min-height: 0;
    max-height: none;
}

.social-row>button:not(.social-row-main) {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 10px;
}

.social-row button:disabled {
    opacity: 0.35;
    cursor: default;
}

.social-team-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

#chat-action-menu,
#leaderboard-action-menu {
    position: fixed;
    z-index: 10020;
    min-width: 190px;
    padding: 8px;
    background: rgba(12, 14, 28, 0.97);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

#chat-action-menu button,
#leaderboard-action-menu button {
    width: 100%;
    margin-top: 8px;
}

.chat-action-name {
    color: #fff;
    font-size: 13px;
}

.chat-action-name span {
    display: block;
    color: #9aa3b8;
    font-size: 11px;
    margin-top: 2px;
}

.team-invite-toast {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 10010;
    width: 260px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.32);
    background: rgba(8, 10, 24, 0.95);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.team-invite-toast span {
    display: block;
    color: #a7a7b5;
    margin: 3px 0 10px;
}

.team-invite-toast div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#discord-details-modal,
#ranking-details-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
}

.discord-details-card {
    width: min(420px, 92vw);
    position: relative;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.34);
    background: rgba(9, 11, 26, 0.98);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.discord-details-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #cfd7ff;
    cursor: pointer;
}

.discord-details-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 34px;
}

.discord-details-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.42);
}

.discord-details-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.discord-details-sub {
    margin-top: 5px;
    color: #a7a7b5;
    font-size: 13px;
}

.discord-details-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 10px;
    margin-top: 16px;
    font-size: 13px;
}

.discord-details-grid span {
    color: #8e96ad;
}

.discord-details-grid strong {
    color: #e8ecff;
    overflow-wrap: anywhere;
}

@media (max-width: 1240px) {
    .menu-ad-slot {
        display: none;
    }

    #overlays {
        grid-template-columns: minmax(300px, 360px) minmax(360px, 450px);
        grid-template-rows: auto auto;
        align-items: stretch;
        align-content: start;
    }

    #helloDialog {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    #social-sidebar {
        grid-column: 1;
        grid-row: 1;
        height: min(42vh, 350px);
        min-height: 250px;
    }

    #settings-sidebar {
        grid-column: 1;
        grid-row: 2;
        height: min(40vh, 330px);
        min-height: 230px;
    }
}

@media (max-width: 1024px) {
    #overlays {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: flex-start;
        align-content: start;
        overflow-y: auto;
        padding: 14px;
    }

    #social-sidebar {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    #settings-sidebar {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    #helloDialog {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: none;
    }

    #social-sidebar .social-list,
    #settings-sidebar .settings-body {
        max-height: none;
        overflow: visible;
    }
}

@media (max-height: 620px) and (min-width: 1025px) {
    #overlays {
        align-content: start;
        align-items: start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #helloDialog {
        align-self: start;
        padding-top: 22px;
        padding-bottom: 20px;
    }

    #title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .form-control,
    #nick,
    #gamemode,
    #play-btn,
    #spectate-btn {
        height: 44px;
    }

    .menu-controls-hint {
        margin-top: 12px;
        padding: 8px 0;
    }
}

body.menu-single-column #overlays {
    left: 0;
    right: auto;
    width: var(--menu-vw, 100vw);
    max-width: var(--menu-vw, 100vw);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: flex-start;
    align-content: start;
    overflow-y: auto;
    padding: 14px 14px calc(86px + env(safe-area-inset-bottom, 0px));
}

body.menu-single-column .top-settings-dock {
    position: fixed;
    top: 0;
    width: min(260px, 68vw);
}

body.menu-single-column .top-settings-button {
    min-width: 0;
    width: 100%;
    height: 38px;
    font-size: 12px;
}

body.menu-single-column #helloDialog {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: calc(var(--menu-vw, 100vw) - 28px);
}

body.menu-single-column #overlays[data-mobile-panel="game"] #social-sidebar,
body.menu-single-column #overlays[data-mobile-panel="game"] #settings-sidebar,
body.menu-single-column #overlays[data-mobile-panel="social"] #helloDialog,
body.menu-single-column #overlays[data-mobile-panel="social"] #settings-sidebar,
body.menu-single-column #overlays[data-mobile-panel="ranking"] #helloDialog,
body.menu-single-column #overlays[data-mobile-panel="ranking"] #social-sidebar,
body.menu-single-column #overlays[data-mobile-panel="settings"] #helloDialog,
body.menu-single-column #overlays[data-mobile-panel="settings"] #social-sidebar {
    display: none;
}

body.menu-single-column #overlays[data-mobile-panel="social"] #social-sidebar,
body.menu-single-column #overlays[data-mobile-panel="ranking"] #settings-sidebar,
body.menu-single-column #overlays[data-mobile-panel="settings"] #settings-sidebar {
    display: flex;
}

body.menu-single-column .mobile-menu-tabs {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 14px;
    background: rgba(7, 10, 22, 0.94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(0, 212, 255, 0.04);
    backdrop-filter: blur(12px);
}

body.menu-single-column .mobile-menu-tabs button {
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #cbd3ea;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

body.menu-single-column .mobile-menu-tabs button.active {
    border-color: rgba(0, 212, 255, 0.62);
    background: rgba(0, 212, 255, 0.16);
    color: #00d4ff;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

body.menu-single-column #social-sidebar {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: calc(var(--menu-vw, 100vw) - 28px);
    height: auto;
    max-height: none;
    min-height: 0;
}

body.menu-single-column #settings-sidebar {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: calc(var(--menu-vw, 100vw) - 28px);
    height: auto;
    max-height: none;
    min-height: 0;
}

body.menu-single-column #social-sidebar .social-list,
body.menu-single-column #settings-sidebar .settings-body {
    max-height: none;
    overflow: visible;
}

/* ============================================
   CONNECTING
   ============================================ */
#connecting {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(8, 8, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   CHAT
   ============================================ */
#chat_textbox {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 320px;
    height: 36px;
    background: rgba(8, 8, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    padding: 0 14px;
    outline: none;
    display: block;
    text-align: center;
}

#chat_textbox:focus {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(8, 8, 20, 0.95);
}

.clips-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
}

.clips-card {
    position: relative;
    width: min(620px, 92vw);
    max-height: 82vh;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.32);
    background: rgba(9, 11, 26, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
    padding: 18px;
}

.clips-card h3 {
    margin: 0 0 12px;
    color: #00d4ff;
    font-size: 20px;
}

.clips-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #dfe7ff;
    cursor: pointer;
}

.clips-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.clips-actions button {
    min-height: 34px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    color: #dff6ff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.clips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    color: #aeb7ce;
    font-size: 13px;
}

.clip-item {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.clip-item video {
    width: 100%;
    max-height: 240px;
    margin-top: 8px;
    border-radius: 8px;
    background: #000;
}

.menu-store-button {
    position: absolute;
    top: 0;
    left: calc(50% + 130px);
    z-index: 7;
    min-width: 126px;
    height: 44px;
    border: 1px solid rgba(255, 209, 102, 0.5);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(39, 28, 9, 0.98), rgba(78, 52, 12, 0.94));
    color: #ffe6a8;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 0 20px rgba(255, 209, 102, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-store-button:hover {
    border-color: rgba(255, 209, 102, 0.82);
    color: #ffffff;
}

.coin-store-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
    padding: 18px;
}

.coin-store-card {
    width: min(780px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.34);
    border-radius: 14px;
    background: rgba(8, 10, 22, 0.98);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62), 0 0 36px rgba(0, 212, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.coin-store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-store-header h3 {
    margin: 0 0 4px;
    color: #00d4ff;
    font-size: 22px;
}

.coin-store-header span {
    color: #b8c1d8;
    font-size: 13px;
}

.coin-store-header strong {
    color: #ffd166;
}

.coin-store-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #dfe7ff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.coin-store-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 20px 0;
}

.coin-store-tab {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #cbd3ea;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.coin-store-tab.active {
    border-color: rgba(0, 212, 255, 0.66);
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.coin-store-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.coin-package-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.coin-package-card {
    min-height: 132px;
    border: 1px solid rgba(255, 209, 102, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #eef4ff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Ubuntu', sans-serif;
}

.coin-package-card:hover {
    border-color: rgba(255, 209, 102, 0.74);
    background: rgba(255, 209, 102, 0.09);
}

.coin-package-card span {
    color: #cfd8ee;
    font-size: 13px;
}

.coin-package-card strong {
    color: #ffd166;
    font-size: 18px;
}

.coin-package-card em {
    color: #ffffff;
    font-style: normal;
    font-size: 15px;
}

.coin-store-payment {
    margin-top: 14px;
}

.coin-store-pix {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.055);
}

.coin-store-pix-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #dfe7ff;
    font-size: 13px;
}

.coin-store-qr {
    width: 180px;
    max-width: 100%;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    justify-self: center;
}

#coin-store-copy {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.26);
    color: #dfe7ff;
    padding: 10px;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.coin-store-pix button {
    min-height: 38px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 9px;
    background: rgba(0, 212, 255, 0.16);
    color: #dff8ff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.coin-store-status,
.coin-store-empty,
.coin-store-error {
    color: #aeb7ce;
    font-size: 13px;
}

.coin-store-error {
    color: #ff8aa8;
}

.coin-store-price-section {
    padding: 4px 0 18px;
}

.coin-store-price-section h4 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
}

.coin-store-price-table {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.coin-store-price-table div {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #dfe7ff;
    font-size: 15px;
}

.coin-store-price-table button,
.coin-store-upload button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 9px;
    background: rgba(0, 212, 255, 0.14);
    color: #dff8ff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    cursor: pointer;
}

.coin-store-slots {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 10px;
    background: rgba(255, 209, 102, 0.07);
    color: #dfe7ff;
    font-size: 13px;
}

.coin-store-slots strong {
    color: #ffd166;
}

.coin-store-upload {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.coin-store-upload h4 {
    margin: 0;
    color: #fff;
}

.coin-store-upload p {
    margin: 0;
    color: #aeb7ce;
    font-size: 12px;
}

.coin-store-upload input[type="file"] {
    color: #cbd3ea;
}

.private-skins-list {
    display: grid;
    gap: 8px;
}

.private-skin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.private-skin-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

.private-skin-row strong,
.private-skin-row span {
    display: block;
}

.private-skin-row strong {
    color: #fff;
    font-size: 13px;
}

.private-skin-row span {
    color: #aeb7ce;
    font-size: 11px;
    margin-top: 3px;
}

.coin-store-price-table strong {
    color: #ffd166;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .menu-store-button {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: start;
        margin-top: 0;
    }

    .coin-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .coin-store-tabs {
        grid-template-columns: 1fr;
    }

    .coin-package-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.9s linear infinite;
    margin: 12px auto 0;
}

.center {
    display: table;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MODAL BOOTSTRAP OVERRIDE
   ============================================ */
.modal-content {
    background: rgba(14, 14, 28, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-title {
    color: #00d4ff !important;
}

.modal-header .close {
    color: #aaa !important;
    text-shadow: none !important;
}

/* ============================================
   SKINS E HATS GALLERY
   ============================================ */
.skin-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.skin-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.skin-item.selected {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.skin-img-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-name {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.skin-status-tag {
    display: inline-flex;
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.1);
    color: #8cecff;
    font-size: 9px;
    text-transform: uppercase;
}

.skin-status-tag.gif {
    border-color: rgba(255, 209, 102, 0.42);
    background: rgba(255, 209, 102, 0.1);
    color: #ffd166;
}

.skin-status-tag.pending {
    border-color: rgba(250, 204, 21, 0.4);
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.skin-status-tag.rejected {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.skin-item-locked {
    cursor: not-allowed;
    opacity: 0.75;
}

.skin-item-locked:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

.skins-section-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: bold;
    color: #8cecff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 2px 4px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 4px;
}

/* ============================================
   RANKING SIDEBAR (NEW)
   ============================================ */
.right-sidebar-header-tabs,
.ranking-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.right-sidebar-header-tabs button,
.ranking-tabs button {
    flex: 1;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 900;
    color: #9aa1b6;
    background: #171a27;
    border: 2px solid #303445;
    cursor: pointer;
    transition: all 0.2s;
}

.right-sidebar-header-tabs button.active,
.ranking-tabs button.active {
    color: #00d9ff;
    background: #08293a;
    border-color: #0087a8;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.ranking-empty-state {
    min-height: 330px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 8px;
    color: #8790a8;
    border: 1px dashed rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.035);
}

.ranking-empty-state strong {
    color: #dff8ff;
    font-size: 18px;
}

.ranking-empty-state span {
    font-size: 13px;
    font-weight: 700;
}

.ranking-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}

.ranking-loading {
    text-align: center;
    padding: 60px 0;
    color: #5a6074;
    font-size: 14px;
    font-weight: 700;
}

.ranking-podium {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: end;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 10px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rank-float 3s ease-in-out infinite;
}

.podium-card {
    position: relative;
    width: 100%;
    border-radius: 18px;
    padding: 12px 6px 14px;
    text-align: center;
    background: #121622;
    border: 2px solid #272c3d;
    overflow: hidden;
}

.podium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    border-radius: 18px;
}

.podium-item.first { z-index: 2; }
.podium-item.first .podium-card {
    height: 160px;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, .15);
}
.podium-item.first .podium-card::before { background: linear-gradient(180deg, #ffd700, transparent 65%); }

.podium-item.second { animation-delay: -1s; }
.podium-item.second .podium-card {
    height: 140px;
    border-color: #c0c0c0;
}
.podium-item.second .podium-card::before { background: linear-gradient(180deg, #dce3f2, transparent 60%); }

.podium-item.third { animation-delay: -2s; }
.podium-item.third .podium-card {
    height: 130px;
    border-color: #cd7f32;
}
.podium-item.third .podium-card::before { background: linear-gradient(180deg, #d98835, transparent 60%); }

.podium-rank {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.first .podium-rank { color: #ffd700; font-size: 24px; }
.second .podium-rank { color: #e6e9f3; }
.third .podium-rank { color: #d98835; }

.podium-avatar-wrapper {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: #1a1e2e;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.first .podium-avatar-wrapper { width: 48px; height: 48px; border-color: #ffd700; }

.podium-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.podium-xp {
    position: relative;
    z-index: 2;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 800;
    color: #a6acc0;
}
.podium-xp-value {
    position: relative;
    z-index: 2;
    font-size: 9px;
    font-weight: 700;
    color: #71788c;
}

.podium-medal {
    position: relative;
    z-index: 2;
    margin-top: auto;
    height: 30px;
    padding-top: 2px;
}
.first .podium-medal { height: 36px; }
.podium-medal img { height: 100%; object-fit: contain; }

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-list-row {
    display: grid;
    grid-template-columns: 24px 34px 1fr 20px;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #121622;
    border: 1px solid #232838;
    animation: rank-slideIn .4s ease both;
}

.ranking-list-row.is-current-user {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
}

.row-pos {
    font-size: 14px;
    font-weight: 900;
    color: #71788c;
    text-align: center;
}

.row-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1e2e;
    border: 1px solid rgba(255,255,255,0.05);
}

.row-info { min-width: 0; }
.row-name {
    font-size: 13px;
    font-weight: 900;
    color: #eef1ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-meta {
    font-size: 10px;
    font-weight: 700;
    color: #a6acc0;
}

.row-badge {
    font-size: 12px;
    text-align: center;
}

.ranking-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.ranking-divider::before, .ranking-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}
.ranking-divider span {
    font-size: 9px;
    font-weight: 900;
    color: #5a6074;
    letter-spacing: 1px;
}

.ranking-footer-action {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ranking-footer-action button {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    background: #171a27;
    border: 1px solid #303445;
    color: #b9bcc8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.ranking-footer-action button:hover {
    color: #00d9ff;
    border-color: #0087a8;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

@keyframes rank-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rank-slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Clan tab ──────────────────────────────────────────────────────── */
.social-clan-card {
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.18);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.social-clan-tag {
    font-size: 15px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
}
.social-clan-name {
    font-size: 13px;
    color: #e8eaf6;
    margin: 2px 0 4px;
}
.social-clan-desc {
    font-size: 11px;
    color: #8892b0;
    margin-bottom: 8px;
}
.social-clan-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.social-clan-actions button {
    flex: 1;
    min-width: 80px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: .15s;
}
.social-clan-actions button:hover { background: rgba(255,255,255,0.12); }
.social-clan-members-title {
    font-size: 11px;
    color: #8892b0;
    margin: 10px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.social-clan-create { margin-bottom: 8px; }
.social-clan-create button {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(255,215,0,0.35);
    background: rgba(255,215,0,0.04);
    color: #ffd700;
    font-size: 13px;
    cursor: pointer;
    transition: .15s;
}
.social-clan-create button:hover { background: rgba(255,215,0,0.1); }
.social-clan-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e8eaf6;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
}
.social-clan-search:focus { border-color: rgba(0,217,255,0.4); }

/* ── Settings tabs: split & zoom ──────────────────────────────────── */
.settings-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-row.range input[type=range] {
    width: 100%;
    margin-top: 6px;
    accent-color: #00d9ff;
    cursor: pointer;
}
.settings-row.range span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

/* ── Settings: info/tip boxes ─────────────────────────────────────── */
.settings-info-box {
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 11px;
    color: #b0c8de;
    line-height: 1.5;
    margin-bottom: 12px;
}
.settings-info-box--highlight {
    background: rgba(255,193,0,0.07);
    border-color: rgba(255,193,0,0.25);
    color: #d4c47a;
}
.settings-info-box kbd {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: 'Consolas', monospace;
    color: #e0e8ff;
}

/* ── Settings: badge (e.g. "Recomendado") ────────────────────────── */
.settings-badge {
    display: inline-block;
    background: rgba(0,212,255,0.15);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ── Settings: zoom keyboard shortcut panel ──────────────────────── */
.settings-zoom-keys-panel {
    background: rgba(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,0.14);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0;
}
.settings-zoom-keys-title {
    font-size: 11px;
    font-weight: 700;
    color: #aec6e8;
    margin-bottom: 4px;
}
.settings-zoom-keys-hint {
    font-size: 10px;
    color: #6e8099;
    margin-bottom: 10px;
    line-height: 1.4;
}
.settings-zoom-keys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.settings-zoom-key-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.settings-zoom-key-icon {
    font-size: 18px;
    margin-bottom: 2px;
}
.settings-zoom-key-label {
    font-size: 10px;
    font-weight: 700;
    color: #c0d0e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.settings-zoom-key-desc {
    font-size: 9px;
    color: #6e8099;
    line-height: 1.35;
    margin-top: 3px;
}
.settings-keybind-btn--large {
    padding: 6px 18px;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.settings-zoom-keys-hint-off {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 11px;
    color: #6e8099;
    text-align: center;
    margin: 8px 0;
    line-height: 1.45;
}

/* ── Clan chat message ────────────────────────────────────────────── */
.chat-message.clan-chat { color: #ffd700; }
.chat-clan-tag {
    font-size: 10px;
    background: rgba(255,215,0,0.15);
    border-radius: 3px;
    padding: 1px 4px;
    margin-right: 3px;
    vertical-align: middle;
}
