/* =========================================
   ARENA BATTLEGROUND - Estilos Centralizados
   ========================================= */

/* --- SCROLL BEHAVIOR --- */
html {
    scroll-behavior: smooth;
}

/* --- HERO SECTION --- */
.arena-hero {
    background-color: #111827;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}

/* --- CARDS --- */
.arena-card,
.glass-card,
.form-card,
.match-card,
.player-card,
.rankings-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1rem;
    overflow-x: auto;
}

.glass-card {
    transition: transform 0.2s ease;
    background: rgba(31, 41, 55, 0.3) !important;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(55, 65, 81, 0.4) !important;
}

/* --- BUTTONS --- */
.btn-gamified,
.btn-action,
.btn-back {
    background-color: #ea580c;
    color: white !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 800;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gamified {
    padding: 1.25rem 2.5rem;
}

.btn-action,
.btn-back {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
}

.btn-gamified:hover,
.btn-action:hover,
.btn-back:hover {
    background-color: #c2410c;
}

.btn-disabled {
    background-color: #4b5563;
    color: #9ca3af !important;
    cursor: not-allowed;
}

.btn-save {
    background-color: #ea580c;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

.btn-cancel {
    background-color: #374151;
    color: #d1d5db;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

.btn-challenge {
    background-color: #ea580c;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-challenge:hover {
    background-color: #c2410c;
}

.btn-challenge-sm {
    background-color: #ea580c;
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-challenge-sm:hover {
    background-color: #c2410c;
}

/* --- STATUS BADGES --- */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-scheduled {
    background-color: #374151;
    color: #d1d5db;
}

.status-live {
    background-color: #1e40af;
    color: #dbeafe;
    animation: pulse 2s infinite;
}

.status-finished {
    background-color: #065f46;
    color: #d1fae5;
}

.status-cancelled {
    background-color: #7f1d1d;
    color: #fee2e2;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* --- PROFILE ELEMENTS --- */
.profile-circle {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f1724;
    border: 1px solid #374151;
    cursor: pointer;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-initial {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

.profile-circle:hover {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}

.avatar-preview {
    width: 128px;
    height: 128px;
    border-radius: 9999px;
    overflow: hidden;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-lg {
    width: 128px;
    height: 128px;
    object-fit: cover;
    display: block;
}

/* --- FORMS --- */
.form-input, .form-select {
    background-color: #0f1724;
    color: #ffffff;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* subtle custom chevron for selects */
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: calc(100% - 1.2rem) calc(1rem / 2), calc(100% - 0.6rem) calc(1rem / 2);
    background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
    background-repeat: no-repeat;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-label {
    color: #d1d5db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.input-file {
    color: #d1d5db;
}

.file-select {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: #0f1724;
    border: 1px solid #374151;
    color: #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
}

.file-name {
    color: #9ca3af;
    margin-left: 0.75rem;
    font-size: 0.9rem;
}

/* --- ERROR & INFO BOXES --- */
.error-box {
    background-color: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fecaca;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* --- SEASON & COUNTDOWN --- */
.season-select {
    background-color: #ea580c;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.season-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.season-countdown {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* --- ICON BOXES --- */
.icon-box-orange {
    background-color: #431407;
}

.icon-box-blue {
    background-color: #172554;
}

.icon-box-purple {
    background-color: #3b0764;
}

/* --- TOP NAVIGATION LINKS --- */
.top-links {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 700;
    padding: 0.15rem 0.25rem;
    transition: all 0.2s;
}

.top-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- LANGUAGE SELECTOR --- */
.language-selector-arena .lang-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.language-selector-arena .lang-btn:hover {
    color: #ffffff;
    background: rgba(234, 88, 12, 0.1);
}

.language-selector-arena .lang-btn.active {
    color: #ea580c;
    font-weight: 800;
}

/* --- RANKINGS & TABLES --- */
.rankings-table {
    min-width: 500px;
}

.rankings-table th,
.rankings-table td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid #374151;
    white-space: nowrap;
}

/* Data Explorer specific table styles */
.data-explorer-table th,
.data-explorer-table td {
    color: #ffffff !important;
}
.data-explorer-table td a { color: #ea580c !important; }
.data-explorer-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.data-explorer-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.01); }

/* User row highlight in tables */
.data-explorer-table tbody tr.user-row {
    background: rgba(59, 130, 246, 0.15) !important;
    border-left: 3px solid #3b82f6;
}

.data-explorer-table tbody tr.user-row td {
    font-weight: 700;
}



.rank-pos {
    font-weight: 800;
    color: #f97316;
}

/* --- CONTAINER STYLES --- */
.dashboard-container,
.match-container {
    color: white;
}

/* --- REVIEW MODAL & CHAT TEXTAREAS --- */
textarea#review-comments,
textarea#chat-input {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border: 1px solid #374151 !important;
}

textarea#review-comments::placeholder,
textarea#chat-input::placeholder {
    color: #9ca3af !important;
}

textarea#review-comments:focus,
textarea#chat-input:focus {
    outline: none;
    border-color: #ea580c !important;
    background-color: #1f2937 !important;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a {
    background-color: #374151;
    color: #d1d5db;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #ea580c;
    color: white;
}

.pagination .current {
    background-color: #ea580c;
    color: white;
}

.pagination .disabled {
    background-color: #1f2937;
    color: #6b7280;
    cursor: not-allowed;
}

/* --- LIVE MATCH INDICATOR --- */
.live-match-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    animation: swords-clash 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.6));
}

@keyframes swords-clash {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.6));
    }
    25% {
        transform: scale(1.15) rotate(-8deg);
        filter: drop-shadow(0 0 8px rgba(234, 88, 12, 0.9));
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        filter: drop-shadow(0 0 12px rgba(234, 88, 12, 1));
    }
    75% {
        transform: scale(1.15) rotate(8deg);
        filter: drop-shadow(0 0 8px rgba(234, 88, 12, 0.9));
    }
}

