/* ---------------------------------------------------
   VARIÁVEIS GERAIS
   --------------------------------------------------- */
:root {
    --bg-color: #050510;
    --console-bg: #141420;
    --console-border: #404050;
    --text-main: #d0d0e0;
    --accent-gold: #f1c40f;
    --font-header: 'Press Start 2P', cursive;
    --font-body: 'VT323', monospace;

    --cor-purple: #8f56e3;
    --cor-green: #2ecc71;
    --cor-blue: #4d9be6;
    --cor-red: #ff0055;

    /* Aliases para manter compatibilidade com script.js */
    --neon-green: var(--cor-green);
    --neon-blue: var(--cor-blue);
    --neon-purple: var(--cor-purple);
    --neon-red: var(--cor-red);

    --brilho-purple: 0 0 10px var(--cor-purple), 0 0 20px rgba(143, 86, 227, 0.4);
    --brilho-green: 0 0 10px var(--cor-green), 0 0 20px rgba(46, 204, 113, 0.4);
    --brilho-blue: 0 0 10px var(--cor-blue), 0 0 20px rgba(77, 155, 230, 0.4);
    --brilho-red: 0 0 10px var(--cor-red), 0 0 20px rgba(255, 0, 85, 0.4);

    --brilho-txt-purple: 0 0 5px var(--cor-purple), 0 0 10px var(--cor-purple);
    --brilho-txt-green: 0 0 5px var(--cor-green), 0 0 10px var(--cor-green);
    --brilho-txt-blue: 0 0 5px var(--cor-blue), 0 0 10px var(--cor-blue);
    --brilho-txt-red: 0 0 5px var(--cor-red), 0 0 10px var(--cor-red);

    --sombra-fontes: 2px 2px 0px rgba(0, 0, 0, 0.8);
    --sombra-paineis: 5px 5px 0px rgba(0, 0, 0, 0.8);
    --sombra-botoes: 3px 3px 0px rgba(0, 0, 0, 0.8);
    --sombra-janelas: 0 10px 20px rgba(0, 0, 0, 0.9);

    --scanline-janelas-display: block;
    --scanline-paineis-display: block;
    --scanline-botoes-display: block;
    --scanline-fontes-display: block;
}

/* =============================================   SCROLLBAR PADRÃO NEON (TODO O SITE)   ============================================= */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--cor-blue) rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
  background: var(--cor-blue);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  transition: background 0.3s;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--cor-green);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---------------------------------------------------
   SISTEMA DE DESATIVAÇÃO DE EFEITOS
   --------------------------------------------------- */
body.no-neon-fontes { --brilho-txt-purple: none; --brilho-txt-green: none; --brilho-txt-blue: none; --brilho-txt-red: none; }
body.no-brilho-fontes { --brilho-txt-purple: none; --brilho-txt-green: none; --brilho-txt-blue: none; --brilho-txt-red: none; }
body.no-neon-paineis { --brilho-purple: none; --brilho-blue: none; --brilho-red: none; --brilho-green: none; }
body.no-brilho-paineis { --brilho-purple: none; --brilho-blue: none; --brilho-red: none; --brilho-green: none; }
body.no-neon-botoes { --brilho-purple: none; --brilho-blue: none; --brilho-green: none; }
body.no-brilho-botoes { --brilho-purple: none; --brilho-blue: none; --brilho-green: none; }
body.no-neon-janelas { --brilho-purple: none; --brilho-blue: none; --brilho-red: none; --brilho-green: none; }
body.no-brilho-janelas { --brilho-purple: none; --brilho-blue: none; --brilho-red: none; --brilho-green: none; }
body.no-neon-icones { --brilho-txt-purple: none; --brilho-txt-green: none; --brilho-txt-blue: none; --brilho-txt-red: none; }
body.no-brilho-icones { --brilho-txt-purple: none; --brilho-txt-green: none; --brilho-txt-blue: none; --brilho-txt-red: none; }
body.no-sombra-fontes { --sombra-fontes: none; }
body.no-sombra-janelas { --sombra-janelas: none; }
body.no-sombra-botoes { --sombra-botoes: none; }
body.no-sombra-paineis { --sombra-paineis: none; }
body.no-sombra-icones i { filter: none !important; }
body.no-anim-paineis .panel-box::before { display: none !important; animation: none !important; }
body.no-anim-janelas .profile-header-custom::before { display: none !important; animation: none !important; }
body.no-anim-botoes .btn-social::before,
body.no-anim-botoes .nav-icon-btn::before { display: none !important; animation: none !important; }
body.no-anim-fontes .live-text-anim { animation: none !important; opacity: 1 !important; }
body.no-anim-icones .live-icon-anim { animation: none !important; opacity: 1 !important; }
body.no-scanline-janelas { --scanline-janelas-display: none; }
body.no-scanline-paineis { --scanline-paineis-display: none; }
body.no-scanline-botoes { --scanline-botoes-display: none; }
body.no-scanline-fontes { --scanline-fontes-display: none; }

/* ---------------------------------------------------
   ESTILOS GERAIS / RESET
   --------------------------------------------------- */
* { box-sizing: border-box; outline: none; }
html { font-size: 100%; transition: font-size 0.3s; }
html, body { overflow: hidden !important; }

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--console-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--console-border) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin: 0; padding: 0; height: 100vh;
}

body::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
    pointer-events: none; z-index: 9999;
    display: var(--scanline-janelas-display);
}

/* Acessibilidade */
body.text-large .nav-icon-btn { width: 40px; height: 40px; font-size: 1.2rem; }
body.text-large .btn-social { width: 50px; height: 40px; font-size: 1.2rem; }
body.text-xlarge .nav-icon-btn { width: 45px; height: 45px; font-size: 1.4rem; }
body.text-xlarge .btn-social { width: 55px; height: 45px; font-size: 1.4rem; }

