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

body {
    background-color: #050505;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-text {
    color: #fff;
    margin-right: 2px;
}

.logo-x {
    color: #ff0000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    color: #fff;
}

.btn-login {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-signup {
    background: #ff0000;
    border: none;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-signup:hover {
    background: #ff7700;
}

/* Content Wrapper */
.content-wrapper {
    margin-top: 80px;
    /* Offset for fixed navbar */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    height: calc(100vh - 80px);
    /* Fill remaining height */
    position: relative;
    flex-direction: column;
    /* Stack title and carousel */
    padding-top: 100px;
}

.hero-section {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #fff;
    animation: fadeInDown 1s ease-out;
}

.highlight-red {
    color: #ff0000;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Swiper Container */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
    /* Context for absolute positioning of arrows */
}

/* Swiper Slides */
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 250px;
    height: 480px;
    /* Default state: grayscale and slightly smaller/dimmed */
    filter: grayscale(80%);
    transition: all 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #111;
    /* Fallback */
    cursor: pointer;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Active Slide Effect */
.swiper-slide-active {
    filter: grayscale(0%);
    z-index: 10;
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.2);
}

/* Scale transformation is handled by coverflow effect via JS parameters, 
   but we can reinforce or tweak here if needed. 
   Swiper's coverflow uses 3D transforms. 
   The request asks for transform: scale(1.1) specifically on active. */
.swiper-slide-active {
    transform: scale(1.1) !important;
    /* Force scale override if coverflow fights it, though usually configured in JS */
}

/* Optional Slide Content Overlay */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.swiper-slide-active .slide-content {
    opacity: 1;
}

.slide-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.slide-content p {
    color: #ff0000;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    color: #ff0000;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s;

    /* Z-Index Requirement */
    z-index: 100;
    position: absolute;
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next {
    right: 30px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #ff0000;
    color: #fff;
    transform: scale(1.1);
}

/* Authentication Pages */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://res.cloudinary.com/dydqye3n1/image/upload/f_auto,q_auto/guiltyGearWallpaper.jpg') no-repeat center center/cover;
    opacity: 0.2;
    /* Dimmed background */
    z-index: -1;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 80px;
}

.auth-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #1a1a1a;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.auth-card p {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem 1rem;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff5500;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.1);
}

.btn-auth {
    width: 100%;
    background: #ff5500;
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: #ff0000;
}

.btn-auth:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.auth-footer a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Verification Styles */
#verification-container {
    animation: fadeIn 0.5s ease-out;
}

#verification-code {
    letter-spacing: 8px !important;
    font-size: 1.8rem !important;
    background: #000 !important;
    border: 2px solid #ff5500 !important;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

#timer {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-link {
    text-decoration: none;
}

/* Downloads Page Styles */
/* Downloads Page Styles */
.downloads-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    /* Reduced padding */
    height: 100vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical center */
    overflow: hidden;
    /* Disable scrolling */
}

/* Ensure body doesn't scroll if needed, though container handles it usually */
body:has(.downloads-container) {
    overflow: hidden;
}

.downloads-header {
    margin-bottom: 2rem;
    /* Reduced margin */
}

.downloads-header h2 {
    font-size: 2rem;
    /* Reduced size */
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.downloads-header p {
    color: #888;
    font-size: 1rem;
}

.downloads-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    align-items: center;
}

.download-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #1a1a1a;
    padding: 2rem;
    /* Reduced padding */
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    /* Reduced */
    max-width: 400px;
    /* Reduced */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-5px);
    /* Reduced movement */
    border-color: #ff5500;
}

.card-icon {
    font-size: 3rem;
    /* Reduced icon size */
    color: #ff5500;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.download-card p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .downloads-grid {
        flex-direction: column;
        align-items: center;
    }

    .download-card {
        width: 100%;
    }
}

/* Wallpapers Page Styles */
.wallpapers-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.wallpapers-header {
    margin-bottom: 3rem;
}

.wallpapers-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}

.wallpaper-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.wallpaper-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wallpaper-item:hover {
    transform: scale(1.05);
    border-color: #ff5500;
    box-shadow: 0 15px 40px rgba(255, 85, 0, 0.2);
    z-index: 2;
}

.wallpaper-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wallpapers-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border: 3px solid #ff0000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-modal:hover {
    color: #ff0000;
}

.modal-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}