/* --- NOTIFICATION INDICATOR --- */
.notification-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    animation: bell-ring 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.6));
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.6));
    }
    10% {
        transform: rotate(15deg);
        filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.8));
    }
    20% {
        transform: rotate(-15deg);
        filter: drop-shadow(0 0 8px rgba(234, 88, 12, 0.9));
    }
    30% {
        transform: rotate(10deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.6));
    }
}

.notification-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background-color: #ea580c;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
}

/* =========================================
   LANDING PAGE - Estilos específicos
   ========================================= */

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* --- HERO GRADIENT --- */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* --- HERO WITH BACKGROUND IMAGE --- */
.hero-with-bg {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

/* --- HERO IMAGE --- */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0.5;
}

.hero-image-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f97316;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 20px rgba(234, 88, 12, 0.5);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-image-text {
        font-size: 1.5rem;
    }
}

/* --- HERO TEXT WITH STROKE --- */
.hero-title-stroke {
    color: #f97316;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 20px rgba(234, 88, 12, 0.5);
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* --- LANDING BADGES --- */
.badge-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 900;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: inline-block;
    margin-bottom: 2rem;
}

/* --- LANDING FEATURE CARDS --- */
.feature-card {
    background: rgba(31, 41, 55, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(234, 88, 12, 0.6));
}

/* --- LANDING CTAs --- */
.cta-primary {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.6);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(234, 88, 12, 0.5);
}

/* --- LANDING SOCIAL LINKS --- */
.social-link {
    color: #d1d5db;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: #ea580c;
    transform: scale(1.2);
}

/* --- LANDING STATS --- */
.stats-number {
    font-size: 3rem;
    font-weight: 900;
    color: #ea580c;
    line-height: 1;
}

/* --- LANDING VALUE ADD SECTION --- */
.value-add-section {
    background: rgba(31, 41, 55, 0.2);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* --- CHALLENGE CAROUSEL --- */
.challenge-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.challenge-carousel-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid #374151;
    color: #ea580c;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.25rem;
}