/* Animações */
@keyframes rotarRaio { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes border-flicker { 0% { border-color: var(--neon-blue); box-shadow: 0 0 5px var(--neon-blue); } 2% { border-color: #fff; box-shadow: 0 0 15px #fff, inset 0 0 5px #fff; } 4% { border-color: var(--neon-blue); box-shadow: 0 0 5px var(--neon-blue); } 8% { opacity: 0.8; } 9% { opacity: 1; } 100% { border-color: var(--neon-blue); box-shadow: 0 0 5px var(--neon-blue); } }
@keyframes nudgeShake { 0% { transform: translate(3px,3px); border-color: #ff0055; box-shadow: 0 0 15px #ff0055; } 25% { transform: translate(-3px,-3px); border-color: #0088ff; box-shadow: 0 0 15px #0088ff; } 50% { transform: translate(3px,-3px); border-color: #ff0055; box-shadow: 0 0 15px #ff0055; } 75% { transform: translate(-3px,3px); border-color: #0088ff; box-shadow: 0 0 15px #0088ff; } 100% { transform: translate(3px,3px); border-color: #ff0055; box-shadow: 0 0 15px #ff0055; } }
@keyframes glowGold { from { box-shadow: 0 0 5px var(--accent-gold); } to { box-shadow: 0 0 15px var(--accent-gold); } }
@keyframes pulseRed { from { opacity: 1; } to { opacity: 0.5; } }
.live-icon-anim { animation: pulse 1.5s infinite; }
.live-text-anim { animation: pulse 1.5s infinite; }

/* ---------------------------------------------------
   SCANLINES E OVERLAYS
   --------------------------------------------------- */
.scanline-over {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
    pointer-events: none; z-index: 5;
}
.scan-fontes { position: relative; }
.scan-fontes::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 2px);
    pointer-events: none; display: var(--scanline-fontes-display);
}

/* ---------------------------------------------------
   BARRA SUPERIOR (TOPBAR)
   --------------------------------------------------- */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #080808; border-bottom: 2px solid var(--cor-purple);
    box-shadow: var(--sombra-janelas), var(--brilho-purple);
    z-index: 10000; display: flex; align-items: center;
    padding: 0 20px; gap: 20px; border-radius: 0 0 10px 10px;
}
.logo-area {
    font-family: var(--font-header); font-size: 1rem; color: var(--cor-purple);
    cursor: pointer; text-shadow: var(--sombra-fontes), var(--brilho-txt-purple);
    display: flex; gap: 10px; align-items: center; white-space: nowrap;
}
.global-search-container { flex-grow: 1; max-width: 500px; position: relative; display: flex; align-items: center; flex-direction: column; align-items: stretch; }
.global-search-input {
    width: 100%; background: #1a1a1a; border: 1px solid #333; color: #fff;
    padding: 8px 40px 8px 15px; border-radius: 20px; font-family: var(--font-body);
    font-size: 1.1rem; transition: 0.2s;
}
.global-search-input:focus { border-color: var(--cor-blue); box-shadow: 0 0 10px rgba(77,155,230,0.3); }
.search-btn-absolute {
    position: absolute; right: 10px; background: transparent; border: none;
    color: #666; cursor: pointer; font-size: 1rem; transition: 0.2s; z-index: 10;
}
.search-btn-absolute:hover { color: var(--cor-blue); transform: scale(1.1); }
.search-results-dropdown {
    position: absolute; top: 0; margin-top: 5px; left: 0; width: 100%; background: #111;
    border: 1px solid #333; border-radius: 8px; max-height: 300px; overflow-y: auto;
    display: none; box-shadow: 0 10px 20px #000; z-index: 100;
}
.search-item {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    border-bottom: 1px solid #222; cursor: pointer; transition: 0.2s;
}
.search-item:hover { background: #222; border-left: 2px solid var(--cor-blue); padding-left: 15px; }
.search-item img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.search-item.friend { border-left: 3px solid var(--cor-green); background: rgba(46,204,113,0.05); }

.nav-icons { display: flex; gap: 15px; margin-left: auto; }
.nav-icon-btn {
    width: 35px; height: 35px; background: transparent; border: 1px solid #333;
    color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; position: relative; overflow: hidden;
}
.nav-icon-btn::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.8), var(--cor-blue), transparent 30%);
    animation: rotarRaio 2s linear infinite; z-index: -2; opacity: 0; transition: 0.3s;
}
.nav-icon-btn::after { content: ''; position: absolute; inset: 1px; background: #1a1a1a; z-index: -1; opacity: 0; transition: 0.3s; }
.nav-icon-btn i { position: relative; z-index: 1; }
.nav-icon-btn:hover, .nav-icon-btn.active {
    color: var(--cor-blue); border-color: transparent;
    box-shadow: var(--sombra-botoes), var(--brilho-blue); text-shadow: var(--brilho-txt-blue);
}
.nav-icon-btn:hover::before, .nav-icon-btn.active::before,
.nav-icon-btn:hover::after, .nav-icon-btn.active::after { opacity: 1; }
.nav-icon-btn.btn-config:hover i { transform: rotate(90deg); transition: 0.3s; }
.badge-count {
    position: absolute; top: -3px; right: -3px; background: var(--cor-red);
    color: #fff; font-size: 0.5rem; padding: 1px 3px; border-radius: 2px;
}

.dlc-dropdown {
    display: none; position: absolute; top: 55px; right: 80px; width: 300px;
    max-height: 250px; overflow-y: auto; background: #0a0a0a; border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px #000; z-index: 20000; font-size: 0.9rem;
}
.dlc-dropdown.active { display: block; animation: slideDown 0.2s; }
.dlc-header { background: var(--accent-gold); color: #000; padding: 5px; font-family: var(--font-header); font-size: 0.7rem; text-align: center; }
.dlc-item { padding: 10px; border-bottom: 1px solid #333; display: flex; align-items: center; gap: 10px; color: #ccc; transition: 0.2s; }
.dlc-item:hover { background: #1a1a1a; color: #fff; }

.mini-profile-head { display: none; align-items: center; gap: 10px; cursor: pointer; background: rgba(20,20,32,0.8); padding: 5px 15px; border: 1px solid var(--neon-blue); border-radius: 20px; }
.mini-profile-head img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--neon-green); object-fit: cover; }

/* =============================================
   LAYOUT PRINCIPAL (FEED) – GRID DE 3 COLUNAS
   ============================================= */
#pageFeed { display: none; }
#pageFeed.active {
    position: fixed; top: 70px; left: 0; right: 0; margin: 0 auto;
    width: 100%; max-width: 1300px; height: calc(100vh - 70px);
    display: flex; gap: 15px; padding: 0; z-index: 45; overflow: hidden;
}
.sidebar-left { width: 280px; flex-shrink: 0; height: 100%; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 10px; }
.sidebar-right { width: 280px; flex-shrink: 0; height: 100%; overflow-y: auto; overflow-x: hidden; }
.feed-main { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; max-width: 2000px; margin: 0 auto; overflow: hidden; gap: 15px; }
#appContentBlock { display: flex; flex-direction: column; flex: 1; height: 100%; overflow: hidden; padding-top: 0 !important; }

#appContentBlock > .inner-section {
    display: none; flex-direction: column; flex: 1; min-width: 0;
    height: 100%; overflow: hidden; padding: 0 !important;
}
#appContentBlock > .inner-section.active { display: flex; }

