/* ============================= */
/* AUTH / REGISTRO PRO XPREDE */
/* ============================= */

.xprede-auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 54, 108, 0.20), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(255, 126, 69, 0.14), transparent 24%),
        linear-gradient(180deg, #050608 0%, #0c0d14 58%, #07080d 100%) !important;
    background-image: none !important;
    min-height: 100vh !important;
}

.xprede-auth-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(10,10,10,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.xprede-auth-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
    color: #ffffff !important;
}

.xprede-auth-sub {
    margin: 0 0 24px;
    color: #b8c0cc !important;
    font-size: 16px;
}

.xprede-social {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    border: none !important;
    margin: 0 0 12px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.xprede-auth-card .xprede-social,
.xprede-auth-card form,
.xprede-auth-card .xprede-auth-btn,
.xprede-auth-card input[type="text"],
.xprede-auth-card input[type="email"],
.xprede-auth-card input[type="password"] {
    width: 100% !important;
}

.xprede-social.google {
    background: #ffffff;
    color: #111827;
}

.xprede-social.facebook {
    background: #1877F2;
    color: #ffffff;
}

.xprede-social.apple {
    background: #000000 !important;
    color: #ffffff !important;
}

.xprede-social:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.xprede-social.facebook:hover {
    background: #166FE5 !important;
}

.xprede-social.google:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,255,255,0.08);
}

.xprede-social.google:focus,
.xprede-social.google:active {
    background: #ffffff !important;
    color: #111827 !important;
    outline: none !important;
    box-shadow: none !important;
}

.xprede-divider {
    position: relative;
    text-align: center;
    margin: 22px 0 18px;
    color: #94a3b8;
    font-size: 14px;
}

.xprede-divider::before,
.xprede-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36%;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.xprede-divider::before {
    left: 0;
}

.xprede-divider::after {
    right: 0;
}

.xprede-auth-card form {
    margin: 0;
}

.xprede-auth-card input[type="text"],
.xprede-auth-card input[type="email"],
.xprede-auth-card input[type="password"] {
    min-height: 54px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    outline: none !important;
}

.xprede-auth-card input::placeholder {
    color: #94a3b8 !important;
}

.xprede-auth-card input:focus {
    border-color: rgba(255,30,30,0.6) !important;
    box-shadow: 0 0 0 3px rgba(255,30,30,0.12) !important;
}

.xprede-auth-btn {
    width: 100% !important;
    min-height: 54px;
    margin-top: 8px;
    border: none !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #d40000 0%, #ff1e1e 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(255,0,0,0);
    transition: all 0.3s ease;
}

.xprede-auth-btn:hover {
    background: linear-gradient(135deg, #b80000, #ff0000) !important;
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.xprede-auth-footer {
    margin: 18px 0 0;
    text-align: center;
    color: #94a3b8 !important;
    font-size: 15px;
}

.xprede-auth-footer a {
    color: #ff1e1e !important;
    font-weight: 700;
    text-decoration: none;
}

.xprede-auth-footer a:hover {
    text-decoration: underline;
}

.xprede-auth-links-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 14px;
}

.xprede-forgot-link {
    color: #9ca3af !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.xprede-forgot-link:hover {
    color: #ff1e1e !important;
}

.xprede-alert-success {
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

.xprede-alert-error {
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

.xprede-select {
    width: 100% !important;
    min-height: 54px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    outline: none !important;
}

.xprede-select option {
    color: #111827;
}

@media (max-width: 768px) {
    .xprede-auth-wrap {
        padding: 30px 16px;
        min-height: 100vh !important;
    }

    .xprede-auth-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .xprede-auth-title {
        font-size: 32px;
    }
}

/* ============================= */
/* MIS SALAS */
/* ============================= */

.xprede-my-rooms-shell {
    max-width: 1100px;
    margin: 0 auto 28px;
}

.xprede-my-rooms-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr);
    gap: 18px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at top right, rgba(255,69,118,0.20), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255,163,26,0.12), transparent 36%),
        linear-gradient(145deg, rgba(18,19,35,0.98) 0%, rgba(24,24,41,0.98) 50%, rgba(14,15,27,0.98) 100%);
    box-shadow: 0 28px 90px rgba(0,0,0,0.36);
}

.xprede-my-rooms-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,74,120,0.30);
    background: rgba(255,74,120,0.10);
    color: #ff7aa5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.xprede-my-rooms-title {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 58px);
    line-height: .95;
    font-weight: 900;
}

.xprede-my-rooms-subtitle {
    max-width: 700px;
    margin: 0;
    color: rgba(230,236,245,0.78);
    font-size: 16px;
    line-height: 1.7;
}

.xprede-my-rooms-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-self: stretch;
}

.xprede-my-rooms-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 124px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.xprede-my-rooms-stat-label {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xprede-my-rooms-stat strong {
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.xprede-my-rooms-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.xprede-room-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(10,10,10,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    transition: all 0.25s ease;
}

.xprede-room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    border-color: rgba(255,84,129,0.24);
}

.xprede-room-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,89,141,0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(255,191,71,0.10), transparent 24%);
    pointer-events: none;
}

.xprede-room-accent {
    width: 64px;
    height: 6px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff4c83 0%, #ff8a1f 100%);
    box-shadow: 0 0 24px rgba(255,94,143,0.35);
}

.xprede-room-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.xprede-room-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.xprede-room-title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.08;
}

.xprede-room-badge {
    background: linear-gradient(135deg, rgba(255,76,131,0.18), rgba(255,118,45,0.18));
    color: #fff;
    border: 1px solid rgba(255,112,153,0.28);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.xprede-room-badge.status-active {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.28);
    color: #8ff7c1;
}

.xprede-room-meta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.xprede-room-meta-card {
    min-height: 94px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.xprede-room-meta-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.50);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.xprede-room-meta-card strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    word-break: break-word;
}

.xprede-room-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 16px !important;
    flex-wrap: wrap !important;
}

.xprede-room-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
}

