* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
            color: #f1f5f9;
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            pointer-events: none;
            z-index: 0;
        }
        .orb-1 { top: -10rem; left: -10rem; width: 30rem; height: 30rem; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent); }
        .orb-2 { bottom: -10rem; right: -10rem; width: 35rem; height: 35rem; background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent); }

        .container {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo h1 {
            font-size: 1.5rem;
            background: linear-gradient(135deg, #fff, #38bdf8);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .logo p {
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .admin-badge {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: rgba(56, 189, 248, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 60px;
            border: 1px solid rgba(56, 189, 248, 0.3);
        }

        .card {
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .form-group input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            color: white;
        }

        .form-group input:focus {
            outline: none;
            border-color: #38bdf8;
        }

        .btn {
            padding: 0.75rem 1.25rem;
            border: none;
            border-radius: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #38bdf8, #0ea5e9);
            color: #020617;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
        }

        .teams-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }

        .team-tag {
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-radius: 40px;
            padding: 0.4rem 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .remove-team {
            background: none;
            border: none;
            color: #ef4444;
            cursor: pointer;
            font-size: 1rem;
        }

        /* Árbol del torneo */
        .bracket {
            display: flex;
            justify-content: center;
            overflow-x: auto;
            padding: 2rem 0;
            gap: 2rem;
        }

        .round {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            min-width: 320px;
            gap: 1.5rem;
        }

        .round-title {
            text-align: center;
            font-weight: 700;
            color: #38bdf8;
            margin-bottom: 1rem;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .match {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 0.75rem;
            transition: all 0.3s;
        }

        .match:hover {
            border-color: rgba(56, 189, 248, 0.3);
        }

        .match-teams {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .team-slot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
        }

        .team-slot.winner {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
            border-left: 3px solid #10b981;
        }

        .team-name {
            font-weight: 500;
        }

        .team-score {
            font-size: 0.7rem;
            color: #94a3b8;
        }

        .btn-play {
            width: 100%;
            margin-top: 0.5rem;
            padding: 0.5rem;
            background: #38bdf8;
            color: #020617;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-play:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
        }

        .winner-announcement {
            text-align: center;
            padding: 1.5rem;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
            border-radius: 24px;
            margin-top: 1rem;
            animation: pulse 1s ease;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }

        .winner-announcement h2 {
            font-size: 2rem;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* Modal de resultados */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(8px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: rgba(15, 23, 42, 0.98);
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 28px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            text-align: center;
        }

        .modal-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #38bdf8;
        }

        .modal-teams {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            padding: 1rem;
            margin: 1rem 0;
            font-weight: 600;
        }

        .sets-container {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            margin: 1rem 0;
        }

        .set-card {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            padding: 0.75rem;
            min-width: 100px;
        }

        .set-card label {
            font-size: 0.7rem;
            color: #94a3b8;
            display: block;
            margin-bottom: 0.3rem;
        }

        .set-inputs {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            align-items: center;
        }

        .set-inputs input {
            width: 55px;
            padding: 0.5rem;
            text-align: center;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 1rem;
        }

        .info-text {
            color: #94a3b8;
            font-size: 0.8rem;
            margin: 1rem 0;
        }

        @media (max-width: 768px) {
            .bracket { flex-direction: column; align-items: center; }
            .round { width: 100%; min-width: auto; }
            .sets-container { flex-direction: column; align-items: center; }
            .set-card { width: 100%; }
        }