        /* ====================================================
         DESIGN SYSTEM & ESTILOS GERAIS
         ==================================================== */
        :root {
            --primary: #2A3346;
            --primary-light: #3e4a5e;
            --primary-dark: #1b2433;
            --accent: #d4af37;
            --accent-light: #fff8e1;
            --bg-gray: #f5f5f5;
            --white: #ffffff;
            --red: #c62828;
            --green: #2e7d32;
            --orange: #f57f17;
            --bg-body: #FFFFFF;
            --card-bg: #ffffff;
            --text-color: #1B2538;
            --text-secondary: #707070;
            --border-color: #E0E0E0;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --font-xs: 0.7rem;
            --font-sm: 0.8rem;
            --font-md: 0.9rem;
            --font-base: 1rem;
            --font-lg: 1.15rem;
            --font-xl: 1.4rem;
            --font-2xl: 1.8rem;
            --nav-height: 64px;
        }
        /* [REMOVIDO TEMPORARIAMENTE] body.dark-mode {
            --primary: #7986cb;
            --primary-light: #9fa8da;
            --primary-dark: #3f51b5;
            --accent: #ffd54f;
            --accent-light: #3e2723;
            --bg-gray: #1a1a2e;
            --white: #16213e;
            --bg-body: #0f0f23;
            --card-bg: #1a1a2e;
            --text-color: #e0e0e0;
            --text-secondary: #9ca3af;
            --border-color: #2a2a4a;
            --red: #ef5350;
            --green: #66bb6a;
            --orange: #ffb74d;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
        } */

        body {
            margin: 0;
            padding: 5px;
            padding-bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom, 0));
            background: var(--bg-body);
            color: var(--text-color);
            font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
            overflow-x: hidden;
            scroll-behavior: smooth;
            transition: background 0.3s, color 0.3s;
            -webkit-font-smoothing: antialiased;
        }

        .card {
            padding: 20px;
            border-radius: var(--radius-md);
            margin-top: 15px;
            box-shadow: var(--shadow-md) !important;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg) !important;
        }

        /* ====================================================
         BOTTOM NAVIGATION
         ==================================================== */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--nav-height);
            background: var(--card-bg);
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-around;
            z-index: 9999;
            padding: 0 4px;
            padding-bottom: env(safe-area-inset-bottom, 0);
            box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        }
        .bottom-nav button {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            background: none;
            border: none;
            padding: 6px 2px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: var(--font-xs);
            transition: color 0.2s, transform 0.15s;
            position: relative;
            -webkit-tap-highlight-color: transparent;
            min-width: 0;
        }
        .bottom-nav button .nav-icon {
            font-size: 1.3rem;
            line-height: 1;
            transition: transform 0.2s;
        }
        .bottom-nav button .nav-label {
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .bottom-nav button.active {
            color: var(--primary);
        }
        .bottom-nav button.active .nav-icon {
            transform: scale(1.15);
        }
        .bottom-nav button.active::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 30%;
            right: 30%;
            height: 3px;
            background: var(--accent);
            border-radius: 2px;
        }
        .bottom-nav button:active {
            transform: scale(0.92);
        }
        .bottom-nav button .nav-badge {
            position: absolute;
            top: 2px;
            right: 50%;
            transform: translateX(calc(50% + 10px));
            background: var(--red);
            color: #fff;
            font-size: 0.55rem;
            font-weight: 700;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        body.dark-mode .bottom-nav {
            border-top-color: var(--border-color);
            box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
        }

        /* ====================================================
         TYPOGRAPHY
         ==================================================== */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.2;
            color: var(--text-color);
        }
        h1 { font-size: var(--font-2xl); }
        h2 { font-size: var(--font-xl); }
        h3 { font-size: var(--font-lg); }
        h4 { font-size: var(--font-base); }
        h5 { font-size: var(--font-md); }

        .section-title {
            color: var(--primary);
            font-weight: 800;
            font-size: var(--font-lg);
            margin: 20px 0 12px 0;
            border-bottom: 3px solid var(--accent);
            padding-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ====================================================
         TAB TRANSITIONS
         ==================================================== */
        .tab-content {
            display: none;
            animation: tabFadeIn 0.3s ease;
        }
        .tab-content.active-tab {
            display: block;
        }

        @keyframes tabFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ====================================================
         MICRO-INTERACTIONS
         ==================================================== */
        .ripple {
            position: relative;
            overflow: hidden;
        }
        .ripple::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,0.3) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .ripple:active::after {
            opacity: 1;
        }

        .clickable:active {
            transform: scale(0.97);
        }

        /* Skeleton shimmer */
        .skeleton {
            background: linear-gradient(90deg, var(--border-color) 25%, transparent 50%, var(--border-color) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--radius-sm);
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        /* ====================================================
         GLASSMORPHISM MODALS
         ==================================================== */
        .modal.glass .modal-content {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius-lg);
        }
        body.dark-mode .modal.glass .modal-content {
            background: rgba(22,33,62,0.9);
            border-color: rgba(255,255,255,0.08);
        }

        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: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            border-top: 6px solid var(--accent);
            text-align: center;
            max-width: 400px;
            width: 90%;
            margin: 0 auto;
            transition: all 0.4s ease;
        }

        .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;
        }
        .btn-inscricao {
            animation: fadeScaleIn 0.5s 0.3s both;
        }
        .btn-whatsapp-login {
            display: inline-block;
            margin-top: 10px;
            padding: 6px 16px;
            background: transparent;
            color: var(--primary);
            font-weight: bold;
            border-radius: 20px;
            border: 1.5px solid var(--primary);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            animation: fadeScaleIn 0.5s 0.5s both;
        }
        .btn-whatsapp-login:hover {
            background: var(--primary);
            color: #fff;
        }

        /* 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;
        }

        .menu-categoria-header {
            background: #f0f0f0 !important;
            font-size: 0.9rem !important;
            color: #555 !important;
            border-bottom: 1px solid #ddd !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 12px 20px !important;
        }
        body.dark-mode .menu-categoria-header {
            background: #2a2a2a !important;
            color: #ccc !important;
            border-bottom-color: #444 !important;
        }
        .menu-arrow {
            font-size: 0.7rem;
            transition: transform 0.2s;
        }
        .menu-categoria-items {
            display: none;
        }
        .menu-categoria-items button {
            padding-left: 36px !important;
            font-size: 0.9rem !important;
            font-weight: normal !important;
            border-bottom: 1px solid #f0f0f0 !important;
        }
        .menu-categoria-footer {
            border-top: 2px solid #e0e0e0;
            margin-top: 4px;
            padding-top: 4px;
        }
        body.dark-mode .menu-categoria-footer {
            border-top-color: #444;
        }

        /* ====================================================
         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
         ==================================================== */
        .visita-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 3px 4px;
        }
        .visita-foto {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
            flex-shrink: 0;
        }
        .visita-foto-placeholder {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--primary);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .visita-tag {
            background: var(--bg-gray);
            color: var(--text-color);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
            transition: background 0.2s;
        }

        .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: 1.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;
            position: relative;
        }

        .social-post-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
        }
        .avatar-online-wrapper {
            position: relative;
            display: inline-block;
            flex-shrink: 0;
            margin-right: 12px;
            line-height: 0;
        }

        .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: var(--primary-dark);
            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: 80px;
            left: 5%;
            width: 90%;
            z-index: 99999;
            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);
            }
        }

        /* 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 */
        .chat-header-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .btn-chat-reload {
            background: none;
            border: none;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 6px;
            border-radius: 50%;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .btn-chat-reload:hover {
            background: #f0f0f0;
        }

        /* WhatsApp-style chat input */
        .chat-input-whatsapp {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            padding: 8px 10px;
            background: var(--card-bg);
            border-top: 1px solid var(--border-color);
        }
        .btn-chat-whatsapp {
            background: none;
            border: none;
            font-size: 1.4rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            flex-shrink: 0;
            color: var(--text-secondary);
        }
        .btn-chat-whatsapp:hover {
            background: var(--bg-gray);
        }
        .chat-input-wrapper {
            flex: 1;
            display: flex;
            align-items: flex-end;
            gap: 4px;
            background: var(--bg-gray);
            border-radius: 24px;
            padding: 0 4px 0 16px;
            border: 1px solid var(--border-color);
            transition: border-color 0.2s;
            min-width: 0;
        }
        .chat-input-wrapper:focus-within {
            border-color: var(--primary);
        }
        .chat-input-field {
            flex: 1;
            border: none !important;
            background: transparent !important;
            padding: 10px 0 !important;
            height: 24px !important;
            min-height: 24px !important;
            max-height: 120px !important;
            margin: 0 !important;
            font-size: 16px !important;
            line-height: 1.4 !important;
            font-family: inherit;
            resize: none;
            outline: none;
            color: var(--text-color);
            box-shadow: none !important;
            font-weight: normal !important;
        }
        .chat-input-field::placeholder {
            color: var(--text-secondary);
            font-weight: normal;
        }
        .chat-input-wrapper .emoji-picker-btn {
            width: 36px;
            height: 36px;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        .btn-chat-send {
            background-color: var(--accent);
            color: var(--primary);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
            transition: transform 0.15s, opacity 0.15s;
        }
        .btn-chat-send:active {
            transform: scale(0.9);
        }
        body.dark-mode .chat-input-whatsapp {
            border-top-color: var(--border-color);
        }
        body.dark-mode .chat-input-wrapper {
            background: var(--card-bg);
            border-color: var(--border-color);
        }
        body.dark-mode .btn-chat-whatsapp {
            color: var(--text-secondary);
        }

        @media (max-width: 480px) {
            .chat-input-whatsapp {
                gap: 6px;
                padding: 6px 8px;
            }
            .btn-chat-whatsapp {
                width: 36px;
                height: 36px;
                font-size: 1.2rem;
            }
            .chat-input-wrapper {
                padding: 0 2px 0 12px;
                border-radius: 20px;
            }
            .chat-input-field {
                padding: 8px 0 !important;
                height: 20px !important;
                min-height: 20px !important;
                font-size: 16px !important;
            }
            .chat-input-wrapper .emoji-picker-btn {
                width: 32px;
                height: 32px;
                font-size: 1.1rem;
            }
            .btn-chat-send {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
        }

.chat-img-wrapper {
    display: block;
    margin: 4px 0;
}

.chat-img-wrapper a {
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.chat-img-msg {
    max-width: 260px;
    max-height: 260px;
    width: auto;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    object-fit: contain;
    background: #f0f0f0;
}

.chat-img-msg:hover {
    transform: scale(1.03);
}

        @media (max-width: 480px) {
            .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: var(--primary);
            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);
        }

        .product-edit-btn {
            background: none;
            border: none;
            color: var(--primary);
            cursor: pointer;
            font-size: 1.1rem;
            opacity: 0.7;
            transition: opacity 0.2s, transform 0.2s;
        }

        .product-edit-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); }
        }

        @keyframes logoFadeInOverlap {
            from { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-10deg); }
            to   { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
        }

        @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 {
            animation: fadeScaleIn 0.5s 1.2s both;
        }
        #telaLogin .login-box input::placeholder {
            color: #999;
        }
        #telaLogin .login-box input:focus {
            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 {
            animation: fadeScaleIn 0.5s 1.5s both;
        }
        #telaLogin .login-box .btn-entrar:hover {
            transform: translateY(-2px);
        }
        #telaLogin .login-box .btn-entrar:active {
            transform: translateY(0);
        }

        #telaLogin {
            min-height: 100vh;
            min-height: 100dvh;
            background: linear-gradient(135deg, #0d1b5c, #1a237e, #283593, #1565c0, #0d1b5c);
            background-size: 400% 400%;
            animation: bgGradient 10s ease infinite;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            padding-bottom: env(safe-area-inset-bottom);
        }

        /* 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;
            }
        }

        /* Container do logo na tela de login */
        #perfilRedeCapa {
            width: 100% !important;
            height: 200px;
            background-size: cover !important;
            background-position: center;
        }

        #loginLogoContainer {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            width: 100%;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        #loginLogoContainer:hover {
            transform: scale(1.02);
        }
        #loginLogoContainer:active {
            transform: scale(0.97);
        }

        /* 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)
         ==================================================== */