.xprede-room-btn.primary {
    background: linear-gradient(135deg, #ff1e1e, #d40000) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(255,30,30,0.25) !important;
}

.xprede-room-btn.primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px rgba(255,30,30,0.4) !important;
    color: #ffffff !important;
}

.xprede-room-btn.secondary {
    background: rgba(255,255,255,0.04) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}

.xprede-room-btn.secondary:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
}

.xprede-btn-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    gap: 8px;
    padding: 0 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff4c83 0%, #ff244f 40%, #ff7a18 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    box-shadow:
        0 16px 34px rgba(255,76,131,0.26),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.xprede-btn-enter:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 44px rgba(255,76,131,0.30),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}

.xprede-btn-enter:active {
    transform: scale(0.98);
}

.xprede-payment-success-shell {
    max-width: 980px;
    margin: 34px auto;
    padding: 0 20px;
}

.xprede-payment-success-card {
    position: relative;
    overflow: hidden;
    padding: 38px 34px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(34,197,94,0.18), transparent 32%),
        linear-gradient(145deg, rgba(16,24,39,0.98) 0%, rgba(15,23,42,0.98) 55%, rgba(12,18,32,0.98) 100%);
    box-shadow: 0 28px 80px rgba(0,0,0,0.34);
    text-align: center;
}

.xprede-payment-success-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(110,231,183,0.24);
    background: rgba(110,231,183,0.10);
    color: #9ff5cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.xprede-payment-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 18px auto 16px;
    border-radius: 28px;
    background: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(34,197,94,0.24);
}

.xprede-payment-success-card h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: .98;
    font-weight: 900;
}

.xprede-payment-success-card p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(229,236,245,0.78);
    font-size: 16px;
    line-height: 1.72;
}

.xprede-payment-success-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.xprede-my-rooms-empty {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px 30px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at top center, rgba(255,74,120,0.14), transparent 28%),
        linear-gradient(180deg, rgba(19,20,33,0.98) 0%, rgba(12,13,22,0.98) 100%);
    box-shadow: 0 26px 80px rgba(0,0,0,0.34);
    text-align: center;
}

.xprede-my-rooms-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff4c83 0%, #ff7a18 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(255,76,131,0.24);
}

.xprede-my-rooms-empty h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.xprede-my-rooms-empty p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.65;
}

.xprede-my-rooms-empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .xprede-my-rooms-hero {
        grid-template-columns: 1fr;
    }

    .xprede-my-rooms-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .xprede-my-rooms-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .xprede-my-rooms-title {
        font-size: 34px;
    }

    .xprede-my-rooms-stats {
        grid-template-columns: 1fr;
    }

    .xprede-my-rooms-grid {
        grid-template-columns: 1fr;
    }

    .xprede-room-card {
        padding: 20px;
        border-radius: 22px;
    }

    .xprede-room-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .xprede-room-title {
        font-size: 24px;
    }

    .xprede-room-meta-grid {
        grid-template-columns: 1fr;
    }

    .xprede-my-rooms-empty {
        padding: 28px 18px;
    }

    .xprede-my-rooms-empty h3 {
        font-size: 28px;
    }
}

/* ============================= */
/* PARTICIPANTES */
/* ============================= */

.xprede-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.xprede-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.xprede-user-item:hover {
    background: rgba(255,255,255,0.08);
}

.xprede-user-rank {
    font-weight: bold;
    color: #ff3c3c;
}

.xprede-user-name {
    color: #ddd;
}

/* ============================= */
/* PREDICCIONES */
/* ============================= */

.xprede-match-card {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(255,0,0,0.2) !important;
}

.xprede-match-teams {
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #fff !important;
}

.xprede-score-input {
    width: 60px !important;
    height: 45px !important;
    text-align: center !important;
    border-radius: 10px !important;
    border: none !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 18px !important;
    margin: 0 6px !important;
}

.xprede-score-input:focus {
    outline: none !important;
    box-shadow: 0 0 10px rgba(255,0,0,0.6) !important;
}

