        /* ====================================================
         DESIGN SYSTEM & ESTILOS GERAIS
         ==================================================== */
        :root {
            --primary: #1a237e;
            --primary-light: #3f51b5;
            --primary-dark: #0d145c;
            --accent: #d4af37;
            --accent-light: #fff8e1;
            --bg-gray: #f5f5f5;
            --white: #ffffff;
            --red: #c62828;
            --green: #2e7d32;
            --orange: #f57f17;
            --bg-body: #f5f5f5;
            --card-bg: #ffffff;
            --text-color: #333333;
            --text-secondary: #666666;
            --border-color: #ddd;
        }
        body.dark-mode {
            --primary: #5c6bc0;
            --primary-light: #7986cb;
            --primary-dark: #1a237e;
            --accent: #ffd54f;
            --accent-light: #3e2723;
            --bg-gray: #121212;
            --white: #1e1e1e;
            --bg-body: #121212;
            --card-bg: #1e1e1e;
            --text-color: #e0e0e0;
            --text-secondary: #999;
            --border-color: #333;
            --red: #ef5350;
            --green: #66bb6a;
            --orange: #ffb74d;
        }

        body {
            padding: 5px;
            background: var(--bg-body);
            color: var(--text-color);
            font-family: 'Segoe UI', Roboto, sans-serif;
            overflow-x: hidden;
            padding-bottom: 110px;
            transition: background 0.3s, color 0.3s;
        }

        .card {
            padding: 20px;
            border-radius: 16px;
            margin-top: 15px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.dark-mode .card,
        body.dark-mode .card.white,
        body.dark-mode .card-panel,
        body.dark-mode .modal-content,
        body.dark-mode .login-box,
        body.dark-mode #telaLogin .login-box,
        body.dark-mode #postsRedeForm,
        body.dark-mode .menu-dropdown,
        body.dark-mode .chat-history-item:hover,
        body.dark-mode .social-post,
        body.dark-mode .mini-card {
            background: var(--card-bg) !important;
            color: var(--text-color) !important;
        }
        body.dark-mode input,
        body.dark-mode textarea,
        body.dark-mode select {
            background: var(--card-bg) !important;
            color: var(--text-color) !important;
            border-color: var(--border-color) !important;
        }
        body.dark-mode #chatBox,
        body.dark-mode #areaMural,
        body.dark-mode #gameArea,
        body.dark-mode .chat-msg-area {
            background: var(--bg-body);
            color: var(--text-color);
        }
        body.dark-mode .msg-bubble {
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }
        body.dark-mode .msg-colega {
            background: #2a2a2a !important;
        }
        body.dark-mode .msg-minha {
            background: var(--primary-dark) !important;
        }

        .logo-container {
            text-align: center;
            margin-bottom: 15px;
            margin-top: 10px;
        }

        .logo-app {
            max-width: 90px;
            height: auto;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }

        /* ====================================================
         TELA DE LOGIN
         ==================================================== */
        .login-box {
            background: white;
            padding: 40px 20px;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            border-top: 6px solid var(--accent);
            text-align: center;
            max-width: 400px;
            margin: 60px auto;
        }

        .login-box input {
            text-align: center;
            font-size: 1.3rem !important;
            font-weight: bold;
            border: 2px solid #ccc !important;
            border-radius: 8px !important;
            height: 50px !important;
            margin-bottom: 20px !important;
        }

        .login-box input:focus {
            border-color: var(--primary) !important;
            box-shadow: none !important;
        }

        .login-box p.subtitle {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 25px;
        }

        .login-box .btn-entrar {
            background-color: var(--primary) !important;
            width: 100%;
            height: 50px;
            font-weight: bold;
            border-radius: 8px;
            font-size: 1.1rem;
        }

        .login-box .btn-inscricao {
            display: block;
            text-align: center;
            margin-top: 20px;
            color: var(--primary);
            font-weight: bold;
            text-decoration: underline;
            font-size: 0.95rem;
        }
        #telaLogin .login-box .btn-inscricao {
            animation: fadeScaleIn 0.5s 1.8s both;
            color: var(--accent) !important;
        }
        #telaLogin .login-box .btn-whatsapp-login {
            display: inline-block;
            margin-top: 10px;
            padding: 6px 16px;
            background: transparent;
            color: #fff;
            font-weight: bold;
            border-radius: 20px;
            border: 1.5px solid rgba(255,255,255,0.4);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            animation: fadeScaleIn 0.5s 2s both;
        }
        #telaLogin .login-box .btn-whatsapp-login:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.7);
        }

        /* Animação do logo na tela de login */
        @keyframes pulseLogo {
            0% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.08); opacity: 1; }
            100% { transform: scale(1); opacity: 0.8; }
        }
        @keyframes floatLogo {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
            100% { transform: translateY(0px); }
        }
        .login-box .logo-app {
            animation: pulseLogo 3s ease-in-out infinite, floatLogo 4s ease-in-out infinite;
        }

        /* ====================================================
         MENU PRINCIPAL DROPDOWN
         ==================================================== */
        .menu-container {
            position: relative;
            text-align: center;
            margin-bottom: 15px;
            z-index: 999;
        }

        .btn-menu {
            background-color: var(--primary);
            color: white;
            width: 100%;
            height: 55px;
            font-weight: bold;
            font-size: 1.1rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            transition: background 0.3s;
        }

        .btn-menu:active {
            background-color: var(--primary-dark);
        }

        .menu-dropdown {
            display: none;
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: white;
            border-radius: 10px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            flex-direction: column;
            z-index: 9999;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .menu-dropdown button {
            background: none;
            border: none;
            border-bottom: 1px solid #eee;
            width: 100%;
            padding: 16px 20px;
            font-size: 1.05rem;
            font-weight: bold;
            color: var(--primary);
            text-align: left;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .menu-dropdown button:hover {
            background-color: #f5f5f5;
        }

        .menu-dropdown button:last-child {
            border-bottom: none;
        }

        /* ====================================================
         ESTILOS DE INPUTS E BOTÕES DO FORMULÁRIO
         ==================================================== */
        .nota-display {
            font-weight: bold;
            color: var(--accent);
            font-size: 1.4rem;
            margin-left: 10px;
        }

        .save-btn {
            background-color: var(--accent) !important;
            width: 100%;
            height: 50px;
            font-weight: bold;
            margin-top: 15px;
            border-radius: 8px;
            font-size: 1.05rem;
        }

        .action-btn {
            background-color: var(--primary) !important;
            width: 100%;
            height: 50px;
            font-weight: bold;
            margin-top: 10px;
            border-radius: 8px;
            font-size: 1.05rem;
        }

        .input-group {
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 12px;
        }

        label {
            color: #333;
            font-size: 1rem;
            font-weight: 500;
        }

        #areaGrafico {
            display: none;
            margin-top: 20px;
            text-align: center;
        }

        .box-categorias {
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            background-color: #fafafa;
        }

        .box-categorias p.titulo {
            margin-top: 0;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .box-categorias p.subtitulo {
            margin-top: 0;
            font-size: 0.8rem;
            color: #777;
            margin-bottom: 15px;
        }

        .grid-cat {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .grid-cat span {
            color: #333 !important;
            font-size: 0.8rem !important;
            line-height: 1.2;
            display: inline-block;
            padding-top: 2px;
        }

        .box-foto {
            border: 2px dashed var(--primary);
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            margin-bottom: 20px;
            background-color: #fff;
        }

        .btn-foto-wrapper {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .btn-foto {
            flex: 1;
            height: 45px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border-radius: 6px;
        }

        .btn-cam {
            background-color: var(--primary) !important;
            color: white;
        }

        .btn-gal {
            background-color: #666 !important;
            color: white;
        }

        .status-foto {
            margin-top: 10px;
            font-weight: bold;
            color: var(--accent);
            font-size: 0.9rem;
        }

        /* ====================================================
         PERFIL DE IMPULSÃO E FINANCEIRO
         ==================================================== */
        .box-fisico {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            background-color: #fff;
        }

        .fisico-header {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
            text-align: center;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }

        .fisico-header span {
            font-size: 0.85rem;
            color: #666;
            font-weight: bold;
        }

        .fisico-header strong {
            display: block;
            font-size: 1.5rem;
            color: var(--accent);
            margin-top: 5px;
            font-weight: 900;
        }

        .fisico-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            background-color: #fafafa;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #eee;
        }

        .fisico-row label {
            flex: 1;
            color: var(--primary);
            font-weight: bold;
            font-size: 0.95rem;
        }

        .fisico-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-ctrl {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            width: 35px;
            height: 35px;
            font-size: 1.3rem;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }

        .btn-ctrl:active {
            background-color: var(--accent);
        }

        .fisico-input {
            width: 60px !important;
            text-align: center !important;
            font-weight: bold !important;
            margin: 0 !important;
            height: 35px !important;
            border: 1px solid #ccc !important;
            border-radius: 6px !important;
            background-color: white !important;
        }

        .foto-perfil-container {
            text-align: center;
            margin-bottom: 20px;
        }

        .foto-perfil {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--accent);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            display: inline-block;
        }

        /* ====================================================
         ANIVERSARIANTES
         ==================================================== */
        .niver-box {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 15px;
            text-align: center;
            display: none;
        }

        .niver-flex {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding: 10px 0;
            justify-content: flex-start;
        }

        .niver-atleta {
            flex: 0 0 85px;
            text-align: center;
        }

        .niver-atleta img {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            border: 3px solid white;
            object-fit: cover;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .niver-dia {
            display: block;
            font-size: 0.8rem;
            opacity: 0.9;
        }

        .niver-nome {
            display: block;
            font-size: 1rem;
            font-weight: bold;
            margin-top: 2px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        /* ====================================================
         PEDIDOS DE UNIFORME
         ==================================================== */
        .pedido-card {
            border: 1px solid #ddd;
            border-left: 5px solid var(--orange);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            background: #fff;
            text-align: left;
        }

        .pedido-info p {
            margin: 3px 0;
            font-size: 0.95rem;
            color: #333;
        }

        .pedido-btn {
            background-color: var(--green) !important;
            width: 100%;
            height: 45px;
            font-weight: bold;
            border-radius: 6px;
            margin-top: 10px;
        }

        .destaque-nome {
            background-color: #e8eaf6;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 5px solid var(--primary);
        }

        .destaque-num {
            background-color: #fff3e0;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 5px solid var(--orange);
        }

        /* ====================================================
         MURAL SOCIAL (REDE UJI)
         ==================================================== */
        .section-title {
            color: var(--primary);
            font-weight: 900;
            font-size: 1.5rem;
            margin: 20px 0 10px 0;
            border-bottom: 3px solid var(--accent);
            padding-bottom: 5px;
            text-transform: uppercase;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .mini-card {
            background: white;
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-bottom: 5px solid var(--accent);
            transition: 0.2s;
            position: relative;
        }

        .mini-card:active {
            transform: scale(0.95);
        }

        .mini-foto {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
            margin: 0 auto;
            display: block;
        }

        .mini-nome {
            font-size: 1rem;
            font-weight: 900;
            color: var(--primary);
            margin: 10px 0 0 0;
            line-height: 1.1;
            text-transform: uppercase;
        }

        .mini-pos {
            font-size: 0.8rem;
            font-weight: bold;
            color: var(--accent);
            margin: 4px 0 0 0;
        }

        .mini-card.locked {
            border-bottom: 5px solid var(--red);
            background: #eee;
        }

        .mini-card.locked .mini-foto {
            filter: grayscale(100%);
            border-color: #666;
            opacity: 0.6;
        }

        .mini-card.locked .mini-nome {
            color: #666;
        }

        .mini-card.locked .mini-pos {
            color: var(--red);
        }

        .locked-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 1.2rem;
        }

        .senha-admin {
            background: #ffe082;
            color: #b71c1c;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 4px;
            padding: 2px 6px;
            margin-top: 8px;
            display: inline-block;
            cursor: pointer;
            border: 1px solid #ffb300;
        }

        .social-feed {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            padding-bottom: 30px;
            max-width: 1000px;
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            .social-feed {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .social-feed {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .social-post {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid #e0e0e0;
        }

        .social-post-header {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border-bottom: 1px solid #f5f5f5;
        }

        .social-post-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
            margin-right: 12px;
        }

        .social-post-name {
            font-weight: 900;
            color: var(--primary);
            font-size: 1.05rem;
            margin: 0;
            text-transform: uppercase;
        }

        .social-post-pos {
            font-size: 0.8rem;
            color: #777;
            margin: 0;
        }

        .social-post-image {
            width: 100%;
            height: 320px;
            object-fit: cover;
            object-position: center 15%;
            display: block;
            cursor: pointer;
            border-bottom: 1px solid #f5f5f5;
        }

        .social-post-actions {
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fafafa;
            gap: 8px;
        }

        .btn-social {
            background: #e8eaf6;
            color: var(--primary);
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
            font-size: 0.8rem;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-social:hover {
            background: #c5cae9;
        }

        .btn-social.btn-ver-perfil {
            background: var(--primary);
            color: white;
        }

        .btn-social.btn-ver-perfil:hover {
            background: var(--primary-dark);
        }

        .btn-social.btn-like.curtido {
            background: #ffebee;
            color: var(--red);
        }

        /* ====================================================
         BATE-PAPO (CHAT UNIFICADO)
         ==================================================== */
        .chat-tab-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            background: #eee;
            padding: 4px;
            border-radius: 25px;
        }

        .btn-chat-toggle {
            flex: 1;
            height: 38px;
            border-radius: 20px;
            font-weight: bold;
            border: none;
            background: transparent;
            color: #555;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .btn-chat-toggle.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        .chat-box-container {
            background: #e8eaf6;
            height: 350px;
            border-radius: 12px;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border: 1px solid #c5cae9;
        }

        .msg-bubble {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 0.95rem;
            line-height: 1.3;
            position: relative;
            word-wrap: break-word;
        }

        .msg-minha {
            background: var(--primary);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 2px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        }

        .msg-colega {
            background: white;
            color: #333;
            align-self: flex-start;
            border-bottom-left-radius: 2px;
            border: 1px solid #ddd;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .msg-hora {
            font-size: 0.65rem;
            opacity: 0.7;
            display: block;
            text-align: right;
            margin-top: 4px;
        }

        .msg-remetente-label {
            font-size: 0.75rem;
            font-weight: 800;
            color: var(--accent);
            display: block;
            margin-bottom: 3px;
        }

        /* ====================================================
         SUPER TRUNFO CARD
         ==================================================== */
        .modal.card-modal {
            background: transparent !important;
            box-shadow: none !important;
            max-width: 400px !important;
            width: 95% !important;
            max-height: 90% !important;
            top: 5% !important;
            overflow-y: auto !important;
        }

        .flash-card {
            display: flex;
            flex-direction: column;
            border: 4px solid var(--accent);
            border-radius: 20px;
            padding: 0;
            background: #000;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
            position: relative;
            overflow: hidden;
        }

        .btn-fechar {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(0, 0, 0, 0.85);
            color: #ffd700;
            border: 2px solid #ffd700;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
        }

        .btn-fechar:hover {
            background: #ffd700;
            color: #000;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
        }

        .card-photo-container {
            position: relative;
            width: 100%;
            height: 500px;
            background: #050820;
        }

        .foto-atleta {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: right 15%;
        }

        .photo-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(13, 20, 92, 0.95) 100%);
            pointer-events: none;
        }

        .card-header-overlay {
            position: absolute;
            top: 15px;
            right: 55px;
            z-index: 10;
            pointer-events: none;
        }

        .header-text-trunfo {
            font-size: 1.2rem;
            font-weight: 900;
            color: var(--accent);
            font-style: italic;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        }

        .menu-lateral-integrado {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            display: flex;
            flex-direction: column;
            z-index: 10;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0) 100%);
            padding: 35px 25px 15px 15px;
        }

        .logo-card {
            width: 80px;
            margin-bottom: 15px;
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
        }

        .floating-stats-wrapper {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .f-stat {
            background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
            border-left: 4px solid var(--accent);
            padding: 3px 10px;
            text-align: left;
            display: flex;
            flex-direction: column;
            line-height: 1;
            border-radius: 0 8px 8px 0;
            box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4);
        }

        .f-val {
            font-size: 1.25rem;
            font-weight: 900;
            color: #fff;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        }

        .f-label {
            font-size: 0.55rem;
            color: var(--accent);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .highlight-stat {
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), rgba(0, 0, 0, 0));
            border-left: 4px solid #fff;
            padding: 4px 10px;
        }

        .highlight-stat .f-val {
            color: var(--primary);
            text-shadow: none;
        }

        .highlight-stat .f-label {
            color: #fff;
        }

        .votos-count {
            font-size: 0.55rem;
            color: #fff;
            font-weight: normal;
            display: block;
            margin-top: 1px;
            opacity: 0.9;
        }

        .name-banner {
            background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
            color: #0d145c;
            padding: 12px 10px;
            text-align: center;
            border-top: 3px solid #fff;
            position: relative;
            z-index: 15;
        }

        .card-nome {
            font-size: 1.7rem;
            font-weight: 900;
            margin: 0;
            text-transform: uppercase;
            line-height: 1;
            letter-spacing: 1px;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
        }

        .card-posicao {
            font-size: 1rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 4px 0 0 0;
            opacity: 0.85;
        }

        .elogio-flutuante-wrapper {
            position: absolute;
            bottom: 12px;
            right: 12px;
            z-index: 20;
            text-align: right;
            max-width: 75%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            pointer-events: none;
        }

        .elogio-flutuante-wrapper.show {
            opacity: 1;
        }

        .chat-bubble-flutuante {
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            padding: 6px 12px;
            border-radius: 12px 12px 2px 12px;
            border-right: 3px solid var(--accent);
            font-size: 0.9rem;
            font-weight: bold;
            font-style: italic;
            display: inline-block;
            box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(2px);
            margin-bottom: 3px;
        }

        .elogio-autor-flutuante {
            font-size: 0.7rem;
            color: var(--accent);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .bloqueado .card-photo-container {
            background: #333;
        }

        .bloqueado .foto-atleta {
            filter: grayscale(100%);
            opacity: 0.5;
        }

        .bloqueado .name-banner {
            background: #555;
            color: #fff;
            border-color: #333;
        }

        .tarja-bloqueio {
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(198, 40, 40, 0.95);
            padding: 15px;
            border-radius: 8px;
            font-weight: 900;
            font-size: 1.2rem;
            text-align: center;
            width: 85%;
            border: 2px solid #ff5252;
            z-index: 20;
        }

        #modalVotar {
            background: white;
            border-radius: 16px;
            max-width: 380px;
            padding: 0;
        }

        #loadingMsg {
            text-align: center;
            font-weight: bold;
            color: var(--primary);
            font-size: 1.1rem;
            margin-top: 30px;
        }

        /* ====================================================
         FEED DE DESTAQUES (RODAPÉ FLUTUANTE)
         ==================================================== */
        .area-feed-destaque {
            position: fixed;
            bottom: 15px;
            left: 5%;
            width: 90%;
            z-index: 998;
            background: rgba(255, 255, 255, 0.96);
            border: 2px solid var(--accent);
            border-radius: 12px;
            padding: 8px 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            text-align: center;
            transition: opacity 0.3s, transform 0.3s;
        }
        .area-feed-destaque .fechar-destaque {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--red);
            color: white;
            border: 2px solid white;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .area-feed-destaque.minimized {
            opacity: 0.5;
            transform: scale(0.9);
            cursor: pointer;
        }
        .area-feed-destaque.minimized:hover {
            opacity: 1;
        }

        /* ====================================================
         LISTA DE CONVOCAÇÃO / TITULARES
         ==================================================== */
        .lista-time {
            margin-top: 15px;
            text-align: left;
        }

        .lista-time h6 {
            background-color: var(--primary);
            color: white;
            padding: 10px;
            border-radius: 8px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
        }

        .lista-time h6.reservas-title {
            background-color: #666;
            margin-top: 35px;
        }

        .jogador-row {
            background-color: white;
            border: 1px solid #eee;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .jogador-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .jogador-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary);
        }

        .jogador-nome {
            font-weight: bold;
            font-size: 1.15rem;
            color: var(--primary);
            line-height: 1.2;
        }

        .jogador-pos {
            font-size: 0.85rem;
            color: var(--accent);
            text-transform: uppercase;
            margin-top: 3px;
            font-weight: bold;
        }

        .jogador-nota {
            font-weight: bold;
            font-size: 1.3rem;
            color: white;
            background-color: var(--accent);
            padding: 6px 12px;
            border-radius: 6px;
            min-width: 55px;
            text-align: center;
        }

        .btn-imprimir-conv {
            background-color: var(--primary) !important;
            color: white;
            width: 100%;
            height: 55px;
            font-weight: bold;
            font-size: 1.05rem;
            border-radius: 8px;
            margin-top: 25px;
            border: 2px solid var(--accent);
        }

        /* ====================================================
         RESPONSIVIDADE E UTILITÁRIOS
         ==================================================== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tab-content {
            display: none;
        }

        .tab-content.active-tab {
            display: block;
            animation: fadeIn 0.4s ease forwards;
        }

        /* Visualização da Camiseta Mockup */
        .jersey-mockup-container {
            display: flex;
            justify-content: center;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .jersey-mockup {
            width: 200px;
            height: 220px;
            background: var(--primary);
            border: 4px solid var(--accent);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .jersey-mockup::before {
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 15px;
            background: var(--accent);
        }

        .jersey-mockup-sleeves {
            position: absolute;
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            pointer-events: none;
        }

        .jersey-mockup-sleeves::before,
        .jersey-mockup-sleeves::after {
            content: '';
            width: 30px;
            height: 50px;
            background: var(--accent);
        }

        .jersey-mockup-sleeves::before {
            transform: rotate(-30deg) translate(-10px, -5px);
            border-radius: 4px 0 0 4px;
        }

        .jersey-mockup-sleeves::after {
            transform: rotate(30deg) translate(10px, -5px);
            border-radius: 0 4px 4px 0;
        }

        .jersey-preview-name {
            font-size: 1.1rem;
            font-weight: 900;
            color: white;
            text-transform: uppercase;
            margin-top: 25px;
            letter-spacing: 1px;
            text-align: center;
            width: 90%;
            word-wrap: break-word;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
            z-index: 2;
        }

        .jersey-preview-number {
            font-size: 4.5rem;
            font-weight: 900;
            color: var(--accent);
            margin-top: 5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            z-index: 2;
            line-height: 1;
        }

        .jersey-preview-logo {
            position: absolute;
            bottom: 10px;
            font-size: 0.65rem;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 2px;
            text-transform: uppercase;
            z-index: 2;
        }

        /* Estilos para chat de fotos */
        .btn-chat-attach {
            background-color: #777 !important;
            color: white !important;
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .chat-img-msg {
            max-width: 200px;
            max-height: 200px;
            border-radius: 8px;
            cursor: pointer;
            display: block;
            margin: 5px 0;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
        }

        .chat-img-msg:hover {
            transform: scale(1.03);
        }

        @media (max-width: 480px) {
            #telaLogin .login-box img.logo-overlap {
                top: -120px;
                width: 320px;
            }
            #telaLogin .login-box {
                padding: 250px 20px 25px;
                margin-top: 50px;
            }
            .card-photo-container {
                height: 430px;
            }

            .card-nome {
                font-size: 1.5rem;
            }

            .social-post-image {
                height: 260px;
            }

            .menu-lateral-integrado {
                padding-top: 25px;
                padding-right: 15px;
                padding-left: 10px;
            }

            .logo-card {
                width: 65px;
            }
        }

        /* Efeito de Castigo */
        .social-post.em-castigo .social-post-image {
            filter: grayscale(100%) contrast(1.2);
        }

        .badge-castigo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-12deg);
            background: #c62828;
            color: white;
            font-weight: 900;
            font-size: 1.6rem;
            padding: 8px 16px;
            border: 4px solid white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            letter-spacing: 2px;
            z-index: 10;
            pointer-events: none;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            animation: shakeCastigo 0.5s infinite alternate;
        }

        @keyframes shakeCastigo {
            0% {
                transform: translate(-50%, -50%) rotate(-12deg) scale(0.95);
            }

            100% {
                transform: translate(-50%, -50%) rotate(-12deg) scale(1.05);
            }
        }

        /* Castigo no Mini Card (Admin) */
        .mini-card.em-castigo {
            border: 3px solid #c62828 !important;
        }

        .mini-card.em-castigo .mini-foto {
            filter: grayscale(100%);
        }

        .badge-castigo-mini {
            position: absolute;
            top: 5px;
            left: 5px;
            background: #c62828;
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 4px;
            z-index: 2;
        }

        /* Aluno Destaque da Semana */
        .post-destaque-semana {
            border: 3px solid #ffd700 !important;
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25) !important;
            position: relative;
        }

        .destaque-semana-banner {
            background: linear-gradient(135deg, #ffd700, #ffa000);
            color: #1a237e;
            font-weight: 800;
            font-size: 0.8rem;
            text-align: center;
            padding: 8px 10px;
            border-radius: 4px;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: 1px solid #ffd700;
            box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .mini-card.mini-destaque {
            border: 3px solid #ffd700 !important;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.4) !important;
        }

        .badge-destaque-mini {
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 1.1rem;
            z-index: 2;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        /* Castigo no Modal do Trunfo */
        .badge-castigo-card {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-12deg);
            background: #c62828;
            color: white;
            font-weight: 900;
            font-size: 1.8rem;
            padding: 10px 20px;
            border: 4px solid white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            letter-spacing: 2px;
            z-index: 101;
            pointer-events: none;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            animation: shakeCastigo 0.5s infinite alternate;
        }

        /* Barra de Impersonação */
        #barraImpersonacao {
            display: none;
            background: linear-gradient(135deg, #e65100, #ff9800);
            color: white;
            text-align: center;
            padding: 8px 16px;
            font-weight: bold;
            font-size: 0.95rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            align-items: center;
            justify-content: space-between;
            box-sizing: border-box;
        }

        #barraImpersonacao button {
            background-color: white;
            color: #e65100;
            border: none;
            border-radius: 4px;
            padding: 5px 12px;
            font-weight: bold;
            cursor: pointer;
            margin-left: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        #barraImpersonacao button:hover {
            background-color: #fff3e0;
            transform: scale(1.05);
        }

        body.impersonating {
            padding-top: 45px;
        }



        /* ====================================================
         ESTILOS LOJINHA ONLINE & CATÁLOGO ZAP
         ==================================================== */
        .products-grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }

        .product-card {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }

        .product-card-img {
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .product-card-body {
            padding: 15px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .product-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
            margin: 0 0 8px 0;
            line-height: 1.2;
        }

        .product-card-price {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--orange);
            margin: 0 0 10px 0;
        }

        .product-card-desc {
            font-size: 0.9rem;
            color: #616161;
            margin-bottom: 15px;
            flex-grow: 1;
            white-space: pre-wrap;
            line-height: 1.4;
        }

        .product-card-meta {
            font-size: 0.75rem;
            color: #9e9e9e;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .whatsapp-btn {
            background-color: #25d366 !important;
            color: white !important;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            text-decoration: none;
            transition: background-color 0.2s;
            border: none;
            cursor: pointer;
            box-sizing: border-box;
            height: 42px;
        }

        .whatsapp-btn:hover {
            background-color: #128c7e !important;
        }

        .product-delete-btn {
            background: none;
            border: none;
            color: var(--red);
            cursor: pointer;
            font-size: 1.1rem;
            opacity: 0.7;
            transition: opacity 0.2s, transform 0.2s;
        }

        .product-delete-btn:hover {
            opacity: 1;
            transform: scale(1.2);
        }

        .athletes-zap-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .athlete-zap-card {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 15px;
            background: #fcfcfc;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: box-shadow 0.2s;
        }

        .athlete-zap-card:hover {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            background: white;
        }

        .athlete-zap-name {
            font-size: 1rem;
            font-weight: bold;
            color: #333;
            margin: 0;
        }

        .athlete-zap-badges {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .athlete-badge {
            font-size: 0.7rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 10px;
            text-transform: uppercase;
        }

        .badge-position {
            background-color: #e8eaf6;
            color: var(--primary);
        }

        .badge-category {
            background-color: #fff8e1;
            color: var(--orange);
        }

        /* Estilos adicionais para chat multilinhas, edição e moderação */
        .msg-content-text {
            white-space: pre-wrap;
            word-break: break-word;
        }

        .msg-meta-container {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-top: 4px;
            gap: 8px;
        }

        .chat-action-icon {
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s, transform 0.2s;
            font-size: 0.85rem;
        }

        .chat-action-icon:hover {
            opacity: 1;
            transform: scale(1.2);
        }

        .chat-edit-bar {
            background-color: #fffde7;
            border-left: 4px solid #fbc02d;
            padding: 8px 12px;
            display: none;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            font-weight: 500;
            color: #57606a;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            margin-bottom: 5px;
        }

        .chat-edit-bar button {
            background: none;
            border: none;
            cursor: pointer;
            color: #d32f2f;
            font-weight: bold;
        }

        /* ====================================================
         LIGHTBOX DO MURAL DE FOTOS
         ==================================================== */
        .lightbox-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.93);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
            gap: 0;
        }

        .lightbox-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-width: 90vw;
            max-height: 92vh;
        }

        .lightbox-content img {
            max-width: 90vw;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
            display: block;
        }

        .lightbox-caption {
            color: white;
            text-align: center;
            margin-top: 12px;
            font-size: 0.95rem;
            line-height: 1.4;
            padding: 0 15px;
        }

        .lightbox-close {
            position: fixed;
            top: 15px;
            right: 20px;
            color: white;
            font-size: 2.5rem;
            cursor: pointer;
            z-index: 100000;
            line-height: 1;
            opacity: 0.85;
            background: none;
            border: none;
            transition: opacity 0.2s, transform 0.2s;
        }

        .lightbox-close:hover {
            opacity: 1;
            transform: scale(1.15);
        }

        .lightbox-prev, .lightbox-next {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.4);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.2s;
            flex-shrink: 0;
            margin: 0 12px;
        }

        .lightbox-prev:hover, .lightbox-next:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* ====================================================
         ANIMAÇÃO DE LOGIN
         ==================================================== */
        @keyframes logoFadeIn {
            from { opacity: 0; transform: scale(0.7) translateY(-20px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }

        @keyframes loginSlideUp {
            from { opacity: 0; transform: translateY(30px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes bgGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes particleFloat {
            0% { background-position: 0% 0%; }
            100% { background-position: 100% 100%; }
        }
        @keyframes btnShine {
            0% { transform: rotate(45deg) translateX(-100%); }
            100% { transform: rotate(45deg) translateX(100%); }
        }
        @keyframes typingFade {
            0% { opacity: 0; transform: translateY(5px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeScaleIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
        @keyframes logoFadeIn {
            from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
            to { opacity: 1; transform: scale(1) rotate(0); }
        }

        #telaLogin .login-box img {
            animation: logoFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
        }
        #telaLogin .login-box img.logo-overlap {
            position: absolute;
            top: -200px;
            left: 50%;
            transform: translateX(-50%);
            width: 600px;
            max-width: 90vw;
            height: auto;
            z-index: 2;
            animation: logoFadeInOverlap 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }
        @keyframes logoFadeInOverlap {
            from { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-10deg); }
            to   { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
        }

        #telaLogin .login-box {
            animation: loginSlideUp 0.6s 0.2s ease both;
            backdrop-filter: blur(15px);
            background: rgba(13, 27, 92, 0.6);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 16px;
            position: relative;
            overflow: visible;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            padding: 400px 25px 35px;
            width: 90%;
            max-width: 450px;
            margin-top: 130px;
        }

        #telaLogin .login-box::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: 18px;
            background: linear-gradient(45deg, var(--accent), var(--primary), #1565c0, var(--accent));
            background-size: 300% 300%;
            animation: borderGlow 4s ease infinite;
            z-index: -1;
        }

        @keyframes borderGlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        #telaLogin .login-box h4 {
            font-size: 2rem !important;
            letter-spacing: 2px;
        }

        #telaLogin .login-box p.subtitle {
            font-size: 0.9rem;
            margin-bottom: 25px;
            animation: typingFade 3s ease;
            overflow: hidden;
            white-space: nowrap;
            border-right: 2px solid var(--accent);
            animation: typing 2.5s steps(40) 0.6s both, blink 0.8s step-end 3.1s infinite;
            max-width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        @keyframes typing {
            from { width: 0; opacity: 1; }
            to { width: 100%; opacity: 1; }
        }
        @keyframes blink {
            50% { border-color: transparent; }
        }

        #telaLogin .login-box input {
            border: 2px solid rgba(255,255,255,0.3) !important;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
            animation: fadeScaleIn 0.5s 1.2s both;
            background: rgba(255,255,255,0.12) !important;
            color: #fff !important;
        }
        #telaLogin .login-box input::placeholder {
            color: rgba(255,255,255,0.5);
        }

        #telaLogin .login-box input:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 4px 15px rgba(13, 71, 161, 0.15) !important;
            transform: scale(1.02);
        }
        #telaLogin .login-box input.shake {
            animation: shake 0.5s ease;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-10px); }
            40% { transform: translateX(10px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(6px); }
        }

        #telaLogin .login-box .btn-entrar {
            background: linear-gradient(135deg, var(--primary), #1565c0) !important;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            animation: fadeScaleIn 0.5s 1.5s both;
        }

        #telaLogin .login-box .btn-entrar:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
        }

        #telaLogin .login-box .btn-entrar:active {
            transform: translateY(0);
        }

        #telaLogin .login-box .btn-entrar::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: rotate(45deg);
            animation: btnShine 3s ease-in-out infinite;
        }
        #telaLogin .login-box .btn-entrar.loading {
            pointer-events: none;
            opacity: 0.8;
        }
        #telaLogin .login-box .btn-entrar.loading .btn-text {
            visibility: hidden;
        }
        #telaLogin .login-box .btn-entrar.loading::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 24px;
            height: 24px;
            margin: -12px 0 0 -12px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            z-index: 1;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        #telaLogin {
            min-height: 100vh;
            background: linear-gradient(135deg, #0d1b5c, #1a237e, #283593, #1565c0, #0d1b5c);
            background-size: 400% 400%;
            animation: bgGradient 10s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* Bolas de vôlei flutuantes animadas */
        #telaLogin .volei-ball {
            position: absolute;
            font-size: 2rem;
            opacity: 0.15;
            animation: floatBall 8s ease-in-out infinite;
            pointer-events: none;
            user-select: none;
        }
        #telaLogin .volei-ball:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
        #telaLogin .volei-ball:nth-child(2) { top: 20%; right: 8%; animation-delay: 2s; font-size: 1.8rem; }
        #telaLogin .volei-ball:nth-child(3) { bottom: 25%; left: 10%; animation-delay: 4s; font-size: 2rem; }
        #telaLogin .volei-ball:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 6s; font-size: 1.5rem; }
        #telaLogin .volei-ball:nth-child(5) { top: 50%; left: 2%; animation-delay: 1s; font-size: 1.2rem; opacity: 0.1; }
        #telaLogin .volei-ball:nth-child(6) { top: 60%; right: 3%; animation-delay: 3s; font-size: 1.3rem; opacity: 0.1; }
        @keyframes floatBall {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            25% { transform: translateY(-20px) rotate(90deg); }
            50% { transform: translateY(-10px) rotate(180deg); }
            75% { transform: translateY(-30px) rotate(270deg); }
        }

        #telaLogin .passing-ball {
            position: absolute;
            width: 80px;
            height: auto;
            opacity: 0.12;
            pointer-events: none;
            user-select: none;
            z-index: 0;
            top: 30%;
            animation: passBall 18s linear infinite;
            animation-delay: var(--d, 0s);
        }
        @keyframes passBall {
            0% {
                left: calc(var(--dir,1) * -120px);
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            5% { opacity: 0.12; }
            90% { opacity: 0.12; }
            100% {
                left: calc(100% + 120px * var(--dir,1));
                transform: translateY(-40px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Animações para erro/sucesso no login */
        @keyframes successPop {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); opacity: 1; }
        }
        #telaLogin .login-box .login-success {
            animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            font-size: 3rem;
            display: block;
        }

        /* Partículas flutuantes no fundo */
        #telaLogin::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
                radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
                radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.3), transparent),
                radial-gradient(2px 2px at 80% 80%, rgba(255,255,255,0.2), transparent),
                radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.4), transparent),
                radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.2), transparent),
                radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.3), transparent),
                radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.2), transparent);
            background-size: 200% 200%;
            animation: particleFloat 20s linear infinite;
            pointer-events: none;
        }

        /* ====================================================
         EMOJI PICKER
         ==================================================== */
        .emoji-picker-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: transform 0.2s, background 0.2s;
            flex-shrink: 0;
            height: 45px;
            width: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .emoji-picker-btn:hover {
            background: #f0f0f0;
            transform: scale(1.1);
        }

        .emoji-panel {
            display: none;
            position: absolute;
            bottom: 70px;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            z-index: 1000;
            max-height: 250px;
            overflow-y: auto;
        }

        .emoji-panel.visible {
            display: block;
        }

        .emoji-category-title {
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 8px 0 4px 0;
            border-bottom: 1px solid #eee;
            padding-bottom: 3px;
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 3px;
        }

        .emoji-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            transition: background 0.15s, transform 0.1s;
            text-align: center;
            line-height: 1;
        }

        .emoji-btn:hover {
            background: #e8eaf6;
            transform: scale(1.2);
        }

        .sticker-picker-btn {
            background: none;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: transform 0.2s, background 0.2s;
            flex-shrink: 0;
            height: 45px;
            width: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sticker-picker-btn:hover {
            background: #f0f0f0;
            transform: scale(1.1);
        }

        .sticker-panel {
            display: none;
            position: absolute;
            bottom: 70px;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            z-index: 1000;
            max-height: 280px;
            overflow-y: auto;
        }

        .sticker-panel.visible {
            display: block;
        }

        .sticker-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin-bottom: 8px;
        }

        .sticker-btn {
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            cursor: pointer;
            padding: 8px 4px;
            font-size: 0.85rem;
            transition: background 0.15s, transform 0.1s;
            text-align: center;
            line-height: 1.3;
            font-weight: 600;
            color: #333;
        }

        .sticker-btn:hover {
            background: #e8eaf6;
            transform: scale(1.08);
            border-color: var(--primary);
        }

        .chat-sticker-msg {
            display: inline-block;
            font-size: 2.2rem;
            line-height: 1.4;
            padding: 10px 16px;
            background: rgba(255,255,255,0.15);
            border-radius: 16px;
            text-align: center;
            min-width: 80px;
        }

        .msg-minha .chat-sticker-msg {
            background: rgba(255,255,255,0.15);
        }

        .msg-colega .chat-sticker-msg {
            background: #f0f0f0;
        }

        /* ====================================================
         HISTÓRICO DE CONVERSAS (CHAT)
         ==================================================== */
        #conversasPanel { display: none; }

        .chat-history-panel {
            background: white;
            border-radius: 12px;
            border: 1px solid #e8eaf6;
            overflow: hidden;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .chat-history-title {
            background: var(--primary);
            color: white;
            font-weight: bold;
            font-size: 0.85rem;
            padding: 8px 15px;
            letter-spacing: 0.5px;
        }

        /* ===== JOGO 5X1 ===== */
        .game-team-panel {
            flex: 1;
            min-width: 220px;
            padding: 12px;
            background: #fafafa;
            border-radius: 10px;
        }

        .game-player-slot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 8px;
            margin-bottom: 4px;
            background: white;
            border-radius: 6px;
        }

        .game-player-slot.time-a {
            border-left: 3px solid #2196f3;
        }

        .game-player-slot.time-b {
            border-left: 3px solid #f44336;
        }

        .game-player-slot .pos-label {
            font-size: 0.8rem;
            font-weight: bold;
            width: 100px;
        }

        .chat-history-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
            cursor: pointer;
            transition: background 0.15s;
        }

        .chat-history-item:hover {
            background: #e8eaf6;
        }

        .chat-history-item:last-child {
            border-bottom: none;
        }

        .chat-history-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent);
            flex-shrink: 0;
        }

        .chat-history-name {
            font-weight: bold;
            color: var(--primary);
            font-size: 0.9rem;
        }

        .chat-history-preview {
            font-size: 0.78rem;
            color: #777;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        .chat-history-time {
            margin-left: auto;
            font-size: 0.7rem;
            color: #bbb;
            flex-shrink: 0;
        }

        .chat-history-unread {
            background: var(--primary);
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
            border-radius: 10px;
            padding: 2px 7px;
            margin-left: auto;
            flex-shrink: 0;
        }

        /* ====================================================
         ONLINE AGORA / ADMIN PAINEL DE SESSOES
         ==================================================== */
        .online-badge {
            display: inline-block;
            width: 10px;
            height: 10px;
            background: #4caf50;
            border-radius: 50%;
            margin-right: 6px;
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
            animation: pulse-green 1.5s infinite;
        }

        @keyframes pulse-green {
            0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
            70%  { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
            100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
        }

        .online-users-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .online-user-card {
            background: #e8f5e9;
            border: 1px solid #c8e6c9;
            border-radius: 10px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .online-user-name {
            font-size: 0.85rem;
            font-weight: bold;
            color: #2e7d32;
        }

        .contrato-badge {
            display: inline-block;
            background: #e8eaf6;
            color: var(--primary);
            font-size: 0.7rem;
            font-weight: bold;
            border-radius: 10px;
            padding: 2px 8px;
            margin-left: 4px;
        }

        .contrato-badge.assinado {
            background: #e8f5e9;
            color: #2e7d32;
        }

        /* ====================================================
         GERENCIADOR DE BANCO DE DADOS (ADMIN)
         ==================================================== */
        .db-manager-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.82rem;
            overflow-x: auto;
        }

        .db-manager-table th {
            background: var(--primary);
            color: white;
            padding: 8px 12px;
            text-align: left;
            font-weight: bold;
            white-space: nowrap;
        }

        .db-manager-table td {
            padding: 7px 12px;
            border-bottom: 1px solid #eee;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: middle;
        }

        .db-manager-table tr:hover td {
            background: #e8eaf6;
        }

        .db-manager-table tr:nth-child(even) td {
            background: #fafafa;
        }

        .db-manager-table tr:nth-child(even):hover td {
            background: #e8eaf6;
        }

        .db-table-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .db-table-btn {
            background: white;
            border: 2px solid var(--primary);
            color: var(--primary);
            font-weight: bold;
            font-size: 0.8rem;
            padding: 5px 14px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .db-table-btn.active, .db-table-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* ====================================================
         MURAL TOGGLE ABERTO/FECHADO
         ==================================================== */
        .mural-toggle-btn {
            width: 100%;
            height: 55px;
            font-size: 1.1rem;
            font-weight: bold;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .mural-toggle-btn.aberto {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
            color: white;
        }

        .mural-toggle-btn.fechado {
            background: linear-gradient(135deg, #b71c1c, #e53935);
            color: white;
        }

        /* ====================================================
         BADGE VISITANTE
         ==================================================== */
        .badge-visitante {
            background: linear-gradient(135deg, #ff6f00, #ffa000);
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 2px 10px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ====================================================
         QUADRA DRAG & DROP
         ==================================================== */
        #quadraOverlay [draggable="true"]:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        #quadraOverlay [id^="slot-"]:hover {
            border-color: #ffd54f !important;
            box-shadow: 0 0 12px rgba(255,213,79,0.4);
        }
        #quadraOverlay [id^="slot-"]:empty {
            border-style: dashed;
        }
        #quadraOverlay .slot-player-name:empty::after {
            content: 'Vago';
            color: #bbb;
            font-weight: normal;
        }

        /* ====================================================
         SUPER TRUNFO (em breve)
         ==================================================== */
