/* =========================================
   PROFILE-RANK.CSS - USUÁRIO, MODAIS, RANK
   ========================================= */

/* --- ESTRUTURA BASE DO MODAL --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.modal-box {
    background: #1a1a1a; border: 1px solid #444; border-top: 4px solid #c8aa6e;
    border-radius: 8px; padding: 40px 30px; text-align: center; max-width: 380px; width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); position: relative; animation: flipIn 0.3s ease-out;
}
.close-modal-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; color: #666; cursor: pointer; background: none; border: none; }
.close-modal-btn:hover { color: #cd2e3a; }

/* --- USER MENU (BOTÕES DO TOPO À DIREITA) --- */
.user-menu { display: flex; gap: 12px; align-items: center; }
.rank-btn {
    background: linear-gradient(135deg, #00000000, #111); border: 2px solid #c8aa6e; color: #c8aa6e;
    border-radius: 50%; width: 45px; height: 45px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.rank-btn:hover { background: #c8aa6e; color: #000; transform: scale(1.1); box-shadow: 0 0 20px rgba(200, 170, 110, 0.6); }

/* Avatar do Header */
#profileBtn {
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer; overflow: hidden;
    border: 2px solid #2cba52; background: #000; display: flex; align-items: center; justify-content: center; padding: 0;
}
#headerAvatar { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* --- LOGIN MODAL --- */
.google-login-btn { background: #ffffff; color: #3c4043; border: none; padding: 10px 20px; font-size: 14px; font-weight: 600;border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 250px; margin: 25px auto;  cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.2);}

.google-login-btn:hover { background: #f1f1f1; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.3);}

.google-icon { width: 18px; height: 18px; }

/* Ajuste no texto do rodapé do login pra ficar perto do botão */
.login-footer { margin-top: 0 !important; font-size: 11px !important; color: #666 !important; max-width: 280px; margin-left: auto; margin-right: auto;}

/* --- PERFIL DO USUÁRIO (COMPACTO) --- */
.compact-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.compact-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #ffd700; object-fit: cover; }
.avatar-wrapper { position: relative; cursor: pointer; }
.edit-icon {
    position: absolute; bottom: 0; right: 0; background: #ffd700; color: #000;
    border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
}
.edit-icon span { font-size: 12px; font-weight: bold; }

.header-info { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.nick-row { display: flex; gap: 5px; }
#userNickInput {
    background: rgba(255,255,255,0.1); border: 1px solid #444; color: #fff; padding: 5px 10px;
    border-radius: 4px; font-weight: bold; width: 100%;
}
.mini-btn-save { background: #ffd700; border: none; font-weight: bold; border-radius: 4px; cursor: pointer; padding: 0 10px; color: #000; }
.meta-info { font-size: 0.7rem; color: #888; }
.separator { border: 0; border-top: 1px solid #333; margin: 10px 0; }

.compact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.full-width { grid-column: span 2; }
.form-group label { display: block; font-size: 0.7rem; color: #aaa; margin-bottom: 2px; }
.form-group input { width: 100%; background: #111; border: 1px solid #333; color: #ddd; padding: 6px; border-radius: 4px; font-size: 0.8rem; }
.compact-btn { width: 100%; margin-top: 10px; padding: 8px; font-size: 0.8rem; background: #333; color: #fff; border: 1px solid #555; }
.logout-link { background: none; border: none; color: #cd2e3a; font-size: 0.75rem; text-decoration: underline; cursor: pointer; width: 100%; margin-top: 5px; }

/* --- CARTÕES HÍBRIDOS (RANK + XP) --- */
.hybrid-card {
    background: linear-gradient(90deg, #151515 0%, #1a1a1a 100%); border: 1px solid #333; border-radius: 6px;
    padding: 12px; display: flex; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hybrid-header { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.hybrid-icon { width: 45px; height: auto; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); }
.hybrid-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }

.xp-container { width: 100%; text-align: left; margin-top: 5px; }
.xp-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #ccc; margin-bottom: 4px; }
.progress-bar-bg { width: 100%; height: 6px; background-color: #222; border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease-in-out; box-shadow: 0 0 5px currentColor; }

/* Cartão Especial (CEO/Admin) */
.special-role-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 8px; padding: 10px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 15px; position: relative; overflow: hidden;
}
.special-role-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
.special-role-icon { width: 40px; height: auto; filter: drop-shadow(0 0 5px currentColor); }
.special-role-title { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* --- MODAL RANKING GLOBAL --- */
.rank-modal-box { max-width: 500px !important; width: 95% !important; padding: 30px 20px !important; border-top: 4px solid #c8aa6e; }
.rank-title { color: #c8aa6e; font-size: 28px; margin-bottom: 5px; text-shadow: 0 0 10px rgba(200, 170, 110, 0.2); }
.rank-timer-container { background: rgba(0,0,0,0.3); border: 1px solid #333; border-radius: 20px; padding: 5px 15px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; color: #ccc; font-size: 13px; }
.timer-icon { font-size: 16px; color: #cd2e3a; }
.rank-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.rank-tab { background: transparent; border: 1px solid #444; color: #888; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: bold; transition: 0.3s; }
.rank-tab.active, .rank-tab:hover { background: #c8aa6e; color: #000; border-color: #c8aa6e; }

.rank-header-row { display: flex; padding: 10px 15px; background: #111; border-radius: 6px; margin-bottom: 10px; font-size: 12px; font-weight: bold; color: #666; letter-spacing: 1px; }
.rank-list { max-height: 400px; overflow-y: auto; padding-right: 5px; }
.rank-list::-webkit-scrollbar { width: 6px; }
.rank-list::-webkit-scrollbar-track { background: #111; }
.rank-list::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.rank-item { display: flex; align-items: center; background: #1e2328; margin-bottom: 6px; padding: 10px 15px; border-radius: 6px; border: 1px solid #333; transition: transform 0.2s; }
.rank-item:hover { background: #252b30; transform: translateX(5px); border-color: #555; }
.rank-pos { width: 30px; font-weight: bold; color: #888; font-size: 14px; }
.rank-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid #444; }
.rank-name { flex-grow: 1; text-align: left; color: #f0f0f0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-points { color: #c8aa6e; font-weight: bold; font-family: monospace; font-size: 15px; }

/* Top 3 Destaques */
.rank-item.top-1 { border: 1px solid #e6c27e; background: linear-gradient(90deg, rgba(230, 194, 126, 0.1), transparent); }
.rank-item.top-1 .rank-pos { color: #e6c27e; font-size: 18px; }
.rank-item.top-1 .rank-avatar { border-color: #e6c27e; box-shadow: 0 0 10px rgba(230,194,126, 0.4); }
.rank-item.top-2 { border-left: 4px solid #c0c0c0; } .rank-item.top-2 .rank-pos { color: #c0c0c0; }
.rank-item.top-3 { border-left: 4px solid #cd7f32; } .rank-item.top-3 .rank-pos { color: #cd7f32; }

/* Histórico */
.history-month-card { background: #111; border: 1px solid #333; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.history-date-title { color: #c8aa6e; font-size: 14px; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 5px; }
.history-winner-row { display: flex; align-items: center; margin-bottom: 6px; font-size: 13px; color: #ccc; }
.history-medal { margin-right: 10px; font-size: 14px; }
.history-avatar { width: 24px; height: 24px; border-radius: 50%; margin-right: 10px; border: 1px solid #555; }
.winner-gold { color: #ffd700; font-weight: bold; }

/* --- MINI PERFIL MODAL (DOS OUTROS) --- */
.mini-profile-box { border-top: 4px solid #c8aa6e; max-width: 340px !important; padding: 30px 25px !important; text-align: left !important; background: #16191d; }
.mp-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #333; }
.mp-avatar { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #c8aa6e; object-fit: cover; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.mp-info h2 { margin: 0; font-size: 22px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.mp-socials { display: flex; gap: 10px; }
.mp-btn { flex: 1; padding: 10px; border-radius: 4px; text-align: center; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; color: white; }
.mp-btn:hover { transform: translateY(-2px); filter: brightness(1.2); }
.mp-btn.yt { background: #cd2e3a; }
.mp-btn.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* --- PESQUISA --- */
.search-box-custom { border-top: 4px solid #c8aa6e; max-width: 400px !important; text-align: center !important; padding: 30px !important; background: #16191d; }
.custom-search-input { width: 100%; padding: 12px; background: #0d0f12; border: 1px solid #333; border-radius: 6px; color: white; font-size: 16px; margin-bottom: 20px; outline: none; transition: 0.3s; text-align: center; }
.custom-search-input:focus { border-color: #c8aa6e; box-shadow: 0 0 10px rgba(200, 170, 110, 0.2); }
.custom-search-btn { width: 100%; padding: 12px; background: #c8aa6e; color: #000; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: 0.2s; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; }
.custom-search-btn:hover { background: #e6c88b; transform: translateY(-2px); }

/* --- INVENTÁRIO E TROFÉUS --- */
.trophy-separator { display: flex; align-items: center; justify-content: center; margin: 15px 0 10px 0; width: 100%; }
.trophy-separator span { font-size: 10px; font-weight: bold; color: #666; background: #111; padding: 0 10px; letter-spacing: 2px; }
.trophy-separator::before, .trophy-separator::after { content: ""; flex: 1; height: 1px; background: #333; }
.trophy-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 10px 15px 10px; }
.trophy-slot { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.05); border: 1px solid #333; border-radius: 6px; display: flex; align-items: center; justify-content: center; position: relative; cursor: help; transition: 0.2s; }
.trophy-slot:hover { background: rgba(255, 215, 0, 0.1); border-color: #ffd700; transform: scale(1.05); }
.trophy-img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }

/* Tooltip do Troféu */
.trophy-slot::after {
    content: attr(data-name); position: absolute; bottom: 115%; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 10px;
    font-weight: bold; white-space: nowrap; border: 1px solid #444; pointer-events: none; opacity: 0; transition: 0.2s; z-index: 100; visibility: hidden;
}
.trophy-slot:hover::after { opacity: 1; visibility: visible; bottom: 125%; }

/* Modal de Inspeção */
.trophy-inspect-box {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%); border: 1px solid #ffd700;
    width: 300px; text-align: center; padding: 25px; border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15); position: relative; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.inspect-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(255,215,0,0.3)); position: relative; z-index: 2; }
.glow-effect { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%); z-index: 1; }
.inspect-title { color: #ffd700; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.inspect-desc { color: #ccc; font-size: 0.9rem; line-height: 1.4; font-style: italic; }

/* =========================================
   ÁREA DE RESGATE (ESTILO CS2)
   ========================================= */

.redeem-section {
    background: linear-gradient(180deg, #15171a 0%, #0f1114 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: border-color 0.3s;
}

/* Efeito de brilho dourado sutil no hover */
.redeem-section:hover {
    border-color: #444;
}

.redeem-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.redeem-icon {
    color: #ffd700;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.redeem-title {
    font-size: 11px;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-row {
    display: flex;
    gap: 8px;
    height: 40px;
}

/* O Campo de Texto */
#redeemInput {
    flex-grow: 1;
    background-color: #08090a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

#redeemInput::placeholder {
    color: #444;
    letter-spacing: 1px;
    font-weight: normal;
    font-size: 12px;
}

#redeemInput:focus {
    border-color: #c8aa6e;
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
    outline: none;
}

/* O Botão de Confirmar */
.redeem-btn {
    width: 40px; /* Quadrado */
    height: 40px;
    background: linear-gradient(135deg, #2cba52, #1a8a38);
    border: 1px solid #2ea04b;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.redeem-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(44, 186, 82, 0.4);
}

.redeem-btn:active {
    transform: scale(0.95);
}

.redeem-btn .material-icons {
    font-size: 20px;
    font-weight: bold;
}

/* Dica pequena embaixo */
.redeem-hint {
    font-size: 9px;
    color: #555;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* BOTÃO VER PERFIL PÚBLICO */
.view-public-btn {
    background: transparent;
    border: 1px solid #00aaff; /* Azul Neon */
    color: #00aaff;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px; /* Espaço pro botão de sair */
    transition: all 0.2s ease;
}

.view-public-btn:hover {
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    transform: translateY(-1px);
}

.view-public-btn .material-icons {
    font-size: 16px;
}

/* =========================================
   PERFIL MODERNO & COMPACTO (CS2 STYLE)
   ========================================= */

/* --- CABEÇALHO --- */
.profile-header-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.compact-avatar {
    width: 65px; height: 65px;
    border-radius: 8px; /* Quadrado arredondado fica mais moderno */
    border: 2px solid #c8aa6e;
    object-fit: cover;
    background: #000;
}

.avatar-wrapper { position: relative; cursor: pointer; transition: transform 0.2s; }
.avatar-wrapper:hover { transform: scale(1.05); }
.edit-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; opacity: 0; transition: 0.2s;
}
.avatar-wrapper:hover .edit-overlay { opacity: 1; }
.edit-overlay span { color: #fff; font-size: 20px; }

.profile-identity { flex-grow: 1; overflow: hidden; }

.nick-input-group {
    display: flex; align-items: center; gap: 8px;
    background: #111; border: 1px solid #333;
    border-radius: 4px; padding: 4px 8px; margin-bottom: 4px;
}

#userNickInput {
    background: transparent; border: none; color: #fff;
    font-size: 16px; font-weight: 800; width: 100%; outline: none;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.mini-btn-edit {
    background: transparent; border: none; color: #555;
    cursor: pointer; padding: 0; display: flex;
}
.mini-btn-edit:hover { color: #c8aa6e; }

.identity-meta { font-size: 10px; color: #666; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.meta-id { color: #c8aa6e; background: rgba(200, 170, 110, 0.1); padding: 2px 4px; border-radius: 3px; }
.meta-email { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- GRID DE INPUTS SOCIAIS --- */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.full-row { grid-column: span 2; }

.input-icon-wrapper {
    display: flex; align-items: center;
    background: #0f1113; border: 1px solid #2a2a2a;
    border-radius: 4px; overflow: hidden; height: 36px;
    transition: border-color 0.2s;
}
.input-icon-wrapper:focus-within { border-color: #444; }

.icon-box {
    width: 36px; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #1a1c20; border-right: 1px solid #2a2a2a; color: #888;
}
.icon-box span { font-size: 16px; }

/* Cores dos ícones */
.icon-box.steam { 
    color: #fff; /* Branco para destacar */
    background: #171a21; /* Azul escuro da Steam */
}

.input-icon-wrapper.full-row {
    height: 36px;
}
.icon-box.youtube { color: #cd2e3a; }
.icon-box.insta { color: #d62976; }

.input-icon-wrapper input {
    width: 100%; height: 100%; border: none; background: transparent;
    color: #ccc; padding: 0 10px; font-size: 11px; outline: none;
}
.input-icon-wrapper input::placeholder { color: #444; }

/* --- BARRA DE AÇÕES (BOTÕES) --- */
.actions-row { display: flex; gap: 8px; margin-bottom: 15px; }

.action-btn {
    flex: 1; padding: 8px; border-radius: 4px; border: none;
    font-size: 10px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: 0.2s;
}

.action-btn.save {
    background: linear-gradient(180deg, #c8aa6e 0%, #a88a4e 100%);
    color: #000; box-shadow: 0 2px 5px rgba(200, 170, 110, 0.2);
}
.action-btn.save:hover { filter: brightness(1.1); transform: translateY(-1px); }

.action-btn.view {
    background: transparent; border: 1px solid #444; color: #888;
}
.action-btn.view:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

/* --- RESGATE CÓDIGO (SUPER COMPACTO) --- */
.redeem-compact {
    background: rgba(0,0,0,0.3);
    border: 1px dashed #333;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 15px;
}

.redeem-inner { display: flex; align-items: center; gap: 8px; }
.redeem-icon { font-size: 16px; color: #ffd700; margin-left: 4px; }

#redeemInput {
    flex-grow: 1; background: transparent; border: none;
    color: #fff; font-weight: bold; font-size: 12px; text-transform: uppercase;
    text-align: center; letter-spacing: 1px; outline: none;
}
#redeemInput::placeholder { color: #444; font-weight: normal; }

.redeem-btn-small {
    background: #2cba52; color: #fff; border: none;
    font-size: 10px; font-weight: bold; padding: 6px 12px;
    border-radius: 4px; cursor: pointer;
}
.redeem-btn-small:hover { filter: brightness(1.1); }

/* --- RODAPÉ (LOGOUT) --- */
.logout-container {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #222; padding-top: 10px; margin-top: 10px;
    font-size: 10px;
}
#userLastLogin { color: #444; font-family: monospace; }
.text-logout {
    background: none; border: none; color: #cd2e3a;
    font-weight: bold; cursor: pointer; font-size: 10px;
    text-transform: uppercase;
}
.text-logout:hover { text-decoration: underline; }

/* --- AJUSTE NO RANK HÍBRIDO (Para caber melhor) --- */
.compact-rank-wrapper .hybrid-card {
    padding: 8px 12px !important; /* Menos padding */
}
.compact-rank-wrapper .hybrid-icon {
    width: 35px !important; height: auto !important; /* Ícone menor */
}
.compact-rank-wrapper .hybrid-title {
    font-size: 14px !important; /* Fonte menor */
}
.compact-rank-wrapper .special-role-card {
    padding: 6px !important; margin-bottom: 8px !important;
}
.compact-rank-wrapper .special-role-title {
    font-size: 14px !important;
}
.compact-rank-wrapper .special-role-icon {
    width: 25px !important;
}

/* --- MODAL DE COLABORADORES (GRID 5 POR LINHA) --- */
.collab-modal-box {
    background: #0e0e10;
    border: 1px solid #333;
    max-width: 650px; /* Aumentei um pouco a largura pra caber 5 */
    width: 95%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.collab-main-title {
    text-align: center; color: #fff; margin-bottom: 5px;
    font-size: 20px; letter-spacing: 1px;
}
.collab-subtitle {
    text-align: center; color: #666; font-size: 11px; margin-bottom: 20px;
}

/* Container da Categoria vira Flexbox para permitir quebra de linha */
.collab-category {
    margin-bottom: 30px;
    width: 100%;
    animation: fadeInUp 0.5s ease backwards;
}

.collab-role-header {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- GRID DE INVENTÁRIO (5 por linha) --- */
.collab-grid {
    display: grid;
    /* Minimo 110px garante que caibam 5 em telas de ~600px pra cima */
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px; /* Espaço pequeno entre os cards */
    padding: 10px 0;
}

/* --- O CARD ESTILOSO --- */
.collab-card {
    position: relative;
    background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
    border-radius: 6px; /* Borda menos redonda, mais "técnica" */
    padding: 10px 5px;  /* Padding reduzido */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    height: 100%;
}

/* Hover mais seco e rápido (Gamer style) */
.collab-card:hover {
    transform: translateY(-2px);
    background: #1f1f1f;
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
}

/* Efeito de "Luz" passando no fundo ao dar hover */
.collab-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.collab-card:hover::after {
    left: 150%;
}

.collab-avatar-container {
    position: relative;
}

.collab-avatar {
    width: 45px;  /* Reduzi de 60px para 45px */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.collab-card:hover .collab-avatar {
    transform: scale(1.05);
    border-color: #fff; /* Borda branca ao passar mouse */
}

/* --- TEXTOS --- */
.collab-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.collab-nick {
    font-weight: 700;
    font-size: 12px; /* Fonte reduzida */
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
}

.collab-desc {
    font-size: 9px; /* Descrição bem pequena */
    color: #777;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 22px;
}

/* --- CARD GLOW (Opcional - luz de fundo colorida) --- */
.card-glow {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.3s;
}

.collab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.collab-card:hover .card-glow {
    opacity: 0.3;
}

.collab-card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0.7;
}

/* Animação de entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HIERARQUIA DE MODAIS (Z-INDEX FINAL) --- */

/* NÍVEL 1: Modais "Base" (Login, Rank, Colaboradores, Parceiros) */
#loginModal, 
#rankModal, 
#collabModal {
    z-index: 1050 !important;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.85);
}
#partnersMenu { /* Se for modal */
    z-index: 1050 !important;
}

/* NÍVEL 2: Mini Perfil (Abre EM CIMA da base) */
#miniProfileModal {
    z-index: 1500 !important; 
}

/* NÍVEL 3: Inspeção de Troféu (Abre EM CIMA do perfil) */
#trophyModal {
    z-index: 2000 !important;
}

/* NÍVEL 4: Toasts de Notificação (Sempre visíveis) */
#toast-container {
    z-index: 9999 !important;
}