.xprede-save-btn {
    margin-top: 20px !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    background: linear-gradient(45deg, #ff0000, #ff2a2a) !important;
    border: none !important;
    color: #fff !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.xprede-save-btn:hover {
    box-shadow: 0 0 15px rgba(255,0,0,0.7) !important;
}

/* ============================= */
/* TOP 3 RANKING */
/* ============================= */

.xprede-top3 {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.xprede-top-card {
    flex: 1;
    min-width: 220px;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.xprede-top-card .pos {
    font-size: 28px;
    margin-bottom: 8px;
}

.xprede-top-card .name {
    font-size: 16px;
    margin-bottom: 6px;
}

.xprede-top-card .pts {
    font-size: 14px;
    opacity: 0.9;
}

.xprede-top-card.gold {
    background: linear-gradient(135deg, #FFD700, #FFB800);
    color: #000;
}

.xprede-top-card.silver {
    background: linear-gradient(135deg, #C0C0C0, #9e9e9e);
}

.xprede-top-card.bronze {
    background: linear-gradient(135deg, #cd7f32, #a05a1f);
}

/* ========================= */
/* WIZARD GENERAL */
/* ========================= */

.xprede-wizard-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(255,42,79,0.08), transparent 35%);
}

.xprede-wizard-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.xprede-wizard-back {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
}

.xprede-wizard-breadcrumb {
    color: #9ca3af;
    font-size: 14px;
}

.xprede-wizard-main-title {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    margin: 0 0 24px;
    color: #ffffff;
}

.xprede-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 34px;
    max-width: 640px;
}

.xprede-step {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #d8deea;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #c7cfdd;
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
}

.xprede-step.active {
    background: #ff2a4f;
    border-color: #ff2a4f;
    color: #fff;
}

.xprede-step-line {
    flex: 1;
    height: 4px;
    background: #d8deea;
}

.xprede-step-line.active {
    background: #ff2a4f;
}

.xprede-step-title-block {
    text-align: center;
    margin-bottom: 28px;
}

.xprede-step-title {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
    margin: 0 0 10px;
    color: #ffffff;
}

.xprede-step-subtitle {
    margin: 0;
    color: #c7cbd4;
    font-size: 16px;
}

.xprede-wizard-step {
    display: none;
}

.xprede-wizard-step.active {
    display: block;
}

/* ========================= */
/* PASO 1 - TORNEO */
/* ========================= */

.xprede-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.xprede-tournament-hero-card {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(145deg, #101014, #1a1a22);
    border-radius: 30px;
    padding: 40px 34px 32px;
    text-align: center;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.03),
        0 0 30px rgba(255,42,79,0.08);
    border: 1px solid rgba(255,42,79,0.16);
}

.xprede-tournament-logo-wrap {
    margin-bottom: 18px;
}

.xprede-tournament-logo-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2a4f, #ff5c7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 12px 30px rgba(255,42,79,0.35);
}

.xprede-tournament-real-logo {
    width: 170px;
    height: 170px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    padding: 16px;
    box-shadow:
        0 18px 44px rgba(255,42,79,0.18),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

.xprede-tournament-card-content {
    text-align: center;
}

.xprede-tournament-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ff2a4f;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.xprede-tournament-card-title {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 12px;
}

.xprede-tournament-card-desc {
    color: #c7cbd4;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
}

.xprede-wizard-tournament-card {
    cursor: pointer;
    transition: all 0.25s ease;
}

.xprede-wizard-tournament-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px rgba(255,42,79,0.15),
        0 20px 40px rgba(0,0,0,0.4);
}

.xprede-wizard-tournament-card.selected {
    border: 2px solid #ff2a4f !important;
    box-shadow:
        0 0 0 1px rgba(255,42,79,0.2),
        0 0 20px rgba(255,42,79,0.25),
        0 0 60px rgba(255,42,79,0.2),
        0 24px 60px rgba(0,0,0,0.5) !important;
    transform: translateY(-6px) scale(1.01);
}

/* ========================= */
/* PASO 2 - TIPO DE GRUPO */
/* ========================= */

.xprede-group-grid {
    max-width: 900px;
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 340px));
    justify-content: center;
    gap: 26px;
}

.xprede-group-card {
    background: linear-gradient(145deg, #111117, #1a1a22);
    border-radius: 24px;
    padding: 30px 22px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xprede-group-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.45),
        0 0 25px rgba(255,42,79,0.12);
    border: 1px solid rgba(255,42,79,0.22);
}

.xprede-group-card.active {
    border: 2px solid #ff2a4f;
    box-shadow:
        0 0 30px rgba(255,42,79,0.22),
        0 24px 55px rgba(0,0,0,0.48);
    transform: translateY(-4px) scale(1.01);
}

.xprede-group-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,42,79,0.18), rgba(255,42,79,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 10px 25px rgba(255,42,79,0.16);
}

.xprede-group-card h3 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    margin: 0 0 12px;
}

.xprede-group-card p {
    color: #aab0bb;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.xprede-badge-recommended {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ff2a4f, #ff5a74);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 11px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(255,42,79,0.32);
    letter-spacing: 0.2px;
}

/* ========================= */
/* BOTONES WIZARD */
/* ========================= */

/* ========================= */
/* BOTONES WIZARD */
/* ========================= */

.xprede-step-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.xprede-btn-secondary {
    min-width: 120px;
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.xprede-btn-secondary:hover,
.xprede-btn-secondary:focus,
.xprede-btn-secondary:active {
    border-color: #ff2a4f;
    color: #ff2a4f !important;
    box-shadow: 0 0 12px rgba(255,42,79,0.18);
    text-decoration: none !important;
}

.xprede-btn-primary {
    min-width: 160px;
    height: 48px;
    padding: 0 26px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff2a4f, #ff4d6d);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 30px rgba(255,42,79,0.35);
    text-decoration: none !important;
}

.xprede-btn-primary:hover,
.xprede-btn-primary:focus,
.xprede-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255,42,79,0.45);
    color: #ffffff !important;
    text-decoration: none !important;
}

.xprede-btn-primary:disabled {
    background: #2a2a33;
    color: #ffffff !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.75;
    transform: none;
}

/* BOTÓN CONTINUAR PASO 1 */
#go-to-step-2 {
    background: linear-gradient(135deg, #ff2a4f, #ff4166);
    color: #ffffff !important;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255,42,79,0.35);
    transition: all 0.2s ease;
}

#go-to-step-2:hover,
#go-to-step-2:focus,
#go-to-step-2:active {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255,42,79,0.5);
    color: #ffffff !important;
}

/* ========================= */
/* ZONA HORARIA */
/* ========================= */

.xprede-timezone-box {
    margin: 26px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #d8dde6;
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.xprede-timezone-icon {
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .xprede-wizard-main-title {
        font-size: 38px;
    }

    .xprede-step-title {
        font-size: 28px;
    }

    .xprede-step {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .xprede-tournament-hero-card {
        padding: 26px 18px 22px;
    }

    .xprede-tournament-card-title {
        font-size: 28px;
    }

    .xprede-tournament-card-desc {
        font-size: 15px;
    }

    .xprede-group-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .xprede-group-card {
        min-height: auto;
    }

    .xprede-step-actions {
        flex-direction: column;
    }

    .xprede-btn-primary,
    .xprede-btn-secondary,
    #go-to-step-2 {
        width: 100%;
        max-width: 260px;
        text-align: center;
        justify-content: center;
    }
}









/* ========================= */
/* PASO 3 - PUNTOS */
/* ========================= */

.xprede-step3-card {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(145deg, #111117, #1a1a22);
    border-radius: 24px;
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.xprede-points-table-wrap {
    overflow-x: auto;
}

.xprede-points-table {
    width: 100%;
    border-collapse: collapse;
}

.xprede-points-table th,
.xprede-points-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    vertical-align: top;
}

.xprede-points-table th {
    color: #ff5a74;
    font-size: 14px;
    font-weight: 800;
}

.xprede-points-table td {
    color: #cfd4dc;
    font-size: 14px;
    line-height: 1.55;
}

.xprede-step3-link-row {
    margin-top: 14px;
}

.xprede-step3-link {
    color: #ff5a74 !important;
    text-decoration: none !important;
    font-weight: 700;
}

.xprede-step3-link:hover {
    text-decoration: underline !important;
}

.xprede-points-config-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xprede-points-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.xprede-points-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 600;
}

.xprede-points-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cfd4dc;
}