.inner-section .panel-header,
.inner-section .section-header {
    height: 35px; min-height: 35px; flex-shrink: 0; margin: 0 !important;
    padding: 0 15px !important; display: flex; align-items: center;
    justify-content: flex-start; background: #000;
    border-bottom: 2px solid var(--cor-blue); width: 100%;
}
.inner-section .panel-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 15px; min-height: 0; }

.sidebar-left[style*="display: none"],
.sidebar-right[style*="display: none"] { display: none !important; }

/* ---------------------------------------------------
   PAINÉIS E COMPONENTES VISUAIS
   --------------------------------------------------- */
.panel-box {
    position: relative; overflow: hidden; background: #0d0d0d;
    border: 2px solid var(--cor-purple); box-shadow: var(--sombra-paineis), var(--brilho-purple);
    margin-bottom: 10px; z-index: 1; border-radius: 12px; transition: 0.2s;
}
.panel-box:hover { transform: translateY(-2px); }
.panel-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.7), var(--cor-purple), transparent 25%);
    animation: rotarRaio 4s linear infinite; z-index: -2;
}
.panel-box::after { content: ''; position: absolute; inset: 2px; background: var(--console-bg); z-index: -1; }
.panel-box .scanline-over { display: var(--scanline-paineis-display); }
.panel-header {
    position: relative; z-index: 2; background: #000; color: var(--cor-purple);
    font-family: var(--font-header); font-size: 0.6rem; padding: 10px;
    border-bottom: 2px solid var(--cor-purple);
    text-shadow: var(--sombra-fontes), var(--brilho-txt-purple);
    display: flex; justify-content: space-between; align-items: center;
}
.panel-content { position: relative; z-index: 2; padding: 15px; }
.panel-blue { border-color: var(--cor-blue); box-shadow: var(--sombra-paineis), var(--brilho-blue); }
.panel-blue::before { background: conic-gradient(transparent, rgba(255,255,255,0.7), var(--cor-blue), transparent 25%); }
.panel-blue .panel-header { color: var(--cor-blue); border-color: var(--cor-blue); text-shadow: var(--sombra-fontes), var(--brilho-txt-blue); }
.panel-red { border-color: var(--cor-red); box-shadow: var(--sombra-paineis), var(--brilho-red); }
.panel-red::before { background: conic-gradient(transparent, rgba(255,255,255,0.7), var(--cor-red), transparent 25%); }
.panel-red .panel-header { color: var(--cor-red); border-color: var(--cor-red); text-shadow: var(--sombra-fontes), var(--brilho-txt-red); }