.modal-footer .btn-auth {
    max-width: 300px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

/* =========================================
   Responsive Fixes for Smaller Screens (Laptops)
   Targeting heights < 900px or widths < 1400px
   ========================================= */

@media screen and (max-height: 900px),
screen and (max-width: 1440px) {

    /* Compress vertical space */
    .content-wrapper {
        margin-top: 60px;
        /* Slight reduction from 80px */
        padding-top: 40px;
        /* drastic reduction from 100px */
        height: auto;
        /* Let flex handle it, don't force calc if content overflows */
        min-height: calc(100vh - 60px);
        justify-content: flex-start;
        /* Align top to avoid cutting off if too tall */
    }

    .hero-title {
        font-size: 2.2rem;
        /* Smaller title */
        margin-bottom: 1rem;
    }

    /* Reduce Swiper size significantly */
    .swiper {
        padding-top: 10px;
        padding-bottom: 20px;
        /* Ensure vertical centering if content allows */
        flex: 1;
        display: flex;
        align-items: center;
    }

    .swiper-slide {
        width: 240px;
        /* Increased from 200px */
        height: 420px;
        /* Increased from 360px */
    }

    /* Adjust scale effect so it doesn't overflow */
    .swiper-slide-active {
        transform: scale(1.08) !important;
    }



    /* Navbar compactness */
    .navbar {
        padding: 0.8rem 2rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-item {
        font-size: 0.8rem;
    }

    .btn-login,
    .btn-signup {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* Auth Page Fixes */
    .auth-wrapper {
        margin-top: 40px;
        /* Reduced from 80px */
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        /* Reduced from 3rem */
        max-width: 400px;
    }

    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .auth-card p {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
        /* Reduced from 1.5rem */
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-auth {
        padding: 0.8rem;
        margin-top: 0.8rem;
        font-size: 0.9rem;
    }

    .auth-footer {
        margin-top: 1rem;
        font-size: 0.8rem;
    }
}

/* Even smaller screens (Tablets/Small Laptops) */
@media screen and (max-height: 700px) {
    .content-wrapper {
        padding-top: 20px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .swiper-slide {
        width: 160px;
        height: 280px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    /* Extreme Compact for Auth */
    .auth-card {
        padding: 1rem;
    }

    .auth-card h2 {
        font-size: 1.3rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .btn-auth {
        padding: 0.6rem;
    }
}




/* =========================================
   DASHBOARD STYLES (Inicio.html)
   ========================================= */

.dashboard-page {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Dashboard container now column based */
.dashboard-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}



/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 0;
    /* No Sidebar offset */
    padding: 2rem 3rem;
    padding-top: 100px;
    /* Space for fixed navbar */
    background: #000;
    max-width: 1400px;
    /* Optional constraint for large screens */
    margin: 0 auto;
    /* Center if constrained */
    width: 100%;
}

/* Top Header (User Menu) - Removed as it's now in main Navbar */
.top-header {
    display: none;
}

/* User Menu & Dropdown */
.user-menu-container {
    position: relative;
    cursor: pointer;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.user-menu-trigger:hover {
    background-color: #1a1a1a;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

/* Show dropdown on hover of container */
.user-menu-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown a:hover {
    background-color: #1a1a1a;
    color: #fff;
    padding-left: 1.5rem;
    /* Slide effect */
}

.dropdown-divider {
    height: 1px;
    background-color: #222;
    margin: 0.3rem 0;
}

.logout-link:hover {
    color: #ff4444 !important;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #666;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.rank-card {
    background: linear-gradient(135deg, #2a0a0a 0%, #0a0a0a 100%);
    border-color: #331111;
}

.card-header {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.highlight-green {
    color: #00ff88;
}

.highlight-blue {
    color: #0088ff;
}

.highlight-gold {
    color: #ffaa00;
}

.sub-text {
    font-size: 0.85rem;
    color: #666;
}

/* Rank specific */
.rank-details {
    color: #ff5500;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Content Row (Activity + Actions) */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.recent-activity-section,
.quick-actions-section {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-activity-section h3,
.quick-actions-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #111;
    border-radius: 8px;
    border: 1px solid #222;
}

.game-icon {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #00ff88;
    /* Default to win color basically */
    font-size: 1.2rem;
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.activity-details p {
    font-size: 0.8rem;
    color: #666;
}

.activity-result {
    text-align: right;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.build-win {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.badge.build-loss {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.time {
    display: block;
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.3rem;
}

/* Quick Action Card */
.action-card {
    height: 200px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
    color: #fff;
}

.red-bg {
    background: #ff0000;
}

.action-card:hover {
    transform: translateY(-5px);
    background: #cc0000;
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* =========================================
   Responsive Dashboard
   ========================================= */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 80px;
        /* Collapsed sidebar */
        padding: 1rem 0.5rem;
        align-items: center;
    }

    .sidebar-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    .sidebar-header .logo-text,
    .sidebar-header .logo-x,
    .sub-logo,
    .nav-link span,
    /* If we had spans for text */
    .nav-link {
        justify-content: center;
        padding: 1rem 0;
    }

    .nav-link {
        font-size: 0;
        /* Hide text */
    }

    .nav-link i {
        font-size: 1.2rem;
        width: auto;
    }

    .main-content {
        margin-left: 80px;
    }

    .user-profile-mini {
        flex-direction: column;
        text-align: center;
        padding-top: 1rem;
    }

    .user-info {
        display: none;
    }

    .content-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1.5rem;
        /* Ensure top padding for fixed navbar */
        padding-top: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   AVISO PAGE STYLES (aviso.html)
   ========================================= */
/* =========================================
   AVISO PAGE STYLES (aviso.html)
   ========================================= */
.aviso-container {
    position: relative;
    width: 100vw;
    /* Height calculation: 100vh minus navbar height (~80px) */
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper-background {
    position: absolute;
    width: 100%;
    height: 405px;
    /* Matches new slide height */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.swiper-top {
    /* Centered by parent */
    top: auto;
    left: 0;
}

/* Reuse existing swiper slide styles but create variant if needed */
.aviso-container .swiper-slide {
    width: 675px;
    /* Increased by another 0.5 (1.5x of 450px) */
    height: 405px;
    /* Increased by another 0.5 (1.5x of 270px) */
    border: none;
    box-shadow: none;
    filter: grayscale(100%);
    border-radius: 12px;
    overflow: hidden;
}

.aviso-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aviso-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.warning-card {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid #ff0000;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
    0% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 0, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    }
}

.warning-icon {
    font-size: 4rem;
    color: #ff0000;
    margin-bottom: 2rem;
}

.warning-card h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 800;
}

.warning-card p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Button Style for Aviso Page */
.warning-card .btn-signup {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.warning-card .btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
    background: linear-gradient(45deg, #ff3333, #ff0000);
}

/* =========================================
   FRIENDS PAGE STYLES (amigos.html)
   ========================================= */

.friends-mgmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #fff;
    width: 100%;
    outline: none;
}

.search-box button {
    background: #222;
    border: none;
    color: #888;
    padding: 0 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.search-box button:hover {
    color: #fff;
}

.friends-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.friend-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, border-color 0.3s;
}

.friend-card:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #555;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #0d0d0d;
}

.status-dot.online {
    background-color: #00ff88;
}

.status-dot.offline {
    background-color: #ff4444;
}

.friend-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.friend-info p {
    font-size: 0.8rem;
    color: #666;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-icon-danger:hover {
    color: #ff4444;
}

/* Ranking Table in Aside */
.ranking-simple-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: #111;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ranking-item.me {
    border: 1px solid #ff000033;
    background: linear-gradient(90deg, #1a0505, #111);
}

.rank-num {
    color: #ff5500;
    font-weight: 800;
    margin-right: 1rem;
    width: 30px;
}

.rank-name {
    flex: 1;
    font-weight: 600;
}

.rank-elo {
    color: #888;
}

/* Pending Requests Section */
.pending-requests-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #333;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pending-requests-list h4 {
    margin-bottom: 1rem;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.action-btn {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}

.action-btn.accept {
    background: #00ff88;
    color: #000;
    margin-right: 0.5rem;
}

.action-btn.reject {
    background: #333;
    color: #fff;
}

.action-btn:hover {
    opacity: 0.8;
}

.msg-hint {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    min-height: 1.2em;
}

.empty-state {
    color: #444;
    text-align: center;
    padding: 3rem;
    width: 100%;
}

/* REFINED PREMIUM MATCHMAKING */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.matchmaking-page {
    background: #020202;
    overflow: hidden;
    height: 100vh;
}

.matchmaking-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carrousel-selector {
    width: 800px !important;
    max-height: 85vh;
    padding: 1.5rem !important;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
}

.carrousel-selector h2 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 0.2rem;
    background: linear-gradient(180deg, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carrousel-selector p {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.8rem;
}

.selectorSwiper {
    width: 650px;
    padding: 1rem 40px !important;
    margin: 0.5rem 0;
}

.game-item {
    height: 180px;
    /* Reducido para evitar pixelación y scroll */
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
    transition: 0.6s;
}

.game-item.selected img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.game-item.selected {
    border-color: #ff0055;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
}

.game-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 0.4rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: #fff;
    font-size: 0.65rem;
    /* Texto reducido */
    font-weight: 800;
    text-align: center;
    z-index: 2;
    opacity: 0.6;
    letter-spacing: 1px;
}

.game-item.selected span {
    opacity: 1;
    color: #ff0055;
}

.check-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff0055;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.game-item.selected .check-overlay {
    opacity: 1;
    transform: scale(1);
}

.bottom-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-auth-premium {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    background: #ff0055;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-auth-premium:hover {
    background: #ff2a70;
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.6);
    transform: translateY(-2px);
}

.pulsate {
    animation: pulsateGlow 2s infinite;
}

@keyframes pulsateGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 0, 85, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    }
}

/* SEARCHING CIRCLE DESIGN */
.searching-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.search-circle-wrapper {
    width: 280px;
    height: 280px;
    background: #111;
    border: 3px solid #ff0055;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(255, 0, 85, 0.3);
    animation: circlePulse 2.5s infinite ease-in-out;
    position: relative;
}

@keyframes circlePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 0, 85, 0.3);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 80px rgba(255, 0, 85, 0.5);
    }
}

.search-title-compact {
    font-size: 0.85rem;
    font-weight: 950;
    letter-spacing: 4px;
    color: #ff0055;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.bridget-loader.mini img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #ff0055;
    object-fit: cover;
    background: #000;
}

.dots-animation {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
}

.dots-animation span {
    font-size: 2.5rem;
    color: #ff0055;
    line-height: 0.5;
    animation: dotBlink 1.4s infinite;
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.btn-cancel-circle {
    margin-top: 3.5rem;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 0.6rem 2.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-cancel-circle:hover {
    color: #fff;
    border-color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
}

/* VERSUS FULLSCREEN */
.versus-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    background: #000;
    z-index: 1000;
}

.vs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a0005 0%, #000 50%, #00051a 100%);
    opacity: 0.8;
    z-index: -1;
}

.player-side {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.character-image {
    position: absolute;
    bottom: 20px;
    height: 80%;
    width: 80%;
    z-index: 2;
    transition: all 0.5s ease;
}

.player-left .character-image {
    left: 5%;
}

.player-right .character-image {
    right: 5%;
    transform: scaleX(-1);
}

.character-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.player-tag {
    position: relative;
    z-index: 10;
    padding: 3rem;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.95));
}

.name-box {
    border-left: 6px solid #ff0055;
    padding-left: 1.5rem;
}

.player-right .name-box {
    border-left: none;
    border-right: 6px solid #00bbff;
    padding-left: 0;
    padding-right: 1.5rem;
    text-align: right;
}

.name-box .label {
    font-size: 0.8rem;
    font-weight: 900;
    color: #666;
    letter-spacing: 3px;
}

.name-box h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    font-style: italic;
    letter-spacing: -1px;
}

.vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.vs-logo {
    font-size: 7rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
    animation: vsPulse 2s infinite;
}

.match-meta {
    text-align: center;
    margin-top: -1rem;
}

.match-meta p {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ff0055;
    background: #fff;
    padding: 0.4rem 1.5rem;
    transform: skewX(-20deg);
}

.stage-name {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.5;
}

@keyframes vsPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.report-overlay {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timer-float {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.7rem 2.5rem;
    border-radius: 50px;
    border: 2px solid #ff0055;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
}

.timer-float span {
    font-size: 1.8rem;
    font-family: monospace;
    font-weight: 900;
    color: #fff;
}

.report-controls {
    background: rgba(10, 10, 10, 0.98);
    padding: 1.5rem 3.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.report-controls h3 {
    font-size: 0.85rem;
    font-weight: 950;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: #666;
}

.report-controls .btns {
    display: flex;
    gap: 1.2rem;
}

.btn-premium {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium.win {
    background: #00ff88;
    color: #111;
}

.btn-premium.loss {
    background: #ff4444;
    color: #fff;
}

.btn-premium:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0 25px currentColor;
}

/* Navbar Profile Picture */
.nav-profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    flex-shrink: 0;
}

.default-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 40, 40, 0.8);
    font-size: 1rem;
    color: #aaa;
}