.xprede-points-input {
    width: 84px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.xprede-points-input:focus {
    outline: none;
    border-color: #ff2a4f;
    box-shadow: 0 0 0 3px rgba(255,42,79,0.14);
}

@media (max-width: 768px) {
    .xprede-points-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .xprede-points-right {
        width: 100%;
        justify-content: space-between;
    }
}









.xprede-points-category td {
    background: linear-gradient(90deg, rgba(255,42,79,0.15), transparent);
    color: #ff5a74 !important;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 10px;
    border-top: 1px solid rgba(255,42,79,0.3);
}







/* TITULO Y DESCRIPCIÓN */
.xprede-points-wrapper h2,
.xprede-points-wrapper p {
    color: #ffffff !important;
}

/* CATEGORÍAS (FILAS ROJAS) */
.xprede-points-category td {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(255,42,79,0.35), rgba(255,42,79,0.05));
    font-weight: 800;
}








.xprede-points-wrapper h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.xprede-points-wrapper p {
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px;
}










.xprede-points-header h2 {
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.xprede-points-header p {
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px;
}









.xprede-next-level h3 {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 15px;
}

.xprede-next-level ul {
    padding-left: 18px;
}

.xprede-next-level li {
    color: rgba(255,255,255,0.75) !important;
    margin-bottom: 8px;
    font-size: 14px;
}








.xprede-next-level {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
    padding-top: 20px;
}

.xprede-points-return-actions {
    margin-top: 32px;
}

.xprede-inline-points-calculator {
    margin-top: 24px;
}

.xprede-inline-points-dialog {
    width: 100%;
    background:
        radial-gradient(circle at top, rgba(255, 76, 118, 0.18), transparent 30%),
        linear-gradient(145deg, #101018, #1a1a24);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.34),
        0 0 36px rgba(255,42,79,0.08);
    overflow: hidden;
}

.xprede-inline-points-dialog .xprede-modal-header,
.xprede-inline-points-dialog .xprede-modal-footer {
    position: static;
}










.xprede-points-group-title {
    margin-top: 18px;
    margin-bottom: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,42,79,0.18), rgba(255,42,79,0.04));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid rgba(255,42,79,0.12);
}









/* ========================= */
/* CALCULADORA PREMIUM */
/* ========================= */

.xprede-points-calculator-teaser {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 18px;
    align-items: center;
    background: linear-gradient(145deg, #15151d, #1d1d28);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.xprede-points-calculator-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, rgba(255,42,79,0.24), rgba(255,42,79,0.06));
    box-shadow: 0 12px 30px rgba(255,42,79,0.18);
}

.xprede-points-calculator-content h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.xprede-points-calculator-content p {
    margin: 0;
    color: #c7cbd4;
    font-size: 14px;
    line-height: 1.55;
}

.xprede-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3,3,8,0.76);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding:
        max(16px, env(safe-area-inset-top))
        16px
        max(16px, env(safe-area-inset-bottom));
}

.xprede-modal-dialog {
    width: min(1100px, 100%);
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
    margin: auto 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top, rgba(255, 76, 118, 0.18), transparent 30%),
        linear-gradient(145deg, #101018, #1a1a24);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 0 40px rgba(255,42,79,0.08);
    overflow: hidden auto;
}

.xprede-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 24px 26px 18px;
    background: linear-gradient(180deg, rgba(16,16,24,0.98), rgba(16,16,24,0.9));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.xprede-modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 58, 102, 0.12);
    border: 1px solid rgba(255, 58, 102, 0.18);
    color: #ff7f9e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.xprede-modal-header h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.xprede-modal-header p {
    margin: 0;
    color: #c7cbd4;
    font-size: 14px;
}

.xprede-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xprede-modal-close:hover {
    background: rgba(255,42,79,0.12);
    border-color: rgba(255,42,79,0.24);
}

.xprede-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 24px 26px;
}

.xprede-calc-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 22px;
}

.xprede-calc-panel-title {
    color: #ff5a74;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.xprede-calc-panel-sub {
    color: #c7cbd4;
    font-size: 14px;
    margin-bottom: 18px;
}

.xprede-calc-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.xprede-calc-grid label {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.xprede-calc-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xprede-calc-score-row span {
    color: #cfd4dc;
    font-weight: 700;
}

.xprede-calc-result-box {
    margin-top: 20px;
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,42,79,0.18), rgba(255,42,79,0.04));
    border: 1px solid rgba(255,42,79,0.16);
}

.xprede-calc-result-number {
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
}

.xprede-calc-result-label {
    color: #ffd2db;
    font-size: 15px;
    font-weight: 700;
}

.xprede-calc-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.xprede-calc-rule {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #ffffff;
}

.xprede-calc-rule strong {
    color: #8dff8b;
    font-size: 14px;
}

.xprede-calc-breakdown {
    padding: 0 26px 26px;
}

.xprede-calc-breakdown-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

#xprede-calc-breakdown-list {
    margin: 0;
    padding-left: 18px;
    color: #d6dbe3;
    line-height: 1.7;
}

.xprede-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 14px 26px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(16,16,24,0.82), rgba(16,16,24,0.98));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.xprede-modal-footer-btn {
    min-width: 220px;
}