/* ========== SKELETON LOADING ========== */
@keyframes skeletonShine {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200px 100%;
    animation: skeletonShine 1.2s ease-in-out infinite;
    border-radius: 8px;
}
body.dark-mode .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200px 100%;
}
.skeleton-card {
    height: 200px;
    margin-bottom: 12px;
}
.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}
.skeleton-line.short { width: 50%; }
.skeleton-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
}

/* ========== ONLINE DOT ========== */
.online-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(76,175,80,0.5);
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}
.online-dot.offline {
    background: #bdbdbd;
}
.avatar-online-wrapper .online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
}
.mini-card .online-dot {
    position: absolute;
    bottom: 44px;
    right: 14px;
    width: 14px; height: 14px;
    z-index: 2;
}

/* ========== REACTIONS BAR ========== */
.reacoes-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.reacoes-bar button {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    padding: 2px 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: 0.2s;
    color: var(--text-color);
}
.reacoes-bar button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}
.reacoes-bar button.ativo {
    background: var(--accent-light);
    border-color: var(--accent);
    box-shadow: 0 0 4px rgba(212,175,55,0.3);
}

/* ========== NOTIFICATION DROPDOWN ========== */
#notifDropdown {
    scrollbar-width: thin;
}
#notifDropdown::-webkit-scrollbar { width: 4px; }
#notifDropdown::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
body.dark-mode #notifDropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
}
.notif-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.notif-item:hover { background: rgba(0,0,0,0.03); }
body.dark-mode .notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.nao-lida { background: var(--accent-light); font-weight: 600; }
.notif-item .notif-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.notif-item .notif-text { flex: 1; }
.notif-item .notif-time { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }

/* ========== SEARCH BAR ========== */
.search-rede {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    background: var(--card-bg);
    color: var(--text-color);
    transition: 0.2s;
    box-sizing: border-box;
}
.search-rede:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,35,126,0.15);
}

/* ========== PULL TO REFRESH ========== */
.pull-indicator {
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: none;
}
.pull-indicator.active {
    display: block;
}
.pull-indicator .spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== BIO ========== */
.bio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.bio-edit {
    display: none;
    margin-top: 8px;
}
.bio-edit textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.85rem;
    background: var(--card-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

/* ========== ÁLBUM DE FOTOS ========== */
.album-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.15s;
}
.album-item:hover { transform: scale(1.03); }
.album-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.album-delete {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 24px;
    padding: 0;
    text-align: center;
}
.album-item:hover .album-delete { opacity: 1; }
body.dark-mode .album-item { border-color: var(--border-color); }

/* ===== UTILITY CLASSES ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.text-extrabold { font-weight: 800; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.text-gray { color: #888; }
.text-gray2 { color: #666; }
.text-gray3 { color: #999; }
.text-sm { font-size: var(--font-sm); }
.text-xs { font-size: var(--font-xs); }
.text-md { font-size: var(--font-md); }
.text-lg { font-size: var(--font-lg); }
.text-base { font-size: var(--font-base); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-6 { border-radius: 6px; }
.rounded-8 { border-radius: 8px; }
.rounded-12 { border-radius: 12px; }
.rounded-16 { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-45 { height: 45px; }
.p-6 { padding: 6px; }
.p-8 { padding: 8px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-14 { padding: 14px; }
.p-15 { padding: 15px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.ml-8 { margin-left: 8px; }
.mr-8 { margin-right: 8px; }
.my-8 { margin-top: 8px; margin-bottom: 8px; }
.my-12 { margin-top: 12px; margin-bottom: 12px; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.clickable { cursor: pointer; transition: transform 0.15s, opacity 0.15s; }
.clickable:active { transform: scale(0.97); }
.b-none { border: none; }
.b-gray { border: 1px solid #ddd; }
.b-light { border: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none !important; }
.overflow-h { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.bg-white { background: var(--card-bg); }
.bg-gray { background: var(--bg-gray); }
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ====================================================
   ESCALAÇÃO (TIME A, B, C)
   ==================================================== */