.carousel-button:hover:not(:disabled) {
    background: rgba(234, 88, 12, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-button-prev {
    left: -1rem;
}

.carousel-button-next {
    right: -1rem;
}

@media (max-width: 768px) {
    .challenge-carousel-container {
        padding: 0 2.5rem;
    }
    
    .challenge-slide {
        padding: 0;
    }
    
    .carousel-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .carousel-button-prev {
        left: 0.25rem;
    }
    
    .carousel-button-next {
        right: 0.25rem;
    }
}

/* --- ARENA NOTICES / ANNOUNCEMENTS --- */
.arena-notice {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.arena-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arena-notice-content {
    flex-grow: 1;
}

.arena-notice-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.arena-notice-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Notice types */
.notice-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

.notice-info .arena-notice-title {
    color: #60a5fa;
}

.notice-warning {
    background-color: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
    color: #fcd34d;
}

.notice-warning .arena-notice-title {
    color: #fbbf24;
}

.notice-urgent {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #fca5a5;
}

.notice-urgent .arena-notice-title {
    color: #ef4444;
}

@media (max-width: 640px) {
    .arena-notice {
        padding: 0.75rem 1rem;
    }
    
    .arena-notice-icon {
        font-size: 1.25rem;
    }
    
    .arena-notice-title {
        font-size: 1rem;
    }
    
    .arena-notice-text {
        font-size: 0.8125rem;
    }
}

/* --- ARENA POINTS DELTA --- */
.delta-positive {
    color: #f97316 !important;
    font-weight: 600;
}

.delta-negative {
    color: #ef4444 !important;
    font-weight: 600;
}

.delta-neutral {
    color: #9ca3af !important;
}

/* =========================================
   LOBBY CHAT MODAL - Estilos específicos
   ========================================= */

/* Modal container */
.arena-lobby-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.arena-lobby-modal.hidden {
    display: none;
}

.arena-lobby-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.arena-lobby-panel {
    position: relative;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    width: min(680px, calc(100vw - 2rem));
    margin: 10vh auto 0;
    color: #fff;
}

.arena-lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #374151;
}

.arena-lobby-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.arena-lobby-close:hover {
    color: #ea580c;
}

.arena-lobby-body {
    padding: 1rem;
}

/* Messages container */
.arena-lobby-messages {
    background: #0b1220;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
    height: 280px;
    overflow-y: auto;
    text-align: left; /* FORZAR alineación izquierda */
}

/* Individual message */
.arena-lobby-message {
    margin-bottom: 0.65rem;
    text-align: left; /* FORZAR alineación izquierda */
    display: block;
    background: rgba(31, 41, 55, 0.3);
    border-left: 2px solid rgba(107, 114, 128, 0.3);
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.arena-lobby-message:hover {
    background: rgba(31, 41, 55, 0.5);
    border-left-color: rgba(107, 114, 128, 0.6);
}

.arena-lobby-message .meta {
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: left;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.arena-lobby-message .text {
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.4;
}

/* System messages */
.arena-lobby-message-system {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.18), rgba(234, 88, 12, 0.06));
    border-left: 3px solid #ea580c;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    margin-bottom: 0.85rem;
    text-align: left;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
    animation: slideInLeft 0.3s ease-out;
}

.arena-lobby-message-system:hover {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.22), rgba(234, 88, 12, 0.08));
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.arena-lobby-message-system .meta {
    color: #ea580c;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.arena-lobby-message-system .meta::before {
    content: '⚡';
    font-size: 0.85rem;
    opacity: 0.8;
}

.arena-lobby-message-system .text {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Input and footer */
.arena-lobby-input,
textarea#lobby-input {
    width: 100%;
    background: #0b1220 !important;
    border: 1px solid #374151 !important;
    color: #fff !important;
    border-radius: 0.5rem;
    padding: 0.6rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    -webkit-text-fill-color: #fff !important;
}

.arena-lobby-input:focus,
textarea#lobby-input:focus {
    outline: none;
    border-color: #ea580c !important;
    background: #0b1220 !important;
    color: #fff !important;
}

.arena-lobby-input::placeholder,
textarea#lobby-input::placeholder {
    color: #6b7280 !important;
    opacity: 1;
    -webkit-text-fill-color: #6b7280 !important;
}

.arena-lobby-footer {
    margin-top: 0.75rem;
}

/* Buttons */
.arena-lobby-btn,
button#lobby-send {
    background-color: #ea580c !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.arena-lobby-btn:hover,
button#lobby-send:hover {
    background-color: #c2410c !important;
}

.arena-lobby-btn-secondary,
button#lobby-leave {
    background: transparent !important;
    border: 1px solid #374151 !important;
    color: #d1d5db !important;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.arena-lobby-btn-secondary:hover,
button#lobby-leave:hover {
    border-color: #9ca3af !important;
    color: #fff !important;
}

.arena-lobby-btn-danger,
button#lobby-confirm-exit {
    background: #ef4444 !important;
    border: none;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s;
}

.arena-lobby-btn-danger:hover,
button#lobby-confirm-exit:hover {
    background: #dc2626 !important;
}

/* Confirmation box */
.arena-lobby-confirm {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

/* Offline state */
.arena-lobby-offline {
    text-align: center;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .arena-lobby-panel {
        margin: 5vh auto 0;
        width: calc(100vw - 1rem);
    }

    .arena-lobby-messages {
        height: 220px;
    }
}

/* =========================================
   ONLINE PLAYERS SLIDER - Challenge List
   ========================================= */

/* Online Players Slider */
.online-slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.online-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 88, 12, 0.5) rgba(31, 41, 55, 0.3);
}

.online-slider::-webkit-scrollbar {
    height: 8px;
}

.online-slider::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 10px;
}

.online-slider::-webkit-scrollbar-thumb {
    background: rgba(234, 88, 12, 0.5);
    border-radius: 10px;
}

.online-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 88, 12, 0.8);
}

.online-player-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95));
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.online-player-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.6);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.2);
}

.online-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.player-avatar {
    width: 80px;
    height: 80px;
    background: rgba(234, 88, 12, 0.1);
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    overflow: hidden;
}

.player-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    text-align: center;
    width: 100%;
}

.player-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-league {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.player-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 800;
}

.challenge-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.challenge-button:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
    .online-player-card {
        flex: 0 0 260px;
    }
    
    .online-slider-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}