@media (max-width: 900px) {
    .xprede-inline-points-dialog {
        border-radius: 22px;
    }

    .xprede-modal-body {
        grid-template-columns: 1fr;
        padding: 18px 18px 20px;
    }

    .xprede-points-calculator-teaser {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xprede-points-calculator-icon {
        margin: 0 auto;
    }

    .xprede-modal-dialog {
        width: 100%;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
        border-radius: 24px;
    }

    .xprede-modal-header {
        gap: 14px;
        padding: 18px 18px 14px;
    }

    .xprede-modal-header h3 {
        font-size: 24px;
    }

    .xprede-calc-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .xprede-calc-rule {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .xprede-calc-result-number {
        font-size: 44px;
    }

    .xprede-calc-breakdown {
        padding: 0 18px 18px;
    }

    .xprede-modal-footer {
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    }

    .xprede-modal-footer-btn {
        width: 100%;
    }
}











.xprede-card-block {
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(145deg, #14141c, #1c1c28);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.xprede-card-block h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
}

.xprede-form-group {
    margin-bottom: 16px;
}

.xprede-form-group label {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 6px;
}

.xprede-form-group input,
.xprede-form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px;
    color: #ffffff;
}

.xprede-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.xprede-form-inline input {
    width: 100px;
}

.xprede-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ffffff;
}

.xprede-money-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(255,42,79,0.05);
    border: 1px solid rgba(255,42,79,0.15);
}

















/* ========================= */
/* PASO 4 - CONFIGURACIÓN FINAL */
/* ========================= */

.xprede-card-block {
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(145deg, #14141c, #1c1c28);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.xprede-card-block h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
}

.xprede-form-group {
    margin-bottom: 16px;
}

.xprede-form-group label {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 700;
}

.xprede-form-group input,
.xprede-form-group textarea,
.xprede-form-inline input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    outline: none;
}

.xprede-form-group input:focus,
.xprede-form-group textarea:focus,
.xprede-form-inline input:focus {
    border-color: rgba(255,42,79,0.35);
    box-shadow: 0 0 0 3px rgba(255,42,79,0.12);
}

.xprede-form-group input {
    width: 100%;
}

.xprede-form-group textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.xprede-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.xprede-form-inline label {
    min-width: 240px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.xprede-form-inline input[type="number"] {
    width: 110px;
}

.xprede-form-inline input[type="date"] {
    width: 180px;
}

.xprede-form-inline input[type="time"] {
    width: 120px;
}

.xprede-form-inline span {
    color: #c7cbd4;
    font-weight: 700;
}

.xprede-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
}

.xprede-money-box {
    margin-top: 15px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,42,79,0.05);
    border: 1px solid rgba(255,42,79,0.15);
}

.xprede-money-box small {
    display: block;
    margin-top: 10px;
    color: #9fa6b2;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .xprede-form-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .xprede-form-inline label {
        min-width: auto;
    }

    .xprede-form-inline input[type="number"],
    .xprede-form-inline input[type="date"],
    .xprede-form-inline input[type="time"] {
        width: 100%;
    }
}

















/* ========================= */
/* PASO 5 - INVITAR */
/* ========================= */

.xprede-invite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.xprede-invite-card {
    min-height: 220px;
}

.xprede-invite-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
}

.xprede-invite-card p {
    color: #c7cbd4;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.xprede-copy-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.xprede-copy-box input {
    flex: 1;
    min-width: 220px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
}

.xprede-group-code-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,42,79,0.18), rgba(255,42,79,0.05));
    border: 1px solid rgba(255,42,79,0.18);
    box-shadow: 0 14px 30px rgba(255,42,79,0.14);
    margin-bottom: 14px;
}

.xprede-group-code-box span {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.xprede-email-preview {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.xprede-email-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .xprede-invite-grid {
        grid-template-columns: 1fr;
    }
}










/* ========================= */
/* FLOW MODALS PREMIUM */
/* ========================= */

.xprede-flow-modal {
    position: relative;
    width: min(920px, 100%);
    background: linear-gradient(145deg, #12121b, #1d1d28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 0 40px rgba(255,42,79,0.08);
    overflow: hidden;
}

.xprede-flow-modal-sm {
    max-width: 680px;
}

.xprede-flow-modal-lg {
    max-width: 980px;
}

.xprede-flow-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.xprede-flow-close:hover {
    background: rgba(255,42,79,0.12);
    border-color: rgba(255,42,79,0.24);
}

.xprede-flow-body {
    padding: 34px 30px 24px;
}

.xprede-flow-body-split {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
}

.xprede-flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.xprede-flow-badge {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #ff2a4f, #ff5a74);
    box-shadow: 0 18px 40px rgba(255,42,79,0.32);
}

.xprede-flow-badge-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 18px 40px rgba(34,197,94,0.28);
}

.xprede-flow-badge-premium {
    background: linear-gradient(135deg, #ff2a4f, #ff8a00);
    box-shadow: 0 18px 40px rgba(255,138,0,0.28);
}

.xprede-flow-content h3,
.xprede-flow-hero h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.05;
}

.xprede-flow-content p,
.xprede-flow-hero p {
    margin: 0;
    color: #c7cbd4;
    font-size: 16px;
    line-height: 1.65;
}

.xprede-flow-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 0 30px 28px;
    flex-wrap: wrap;
}

.xprede-flow-actions-center {
    justify-content: center;
}

.xprede-flow-hero {
    text-align: center;
    padding: 44px 28px 24px;
}

.xprede-flow-hero .xprede-flow-badge {
    margin: 0 auto 18px;
}

.xprede-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    padding: 0 28px 28px;
}

.xprede-premium-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.xprede-premium-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(255,42,79,0.20), rgba(255,42,79,0.05));
    box-shadow: 0 10px 25px rgba(255,42,79,0.14);
    flex-shrink: 0;
}

.xprede-premium-item strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.xprede-premium-item p {
    margin: 0;
    color: #c7cbd4;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .xprede-flow-body-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xprede-premium-grid {
        grid-template-columns: 1fr;
    }

    .xprede-flow-content h3,
    .xprede-flow-hero h3 {
        font-size: 26px;
    }
}








.xprede-success-meta {
    margin-top: 16px;
}