/* Mini perfil */
.mini-profile-box { padding: 0; }
.mini-profile-banner { height: 75px; background: #1a1a1a; background-size: cover; background-position: center; border-bottom: 1px solid #333; position: relative; z-index: 2; }
.mini-profile-content { padding: 0 10px 15px; position: relative; z-index: 2; text-align: center; margin-top: -30px; }
.mini-profile-avatar { width: 70px; height: 70px; background: #000; background-size: cover; background-position: center; border: 2px solid var(--cor-purple); border-radius: 4px; box-shadow: var(--sombra-paineis), var(--brilho-purple); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.mini-profile-name { font-family: var(--font-header); color: var(--cor-green); font-size: 0.8rem; text-shadow: var(--sombra-fontes), var(--brilho-txt-green); margin-bottom: 5px; }
.mini-profile-bio { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.mini-profile-stats { font-size: 0.65rem; color: #666; display: flex; justify-content: center; gap: 6px; }
.mini-profile-stats span { color: var(--accent-gold); font-weight: bold; }

/* ---------------------------------------------------
   LOGIN / LANDING PAGE
   --------------------------------------------------- */
#landing-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 20000; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20px; }
.auth-terminal { background: var(--console-bg); border: 4px solid #000; box-shadow: 0 0 0 2px var(--console-border), 0 0 40px rgba(143,86,227,0.2); padding: 40px; width: 100%; max-width: 450px; text-align: center; }
.auth-logo { font-family: var(--font-header); font-size: 1.5rem; color: var(--neon-purple); margin-bottom: 10px; text-shadow: 3px 3px #000; }
.auth-welcome { font-size: 1rem; color: #888; margin-bottom: 30px; border-bottom: 1px dashed #333; padding-bottom: 20px; }
.auth-input { width: 100%; background: #000; border: 1px solid #333; color: var(--neon-green); padding: 12px; margin-bottom: 10px; font-family: var(--font-body); font-size: 1.1rem; transition: 0.3s; }
.auth-input:focus { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(77,155,230,0.2); }
.pass-wrapper { position: relative; margin-bottom: 10px; width: 100%; }
.pass-wrapper input { margin-bottom: 0; padding-right: 40px; }
.pass-eye { position: absolute; right: 10px; top: 12px; color: #555; cursor: pointer; transition: 0.2s; z-index: 10; }
.pass-eye:hover { color: var(--neon-blue); }
.auth-btn { width: 100%; padding: 12px; border: none; cursor: pointer; font-family: var(--font-header); font-size: 0.8rem; margin-top: 10px; text-transform: uppercase; transition: 0.2s; }
.btn-login { background: var(--neon-green); color: #000; }
.btn-login:hover { box-shadow: 0 0 15px var(--neon-green); }
.btn-google { background: #fff; color: #333; margin-top: 10px; }
.auth-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.auth-link { color: #888; cursor: pointer; text-decoration: underline; }
.auth-link:hover { color: #fff; }
.checkbox-wrapper { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 0.8rem; color: #aaa; margin: 10px 0; }
.checkbox-wrapper input { margin-top: 3px; }

#app-content { display: none; padding-top: 60px; }
.console-container { max-width: 1100px; margin: 0 auto; background: var(--console-bg); border: 4px solid #000; box-shadow: inset 0 0 0 2px var(--console-border), 0 0 30px rgba(143,86,227,0.3); padding: 20px; position: relative; }

/* ---------------------------------------------------
   DASHBOARD / CHALLENGE / HP BAR
   --------------------------------------------------- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "activeChallenges top10" "missionReport records"; gap: 20px; margin-bottom: 20px; }
.area-challenges { grid-area: activeChallenges; }
.area-top10 { grid-area: top10; }
.area-mission { grid-area: missionReport; }
.area-records { grid-area: records; }

.challenge-row { background: #0a0a0a; border: 1px solid #333; padding: 10px; margin-bottom: 10px; position: relative; }
.challenge-name { color: #fff; font-weight: bold; display: block; margin-bottom: 5px; font-size: 1rem; }
.challenge-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #ccc; }
.hp-track { width: 100%; height: 24px; background: #0e0e0e; border: 2px solid #555; margin-top: 8px; position: relative; box-shadow: 2px 2px 0px #000; }
.hp-fill { height: 100%; background: linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71); transition: width 0.6s ease-out; position: relative; overflow: hidden; }
.hp-fill::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, transparent 0px, transparent 4px, rgba(0,0,0,0.8) 4px, rgba(0,0,0,0.8) 5px); z-index: 2; pointer-events: none; }
.challenge-from { font-size: 0.7rem; color: var(--neon-blue); margin-top: 5px; font-style: italic; }
.challenge-actions { display: flex; gap: 5px; margin-top: 5px; }

/* TOP 10 */
.rank-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; margin-bottom: 6px; background: #080808; border: 1px solid #333; transition: 0.2s; }
.rank-info { display: flex; align-items: center; gap: 10px; }
.rank-pos { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-family: var(--font-header); font-size: 0.8rem; border: 2px solid #333; background: #000; color: #555; }
.rank-score { text-align: right; line-height: 1; }
.rank-val { color: var(--accent-gold); font-weight: bold; }
.rank-clears { font-size: 0.7rem; color: #666; }
.rank-1 { border: 1px solid #ffcc00 !important; box-shadow: 0 0 8px rgba(255,204,0,0.3) !important; animation: none !important; }
.rank-1 .rank-pos { background: #ffcc00 !important; color: #000 !important; font-weight: bold !important; border: 1px solid #ffcc00 !important; }
.rank-2 { border: 1px solid #cccccc !important; box-shadow: none !important; animation: none !important; }
.rank-2 .rank-pos { background: #cccccc !important; color: #000 !important; font-weight: bold !important; border: 1px solid #cccccc !important; }
.rank-3 { border: 1px solid #cd7f32 !important; box-shadow: none !important; animation: none !important; }
.rank-3 .rank-pos { background: #cd7f32 !important; color: #000 !important; font-weight: bold !important; border: 1px solid #cd7f32 !important; }
.rank-4, .rank-5 { border: 1px solid rgba(255,255,255,0.05) !important; border-left: 3px solid #00ff00 !important; box-shadow: none !important; animation: none !important; }
.rank-4 .rank-pos, .rank-5 .rank-pos { background: transparent !important; color: #00ff00 !important; font-weight: bold !important; border: 2px solid #00ff00 !important; }
.rank-6 .rank-pos, .rank-7 .rank-pos, .rank-8 .rank-pos, .rank-9 .rank-pos, .rank-10 .rank-pos { background: transparent !important; color: #666666 !important; font-weight: bold !important; border: 2px solid #444444 !important; }

/* Mini ranking */
#sidebarAmigosRank .rank-mini-item,
#sidebarGlobalRank .rank-mini-item { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #222; font-size: 0.7rem; }
.rank-mini-item:last-child { border-bottom: none; }
.rank-mini-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--cor-purple); }

/* Mission table */
.mission-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-family: var(--font-body); }
.mission-table th { text-align: left; border-bottom: 2px solid #444; color: var(--neon-purple); padding: 8px 4px; font-family: var(--font-header); font-size: 0.7rem; }
.mission-table td { border-bottom: 1px solid #222; padding: 6px 4px; color: #888; }
.mission-table .highlight { color: var(--neon-green); font-weight: bold; }
.mission-table tr:last-child td { border-top: 2px solid #555; border-bottom: none; color: #fff; padding-top: 10px; }

.record-row { display: flex; justify-content: space-between; border-bottom: 1px solid #222; padding: 8px 0; font-size: 0.9rem; transition: 0.3s; }
.record-label { color: #888; }
.record-val { color: var(--neon-blue); font-weight: bold; }
.worst-list { font-size: 0.8rem; color: var(--neon-red); margin-top: 5px; }

/* ---------------------------------------------------
   FORMULÁRIOS
   --------------------------------------------------- */
input, select { width: 100%; background: #000; border: 1px solid #333; color: var(--neon-green); font-family: var(--font-body); font-size: 1rem; padding: 5px; margin-bottom: 5px; height: 35px; }
.form-row { display: flex; gap: 10px; }
.settings-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card { background: #0e0e0e; border: 1px solid #333; padding: 15px; }
.settings-card h3 { color: var(--neon-purple); border-bottom: 1px solid #333; padding-bottom: 5px; font-size: 0.9rem; margin-top: 0; font-family: var(--font-header); }
.full-width { grid-column: span 2; }

/* ---------------------------------------------------
   CARTUCHOS DE JOGOS
   --------------------------------------------------- */
.game-cartridge { background: #1a1a1a; border: 2px solid #000; margin-bottom: 15px; display: flex; box-shadow: 4px 4px 0 #000; min-height: 110px; position: relative; transition: 0.2s; }
.game-cartridge:hover { animation: border-flicker 1.5s infinite; transform: translateY(-2px); }
.cart-art { width: 90px; background: #000; flex-shrink: 0; position: relative; overflow: hidden; border-right: 2px solid #000; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.cart-art:hover { opacity: 0.8; }
.cart-art img { width: 100%; height: 100%; object-fit: contain; }
.cart-body { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-title { font-size: 1.3rem; color: #fff; line-height: 1.1; margin-bottom: 2px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.cart-title:hover { color: var(--neon-blue); }
.cart-meta { font-size: 0.85rem; color: #aaa; margin-bottom: 5px; }
.scores-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.score-mini { font-size: 0.7rem; color: #666; display: flex; align-items: center; gap: 3px; border: 1px solid #333; padding: 1px 4px; border-radius: 4px; }
.score-mini i { color: var(--neon-purple); font-size: 0.6rem; }
.rank-box-absolute { position: absolute; right: 15px; top: -8px; height: 55px; width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; border: 2px solid var(--neon-purple); box-shadow: 0 4px 10px rgba(0,0,0,0.8); z-index: 10; transform: rotate(-2deg); }
.cart-rank { font-family: var(--font-header); font-size: 1.1rem; color: var(--accent-gold); text-shadow: 2px 2px #000; line-height: 1; }
.cart-rank-label { font-size: 0.5rem; color: #8f56e3; text-transform: uppercase; margin-top: 2px; }
.delete-btn-area { position: absolute; bottom: 5px; right: 90px; }
.game-cartridge.recommend-green { border: 2px solid var(--cor-green) !important; box-shadow: 0 0 10px rgba(46,204,113,0.8); }
.game-cartridge.recommend-red { border: 2px solid var(--cor-red) !important; box-shadow: 0 0 10px rgba(255,0,85,0.8); }
.game-cartridge.recommend-blue { border: 2px solid var(--cor-blue) !important; box-shadow: 0 0 10px rgba(77,155,230,0.6); }

/* ---------------------------------------------------
   BOTÕES GLOBAIS
   --------------------------------------------------- */
.btn { background: #222; border: 2px solid #555; color: #aaa; font-family: var(--font-header); font-size: 0.7rem; padding: 10px 15px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 0 #000; transition: 0.1s; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.btn-green { background: var(--neon-green); border-color: #27ae60; color: #000; }
.btn-red { background: var(--neon-red); border-color: #c0392b; color: #fff; }
.btn-red-pulse { animation: pulseRed 0.5s infinite alternate; background: var(--neon-red); color: #fff; }
.gg-btn { border: 1px solid var(--accent-gold); background: #000; color: var(--accent-gold); padding: 2px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-family: var(--font-header); transition: 0.2s; display: flex; align-items: center; gap: 5px; }
.gg-btn:hover { background: var(--accent-gold); color: #000; box-shadow: 0 0 10px var(--accent-gold); }
.gg-btn.active { background: var(--accent-gold); color: #000; box-shadow: inset 0 0 5px #000; }

/* ---------------------------------------------------
   MODAIS
   --------------------------------------------------- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 25000; align-items: center; justify-content: center; }
.modal-box { background: #000; border: 2px solid var(--neon-purple); padding: 20px; width: 350px; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 10px; right: 10px; cursor: pointer; color: #555; font-size: 1.5rem; }
.crop-container { width: 100%; height: 300px; background: #333; margin-bottom: 15px; }
#imageToCrop { max-width: 100%; display: block; }
.game-modal-wide { width: 600px; border-color: var(--neon-green); }
.rating-grid-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; border: 1px dashed #333; padding: 10px; }
.rating-item { display: flex; justify-content: space-between; align-items: center; }
.rating-item label { font-size: 0.8rem; color: #ccc; }
.rating-item select { width: 60px; height: 30px; }
.modal-footer-btn { margin-top: 15px; border-top: 1px dashed #333; padding-top: 10px; text-align: right; }

/* ---------------------------------------------------
   SEARCH PAGE (ESTRUTURA BASE)
   --------------------------------------------------- */
.search-header { margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.search-tabs { display: flex; gap: 10px; margin-top: 10px; }
.search-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.result-card-person { display: flex; align-items: center; gap: 15px; background: #0e0e0e; border: 1px solid #333; padding: 15px; margin-bottom: 10px; border-radius: 8px; transition: 0.2s; }
.result-card-person:hover { border-color: var(--neon-blue); transform: translateX(5px); }
.rc-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #333; }
.rc-info { flex: 1; }
.rc-name { color: #fff; font-weight: bold; font-size: 1.1rem; }
.rc-bio { color: #888; font-size: 0.8rem; }
.rc-btn { padding: 5px 10px; font-size: 0.7rem; }
.suggestion-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #222; }
.suggestion-item:last-child { border-bottom: none; }
.sug-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sug-info { flex: 1; overflow: hidden; }
.sug-name { font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-reason { font-size: 0.7rem; color: var(--accent-gold); }
.sug-action { font-size: 1.2rem; color: var(--neon-green); cursor: pointer; padding: 5px; }
.sug-action:hover { transform: scale(1.2); }

/* ---------------------------------------------------
   PERFIL (PÁGINA COMPLETA)
   --------------------------------------------------- */
#pageProfile {
    position: fixed !important; top: 70px !important; left: 15px !important; right: 15px !important;
    bottom: 0 !important; height: calc(100vh - 70px) !important; padding-top: 0 !important;
    overflow-y: auto !important; overflow-x: hidden !important; z-index: 50 !important; background: transparent !important;
}
#pageProfile .profile-container { width: 100% !important; max-width: 1300px !important; margin: 0 auto !important; display: flex !important; flex-direction: column !important; padding-bottom: 40px !important; }
#pageProfile .profile-header-custom { position: relative; overflow: hidden; background: transparent; border: 2px solid var(--console-border); margin-bottom: 0 !important; box-shadow: var(--sombra-janelas); z-index: 10 !important; border-radius: 8px; width: 100% !important; flex-shrink: 0 !important; }
#pageProfile .profile-header-custom::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(255,255,255,0.5), var(--cor-purple), transparent 20%); animation: rotarRaio 6s linear infinite; z-index: -2; display: var(--anim-janelas-display, block); }
#pageProfile .profile-header-custom::after { content: ''; position: absolute; inset: 2px; background: #111; z-index: -1; border-radius: 6px; }
#pageProfile .banner-area { height: 180px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; border-bottom: 2px solid var(--cor-purple); border-radius: 6px 6px 0 0; }
#pageProfile #profileBanner { height: 180px !important; max-height: 180px !important; background-color: #1a1a1a; }
.banner-placeholder-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #888; font-size: 0.75rem; text-align: center; pointer-events: none; z-index: 5; text-shadow: var(--sombra-fontes); white-space: nowrap; }
.banner-text { position: absolute; bottom: 5px; right: 12px; color: #ccc; font-size: 0.7rem; text-shadow: var(--sombra-fontes); z-index: 5; max-width: 70%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-area.has-image .banner-placeholder-text,
.banner-area.has-image .banner-text { display: none; }
#pageProfile .profile-main-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 20px 15px 20px; margin-top: -60px; position: relative; z-index: 2; }
#pageProfile .social-group { display: flex; gap: 10px; margin-bottom: 10px; }
.btn-social {
    position: relative; overflow: hidden; z-index: 1; width: 40px; height: 40px;
    background: transparent; border: 1px solid #333; color: #fff; display: flex;
    align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; border-radius: 4px;
}
.btn-social::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(255,255,255,0.8), var(--cor-blue), transparent 30%); animation: rotarRaio 2s linear infinite; z-index: -2; opacity: 0; transition: 0.3s; display: var(--anim-botoes-display, block); }
.btn-social::after { content: ''; position: absolute; inset: 1px; background: #1a1a1a; z-index: -1; transition: 0.3s; border-radius: 3px; }
.btn-social:hover { border-color: transparent; color: var(--cor-blue); box-shadow: var(--sombra-botoes), var(--brilho-blue); text-shadow: var(--brilho-txt-blue); }
.btn-social:hover::before { opacity: 1; }
.btn-social:hover::after { background: #000; }
#pageProfile .profile-avatar-wrapper { position: relative; z-index: 10; margin-bottom: -20px; }
#pageProfile .profile-avatar-square { width: 140px; height: 140px; background: #000; background-size: cover; background-position: center; border: 4px solid var(--cor-purple); border-radius: 8px; box-shadow: var(--sombra-paineis), var(--brilho-purple); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
#pageProfile #profileAvatar { border-radius: 4px !important; box-shadow: var(--brilho-purple) !important; width: 140px !important; height: 140px !important; position: relative !important; left: auto !important; transform: none !important; margin: 0 auto !important; }
#pageProfile #profAvatar { border-radius: 4px !important; position: static !important; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
#pageProfile .user-info-section { text-align: center; padding: 20px; position: relative; z-index: 2; border-top: 1px solid #222; }
#pageProfile .profile-name { font-family: var(--font-header); color: var(--cor-green); font-size: 1.5rem; text-shadow: var(--sombra-fontes), var(--brilho-txt-green); margin-top: 0 !important; }
#pageProfile #profileName { margin-top: 0 !important; font-size: 1.5rem !important; }
#pageProfile .profile-bio { font-size: 0.95rem; color: #ccc; text-shadow: var(--sombra-fontes); }
#pageProfile .profile-stats { color: #888; font-size: 0.9rem; margin-top: 10px; display: flex !important; justify-content: center !important; align-items: center !important; flex-wrap: wrap !important; width: 100% !important; }
#pageProfile .profile-stats span { color: var(--accent-gold); margin: 0 10px; text-shadow: 0 0 5px rgba(241,196,15,0.5); }
#pageProfile .btn-recruit { background: var(--cor-green); color: #000; border: none; font-family: var(--font-header); font-size: 0.6rem; padding: 10px 20px; cursor: pointer; box-shadow: var(--sombra-botoes), var(--brilho-green); transition: 0.3s; border-radius: 4px; }
#pageProfile .btn-recruit:hover { transform: scale(1.05); }
#pageProfile #ownerControls { position: static !important; display: flex !important; flex-wrap: wrap; justify-content: flex-end; padding-right: 20px; gap: 10px; margin: 0 !important; }
#pageProfile #profileActions { position: static !important; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 0 !important; }
#pageProfile .profile-content-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; width: 100% !important; align-items: start !important; margin-top: 0 !important; position: relative !important; z-index: 10 !important; }
#pageProfile .full-width { grid-column: 1 / -1 !important; width: 100% !important; margin-top: 5px !important; }
#pageProfile .progress-bar-bg { height: 10px; background: #111; border: 1px solid #333; box-shadow: inset 0 0 5px #000; }
#pageProfile .progress-bar-fill { height: 100%; background: var(--cor-purple); box-shadow: var(--brilho-purple); }
#pageProfile #profileGamesList { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow-y: auto; max-height: 500px; padding-right: 5px; }
.profile-nav-bar { background: #000; border: none !important; display: flex; justify-content: center; gap: 30px; padding: 0; margin: 0 !important; position: relative; z-index: 1 !important; width: 100%; }
.prof-nav-btn { background: transparent; color: #555; border: none; font-family: var(--font-header); font-size: 0.8rem; padding: 15px 20px; cursor: pointer; transition: 0.3s; border-bottom: 2px solid transparent; text-transform: uppercase; letter-spacing: 1px; }
.prof-nav-btn:hover { color: #aaa; }
.prof-nav-btn.active { color: var(--cor-blue); border-bottom: 2px solid var(--cor-blue); text-shadow: var(--brilho-txt-blue); }
#profileTabConquistas { margin-top: 0 !important; position: relative !important; z-index: 10 !important; display: none; width: 100%; margin-bottom: 20px; }
.upload-trigger { background: rgba(0,0,0,0.8); border: 1px solid var(--cor-purple); color: var(--cor-purple); cursor: pointer; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: 0.3s; opacity: 0.7; position: absolute; z-index: 100; }
.upload-trigger:hover { opacity: 1; border-color: var(--cor-blue); color: var(--cor-blue); box-shadow: var(--brilho-blue); }
.banner-upload-btn { top: 10px; right: 10px; width: 35px; height: 35px; }
.avatar-upload-btn { bottom: -10px; right: -10px; width: 35px; height: 35px; border-radius: 4px; }

/* Streamer / social extras */
.profile-socials-area { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 20px; width: 100%; }
.streamer-row { display: flex; gap: 20px; justify-content: center; align-items: center; padding: 10px 20px; border-radius: 50px; transition: 0.3s; }
.streamer-active-glow { background: radial-gradient(circle, rgba(241,196,15,0.15) 0%, transparent 70%); box-shadow: 0 0 20px rgba(241,196,15,0.05); animation: pulseGlow 3s infinite alternate; }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.02); opacity: 1; } }
.btn-big-social { width: 50px; height: 50px; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #0a0a0a; border: 1px solid #222; color: #666; text-decoration: none; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-big-social:hover { transform: translateY(-5px); color: #fff; border-color: #fff; }
.btn-twitch:hover { background: #6441a5; border-color: #6441a5; box-shadow: 0 5px 15px rgba(100,65,165,0.4); }
.btn-youtube:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 5px 15px rgba(255,0,0,0.4); }
.btn-kick { font-weight: 900; font-family: 'Arial Black', sans-serif; letter-spacing: -2px; }
.btn-kick:hover { background: #53fc18; color: #000; border-color: #53fc18; box-shadow: 0 5px 15px rgba(83,252,24,0.4); }
.streamer-active-glow .btn-twitch { border-color: #6441a5; color: #6441a5; }
.streamer-active-glow .btn-youtube { border-color: #ff0000; color: #ff0000; }
.streamer-active-glow .btn-kick { border-color: #53fc18; color: #53fc18; }
.streamer-active-glow .btn-big-social:hover { color: #fff; }
.social-row-minimal { display: flex; gap: 15px; justify-content: center; }
.btn-small-social { width: 40px; height: 40px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; border: 1px solid #333; color: #888; text-decoration: none; transition: 0.2s; }
.btn-small-social:hover { background: #222; color: var(--neon-blue); border-color: var(--neon-blue); transform: scale(1.1); }
.copy-ids-wrapper { width: 100%; max-width: 400px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid #222; overflow: hidden; }
.id-row-minimal { display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid #1a1a1a; transition: 0.2s; }
.id-row-minimal:last-child { border-bottom: none; }
.id-row-minimal:hover { background: rgba(255,255,255,0.05); }
.id-icon { width: 25px; color: #555; font-size: 1rem; text-align: center; }
.id-val { flex: 1; margin: 0 15px; font-family: 'Consolas', monospace; font-size: 0.9rem; color: var(--text-main); letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-copy-btn { background: transparent; border: none; color: #444; cursor: pointer; font-size: 1rem; transition: 0.2s; }
.id-copy-btn:hover { color: var(--neon-green); transform: scale(1.1); }

/* Coop */
.coop-section { background: #0a0a0a; border: 1px solid #333; border-radius: 4px; padding: 10px; margin: 10px 0; }
.coop-section label { cursor: pointer; }
.coop-section input[type="checkbox"] { width: auto; margin-right: 5px; }
#coopCheckboxes { display: flex; flex-direction: column; gap: 5px; }

/* Chat */
.chat-minimized-btn { background: #333; color: #fff; padding: 2px 6px; cursor: pointer; border-radius: 4px; border: 1px solid #555; transition: 0.2s; }
.chat-minimized-btn:hover { background: #555; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,0.2); }
.chat-window-container { position: fixed; bottom: 0; width: 320px; height: 450px; background: #111; border: 2px solid var(--neon-blue); display: flex; flex-direction: column; z-index: 9002; border-radius: 10px 10px 0 0; box-shadow: 0 0 15px rgba(0,0,0,0.8); transition: height 0.3s, width 0.3s, right 0.3s ease-out; }
.nudge-anim { animation: nudgeShake 0.1s infinite !important; }

/* Year tabs */
.year-tabs-container { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid #333; }
.year-tab { background: #111; color: #666; border: 1px solid #333; padding: 5px 15px; cursor: pointer; font-family: var(--font-header); font-size: 0.7rem; white-space: nowrap; }
.year-tab.active { background: var(--neon-purple); color: #fff; }

/* Modal ranking */
#rankingModal .rank-item-full { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid #333; transition: 0.2s; cursor: pointer; }
#rankingModal .rank-item-full:hover { background: #1a1a1a; }

/* ---------------------------------------------------
   MEDIA QUERIES
   --------------------------------------------------- */
@media (max-width: 1100px) {
    .sidebar-left, .sidebar-right { display: none !important; }
    #pageFeed.active { left: 15px; right: 15px; }
}
@media (max-width: 1000px) {
    #pageProfile { left: 5px !important; right: 5px !important; }
    #pageProfile .profile-content-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar { display: none; }
}
@media (max-width: 700px) {
    .logo-area span { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; grid-template-areas: "activeChallenges" "top10" "missionReport" "records"; }
    .settings-grid-container { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .profile-content-wrap { flex-direction: column; text-align: center; }
    .cart-body { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cart-rank { align-self: flex-end; }
    .form-row { flex-wrap: wrap; }
    .rating-grid { grid-template-columns: 1fr 1fr; }
    .game-modal-wide { width: 95%; }
    .rating-grid-modal { grid-template-columns: 1fr; }
    .delete-btn-area { position: relative; bottom: auto; right: auto; margin-top: 10px; }
    .rank-box-absolute { position: relative; width: 100%; height: auto; right: auto; top: auto; transform: none; border: none; box-shadow: none; background: transparent; border-top: 1px dashed #333; padding: 10px; flex-direction: row; gap: 10px; }
    .cart-rank { font-size: 1.5rem; }
}

/* ===================================================
   CORREÇÃO DEFINITIVA DA PÁGINA DE PESQUISA
   (largura total, scroll interno, botões padronizados)
   =================================================== */
#pageSearch.active {
    max-width: none !important;   /* remove limite de 900px */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#pageSearch .panel-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;   /* scroll apenas nos filhos */
    padding: 0 !important;
    width: 100% !important;
}

#pageSearch .search-header {
    flex-shrink: 0;
    padding: 15px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
}

#pageSearch .search-layout {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    padding: 15px;
    display: block;                    /* <-- VOLTA A SER BLOCO ÚNICO */
}

/* Botões de aba da pesquisa – versão final */
.search-tab {
    background: rgba(0, 0, 0, 0.5);
    color: #555;
    border: 1px solid #2a2a2a;
    padding: 6px 14px;
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    margin-right: 10px;
    margin-bottom: 0;
}
.search-tab:hover {
    border-color: var(--cor-blue);
    color: #bbb;
    box-shadow: 0 0 8px rgba(77,155,230,0.2);
}
.search-tab.active {
    background: rgba(77, 155, 230, 0.1);
    color: var(--cor-blue);
    border-color: var(--cor-blue);
    box-shadow: 0 0 10px rgba(77,155,230,0.3);
}

/* Remove margem extra da sidebar */
.search-sidebar .panel-box {
    margin-bottom: 0;
}
/* ===================================================
   ESTILOS ADICIONAIS PARA A PÁGINA DE PESQUISA
   =================================================== */
.result-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.result-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.suggestions-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.search-section-title {
    font-family: var(--font-header);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin: 25px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.color-green { color: var(--cor-green); }
.color-gold  { color: var(--accent-gold); }
.color-purple{ color: var(--cor-purple); }

.sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #222;
}

.sort-bar-label {
    font-size: 0.65rem;
    color: #666;
    font-family: var(--font-header);
}

.sort-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-family: var(--font-header);
    cursor: pointer;
    transition: 0.2s;
}

.sort-btn.active {
    border-color: var(--cor-blue);
    color: var(--cor-blue);
    box-shadow: 0 0 6px rgba(77,155,230,0.3);
}

.sort-btn:hover {
    border-color: var(--cor-blue);
    color: #fff;
}

.search-empty-state,
.search-initial-state {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.search-empty-state i,
.search-initial-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.rc-stats span {
    display: inline-block;
}

/* Ajuste fino para o cartão de pessoa */
.result-card-person.is-following {
    border-left: 3px solid var(--cor-green);
}
/* ===================================================
   ESTILOS DA BUSCA AVANÇADA v2.0
   =================================================== */

/* Grid de pessoas e jogos */
.result-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.result-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.suggestions-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

/* Título de seção */
.search-section-title {
    font-family: var(--font-header);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin: 25px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-count {
    color: #555;
    font-size: 0.6rem;
}

.color-green  { color: var(--cor-green); }
.color-gold   { color: var(--accent-gold); }
.color-purple { color: var(--cor-purple); }

/* Barra de ordenação */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #222;
}

.sort-bar-label {
    font-size: 0.65rem;
    color: #666;
    font-family: var(--font-header);
}

.sort-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-family: var(--font-header);
    cursor: pointer;
    transition: 0.2s;
}

.sort-btn.active,
.sort-btn:hover {
    border-color: var(--cor-blue);
    color: var(--cor-blue);
    box-shadow: 0 0 6px rgba(77,155,230,0.3);
}

/* Cards de pessoa v2 */
.result-card-person-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0e0e0e;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.result-card-person-v2:hover {
    border-color: var(--cor-blue);
    background: #111;
}

.result-card-person-v2.is-following {
    border-left: 3px solid var(--cor-green);
}

.rcp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    flex-shrink: 0;
}

.rcp-body {
    flex: 1;
    min-width: 0;
}

.rcp-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.rcp-bio {
    color: #888;
    font-size: 0.8rem;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcp-stats {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.rcp-stat {
    display: inline-block;
    margin-right: 10px;
}

.rcp-action {
    flex-shrink: 0;
}

.btn-you-badge {
    background: var(--cor-green);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.btn-dismiss,
.btn-recruit {
    font-family: var(--font-header);
    font-size: 0.6rem;
    padding: 6px 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-recruit {
    background: var(--cor-green);
    color: #000;
}

.btn-dismiss {
    background: var(--cor-red);
    color: #fff;
}

.btn-recruit:hover,
.btn-dismiss:hover {
    transform: scale(1.05);
}

/* Sugestões */
.suggestion-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.suggestion-card:last-child {
    border-bottom: none;
}

.sug-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--cor-purple);
    cursor: pointer;
    flex-shrink: 0;
}

.sug-info {
    flex: 1;
    min-width: 0;
}

.sug-name {
    color: #ddd;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sug-badge {
    color: #666;
    font-size: 0.7rem;
    margin-top: 3px;
}

.sug-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.sug-btn {
    padding: 4px 8px;
}

/* Dropdown */
.dd-info {
    flex: 1;
    min-width: 0;
}

.dd-name {
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dd-online-dot {
    width: 8px;
    height: 8px;
    background: var(--cor-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--cor-green);
}

.dd-meta {
    font-size: 0.7rem;
    color: #666;
}

.dd-full-search {
    padding: 10px;
    text-align: center;
    color: var(--cor-blue);
    cursor: pointer;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

.dd-full-search:hover {
    background: #1a1a1a;
}

.search-dropdown-empty {
    padding: 10px;
    color: #666;
    text-align: center;
}

/* Highlight */
.search-highlight {
    background: rgba(241,196,15,0.2);
    color: var(--accent-gold);
    padding: 0 2px;
    border-radius: 2px;
}

/* Estados vazios */
.search-empty-state,
.search-initial-state {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.search-empty-state i,
.search-initial-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.link-show-all {
    color: var(--cor-blue);
    cursor: pointer;
}

.link-show-all:hover {
    text-decoration: underline;
}

.recent-label {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.recent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recent-tag {
    background: #111;
    border: 1px solid #333;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
}

.recent-tag:hover {
    border-color: var(--cor-blue);
    background: #1a1a1a;
}

.keyboard-focus {
    background: #222;
    outline: 1px solid var(--cor-blue);
}

/* Força a página de busca a ser uma única coluna SEMPRE */
#pageSearch .search-layout {
    display: block !important;
    grid-template-columns: none !important;
    overflow-y: auto !important;
    padding: 15px !important;
}
#pageSearch .search-main,
#pageSearch .search-sidebar {
    display: block !important;
    width: 100% !important;
}

/* Modificadores para a Busca Nível Enterprise */
.recent-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.recent-tag-wrapper {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}
.recent-tag-wrapper .recent-tag {
    border: none;
    border-radius: 0;
    margin: 0;
}
.recent-tag-remove {
    padding: 5px 8px;
    cursor: pointer;
    color: #666;
    background: #111;
    transition: 0.2s;
}
.recent-tag-remove:hover {
    color: var(--cor-red);
    background: #222;
}
.dd-section-title {
    font-family: var(--font-header);
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 2px;
    padding: 10px 15px 5px 15px;
    border-bottom: 1px solid #222;
    margin-bottom: 5px;
}
.search-item.game-item .dd-game-icon {
    width: 30px;
    height: 30px;
    background: #1a1a1a;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 10px;
}
.sug-meta {
    font-size: 0.65rem;
    color: #666;
    margin-top: 3px;
}

/* ===================================================
   ANIMAÇÕES GLOBAIS DE CLIQUES E CORREÇÕES VISUAIS
   =================================================== */

/* Destaca qualquer elemento clicável ao passar o mouse */
[onclick], a, .btn, .search-item, .result-card-person, .game-cartridge, .nav-icon-btn, .rank-mini-item, .ch-tab-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease, box-shadow 0.2s ease !important;
}
[onclick]:hover, a:hover, .btn:hover, .search-item:hover, .result-card-person:hover, .game-cartridge:hover, .nav-icon-btn:hover, .rank-mini-item:hover, .ch-tab-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    filter: brightness(1.15) !important;
    box-shadow: 0 4px 12px rgba(77, 155, 230, 0.25) !important;
    z-index: 10;
}

/* Transforma todos os avatares redondos em quadrados com bordas arredondadas (Padrão Gamer) */
img[style*="border-radius: 50%"], img[style*="border-radius:50%"], 
.rc-avatar, .rcp-avatar, .rank-mini-avatar, .sug-avatar, 
.cart-art img, .mini-profile-avatar img, .status-dot {
    border-radius: 8px !important;
}

/* Aumenta o painel do "QUEM MAIS JOGA" para caber mais nomes */
#sidebarFollowedList {
    max-height: 450px !important;
    overflow-y: auto !important;
    padding-bottom: 10px;
}