        @import url('https://fonts.googleapis.com/css2?family=Bangers&family=Creepster&family=Dancing+Script:wght@700&family=Fredericka+the+Great&family=Gloria+Hallelujah&family=Indie+Flower&family=Montserrat:wght@400;700&family=Orbitron:wght@400;700&family=Permanent+Marker&family=Poppins:wght@300;400;600&family=Press+Start+2P&family=Rajdhani:wght@500;700&family=Righteous&family=Roboto:wght@400;700&family=Russo+One&family=Special+Elite&family=VT323&display=swap');

        /* ======================== 🎨 VARIÁVEIS DE TEMA ======================== */
        :root {
            /* TEMA ÚNICO - Background Transparente */
            --primary-color: #B88CFF;
            --secondary-color: #6A42B2;
            --text-primary: #E5D7FF;
            --text-secondary: #c7adff;
            --background-main: transparent;

            /* OPACIDADE CONTROLÁVEL: 0.75 é o valor inicial */
            --content-opacity: 0.75;

            /* Fundos que usam opacidade (A opacidade varia, o RGB é fixo) */
            --background-content-rgba: 0, 0, 0;
            --card-background-rgba: 30, 20, 50;
            --item-background-rgba: 110, 78, 180;
            --input-background-rgba: 43, 34, 72;

            --background-content: rgba(var(--background-content-rgba), var(--content-opacity));
            --card-background: rgba(var(--card-background-rgba), var(--content-opacity));
            --item-background: rgba(var(--item-background-rgba), calc(var(--content-opacity) * 0.4));
            --input-background: rgba(var(--input-background-rgba), var(--content-opacity));

            --chat-background: #120F1C;
            --shadow-color: rgba(184, 140, 255, 0.5);
            --chat-text-color: #E5D7FF;

            /* Neon Glow Effect */
            --neon-glow: 0 0 5px var(--primary-color), 0 0 20px rgba(184, 140, 255, 0.4);

            /* MIRKGANG NEW VARS */
            --neon-cyan: #00f3ff;
            --neon-pink: #ff0cf5;
            --neon-purple: #bc13fe;
            --glass-border-cyan: rgba(0, 243, 255, 0.5);
            --glass-border-pink: rgba(255, 12, 245, 0.5);
            --glass-border-purple: rgba(188, 19, 254, 0.5);
            --boss-row-height: 40px;
        }

        /* ======================== ⚡ GPU ACCELERATION & PERFORMANCE ======================== */
        /* Força GPU para elementos com animações - melhora FPS significativamente */
        .new-badge,
        .quests-notification-badge,
        .inventory-notification-badge,
        .notification-badge,
        .chat-notification-badge,
        .unread-badge,
        .boss-item,
        .boss-card,
        .timer-card,
        .modal,
        .modal-content,
        .dropdown-content,
        .tooltip,
        .toast,
        .profile-card,
        .leaderboard-row,
        .chat-message,
        .store-item,
        .quest-card,
        .inventory-item,
        [class*="effect-"],
        [class*="animation-"],
        [class*="animate-"] {
            transform: translateZ(0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        /* Otimização de contenção - isola repaints */
        .boss-list,
        .chat-messages,
        .leaderboard-content,
        .store-grid,
        .inventory-grid,
        .quest-list,
        .history-container {
            contain: content;
        }

        /* will-change apenas em elementos que REALMENTE animam (evita overhead) */
        .new-badge,
        .quests-notification-badge,
        .inventory-notification-badge,
        .notification-badge {
            will-change: transform, opacity;
        }

        /* Reduz trabalho em animações de background */
        @media (prefers-reduced-motion: no-preference) {
            .boss-item,
            .timer-card,
            .profile-card {
                will-change: auto;
            }
        }

        /* ======================== 🆕 NEW BADGE (Standardized) ======================== */
        .new-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: linear-gradient(45deg, #00ff00, #00aa00);
            color: black;
            font-size: 10px;
            font-weight: 900;
            padding: 2px 5px;
            border-radius: 6px;
            border: 1px solid rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 5px #00ff00;
            z-index: 10;
            animation: pulseNew 1.5s infinite;
        }

        /* Badge NEW para features novas (Loja, Quests, Mochila, Ranking) */
        .new-feature-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ff0066, #ff6600);
            color: white;
            font-size: 8px;
            font-weight: 900;
            padding: 3px 6px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 10px rgba(255, 0, 102, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
            z-index: 100;
            animation: newFeaturePulse 2s ease-in-out infinite;
            text-transform: uppercase;
            letter-spacing: 1px;
            pointer-events: none;
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        .new-feature-badge.hidden {
            display: none !important;
        }

        @keyframes newFeaturePulse {
            0%, 100% {
                transform: scale(1) rotate(-3deg);
                box-shadow: 0 0 10px rgba(255, 0, 102, 0.7);
            }
            50% {
                transform: scale(1.1) rotate(3deg);
                box-shadow: 0 0 20px rgba(255, 102, 0, 0.9);
            }
        }

        @keyframes pulseNew {
            0% {
                transform: scale(1);
                box-shadow: 0 0 5px #00ff00;
            }

            50% {
                transform: scale(1.1);
                box-shadow: 0 0 10px #00ff00;
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 5px #00ff00;
            }
        }

        /* ======================== 🛒 STORE MODAL ======================== */
        #store-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
        }

        .store-panel {
            background: var(--card-background);
            border: 1px solid var(--primary-color);
            border-radius: 15px;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 30px rgba(184, 140, 255, 0.2);
            animation: slideIn 0.3s ease-out;
        }

        .store-header {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px 15px 0 0;
        }

        .store-header h3 {
            margin: 0;
            color: var(--primary-color);
            font-family: 'Orbitron', sans-serif;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .store-content {
            padding: 20px;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .store-item-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            transition: transform 0.2s, border-color 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .store-item-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-color);
            background: rgba(255, 255, 255, 0.08);
        }

        .store-item-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }

        .store-item-name {
            font-weight: bold;
            color: #fff;
            margin-bottom: 5px;
        }

        .store-item-desc {
            font-size: 12px;
            color: #ccc;
            margin-bottom: 15px;
            flex-grow: 1;
        }

        .store-item-price {
            background: rgba(255, 215, 0, 0.1);
            color: #FFD700;
            padding: 5px 10px;
            border-radius: 15px;
            font-weight: bold;
            margin-bottom: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .store-buy-btn {
            width: 100%;
            padding: 8px;
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.2s;
        }

        .store-buy-btn:hover {
            background: var(--primary-color);
        }

        .store-buy-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #555;
        }


        body.classic-mode {
            --primary-color: #888888;
            --secondary-color: #555555;
            --text-primary: #e0e0e0;
            --text-secondary: #aaaaaa;
            --background-main: #121212;
            --background-content: #1e1e1e;
            --card-background: #252525;
            --item-background: #303030;
            --input-background: #353535;
            --chat-background: #1a1a1a;
            --shadow-color: transparent;
            --neon-glow: none;
        }

        /* Remove TODAS as animações no modo clássico */
        body.classic-mode *,
        body.classic-mode *::before,
        body.classic-mode *::after {
            animation: none !important;
            transition: none !important;
        }

        /* Fundo sólido */
        body.classic-mode {
            background: #121212 !important;
        }

        /* Títulos sem gradiente RGB */
        body.classic-mode h1,
        body.classic-mode .section-title {
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
            -webkit-text-fill-color: #ffffff !important;
            color: #ffffff !important;
            text-shadow: none !important;
            filter: none !important;
        }

        /* Cards simples */
        body.classic-mode .piso-card {
            background: #2a2a2a !important;
            border: 1px solid #444 !important;
            border-radius: 8px !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
        }

        body.classic-mode .piso-card::before,
        body.classic-mode .piso-card::after {
            display: none !important;
        }

        body.classic-mode .piso-card:hover {
            transform: none !important;
            box-shadow: none !important;
            border-color: #666 !important;
        }

        /* Títulos dos cards */
        body.classic-mode .piso-card h3 {
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
            -webkit-text-fill-color: #ffffff !important;
            color: #ffffff !important;
            filter: none !important;
            font-family: Arial, sans-serif !important;
        }

        /* Boss items simples */
        body.classic-mode .boss-item {
            background: #333 !important;
            border: 1px solid #555 !important;
            border-radius: 6px !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
        }

        body.classic-mode .boss-item::before {
            display: none !important;
        }

        body.classic-mode .boss-item:hover {
            transform: none !important;
            background: #3a3a3a !important;
        }

        /* Timers - cores sólidas sem gradiente */
        body.classic-mode .time-left {
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
            -webkit-text-fill-color: currentColor !important;
            filter: none !important;
            text-shadow: none !important;
            font-family: 'Consolas', 'Courier New', monospace !important;
            font-weight: bold !important;
        }

        body.classic-mode .boss-item.safe .time-left {
            color: #22c55e !important;
        }

        body.classic-mode .boss-item.warning .time-left {
            color: #f59e0b !important;
        }

        body.classic-mode .boss-item.urgent .time-left {
            color: #ef4444 !important;
        }

        /* Progress bars simples */
        body.classic-mode .boss-progress {
            background: #444 !important;
            border-radius: 2px !important;
        }

        body.classic-mode .boss-progress-bar {
            background: #666 !important;
            box-shadow: none !important;
        }

        body.classic-mode .boss-item.safe .boss-progress-bar {
            background: #22c55e !important;
        }

        body.classic-mode .boss-item.warning .boss-progress-bar {
            background: #f59e0b !important;
        }

        body.classic-mode .boss-item.urgent .boss-progress-bar {
            background: #ef4444 !important;
        }

        /* Botões simples */
        body.classic-mode button,
        body.classic-mode .btn,
        body.classic-mode [class*="btn"] {
            background: #444 !important;
            border: 1px solid #666 !important;
            box-shadow: none !important;
            border-radius: 4px !important;
        }

        body.classic-mode button:hover,
        body.classic-mode .btn:hover {
            background: #555 !important;
            transform: none !important;
            box-shadow: none !important;
        }

        body.classic-mode #btnRegistrar {
            background: #22c55e !important;
            border-color: #16a34a !important;
        }

        body.classic-mode #btnHoraAtual {
            background: #f97316 !important;
            border-color: #ea580c !important;
        }

        /* Rotação sem gradiente */
        body.classic-mode .boss-rotation {
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
            -webkit-text-fill-color: #f59e0b !important;
            color: #f59e0b !important;
            filter: none !important;
            text-shadow: none !important;
        }

        /* Next rotation bar simples */
        body.classic-mode #next-rotation-info {
            background: none !important;
            -webkit-text-fill-color: #ffffff !important;
            text-shadow: none !important;
        }

        /* Badges simples */
        body.classic-mode .risk-badge,
        body.classic-mode .high-req-badge,
        body.classic-mode .on-demand-badge {
            background: #555 !important;
            border: 1px solid #777 !important;
            box-shadow: none !important;
        }

        /* Toggle oculto simples */
        body.classic-mode .expand-hidden-btn {
            background: #333 !important;
            border: 1px dashed #666 !important;
        }

        body.classic-mode .expand-hidden-btn:hover {
            background: #444 !important;
            border-style: solid !important;
            box-shadow: none !important;
            transform: none !important;
        }

        /* Chat simples */
        body.classic-mode #chatWindow {
            background: #222 !important;
            border: 1px solid #444 !important;
            box-shadow: none !important;
        }

        /* Online box simples */
        body.classic-mode #online-count-box {
            background: #2a2a2a !important;
            border: 1px solid #444 !important;
            box-shadow: none !important;
        }

        /* Inputs simples */
        body.classic-mode input,
        body.classic-mode select {
            background: #333 !important;
            border: 1px solid #555 !important;
            box-shadow: none !important;
        }

        /* Histórico simples */
        body.classic-mode .history-card {
            background: #252525 !important;
            border: 1px solid #444 !important;
        }

        /* Neon sub texto */
        body.classic-mode .neon-sub {
            text-shadow: none !important;
            color: #888 !important;
        }

        /* FAB buttons */
        body.classic-mode #chatFab,
        body.classic-mode #manual-fab {
            background: #555 !important;
            box-shadow: none !important;
        }

        body.classic-mode #chatFab:hover,
        body.classic-mode #manual-fab:hover {
            box-shadow: none !important;
        }

        /* Botão de Toggle de Modo */
        #classic-mode-toggle {
            position: fixed;
            bottom: 80px;
            left: 20px;
            background: linear-gradient(145deg, rgba(40, 40, 60, 0.95), rgba(25, 25, 40, 0.98));
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 25px;
            padding: 10px 16px;
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        #classic-mode-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
            border-color: rgba(255, 255, 255, 0.25);
        }

        #classic-mode-toggle .mode-icon {
            font-size: 16px;
        }

        /* Estilo do botão no modo clássico */
        body.classic-mode #classic-mode-toggle {
            background: #333 !important;
            border: 1px solid #555 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }

        body.classic-mode #classic-mode-toggle:hover {
            background: #444 !important;
        }

        .profile-new-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: linear-gradient(45deg, #ff0055, #ff00aa);
            color: white;
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 8px;
            font-weight: 800;
            box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
            animation: badgePulse 1.5s infinite;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.3);
            letter-spacing: 0.5px;
        }

        @keyframes badgePulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 5px rgba(255, 0, 85, 0.6);
            }

            50% {
                transform: scale(1.1);
                box-shadow: 0 0 10px rgba(255, 0, 85, 0.8);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 5px rgba(255, 0, 85, 0.6);
            }
        }

        .profile-modal-content {
            animation: profileSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes profileSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .profile-avatar-container {
            position: relative;
            display: inline-block;
        }

        .profile-avatar-container::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-color), var(--neon-cyan), var(--neon-pink));
            z-index: -1;
            animation: spinBorder 4s linear infinite;
            opacity: 0.7;
        }

        @keyframes spinBorder {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .message-reactions {
            display: flex;
            gap: 2px;
            margin-top: 2px;
            justify-content: flex-end;
            flex-wrap: wrap;
        }

        .reaction-badge {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .reaction-badge:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .reaction-badge.user-reacted {
            background: rgba(184, 140, 255, 0.3);
            border-color: var(--primary-color);
        }

        .reaction-picker {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: var(--card-background);
            border: 1px solid var(--secondary-color);
            border-radius: 20px;
            padding: 5px 10px;
            display: flex;
            gap: 5px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            z-index: 2000;
            animation: fadeIn 0.2s ease;
            flex-wrap: wrap;
            max-width: 260px;
        }

        .reaction-option {
            font-size: 18px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .reaction-option:hover {
            transform: scale(1.3);
        }

        .online-user-item,
        .online-user {
            cursor: pointer;
            transition: background 0.2s;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .online-user-item:hover,
        .online-user:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        body.classic-mode {
            background-image: none !important;
            background-color: #121212 !important;
        }

        body.classic-mode::before {
            display: none !important;
        }

        body.classic-mode .profile-avatar-container::after {
            display: none !important;
        }

        body.classic-mode .profile-new-badge {
            animation: none !important;
            box-shadow: none !important;
            background: #ff0055 !important;
        }

        /* Classic mode - Identity Editor */
        body.classic-mode .identity-editor {
            font-family: 'Courier New', monospace;
        }

        body.classic-mode .id-live-preview {
            background: rgba(0, 255, 0, 0.05) !important;
            border-color: rgba(0, 255, 0, 0.3) !important;
            border-radius: 0 !important;
        }

        body.classic-mode .id-section {
            border-radius: 0 !important;
            border-color: rgba(0, 255, 0, 0.2) !important;
        }

        body.classic-mode .id-color-btn,
        body.classic-mode .id-font-btn,
        body.classic-mode .id-effect-btn {
            border-radius: 0 !important;
        }

        body.classic-mode .id-color-btn.active,
        body.classic-mode .id-font-btn.active,
        body.classic-mode .id-effect-btn.active {
            border-color: #0f0 !important;
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
        }

        body.classic-mode .id-preview-nick {
            font-family: inherit !important;
        }

        /* Classic mode - Event Cards */
        body.classic-mode .event-notification-card {
            border-radius: 0 !important;
            border-color: rgba(0, 255, 0, 0.4) !important;
        }

        body.classic-mode .event-mini-pill {
            border-radius: 0 !important;
            border-color: rgba(0, 255, 0, 0.3) !important;
        }

        /* ======================== ✨ ANIMAÇÕES DE ENTRADA (ESSENCIAIS) ======================== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes glowPulse {

            0%,
            100% {
                box-shadow: 0 0 5px var(--shadow-color);
            }

            50% {
                box-shadow: 0 0 15px var(--shadow-color);
            }
        }

        /* BOTÕES DE PRESET DE COR */
        .color-preset {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .color-preset:hover {
            transform: scale(1.15);
            box-shadow: 0 0 10px currentColor;
        }

        /* ======================== 🔐 LOGIN CLÁSSICO (SÓBRIO) ======================== */
        #login-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: none;
            display: flex;
            /* Centraliza o box */
            align-items: center;
            justify-content: center;
        }

        #login-box {
            background: #1e1e2f;
            /* Azul escuro sólido */
            border: 1px solid #333;
            border-radius: 8px;
            padding: 35px;
            width: 100%;
            max-width: 380px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            text-align: center;
        }

        #login-box h2 {
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            color: #fff;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 20px;
            text-shadow: none;
        }

        .auth-tab {
            background: transparent;
            border: none;
            color: #888;
            font-weight: 600;
            font-size: 14px;
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .auth-tab.active {
            color: #fff;
            border-bottom: 2px solid var(--primary-color);
        }

        .auth-tab:hover {
            color: #ccc;
        }

        .auth-tab.active::after {
            display: none;
        }

        /* Inputs Clássicos */
        #login-box input {
            background: #2b2b3d;
            border: 1px solid #444;
            color: #fff;
            padding: 12px;
            margin-bottom: 12px;
            border-radius: 4px;
            width: 100%;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
        }

        #login-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: #32324a;
        }

        #login-box input::placeholder {
            color: #666;
        }

        /* Botão Principal Clássico */
        #btnLogin,
        #btnRegister {
            background: var(--primary-color);
            color: #fff;
            font-weight: 600;
            text-transform: uppercase;
            padding: 12px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
            font-size: 14px;
            transition: opacity 0.2s;
            box-shadow: none;
            font-family: 'Inter', sans-serif;
        }

        #btnLogin:hover,
        #btnRegister:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .auth-link {
            color: #888;
            font-size: 12px;
            text-decoration: none;
            margin-top: 15px;
            display: inline-block;
        }

        .auth-link:hover {
            color: #fff;
            text-decoration: underline;
        }

        /* ======================== 💰 PAYMENT OVERLAY (GLASSMORPHISM) ======================== */
        #payment-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            background: rgba(10, 10, 18, 0.95);
            backdrop-filter: blur(15px);
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.5s ease-out;
        }

        #payment-box {
            background: rgba(18, 15, 28, 0.85);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(184, 140, 255, 0.3);
            border-radius: 20px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 80px rgba(184, 140, 255, 0.2);
            animation: fadeInUp 0.6s ease-out;
            text-align: center;
        }

        #payment-box h2 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 26px;
            text-shadow: 0 0 20px rgba(184, 140, 255, 0.5);
        }

        #payment-box h3 {
            color: var(--accent-color);
            margin: 20px 0 10px;
            font-size: 20px;
        }

        .payment-price {
            font-size: 42px;
            font-weight: 900;
            color: #FFD700;
            margin: 20px 0;
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
            animation: glowPulse 2s ease-in-out infinite;
        }

        .payment-subtitle {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 30px;
        }

        .pix-qr-container {
            margin: 25px 0;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(184, 140, 255, 0.2);
        }

        .pix-qr-container img {
            max-width: 250px;
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .pix-key {
            background: rgba(20, 18, 30, 0.8);
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-family: 'Courier New', monospace;
            color: #00FFFF;
            font-size: 14px;
            word-break: break-all;
            border: 1px solid rgba(0, 255, 255, 0.3);
            box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
        }

        .payment-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin: 10px 5px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(184, 140, 255, 0.4);
        }

        .payment-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(184, 140, 255, 0.6);
        }

        .payment-btn-secondary {
            background: rgba(100, 100, 120, 0.3);
            border: 1px solid var(--border-color);
        }

        .payment-btn-secondary:hover {
            background: rgba(120, 120, 140, 0.4);
        }

        .payment-info {
            color: var(--text-muted);
            font-size: 12px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(184, 140, 255, 0.2);
        }

        /* ======================== 🔐 NICK SETUP OVERLAY ======================== */
        #nick-setup-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
        }

        /* ======================== 👤 PERFIL DE USUÁRIO (NOVO) ======================== */
        #profile-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 10001;
            /* Acima de tudo */
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        #profile-card {
            background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
            border: 1px solid rgba(184, 140, 255, 0.2);
            box-shadow: 0 0 30px rgba(184, 140, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
            width: 90%;
            max-width: 450px;
            border-radius: 24px;
            overflow: hidden;
            position: relative;
            animation: fadeInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
        }

        /* Header com Imagem de Capa e Foto */
        .profile-header {
            height: 140px;
            background: linear-gradient(90deg, #232526 0%, #414345 100%);
            position: relative;
            display: flex;
            justify-content: center;
        }

        .profile-cover {
            position: absolute;
            inset: 0;
            overflow: hidden;
        }

        .profile-cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .profile-avatar-container {
            position: absolute;
            bottom: -50px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid #1a1a2e;
            background: #000;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            cursor: pointer;
            transition: transform 0.3s;
        }

        .profile-avatar-container:hover {
            transform: scale(1.05);
        }

        .profile-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-edit-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(4px);
            transition: all 0.2s;
        }

        .profile-edit-btn.is-visible {
            display: flex;
        }

        #edit-profile-modal {
            display: none;
            position: fixed;
            z-index: 10002;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        #edit-profile-modal .edit-profile-panel {
            width: min(1080px, 96vw);
            height: min(1080px, 92vh);
            max-height: 92vh;
            background: #1a1a2e;
            border-radius: 16px;
            border: 1px solid var(--primary-color);
            padding: 18px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #edit-profile-modal .edit-profile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        #edit-profile-modal .edit-profile-title {
            color: var(--primary-color);
            margin: 0;
        }

        #edit-profile-modal .edit-profile-close {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.90);
            cursor: pointer;
            transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }

        #edit-profile-modal .edit-profile-close:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.10);
            border-color: rgba(255, 255, 255, 0.18);
        }

        #edit-profile-modal .edit-profile-layout {
            display: flex;
            gap: 16px;
            flex: 1;
            min-height: 0;
            overflow: auto;
            padding-top: 14px;
        }

        #edit-profile-modal .edit-profile-col {
            flex: 1;
            min-width: 0;
        }

        #edit-profile-modal .edit-profile-actions {
            display: flex;
            gap: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        #edit-profile-modal .edit-profile-card {
            background: rgba(0, 0, 0, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 14px;
            margin-bottom: 14px;
            transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        }

        #edit-profile-modal .edit-profile-card:hover {
            transform: translateY(-1px);
            border-color: rgba(184, 140, 255, 0.30);
            background: rgba(0, 0, 0, 0.33);
        }

        #edit-profile-modal .edit-profile-card-title {
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.80);
            margin-bottom: 12px;
        }

        #edit-profile-modal .edit-profile-preview-card {
            text-align: center;
        }

        #edit-profile-modal .edit-profile-mini-cover {
            position: relative;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        #edit-profile-modal .edit-profile-mini-cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        #edit-profile-modal .edit-profile-mini-avatar {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            bottom: 8px;
            transform: translateX(-50%);
            border: 3px solid rgba(26, 26, 46, 0.95);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
            background: rgba(0, 0, 0, 0.25);
            object-fit: cover;
        }

        #edit-profile-modal .edit-profile-preview-text {
            display: block;
            font-size: 18px;
            margin-top: 32px;
        }

        #edit-profile-modal .file-upload-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 6px;
            margin-bottom: 4px;
        }

        #edit-profile-modal .file-upload-label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 14px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(184, 140, 255, 0.95), rgba(120, 70, 240, 0.95));
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            cursor: pointer;
            border: none;
        }

        #edit-profile-modal .file-upload-filename {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.75);
            max-width: 180px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #edit-profile-modal .hidden-file-input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        #edit-profile-modal .edit-profile-hint {
            color: rgba(255, 255, 255, 0.45);
            font-size: 12px;
        }

        #edit-profile-modal input[type="file"],
        #edit-profile-modal select {
            background: rgba(0, 0, 0, 0.20);
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 10px;
            border-radius: 10px;
            color: white;
            color-scheme: dark;
        }

        #edit-profile-modal input[type="file"] {
            padding: 8px;
        }

        #edit-profile-modal select option {
            background: #141424;
            color: rgba(255, 255, 255, 0.95);
        }

        #edit-profile-modal .bio-select option {
            background: #141424;
            color: rgba(255, 255, 255, 0.95);
        }

        #edit-profile-modal input[type="file"]:focus,
        #edit-profile-modal select:focus,
        #edit-profile-modal .rich-input:focus {
            border-color: rgba(184, 140, 255, 0.65);
            box-shadow: 0 0 0 3px rgba(184, 140, 255, 0.18);
        }

        #edit-profile-modal .emoji-badge-grid {
            max-height: 160px;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.20);
            padding: 10px;
            border-radius: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        #edit-profile-modal .edit-profile-btn {
            flex: 1;
            border: none;
            padding: 12px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 900;
            letter-spacing: 0.6px;
            transition: transform 0.15s ease, filter 0.15s ease;
        }

        #edit-profile-modal .edit-profile-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        #edit-profile-modal .edit-profile-btn-primary {
            background: linear-gradient(135deg, rgba(184, 140, 255, 0.95), rgba(120, 70, 240, 0.95));
            color: white;
        }

        #edit-profile-modal .edit-profile-btn-secondary {
            background: rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        #online-list .online-user * {
            pointer-events: none;
        }

        #leaderboard-modal {
            display: none;
            position: fixed;
            z-index: 10003;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        #leaderboard-modal .leaderboard-panel {
            width: min(720px, 92vw);
            max-height: 88vh;
            background: #1a1a2e;
            border-radius: 16px;
            border: 1px solid rgba(184, 140, 255, 0.35);
            padding: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #leaderboard-modal .leaderboard-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        #leaderboard-modal .leaderboard-title {
            color: var(--primary-color);
            margin: 0;
        }

        #leaderboard-modal .leaderboard-close {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.90);
            cursor: pointer;
            transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }

        #leaderboard-modal .leaderboard-close:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.10);
            border-color: rgba(255, 255, 255, 0.18);
        }

        #leaderboard-modal .leaderboard-body {
            padding-top: 14px;
            overflow: auto;
            display: grid;
            gap: 12px;
        }

        #leaderboard-modal .leaderboard-section {
            background: rgba(0, 0, 0, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 12px;
        }

        #leaderboard-modal .leaderboard-section-title {
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.80);
            margin-bottom: 10px;
        }

        #leaderboard-modal .leaderboard-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 10px;
            transition: background 0.15s ease;
        }

        #leaderboard-modal .leaderboard-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        #leaderboard-modal .leaderboard-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        #leaderboard-modal .leaderboard-trophy {
            width: 28px;
            text-align: center;
            flex: 0 0 auto;
        }

        #leaderboard-modal .leaderboard-nick {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #leaderboard-modal .leaderboard-value {
            color: rgba(255, 255, 255, 0.80);
            font-weight: 800;
            flex: 0 0 auto;
        }

        @media (max-width: 900px) {
            #edit-profile-modal .edit-profile-layout {
                flex-direction: column;
            }
        }

        .profile-edit-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(15deg);
        }

        /* Corpo do Perfil */
        .profile-body {
            padding: 60px 25px 30px;
            /* Top padding compensates for avatar */
            text-align: center;
            color: var(--text-primary);
        }

        .profile-name {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 8px;
            background: linear-gradient(90deg, #fff, #a0a0a0);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .profile-bio {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.03);
            padding: 15px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .profile-stats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stat-value {
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ======================== 🌐 PROFILE MODAL SOCIAL LINKS ======================== */
        .profile-socials-container {
            margin-top: 18px;
            padding: 16px;
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
        }

        .profile-socials-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.7), transparent);
        }

        .profile-modal-socials-title {
            font-size: 12px;
            font-weight: 700;
            color: #c4b5fd;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 14px;
            text-align: center;
        }

        .profile-modal-socials-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .profile-modal-social-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: #e2e8f0;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .profile-modal-social-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--social-color, #8b5cf6);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .profile-modal-social-link:hover {
            border-color: var(--social-color, #8b5cf6);
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--social-color, #8b5cf6) 30%, transparent);
        }

        .profile-modal-social-link:hover::before {
            opacity: 0.15;
        }

        .profile-modal-social-link:hover .profile-modal-social-icon {
            transform: scale(1.25) rotate(-5deg);
        }

        .profile-modal-social-link:hover .profile-modal-social-name {
            color: var(--social-color, #c4b5fd);
        }

        .profile-modal-social-icon {
            font-size: 18px;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            z-index: 1;
        }

        .profile-modal-social-name {
            font-weight: 700;
            letter-spacing: 0.4px;
            position: relative;
            z-index: 1;
            transition: color 0.3s ease;
        }

        /* Animation for modal social links */
        @keyframes modalSocialAppear {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .profile-modal-social-link {
            animation: modalSocialAppear 0.35s ease forwards;
            opacity: 0;
        }

        .profile-modal-social-link:nth-child(1) { animation-delay: 0.1s; }
        .profile-modal-social-link:nth-child(2) { animation-delay: 0.15s; }
        .profile-modal-social-link:nth-child(3) { animation-delay: 0.2s; }
        .profile-modal-social-link:nth-child(4) { animation-delay: 0.25s; }
        .profile-modal-social-link:nth-child(5) { animation-delay: 0.3s; }
        .profile-modal-social-link:nth-child(6) { animation-delay: 0.35s; }

        /* ======================== 💬 CHAT TABS & ADMIN CHAT ======================== */
        .chat-tabs {
            display: flex;
            background: rgba(0, 0, 0, 0.2);
            padding: 5px 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            gap: 5px;
        }

        .chat-tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
            color: var(--text-secondary);
            transition: all 0.2s;
            border: 1px solid transparent;
            border-bottom: none;
        }

        .chat-tab.active {
            background: var(--chat-background);
            color: var(--primary-color);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        }

        .chat-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
        }

        .chat-tab.admin-tab {
            color: var(--text-secondary);
        }

        .chat-tab.admin-tab.active {
            background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), transparent);
            color: #ffd93d;
            border-color: rgba(255, 215, 0, 0.18);
        }

        .chat-tab.has-notification {
            position: relative;
        }

        .chat-tab.has-notification::after {
            content: '';
            position: absolute;
            top: 6px;
            right: 10px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ff4444;
            box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
        }

        /* Admin Message Style */
        .message.admin-announcement {
            background: rgba(255, 215, 0, 0.05);
            border-left: 3px solid #FFD700;
            padding-left: 10px;
        }

        .message.admin-announcement .msg-author {
            color: #FFD700 !important;
            font-weight: 900;
        }

        /* Reactions */
        .msg-reactions {
            display: flex;
            gap: 4px;
            margin-top: 4px;
            flex-wrap: wrap;
            position: relative;
        }

        .reaction-pill {
            background: rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            padding: 4px 10px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .reaction-pill[data-action="toggle-reaction-picker"] {
            background: linear-gradient(135deg, rgba(184, 140, 255, 0.35), rgba(120, 70, 240, 0.25));
            border: 1px solid rgba(184, 140, 255, 0.35);
            font-weight: 900;
            min-width: 30px;
            height: 22px;
            padding: 0 10px;
            justify-content: center;
        }

        .reaction-pill[data-action="toggle-reaction-picker"]:hover {
            background: linear-gradient(135deg, rgba(184, 140, 255, 0.55), rgba(120, 70, 240, 0.35));
        }

        .reaction-pill:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .reaction-pill.active {
            background: rgba(var(--primary-color-rgb), 0.3);
            border: 1px solid var(--primary-color);
        }

        /* Reaction Picker */
        .reaction-picker {
            position: absolute;
            background: #1e1e2f;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 5px;
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            max-width: 260px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            z-index: 2000;
            animation: fadeIn 0.2s;
            bottom: calc(100% + 6px);
            right: 0;
        }

        .reaction-option {
            font-size: 18px;
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .reaction-option:hover {
            transform: scale(1.3);
            background: rgba(255, 255, 255, 0.1);
        }

        /* ======================== ✨ VISUAL UPDATES ======================== */

        /* Profile FAB "NEW" Badge */
        #nick-fab-button {
            position: relative;
            overflow: visible;
            border: 2px solid var(--primary-color);
            box-shadow: 0 0 15px rgba(184, 140, 255, 0.4);
        }

        .new-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #FF0055;
            color: white;
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: bold;
            animation: pulse 1.5s infinite;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        /* Background Image Update */
        body {
            background: url('https://i.imgur.com/2z375ER.jpeg') no-repeat center center fixed !important;
            background-size: cover !important;
        }

        /* Adjust Classic Mode to NOT use the image if needed, or keep as requested */
        body.classic-mode {
            background: #121212 !important;
            background-image: none !important;
        }

        /* Online List Interaction */
        .online-user-item {
            cursor: pointer;
            transition: background 0.2s;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .online-user-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Edit Profile Modal */
        .edit-profile-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            padding: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
            text-align: left;
        }

        .form-group label {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: bold;
        }

        .rich-input {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px;
            border-radius: 8px;
            font-family: inherit;
            resize: vertical;
            min-height: 80px;
        }

        .rich-editor {
            min-height: 120px;
            resize: none;
            overflow-y: auto;
            outline: none;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .rich-editor:empty::before {
            content: attr(data-placeholder);
            color: rgba(255, 255, 255, 0.35);
        }

        .bio-toolbar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            padding: 8px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            background: rgba(0, 0, 0, 0.22);
        }

        .bio-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            padding: 8px 10px;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
        }

        .bio-btn:hover {
            background: rgba(255, 255, 255, 0.14);
        }

        .bio-select {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            padding: 7px 10px;
            font-size: 12px;
        }

        .bio-color {
            width: 34px;
            height: 34px;
            padding: 0;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(0, 0, 0, 0.25);
            cursor: pointer;
        }

        .bio-sep {
            width: 1px;
            height: 18px;
            background: rgba(255, 255, 255, 0.12);
            margin: 0 2px;
        }

        .rich-input:focus {
            border-color: var(--primary-color);
            outline: none;
        }

        .bio-emoji-panel {
            margin-top: 8px;
            padding: 8px;
            border-radius: 12px;
            border: 1px solid rgba(184, 140, 255, 0.4);
            background: radial-gradient(circle at top, rgba(46, 16, 101, 0.95), rgba(10, 5, 25, 0.98));
            max-height: 210px;
            overflow-y: auto;
            display: none;
        }

        .bio-emoji-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .bio-emoji-btn {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(0, 0, 0, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
        }

        .bio-emoji-btn:hover {
            background: rgba(184, 140, 255, 0.18);
            transform: translateY(-1px);
            box-shadow: 0 0 8px rgba(184, 140, 255, 0.35);
        }

        .lista {
            margin-top: 10px;
        }

        /* ESTILO DO BOTÃO DE MUTE POR PISO */
        .piso-mute-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--secondary-color);
            color: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            opacity: 0.7;
            z-index: 10;
        }

        .piso-mute-btn:hover {
            opacity: 1;
            background: var(--secondary-color);
            color: var(--background-main);
        }

        .piso-mute-btn.is-muted {
            background: #ff6b6b;
            border: 1px solid #c85555;
            color: white;
            opacity: 1;
            box-shadow: 0 0 5px #ff6b6b;
        }

        /* ============================================================= */
        /* 🎯 PREMIUM BUTTON EFFECTS - Hover 3D + Neon Glow              */
        /* ============================================================= */

        /* BOTÕES GERAIS - Estilo premium base */
        button,
        .btn,
        [class*="btn"] {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* BOTÕES PRIMÁRIOS - Efeito 3D com neon */
        #btnRegistrar,
        #btnHoraAtual,
        #btnToggleHistory,
        .action-btn {
            background: linear-gradient(145deg, #8b5cf6, #7c3aed);
            border: 1px solid rgba(139, 92, 246, 0.5);
            border-radius: 10px;
            padding: 10px 20px;
            color: #ffffff;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow:
                0 4px 15px rgba(139, 92, 246, 0.3),
                0 2px 5px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        /* Hover 3D com elevação e brilho */
        #btnRegistrar:hover,
        #btnHoraAtual:hover,
        #btnToggleHistory:hover,
        .action-btn:hover {
            transform: translateY(-3px) scale(1.02);
            background: linear-gradient(145deg, #a78bfa, #8b5cf6);
            border-color: rgba(167, 139, 250, 0.7);
            box-shadow:
                0 8px 25px rgba(139, 92, 246, 0.45),
                0 4px 10px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        /* Click effect (active) */
        #btnRegistrar:active,
        #btnHoraAtual:active,
        #btnToggleHistory:active,
        .action-btn:active {
            transform: translateY(-1px) scale(0.98);
            box-shadow:
                0 2px 10px rgba(139, 92, 246, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* BOTÕES SECUNDÁRIOS */
        .btn-secondary {
            background: linear-gradient(145deg, rgba(60, 60, 80, 0.8), rgba(40, 40, 60, 0.9));
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-secondary:hover {
            background: linear-gradient(145deg, rgba(80, 80, 100, 0.9), rgba(60, 60, 80, 0.95));
            transform: translateY(-2px);
            box-shadow:
                0 4px 15px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        /* BOTÃO VERDE (Sucesso) */
        .btn-success,
        #btnRegistrar {
            background: linear-gradient(145deg, #22c55e, #16a34a) !important;
            border: 1px solid rgba(34, 197, 94, 0.5) !important;
        }

        .btn-success:hover,
        #btnRegistrar:hover {
            background: linear-gradient(145deg, #4ade80, #22c55e) !important;
            box-shadow:
                0 8px 25px rgba(34, 197, 94, 0.4),
                0 0 20px rgba(34, 197, 94, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        }

        /* BOTÃO LARANJA (Warning) */
        #btnHoraAtual {
            background: linear-gradient(145deg, #f97316, #ea580c) !important;
            border: 1px solid rgba(249, 115, 22, 0.5) !important;
        }

        #btnHoraAtual:hover {
            background: linear-gradient(145deg, #fb923c, #f97316) !important;
            box-shadow:
                0 8px 25px rgba(249, 115, 22, 0.4),
                0 0 20px rgba(249, 115, 22, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        }

        /* ============================================================= */
        /* 🌟 PREMIUM VISUAL EFFECTS - BOSS ITEMS                         */
        /* Glassmorphism + Neon Glow Multicamada + Progress Bar           */
        /* ============================================================= */

        /* BOSS ITEMS - Glassmorphism com borda interna luminosa */
        #section-universal .boss-item,
        #section-comum .boss-item,
        #section-myrkheimr .boss-item {
            background: linear-gradient(145deg, rgba(25, 25, 45, 0.95) 0%, rgba(15, 15, 30, 0.9) 100%);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(217, 70, 239, 0.3);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 8px;
            display: block;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Borda interna mais clara (pseudo-element) */
        #section-universal .boss-item::before,
        #section-comum .boss-item::before,
        #section-myrkheimr .boss-item::before {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: 9px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            pointer-events: none;
        }

        /* Hover com efeito 3D e glow intenso */
        #section-universal .boss-item:hover,
        #section-comum .boss-item:hover,
        #section-myrkheimr .boss-item:hover {
            background: linear-gradient(145deg, rgba(35, 35, 60, 0.98) 0%, rgba(25, 25, 45, 0.95) 100%);
            transform: translateY(-2px) translateX(2px);
            box-shadow:
                0 4px 15px rgba(217, 70, 239, 0.25),
                0 8px 30px rgba(168, 85, 247, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        /* Header do boss - Nome à esquerda, ícone à direita */
        #section-universal .boss-header,
        #section-comum .boss-header,
        #section-myrkheimr .boss-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 4px;
        }

        /* Nome do boss com leve brilho */
        #section-universal .boss-header span:first-child,
        #section-comum .boss-header span:first-child,
        #section-myrkheimr .boss-header span:first-child {
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 13px;
            color: #e2e8f0;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
        }

        /* TIMER - Grande, colorido com gradiente */
        #section-universal .time-left,
        #section-comum .time-left,
        #section-myrkheimr .time-left {
            font-family: 'Orbitron', 'Inter', monospace;
            font-weight: 700;
            font-size: 18px;
            display: block;
            margin-top: 4px;
            margin-bottom: 6px;
        }

        /* Timer Verde (safe) - Gradiente verde neon */
        #section-universal .boss-item.safe .time-left,
        #section-comum .boss-item.safe .time-left,
        #section-myrkheimr .boss-item.safe .time-left {
            background: linear-gradient(90deg, #22c55e, #4ade80);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
        }

        /* Timer Amarelo (warning) - Gradiente laranja/amarelo */
        #section-universal .boss-item.warning .time-left,
        #section-comum .boss-item.warning .time-left,
        #section-myrkheimr .boss-item.warning .time-left {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
        }

        /* Timer Vermelho (urgent) - Gradiente vermelho pulse */
        #section-universal .boss-item.urgent .time-left,
        #section-comum .boss-item.urgent .time-left,
        #section-myrkheimr .boss-item.urgent .time-left {
            background: linear-gradient(90deg, #ef4444, #f87171);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
            animation: pulse-urgent 3s ease-in-out infinite;
            /* Desacelerado */
        }

        @keyframes pulse-urgent {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        /* Timer padrão verde */
        #section-universal .time-left,
        #section-comum .time-left,
        #section-myrkheimr .time-left {
            color: #22c55e;
            text-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
        }

        /* ============================================================= */
        /* 📊 PROGRESS BAR - Barra de progresso sincronizada             */
        /* ============================================================= */
        #section-universal .boss-progress,
        #section-comum .boss-progress,
        #section-myrkheimr .boss-progress {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 6px;
        }

        #section-universal .boss-progress-bar,
        #section-comum .boss-progress-bar,
        #section-myrkheimr .boss-progress-bar {
            height: 100%;
            border-radius: 2px;
            transition: width 1s linear;
        }

        /* Progress Verde (safe) */
        #section-universal .boss-item.safe .boss-progress-bar,
        #section-comum .boss-item.safe .boss-progress-bar,
        #section-myrkheimr .boss-item.safe .boss-progress-bar {
            background: linear-gradient(90deg, #22c55e, #4ade80);
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        }

        /* Progress Amarelo (warning) */
        #section-universal .boss-item.warning .boss-progress-bar,
        #section-comum .boss-item.warning .boss-progress-bar,
        #section-myrkheimr .boss-item.warning .boss-progress-bar {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
        }

        /* Progress Vermelho (urgent) */
        #section-universal .boss-item.urgent .boss-progress-bar,
        #section-comum .boss-item.urgent .boss-progress-bar,
        #section-myrkheimr .boss-item.urgent .boss-progress-bar {
            background: linear-gradient(90deg, #ef4444, #f87171);
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
            animation: progress-pulse 3s ease-in-out infinite;
            /* Desacelerado */
        }

        @keyframes progress-pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        .boss-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
        }

        .boss-details {
            display: none;
            margin-top: 10px;
            font-size: 13px;
            opacity: 0.9;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 8px;
        }

        .time-left {
            font-family: 'Inter', sans-serif;
            font-variant-numeric: tabular-nums;
            font-weight: 800;
            /* Extra Bold para leitura clara */
            color: #fff;
            letter-spacing: 0.5px;
            font-size: 15px;
            text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
            /* Melhora contraste */
        }

        .risk-badge {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.5px;
            border: 1px solid transparent;
        }

        .risk-badge.low {
            background: rgba(27, 59, 27, 0.6);
            color: #4caf50;
            border-color: #2e7d32;
        }

        .risk-badge.med {
            background: rgba(59, 54, 27, 0.6);
            color: #ffcc00;
            border-color: #b38f00;
        }

        .risk-badge.high {
            background: rgba(59, 27, 27, 0.6);
            color: #ff4444;
            border-color: #c62828;
            animation: glowPulse 1.5s ease-in-out infinite;
        }

        /* Botões de Ação na Lista (Excluir/Editar) */
        .boss-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .boss-actions button {
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 12px;
            flex-grow: 1;
            cursor: pointer;
            border: none;
            font-weight: bold;
            transition: transform 0.2s;
        }

        .boss-actions button:hover {
            transform: scale(1.02);
            opacity: 0.9;
        }

        .delete-btn {
            background: #8b2e2e;
            color: white;
        }

        .edit-btn {
            background: var(--secondary-color);
            color: var(--text-primary);
        }

        .history-card {
            opacity: 0.7;
            background: var(--item-background);
            border: 1px solid var(--secondary-color);
        }

        .history-item .boss-header {
            cursor: default;
        }


        .color-preset.selected {
            border: 2px solid #fff;
            box-shadow: 0 0 12px currentColor;
        }

        /* SWITCH TOGGLE PARA FUNDO */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            vertical-align: middle;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #555;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: var(--primary-color);
        }

        input:checked+.slider:before {
            transform: translateX(24px);
        }

        /* EFEITOS ANIMADOS PARA NICKS */
        .nick-effect-glow {
            animation: nickGlow 2s ease-in-out infinite;
        }

        .nick-effect-pulse {
            animation: nickPulse 1.5s ease-in-out infinite;
        }

        .nick-effect-rainbow {
            animation: nickRainbow 3s linear infinite;
            background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
            background-size: 400% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nick-effect-sparkle {
            animation: nickSparkle 0.8s ease-in-out infinite;
        }

        .nick-effect-shake {
            animation: nickShake 0.5s ease-in-out infinite;
        }

        .nick-effect-fire {
            animation: nickFire 0.8s ease-in-out infinite;
            text-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00, 0 0 30px #ff0000;
        }

        .nick-effect-glitch {
            animation: nickGlitch 0.4s steps(2, end) infinite;
        }

        .nick-effect-neon-flicker {
            animation: nickNeonFlicker 2s linear infinite;
        }

        .nick-effect-float {
            animation: nickFloat 3s ease-in-out infinite;
            display: inline-block;
        }

        .nick-effect-matrix {
            color: #00ff41 !important;
            text-shadow: 0 0 8px #00ff41, 0 0 15px #003b00;
            animation: nickMatrix 1.5s linear infinite;
        }

        .nick-effect-ghost {
            animation: nickGhost 4s ease-in-out infinite;
        }

        .nick-effect-chrome {
            background: linear-gradient(110deg, #a1a1a1 20%, #ffffff 40%, #ffffff 50%, #a1a1a1 70%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickChrome 3s linear infinite;
            filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
        }

        .nick-effect-vortex {
            animation: nickVortex 4s ease-in-out infinite;
            display: inline-block;
        }

        .nick-effect-shine {
            position: relative;
            overflow: hidden;
            background: linear-gradient(90deg, currentColor 0%, #fff 50%, currentColor 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickShine 2s linear infinite;
        }

        @keyframes nickGlow {

            0%,
            100% {
                text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
            }

            50% {
                text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
            }
        }

        @keyframes nickPulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.08);
                opacity: 0.85;
            }
        }

        @keyframes nickRainbow {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 400% 50%;
            }
        }

        @keyframes nickSparkle {

            0%,
            100% {
                opacity: 1;
                text-shadow: 0 0 5px currentColor;
            }

            25% {
                opacity: 0.7;
                text-shadow: 0 0 15px currentColor, 2px -2px 8px #fff;
            }

            50% {
                opacity: 1;
                text-shadow: 0 0 8px currentColor;
            }

            75% {
                opacity: 0.8;
                text-shadow: 0 0 15px currentColor, -2px 2px 8px #fff;
            }
        }

        @keyframes nickShake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-2px) rotate(-1deg);
            }

            75% {
                transform: translateX(2px) rotate(1deg);
            }
        }

        @keyframes nickFire {

            0%,
            100% {
                transform: scale(1) translateY(0);
                text-shadow: 0 -2px 10px #ff4500, 0 -4px 20px #ff8c00;
            }

            50% {
                transform: scale(1.02) translateY(-2px) rotate(0.5deg);
                text-shadow: 0 -4px 15px #ff4500, 0 -8px 30px #ff8c00, 0 -12px 40px #ff0000;
            }
        }

        @keyframes nickGlitch {
            0% {
                transform: translate(0);
                text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
                clip-path: inset(10% 0 30% 0);
            }

            20% {
                transform: translate(-1px, 1px);
                text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
                clip-path: inset(40% 0 10% 0);
            }

            40% {
                transform: translate(1px, -1px);
                clip-path: inset(20% 0 50% 0);
            }

            60% {
                transform: translate(-1px, -1px);
                text-shadow: 1px 0 #ff00c1, -1px 0 #00fff9;
                clip-path: inset(60% 0 10% 0);
            }

            80% {
                transform: translate(1px, 1px);
                clip-path: inset(10% 0 70% 0);
            }

            100% {
                transform: translate(0);
                text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
                clip-path: inset(0);
            }
        }

        @keyframes nickNeonFlicker {

            0%,
            18%,
            22%,
            25%,
            53%,
            57%,
            100% {
                text-shadow: 0 0 4px currentColor, 0 0 10px currentColor, 0 0 20px currentColor;
                opacity: 1;
            }

            20%,
            24%,
            55% {
                text-shadow: none;
                opacity: 0.5;
            }
        }

        @keyframes nickFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-6px);
            }
        }

        @keyframes nickMatrix {

            0%,
            100% {
                text-shadow: 0 0 5px #00ff41;
            }

            50% {
                text-shadow: 0 0 15px #00ff41, 0 0 25px #00ff41;
                opacity: 0.8;
            }
        }

        @keyframes nickGhost {

            0%,
            100% {
                opacity: 0.2;
                filter: blur(4px);
                transform: scale(0.95);
            }

            50% {
                opacity: 1;
                filter: blur(0);
                transform: scale(1.05);
            }
        }

        @keyframes nickChrome {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 200% 50%;
            }
        }

        @keyframes nickVortex {
            0% {
                transform: rotate(0) scale(1);
                filter: hue-rotate(0deg);
            }

            50% {
                transform: rotate(2deg) scale(1.1) skew(2deg);
                filter: hue-rotate(45deg);
            }

            100% {
                transform: rotate(0) scale(1);
                filter: hue-rotate(0deg);
            }
        }

        @keyframes nickShine {
            0% {
                background-position: 200% center;
            }

            100% {
                background-position: -200% center;
            }
        }

        /* ========== 🆕 NOVOS EFEITOS ESPECIAIS (12) ========== */

        .nick-effect-bounce {
            animation: nickBounce 1s ease-in-out infinite;
            display: inline-block;
        }

        .nick-effect-rotate {
            animation: nickRotate 3s linear infinite;
            display: inline-block;
        }

        .nick-effect-electric {
            animation: nickElectric 0.2s steps(4, end) infinite;
            text-shadow: 0 0 8px #00d9ff, 0 0 16px #00d9ff, 0 0 24px #00d9ff;
        }

        .nick-effect-cosmic {
            background: linear-gradient(45deg, #000428, #004e92, #000428);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickCosmic 4s ease-in-out infinite;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        }

        .nick-effect-hologram {
            animation: nickHologram 2s ease-in-out infinite;
            background: linear-gradient(180deg, transparent 40%, rgba(0, 255, 255, 0.3) 50%, transparent 60%);
            background-size: 100% 200%;
            -webkit-background-clip: text;
            background-clip: text;
        }

        .nick-effect-laser {
            animation: nickLaser 1.5s linear infinite;
            background: linear-gradient(90deg, red 0%, transparent 50%, transparent 100%);
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nick-effect-toxic {
            animation: nickToxic 2s ease-in-out infinite;
            text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 30px #228b22;
            color: #39ff14 !important;
        }

        .nick-effect-frozen {
            animation: nickFrozen 3s ease-in-out infinite;
            text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff, -2px -2px 4px rgba(255, 255, 255, 0.8);
            color: #b3e5fc !important;
        }

        .nick-effect-lava {
            background: linear-gradient(45deg, #ff4500, #ff8c00, #ff0000, #8b0000);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickLava 2s ease-in-out infinite;
        }

        /* ======================== 💰 LOOT GALLERY (FEED STYLE) ======================== */
        #loot-gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .loot-gallery-panel {
            background: var(--card-background);
            width: 95%;
            max-width: 600px;
            /* Width for a feed column */
            height: 90vh;
            border-radius: 12px;
            border: 1px solid var(--primary-color);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 0;
            /* Remove padding to let header/footer touch edges */
        }

        .loot-gallery-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .loot-gallery-input-area {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            background: rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .loot-gallery-input-area input {
            background: var(--input-background);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            padding: 12px;
            border-radius: 8px;
        }

        .loot-gallery-input-area button {
            background: linear-gradient(135deg, #ffd700, #ffaa00);
            color: #1a1a1a;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;
        }

        #loot-gallery-feed {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Post Card Styles */
        .loot-card {
            background: rgba(30, 30, 40, 0.6);
            border: 1px solid rgba(255, 215, 0, 0.15);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .loot-card-header {
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .loot-card-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #444;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .loot-card-info {
            display: flex;
            flex-direction: column;
        }

        .loot-card-author {
            font-weight: bold;
            color: #ffd700;
            font-size: 14px;
        }

        .loot-card-date {
            font-size: 11px;
            color: #888;
        }

        .loot-card-image {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            background: #000;
        }

        .loot-card-content {
            padding: 12px;
        }

        .loot-card-caption {
            font-size: 14px;
            color: #eee;
            margin-bottom: 10px;
        }

        .loot-card-actions {
            display: flex;
            gap: 15px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .loot-action-btn {
            background: none;
            border: none;
            color: #aaa;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            transition: color 0.2s;
        }

        .loot-action-btn:hover {
            color: #fff;
        }

        .loot-action-btn.liked {
            color: #ff4444;
        }

        /* Comments Section */
        .loot-comments-section {
            background: rgba(0, 0, 0, 0.2);
            padding: 10px 12px;
            display: none;
            /* Hidden by default */
        }

        .loot-comments-list {
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .loot-comment {
            font-size: 13px;
            color: #ccc;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 10px;
            border-radius: 6px;
        }

        .loot-comment-author {
            font-weight: bold;
            color: #ffd700;
            margin-right: 5px;
        }

        .loot-comment-input-wrapper {
            display: flex;
            gap: 8px;
        }

        .loot-comment-input {
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 13px;
        }

        .loot-comment-btn {
            background: none;
            border: none;
            color: #ffd700;
            cursor: pointer;
            font-weight: bold;
        }

        .nick-effect-pixelate {
            animation: nickPixelate 1s steps(10, end) infinite;
            filter: blur(0px);
        }

        .nick-effect-wave {
            animation: nickWave 2s ease-in-out infinite;
            display: inline-block;
        }

        .nick-effect-slide {
            animation: nickSlide 3s linear infinite;
            display: inline-block;
        }

        /* ========== 🔥 ANIMAÇÕES DOS NOVOS EFEITOS ========== */

        @keyframes nickBounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        @keyframes nickRotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes nickElectric {

            0%,
            100% {
                text-shadow: 0 0 8px #00d9ff, 2px 0 8px #00d9ff, -2px 0 8px #00d9ff;
                transform: translate(0);
            }

            25% {
                text-shadow: 0 0 16px #00d9ff, 4px 2px 12px #00d9ff;
                transform: translate(1px, -1px);
            }

            50% {
                text-shadow: 0 0 8px #00d9ff, -2px 0 8px #00d9ff;
                transform: translate(-1px, 1px);
            }

            75% {
                text-shadow: 0 0 12px #00d9ff, 3px -2px 10px #00d9ff;
                transform: translate(1px, 1px);
            }
        }

        @keyframes nickCosmic {

            0%,
            100% {
                background-position: 0% 50%;
                filter: brightness(1);
            }

            50% {
                background-position: 100% 50%;
                filter: brightness(1.3);
            }
        }

        @keyframes nickHologram {

            0%,
            100% {
                background-position: 0% 0%;
                opacity: 0.8;
            }

            50% {
                background-position: 0% 100%;
                opacity: 1;
            }
        }

        @keyframes nickLaser {
            0% {
                background-position: 300% 0%;
            }

            100% {
                background-position: -300% 0%;
            }
        }

        @keyframes nickToxic {

            0%,
            100% {
                text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
            }

            50% {
                text-shadow: 0 0 20px #39ff14, 0 0 40px #39ff14, 0 0 60px #228b22;
                filter: brightness(1.3);
            }
        }

        @keyframes nickFrozen {

            0%,
            100% {
                text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
                filter: brightness(1);
            }

            50% {
                text-shadow: 0 0 16px #00ffff, 0 0 32px #00ffff, -4px -4px 8px rgba(255, 255, 255, 0.9);
                filter: brightness(1.5);
            }
        }

        @keyframes nickLava {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        @keyframes nickPixelate {

            0%,
            100% {
                filter: blur(0px);
                opacity: 1;
            }

            50% {
                filter: blur(1px);
                opacity: 0.8;
            }
        }

        @keyframes nickWave {

            0%,
            100% {
                transform: translateX(0) rotate(0deg);
            }

            25% {
                transform: translateX(-3px) rotate(-2deg);
            }

            75% {
                transform: translateX(3px) rotate(2deg);
            }
        }

        @keyframes nickSlide {
            0% {
                transform: translateX(-100%);
                opacity: 0;
            }

            10%,
            90% {
                transform: translateX(0);
                opacity: 1;
            }

            100% {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        /*  ======================== 🎭 20 NOVOS EFEITOS DE NICK ======================== */

        /* 1. Cyber Glitch */
        @keyframes nickCyberGlitch {

            0%,
            100% {
                transform: translateX(0);
                filter: hue-rotate(0deg);
                clip-path: none;
            }

            20% {
                transform: translateX(-3px);
                filter: hue-rotate(90deg);
            }

            40% {
                transform: translateX(3px);
                clip-path: inset(0 0 50% 0);
            }

            60% {
                transform: translateX(-2px);
                clip-path: inset(50% 0 0 0);
            }

            80% {
                transform: translateX(2px);
                filter: hue-rotate(180deg);
            }
        }

        .nick-effect-cyber-glitch {
            animation: nickCyberGlitch 0.6s ease-in-out infinite;
            text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
        }

        /* 2. Void Pulse */
        @keyframes nickVoidPulse {

            0%,
            100% {
                color: #8B00FF;
                text-shadow: 0 0 10px #8B00FF, 0 0 20px #4B0082, 0 0 30px #4B0082;
                transform: scale(1);
            }

            50% {
                color: #4B0082;
                text-shadow: 0 0 20px #8B00FF, 0 0 40px #8B00FF, 0 0 60px #4B0082;
                transform: scale(1.05);
            }
        }

        .nick-effect-void-pulse {
            animation: nickVoidPulse 2s ease-in-out infinite;
            display: inline-block;
        }

        /* 3. Golden Aura */
        @keyframes nickGoldenAura {

            0%,
            100% {
                text-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500, 0 0 30px #FF8C00;
            }

            50% {
                text-shadow: 0 0 20px #FFD700, 0 0 40px #FFA500, 0 0 60px #FF8C00, 0 0 80px #FFD700;
            }
        }

        .nick-effect-golden-aura {
            animation: nickGoldenAura 2s ease-in-out infinite;
            color: #FFD700 !important;
            font-weight: bold;
        }

        /* 4. Blood Mist */
        @keyframes nickBloodMist {

            0%,
            100% {
                text-shadow: 0 0 8px #8B0000, 0 0 16px #DC143C, 2px 2px 4px rgba(139, 0, 0, 0.5);
                filter: blur(0px);
            }

            50% {
                text-shadow: 0 0 20px #8B0000, 0 0 40px #DC143C, 0 0 60px #8B0000;
                filter: blur(0.5px);
            }
        }

        .nick-effect-blood-mist {
            animation: nickBloodMist 2.5s ease-in-out infinite;
            color: #DC143C !important;
        }

        /* 5. Ice Shard */
        @keyframes nickIceShard {

            0%,
            100% {
                transform: rotate(0deg) scale(1);
                text-shadow: 0 0 10px #00CED1, 2px -2px 8px #87CEEB;
            }

            25% {
                transform: rotate(-2deg) scale(1.02);
                text-shadow: 0 0 15px #00CED1, -2px 2px 10px #87CEEB;
            }

            75% {
                transform: rotate(2deg) scale(0.98);
                text-shadow: 0 0 15px #00CED1, 2px 2px 10px #87CEEB;
            }
        }

        .nick-effect-ice-shard {
            animation: nickIceShard 2s ease-in-out infinite;
            color: #87CEEB !important;
            display: inline-block;
        }

        /* 6. Toxic Slime */
        @keyframes nickToxicSlime {

            0%,
            100% {
                text-shadow: 0 0 10px #39FF14, 0 0 20px #00FF00, 0 2px 8px rgba(57, 255, 20, 0.6);
                transform: translateY(0) skewX(0deg);
            }

            50% {
                text-shadow: 0 0 20px #39FF14, 0 0 40px #00FF00, 0 4px 12px rgba(57, 255, 20, 0.8);
                transform: translateY(2px) skewX(-2deg);
            }
        }

        .nick-effect-toxic-slime {
            animation: nickToxicSlime 1.8s ease-in-out infinite;
            color: #39FF14 !important;
            display: inline-block;
        }

        /* 7. Neon Heartbeat */
        @keyframes nickNeonHeartbeat {

            0%,
            100% {
                transform: scale(1);
                text-shadow: 0 0 10px #FF1493, 0 0 20px #FF69B4;
            }

            10%,
            30% {
                transform: scale(1.1);
                text-shadow: 0 0 20px #FF1493, 0 0 40px #FF69B4, 0 0 60px #FF1493;
            }

            20%,
            40% {
                transform: scale(1);
                text-shadow: 0 0 10px #FF1493, 0 0 20px #FF69B4;
            }
        }

        .nick-effect-neon-heartbeat {
            animation: nickNeonHeartbeat 1.5s ease-in-out infinite;
            color: #FF1493 !important;
            display: inline-block;
        }

        /* 8. Divine Shield */
        @keyframes nickDivineShield {

            0%,
            100% {
                text-shadow: 0 0 15px #FFFFFF, 0 0 30px #FFD700, 0 0 45px #FFF5E1;
                transform: rotateY(0deg);
            }

            50% {
                text-shadow: 0 0 30px #FFFFFF, 0 0 60px #FFD700, 0 0 90px #FFF5E1;
                transform: rotateY(180deg);
            }
        }

        .nick-effect-divine-shield {
            animation: nickDivineShield 3s linear infinite;
            color: #FFF5E1 !important;
            display: inline-block;
            transform-style: preserve-3d;
        }

        /* 9. Shadow Step */
        @keyframes nickShadowStep {

            0%,
            100% {
                opacity: 1;
                transform: translateX(0);
                text-shadow: 3px 3px 6px #000000;
            }

            25% {
                opacity: 0.3;
                transform: translateX(-10px);
                text-shadow: 5px 5px 10px #000000;
            }

            50% {
                opacity: 1;
                transform: translateX(0);
                text-shadow: 3px 3px 6px #000000;
            }

            75% {
                opacity: 0.3;
                transform: translateX(10px);
                text-shadow: 5px 5px 10px #000000;
            }
        }

        .nick-effect-shadow-step {
            animation: nickShadowStep 2s ease-in-out infinite;
            color: #696969 !important;
            display: inline-block;
        }

        /* 10. Plasma Wave */
        @keyframes nickPlasmaWave {
            0% {
                background-position: 0% 50%;
                filter: hue-rotate(0deg);
            }

            50% {
                background-position: 100% 50%;
                filter: hue-rotate(180deg);
            }

            100% {
                background-position: 0% 50%;
                filter: hue-rotate(360deg);
            }
        }

        .nick-effect-plasma-wave {
            background: linear-gradient(90deg, #FF00FF, #00FFFF, #FF00FF, #00FFFF);
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickPlasmaWave 3s linear infinite;
        }

        /* 11. Crystal Shimmer */
        @keyframes nickCrystalShimmer {

            0%,
            100% {
                text-shadow: 0 0 5px #E0FFFF, 2px 2px 10px #ADD8E6, -2px -2px 10px #87CEEB;
                transform: scale(1);
                filter: brightness(1);
            }

            50% {
                text-shadow: 0 0 15px #E0FFFF, 4px 4px 20px #ADD8E6, -4px -4px 20px #87CEEB;
                transform: scale(1.05);
                filter: brightness(1.5);
            }
        }

        .nick-effect-crystal-shimmer {
            animation: nickCrystalShimmer 2s ease-in-out infinite;
            color: #E0FFFF !important;
            display: inline-block;
        }

        /* 12. Inferno Burst */
        @keyframes nickInfernoBurst {

            0%,
            100% {
                text-shadow: 0 0 10px #FF4500, 0 0 20px #FF6347, 0 0 30px #FF0000;
                transform: scale(1);
            }

            50% {
                text-shadow: 0 0 30px #FF4500, 0 0 60px #FF6347, 0 0 90px #FF0000, 0 0 120px #8B0000;
                transform: scale(1.1);
            }
        }

        .nick-effect-inferno-burst {
            animation: nickInfernoBurst 1.5s ease-in-out infinite;
            color: #FF4500 !important;
            display: inline-block;
        }

        /* 13. Lightning Strike */
        @keyframes nickLightningStrike {

            0%,
            90%,
            100% {
                opacity: 1;
                text-shadow: 0 0 10px #FFFF00, 0 0 20px #FFD700;
                transform: translateY(0);
            }

            92%,
            96% {
                opacity: 0.5;
                text-shadow: 0 0 30px #FFFF00, 0 0 60px #FFD700, 0 0 90px #FFFFFF;
                transform: translateY(-2px);
            }

            94%,
            98% {
                opacity: 1;
                text-shadow: 0 0 40px #FFFF00, 0 0 80px #FFD700;
                transform: translateY(0);
            }
        }

        .nick-effect-lightning-strike {
            animation: nickLightningStrike 3s ease-in-out infinite;
            color: #FFFF00 !important;
            display: inline-block;
        }

        /* 14. Ocean Current */
        @keyframes nickOceanCurrent {

            0%,
            100% {
                transform: translateX(0) rotateZ(0deg);
                text-shadow: 0 0 10px #006994, 0 0 20px #0892D0;
            }

            25% {
                transform: translateX(-5px) rotateZ(-1deg);
                text-shadow: 0 0 15px #006994, 0 0 30px #0892D0;
            }

            75% {
                transform: translateX(5px) rotateZ(1deg);
                text-shadow: 0 0 15px #006994, 0 0 30px #0892D0;
            }
        }

        .nick-effect-ocean-current {
            animation: nickOceanCurrent 2.5s ease-in-out infinite;
            color: #0892D0 !important;
            display: inline-block;
        }

        /* 15. Starlight */
        @keyframes nickStarlight {

            0%,
            100% {
                text-shadow: 0 0 5px #FFFFFF, 0 0 10px #FFFACD, 0 0 15px #F0E68C;
                filter: brightness(1);
            }

            20%,
            60% {
                text-shadow: 0 0 15px #FFFFFF, 0 0 30px #FFFACD, 0 0 45px #F0E68C, 0 0 60px #FFD700;
                filter: brightness(1.5);
            }

            40%,
            80% {
                text-shadow: 0 0 5px #FFFFFF, 0 0 10px #FFFACD;
                filter: brightness(0.8);
            }
        }

        .nick-effect-starlight {
            animation: nickStarlight 2s ease-in-out infinite;
            color: #FFFACD !important;
        }

        /* 16. Nebula Swirl */
        @keyframes nickNebulaSwirl {
            0% {
                background-position: 0% 50%;
                filter: hue-rotate(0deg);
                transform: rotate(0deg);
            }

            50% {
                background-position: 100% 50%;
                filter: hue-rotate(180deg);
                transform: rotate(180deg);
            }

            100% {
                background-position: 0% 50%;
                filter: hue-rotate(360deg);
                transform: rotate(360deg);
            }
        }

        .nick-effect-nebula-swirl {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nickNebulaSwirl 4s linear infinite;
            display: inline-block;
            transform-origin: center;
        }

        /* 17. Quantum Flux */
        @keyframes nickQuantumFlux {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
                filter: blur(0px);
            }

            25% {
                transform: translate(-3px, 2px) scale(0.98);
                opacity: 0.7;
                filter: blur(0.5px);
            }

            50% {
                transform: translate(3px, -2px) scale(1.02);
                opacity: 1;
                filter: blur(0px);
            }

            75% {
                transform: translate(-2px, -3px) scale(0.99);
                opacity: 0.8;
                filter: blur(0.3px);
            }
        }

        .nick-effect-quantum-flux {
            animation: nickQuantumFlux 1.5s ease-in-out infinite;
            text-shadow: 0 0 10px #00FFFF, 2px 2px 8px #FF00FF, -2px -2px 8px #FFFF00;
            display: inline-block;
        }

        /* 18. Dragon Breath */
        @keyframes nickDragonBreath {

            0%,
            100% {
                text-shadow: 0 0 10px #FF4500, 0 0 20px #DC143C, 0 0 30px #8B0000;
                transform: scale(1) skewX(0deg);
            }

            50% {
                text-shadow: 0 0 30px #FF4500, 0 0 60px #DC143C, 0 0 90px #8B0000, 0 0 120px #FF8C00;
                transform: scale(1.08) skewX(5deg);
            }
        }

        .nick-effect-dragon-breath {
            animation: nickDragonBreath 2s ease-in-out infinite;
            background: linear-gradient(45deg, #FF4500, #FF8C00, #DC143C);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        /* 19. Phoenix Rise */
        @keyframes nickPhoenixRise {
            0% {
                transform: translateY(10px) rotate(-5deg);
                opacity: 0.5;
                text-shadow: 0 0 5px #FFA500, 0 0 10px #FF4500;
            }

            50% {
                transform: translateY(-5px) rotate(2deg);
                opacity: 1;
                text-shadow: 0 0 20px #FFA500, 0 0 40px #FF4500, 0 0 60px #FFD700;
            }

            100% {
                transform: translateY(10px) rotate(-5deg);
                opacity: 0.5;
                text-shadow: 0 0 5px #FFA500, 0 0 10px #FF4500;
            }
        }

        .nick-effect-phoenix-rise {
            animation: nickPhoenixRise 2.5s ease-in-out infinite;
            color: #FFA500 !important;
            display: inline-block;
        }

        /* 20. Void Tear */
        @keyframes nickVoidTear {

            0%,
            100% {
                transform: scaleX(1) scaleY(1);
                text-shadow: 0 0 10px #000000, 0 0 20px #4B0082, 0 0 30px #8B00FF;
                filter: contrast(1);
            }

            50% {
                transform: scaleX(1.1) scaleY(0.9);
                text-shadow: 0 0 25px #000000, 0 0 50px #4B0082, 0 0 75px #8B00FF, 0 0 100px #000000;
                filter: contrast(1.5);
            }
        }

        .nick-effect-void-tear {
            animation: nickVoidTear 2s ease-in-out infinite;
            color: #8B00FF !important;
            display: inline-block;
            transform-origin: center;
        }


        /* ======================== 🖼️ ESTILO DE FUNDO ======================== */
        body {
            margin: 0;
            padding: 0;
            background-color: var(--background-main);
            background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i.imgur.com/2z375ER.jpeg');
            background-size: cover;
            background-attachment: fixed;
            background-position: center center;
            background-repeat: no-repeat;
            color: var(--text-primary);
            font-family: "Inter", sans-serif;
            text-align: center;
            min-height: 100vh;
            animation: fadeIn 0.6s ease-out;
        }

        h1 {
            font-size: 34px;
            margin-top: 25px;
            color: var(--primary-color);
            text-shadow: 0 0 14px var(--primary-color);
        }

        .light-mode h1 {
            text-shadow: none;
        }

        .neon-sub {
            margin-top: -10px;
            margin-bottom: 20px;
            font-size: 15px;
            color: #a98fe0;
            opacity: 0.85;
            /* Destaque para a imagem de fundo */
            text-shadow: 0 0 5px rgba(0, 0, 0, 0.8), 0 0 2px var(--primary-color);
        }

        .light-mode .neon-sub {
            color: var(--primary-color);
            opacity: 0.9;
            text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
        }

        .container {
            width: 90%;
            max-width: 1300px;
            margin: auto;
            margin-top: 10px;
            background: var(--background-content);
            padding: clamp(10px, 2vw, 20px);
            border-radius: 18px;
            box-shadow: 0 0 20px var(--shadow-color);
            position: relative;
            animation: fadeInUp 0.9s ease-out 0.2s both;
        }

        @media (max-width: 768px) {
            .container {
                width: 95%;
                padding: 15px;
            }
        }

        /* ======================== TOAST NOTIFICATION ======================== */
        #toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1800;
            pointer-events: none;
            /* Permite cliques por baixo */
        }

        .toast {
            background: rgba(50, 200, 50, 0.85);
            /* Verde sucesso */
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: opacity 0.5s, transform 0.5s;
            transform: translateY(20px);
            font-size: 14px;
            font-weight: bold;
            pointer-events: auto;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.error {
            background: rgba(200, 50, 50, 0.85);
            /* Vermelho erro */
        }

        /* ======================== 🎯 CHECK-IN SYSTEM STYLES ======================== */
        #checkin-container {
            position: fixed;
            top: 90px;
            right: 20px;
            max-width: 330px;
            /* Reduzido de 380px */
            width: calc(100% - 40px);
            max-height: 70vh;
            overflow-y: auto;
            z-index: 998;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
        }

        /* SCROLLBAR CUSTOMIZADA */
        #checkin-container::-webkit-scrollbar {
            width: 6px;
        }

        #checkin-container::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

        #checkin-container::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
            opacity: 0.5;
        }

        /* CARD DE CHECK-IN */
        .checkin-card {
            background: rgba(18, 15, 28, 0.97);
            backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(184, 140, 255, 0.35);
            border-radius: 16px;
            padding: 18px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(184, 140, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transition: all 0.3s ease;
            pointer-events: auto;
            position: relative;
            overflow: hidden;
        }

        /* SUPER EVIDÊNCIA - Pulsação forte para chamar atenção */
        .checkin-card.super-evident {
            animation: superEvidentPulse 1.5s ease-in-out infinite, slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid rgba(255, 215, 0, 0.9) !important;
            box-shadow:
                0 0 50px rgba(255, 215, 0, 0.6),
                0 0 100px rgba(255, 140, 0, 0.4),
                0 8px 32px rgba(0, 0, 0, 0.7),
                inset 0 0 30px rgba(255, 215, 0, 0.15) !important;
        }

        @keyframes superEvidentPulse {

            0%,
            100% {
                transform: scale(1);
                filter: brightness(1);
            }

            50% {
                transform: scale(1.03);
                filter: brightness(1.3);
            }
        }

        /* ==================== 📊 MODO CLÁSSICO (REVISADO) ==================== */
        body.classic-mode *:not([class^="nick-effect-"]) {
            animation: none !important;
            transition: none !important;
        }

        body.classic-mode .boss-card,
        body.classic-mode .section-header,
        body.classic-mode h1 {
            text-shadow: none !important;
            box-shadow: none !important;
        }

        body.classic-mode .boss-card {
            background: #2a2a2a !important;
            /* Cinza neutro */
            border: 1px solid #444 !important;
        }

        body.classic-mode h1,
        body.classic-mode .section-header span {
            color: #ddd !important;
            /* Cinza claro */
            background: none !important;
            -webkit-text-fill-color: #ddd !important;
        }

        body.classic-mode {
            background: #121212 !important;
            /* Cinza bem escuro/preto neutro */
        }

        body.classic-mode::before {
            display: none !important;
        }

        body.classic-mode .checkin-card.super-evident {
            animation: none !important;
            border: 1px solid #666 !important;
            box-shadow: none !important;
            background: #2a2a2a !important;
        }

        .checkin-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--primary-color),
                    var(--secondary-color),
                    transparent);
            animation: shimmer 2s linear infinite;
        }

        .checkin-card:hover {
            transform: translateX(-5px);
            border-color: rgba(184, 140, 255, 0.5);
            box-shadow:
                0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(184, 140, 255, 0.25);
        }

        /* HEADER DO CHECK-IN */
        .checkin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(184, 140, 255, 0.2);
        }

        .checkin-floor {
            font-weight: 700;
            font-size: 15px;
            color: var(--primary-color);
            text-shadow: 0 0 10px rgba(184, 140, 255, 0.5);
            letter-spacing: 0.5px;
        }

        .checkin-timer {
            font-size: 13px;
            color: var(--text-secondary);
            font-family: 'Consolas', 'Courier New', monospace;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.05);
            padding: 4px 10px;
            border-radius: 8px;
            border: 1px solid rgba(184, 140, 255, 0.2);
        }

        /* PROGRESS BAR */
        .checkin-progress {
            margin-bottom: 12px;
        }

        .checkin-count {
            font-size: 12px;
            color: var(--text-secondary);
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
        }

        .checkin-progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(100, 100, 120, 0.3);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }




        /* ======================== ⚙️ BOTÕES DE TEMA E COR ======================== */

        /* CONTROLES DO TOPO DIREITO */
        #controls-top-right {
            position: fixed;
            top: 12px;
            right: 12px;
            display: flex;
            gap: 8px;
            z-index: 1500;
        }



        /* BOTÃO REDONDO DE TEMA E COR */
        #theme-toggle,
        #color-fab-button,
        #nick-fab-button,
        #admin-fab-button,
        #store-fab-button,
        #inventory-fab-button,
        #quests-fab-button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--input-background);
            border: 1px solid var(--secondary-color);
            color: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: 0 0 5px var(--primary-color);
            position: relative;
            /* Para o badge de notificação */
        }

        #theme-toggle:hover,
        #color-fab-button:hover,
        #nick-fab-button:hover,
        #admin-fab-button:hover,
        #store-fab-button:hover,
        #inventory-fab-button:hover,
        #quests-fab-button:hover {
            background: var(--secondary-color);
            color: var(--background-main);
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
            }

            70% {
                transform: scale(1.1);
                box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
            }
        }

        .pulse-notification {
            animation: pulse 1.5s infinite;
            border-color: #ff4444 !important;
            color: #ff4444 !important;
        }

        /* Estilo do Botão de ADM */
        #admin-fab-button {
            background: #FFD700;
            color: #120F1C;
            border: 1px solid #c9b400;
            box-shadow: 0 0 8px #FFD700;
            display: none;
            order: -1;
        }


        /* LOGIN */
        #login-overlay {
            position: fixed;
            inset: 0;
            background: rgba(5, 5, 15, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .light-mode #login-overlay {
            background: rgba(240, 240, 245, 0.95);
        }

        #login-box {
            background: var(--chat-background);
            border-radius: 12px;
            padding: 18px 20px;
            border: 1px solid var(--secondary-color);
            box-shadow: 0 12px 30px var(--shadow-color);
            max-width: 320px;
            width: 100%;
        }

        #login-box input {
            background: var(--input-background);
            color: var(--chat-text-color);
            border: 1px solid var(--secondary-color);
            border-radius: 6px;
            padding: 6px 8px;
            font-size: 13px;
            margin-bottom: 10px;
            /* Espaçamento entre inputs */
        }

        #login-error {
            color: #ff6b6b;
            font-size: 12px;
            margin-top: 6px;
            min-height: 16px;
        }

        /* ======================== AUTH TABS & FORMS ======================== */
        .auth-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .auth-tab {
            flex: 1;
            padding: 8px 12px;
            background: var(--input-background);
            border: 1px solid var(--secondary-color);
            border-radius: 6px;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.3s;
            font-size: 13px;
            font-weight: 600;
        }

        .auth-tab.active {
            background: var(--secondary-color);
            color: var(--background-main);
            box-shadow: 0 0 10px var(--primary-color);
        }

        .auth-tab:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 10px var(--primary-color);
        }

        .auth-form {
            width: 100%;
        }

        .auth-form input {
            width: 100%;
            box-sizing: border-box;
            background: var(--input-background);
            color: var(--chat-text-color);
            border: 1px solid var(--secondary-color);
            border-radius: 6px;
            padding: 10px 12px;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .auth-form input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 8px var(--primary-color);
        }

        .auth-form button {
            width: 100%;
            padding: 12px;
            background: var(--secondary-color);
            color: var(--background-main);
            border: none;
            border-radius: 6px;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 5px;
        }

        .auth-form button:hover {
            background: var(--primary-color);
            box-shadow: 0 0 15px var(--primary-color);
            transform: translateY(-2px);
        }

        .auth-form button:active {
            transform: translateY(0);
        }

        .auth-link {
            display: block;
            text-align: center;
            margin-top: 12px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 12px;
            cursor: pointer;
        }

        .auth-link:hover {
            text-decoration: underline;
            color: var(--text-primary);
        }


        /* ONLINE (Painel Fixo Reposicionado) */
        #online-count-box {
            position: fixed;
            left: 16px;
            top: 16px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 10px 12px;
            border-radius: 12px;
            backdrop-filter: blur(4px);
            font-size: 13px;
            color: #ffffff;
            z-index: 1000;
            text-align: left;
            min-width: 160px;
            width: auto;
            max-width: 360px;
            max-height: 360px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
            cursor: pointer;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        #online-count-box.collapsed {
            padding: 5px 14px;
            min-width: unset;
        }

        #online-count-box h3 {
            margin: 0;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #online-count {
            margin-left: 5px;
            font-weight: bold;
            color: var(--primary-color);
        }

        #collapse-icon {
            font-size: 16px;
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        #online-count-box.collapsed #collapse-icon {
            transform: rotate(-90deg);
        }

        /* Estilo para usuário AWAY */
        .user-away {
            opacity: 0.5;
            font-style: italic;
        }

        /* Estilo para usuário ADM */
        .user-admin-nick {
            font-weight: bold;
            color: #FFD700 !important;
            text-shadow: 0 0 5px #FFD700;
        }

        #online-list {
            margin-top: 6px;
            font-size: 12px;
            color: var(--text-secondary);
            /* Controlado por JS para recolher */
            overflow: hidden;
            max-height: 300px;
            transition: max-height 0.3s ease-in-out;
        }

        #online-count-box.collapsed #online-list {
            max-height: 0;
            margin-top: 0;
        }


        /* CONFIG PANEL (Cor + Opacidade) */
        #config-panel {
            position: fixed;
            right: 59px;
            top: 60px;
            background: var(--card-background);
            border: 1px solid var(--secondary-color);
            border-radius: 12px;
            padding: 15px;
            display: none;
            z-index: 1610;
            text-align: left;
            box-shadow: 0 0 15px var(--shadow-color);
            min-width: 250px;
        }

        /* OVERLAY GERAL */
        #modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 1605;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #modal-overlay.active {
            display: block;
            opacity: 1;
        }

        /* PAINEL DE PERSONALIZAÇÃO DE NICK (MODAL) */
        #nick-config-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: var(--card-background);
            /* Fundo sólido necessário */
            border: 1px solid var(--secondary-color);
            border-radius: 16px;
            padding: 25px;
            display: none;
            z-index: 1610;
            text-align: left;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px var(--primary-color);
            width: 90%;
            max-width: 400px;
            max-height: 85vh;
            overflow-y: auto;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        }

        /* Classe auxiliar para animação de entrada */
        #nick-config-panel.modal-open {
            display: block;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        /* Estilo para o campo de emoji com botão */
        .emoji-input-group {
            display: flex;
            gap: 5px;
            align-items: center;
        }

        .emoji-input-group input {
            flex-grow: 1;
        }


        /* NOVO: PAINEL DE ADMIN (MODAL CENTRO) */
        #admin-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: var(--chat-background);
            /* Mais escuro */
            border: 2px solid #FFD700;
            border-radius: 16px;
            padding: 25px;
            display: none;
            z-index: 1610;
            text-align: left;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 15px #FFD700;

            flex-wrap: wrap;
            gap: 20px;
            width: 95%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        }

        /* Classe JS para exibir o painel ADM no modo flex */
        #admin-panel.is-visible {
            display: flex;
            /* Admin usa flex */
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        /* Classe JS para exibir o painel ADM no modo flex */
        #admin-panel.is-visible {
            display: flex;
        }

        #admin-panel h4 {
            flex-basis: 100%;
            color: #FFD700;
            margin-top: 0;
            padding-bottom: 5px;
            border-bottom: 1px solid #FFD700;
        }

        .admin-section {
            padding-bottom: 10px;
            border-bottom: 1px dashed var(--secondary-color);
            /* Define largura para layout em 2 colunas */
            flex: 1 1 45%;
            min-width: 250px;
        }

        .admin-section:nth-child(2),
        .admin-section:nth-child(3) {
            border-bottom: 1px dashed var(--secondary-color);
        }

        .admin-section:last-child {
            border-bottom: none;
        }

        /* Reorganização de elementos no painel de ADM para caber */
        .admin-section:nth-child(2) {
            order: 2;
        }

        /* Gerenciar Sessões */
        .admin-section:nth-child(3) {
            order: 3;
        }

        /* Relatório de Marcação */
        .admin-section:nth-child(4) {
            order: 4;
        }

        /* Ações de Usuário */
        .admin-section:nth-child(5) {
            order: 5;
        }

        /* Segurança Global */

        .admin-section button {
            background: #8b2e2e;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            margin-top: 5px;
        }

        .admin-section button.yellow {
            background: #ffcc00;
            color: #120F1C;
            font-weight: bold;
        }

        .admin-online-list {
            max-height: 200px;
            overflow-y: auto;
            padding: 5px;
            background: var(--input-background);
            border-radius: 6px;
        }

        .admin-online-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            border-bottom: 1px dotted var(--secondary-color);
        }

        .admin-online-item:last-child {
            border-bottom: none;
        }

        .admin-online-item button {
            margin-left: 5px;
            padding: 4px 8px;
            font-size: 11px;
        }


        #config-panel label,
        #nick-config-panel label,
        #admin-panel label {
            color: var(--text-secondary);
            display: block;
            margin-top: 10px;
        }

        #color-picker {
            width: 100%;
            height: 40px;
            border: none;
            padding: 0;
            background: transparent;
            cursor: pointer;
        }

        /* Estilos para a prévia do Nick */
        #nickPreview {
            margin-top: 10px;
            padding: 8px 10px;
            border-radius: 6px;
            border: 1px dashed var(--primary-color);
            font-size: 16px;
            text-align: center;
            color: var(--text-primary);
        }

        #nickConfigInput {
            margin-top: 10px;
        }

        /* CONTROLS (Input Bar) */
        .control-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        /* CORREÇÃO C: Seletor mais eficiente para inputs */
        .custom-control,
        select,
        input:not(#color-picker):not([type=range]),
        button:not(#theme-toggle):not(#color-fab-button):not(#nick-fab-button):not(#admin-fab-button):not(.loot-delete-btn):not(.chat-message-delete-btn),
        .emoji-picker-btn {
            background: var(--input-background);
            border: 1px solid var(--secondary-color);
            color: var(--chat-text-color);
            padding: 8px 14px;
            border-radius: 30px;
            font-size: 14px;
            box-shadow: 0 0 3px var(--secondary-color);
        }

        button:hover,
        .emoji-picker-btn:hover {
            cursor: pointer;
            background: rgba(120, 80, 200, 0.5);
        }

        .light-mode button:hover,
        .light-mode .emoji-picker-btn:hover {
            background: rgba(124, 84, 216, 0.2);
        }

        /* Estilo específico para input de texto (como os da barra de controle) */
        #inputKill,
        #loginNick,
        #loginPass,
        #chatInput,
        #nickConfigInput,
        #kickTargetNick,
        #newNickInput,
        #mentionTargetNick,
        #newPasswordInput {
            border-radius: 30px;
            /* Mantém o formato arredondado nos inputs de texto */
            padding: 8px 14px;
        }


        /* VOLUME SLIDER CSS */
        #volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            background: var(--input-background);
            border: 1px solid var(--secondary-color);
            border-radius: 30px;
        }

        #volume-control input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            background: transparent;
            cursor: pointer;
            width: 80px;
            padding: 0;
            margin: 0;
        }

        #volume-control input[type=range]::-webkit-slider-runnable-track {
            background: var(--secondary-color);
            height: 4px;
            border-radius: 2px;
        }

        #volume-control input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            margin-top: -6px;
            background: var(--primary-color);
            height: 16px;
            width: 16px;
            border-radius: 50%;
            box-shadow: 0 0 5px var(--primary-color);
        }


        .section-title {
            margin-top: 45px;
            font-family: 'Orbitron', 'Inter', sans-serif;
            font-size: 24px;
            font-weight: 900;
            color: #ffffff;
            animation: rgbNeon 4s ease-in-out infinite;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            text-align: center;
        }

        .light-mode .section-title {
            text-shadow: none;
            color: #333;
            animation: none;
        }

        /* SEÇÕES COLAPSÁVEIS */
        .section-collapsible {
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: opacity 0.2s ease;
        }

        .section-collapsible:hover {
            opacity: 0.8;
        }

        .section-collapsible .collapse-icon {
            font-size: 14px;
            transition: transform 0.3s ease;
        }

        .section-collapsible.collapsed .collapse-icon {
            transform: rotate(-90deg);
        }

        .section-content {
            overflow: hidden;
            max-height: 2000px;
            transition: max-height 0.4s ease-out, opacity 0.3s ease, margin 0.3s ease;
            opacity: 1;
        }

        .section-content.collapsed {
            max-height: 0;
            opacity: 0;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }

        /* HISTÓRICO DISCRETO */
        #history-section {
            transition: max-height 0.4s ease-out, opacity 0.3s ease, padding 0.3s ease;
            overflow: hidden;
        }

        #history-section.history-collapsed {
            max-height: 0;
            opacity: 0;
            padding: 0;
        }

        #history-section.history-visible {
            max-height: 2000px;
            opacity: 1;
        }

        #btnToggleHistory:hover {
            background: var(--secondary-color);
            color: var(--background-main);
        }

        .history-card {
            padding: 12px !important;
        }

        .history-card h3 {
            font-size: 14px;
            margin-bottom: 8px;
        }

        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 22px;
            margin-top: 18px;
        }

        /* ======================== 🎮 LAYOUT HORIZONTAL FLEXBOX ======================== */
        /* Todos os cards em uma única linha, centralizados */
        #section-universal,
        #section-comum,
        #section-myrkheimr {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
            align-items: flex-start;
            gap: 14px;
            margin-top: 18px;
            padding: 0 20px;
        }

        /* Cards com largura fixa para caber em desktop */
        #section-universal .piso-card,
        #section-comum .piso-card,
        #section-myrkheimr .piso-card {
            flex: 0 0 auto;
            width: 180px;
            min-width: 180px;
        }

        /* Responsivo: em telas menores permite quebra de linha */
        @media (max-width: 1100px) {

            #section-universal,
            #section-comum,
            #section-myrkheimr {
                flex-wrap: wrap;
            }
        }

        /* Histórico também usa layout compacto */
        #history-grid-u,
        #history-grid-mc {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin-top: 18px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        #history-grid-u .history-card:nth-child(4) {
            grid-column: 1;
            margin-left: auto;
            max-width: 280px;
        }

        #history-grid-u .history-card:nth-child(5) {
            grid-column: 2;
            max-width: 280px;
        }

        #history-grid-mc .history-card:nth-child(4) {
            grid-column: 1;
            margin-left: auto;
            max-width: 280px;
        }

        #history-grid-mc .history-card:nth-child(5) {
            grid-column: 2;
            max-width: 280px;
        }

        /* ============================================================= */
        /* 🌟 PREMIUM PISO CARDS - Glassmorphism + Neon Multicamada       */
        /* ============================================================= */

        /* PISO CARDS - Glassmorphism Clean/Smart */
        #section-universal .piso-card,
        #section-comum .piso-card,
        #section-myrkheimr .piso-card {
            background: rgba(13, 13, 20, 0.75);
            /* Mais escuro e neutro */
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            /* Borda muito sutil */
            border-radius: 16px;
            padding: 16px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            /* Sombra suave, sem cor forte */
        }

        /* Borda interna luminosa (pseudo-element) */
        #section-universal .piso-card::before,
        #section-comum .piso-card::before,
        #section-myrkheimr .piso-card::before {
            content: '';
            position: absolute;
            inset: 2px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            pointer-events: none;
            background: linear-gradient(180deg,
                    rgba(255, 255, 255, 0.03) 0%,
                    transparent 50%);
        }

        /* Glow externo animado (pseudo-element) - REMOVIDO PARA CLEAN LOOK */
        #section-universal .piso-card::after,
        #section-comum .piso-card::after,
        #section-myrkheimr .piso-card::after {
            display: none;
        }

        /* Hover Clean - Leve brilho na borda */
        #section-universal .piso-card:hover,
        #section-comum .piso-card:hover,
        #section-myrkheimr .piso-card:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
            background: rgba(20, 20, 30, 0.85);
        }

        #section-universal .piso-card:hover::after,
        #section-comum .piso-card:hover::after,
        #section-myrkheimr .piso-card:hover::after {
            opacity: 0.8;
            filter: blur(12px);
        }

        /* Título do Piso - Premium com gradiente e brilho */
        #section-universal .piso-card h3,
        #section-comum .piso-card h3,
        #section-myrkheimr .piso-card h3 {
            font-family: 'Orbitron', 'Inter', sans-serif;
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
            margin-bottom: 4px;
            text-align: left;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Garantir que badges dentro do h3 tenham cor visível */
        #section-universal .piso-card h3 span,
        #section-comum .piso-card h3 span,
        #section-myrkheimr .piso-card h3 span {
            -webkit-background-clip: padding-box !important;
            background-clip: padding-box !important;
            -webkit-text-fill-color: white !important;
            filter: none !important;
        }

        /* ROTAÇÃO - Laranja vibrante com gradiente */
        #section-universal .boss-rotation,
        #section-comum .boss-rotation {
            font-family: 'Inter', sans-serif;
            font-size: 12px;
            font-weight: 600;
            background: linear-gradient(90deg, #f97316, #fb923c);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.5));
            margin-bottom: 12px;
            margin-top: 0;
        }

        /* Estilo geral da rotação */
        .boss-rotation {
            font-size: 14px;
            color: #ffcc00;
            margin-top: 8px;
            font-weight: bold;
            text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
            min-height: 20px;
        }

        /* PISOS BLOQUEADOS (RESTRIÇÃO DE VISUALIZAÇÃO) */
        .piso-card.restricted {
            filter: blur(8px);
            pointer-events: none;
            user-select: none;
            position: relative;
        }

        .piso-card.restricted::after {
            content: '🔒 Acesso Restrito';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: #ff6b6b;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            z-index: 100;
            filter: none;
            pointer-events: none;
        }

        /* ============================================================= */
        /* 🔄 CARDS OCULTOS ON-DEMAND (U5 e MYR3)                         */
        /* ============================================================= */

        /* Container do botão de toggle - MESMO TAMANHO DE UM CARD para manter layout */
        .hidden-card-toggle {
            flex: 0 0 auto;
            width: 180px;
            min-width: 180px;
            display: flex;
            align-items: stretch;
            justify-content: center;
        }

        /* Botão para expandir card oculto - ocupa espaço do card */
        .expand-hidden-btn {
            width: 100%;
            min-height: 120px;
            background: linear-gradient(145deg, rgba(30, 30, 50, 0.6), rgba(20, 20, 35, 0.8));
            border: 2px dashed rgba(184, 140, 255, 0.3);
            border-radius: 16px;
            padding: 20px 16px;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            opacity: 0.85;
            text-align: center;
        }

        .expand-hidden-btn::before {
            content: '➕';
            font-size: 28px;
            filter: grayscale(0.3);
            transition: all 0.3s ease;
        }

        .expand-hidden-btn:hover {
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(100, 70, 180, 0.25));
            border-color: var(--primary-color);
            border-style: solid;
            color: var(--text-primary);
            opacity: 1;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
        }

        .expand-hidden-btn:hover::before {
            filter: grayscale(0);
            transform: scale(1.1);
        }

        /* Botão para ocultar card expandido */
        .hide-card-btn {
            position: absolute;
            top: 10px;
            right: 40px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 100, 100, 0.2);
            border: 1px solid rgba(255, 100, 100, 0.5);
            color: #ff6b6b;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            z-index: 11;
        }

        .hide-card-btn:hover {
            background: rgba(255, 100, 100, 0.6);
            color: #fff;
            transform: scale(1.1);
            box-shadow: 0 0 8px rgba(255, 100, 100, 0.5);
        }

        /* Estilo específico para o botão X de fechar */
        .hide-card-btn {
            padding: 0;
            line-height: 24px;
        }

        /* Badge de requisito alto (U5) */
        .high-req-badge {
            font-size: 10px;
            background: linear-gradient(135deg, #f97316, #ea580c) !important;
            -webkit-background-clip: padding-box !important;
            background-clip: padding-box !important;
            -webkit-text-fill-color: white !important;
            color: white !important;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            font-weight: 600;
            vertical-align: middle;
            animation: pulse-badge 2s ease-in-out infinite;
            display: inline-block;
        }

        /* Badge de sob demanda (MYR3) */
        .on-demand-badge {
            font-size: 10px;
            background: linear-gradient(135deg, #22c55e, #16a34a) !important;
            -webkit-background-clip: padding-box !important;
            background-clip: padding-box !important;
            -webkit-text-fill-color: white !important;
            color: white !important;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            font-weight: 600;
            vertical-align: middle;
            display: inline-block;
        }

        @keyframes pulse-badge {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        /* Card oculto quando expandido */
        .hidden-card {
            animation: fadeInCard 0.3s ease-out;
        }

        @keyframes fadeInCard {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }


        /* CHECKBOXES ESTILIZADOS NO ADMIN */
        .checkbox-label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            cursor: pointer;
            background: var(--input-background);
            padding: 4px 8px;
            border-radius: 4px;
            border: 1px solid transparent;
            transition: border-color 0.2s;
        }

        .checkbox-label:hover {
            border-color: var(--secondary-color);
        }

        .checkbox-label input[type="checkbox"] {
            accent-color: var(--primary-color);
            cursor: pointer;
        }

        /* ESTILO DO BOTÃO DE MUTE POR PISO */
        .piso-mute-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--secondary-color);
            color: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            opacity: 0.7;
            z-index: 10;
            /* Garante que o botão mute esteja acima de outros elementos do card */
        }

        .piso-mute-btn:hover {
            opacity: 1;
            background: var(--secondary-color);
            color: var(--background-main);
        }

        .piso-mute-btn.is-muted {
            background: #ff6b6b;
            /* Cor vermelha para indicar mute */
            border: 1px solid #c85555;
            color: white;
            opacity: 1;
            box-shadow: 0 0 5px #ff6b6b;
        }

        .piso-card .lista {
            margin-top: 10px;
        }

        /* BOSS CARD */
        .boss-item {
            background: var(--item-background);
            border: 1px solid var(--primary-color);
            border-radius: 12px;
            padding: 10px 15px;
            margin-bottom: 12px;
            box-shadow: 0 0 5px var(--primary-color);
            transition: box-shadow 0.2s ease;
            min-height: 42px;
            /* Altura mínima fixa para simetria */
            display: flex;
            align-items: center;
        }

        .boss-item:hover {
            box-shadow: 0 0 12px var(--primary-color);
        }

        .risk-badge {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.5px;
            border: 1px solid transparent;
        }

        .risk-badge.low {
            background: rgba(27, 59, 27, 0.6);
            color: #4caf50;
            border-color: #2e7d32;
        }

        .risk-badge.med {
            background: rgba(59, 54, 27, 0.6);
            color: #ffcc00;
            border-color: #b38f00;
        }

        .risk-badge.high {
            background: rgba(59, 27, 27, 0.6);
            color: #ff4444;
            border-color: #c62828;
            animation: glowPulse 1.5s ease-in-out infinite;
        }

        .risk-gauge {
            display: inline-flex;
            gap: 4px;
            align-items: center;
            margin-left: 8px;
        }

        .risk-seg {
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 6px;
            border: 1px solid var(--secondary-color);
            opacity: 0.5;
        }

        .risk-seg.low {
            background: rgba(27, 59, 27, 0.6);
            color: #4caf50;
            border-color: #2e7d32;
        }

        .risk-seg.med {
            background: rgba(59, 54, 27, 0.6);
            color: #ffcc00;
            border-color: #b38f00;
        }

        .risk-seg.high {
            background: rgba(59, 27, 27, 0.6);
            color: #ff4444;
            border-color: #c62828;
        }

        .risk-seg.active {
            opacity: 1;
            box-shadow: 0 0 8px var(--shadow-color);
        }

        .boss-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 15px;
        }

        .boss-details {
            display: none;
            margin-top: 10px;
            font-size: 13px;
            opacity: 0.9;
        }

        /* Botões de Ação na Lista (Excluir/Editar) */
        .boss-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .boss-actions button {
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 12px;
            flex-grow: 1;
        }

        .delete-btn {
            background: #8b2e2e;
            color: white;
        }

        .edit-btn {
            background: var(--secondary-color);
            color: var(--text-primary);
        }


        .history-card {
            opacity: 0.7;
            background: var(--item-background);
            border: 1px solid var(--secondary-color);
        }

        /* CHAT */
        /* Estilo para Menção */
        .chat-mention {
            background: rgba(255, 255, 0, 0.2);
            padding: 2px 4px;
            border-radius: 4px;
            box-shadow: 0 0 5px yellow;
            font-weight: bold;
        }

        #chatFab {
            position: fixed;
            right: 30px;
            bottom: 30px;
            width: 54px;
            height: 54px;
            background: linear-gradient(135deg, #B88CFF 0%, #6A42B2 100%);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0;
            color: white;
            cursor: pointer;
            z-index: 1600;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 4px 20px rgba(184, 140, 255, 0.35);
        }

        #chatFab:hover {
            transform: scale(1.06);
            box-shadow: 0 8px 26px rgba(184, 140, 255, 0.6);
        }

        /* Animação de pulse quando há notificação */
        #chatFab.has-notification {
            animation: glowPulse 1.5s ease-in-out infinite;
        }

        .notification-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            min-width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #ff4444, #cc0000);
            border-radius: 10px;
            border: 2px solid var(--background-main, #120F1C);
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
            color: white;
            padding: 0 5px;
        }

        #chatWindow {
            position: fixed;
            right: 30px;
            bottom: 100px;
            width: 380px;
            height: 480px;
            background: rgba(18, 16, 28, 0.95);
            border: 1px solid rgba(184, 140, 255, 0.25);
            border-radius: 16px;
            padding: 0;
            display: none;
            flex-direction: column;
            z-index: 1600;
            backdrop-filter: blur(10px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 140, 255, 0.1);
            overflow: hidden;
            will-change: transform, opacity;
            transform: translateY(0) scale(1);
            opacity: 1;
            box-sizing: border-box;
        }

        #chatWindow * {
            box-sizing: border-box;
        }

        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: linear-gradient(135deg, rgba(184, 140, 255, 0.12), rgba(106, 66, 178, 0.08));
            border-bottom: 1px solid rgba(184, 140, 255, 0.12);
        }

        .chat-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chat-header-title {
            font-weight: 600;
            color: #E5D7FF;
            font-size: 14px;
        }

        .chat-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chat-header-actions #closeChat {
            cursor: pointer;
            font-size: 16px;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .chat-header-actions #closeChat:hover {
            opacity: 1;
        }

        .chat-header-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }

        .chat-header-btn:hover {
            background: rgba(184, 140, 255, 0.2);
            border-color: rgba(184, 140, 255, 0.4);
        }

        #chatMessages {
            flex: 1;
            overflow-y: auto;
            color: var(--chat-text-color);
            text-align: left;
            padding: 14px;
            gap: 10px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
            scrollbar-gutter: stable;
            overscroll-behavior: contain;
        }

        /* Estilos para inputs */
        .chat-input-row {
            display: flex;
            gap: 8px;
            align-items: center;
            padding: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(18, 16, 28, 0.95);
            position: relative;
            flex-wrap: nowrap;
        }

        /* Estilos e lógica de prints removidos */
        #chatInput {
            flex: 1;
            min-height: 36px;
            max-height: 100px;
            padding: 8px 14px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: var(--chat-text-color, #E5D7FF);
            font-size: 13px;
            resize: none;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            min-width: 0;
        }

        #chatInput:focus {
            border-color: rgba(184, 140, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(184, 140, 255, 0.1);
        }

        .chat-message-wrapper {
            margin-bottom: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .chat-message-bubble {
            display: inline-block;
            max-width: 85%;
            padding: 8px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
        }

        .chat-message-wrapper.my-message {
            align-items: flex-end;
        }

        .chat-message-wrapper.my-message .chat-message-bubble {
            background: rgba(139, 92, 246, 0.16);
            border-color: rgba(139, 92, 246, 0.3);
            border-bottom-right-radius: 4px;
        }

        .chat-message-wrapper.other-message .chat-message-bubble {
            border-bottom-left-radius: 4px;
        }

        .chat-msg-header {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
            flex-wrap: wrap;
        }

        .chat-msg-nick {
            font-weight: 600;
            font-size: 12px;
            color: var(--primary-color);
        }

        .chat-msg-time {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            font-family: 'Consolas', monospace;
        }

        .chat-msg-text {
            color: var(--chat-text-color, #E5D7FF);
            font-size: 15px;
            line-height: 1.5;
            word-wrap: break-word;
        }

        img.emoji {
            height: 1.4em;
            width: 1.4em;
            vertical-align: -0.3em;
        }

        .chat-message-delete-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 20px;
            height: 20px;
            background: rgba(255, 68, 68, 0.2);
            border: none;
            border-radius: 50%;
            color: #ff4444;
            cursor: pointer;
            font-size: 10px;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .chat-message-bubble:hover .chat-message-delete-btn {
            display: flex;
        }

        .chat-message-delete-btn:hover {
            background: #ff4444;
            color: white;
        }

        .chat-image {
            max-width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            cursor: zoom-in;
            display: block;
        }

        #imageViewer {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        #imageViewer .viewer-inner {
            position: relative;
            max-width: 92vw;
            max-height: 88vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #imageViewer img {
            max-width: 100%;
            max-height: 100%;
            transform-origin: center center;
            transition: transform 0.08s ease-out;
            cursor: grab;
        }

        #imageViewer .viewer-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background: rgba(30, 25, 50, 0.9);
            padding: 10px 16px;
            border-radius: 30px;
            border: 1px solid rgba(184, 140, 255, 0.3);
        }

        #imageViewer .viewer-controls button {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.2s;
        }

        #imageViewer .viewer-controls button:hover {
            background: rgba(184, 140, 255, 0.3);
        }

        #chatUploadProgress {
            /* Componentes de upload removidos, mas mantemos o estilo de progresso se o JS os usar */
            color: #ffcc00;
            font-size: 12px;
            margin-top: 5px;
            align-self: flex-start;
            padding-left: 5px;
        }

        /* ======================== 😀 EMOJI PICKER ======================== */
        .emoji-btn {
            background: transparent;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 50%;
            transition: background 0.2s, transform 0.2s;
        }

        #btnSendChat {
            flex-shrink: 0;
        }

        @keyframes chatOpen {
            0% {
                opacity: 0;
                transform: translateY(14px) scale(0.98);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes chatClose {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            100% {
                opacity: 0;
                transform: translateY(14px) scale(0.98);
            }
        }

        .emoji-btn:hover {
            background: var(--secondary-color);
            transform: scale(1.1);
        }

        #emojiPicker {
            position: absolute;
            bottom: 55px;
            right: 10px;
            width: 280px;
            max-height: 250px;
            background: var(--chat-background);
            border: 1px solid var(--secondary-color);
            border-radius: 12px;
            padding: 10px;
            display: none;
            flex-direction: column;
            z-index: 1800;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        }

        #emojiPicker.visible {
            display: flex;
        }

        #chatImagePreview {
            display: none;
            margin-bottom: 10px;
            position: relative;
            max-width: 150px;
        }

        #chatImagePreview img {
            max-width: 100%;
            max-height: 100px;
            border-radius: 8px;
            border: 2px solid rgba(184, 140, 255, 0.4);
        }

        #chatImagePreview .remove-preview {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 22px;
            height: 22px;
            background: #ff4444;
            border: 2px solid rgba(18, 16, 28, 0.9);
            border-radius: 50%;
            color: white;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #mentionSuggestions {
            position: absolute;
            bottom: 100%;
            left: 14px;
            right: 14px;
            background: rgba(30, 25, 50, 0.98);
            border: 1px solid rgba(184, 140, 255, 0.3);
            border-radius: 12px;
            max-height: 180px;
            overflow-y: auto;
            display: none;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
            z-index: 100;
            margin-bottom: 8px;
        }

        #mentionSuggestions.visible {
            display: block;
        }

        .mention-item {
            padding: 10px 14px;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mention-item:hover,
        .mention-item.selected {
            background: rgba(184, 140, 255, 0.15);
        }

        .emoji-categories {
            display: flex;
            gap: 5px;
            margin-bottom: 8px;
            border-bottom: 1px solid var(--secondary-color);
            padding-bottom: 8px;
        }

        .emoji-category-btn {
            background: transparent;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.2s;
        }

        .emoji-category-btn:hover,
        .emoji-category-btn.active {
            background: var(--secondary-color);
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            overflow-y: auto;
            max-height: 180px;
        }

        .emoji-item {
            font-size: 22px;
            cursor: pointer;
            padding: 5px;
            border-radius: 6px;
            text-align: center;
            transition: background 0.2s, transform 0.15s;
        }

        .emoji-item:hover {
            background: var(--secondary-color);
            transform: scale(1.2);
        }

        /* Emoji Badge Selector in Nick Panel */
        .emoji-badge-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 4px;
            margin-top: 8px;
            max-height: 100px;
            overflow-y: auto;
        }

        .emoji-badge-item {
            font-size: 18px;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            text-align: center;
            border: 2px solid transparent;
            transition: border-color 0.2s, transform 0.15s;
        }

        .emoji-badge-item:hover {
            background: var(--secondary-color);
        }

        .emoji-badge-item.selected {
            border-color: var(--primary-color);
            box-shadow: 0 0 8px var(--primary-color);
        }

        /* MAP WINDOW (Redimensionável e Movível) */
        #mapWindow {
            position: fixed;
            top: 150px;
            left: 50%;
            width: 450px;
            height: auto;
            background: var(--chat-background);
            border: 1px solid var(--secondary-color);
            border-radius: 18px;
            padding: 15px;
            display: none;
            flex-direction: column;
            z-index: 1700;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            touch-action: none;
            user-select: none;
        }

        #mapWindow .map-header {
            cursor: move;
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-weight: bold;
            color: var(--primary-color);
            padding-bottom: 5px;
            border-bottom: 1px solid var(--secondary-color);
        }

        #mapWindow .map-content {
            flex-grow: 1;
            overflow: hidden;
        }

        #mapWindow img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
        }

        /* Estilo para a barra de edição ativa */
        .editing-active {
            border: 2px solid #ffcc00;
            /* Neon amarelo */
            box-shadow: 0 0 15px #ffcc00;
        }

        /* ======================== 📑 PAINÉIS LATERAIS (NOTES E MANUAL) ======================== */
        /* Posicionamento dos botões (junto com o chatFab) */

        /* Botão de loot/notes removido, deixando só o manual */
        #manual-fab {
            position: fixed;
            right: 30px;
            bottom: 100px;
            /* Posicionado acima do chat */
            width: 45px;
            height: 45px;
            background: var(--secondary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            color: white;
            cursor: pointer;
            z-index: 1600;
            box-shadow: 0 0 10px var(--secondary-color);
        }

        /* Estilo do badge de notificação removido (sem patch notes) */
        .fab-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 10px;
            height: 10px;
            background: #ffcc00;
            /* Amarelo para destacar novidade */
            border-radius: 50%;
            border: 2px solid var(--background-main);
            display: none;
        }


        /* Estilo da Janela Lateral */
        .info-window {
            position: fixed;
            right: 95px;
            /* Perto dos botões */
            bottom: 100px;
            /* Alinhado com a janela do chat */
            width: 330px;
            height: 420px;
            background: var(--chat-background);
            border: 1px solid var(--primary-color);
            border-radius: 18px;
            padding: 15px;
            display: none;
            flex-direction: column;
            z-index: 1600;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            text-align: left;
            overflow-y: auto;
            color: var(--chat-text-color);
        }

        /* Pop-up de Aviso */
        #warning-popup {
            position: fixed;
            inset: 0;
            background: rgba(5, 5, 15, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 3000;
        }

        #warning-box {
            background: #250d4f;
            border: 2px solid #ffcc00;
            border-radius: 15px;
            padding: 30px;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
        }

        #warning-box h4 {
            color: #ffcc00;
        }


        .info-window h4 {
            color: var(--primary-color);
            margin-top: 0;
            margin-bottom: 8px;
            border-bottom: 1px solid var(--secondary-color);
            padding-bottom: 5px;
        }








        /* HIDE PALETTE/THEME BUTTONS */
        /* HIDE PALETTE/THEME BUTTONS (SAFE CSS) */
        #theme-toggle,
        #color-fab-button,
        .color-preset {
            display: none !important;
        }

        /* O botão de usuário (nick) PERMANECE VISÍVEL */
        #nick-fab-button {
            display: inline-block !important;
            /* ou block/flex */
        }

        /* ======================== 🕯️ MIRKGANG NORMAL LAYOUT (REWORKED) ======================== */

        /* Container Principal - Grid Ajustado */
        #section-myrkheimr {
            display: grid;
            grid-template-columns: repeat(3, minmax(270px, 1fr));
            gap: 18px;
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
            padding: 10px 20px;
            box-sizing: border-box;
        }

        /* Toggle Button do Canal 3 */
        #section-myrkheimr .hidden-card-toggle {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 0;
            height: 100%;
        }

        #section-myrkheimr .expand-hidden-btn {
            background: rgba(var(--card-background-rgba), 0.7);
            border: 1px dashed var(--secondary-color);
            color: var(--text-secondary);
            font-size: 14px;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        #section-myrkheimr .expand-hidden-btn:hover {
            background: rgba(var(--card-background-rgba), 0.9);
            color: var(--primary-color);
            border-style: solid;
        }

        /* Cards principais (Canal 1, 2 e 3) - TAMANHO NORMAL */
        #section-myrkheimr .piso-card {
            /* Resetando overrides anteriores */
            flex: unset;
            max-width: unset;
            min-width: unset;
            width: auto;
            overflow: visible;

            background: var(--card-background);
            border: 1px solid var(--secondary-color);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            position: relative;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        #section-myrkheimr .piso-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
        }

        /* Mantendo as cores das bordas superiores */
        #MYR1 {
            border-top: 3px solid #00f3ff !important;
        }

        #MYR2 {
            border-top: 3px solid #ff0cf5 !important;
        }

        #MYR3 {
            border-top: 3px solid #bc13fe !important;
        }

        /* TÍTULO DO CANAL */
        #section-myrkheimr .piso-card h3 {
            font-family: 'Orbitron', 'Inter', sans-serif;
            font-size: 18px;
            /* Maior que o compact */
            color: var(--text-primary);
            margin-bottom: 15px;
            margin-top: 0;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            font-weight: 700;
            letter-spacing: 1px;
        }

        /* ROTAÇÃO */
        #section-myrkheimr .boss-rotation {
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            color: #fb923c;
            background: rgba(0, 0, 0, 0.2);
            padding: 8px;
            border-radius: 6px;
            margin-bottom: 12px;
            text-align: center;
            line-height: 1.4;
        }

        /* Boss Item - Normal */
        #section-myrkheimr .boss-item {
            display: flex !important;
            justify-content: space-between;
            align-items: flex-start !important;
            flex-wrap: wrap;
            padding: 8px 10px !important;
            margin-bottom: 6px !important;
            font-size: 14px;
            gap: 10px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 6px;
        }

        /* Nome do Boss */
        #section-myrkheimr .boss-header {
            display: flex !important;
            align-items: center;
            gap: 8px;
            flex: 1 1 auto;
        }

        #section-myrkheimr .boss-details {
            display: none;
            width: 100%;
            margin-top: 6px;
            line-height: 1.45;
        }

        #section-myrkheimr .boss-header span:first-child {
            font-family: 'Inter', sans-serif;
            font-size: 14px !important;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Timer */
        #section-myrkheimr .time-left {
            font-family: 'Orbitron', monospace;
            font-size: 14px !important;
            text-align: right;
            color: var(--text-primary);
            font-weight: bold;
        }

        /* Badge de Risco */
        #section-myrkheimr .risk-badge {
            font-size: 10px !important;
            padding: 2px 6px !important;
            border-radius: 4px !important;
            height: fit-content;
        }

        #section-myrkheimr .boss-item.warning .risk-badge {
            background: rgba(255, 165, 0, 0.15) !important;
            color: #ffa500 !important;
            border-color: rgba(255, 165, 0, 0.3) !important;
        }

        #section-myrkheimr .boss-item.urgent .risk-badge {
            background: rgba(255, 41, 41, 0.15) !important;
            color: #ff4444 !important;
            border-color: rgba(255, 41, 41, 0.3) !important;
            animation: pulseSoft 2s infinite !important;
        }

        @keyframes pulseSoft {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }

            100% {
                opacity: 1;
            }
        }

        /* REMOVE TUDO QUE ERA EXTRA (Scanlines, brilhos excessivos) */
        #section-myrkheimr .piso-card::after,
        #section-myrkheimr .piso-card::before {
            display: none !important;
        }


        /* Adjust for mobile/tablet */
        /* RAG - Media Queries conflitantes removidas para permitir o wrap nativo do Flexbox */

        /* Tablets e telas médias (até 1024px) */
        @media (max-width: 1024px) {
            #section-myrkheimr {
                grid-template-columns: repeat(2, minmax(260px, 1fr));
            }

            h1 {
                font-size: 28px;
            }

            #online-count-box {
                font-size: 12px;
                min-width: 140px;
            }
        }

        /* Tablets pequenos (até 768px) */
        @media (max-width: 768px) {
            #section-myrkheimr {
                grid-template-columns: 1fr;
            }

            h1 {
                font-size: 24px;
                margin-top: 15px;
            }

            .neon-sub {
                font-size: 13px;
            }

            .section-title {
                font-size: 18px;
                margin-top: 30px;
            }

            #controls-top-right {
                gap: 6px;
                top: 8px;
                right: 8px;
            }

            #theme-toggle,
            #color-fab-button,
            #nick-fab-button,
            #admin-fab-button,
            #install-app-button {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }

            #chatWindow,
            .info-window {
                width: calc(100vw - 40px);
                right: 20px;
                bottom: 90px;
            }

            #chatFab,
            #manual-fab {
                width: 50px;
                height: 50px;
                font-size: 22px;
                right: 20px;
            }

            #manual-fab {
                bottom: 80px;
            }

            .piso-card {
                padding: 14px;
            }

            .control-bar {
                flex-wrap: wrap;
                gap: 8px !important;
            }

            .custom-control {
                min-width: calc(50% - 4px);
                flex: 1 1 calc(50% - 4px);
            }

            #btnMap {
                flex: 1 1 100%;
            }
        }

        /* Celulares (até 480px) */
        @media (max-width: 480px) {
            .grid-4 {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            h1 {
                font-size: 20px;
            }

            .container {
                width: 98%;
                padding: 12px;
                border-radius: 12px;
            }

            #controls-top-right {
                flex-wrap: wrap;
                gap: 4px;
            }

            #theme-toggle,
            #color-fab-button,
            #nick-fab-button,
            #admin-fab-button,
            #install-app-button {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            #online-count-box {
                font-size: 11px;
                padding: 6px 10px;
                min-width: 120px;
            }

            .custom-control {
                min-width: 100%;
                flex: 1 1 100%;
            }

            #chatWindow {
                width: calc(100vw - 20px);
                height: calc(100vh - 120px);
                right: 10px;
                bottom: 70px;
            }

            .piso-card {
                padding: 12px;
            }

            .boss-item {
                padding: 8px 12px;
            }

            #nick-config-panel,
            #admin-panel {
                width: 95%;
                max-width: 95%;
                padding: 18px;
            }

            #config-panel {
                right: 10px;
                top: 50px;
                width: calc(100vw - 40px);
            }
        }

        /* Modo paisagem em celulares */
        @media (max-height: 500px) and (orientation: landscape) {
            h1 {
                font-size: 18px;
                margin-top: 10px;
            }

            .neon-sub {
                display: none;
            }

            .container {
                margin-top: 5px;
            }

            #chatWindow {
                height: calc(100vh - 80px);
            }
        }

        /* MELHORIAS MOBILE - Prevenção de toques acidentais */
        @media (max-width: 768px) {

            /* Botões maiores e mais espaçados para evitar toques acidentais */
            .delete-btn,
            .edit-btn {
                min-width: 44px;
                min-height: 44px;
                padding: 10px 14px !important;
                margin: 4px !important;
                font-size: 12px !important;
            }

            /* Botão de delete com mais destaque e afastado */
            .delete-btn {
                margin-left: 10px !important;
            }

            /* Area de toque maior para cards */
            .boss-item {
                padding: 14px !important;
                margin: 8px 0 !important;
            }

            /* Botão registrar maior */
            #btnRegistrar {
                min-height: 48px;
                font-size: 16px !important;
            }

            /* Inputs maiores para toque */
            input,
            select {
                min-height: 44px;
                font-size: 16px !important;
            }

            /* Painel admin mais espaçado */
            .admin-section {
                padding: 15px !important;
            }

            .admin-section button {
                min-height: 44px;
                margin: 6px 0 !important;
            }

            /* Próximo boss mais visível */
            #next-rotation-bar {
                padding: 20px 10px !important;
            }

            #next-rotation-info {
                font-size: 16px !important;
            }

            /* Chat input maior */
            #chatInput {
                min-height: 44px;
                font-size: 16px !important;
            }

            /* Previne zoom acidental em inputs no iOS */
            input[type="text"],
            input[type="password"],
            select,
            textarea {
                font-size: 16px !important;
            }
        }

        /* Celulares pequenos - layout mais compacto */
        @media (max-width: 380px) {
            h1 {
                font-size: 16px !important;
            }

            .neon-sub {
                font-size: 10px !important;
            }

            #next-rotation-info {
                font-size: 14px !important;
            }

            .piso-card h3 {
                font-size: 14px !important;
            }
        }

        @keyframes rgbNeon {
            0% {
                text-shadow:
                    0 0 10px #ff0080,
                    0 0 20px #ff0080,
                    0 0 30px #ff0080,
                    0 0 40px #ff0080;
            }

            25% {
                text-shadow:
                    0 0 10px #00ff00,
                    0 0 20px #00ff00,
                    0 0 30px #00ff00,
                    0 0 40px #00ff00;
            }

            50% {
                text-shadow:
                    0 0 10px #00ffff,
                    0 0 20px #00ffff,
                    0 0 30px #00ffff,
                    0 0 40px #00ffff;
            }

            75% {
                text-shadow:
                    0 0 10px #ff00ff,
                    0 0 20px #ff00ff,
                    0 0 30px #ff00ff,
                    0 0 40px #ff00ff;
            }

            100% {
                text-shadow:
                    0 0 10px #ff0080,
                    0 0 20px #ff0080,
                    0 0 30px #ff0080,
                    0 0 40px #ff0080;
            }
        }

        /* REMOVING CENTRAL PANEL BACKGROUND AS REQUESTED */
        .container,
        .control-bar,
        .section-content {
            background: transparent !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            border: none !important;
        }

        /* Garantir que inputs e botões mantenham visibilidade se necessário */
        .control-bar {
            padding: 10px 0 !important;
        }

        body:not(.classic-mode) #boss-title {
            animation: rgbNeon 6s linear infinite;
            font-family: 'Orbitron', 'Inter', sans-serif;
        }

        body:not(.classic-mode) .neon-sub {
            background: none;
            color: #ffffff;
            padding: 0;
            border: none;
            display: inline-block;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 6px rgba(255, 255, 255, 0.6),
                0 0 12px var(--primary-color);
        }

        body:not(.classic-mode) h2.section-title[data-section="universal"] {
            color: #3aa9ff;
            animation: none;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        }

        body:not(.classic-mode) h2.section-title[data-section="comum"] {
            color: #ff8c3a;
            animation: none;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        }

        body:not(.classic-mode) h2.section-title[data-section="myrkheimr"] {
            color: #a93aff;
            animation: none;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        }

        .online-pill {
            background: rgba(0, 0, 0, 0.6);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            backdrop-filter: blur(4px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
            z-index: 1000;
            overflow: hidden;
            min-width: 160px;
            will-change: backdrop-filter;
            transition: backdrop-filter 0.25s ease, box-shadow 0.25s ease;
        }

        .online-pill-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            cursor: pointer;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .online-pill-title {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .online-dot {
            width: 8px;
            height: 8px;
            background: #2ecc71;
            border-radius: 50%;
            box-shadow: 0 0 8px #2ecc71;
        }

        #online-list {
            max-height: 0;
            overflow: auto;
            padding: 0 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
        }

        .online-pill.expanded #online-list {
            max-height: 260px;
            opacity: 1;
            padding: 10px 12px;
        }

        .online-pill.expanded {
            backdrop-filter: blur(6px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
        }

        .online-caret {
            font-size: 14px;
            opacity: 0.8;
            transition: transform 0.2s ease;
        }

        .online-pill.expanded .online-caret {
            transform: rotate(180deg);
        }

        /* DEFINIÇÃO DA ANIMAÇÃO NEON PULSE */
        @keyframes neonPulse {

            0%,
            100% {
                box-shadow: 0 0 5px rgba(217, 70, 239, 0.2);
                border-color: rgba(217, 70, 239, 0.3);
            }

            50% {
                box-shadow: 0 0 12px rgba(217, 70, 239, 0.4);
                border-color: rgba(217, 70, 239, 0.6);
            }
        }

        /* CONFIGURAÇÃO DE OPACIDADE E FUNDO MAIS SÓLIDO */
        :root {
            --card-bg-robust: linear-gradient(145deg, rgba(15, 12, 30, 0.98) 0%, rgba(8, 5, 15, 0.99) 100%);
            --content-opacity: 1;
            /* Força opacidade total */
        }

        /* APLICAÇÃO NOS CARDS DE BOSS */
        .boss-item {
            background: var(--card-bg-robust) !important;
            backdrop-filter: blur(5px) !important;
            /* Blur leve mantido */
            border: 1px solid rgba(217, 70, 239, 0.3);
            border-radius: 12px;
            opacity: 0.98 !important;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            animation: neonPulse 3s infinite ease-in-out;
            color: #fff !important;
            /* Garante contrate */
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        }

        .boss-item:hover {
            transform: translateY(-5px) scale(1.02);
            z-index: 100;
            animation: none;
            /* Pausa pulso e fixa brilho no hover */
            box-shadow: 0 0 30px rgba(217, 70, 239, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
            border-color: #d946ef;
        }

        /* APLICAÇÃO NA BARRA DE CONTROLE E ELEMENTOS INTERNOS */
        /* APLICAÇÃO NA BARRA DE CONTROLE E ELEMENTOS INTERNOS */
        .control-bar {
            background: transparent !important;
            backdrop-filter: none;
            border-bottom: none !important;
            box-shadow: none;
            padding: 10px 0 !important;
        }

        /* SELECTS E INPUTS */
        .control-bar select,
        .control-bar input,
        #inputKill {
            background: rgba(20, 15, 40, 0.95) !important;
            border: 1px solid rgba(217, 70, 239, 0.3) !important;
            color: #fff !important;
            box-shadow: 0 0 5px rgba(217, 70, 239, 0.1);
            transition: all 0.3s ease;
            opacity: 0.98 !important;
            font-weight: 600;
        }

        .control-bar select:focus,
        .control-bar input:focus {
            box-shadow: 0 0 25px rgba(217, 70, 239, 0.6) !important;
            border-color: #d946ef !important;
            animation: none;
        }

        /* BOTÕES PRINCIPAIS */
        #btnRegistrar,
        #btnHoraAtual,

        .custom-control,
        .repo-btn {
            background: linear-gradient(to bottom, rgba(50, 20, 80, 0.9), rgba(30, 10, 50, 0.95)) !important;
            border: 1px solid rgba(217, 70, 239, 0.5) !important;
            color: #fff !important;
            font-weight: bold;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
            animation: neonPulse 3s infinite ease-in-out;
            opacity: 1 !important;
        }

        #btnRegistrar:hover,
        #btnHoraAtual:hover {
            background: #d946ef !important;
            color: #000 !important;
            box-shadow: 0 0 40px rgba(217, 70, 239, 0.8) !important;
            animation: none;
        }

        /* BOTÕES TOPO DIREITO */
        #controls-top-right button,
        .theme-btn,
        .discord-btn,
        .config-btn,
        .admin-btn {
            background: rgba(30, 20, 50, 0.9) !important;
            border: 1px solid rgba(217, 70, 239, 0.4) !important;
            box-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
            animation: neonPulse 5s infinite ease-in-out;
            opacity: 1 !important;
        }

        /* Ajuste de Texto para Contraste */
        .time-left,
        .boss-header span {
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(217, 70, 239, 0.5);
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        /* Global Soft Dark Blue/Petrol Aesthetics overrides */
        body {
            --primary-color: #d946ef;
            /* Magenta Neon */
            --secondary-color: #a21caf;
            /* Purple Darker */
            --text-primary: #ffffff;
        }


        /* ==================== MERGED STYLES ==================== */

        /* ==================== 🎨 NEW RPG PROFILE CUSTOMIZATION (ADDED) ==================== */
        #profile-custom-modal {
            display: none;
            /* Initially hidden */
        }

        .rpg-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .rpg-modal-content {
            background: #1e1e1e;
            border: 1px solid #333;
            border-radius: 12px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
            width: 90%;
            max-width: 900px;
            height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            color: #fff;
            animation: profileSlideIn 0.3s ease-out;
        }

        .rpg-modal-header {
            background: #151515;
            padding: 15px 20px;
            border-bottom: 1px solid #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .rpg-modal-header h2 {
            margin: 0;
            font-size: 18px;
            color: #FFD700;
            font-family: 'Orbitron', sans-serif;
        }

        .rpg-close-btn {
            background: none;
            border: none;
            color: #888;
            font-size: 20px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .rpg-close-btn:hover {
            color: #fff;
        }

        /* ==================== 📑 TABS ==================== */
        .rpg-tabs {
            display: flex;
            gap: 10px;
            padding: 10px;
            background: #151515;
            border-bottom: 1px solid #333;
        }

        .rpg-tab {
            background: transparent;
            border: 1px solid transparent;
            color: #888;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
        }

        .rpg-tab:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #ccc;
        }

        .rpg-tab.active {
            background: #252525;
            border-color: #333;
            color: #FFD700;
        }

        /* Tab Content - Scroll interno */
        .rpg-tab-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
        }

        .rpg-tab-content::-webkit-scrollbar {
            width: 8px;
        }

        .rpg-tab-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .rpg-tab-content::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.3);
            border-radius: 4px;
        }

        /* Grid de itens da loja */
        .store-items-grid,
        .rpg-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
        }

        @media (max-width: 600px) {
            .store-items-grid,
            .rpg-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        /* Card de item da loja */
        .rpg-card {
            background: linear-gradient(145deg, #252530, #1a1a22);
            border: 1px solid rgba(255, 215, 0, 0.15);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .rpg-card:hover {
            border-color: rgba(255, 215, 0, 0.4);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .rpg-card-icon {
            font-size: 36px;
            margin-bottom: 5px;
            filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
        }

        .rpg-card-title {
            font-size: 14px;
            font-weight: 700;
            color: #FFD700;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .rpg-card-desc {
            font-size: 11px;
            color: #aaa;
            line-height: 1.4;
            flex: 1;
        }

        .rpg-btn-buy,
        .rpg-btn-use {
            width: 100%;
            padding: 10px 15px;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            border: none;
            border-radius: 8px;
            color: #000;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: auto;
        }

        .rpg-btn-buy:hover:not(:disabled),
        .rpg-btn-use:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }

        .rpg-btn-buy:disabled {
            background: #444;
            color: #888;
            cursor: not-allowed;
        }

        .rpg-btn-use {
            background: linear-gradient(135deg, #00b894, #00cec9);
        }

        /* ==================== ✨ NICK EFFECTS ==================== */
        .effect-glow {
            text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
            animation: glowPulse 2s infinite alternate;
        }

        .effect-pulse {
            animation: pulseText 1.5s infinite;
        }

        .effect-rainbow {
            background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            animation: rainbowMove 5s linear infinite;
            background-size: 500% 100%;
        }

        .effect-sparkle {
            position: relative;
            display: inline-block;
        }

        .effect-sparkle::after {
            content: '✨';
            position: absolute;
            font-size: 0.5em;
            top: -5px;
            right: -5px;
            animation: sparkleAnim 1s infinite alternate;
        }

        .effect-fire {
            color: #ff4500 !important;
            text-shadow: 0 0 4px #ff0000, 0 -5px 4px #ff8800, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -25px 18px #f20;
            animation: fireFlicker 0.1s infinite alternate;
        }

        .effect-glitch {
            position: relative;
            display: inline-block;
            animation: glitchSkew 1s infinite linear alternate-reverse;
        }

        .effect-glitch::before,
        .effect-glitch::after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            opacity: 0.8;
        }

        .effect-glitch::before {
            color: #ff00c1;
            z-index: -1;
            animation: glitchAnim 2s infinite linear alternate-reverse;
        }

        .effect-glitch::after {
            color: #00fff9;
            z-index: -2;
            animation: glitchAnim 3s infinite linear alternate-reverse;
        }

        .effect-neon-flicker {
            color: #fff;
            text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #fff, 0 0 40px #0fa, 0 0 80px #0fa, 0 0 90px #0fa, 0 0 100px #0fa, 0 0 150px #0fa;
            animation: neonFlicker 1.5s infinite alternate;
        }

        .effect-matrix {
            color: #0f0 !important;
            text-shadow: 0 0 5px #0f0;
            font-family: 'Courier New', monospace;
        }

        .effect-ghost {
            animation: ghostFloat 3s infinite;
            opacity: 0.8;
            filter: blur(0.5px);
        }

        .effect-shake {
            animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both infinite;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
        }

        .effect-float {
            animation: float 3s ease-in-out infinite;
        }

        .effect-ice-shard {
            color: #a5f2f3 !important;
            text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #0ff;
            animation: iceGlint 3s infinite;
        }

        .effect-toxic-slime {
            color: #ccff00 !important;
            text-shadow: 0 0 5px #0f0, 2px 2px 0px #000;
            animation: slimeDrip 2s infinite;
        }

        .effect-neon-heartbeat {
            color: #ff0055 !important;
            animation: neonHeartbeat 1.5s ease-in-out infinite;
        }

        .effect-divine-shield {
            color: #ffd700 !important;
            text-shadow: 0 0 5px #fff, 0 0 15px #ffd700, 0 0 25px #ffd700;
            animation: divineShine 3s infinite;
        }

        .effect-shadow-step {
            color: #333 !important;
            text-shadow: 2px 2px 4px #000;
            animation: shadowFade 2s infinite alternate;
        }

        .effect-plasma-wave {
            background: linear-gradient(90deg, #f0f, #0ff, #f0f);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            animation: plasmaFlow 2s linear infinite;
        }

        .effect-crystal-shimmer {
            background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 50%, #e6e6e6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
            animation: crystalShine 3s infinite;
        }

        .effect-inferno-burst {
            color: #ff2200 !important;
            text-shadow: 0 0 10px #ff4500, 0 0 20px #ff0000;
            animation: infernoPulse 0.5s infinite alternate;
        }

        .effect-lightning-strike {
            color: #e0ffff !important;
            text-shadow: 0 0 10px #00ffff;
            animation: lightningFlash 3s infinite;
        }

        .effect-ocean-current {
            background: linear-gradient(180deg, #006994, #003366);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            animation: oceanWave 4s infinite ease-in-out;
        }

        .effect-starlight {
            color: #fff !important;
            text-shadow: 0 0 4px #fff, 0 0 8px #fff;
            animation: starlightTwinkle 2s infinite;
        }

        .effect-nebula-swirl {
            background: linear-gradient(45deg, #ff00cc, #333399, #00ccff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            animation: nebulaMove 6s infinite linear;
            background-size: 300% 300%;
        }

        .effect-quantum-flux {
            color: #00ff00 !important;
            animation: quantumFlicker 0.2s infinite;
        }

        .effect-dragon-breath {
            background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            animation: dragonBreath 3s infinite alternate;
        }

        .effect-phoenix-rise {
            color: #ff4500 !important;
            text-shadow: 0 -2px 5px #ff8c00, 0 -4px 10px #ff0000;
            animation: phoenixFloat 2s infinite ease-in-out;
        }

        .effect-void-tear {
            color: #000 !important;
            text-shadow: 0 0 5px #4b0082;
            animation: voidPulse 3s infinite;
        }

        @keyframes shake {

            10%,
            90% {
                transform: translate3d(-1px, 0, 0);
            }

            20%,
            80% {
                transform: translate3d(2px, 0, 0);
            }

            30%,
            50%,
            70% {
                transform: translate3d(-4px, 0, 0);
            }

            40%,
            60% {
                transform: translate3d(4px, 0, 0);
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-5px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        @keyframes iceGlint {
            0% {
                text-shadow: 0 0 5px #fff;
            }

            50% {
                text-shadow: 0 0 20px #0ff, 0 0 30px #fff;
            }

            100% {
                text-shadow: 0 0 5px #fff;
            }
        }

        @keyframes slimeDrip {

            0%,
            100% {
                color: #ccff00;
                text-shadow: 0 0 5px #0f0;
            }

            50% {
                color: #99cc00;
                text-shadow: 0 3px 8px #0f0;
            }
        }

        @keyframes neonHeartbeat {
            0% {
                transform: scale(1);
                text-shadow: 0 0 10px #ff0055;
            }

            10% {
                transform: scale(1.1);
                text-shadow: 0 0 20px #ff0055;
            }

            20% {
                transform: scale(1);
                text-shadow: 0 0 10px #ff0055;
            }

            30% {
                transform: scale(1.1);
                text-shadow: 0 0 20px #ff0055;
            }

            40% {
                transform: scale(1);
                text-shadow: 0 0 10px #ff0055;
            }

            100% {
                transform: scale(1);
                text-shadow: 0 0 10px #ff0055;
            }
        }

        @keyframes divineShine {
            0% {
                opacity: 0.8;
                text-shadow: 0 0 5px #fff;
            }

            50% {
                opacity: 1;
                text-shadow: 0 0 20px #ffd700, 0 0 30px #fff;
            }

            100% {
                opacity: 0.8;
                text-shadow: 0 0 5px #fff;
            }
        }

        @keyframes shadowFade {
            0% {
                opacity: 1;
                filter: blur(0px);
            }

            100% {
                opacity: 0.7;
                filter: blur(1px);
            }
        }

        @keyframes plasmaFlow {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 100% 50%;
            }
        }

        @keyframes crystalShine {
            0% {
                filter: brightness(100%);
            }

            50% {
                filter: brightness(150%);
            }

            100% {
                filter: brightness(100%);
            }
        }

        @keyframes infernoPulse {
            0% {
                text-shadow: 0 0 10px #ff4500;
            }

            100% {
                text-shadow: 0 0 25px #ff0000, 0 0 5px #ffff00;
            }
        }

        @keyframes lightningFlash {

            0%,
            90% {
                opacity: 1;
                text-shadow: 0 0 10px #00ffff;
            }

            92% {
                opacity: 0.5;
                text-shadow: none;
            }

            94% {
                opacity: 1;
                text-shadow: 0 0 20px #fff;
            }

            96% {
                opacity: 0.5;
                text-shadow: none;
            }

            100% {
                opacity: 1;
                text-shadow: 0 0 10px #00ffff;
            }
        }

        @keyframes oceanWave {
            0% {
                transform: translateY(0);
                color: #006994;
            }

            50% {
                transform: translateY(2px);
                color: #003366;
            }

            100% {
                transform: translateY(0);
                color: #006994;
            }
        }

        @keyframes starlightTwinkle {

            0%,
            100% {
                opacity: 1;
                text-shadow: 0 0 4px #fff;
            }

            50% {
                opacity: 0.7;
                text-shadow: 0 0 10px #fff, 0 0 2px #aaa;
            }
        }

        @keyframes nebulaMove {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        @keyframes quantumFlicker {
            0% {
                opacity: 1;
                transform: translateX(0);
            }

            50% {
                opacity: 0.8;
                transform: translateX(1px);
            }

            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes dragonBreath {
            0% {
                text-shadow: 0 0 5px #ff0000;
            }

            100% {
                text-shadow: 0 0 15px #ff7f00, 0 -5px 10px #ffff00;
            }
        }

        @keyframes phoenixFloat {
            0% {
                transform: translateY(0);
                text-shadow: 0 -2px 5px #ff8c00;
            }

            50% {
                transform: translateY(-3px);
                text-shadow: 0 -5px 10px #ff0000;
            }

            100% {
                transform: translateY(0);
                text-shadow: 0 -2px 5px #ff8c00;
            }
        }

        @keyframes voidPulse {
            0% {
                text-shadow: 0 0 5px #4b0082;
            }

            50% {
                text-shadow: 0 0 15px #000, 0 0 5px #800080;
            }

            100% {
                text-shadow: 0 0 5px #4b0082;
            }
        }

        /* Animations */
        @keyframes rainbowMove {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 100% 0;
            }
        }

        @keyframes pulseText {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.8;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes sparkleAnim {
            from {
                opacity: 0;
                transform: scale(0.5);
            }

            to {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        @keyframes fireFlicker {
            0% {
                text-shadow: 0 0 4px #ff0000, 0 -5px 4px #ff8800, 2px -10px 6px #fd3;
            }

            100% {
                text-shadow: 0 0 4px #ff0000, 0 -5px 4px #ff8800, 2px -10px 6px #fd3, -2px -15px 11px #f80;
            }
        }

        @keyframes glitchSkew {
            0% {
                transform: skew(0deg);
            }

            20% {
                transform: skew(-2deg);
            }

            40% {
                transform: skew(2deg);
            }

            60% {
                transform: skew(-1deg);
            }

            80% {
                transform: skew(1deg);
            }

            100% {
                transform: skew(0deg);
            }
        }

        @keyframes glitchAnim {
            0% {
                clip-path: inset(10% 0 80% 0);
                transform: translate(-2px, 2px);
            }

            20% {
                clip-path: inset(80% 0 10% 0);
                transform: translate(2px, -2px);
            }

            40% {
                clip-path: inset(40% 0 50% 0);
                transform: translate(-2px, 2px);
            }

            60% {
                clip-path: inset(20% 0 60% 0);
                transform: translate(2px, -2px);
            }

            80% {
                clip-path: inset(60% 0 30% 0);
                transform: translate(-2px, 2px);
            }

            100% {
                clip-path: inset(10% 0 80% 0);
                transform: translate(2px, -2px);
            }
        }

        @keyframes neonFlicker {

            0%,
            19%,
            21%,
            23%,
            25%,
            54%,
            56%,
            100% {
                text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #fff, 0 0 40px #0fa, 0 0 80px #0fa, 0 0 90px #0fa, 0 0 100px #0fa, 0 0 150px #0fa;
            }

            20%,
            24%,
            55% {
                text-shadow: none;
            }
        }

        @keyframes ghostFloat {
            0% {
                transform: translateY(0);
                opacity: 0.8;
            }

            50% {
                transform: translateY(-5px);
                opacity: 0.4;
            }

            100% {
                transform: translateY(0);
                opacity: 0.8;
            }
        }

        /* ==========================================================================
   DISCORD-LIKE PROFILE EDIT MODAL & ADMIN STYLES (Restored)
   ========================================================================== */
        .pc-container {
            display: flex;
            height: 100%;
            background: #313338;
            color: #dbdee1;
            font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            overflow: hidden;
        }

        .pc-sidebar {
            width: 230px;
            background: #2b2d31;
            display: flex;
            flex-direction: column;
            padding: 60px 6px 60px 20px;
            flex-shrink: 0;
        }

        .pc-sidebar h2 {
            font-size: 12px;
            font-weight: 700;
            color: #949ba4;
            text-transform: uppercase;
            margin-bottom: 8px;
            padding-left: 10px;
        }

        .pc-tab-btn {
            text-align: left;
            background: transparent;
            border: none;
            color: #b5bac1;
            padding: 6px 10px;
            margin-bottom: 2px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.1s, color 0.1s;
        }

        .pc-tab-btn:hover {
            background: rgba(78, 80, 88, 0.3);
            color: #dbdee1;
        }

        .pc-tab-btn.active {
            background: rgba(78, 80, 88, 0.6);
            color: #fff;
        }

        .pc-content {
            flex: 1;
            padding: 60px 40px;
            overflow-y: auto;
            background: #313338;
        }

        .pc-section-title {
            font-size: 20px;
            font-weight: 600;
            color: #f2f3f5;
            margin-bottom: 20px;
        }

        .pc-preview-area {
            margin-bottom: 30px;
        }

        .pc-preview-card {
            width: 300px;
            background: #111214;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .pc-preview-banner {
            height: 60px;
            background-color: #5865f2;
            background-size: cover;
            background-position: center;
        }

        .pc-preview-avatar-container {
            position: absolute;
            top: 40px;
            left: 16px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 6px solid #111214;
            background: #313338;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .pc-preview-avatar {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            border-radius: 50%;
        }

        .pc-preview-info {
            padding: 50px 16px 16px 16px;
            background: #111214;
        }

        .pc-preview-nick {
            font-size: 20px;
            font-weight: 600;
            color: #f2f3f5;
            line-height: 1.2;
        }

        .pc-preview-username {
            font-size: 14px;
            color: #b5bac1;
            margin-top: 2px;
        }

        .pc-preview-badges {
            margin-top: 10px;
            display: flex;
            gap: 4px;
        }

        .pc-preview-badge {
            background: #232428;
            border-radius: 4px;
            padding: 2px;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .pc-form-group {
            margin-bottom: 24px;
        }

        .pc-label {
            display: block;
            color: #b5bac1;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .pc-input {
            width: 100%;
            background: #1e1f22;
            border: none;
            border-radius: 3px;
            padding: 10px;
            color: #dbdee1;
            font-family: inherit;
            font-size: 16px;
            outline: none;
        }

        .pc-input:focus {
            background: #1e1f22;
        }

        .pc-color-picker-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pc-color-preview {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            border: 1px solid #2b2d31;
            cursor: pointer;
        }

        .pc-save-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #111214;
            padding: 20px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .pc-save-bar.visible {
            transform: translateY(0);
        }

        .pc-btn {
            padding: 10px 24px;
            border-radius: 3px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            transition: background 0.2s;
        }

        .pc-btn-primary {
            background: #248046;
            color: white;
        }

        .pc-btn-primary:hover {
            background: #1a6334;
        }

        .pc-btn-secondary {
            background: transparent;
            color: #fff;
        }

        .pc-btn-secondary:hover {
            text-decoration: underline;
        }

        .pc-effect-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .pc-effect-item {
            background: #2b2d31;
            border-radius: 4px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .pc-effect-item:hover {
            background: #404249;
        }

        .pc-effect-item.active {
            border-color: #5865f2;
            background: #404249;
        }

        .pc-effect-preview {
            font-size: 20px;
            margin-bottom: 5px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pc-effect-name {
            font-size: 10px;
            color: #949ba4;
            font-weight: 600;
        }

        .pc-modal {
            max-width: 800px;
            height: 600px;
            border-radius: 5px;
            padding: 0;
            overflow: hidden;
            background: #313338;
        }

        .pc-header {
            display: none;
        }

        .pc-close {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 100;
            color: #b5bac1;
            cursor: pointer;
            background: transparent;
            border: none;
            font-size: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .pc-close:hover {
            color: #dbdee1;
        }

        .pc-close::after {
            content: "ESC";
            font-size: 10px;
            font-weight: 700;
        }

        .rpg-tabs.pc-tabs {
            display: none;
        }

        .rpg-modal-overlay {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
        }

        /* ======================== 🎨 NEW PROFILE EDITOR MODAL ======================== */
        /* ======================== 💎 ULTRA PREMIUM PROFILE EDITOR ======================== */
        #profile-custom-modal {
            --glass-bg: rgba(13, 11, 20, 0.55);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-highlight: rgba(255, 255, 255, 0.05);
            --accent-purple: #8b5cf6;
            --accent-glow: 0 0 20px rgba(139, 92, 246, 0.5);
            --text-muted: #9ca3af;
            --text-bright: #f3f4f6;
        }

        .profile-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(20px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
            animation: fadeInOverlay 0.3s ease-out;
        }

        .profile-modal-container {
            display: flex;
            gap: 32px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 32px;
            max-width: 980px;
            width: 100%;
            height: min(650px, 90vh);
            box-shadow:
                0 0 0 1px rgba(0, 0, 0, 0.5),
                0 24px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(139, 92, 246, 0.1);
            position: relative;
            overflow: hidden;
        }

        /* Background Noise Texture */
        .profile-modal-container::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
            opacity: 0.4;
            pointer-events: none;
            z-index: 0;
        }

        .profile-modal-content-wrapper {
            position: relative;
            z-index: 1;
            display: flex;
            gap: 32px;
            width: 100%;
            height: 100%;
        }

        .profile-modal-close {
            position: absolute;
            top: 24px;
            right: 24px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 20;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: sans-serif;
        }

        .profile-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            transform: rotate(90deg);
        }

        /* LEFT: Preview Panel */
        .profile-preview-panel {
            flex: 0 0 320px;
            min-width: 240px;
            max-width: 360px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-right: 20px;
            border-right: 1px solid var(--glass-border);
        }

        .profile-preview-title {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--accent-purple);
            margin-bottom: 24px;
            font-weight: 700;
            opacity: 0.8;
        }

        .profile-preview-card {
            background: #0f172a;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: transform;
        }

        .profile-preview-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.4);
        }

        .profile-card-banner {
            height: 100px;
            background: #1e293b;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .profile-card-banner::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
        }

        .profile-card-avatar-wrapper {
            position: relative;
            width: 88px;
            height: 88px;
            margin: -44px auto 0;
            z-index: 2;
        }

        .profile-card-avatar {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            border: 4px solid #0f172a;
            background: #1e293b;
            background-size: cover;
            background-position: center;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
            overflow: hidden;
        }

        .profile-card-status {
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            right: 6px;
            bottom: 6px;
            border: 2px solid #0f172a;
            background: #22c55e;
            box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
        }

        .profile-card-info {
            padding: 20px 24px 32px;
            text-align: center;
        }

        .profile-card-nick {
            font-family: 'Rajdhani', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .profile-card-bio {
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 24px;
            line-height: 1.5;
            max-width: 240px;
            margin-left: auto;
            margin-right: auto;
            white-space: pre-wrap;
        }

        .profile-card-socials {
            display: flex;
            justify-content: center;
            gap: 16px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .social-icon {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.5;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            filter: grayscale(100%);
        }

        .social-icon:hover {
            opacity: 1;
            transform: translateY(-3px);
            filter: grayscale(0%);
            text-shadow: 0 0 10px currentColor;
        }

        /* RIGHT: Editor Panel */
        .profile-editor-panel {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            min-width: 0;
            height: 100%;
        }

        .profile-editor-title {
            font-family: 'Inter', sans-serif;
            font-size: 20px;
            color: #fff;
            margin-bottom: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Stunning Tabs */
        .profile-tabs {
            display: inline-flex;
            gap: 4px;
            background: rgba(0, 0, 0, 0.2);
            padding: 6px;
            border-radius: 12px;
            margin-bottom: 24px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .profile-tab {
            flex: 1;
            padding: 10px 24px;
            background: transparent;
            border: 1px solid transparent;
            color: #94a3b8;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .profile-tab:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .profile-tab.active {
            background: rgba(139, 92, 246, 0.15);
            color: #c4b5fd;
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
        }

        .profile-tab-content {
            flex: 1;
            overflow-y: auto;
            padding-right: 12px;
        }

        .profile-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .profile-color-picker {
            -webkit-appearance: none;
            appearance: none;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(0, 0, 0, 0.2);
            padding: 0;
            cursor: pointer;
            overflow: hidden;
        }

        .profile-color-picker::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .profile-color-picker::-webkit-color-swatch {
            border: none;
        }

        /* Custom Scrollbar */
        .profile-tab-content::-webkit-scrollbar {
            width: 6px;
        }

        .profile-tab-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
        }

        .profile-tab-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        .profile-tab-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Refined Inputs */
        .profile-section {
            background: transparent;
            padding: 0;
            border: none;
            margin-bottom: 24px;
        }

        .profile-section-title {
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 700;
            color: #6366f1;
            margin-bottom: 12px;
            opacity: 0.9;
            letter-spacing: 0.5px;
        }

        .profile-input {
            width: 100%;
            padding: 14px 16px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
        }

        .profile-input:hover {
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.3);
        }

        .profile-input:focus {
            outline: none;
            border-color: #8b5cf6;
            background: rgba(13, 11, 20, 0.8);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
        }

        .profile-input::placeholder {
            color: #4b5563;
        }

        /* ======================= EFEITOS VISUAIS - REDESIGN PREMIUM ======================= */
        .profile-effects-grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-height: 450px;
            overflow-y: auto;
            padding: 4px 8px 4px 4px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .profile-effects-grid::-webkit-scrollbar {
            width: 8px;
        }

        .profile-effects-grid::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
        }

        .profile-effects-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #8b5cf6, #6d28d9);
            border-radius: 4px;
            border: 2px solid rgba(0, 0, 0, 0.2);
        }

        /* Cabeçalho de cada Tier - MUITO MAIS BONITO */
        .profile-effects-tier-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
            border-radius: 12px;
            margin-top: 8px;
            border-left: 4px solid currentColor;
        }

        .tier-badge {
            font-size: 11px;
            font-weight: 900;
            padding: 5px 12px;
            border-radius: 20px;
            background: currentColor;
            color: #0d0b14 !important;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .tier-name {
            font-size: 15px;
            font-weight: 700;
            opacity: 1;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Grid de efeitos dentro de cada tier */
        .profile-effects-tier-grid {
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
            gap: 12px !important;
            padding: 8px;
        }

        @media (max-width: 600px) {
            .profile-effects-tier-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 10px !important;
            }
        }

        /* Card de efeito - COMPLETAMENTE REDESENHADO */
        .profile-effect-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 16px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100px;
            backdrop-filter: blur(10px);
        }

        .profile-effect-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .profile-effect-card:hover:not(.locked) {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
            transform: translateY(-5px) scale(1.05);
            border-color: rgba(139, 92, 246, 0.5);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
        }

        .profile-effect-card:hover:not(.locked)::before {
            opacity: 1;
        }

        .profile-effect-card.selected {
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.25), rgba(109, 40, 217, 0.15));
            border-color: #8b5cf6;
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), inset 0 0 20px rgba(139, 92, 246, 0.1);
            transform: scale(1.02);
        }

        .profile-effect-card.selected::after {
            content: "✓";
            position: absolute;
            top: 6px;
            right: 6px;
            font-size: 12px;
            color: #fff;
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
            animation: checkPop 0.3s ease-out;
        }

        @keyframes checkPop {
            0% { transform: scale(0); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        .profile-effect-icon {
            font-size: 32px;
            margin-bottom: 10px;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
            line-height: 1;
            transition: transform 0.3s ease;
        }

        .profile-effect-card:hover:not(.locked) .profile-effect-icon {
            transform: scale(1.15);
        }

        .profile-effect-name {
            font-size: 11px;
            color: #e2e8f0;
            font-weight: 700;
            letter-spacing: 0.5px;
            line-height: 1.3;
            text-transform: uppercase;
        }

        .profile-save-area {
            margin-top: auto;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: flex-end;
        }

        .profile-save-btn {
            padding: 12px 32px;
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .profile-save-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
            filter: none;
            box-shadow: none;
        }

        .profile-save-btn.is-small {
            padding: 10px 14px;
            font-size: 12px;
            border-radius: 10px;
            letter-spacing: 0.2px;
        }

        .profile-save-btn.is-secondary {
            background: rgba(55, 65, 81, 0.9);
            box-shadow: none;
        }

        .profile-save-btn.is-danger {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
        }

        .profile-save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
            filter: brightness(110%);
        }

        .profile-save-btn:active {
            transform: translateY(0);
        }

        @keyframes fadeInOverlay {
            from {
                opacity: 0;
                backdrop-filter: blur(0);
            }

            to {
                opacity: 1;
                backdrop-filter: blur(20px);
            }
        }

        /* ======================== 📤 UPLOAD ZONE ======================== */
        .profile-upload-zone {
            border: 2px dashed rgba(139, 92, 246, 0.4);
            border-radius: 16px;
            padding: 28px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(139, 92, 246, 0.05);
            margin-bottom: 8px;
        }

        .profile-upload-zone:hover {
            border-color: #8b5cf6;
            background: rgba(139, 92, 246, 0.12);
            transform: translateY(-2px);
        }

        .profile-upload-zone.dragover {
            border-color: #22c55e;
            background: rgba(34, 197, 94, 0.15);
            border-style: solid;
        }

        .profile-upload-icon {
            font-size: 36px;
            margin-bottom: 10px;
        }

        .profile-upload-text {
            font-size: 13px;
            color: #e2e8f0;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .profile-upload-hint {
            font-size: 11px;
            color: #64748b;
        }

        /* ======================== 🎨 COLOR PALETTE ======================== */
        .profile-color-palette {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .profile-color-palette.compact {
            gap: 8px;
        }

        .profile-color-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #1a1a2e;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .profile-color-btn.small {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            font-size: 12px;
        }

        .profile-color-btn:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .profile-color-btn.selected {
            border-color: #fff;
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
            transform: scale(1.1);
        }

        .profile-color-btn.custom {
            background: linear-gradient(135deg, #ff6b9d, #c44dff, #6366f1, #22d3ee);
            background-size: 300% 300%;
            animation: gradientShift 3s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .profile-color-custom {
            position: relative;
        }

        .profile-color-picker-hidden {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            pointer-events: none;
        }

        /* ======================== 🔤 FONT GRID ======================== */
        .profile-font-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .profile-font-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 14px 18px;
            background: rgba(0, 0, 0, 0.25);
            border: 2px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 90px;
        }

        .profile-font-btn:hover {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.4);
            transform: translateY(-2px);
        }

        .profile-font-btn.selected {
            background: rgba(139, 92, 246, 0.2);
            border-color: #8b5cf6;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
        }

        .profile-font-preview {
            font-size: 22px;
            color: #fff;
            font-weight: 600;
        }

        .profile-font-name {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 500;
        }

        /* ======================== ✨ EFFECTS WITH TIERS ======================== */
        .profile-effects-tier-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 20px 0 12px 0;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .profile-effects-tier-header:first-child {
            margin-top: 0;
        }

        .tier-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 6px;
            background: currentColor;
            color: #000 !important;
            letter-spacing: 0.5px;
        }

        /* Grid de efeitos por tier */
        /* Tier-specific styles - CORES VIBRANTES */
        .profile-effect-card.tier-1 {
            border-color: rgba(156, 163, 175, 0.3);
            background: linear-gradient(145deg, rgba(156, 163, 175, 0.08), rgba(156, 163, 175, 0.02));
        }
        .profile-effect-card.tier-2 {
            border-color: rgba(96, 165, 250, 0.35);
            background: linear-gradient(145deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.03));
        }
        .profile-effect-card.tier-3 {
            border-color: rgba(167, 139, 250, 0.4);
            background: linear-gradient(145deg, rgba(167, 139, 250, 0.12), rgba(167, 139, 250, 0.04));
        }
        .profile-effect-card.tier-4 {
            border-color: rgba(244, 114, 182, 0.45);
            background: linear-gradient(145deg, rgba(244, 114, 182, 0.12), rgba(244, 114, 182, 0.04));
        }
        .profile-effect-card.tier-5 {
            border-color: rgba(251, 191, 36, 0.5);
            background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
            animation: legendaryGlow 3s ease-in-out infinite;
        }

        @keyframes legendaryGlow {
            0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.2); }
            50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.4); }
        }

        /* Tier-specific selected glow - MAIS INTENSO */
        .profile-effect-card.tier-1.selected {
            border-color: #9ca3af;
            box-shadow: 0 0 25px rgba(156, 163, 175, 0.5), inset 0 0 15px rgba(156, 163, 175, 0.1);
        }
        .profile-effect-card.tier-2.selected {
            border-color: #60a5fa;
            box-shadow: 0 0 25px rgba(96, 165, 250, 0.5), inset 0 0 15px rgba(96, 165, 250, 0.1);
        }
        .profile-effect-card.tier-3.selected {
            border-color: #a78bfa;
            box-shadow: 0 0 25px rgba(167, 139, 250, 0.5), inset 0 0 15px rgba(167, 139, 250, 0.1);
        }
        .profile-effect-card.tier-4.selected {
            border-color: #f472b6;
            box-shadow: 0 0 25px rgba(244, 114, 182, 0.5), inset 0 0 15px rgba(244, 114, 182, 0.1);
        }
        .profile-effect-card.tier-5.selected {
            border-color: #fbbf24;
            box-shadow: 0 0 35px rgba(251, 191, 36, 0.6), inset 0 0 20px rgba(251, 191, 36, 0.15);
            animation: none;
        }

        /* Lock icon - REDESENHADO */
        .profile-effect-lock {
            position: absolute;
            top: 6px;
            left: 6px;
            font-size: 14px;
            opacity: 1;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
            padding: 4px 6px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        /* Lock info badge (Nv. X ou Loja) */
        .profile-effect-lock-info {
            font-size: 8px;
            font-weight: 800;
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 3px 8px;
            border-radius: 6px;
            display: inline-block;
        }

        .profile-effect-lock-info.level {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.2);
            border: 1px solid rgba(96, 165, 250, 0.3);
        }

        .profile-effect-lock-info.shop {
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.2);
            border: 1px solid rgba(251, 191, 36, 0.3);
        }

        /* Locked card styling */
        .profile-effect-card.locked {
            opacity: 0.6;
            cursor: not-allowed;
            filter: grayscale(40%) brightness(0.8);
        }

        .profile-effect-card.locked::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
            border-radius: 14px;
            pointer-events: none;
        }

        .profile-effect-card.locked:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.04);
            filter: grayscale(30%) brightness(0.9);
        }

        /* Info de desbloqueio - MUITO MAIS VISÍVEL */
        .profile-effect-lock-info {
            position: absolute;
            bottom: 6px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 9px;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .profile-effect-lock-info.level {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: #fff;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
        }

        .profile-effect-lock-info.shop {
            background: linear-gradient(135deg, #fbbf24, #d97706);
            color: #000;
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
        }

        .profile-section-subtitle {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 14px;
            margin-top: -8px;
        }

        /* ======================== 🎨 IDENTITY EDITOR (REWORK) ======================== */
        .identity-editor {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Live Preview no topo */
        .id-live-preview {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .id-preview-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #94a3b8;
            margin-bottom: 10px;
        }

        .id-preview-nick {
            font-size: 28px;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        /* Seções colapsáveis */
        .id-section {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            overflow: hidden;
        }

        .id-section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.2s;
            user-select: none;
        }

        .id-section-header:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .id-section-icon {
            font-size: 18px;
        }

        .id-section-title {
            flex: 1;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }

        .id-section-toggle {
            font-size: 10px;
            color: #64748b;
            transition: transform 0.3s;
        }

        .id-section-content {
            padding: 0 16px 16px;
            transition: all 0.3s ease;
        }

        .id-section-content.collapsed {
            display: none;
        }

        /* Cores */
        .id-color-category {
            margin-bottom: 12px;
        }

        .id-color-category-name {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #64748b;
            margin-bottom: 8px;
        }

        .id-color-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .id-color-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 2px solid transparent;
            background: var(--btn-color);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .id-color-btn:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .id-color-btn.active {
            border-color: #fff;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5), 0 0 20px var(--btn-color);
            transform: scale(1.1);
        }

        .id-color-btn.active::after {
            content: "✓";
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        }

        .id-color-custom {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .id-color-custom input[type="color"] {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            background: transparent;
        }

        .id-color-custom label {
            font-size: 12px;
            color: #94a3b8;
        }

        /* Fontes */
        .id-font-category {
            margin-bottom: 14px;
        }

        .id-font-category-name {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #64748b;
            margin-bottom: 8px;
        }

        .id-font-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .id-font-btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.3);
            color: #fff;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .id-font-btn:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: rgba(139, 92, 246, 0.4);
            transform: translateY(-2px);
        }

        .id-font-btn.active {
            background: rgba(139, 92, 246, 0.3);
            border-color: #8b5cf6;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
        }

        /* Efeitos */
        .id-effects-info {
            font-size: 11px;
            color: #64748b;
            margin-bottom: 12px;
            text-align: center;
        }

        .id-effects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
            gap: 10px;
        }

        .id-effect-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 12px 8px;
            border-radius: 12px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.25);
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
        }

        .id-effect-btn:hover:not(.locked) {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.4);
            transform: translateY(-3px);
        }

        .id-effect-btn.active {
            background: rgba(139, 92, 246, 0.25);
            border-color: #8b5cf6;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
        }

        .id-effect-btn.locked {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .id-effect-btn.locked:hover {
            transform: none;
        }

        .id-effect-icon {
            font-size: 22px;
        }

        .id-effect-name {
            font-size: 10px;
            color: #94a3b8;
            font-weight: 500;
        }

        .id-effect-lock {
            position: absolute;
            top: 4px;
            right: 4px;
            font-size: 10px;
        }

        /* Tier colors para efeitos */
        .id-effect-btn.tier-1 { border-color: rgba(156, 163, 175, 0.2); }
        .id-effect-btn.tier-2 { border-color: rgba(96, 165, 250, 0.25); }
        .id-effect-btn.tier-3 { border-color: rgba(167, 139, 250, 0.3); }
        .id-effect-btn.tier-4 { border-color: rgba(244, 114, 182, 0.35); }
        .id-effect-btn.tier-5 { border-color: rgba(251, 191, 36, 0.4); }

        .id-effect-btn.tier-5:not(.locked) {
            animation: legendaryEffectGlow 3s ease-in-out infinite;
        }

        @keyframes legendaryEffectGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
            50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
        }

        /* Mobile responsive */
        @media (max-width: 480px) {
            .id-live-preview {
                padding: 14px;
            }
            .id-preview-nick {
                font-size: 22px;
            }
            .id-color-btn {
                width: 32px;
                height: 32px;
            }
            .id-font-btn {
                padding: 6px 10px;
                font-size: 11px;
            }
            .id-effects-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* ======================== 🔥 NICK EFFECT ANIMATIONS ======================== */
        /* Tier 1 - Básicos */
        .effect-glow { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }
        .effect-shadow { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 4px 4px 8px rgba(0, 0, 0, 0.5); }
        .effect-outline { -webkit-text-stroke: 1px currentColor; text-shadow: 0 0 2px currentColor; }

        /* Tier 2 - Intermediários */
        .effect-pulse { animation: effectPulse 2s ease-in-out infinite; }
        @keyframes effectPulse {
            0%, 100% { opacity: 1; text-shadow: 0 0 5px currentColor; }
            50% { opacity: 0.7; text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
        }

        .effect-neon {
            text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px currentColor, 0 0 40px currentColor, 0 0 80px currentColor;
            animation: effectNeon 1.5s ease-in-out infinite alternate;
        }
        @keyframes effectNeon {
            from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px currentColor, 0 0 40px currentColor; }
            to { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px currentColor, 0 0 80px currentColor; }
        }

        .effect-gradient {
            background: linear-gradient(90deg, #ff6b9d, #c44dff, #6366f1, #22d3ee, #ff6b9d);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectGradient 3s linear infinite;
        }
        @keyframes effectGradient { to { background-position: 200% center; } }

        .effect-shimmer {
            background: linear-gradient(90deg, currentColor 40%, #fff 50%, currentColor 60%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectShimmer 2s linear infinite;
        }
        @keyframes effectShimmer { to { background-position: -200% center; } }

        .effect-electric {
            text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff;
            animation: effectElectric 0.1s infinite;
        }
        @keyframes effectElectric {
            0%, 100% { text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff, -1px 0 #00d4ff; }
            50% { text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 1px 0 #fff; }
        }

        /* Tier 3 - Avançados */
        .effect-rainbow {
            background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000);
            background-size: 400% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectRainbow 3s linear infinite;
        }
        @keyframes effectRainbow { to { background-position: 400% center; } }

        .effect-fire {
            background: linear-gradient(180deg, #ff0000 0%, #ff7700 30%, #ffff00 60%, #fff 100%);
            background-size: 100% 200%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectFire 0.8s ease-in-out infinite alternate;
            filter: drop-shadow(0 0 5px #ff5500);
        }
        @keyframes effectFire {
            from { background-position: 0 0; }
            to { background-position: 0 -50%; }
        }

        .effect-ice {
            color: #a5f3fc !important;
            text-shadow: 0 0 10px #22d3ee, 0 0 20px #06b6d4, 0 0 30px #0891b2;
            animation: effectIce 2s ease-in-out infinite;
        }
        @keyframes effectIce {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.3) hue-rotate(10deg); }
        }

        .effect-toxic {
            color: #22c55e !important;
            text-shadow: 0 0 10px #22c55e, 0 0 20px #16a34a, 0 0 30px #15803d;
            animation: effectToxic 1s ease-in-out infinite;
        }
        @keyframes effectToxic {
            0%, 100% { text-shadow: 0 0 10px #22c55e, 0 0 20px #16a34a; }
            50% { text-shadow: 0 0 20px #4ade80, 0 0 40px #22c55e, 0 0 60px #16a34a; }
        }

        .effect-glitch {
            animation: effectGlitch 0.5s infinite;
            position: relative;
        }
        @keyframes effectGlitch {
            0%, 100% { text-shadow: 2px 0 #ff0000, -2px 0 #00ffff; transform: translate(0); }
            20% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffff; transform: translate(-1px, 1px); }
            40% { text-shadow: 2px 0 #ff0000, -2px 0 #00ffff; transform: translate(1px, -1px); }
            60% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffff; transform: translate(-1px, -1px); }
            80% { text-shadow: 2px 0 #ff0000, -2px 0 #00ffff; transform: translate(1px, 1px); }
        }

        /* Tier 4 - Épicos */
        .effect-plasma {
            background: linear-gradient(90deg, #a855f7, #ec4899, #8b5cf6, #d946ef, #a855f7);
            background-size: 300% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectPlasma 2s linear infinite;
            filter: drop-shadow(0 0 8px #a855f7);
        }
        @keyframes effectPlasma { to { background-position: 300% center; } }

        .effect-lightning {
            animation: effectLightning 0.15s infinite;
            text-shadow: 0 0 10px #fbbf24, 0 0 20px #f59e0b;
        }
        @keyframes effectLightning {
            0%, 90%, 100% { opacity: 1; text-shadow: 0 0 10px #fbbf24, 0 0 20px #f59e0b; }
            95% { opacity: 0.8; text-shadow: 0 0 30px #fff, 0 0 60px #fbbf24; }
        }

        .effect-void {
            color: #1e1b4b !important;
            text-shadow: 0 0 20px #4c1d95, 0 0 40px #5b21b6, 0 0 60px #6d28d9;
            animation: effectVoid 3s ease-in-out infinite;
        }
        @keyframes effectVoid {
            0%, 100% { filter: brightness(0.8); }
            50% { filter: brightness(1.2) hue-rotate(-20deg); }
        }

        .effect-matrix {
            color: #22c55e !important;
            text-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e;
            animation: effectMatrix 0.1s steps(2) infinite;
        }
        @keyframes effectMatrix {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.85; }
        }

        .effect-sakura {
            color: #fda4af !important;
            text-shadow: 0 0 10px #fb7185, 0 0 20px #f472b6;
            animation: effectSakura 3s ease-in-out infinite;
        }
        @keyframes effectSakura {
            0%, 100% { filter: hue-rotate(0deg); }
            50% { filter: hue-rotate(15deg) brightness(1.1); }
        }

        /* Tier 5 - Lendários */
        .effect-inferno {
            background: linear-gradient(180deg, #450a0a 0%, #dc2626 30%, #f97316 60%, #fbbf24 100%);
            background-size: 100% 300%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectInferno 1s ease-in-out infinite alternate;
            filter: drop-shadow(0 0 10px #dc2626) drop-shadow(0 0 20px #f97316);
        }
        @keyframes effectInferno {
            from { background-position: 0 0; }
            to { background-position: 0 -100%; }
        }

        .effect-celestial {
            background: linear-gradient(135deg, #fef3c7, #fde68a, #fcd34d, #fbbf24, #fef3c7);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectCelestial 4s ease infinite;
            filter: drop-shadow(0 0 15px #fbbf24) drop-shadow(0 0 30px #fcd34d);
        }
        @keyframes effectCelestial {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .effect-cosmic {
            background: linear-gradient(90deg, #1e1b4b, #312e81, #4338ca, #6366f1, #818cf8, #4338ca, #1e1b4b);
            background-size: 400% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectCosmic 5s linear infinite;
            filter: drop-shadow(0 0 10px #6366f1);
        }
        @keyframes effectCosmic { to { background-position: 400% center; } }

        .effect-dragon {
            background: linear-gradient(135deg, #15803d, #16a34a, #22c55e, #fbbf24, #ef4444, #22c55e, #15803d);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectDragon 3s ease infinite;
            filter: drop-shadow(0 0 8px #22c55e) drop-shadow(0 0 15px #16a34a);
        }
        @keyframes effectDragon {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .effect-legendary {
            background: linear-gradient(90deg, #fbbf24, #f59e0b, #fcd34d, #fff, #fcd34d, #f59e0b, #fbbf24);
            background-size: 300% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: effectLegendary 2s linear infinite;
            filter: drop-shadow(0 0 15px #fbbf24) drop-shadow(0 0 30px #f59e0b) drop-shadow(0 0 45px #fcd34d);
        }
        @keyframes effectLegendary { to { background-position: 300% center; } }

        /* ======================== 📝 BIO EDITOR ======================== */
        .profile-bio-editor {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            overflow: hidden;
        }

        .profile-bio-textarea {
            border: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            resize: vertical;
            min-height: 100px;
        }

        .profile-bio-footer {
            display: flex;
            justify-content: flex-end;
            padding: 8px 14px;
            background: rgba(0, 0, 0, 0.15);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .profile-bio-counter {
            font-size: 11px;
            color: #64748b;
            font-weight: 500;
        }

        .profile-select-modern {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            padding-right: 40px;
        }

        /* ======================== 🔗 SOCIAL CARDS (NEW) ======================== */
        .profile-social-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .profile-social-card {
            background: var(--social-bg, rgba(0, 0, 0, 0.2));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .profile-social-card:hover {
            border-color: var(--social-color, rgba(255, 255, 255, 0.2));
            transform: translateY(-2px);
        }

        .profile-social-card.connected {
            border-color: rgba(34, 197, 94, 0.4);
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
        }

        .profile-social-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .profile-social-card-icon {
            font-size: 28px;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--social-bg, rgba(255, 255, 255, 0.05));
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .profile-social-card-info {
            flex: 1;
        }

        .profile-social-card-name {
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }

        .profile-social-card-status {
            font-size: 11px;
        }

        .status-connected {
            color: #22c55e;
            font-weight: 600;
        }

        .status-disconnected {
            color: #64748b;
        }

        .profile-social-card-desc {
            font-size: 12px;
            color: #94a3b8;
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .profile-social-card-connected {
            margin-top: 10px;
        }

        .profile-social-card-link {
            font-size: 11px;
            color: #64748b;
            background: rgba(0, 0, 0, 0.2);
            padding: 8px 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            word-break: break-all;
        }

        .profile-social-card-actions {
            display: flex;
            gap: 8px;
        }

        .profile-social-btn {
            flex: 1;
            padding: 10px 14px;
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .profile-social-btn.connect {
            background: var(--social-color, #8b5cf6);
            color: #fff;
            width: 100%;
        }

        .profile-social-btn.connect:hover {
            filter: brightness(110%);
            transform: translateY(-1px);
        }

        .profile-social-btn.visit {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .profile-social-btn.visit:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .profile-social-btn.disconnect {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .profile-social-btn.disconnect:hover {
            background: rgba(239, 68, 68, 0.25);
        }

        /* ======================== 🔗 SOCIAL CONNECT MODAL ======================== */
        .social-connect-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20000;
            padding: 20px;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .social-connect-modal {
            background: linear-gradient(145deg, rgba(30, 25, 50, 0.98), rgba(20, 15, 35, 0.98));
            border: 1px solid var(--social-color, rgba(139, 92, 246, 0.3));
            border-radius: 24px;
            padding: 0;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.1);
            position: relative;
            overflow: hidden;
            animation: modalSlideUp 0.3s ease;
        }

        @keyframes modalSlideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .social-connect-modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--social-color, linear-gradient(90deg, #8b5cf6, #6366f1));
        }

        .social-connect-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .social-connect-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .social-connect-modal-header {
            padding: 28px 24px 20px;
            text-align: center;
        }

        .social-connect-modal-icon {
            font-size: 48px;
            margin-bottom: 14px;
        }

        .social-connect-modal-header h3 {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            margin: 0;
        }

        .social-connect-modal-body {
            padding: 0 24px 24px;
        }

        .social-connect-modal-desc {
            font-size: 13px;
            color: #94a3b8;
            text-align: center;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .social-connect-input-group {
            margin-bottom: 10px;
        }

        .social-connect-input {
            width: 100%;
            padding: 16px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            color: #fff;
            font-size: 14px;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .social-connect-input:focus {
            outline: none;
            border-color: var(--social-color, #8b5cf6);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
        }

        .social-connect-input::placeholder {
            color: #4b5563;
        }

        .social-connect-input-hint {
            font-size: 11px;
            color: #64748b;
            margin-top: 8px;
            padding-left: 4px;
        }

        .social-connect-modal-footer {
            display: flex;
            gap: 12px;
            padding: 20px 24px;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .social-connect-btn {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .social-connect-btn.cancel {
            background: rgba(255, 255, 255, 0.08);
            color: #94a3b8;
        }

        .social-connect-btn.cancel:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .social-connect-btn.confirm {
            background: var(--social-color, linear-gradient(135deg, #8b5cf6, #6366f1));
            color: #fff;
        }

        .social-connect-btn.confirm:hover {
            filter: brightness(110%);
            transform: translateY(-1px);
        }

        @media (max-width: 640px) {
            .profile-social-grid {
                grid-template-columns: 1fr;
            }

            .profile-color-palette {
                justify-content: center;
            }

            .profile-font-grid {
                justify-content: center;
            }
        }

        /* Old Social Grid Polish - keeping for compatibility */
        .profile-social-item {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .profile-social-item {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 8px;
            transition: border-color 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .profile-social-item:focus-within {
            border-color: #8b5cf6;
            background: rgba(0, 0, 0, 0.3);
        }

        .profile-social-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.9);
            flex: 0 0 auto;
        }

        .profile-social-input {
            background: transparent;
            border: none;
            padding: 0 8px;
            font-size: 13px;
            color: #fff;
            width: 100%;
        }

        .profile-social-input:focus {
            box-shadow: none;
            background: transparent;
        }

        .profile-media-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }

        .profile-media-card {
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 14px;
        }

        .profile-media-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .profile-media-title {
            color: #fff;
            font-weight: 800;
            font-size: 13px;
            letter-spacing: 0.3px;
        }

        .profile-media-meta {
            color: #9ca3af;
            font-size: 11px;
            font-weight: 600;
        }

        .profile-media-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .profile-media-url {
            margin-bottom: 12px;
        }

        .profile-media-subtitle {
            color: #9ca3af;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
        }

        .profile-shape-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .profile-social-connect-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .profile-social-connect-item {
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 12px;
        }

        .profile-social-connect-item.is-connected {
            border-color: rgba(34, 197, 94, 0.25);
            box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
        }

        .profile-social-connect-top {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .profile-social-connect-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 220px;
        }

        .profile-social-connect-icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 18px;
        }

        .profile-social-connect-name {
            color: #fff;
            font-weight: 800;
            font-size: 13px;
        }

        .profile-social-connect-status {
            color: #9ca3af;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .profile-social-connect-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .profile-social-connect-inputrow {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .profile-social-connect-hint {
            color: #9ca3af;
            font-size: 11px;
        }

        /* ======================== PROFILE VIEW SOCIAL LINKS ======================== */
        .profile-view-socials-section {
            margin-top: 16px;
            padding: 14px;
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
        }

        .profile-view-socials-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
        }

        .profile-view-socials-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 700;
            color: #c4b5fd;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 12px;
        }

        .profile-view-socials-icon {
            font-size: 14px;
            opacity: 0.9;
        }

        .profile-view-socials-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .profile-view-social-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: #e2e8f0;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .profile-view-social-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--social-hover-bg, rgba(139, 92, 246, 0.15));
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .profile-view-social-link:hover {
            border-color: var(--social-color, #8b5cf6);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--social-hover-bg, rgba(139, 92, 246, 0.2));
        }

        .profile-view-social-link:hover::before {
            opacity: 1;
        }

        .profile-view-social-link:hover .profile-view-social-icon {
            transform: scale(1.2);
        }

        .profile-view-social-link:hover .profile-view-social-name {
            color: var(--social-color, #c4b5fd);
        }

        .profile-view-social-icon {
            font-size: 16px;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            z-index: 1;
        }

        .profile-view-social-name {
            font-weight: 700;
            letter-spacing: 0.3px;
            position: relative;
            z-index: 1;
            transition: color 0.25s ease;
        }

        /* Special styling for specific social networks */
        .profile-view-social-link[data-social="socialDiscord"]:hover {
            --social-color: #5865F2;
            --social-hover-bg: rgba(88, 101, 242, 0.2);
        }

        .profile-view-social-link[data-social="socialInstagram"]:hover {
            --social-color: #E4405F;
            --social-hover-bg: rgba(228, 64, 95, 0.2);
        }

        .profile-view-social-link[data-social="socialTwitter"]:hover {
            --social-color: #1DA1F2;
            --social-hover-bg: rgba(29, 161, 242, 0.2);
        }

        .profile-view-social-link[data-social="socialTiktok"]:hover {
            --social-color: #00f2ea;
            --social-hover-bg: rgba(0, 242, 234, 0.2);
        }

        .profile-view-social-link[data-social="socialReddit"]:hover {
            --social-color: #FF4500;
            --social-hover-bg: rgba(255, 69, 0, 0.2);
        }

        .profile-view-social-link[data-social="socialXbox"]:hover {
            --social-color: #107C10;
            --social-hover-bg: rgba(16, 124, 16, 0.2);
        }

        /* Animation for social links appearance */
        @keyframes socialLinkAppear {
            from {
                opacity: 0;
                transform: translateY(8px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .profile-view-social-link {
            animation: socialLinkAppear 0.3s ease forwards;
        }

        .profile-view-social-link:nth-child(1) { animation-delay: 0.05s; }
        .profile-view-social-link:nth-child(2) { animation-delay: 0.1s; }
        .profile-view-social-link:nth-child(3) { animation-delay: 0.15s; }
        .profile-view-social-link:nth-child(4) { animation-delay: 0.2s; }
        .profile-view-social-link:nth-child(5) { animation-delay: 0.25s; }
        .profile-view-social-link:nth-child(6) { animation-delay: 0.3s; }

        @media (max-width: 640px) {
            .profile-media-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .profile-modal-container {
                flex-direction: column;
                max-height: 95vh;
                overflow-y: auto;
            }

            .profile-preview-panel {
                flex: none;
                max-width: none;
                padding-right: 0;
                padding-bottom: 20px;
                border-right: none;
                border-bottom: 1px solid var(--glass-border);
            }

            .profile-tabs {
                flex-wrap: wrap;
            }

            .profile-tab {
                flex: 0 0 calc(50% - 2px);
            }

            .profile-social-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ======================== 📢 FLOATING EVENT CARDS SYSTEM ======================== */
        #event-cards-container {
            position: fixed;
            z-index: 10000;
            pointer-events: none;
        }

        /* Mini indicators no canto superior direito */
        #event-mini-indicators {
            position: fixed;
            top: 12px;
            right: 70px;
            display: flex;
            gap: 8px;
            pointer-events: auto;
            z-index: 9999;
        }

        .event-mini-pill {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(20, 20, 35, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            cursor: pointer;
            transition: all 0.3s ease;
            animation: pillSlideIn 0.4s ease;
        }

        @keyframes pillSlideIn {
            from { transform: translateX(30px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .event-mini-pill:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .event-mini-pill.bonus-pill {
            border-color: rgba(255, 215, 0, 0.4);
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(20, 20, 35, 0.95));
        }

        .event-mini-pill.bonus-pill:hover {
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        .event-mini-pill.season-pill {
            border-color: rgba(167, 139, 250, 0.4);
            background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(20, 20, 35, 0.95));
        }

        .event-mini-pill.season-pill.warning {
            border-color: rgba(251, 191, 36, 0.5);
            animation: pillSlideIn 0.4s ease, pillWarning 2s ease-in-out infinite;
        }

        .event-mini-pill.season-pill.urgent {
            border-color: rgba(239, 68, 68, 0.6);
            animation: pillSlideIn 0.4s ease, pillUrgent 1s ease-in-out infinite;
        }

        @keyframes pillWarning {
            0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
            50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
        }

        @keyframes pillUrgent {
            0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
        }

        .pill-icon {
            font-size: 14px;
        }

        .pill-text {
            font-size: 12px;
            font-weight: 700;
            color: #fff;
        }

        .pill-timer {
            font-size: 10px;
            color: #94a3b8;
            font-family: 'JetBrains Mono', 'Courier New', monospace;
        }

        /* Notification Cards Container */
        #event-notification-cards {
            position: fixed;
            top: 80px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            pointer-events: auto;
            max-width: 360px;
        }

        /* Event Notification Card */
        .event-notification-card {
            position: relative;
            background: linear-gradient(145deg, rgba(25, 25, 45, 0.98), rgba(15, 15, 30, 0.98));
            border-radius: 20px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            transform: translateX(120%) scale(0.9);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .event-notification-card.visible {
            transform: translateX(0) scale(1);
            opacity: 1;
        }

        .event-notification-card.closing {
            transform: translateX(120%) scale(0.8);
            opacity: 0;
        }

        /* Close button */
        .event-card-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 28px;
            height: 28px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: #94a3b8;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .event-card-close:hover {
            background: rgba(239, 68, 68, 0.3);
            color: #fff;
            transform: rotate(90deg);
        }

        /* Glow effect */
        .event-card-glow {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            pointer-events: none;
            opacity: 0.6;
        }

        .bonus-glow {
            background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2), transparent 60%);
            animation: bonusGlowPulse 3s ease-in-out infinite;
        }

        .season-glow {
            background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.2), transparent 60%);
            animation: seasonGlowPulse 4s ease-in-out infinite;
        }

        @keyframes bonusGlowPulse {
            0%, 100% { opacity: 0.4; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.1); }
        }

        @keyframes seasonGlowPulse {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.05); }
        }

        /* Card Icon */
        .event-card-icon {
            font-size: 48px;
            position: absolute;
            right: 15px;
            bottom: 15px;
            opacity: 0.15;
            transform: rotate(-15deg);
        }

        .bonus-icon {
            animation: iconBounce 2s ease-in-out infinite;
        }

        @keyframes iconBounce {
            0%, 100% { transform: rotate(-15deg) scale(1); }
            50% { transform: rotate(-10deg) scale(1.1); }
        }

        /* Card Content */
        .event-card-content {
            position: relative;
            z-index: 2;
        }

        .event-card-badge {
            display: inline-block;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1.5px;
            padding: 4px 10px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
            color: #FFD700;
            margin-bottom: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .season-badge {
            background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.1));
            color: #a78bfa;
            border-color: rgba(167, 139, 250, 0.3);
        }

        .event-card-title {
            font-size: 22px;
            font-weight: 800;
            color: #FFD700;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .event-card-multiplier {
            font-size: 28px;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: none;
        }

        .season-title {
            color: #a78bfa;
        }

        .event-card-description {
            font-size: 13px;
            color: #94a3b8;
            line-height: 1.5;
            margin-bottom: 14px;
            max-width: 280px;
        }

        .event-card-timer {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .timer-icon {
            font-size: 16px;
        }

        .timer-text {
            font-size: 12px;
            color: #94a3b8;
        }

        .timer-text strong {
            color: #fff;
            font-weight: 700;
        }

        .season-timer {
            border-color: rgba(167, 139, 250, 0.2);
        }

        /* Bonus Card Specific */
        .bonus-card {
            border-color: rgba(255, 215, 0, 0.25);
        }

        .bonus-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #FFD700, transparent);
        }

        /* Season Card Specific */
        .season-card {
            border-color: rgba(167, 139, 250, 0.25);
        }

        .season-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #a78bfa, transparent);
        }

        .season-card.warning {
            border-color: rgba(251, 191, 36, 0.4);
        }

        .season-card.warning::before {
            background: linear-gradient(90deg, transparent, #fbbf24, transparent);
        }

        .season-card.urgent {
            border-color: rgba(239, 68, 68, 0.5);
            animation: urgentPulse 1.5s ease-in-out infinite;
        }

        .season-card.urgent::before {
            background: linear-gradient(90deg, transparent, #ef4444, transparent);
        }

        @keyframes urgentPulse {
            0%, 100% { box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2); }
            50% { box-shadow: 0 10px 50px rgba(239, 68, 68, 0.4); }
        }

        /* Particles effect (decorative) */
        .event-card-particles {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .bonus-card .event-card-particles::before,
        .bonus-card .event-card-particles::after {
            content: "✨";
            position: absolute;
            font-size: 10px;
            animation: particleFloat 4s ease-in-out infinite;
        }

        .bonus-card .event-card-particles::before {
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .bonus-card .event-card-particles::after {
            top: 60%;
            left: 85%;
            animation-delay: 2s;
        }

        @keyframes particleFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
        }

        /* Mobile Responsive */
        @media (max-width: 600px) {
            #event-mini-indicators {
                top: 8px;
                right: 55px;
                gap: 6px;
            }

            .event-mini-pill {
                padding: 5px 10px;
            }

            .pill-icon {
                font-size: 12px;
            }

            .pill-text {
                font-size: 11px;
            }

            #event-notification-cards {
                top: 60px;
                right: 10px;
                left: 10px;
                max-width: none;
            }

            .event-notification-card {
                padding: 16px;
            }

            .event-card-title {
                font-size: 18px;
            }

            .event-card-multiplier {
                font-size: 22px;
            }

            .event-card-description {
                font-size: 12px;
            }
        }

        /* ======================== 🎉 WELCOME POPUP ======================== */
        #welcome-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #welcome-popup-overlay.visible {
            opacity: 1;
        }

        #welcome-popup-overlay.closing {
            opacity: 0;
        }

        .welcome-popup {
            background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
            border: 2px solid rgba(184, 140, 255, 0.4);
            border-radius: 20px;
            padding: 30px;
            max-width: 450px;
            width: 90%;
            box-shadow:
                0 0 60px rgba(184, 140, 255, 0.3),
                0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s ease;
            text-align: center;
        }

        #welcome-popup-overlay.visible .welcome-popup {
            transform: scale(1) translateY(0);
        }

        .welcome-popup-header {
            margin-bottom: 20px;
        }

        .welcome-popup-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 10px;
            animation: welcomeBounce 2s ease-in-out infinite;
        }

        @keyframes welcomeBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .welcome-popup-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            margin: 0;
            text-shadow: 0 0 20px rgba(184, 140, 255, 0.5);
        }

        .welcome-popup-content {
            text-align: left;
        }

        .welcome-highlight {
            text-align: center;
            font-size: 16px;
            color: #FFD93D;
            margin-bottom: 20px;
        }

        .welcome-features {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .welcome-feature {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.05);
            padding: 12px 15px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
            color: #E5D7FF;
        }

        .welcome-feature-icon {
            font-size: 20px;
            flex-shrink: 0;
        }

        .welcome-warning {
            background: rgba(255, 193, 7, 0.15);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 12px;
            padding: 15px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 20px;
        }

        .welcome-warning-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .welcome-warning p {
            margin: 0;
            font-size: 13px;
            color: #FFD93D;
            line-height: 1.5;
        }

        .welcome-contact {
            background: rgba(88, 101, 242, 0.15);
            border: 1px solid rgba(88, 101, 242, 0.3);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            margin-bottom: 20px;
        }

        .welcome-contact p {
            margin: 0 0 10px 0;
            font-size: 13px;
            color: #a0a0a0;
        }

        .welcome-discord {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #5865F2;
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
        }

        .discord-icon {
            font-size: 18px;
        }

        .welcome-popup-btn {
            width: 100%;
            padding: 15px 30px;
            background: linear-gradient(135deg, #B88CFF 0%, #6C5CE7 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(184, 140, 255, 0.4);
        }

        .welcome-popup-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(184, 140, 255, 0.6);
        }

        .welcome-popup-btn:active {
            transform: translateY(0);
        }

        @media (max-width: 480px) {
            .welcome-popup {
                padding: 20px;
            }

            .welcome-popup-header h2 {
                font-size: 20px;
            }

            .welcome-feature {
                font-size: 13px;
                padding: 10px 12px;
            }
        }