.xprede-success-meta-item {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.xprede-success-meta-label {
    color: #9fa6b2;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xprede-success-meta-item strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}












.xprede-invite-grid-single {
    grid-template-columns: minmax(320px, 620px);
    justify-content: center;
}
















.xprede-room-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.xprede-room-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.xprede-room-title {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.xprede-room-meta {
    margin-top: 8px;
    color: #aaa;
    font-size: 14px;
}

.xprede-room-code strong {
    color: #ff2a4f;
}

.xprede-room-actions {
    display: flex;
    gap: 10px;
}

.xprede-share-btn {
    background: transparent;
    border: 1px solid #ff2a4f;
    color: #ff2a4f;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.xprede-share-btn:hover {
    background: #ff2a4f;
    color: #fff;
}

.xprede-room-payment-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255,120,78,0.22);
    background:
        radial-gradient(circle at top left, rgba(255,111,97,0.20), transparent 30%),
        radial-gradient(circle at top right, rgba(255,195,113,0.14), transparent 28%),
        linear-gradient(135deg, rgba(35,20,24,0.98) 0%, rgba(30,24,40,0.98) 55%, rgba(22,20,29,0.98) 100%);
    box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}

.xprede-room-payment-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9a3c 0%, #ff4d6d 100%);
    box-shadow: 0 0 18px rgba(255,132,69,0.34);
}

.xprede-room-payment-copy {
    display: grid;
    gap: 6px;
    padding-left: 14px;
}

.xprede-room-payment-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,130,98,0.22);
    background: rgba(255,122,80,0.10);
    color: #ffb28d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.xprede-room-payment-copy strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.xprede-room-payment-copy span:last-child {
    color: rgba(240,233,232,0.78);
    font-size: 14px;
    line-height: 1.65;
}

.xprede-room-payment-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 160px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff7a18 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(255,93,86,0.26), inset 0 1px 0 rgba(255,255,255,0.16);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.xprede-room-payment-link:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: 0 22px 42px rgba(255,93,86,0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}

@media (max-width: 780px) {
    .xprede-room-payment-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .xprede-room-payment-link {
        width: 100%;
    }
}

/* TABS */
.xprede-room-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

.xprede-tab {
    background: none;
    border: none;
    color: #aaa;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
}

.xprede-tab.active {
    color: #fff;
}

.xprede-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff2a4f;
}









.xprede-room-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.xprede-room-modal {
    width: min(760px, 100%);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    opacity: 0;
transform: translateY(18px) scale(0.98);
transition: all .28s ease;
}

.xprede-room-modal-table {
    width: min(920px, 100%);
}

.xprede-room-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.xprede-room-modal-head h4 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.xprede-room-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.xprede-room-modal-close:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.xprede-room-modal-body {
    padding: 24px 28px;
    max-height: calc(92vh - 130px);
    overflow: auto;
}

.xprede-room-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: center;
}

.xprede-modal-done-btn {
    min-width: 170px;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff2a4f, #ff5a74);
    
    color: #ffffff !important; /* 🔥 FORZAR BLANCO */
    
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255,42,79,0.25);

    transition: all .2s ease;
}

.xprede-modal-done-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.xprede-compare-header {
    text-align: center;
    margin-bottom: 22px;
}

.xprede-compare-meta {
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.xprede-compare-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.1;
}

.xprede-compare-versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 10px 0 28px;
}

.xprede-compare-team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.xprede-compare-flag-frame {
    width: 116px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
}

.xprede-compare-team-flag {
    width: 92px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.xprede-compare-team-name {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
}

.xprede-compare-vs {
    font-size: 24px;
    font-weight: 900;
    color: #ff4a69;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.xprede-compare-section-title {
    margin: 2px 0 18px;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    color: #ff3f61;
    line-height: 1;
}

.xprede-compare-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xprede-compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.xprede-compare-name {
    font-weight: 800;
    color: #111827;
    font-size: 16px;
}

.xprede-compare-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.xprede-compare-score {
    font-weight: 900;
    color: #111827;
    font-size: 18px;
}

.xprede-compare-score-separator {
    font-weight: 900;
    color: #ff4a69;
    font-size: 16px;
}

.xprede-compare-points-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 63, 97, 0.08);
}

.xprede-compare-points-label {
    font-size: 11px;
    font-weight: 900;
    color: #ff3f61;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xprede-compare-points {
    font-weight: 900;
    color: #ff3f61;
    font-size: 18px;
    min-width: 20px;
    text-align: right;
}

.xprede-compare-empty {
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
}

.xprede-table-group-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #111827;
    text-align: center;
    line-height: 1;
}

.xprede-table-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 22px;
    font-weight: 700;
}

.xprede-table-grid {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.xprede-table-grid th,
.xprede-table-grid td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    color: #111827;
    font-size: 14px;
}

.xprede-table-grid th {
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #f9fafb;
}

.xprede-table-row-direct {
    background: #f0fdf4;
}

.xprede-table-row-third {
    background: #eff6ff;
}

.xprede-table-row-normal {
    background: #ffffff;
}

.xprede-table-row-direct:hover,
.xprede-table-row-third:hover,
.xprede-table-row-normal:hover {
    background: #f8fafc;
}

.xprede-table-grid tbody tr {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.xprede-table-row-direct td:first-child,
.xprede-table-row-third td:first-child {
    position: relative;
}

.xprede-table-row-direct td:first-child::before,
.xprede-table-row-third td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
}

