        @import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

        :root {
            --current-glow-soft: rgba(0, 255, 170, 0.05);
            --current-accent-soft: rgba(48, 177, 102, 0.03);
            --primary-glow: #00ffaa;
            --primary-bg: rgba(0, 255, 170, 0.15);
            --error-glow: #ff4757;
            --error-bg: rgba(255, 71, 87, 0.15);
            --panel-bg: rgba(15, 15, 15, 0.582);
            --text-main: #ffffff;
            --text-dim: rgba(255, 255, 255, 0.6);
            --accent-purple: #30b166;
        }

        html {
            background-color: #000205;
            height: 100%;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        html::-webkit-scrollbar {
            display: none;
        }

        body.is-connected {
            --active-glow: var(--current-glow-soft);
            --active-accent: var(--current-accent-soft);
        }

        body.is-disconnected {
            --active-glow: rgba(255, 71, 87, 0.1);
            --active-accent: rgba(255, 71, 87, 0.05);
        }

        body {
            background-color: #000205;
            background-image:
                radial-gradient(circle at 50% -20%, var(--active-glow) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, var(--active-accent) 0%, transparent 40%),
                radial-gradient(1px 1px at 10% 10%, #fff, rgba(0, 0, 0, 0)),
                radial-gradient(1.5px 1.5px at 20% 80%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0)),
                radial-gradient(1px 1px at 90% 30%, #fff, rgba(0, 0, 0, 0));
            background-size: 100% 100%, 100% 100%, 250px 250px, 400px 400px, 300px 300px;
            background-attachment: fixed;
            margin: 0;
            padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
            min-height: 100dvh;
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: #ffffff;

            display: flex;
            justify-content: center;
            align-items: flex-start;
            /* <-- EL FIX: Evita que el contenido crezca hacia "arriba" de la pantalla */

            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .wrapper {
            width: 100%;
            max-width: 420px;
            padding: 20px;
            padding-top: max(20px, env(safe-area-inset-top));
            padding-bottom: max(20px, env(safe-area-inset-bottom));
            display: flex;
            flex-direction: column;
            gap: 20px;
            box-sizing: border-box;
            margin: auto;
            /* <-- EL FIX 2: Lo mantendrá centrado siempre que no desborde la pantalla */
        }

        body::-webkit-scrollbar {
            display: none;
        }

        .header-title-container {
            text-align: center;
            margin-bottom: 5px;
        }

        .main-page-title {
            font-family: "Audiowide", sans-serif;
            font-style: normal;
            font-size: 40px;
            font-weight: 800;
            margin: 0;
            letter-spacing: -1px;
            background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            /* Propiedad estándar */
            -webkit-text-fill-color: transparent;
            color: transparent;
            /* Propiedad estándar */
            display: inline-block;
            /* Ayuda a renderizar el degradado correctamente en algunos motores */
        }

        .main-page-subtitle {
            font-size: 10px;
            font-weight: 400;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-top: 5px;
        }

        .plasma-node {
            position: relative;
            background: var(--panel-bg);
            padding: 12px 22px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }

        .plasma-node::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 10% 10%, var(--current-bg, var(--primary-bg)) 0%, transparent 50%);
            opacity: 0.5;
            z-index: -1;
            filter: blur(10px);
            border-radius: 20px;
        }


        .status-orb-container {
            position: relative;
            width: 24px;
            height: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
        }


        .status-orb {
            width: 8px;
            height: 8px;
            background: var(--current-color, var(--primary-glow));
            border-radius: 50%;
            box-shadow: 0 0 15px var(--current-color, var(--primary-glow));
        }

        .ring {
            position: absolute;
            border-radius: 50%;
            border: 1px solid var(--current-color, var(--primary-glow));
            opacity: 0;
            animation: ring-pulse 3s infinite;
        }

        .ring-1 {
            width: 16px;
            height: 16px;
        }

        .ring-2 {
            width: 24px;
            height: 24px;
            animation-delay: 1s;
        }

        @keyframes ring-pulse {
            0% {
                transform: scale(0.5);
                opacity: 0;
            }

            50% {
                opacity: 0.4;
            }

            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

        .core-info {
            display: flex;
            flex-direction: column;
            min-width: 100px;
        }

        .title {
            font-size: 9px;
            font-weight: 200;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--text-dim);
        }

        .status-text {
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
        }

        .section {
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-shadow: 0 0 35px color-mix(in srgb, var(--primary-glow), transparent 60%);
            transition: all 0.3s ease;
            color: var(--primary-glow);
        }

        .v-sep {
            height: 20px;
            width: 1px;
            background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
        }

        .stats-data {
            display: flex;
            gap: 15px;
        }

        .stat {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stat-label {
            font-size: 8px;
            font-weight: 400;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.3);
        }

        .stat-value {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
        }

        .active-state {
            color: whitesmoke;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        }

        .action-box {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            padding: 35px 25px;
            text-align: center;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }


        .action-title {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin: 0;
        }

        .action-subtitle {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.25);
            line-height: 1.5;
            margin: 0;
            padding: 0 10px;
        }

        .btn-continue {
            margin-top: 15px;
            background: var(--current-color, var(--primary-glow));
            color: #000;
            border: none;
            padding: 16px;
            border-radius: 15px;
            font-family: inherit;
            font-weight: 800;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 25px var(--current-glow-soft);
        }

        .btn-continue:active {
            transform: scale(0.97);
        }

        body.is-disconnected .plasma-node {
            --current-color: var(--error-glow);
            --current-bg: var(--error-bg);
        }

        body.is-disconnected .status-text {
            color: var(--error-glow);
            text-shadow: 0 0 15px rgba(185, 53, 53, 0.4);
        }

        body.is-disconnected .active-state {
            color: var(--text-dim) !important;
            text-shadow: none;
            opacity: 0.5;
        }

        body.is-disconnected .ring {
            animation: none;
            opacity: 0.1;
        }

        body.is-disconnected .btn-continue {
            background: #1a1a1a;
            color: #444;
            box-shadow: none;
            cursor: not-allowed;
        }

        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 80px);
            max-width: 400px;
            background: rgba(10, 11, 12, 0.85);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 24px;
            justify-content: space-around;
            align-items: center;
            padding: 12px 10px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            animation: navAppear 0.5s ease forwards;
        }

        @keyframes navAppear {
            from {
                opacity: 0;
                transform: translate(-50%, 20px);
            }

            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex: 1;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-item i,
        .nav-item .nav-icon {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .nav-label {
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .nav-item.active i,
        .nav-item.active .nav-icon {
            color: #ffffff;
            filter: drop-shadow(0 0 8px #ffffff93);
            transform: translateY(-2px);
        }

        .nav-item.active .nav-label {
            color: #ffffff;
            opacity: 1;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        .nav-item.active::after {
            content: '';
            width: 4px;
            height: 4px;
            background: var(--primary-glow);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary-glow);
            margin-top: 2px;
            animation: pulseDot 2s infinite;
        }

        @keyframes pulseDot {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.5);
                opacity: 0.5;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .nav-item:active {
            transform: scale(0.92);
        }

        .tab-content-container {
            flex: 1;
            margin-bottom: 80px;
        }

        .tab-panel {
            display: none;
            animation: panelAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .tab-panel.active {
            display: flex;
            flex-direction: column;
            gap: 15px;
            background: var(--panel-bg);
            border-radius: 20px;
        }

        @keyframes panelAppear {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 10px 15px;
            user-select: none;
            background: var(--panel-bg);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top-right-radius: 20px;
            border-top-left-radius: 20px;
        }

        .collapse-btn {
            width: 28px;
            height: 28px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .section-header:hover .collapse-btn {
            background: rgba(0, 255, 170, 0.1);
            border-color: var(--primary-glow);
            box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
        }

        .toggle-icon {
            font-family: monospace;
            font-size: 18px;
            font-weight: 800;
            color: var(--primary-glow);
            line-height: 1;
            background: var(--panel-bg);
            padding: 5px 10px;
            border-radius: 7px;
        }

        .section-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            overflow: hidden;
            transition: max-height 0.4s ease-out, opacity 0.3s ease;
            max-height: 2000px;
            opacity: 1;
            padding: 10px 0;
        }

        .section-content.collapsed {
            max-height: 0 !important;
            opacity: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            pointer-events: none;
        }

        .section-content:not(.collapsed) {
            overflow: visible;
            padding: 10px 0px;
        }

        .section-title {
            font-size: 14px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
        }

        .section-title::before {
            content: '';
            width: 3px;
            height: 14px;
            background: var(--primary-glow);
            border-radius: 10px;
            box-shadow: 0 0 10px var(--primary-glow);
        }

        .option-row,
        .slider-group {
            padding: 5px 20px;
            border-radius: 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .option-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .option-info .option-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 0.3px;
            margin-bottom: 3px;
        }

        .option-info .option-desc {
            font-size: 10px;
            font-weight: 400;
            color: var(--text-dim);
            opacity: 0.7;
        }

        /* --- Checkbox Estilizado --- */
        input[type="checkbox"] {
            appearance: none;
            width: 50px;
            height: 27px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        input[type="checkbox"]:checked {
            background: var(--primary-bg);
        }

        input[type="checkbox"]::before {
            content: '';
            position: absolute;
            width: 21px;
            height: 21px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            top: 3px;
            left: 3px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        input[type="checkbox"]:checked::before {
            left: 27px;
            background: var(--primary-glow);
            box-shadow: 0 0 10px var(--primary-glow);
        }

        /* --- Sliders --- */
        .slider-group {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }

        input[type="range"] {
            appearance: none;
            width: 100%;
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            outline: none;
            background-image: linear-gradient(var(--primary-glow), var(--primary-glow));
            background-size: 0% 100%;
            background-repeat: no-repeat;
            cursor: pointer;
        }

        input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            height: 18px;
            width: 18px;
            border-radius: 50%;
            background: var(--primary-glow);
            box-shadow: 0 0 25px var(--primary-glow);
            border: 2px solid var(--primary-glow);
            transition: transform 0.1s ease;
        }

        input[type="range"]::-webkit-slider-thumb:active {
            transform: scale(1.2);
        }



        /* --- Dropdown --- */
        .custom-dropdown {
            position: relative;
            user-select: none;
            min-width: 120px;
        }

        .dropdown-trigger {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--primary-glow);
            color: #fff;
            padding: 8px 15px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            background: #0d0e10;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            width: 100%;
            z-index: 2000;
            display: none;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }

        .custom-dropdown.active .dropdown-menu {
            display: block;
        }

        .dropdown-item {
            padding: 10px 15px;
            font-size: 11px;
            font-weight: 700;
            color: #888;
            cursor: pointer;
            transition: all 0.2s;
        }

        .dropdown-item:hover {
            background: var(--current-glow-soft);
            color: var(--primary-glow);
        }

        .dropdown-item.active {
            color: var(--primary-glow);
            background: var(--current-glow-soft);
        }

        .keybind-btn {
            background: var(--panel-bg);
            color: #fff;
            border: 1px solid var(--primary-bg);
            padding: 10px 20px;
            font-size: 10px;
            border-radius: 4px;
            cursor: pointer;
            min-width: 80px;
            transition: all 0.2s;
        }

        .keybind-btn:hover {
            background: var(--active-glow);
        }

        .keybind-btn.listening {
            border-color: var(--primary-glow);
            color: var(--primary-glow);
            background: var(--primary-bg);
            box-shadow: 0 0 10px var(--primary-glow);
            animation: pulse-glow 1.5s infinite;
        }

        @keyframes pulse-glow {
            0% {
                box-shadow: 0 0 5px var(--active-glow);
            }

            50% {
                box-shadow: 0 0 15px var(--active-glow);
            }

            100% {
                box-shadow: 0 0 5px var(--active-glow);
            }
        }

        .players-filter-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5px 15px 5px;
            margin-top: 10px;
        }

        .filter-count {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: 1px;
        }

        .filter-count small {
            color: var(--text-dim);
            font-weight: 400;
        }

        .filter-chips {
            display: flex;
            gap: 8px;
        }

        .chip {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-dim);
            padding: 5px 15px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
        }

        .chip.active {
            background: var(--active-glow);
            color: var(--current-color);
            border-color: var(--primary-bg);
            box-shadow: 0 0 10px var(--current-accent-soft);
        }

        .player-card {
            position: relative;
            background: #0d0d0d;
            border-radius: 14px;
            margin-bottom: 10px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            overflow: hidden;
        }

        .card-glow {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
        }

        .team-enemy .card-glow {
            background: #313131;
            box-shadow: 2px 0 40px #646464;
        }

        .team-green .card-glow {
            background: #00ff41;
            box-shadow: 2px 0 40px #00ff41;
        }

        .card-body {
            padding: 12px 20px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .p-row {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            align-items: center;
        }

        .col-1 {
            text-align: left;
            display: flex;
            justify-content: left;
            align-items: center;
        }

        .col-2 {
            text-align: center;
        }

        .col-3 {
            text-align: right;
        }

        .row-1 .p-name {
            font-size: 14px;
            font-weight: 800;
            color: #fff;
        }

        .online-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #00ff41;
            border-radius: 50%;
            margin-left: 8px;
            box-shadow: 0 0 6px #00ff41;
        }

        .badge-bot {
            background: #ff88001e;
            color: #ff7300;
            font-size: 9px;
            font-weight: 900;
            padding: 5px 7px;
            border-radius: 4px;
            margin-left: 5px;
            vertical-align: middle;
        }

        .row-1 .val {
            font-size: 11px;
            font-weight: 800;
            color: #fff;
        }

        .row-1 small {
            font-size: 9px;
            opacity: 0.4;
            margin: 0 3px;
            font-weight: 700;
        }

        .row-2 {
            font-size: 10px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.4);
        }

        .row-2 .lvl {
            color: #fff;
            margin-left: 5px;
        }

        .hp-wrapper {
            display: flex;
            gap: 8px;
            flex-direction: column;
        }

        .hp-text {
            font-size: 11px;
            color: #fff;
            font-weight: 800;
        }

        .row-3 {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.15);
            margin-top: 2px;
            padding-top: 6px;
            font-family: monospace;
        }

        .p-status {
            background: rgba(255, 255, 255, 0.03);
            padding: 4px 6px;
            border-radius: 3px;
        }

        .p-status.visible {
            color: #4bffa5;
            background: rgba(75, 255, 105, 0.1);
            font-weight: 800;
        }

        .color-preview {
            width: 32px;
            height: 25px;
            border-radius: 3px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
            transition: all 0.2s ease;
            display: inline-block;
            vertical-align: middle;
            background-size: 8px 8px;
            background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
        }

        .color-preview:hover {
            border-color: #fff;
            transform: scale(1.1);
        }

        .IroColorPicker {
            margin: 0 auto;
        }


        #iroPickerContainer.active {
            display: flex;
        }

        .picker-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .picker-overlay.active {
            display: flex;
        }

        #iroPickerContainer {
            position: relative;
            background: var(--panel-bg);
            padding: 25px 20px 20px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            gap: 15px;
            animation: pickerShow 0.2s ease-out;
        }

        .close-picker {
            position: absolute;
            top: -6px;
            right: 5px;
            color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            font-size: 28px;
            font-weight: bold;
            transition: color 0.2s;
        }

        .close-picker:hover {
            color: #fff;
        }

        @keyframes pickerShow {
            from {
                transform: scale(0.9);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .items-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            width: 100%;
            margin-top: 5px;
        }

        .grid-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            padding: 6px 10px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

        .grid-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .grid-item span {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .grid-item input[type="checkbox"].item-check {
            all: unset;
            appearance: none;
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border: 1px solid var(--primary-glow);
            border-radius: 3px;
            background: rgba(0, 0, 0, 0.3);
            cursor: pointer;
            position: relative;
            transition: all 0.2s;
            display: inline-block;
            box-sizing: border-box;
        }

        .grid-item input[type="checkbox"].item-check::before,
        .grid-item input[type="checkbox"].item-check::after {
            content: none !important;
        }

        .grid-item input[type="checkbox"].item-check:checked {
            background: var(--primary-glow);
            box-shadow: 0 0 8px var(--primary-glow);
        }

        .grid-item input[type="checkbox"].item-check:checked::after {
            content: '✓' !important;
            display: block !important;
            position: absolute;
            color: #000;
            font-size: 10px;
            font-weight: bold;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .grid-item input[type="checkbox"].item-check:checked+span {
            color: #fff;
        }

        #toast-container {
            position: fixed;
            bottom: 99px;
            z-index: 9999;
            gap: 10px;
            pointer-events: none;

        }

        .toast {
            background: rgba(5, 5, 5, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-left: 3px solid var(--primary-color, #00ffaa);
            color: white;
            padding: 10px 16px;
            border-radius: 6px;
            min-width: 180px;
            backdrop-filter: blur(10px);
            animation: slideIn 0.3s ease-out forwards;
            pointer-events: auto;
            margin-bottom: 10px;
        }

        .toast.error {
            border-left-color: #ff4757;
        }

        .toast.warning {
            border-left-color: #ffcc00;
        }

        .toast-content {
            display: flex;
            flex-direction: column;
            text-align: left;
            justify-content: center;
        }

        .toast-label {
            font-size: 8px;
            text-transform: uppercase;
            letter-spacing: 2.0px;
            opacity: 0.4;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .toast-message {
            font-size: 11px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
            text-transform: uppercase;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }


        .loot-grid {
            background: var(--panel-bg);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 12px;
            margin-top: 10px;
            max-height: 650px;
            overflow-y: auto;
            width: 100%;
            box-sizing: border-box;
        }

        .loot-cat-header {
            color: var(--primary-glow);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            font-family: -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
            letter-spacing: 1px;
            padding: 15px 5px 8px 5px;
            opacity: 0.8;
        }

        .loot-cat-header:first-child {
            padding-top: 5px;
        }

        .loot-table {
            border-collapse: collapse;
            font-family: -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
        }

        .loot-table tr {
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            transition: background 0.2s ease;
            font-family: -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
        }

        .loot-table tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .loot-table tr:last-child {
            border-bottom: none;
        }

        .item-name {
            font-family: 'Segoe UI', Roboto, sans-serif;
            letter-spacing: 0.3px;
        }

        .loot-grid::-webkit-scrollbar {
            width: 4px;
        }

        .loot-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .loot-grid::-webkit-scrollbar-thumb {
            background: var(--tittle-color-primary);
            border-radius: 10px;
        }

        .loot-grid::-webkit-scrollbar-thumb:hover {
            background: var(--background-check);
        }