#areaEscalacao {
    padding: 12px 0;
}

.esc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: #888;
    gap: 12px;
    font-weight: bold;
}

.esc-header {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, var(--primary), #0d47a1);
    color: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.esc-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.esc-subtitle {
    margin: 6px 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.esc-admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.esc-btn-primary {
    background: var(--primary) !important;
    font-weight: bold !important;
    flex: 1;
    min-width: 140px;
}

.esc-btn-secondary {
    background: #546e7a !important;
    font-weight: bold !important;
    flex: 1;
    min-width: 140px;
}

.esc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-weight: bold;
}

/* Times Container */
.esc-times-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.esc-time-card {
    flex: 1;
    min-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.esc-time-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white;
}

.esc-time-letra {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.esc-time-nome {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}

.esc-time-count {
    font-size: 0.75rem;
    opacity: 0.85;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Tipo section (Titulares / Reservas) */
.esc-tipo-section {
    padding: 8px 12px;
}

.esc-tipo-label {
    font-weight: 700;
    font-size: 0.75rem;
    color: #1a237e;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 0;
    border-bottom: 2px solid #1a237e;
    margin-bottom: 8px;
}

.esc-tipo-label-reserva {
    color: #666;
    border-bottom-color: #999;
    margin-top: 8px;
}

.esc-empty-msg {
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    padding: 8px;
    font-style: italic;
}

/* Jogador Card */
.esc-jogador-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
}

.esc-jogador-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.esc-jogador-foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.esc-jogador-info {
    flex: 1;
    min-width: 0;
}

.esc-jogador-nome {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

.esc-jogador-nome-completo {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esc-jogador-posicao {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    margin-top: 2px;
}

.esc-jogador-time-tipo {
    font-size: 0.72rem;
    color: #999;
    margin-top: 1px;
}

/* Admin fields on card */
.esc-jogador-campos {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.esc-select-pos, .esc-select-tipo, .esc-select-time {
    font-size: 0.72rem;
    padding: 3px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    height: 28px;
}

.esc-select-pos { min-width: 90px; }
.esc-select-tipo { min-width: 75px; }
.esc-select-time { min-width: 65px; }

.esc-btn-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ef5350;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.esc-btn-remove:hover {
    background: #c62828;
}

/* Evolução */
.esc-evolucao-section {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.esc-evolucao-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.esc-evolucao-toggle:hover {
    opacity: 0.8;
}

.esc-evolucao-content {
    padding: 8px 0;
}

.esc-evol-campo {
    margin-bottom: 8px;
}

.esc-evol-campo label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.esc-textarea-evol {
    width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.esc-textarea-evol:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,35,126,0.1);
}

.esc-evol-texto {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
    padding: 4px 0;
    white-space: pre-wrap;
}

/* Modal Adicionar Jogador */
.esc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.esc-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.esc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.esc-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.esc-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.esc-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.esc-modal-body label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 4px;
}

.esc-modal-grupo {
    padding: 8px 0 4px;
    margin-top: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.esc-modal-grupo span {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esc-modal-lista {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.esc-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.esc-modal-item:hover {
    background: #f0f0f0;
}

.esc-modal-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.esc-modal-item div {
    flex: 1;
}

.esc-modal-item strong {
    font-size: 0.85rem;
    display: block;
}

.esc-modal-item small {
    font-size: 0.72rem;
    color: #888;
}

.esc-badge-jaincluso {
    font-size: 0.65rem;
    background: #eee;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Responsivo: empilha times em mobile */
@media (max-width: 600px) {
    .esc-times-container {
        flex-direction: column;
    }
    .esc-time-card {
        min-width: 100%;
    }
    .esc-jogador-campos {
        flex-direction: column;
        align-items: stretch;
    }
    .esc-select-pos, .esc-select-tipo, .esc-select-time {
        min-width: auto;
        width: 100%;
    }
}

/* FICHA DE EVOLUÇÃO - 4 Pilares */
.esc-ficha-evolucao {
    margin-top: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.esc-ficha-header {
    background: linear-gradient(135deg, #263238, #37474f);
    color: white;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.esc-ficha-header small {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.8;
}

.esc-ficha-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.esc-ficha-pilar {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.esc-ficha-pilar:last-child {
    border-bottom: none;
}

.esc-ficha-pilar-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.esc-ficha-pilar-content {
    flex: 1;
    min-width: 0;
}

.esc-ficha-pilar-titulo {
    font-weight: 700;
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.esc-ficha-pilar-desc {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 2px;
}

.esc-ficha-pilar-regra {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e0e0e0;
}

.esc-ficha-pilar-regra strong {
    color: #333;
}

@media (max-width: 600px) {
    .esc-ficha-pilar {
        padding: 12px 14px;
    }
    .esc-ficha-pilar-titulo {
        font-size: 0.82rem;
    }
    .esc-ficha-pilar-desc,
    .esc-ficha-pilar-regra {
        font-size: 0.74rem;
    }
}

@media (min-width: 901px) {
    .esc-times-container {
        flex-wrap: nowrap;
    }
}

/* Corrige "salto" na rolagem ao clicar em checkboxes Materialize (position:absolute
   sem ancestral posicionado faz o navegador rolar a página até o input fantasma). */
#listaAtletasChamada label {
    position: relative;
}