.xprede-table-row-direct td:first-child::before {
    background: linear-gradient(180deg, #4f7cff, #3158ff);
}

.xprede-table-row-third td:first-child::before {
    background: linear-gradient(180deg, #f59e0b, #ea580c);
}

.xprede-table-pos {
    font-weight: 900;
    width: 34px;
    color: #111827;
}

.xprede-table-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xprede-table-team-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
}

.xprede-table-team-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xprede-table-team-name {
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.xprede-table-team-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.xprede-table-team-badge.direct {
    background: #dcfce7;
    color: #166534;
}

.xprede-table-team-badge.third {
    background: #dbeafe;
    color: #1d4ed8;
}

.xprede-table-team-badge.neutral {
    background: #e5e7eb;
    color: #374151;
}

.xprede-table-dg-positive {
    color: #166534;
    font-weight: 800;
}

.xprede-table-dg-negative {
    color: #b91c1c;
    font-weight: 800;
}

.xprede-table-dg-neutral {
    color: #6b7280;
    font-weight: 800;
}

.xprede-table-points {
    color: #111827;
    font-weight: 900;
    font-size: 16px;
}

.xprede-mobile-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 26px rgba(15,23,42,0.06);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.xprede-mobile-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.xprede-mobile-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.xprede-mobile-inline-table {
    width: max-content;
    min-width: 820px;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    table-layout: fixed;
}

.xprede-mobile-inline-table th,
.xprede-mobile-inline-table td {
    white-space: nowrap;
}

.xprede-mobile-inline-table th:first-child,
.xprede-mobile-inline-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 44px;
}

.xprede-mobile-inline-table th:nth-child(2),
.xprede-mobile-inline-table td:nth-child(2) {
    min-width: 190px;
    width: 190px;
}

.xprede-mobile-inline-table th:first-child {
    background: #f9fafb;
}

.xprede-mobile-inline-table td:first-child {
    background: inherit;
}

.xprede-mobile-inline-table td:nth-child(2) .xprede-table-team-cell {
    min-width: 170px;
}

.xprede-table-team-cell-compact {
    gap: 6px;
}

.xprede-table-team-name-wrap-compact {
    gap: 3px;
}

.xprede-table-team-name-compact {
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.xprede-table-team-badge-compact,
.xprede-third-badge-compact {
    padding: 2px 5px;
    font-size: 7px;
    letter-spacing: 0.05em;
}

.xprede-table-legend {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.xprede-table-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 700;
}

.xprede-table-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.xprede-table-legend-dot.direct {
    background: #22c55e;
}

.xprede-table-legend-dot.third {
    background: #3b82f6;
}

.xprede-table-note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 900px) {
    .xprede-compare-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .xprede-compare-score,
    .xprede-compare-points {
        text-align: left;
    }

    .xprede-compare-versus {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .xprede-compare-vs {
        order: 2;
    }

    .xprede-compare-team-box:first-child {
        order: 1;
    }

    .xprede-compare-team-box:last-child {
        order: 3;
    }

    .xprede-compare-flag-frame {
        width: 100px;
        height: 70px;
    }

    .xprede-table-grid th,
    .xprede-table-grid td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .xprede-table-team-name {
        font-size: 12px;
    }

    .xprede-room-modal-best-thirds {
        width: min(680px, 100%);
        border-radius: 28px;
    }

    .xprede-room-modal-best-thirds .xprede-room-modal-head {
        padding: 18px 18px 14px;
        align-items: flex-start;
    }

    .xprede-room-modal-best-thirds .xprede-room-modal-head h4 {
        font-size: 24px;
        line-height: 1.05;
        max-width: 240px;
    }

    .xprede-room-modal-best-thirds .xprede-room-modal-body {
        padding: 18px;
    }

    .xprede-best-thirds-desktop {
        display: none;
    }

    .xprede-best-thirds-mobile {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .xprede-table-group-title {
        text-align: left;
        font-size: 20px;
    }

    .xprede-table-subtitle,
    .xprede-table-note {
        text-align: left;
    }

    .xprede-mobile-table-shell {
        gap: 12px;
    }

    .xprede-mobile-table-wrap {
        margin: 0 -2px;
    }

    .xprede-mobile-inline-table {
        min-width: 820px;
    }

    .xprede-mobile-inline-table th,
    .xprede-mobile-inline-table td {
        padding: 11px 10px;
        font-size: 12px;
    }

    .xprede-mobile-inline-table th:first-child,
    .xprede-mobile-inline-table td:first-child {
        left: 0;
    }

    .xprede-mobile-inline-table th:nth-child(2),
    .xprede-mobile-inline-table td:nth-child(2) {
        min-width: 190px;
        width: 190px;
    }

    .xprede-mobile-inline-table td:nth-child(2) .xprede-table-team-cell {
        min-width: 170px;
    }

    .xprede-mobile-inline-table .xprede-table-team-flag {
        width: 18px;
        height: 12px;
    }

    .xprede-mobile-inline-table .xprede-table-team-name-compact {
        font-size: 11px;
    }

    .xprede-mobile-inline-table th:nth-child(3),
    .xprede-mobile-inline-table td:nth-child(3) {
        min-width: 52px;
        width: 52px;
    }

    .xprede-mobile-inline-table th:last-child,
    .xprede-mobile-inline-table td:last-child {
        min-width: 74px;
        width: 74px;
    }

    .xprede-mobile-inline-table .xprede-table-team-badge-compact,
    .xprede-mobile-inline-table .xprede-third-badge-compact {
        max-width: none;
        white-space: nowrap;
    }
}






.xprede-modal-done-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
    opacity: 0.3;
    pointer-events: none;
}










.xprede-room-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.xprede-room-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.xprede-simulate-table-btn,
.xprede-compare-btn {
    border: 1px solid rgba(255, 42, 79, 0.25);
    background: rgba(255, 42, 79, 0.08);
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xprede-simulate-table-btn:hover,
.xprede-compare-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 42, 79, 0.18);
    background: rgba(255, 42, 79, 0.14);
}

.xprede-best-thirds-btn {
    background: linear-gradient(135deg, #ffffff, #d6d6d6);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.35);
}

.xprede-best-thirds-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 45, 85, 0.5);
    background: linear-gradient(135deg, #ff3b60, #ff5f7a);
}

.xprede-third-qualified {
    background: linear-gradient(90deg, rgba(34,197,94,0.10), rgba(34,197,94,0.04));
    transition: all .25s ease;
}

.xprede-third-eliminated {
    background: linear-gradient(90deg, rgba(239,68,68,0.08), rgba(239,68,68,0.03));
    transition: all .25s ease;
}

.xprede-third-qualified:hover,
.xprede-third-eliminated:hover {
    transform: scale(1.003);
}

.xprede-third-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 92px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.xprede-third-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.xprede-third-badge.no {
    background: #fee2e2;
    color: #b91c1c;
}








.xprede-third-qualified:nth-last-child(1) {
    border-bottom: 2px solid #22c55e;
}

.xprede-third-cutoff-row td {
    padding: 10px 0 12px;
    border-bottom: none;
    background: transparent;
}

.xprede-third-cutoff {
    position: relative;
    padding: 12px 16px 0;
    text-align: center;
    color: #16a34a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xprede-third-cutoff::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #ef4444);
}

.xprede-room-modal-best-thirds .xprede-room-modal-body {
    background:
        radial-gradient(circle at top, rgba(255, 82, 120, 0.06), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
}

.xprede-best-thirds-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xprede-best-thirds-mobile {
    display: none;
}

.xprede-third-mobile-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.xprede-third-mobile-card.qualified {
    background: linear-gradient(180deg, #f6fffa, #eefcf4);
    border-color: rgba(34, 197, 94, 0.18);
}

.xprede-third-mobile-card.eliminated {
    background: linear-gradient(180deg, #fff8f8, #fff1f2);
    border-color: rgba(239, 68, 68, 0.12);
}

.xprede-third-mobile-card.playoff {
    background: linear-gradient(180deg, #f5f8ff, #eef4ff);
    border-color: rgba(59, 130, 246, 0.16);
}

.xprede-third-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.xprede-third-mobile-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.xprede-third-mobile-team {
    display: flex;
    align-items: center;
    gap: 14px;
}

.xprede-third-mobile-flag {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    flex: 0 0 auto;
}

.xprede-third-mobile-flag .xprede-table-team-flag {
    width: 40px;
    height: 28px;
}

.xprede-third-mobile-copy {
    min-width: 0;
}

.xprede-third-mobile-copy h5 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.05;
}

.xprede-third-mobile-copy span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.xprede-third-mobile-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.xprede-third-mobile-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    text-align: center;
}

.xprede-third-mobile-stats span {
    color: #6b7280;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xprede-third-mobile-stats strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.xprede-third-mobile-points {
    color: #ff2a4f !important;
}

.xprede-third-mobile-cutoff {
    position: relative;
    padding: 14px 16px 0;
    text-align: center;
    color: #16a34a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xprede-third-mobile-cutoff::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #ef4444);
}

.xprede-third-mobile-empty {
    padding: 22px 18px;
    border-radius: 18px;
    background: #f8fafc;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
}

.xprede-best-thirds-mobile.is-group-table .xprede-third-mobile-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}










.xprede-third-top td {
    font-weight: 800;
}

.xprede-third-top td:first-child {
    color: #111827;
}










.xprede-room-modal-overlay.is-open .xprede-room-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}






.xprede-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff2d55, #ff4d6d);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35);
}

.xprede-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 45, 85, 0.5);
}










/* 🔥 BOTÓN COMPARTIR */
.xprede-share-btn,
#xprede-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 120, 152, 0.38);
    background: linear-gradient(135deg, #ff2d55 0%, #ff4f72 55%, #ff6b86 100%);
    color: #ffffff !important;
    fill: currentColor;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-shadow: none;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255, 45, 85, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.xprede-share-btn span,
#xprede-share-btn span,
.xprede-share-btn svg,
#xprede-share-btn svg {
    color: inherit !important;
    opacity: 1;
}

.xprede-share-btn:hover,
#xprede-share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(255, 45, 85, 0.38);
}

.xprede-share-btn:focus-visible,
#xprede-share-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

/* 🔥 MODAL COMPARTIR */
.xprede-share-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 14, 0.72);
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.xprede-share-modal {
    width: min(560px, 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 79, 114, 0.16), transparent 32%),
        linear-gradient(180deg, #1f2030 0%, #191a27 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.xprede-share-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xprede-share-modal-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.xprede-share-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f4f5fb;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.xprede-share-close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.xprede-share-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xprede-share-code-box {
    padding: 16px 18px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 74, 108, 0.28);
    background: linear-gradient(180deg, rgba(255, 50, 92, 0.14), rgba(255, 50, 92, 0.08));
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.xprede-share-code-box small {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.xprede-share-code-box strong {
    display: block;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.xprede-share-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.xprede-share-link-row input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.xprede-share-link-row input:focus {
    outline: none;
    border-color: rgba(255, 99, 132, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 74, 108, 0.14);
}

.xprede-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.xprede-share-copy,
.xprede-share-whatsapp {
    min-height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.xprede-share-copy {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.xprede-share-copy:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.xprede-share-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
}

.xprede-share-whatsapp:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.28);
}

.xprede-share-copy:focus-visible,
.xprede-share-whatsapp:focus-visible,
.xprede-share-link-row input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.xprede-share-box {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f9fafb;
}

.xprede-share-row {
    display: flex;
    gap: 10px;
}

.xprede-share-row input {
    flex: 1;
    height: 46px;
    border-radius: 10px;
    padding: 0 10px;
}

.xprede-share-action-btn {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 0 12px;
}

.xprede-share-whatsapp-btn {
    background: #25d366;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
}

@media (max-width: 640px) {
    .xprede-share-modal-overlay {
        padding: 14px;
    }

    .xprede-share-modal {
        border-radius: 20px;
    }

    .xprede-share-modal-head {
        padding: 16px;
    }

    .xprede-share-modal-head h3 {
        font-size: 18px;
    }

    .xprede-share-modal-body {
        padding: 16px;
    }

    .xprede-share-link-row,
    .xprede-share-actions {
        grid-template-columns: 1fr;
    }

    .xprede-share-code-box strong {
        font-size: 32px;
        letter-spacing: 0.08em;
    }
}




