/* =========================
   RESET
========================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:#fff;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(15,23,42,.9);
    backdrop-filter:blur(12px);
    z-index:999;
}

header .container{

    height:80px;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

.logo{

    display:flex;
    align-items:center;
    gap:15px;

    text-decoration:none;
    color:white;

    font-size:30px;
    font-weight:700;

}

.logo img{

    width:52px;
    height:52px;

    object-fit:contain;

    transition:.3s;

}

.logo:hover img{

    transform:rotate(-5deg) scale(1.05);

}

.logo span{

    color:white;

}

.nav-links{

    display:flex;
    list-style:none;
    gap:40px;

}

.nav-links a{

    color:white;
    text-decoration:none;
    font-size:17px;
    transition:.3s;

}

.nav-links a:hover{

    color:#3b82f6;

}

/* Botón hamburguesa */

.menu-toggle{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:32px;

    cursor:pointer;

}

/* =====================================================
   HEADER - CLEAN DESKTOP DESIGN
===================================================== */

#header{

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

}


/* =====================================================
   HEADER CONTAINER
===================================================== */

.header-container{

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 76px;

}


/* =====================================================
   LOGO
===================================================== */

.logo{

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: #ffffff;

}


.logo img{

    width: 42px;
    height: 42px;

    object-fit: contain;

}


.logo span{

    font-size: 18px;

    font-weight: 700;

    letter-spacing: -0.02em;

}


/* =====================================================
   NAVIGATION
===================================================== */

#navbar{

    position: absolute;

    top: 78px;

    right: 20px;

    min-width: 220px;

    padding: 10px;

    border-radius: 18px;

    background:
        rgba(15, 23, 42, 0.94);

    border:
        1px solid
        rgba(148, 163, 184, 0.14);

    box-shadow:
        0 20px 60px
        rgba(0,0,0,0.35);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-10px)
        scale(0.97);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

}


/* OPEN MENU */

#navbar.active{

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

}


/* =====================================================
   NAV LINKS
===================================================== */

.nav-links{

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin: 0;

    padding: 0;

    list-style: none;

}


.nav-links li{

    width: 100%;

}


.nav-links a{

    display: flex;

    align-items: center;

    width: 100%;

    padding:
        12px
        14px;

    border-radius: 10px;

    color:
        #cbd5e1;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.nav-links a:hover{

    color:
        #ffffff;

    background:
        rgba(59,130,246,0.12);

    transform:
        translateX(3px);

}


/* =====================================================
   HEADER ACTIONS
===================================================== */

.header-actions{

    display: flex;

    align-items: center;

    gap: 10px;

}


/* =====================================================
   HAMBURGER
===================================================== */

.menu-toggle{

    width: 44px;
    height: 44px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding: 0;

    border: 1px solid
        rgba(148,163,184,0.14);

    border-radius: 12px;

    background:
        rgba(15,23,42,0.72);

    color: #ffffff;

    cursor: pointer;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.menu-toggle span{

    display: block;

    width: 18px;
    height: 2px;

    border-radius: 999px;

    background:
        #ffffff;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;

}


.menu-toggle:hover{

    background:
        rgba(37,99,235,0.2);

    border-color:
        rgba(96,165,250,0.35);

    transform:
        translateY(-1px);

}


/* =====================================================
   HAMBURGER → X
===================================================== */

.menu-toggle.active span:nth-child(1){

    transform:
        translateY(7px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2){

    opacity: 0;

}


.menu-toggle.active span:nth-child(3){

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =====================================================
   PROFILE BUTTON
===================================================== */

.login-btn{

    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        0
        14px;

    border:
        1px solid
        rgba(148,163,184,0.14);

    border-radius: 12px;

    background:
        rgba(15,23,42,0.72);

    color:
        #ffffff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.login-btn:hover{

    background:
        rgba(37,99,235,0.2);

    border-color:
        rgba(96,165,250,0.35);

    transform:
        translateY(-1px);

}


.profile-icon{

    font-size: 16px;

    line-height: 1;

}


.profile-text{

    font-size: 13px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px){

    .header-container{

        min-height: 68px;

    }


    .logo img{

        width: 38px;
        height: 38px;

    }


    .logo span{

        font-size: 16px;

    }


    #navbar{

        top: 70px;

        left: 15px;

        right: 15px;

        width: auto;

    }


    .profile-text{

        display: none;

    }


    .login-btn{

        width: 44px;

        padding: 0;

    }

}


/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 400px){

    .logo span{

        display: none;

    }

}

/* =========================
   HERO
========================= */

#home{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:120px 20px;

}

.hero-content{

    max-width:800px;

}

.hero-content h1{

    font-size:70px;
    line-height:1.1;

}

.hero-content span{

    color:#3b82f6;

}

.hero-content p{

    margin-top:30px;

    font-size:22px;

    color:#cbd5e1;

    line-height:1.7;

}

.hero-content button{

    margin-top:45px;

    background:#2563eb;

    color:white;

    border:none;

    padding:18px 42px;

    border-radius:12px;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

.hero-content button:hover{

    transform:translateY(-5px);

    background:#3b82f6;

}

/* =========================
   SECCIONES
========================= */

section:not(#home){

    width:90%;
    max-width:1200px;

    margin:120px auto;

}

section h2{

    font-size:42px;

}

/* =========================
   OUR GAMES
========================= */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:48px;
    margin-bottom:15px;
}

.section-title p{
    color:#94a3b8;
    font-size:18px;
    max-width:700px;
    margin:0 auto;
}

.games-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}


/* =========================
   GAME CARD
========================= */

.game-card{

    position:relative;

    background:#182235;

    border-radius:20px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}


.game-card:hover{

    transform:translateY(-10px);

    box-shadow:
        0 20px 50px rgba(37,99,235,.25);

    border-color:
        rgba(59,130,246,.45);

}


/* =========================
   GAME IMAGE
========================= */

.game-image-wrapper{

    position:relative;

    width:100%;

    height:220px;

    overflow:hidden;

    background:#111827;

}


.game-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:
        transform .5s ease,
        filter .5s ease;

}


.game-card:hover img{

    transform:scale(1.07);

    filter:brightness(1.08);

}


/* =========================
   GAME BADGES
========================= */

.game-badges{

    position:absolute;

    top:15px;

    left:15px;

    right:15px;

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}


.game-badge{

    padding:6px 11px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

    color:white;

    backdrop-filter:blur(8px);

    box-shadow:
        0 5px 15px rgba(0,0,0,.25);

}


/* Featured */

.game-badge.featured{

    background:
        rgba(37,99,235,.90);

}


/* New */

.game-badge.new{

    background:
        rgba(22,163,74,.90);

}


/* Hot */

.game-badge.hot{

    background:
        rgba(239,68,68,.90);

}


/* =========================
   GAME INFO
========================= */

.game-info{

    padding:28px;

}


.game-status{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    margin-bottom:15px;

}


/* Released */

.game-status.released{

    background:#166534;

    color:#bbf7d0;

}


/* In Development */

.game-status.development{

    background:#78350f;

    color:#fed7aa;

}


.game-info h3{

    font-size:26px;

    line-height:1.3;

    margin-bottom:12px;

}


.game-info p{

    color:#cbd5e1;

    line-height:1.7;

    margin-bottom:20px;

}


/* =========================
   GAME STATS
========================= */

.game-stats{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:25px;

}


.game-stats span{

    color:#94a3b8;

    font-size:14px;

}


/* =========================
   PLAY BUTTON
========================= */

.game-info .play-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    width:100%;

    padding:14px 20px;

    background:#2563eb;

    color:white;

    border-radius:12px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}


.game-info .play-btn:hover{

    background:#3b82f6;

    transform:translateY(-2px);

}
/* =========================
   PREMIUM GAME CARDS
========================= */

.game-card{

    position:relative;

}

.game-card::before{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:100%;

    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );

    transition:.7s;

}

.game-card:hover::before{

    left:100%;

}

.game-card img{

    transition:.4s;

}

.game-card:hover img{

    transform:scale(1.05);

}

.play-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

}

.play-btn::before{

    content:"▶";

    font-size:13px;

}

.development{

    background:#f59e0b;

    color:#111827;

}

/* =========================
   HERO V4
========================= */

.hero-content{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;

    width:100%;
    max-width:1200px;

}

.hero-text{

    flex:1;

}

.hero-image{

    flex:1;

    display:flex;
    justify-content:center;

}

.hero-image img{

    width:100%;
    max-width:380px;
    height:auto;

}

.hero-buttons{

    display:flex;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;

}

.hero-btn{

    text-decoration:none;

    padding:16px 32px;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.hero-btn.primary{

    background:#2563eb;
    color:white;

}

.hero-btn.primary:hover{

    background:#3b82f6;

}

.hero-btn.secondary{

    border:2px solid #3b82f6;
    color:white;

}

.hero-btn.secondary:hover{

    background:#3b82f6;

}

/* =========================
   ABOUT
========================= */

.about-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    margin-top:60px;

}

.about-card{

    background:#182235;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px 30px;

    text-align:center;

    transition:.35s;

}

.about-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

}

.about-icon{

    font-size:60px;

    margin-bottom:20px;

}

.about-card h3{

    font-size:28px;

    margin-bottom:15px;

}

.about-card p{

    color:#cbd5e1;

    line-height:1.8;

}

/* =========================
   STUDIO STATS
========================= */

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

    margin-top:60px;

}

.stat-card{

    background:#182235;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px 25px;

    text-align:center;

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

}

.stat-icon{

    font-size:55px;

    margin-bottom:20px;

}

.stat-card h3{

    font-size:34px;

    color:#3b82f6;

    margin-bottom:10px;

}

.stat-card p{

    font-size:18px;

    color:#cbd5e1;

}

/* =========================
   COMMUNITY
========================= */

.community-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

    margin-top:60px;

}

.community-card{

    background:#182235;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px 25px;

    text-align:center;

    text-decoration:none;

    color:white;

    transition:.35s;

}

.community-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

    border-color:#3b82f6;

}

.community-icon{

    font-size:55px;

    margin-bottom:20px;

}

.community-card h3{

    font-size:26px;

    margin-bottom:15px;

}

.community-card p{

    color:#cbd5e1;

    line-height:1.7;

}

/* =========================
   CONTACT
========================= */

.contact-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    margin-top:60px;

}

.contact-card{

    background:#182235;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px 30px;

    text-align:center;

    transition:.35s;

}

.contact-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

    border-color:#3b82f6;

}

.contact-icon{

    font-size:55px;

    margin-bottom:20px;

}

.contact-card h3{

    font-size:28px;

    margin-bottom:15px;

}

.contact-card p{

    color:#cbd5e1;

    line-height:1.7;

}

/* =========================
   FOOTER
========================= */

footer{

    background:#0b1220;

    margin-top:120px;

    padding:70px 0 30px;

    border-top:1px solid rgba(255,255,255,.08);

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

}

.footer-brand img{

    width:70px;

    margin-bottom:20px;

}

.footer-brand h3{

    font-size:28px;

    margin-bottom:15px;

}

.footer-brand p{

    color:#cbd5e1;

    line-height:1.8;

    max-width:350px;

}

.footer-links,
.footer-social{

    display:flex;

    flex-direction:column;

}

.footer-links h4,
.footer-social h4{

    margin-bottom:20px;

    font-size:20px;

}

.footer-links a,
.footer-social a{

    color:#cbd5e1;

    text-decoration:none;

    margin-bottom:12px;

    transition:.3s;

}

.footer-links a:hover,
.footer-social a:hover{

    color:#3b82f6;

}

.footer-bottom{

    margin-top:50px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.08);

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

}

.footer-bottom p{

    color:#94a3b8;

}

/* =========================
   STUDIO STATS
========================= */

.stats-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;

}

.stat-card{

    background:#182235;

    border-radius:18px;

    padding:35px;

    text-align:center;

    border:1px solid rgba(255,255,255,.08);

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

}

.stat-card h3{

    font-size:42px;

    color:#3b82f6;

    margin-bottom:10px;

}

.stat-card p{

    color:#cbd5e1;

    font-size:18px;

}

/* =========================
   FEATURED GAME
========================= */

#featured{

    margin:100px auto;

}

.featured-card{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;

    background:linear-gradient(135deg,#1e293b,#111827);

    border-radius:25px;

    padding:60px;

    border:1px solid rgba(255,255,255,.08);

}

.featured-info{

    flex:1;

}

.featured-tag{

    display:inline-block;

    background:#2563eb;

    padding:8px 18px;

    border-radius:999px;

    margin-bottom:20px;

    font-size:14px;

    font-weight:600;

}

.featured-info h2{

    font-size:54px;

    margin-bottom:20px;

}

.featured-info p{

    color:#cbd5e1;

    font-size:20px;

    line-height:1.8;

    margin-bottom:35px;

}

.featured-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.secondary-btn{

    background:#334155;

}

.secondary-btn:hover{

    background:#475569;

}

.featured-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.featured-image img{

    width:100%;

    max-width:500px;

    border-radius:20px;

    box-shadow:0 25px 60px rgba(0,0,0,.35);

}

/* =========================
   STATUS BAR
========================= */

.status-bar{

    background:#111827;

    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);

    padding:12px 0;

}

.status-bar .container{

    display:flex;

    justify-content:center;
    align-items:center;
    gap:40px;

    flex-wrap:wrap;

}

.status-bar span{

    color:#ffffff;

    font-size:15px;
    font-weight:600;

    white-space:nowrap;

}

/* ==========================================
   STATUS COLORS
========================================== */

#system-status{

    padding:8px 16px;

    border-radius:999px;

    font-weight:600;

    transition:.35s;

}

/* 🟢 Operational */

.status-operational{

    background:#16a34a;

    color:white;

}

/* 🟡 Minor Issues */

.status-minor{

    background:#eab308;

    color:#111827;

}

/* 🟠 Maintenance */

.status-maintenance{

    background:#f97316;

    color:white;

}

/* 🔴 Outage */

.status-outage{

    background:#dc2626;

    color:white;

}

/* ==========================================
   STATUS BAR COLORS
========================================== */

#status-bar{

    transition:
        background .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;

}

/* 🟢 */

.statusbar-operational{

    background:#14532d;

    border-bottom:1px solid #22c55e;

}

/* 🟡 */

.statusbar-minor{

    background:#713f12;

    border-bottom:1px solid #facc15;

}

/* 🟠 */

.statusbar-maintenance{

    background:#7c2d12;

    border-bottom:1px solid #fb923c;

}

/* 🔴 */

.statusbar-outage{

    background:#7f1d1d;

    border-bottom:1px solid #ef4444;

}

/* =========================
   STUDIO NEWS
========================= */

.news-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.news-card{

    background:#1e293b;

    border-radius:18px;

    padding:25px;

    transition:.3s;

    border:1px solid rgba(255,255,255,.08);

}

.news-card:hover{

    transform:translateY(-6px);

}

.news-date{

    color:#60a5fa;

    font-size:14px;

    font-weight:600;

}

.news-card h3{

    margin:15px 0;

    color:white;

}

.news-card p{

    color:#cbd5e1;

    line-height:1.7;

}

.news-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.news-category{

    background:#2563eb;

    color:white;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

    letter-spacing:.5px;

}

.news-date{

    color:#94a3b8;

    font-size:14px;

}

.news-card h3{

    margin:15px 0;

    font-size:24px;

}

.news-card p{

    margin:0;

    line-height:1.7;

}

/* =========================
   GAMES SEARCH
========================= */

.games-search{

    display:flex;

    justify-content:center;

    margin:40px 0;

}

.games-search input{

    width:100%;
    max-width:500px;

    padding:16px 22px;

    border:none;

    border-radius:14px;

    background:#1e293b;

    color:white;

    font-size:16px;

    outline:none;

    transition:.3s;

}

.games-search input:focus{

    box-shadow:0 0 0 3px rgba(37,99,235,.35);

}

.games-search input::placeholder{

    color:#94a3b8;

}

/* ==========================================
   LOADING SCREEN
========================================== */

#loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .6s ease, visibility .6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.loader-content p {
    color: #cbd5e1;
    margin-bottom: 25px;
    font-size: 1rem;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    margin: auto;
    border: 4px solid rgba(255,255,255,.15);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes logoFloat {

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

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

}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes */

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all .8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all .8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(.9);
    transition: all .8s ease;
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   STAGGER ANIMATION
========================================== */

.stagger {

    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .7s ease,
        transform .7s ease;

    will-change: opacity, transform;

}

.stagger.active {

    opacity: 1;
    transform: translateY(0);

}

/* ==========================================
   UPDATE CENTER
========================================== */

#update-center{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999999;

    backdrop-filter:blur(8px);

}

.update-box{

    width:500px;

    max-width:90%;

    background:#182235;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px;

    color:white;

    animation:updatePop .35s ease;

}

.update-box h2{

    margin-bottom:15px;

    color:#60a5fa;

}

.update-box p{

    color:#cbd5e1;

    margin-bottom:20px;

}

.update-box ul{

    padding-left:20px;

    margin-bottom:25px;

}

.update-box li{

    margin-bottom:10px;

    color:#e2e8f0;

}

.update-buttons{

    display:flex;

    justify-content:flex-end;

    gap:12px;

}

.update-buttons button{

    padding:12px 22px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

}

#later-update{

    background:#334155;

    color:white;

}

#update-now{

    background:#2563eb;

    color:white;

}

#update-now:hover{

    background:#3b82f6;

}

@keyframes updatePop{

    from{

        opacity:0;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

/* ==========================================
   LOGIN BUTTON
========================================== */

.login-btn{

    background:#2563eb;

    color:white;

    border:none;

    border-radius:10px;

    padding:10px 18px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.login-btn:hover{

    background:#3b82f6;

    transform:translateY(-2px);

}

/* ==========================================
   USER PANEL
========================================== */

#user-menu{

    position:fixed;

    width:230px;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

    z-index:99999;

    animation:userMenu .25s ease;

}

@keyframes userMenu{

    from{

        opacity:0;
        transform:translateY(-12px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.user-header{

    display:flex;

    align-items:center;

    gap:12px;

    padding:18px;

    background:#1e293b;

}

.user-avatar{

    width:50px;
    height:50px;

    border-radius:50%;

    object-fit:cover;

}

.user-header strong{

    display:block;

    color:white;

    font-size:17px;

}

.user-header p{

    color:#94a3b8;

    font-size:13px;

    margin-top:3px;

}

#user-menu hr{

    border:none;

    border-top:1px solid rgba(255,255,255,.08);

}

#user-menu button{

    width:100%;

    background:none;

    border:none;

    color:white;

    text-align:left;

    padding:15px 18px;

    cursor:pointer;

    transition:.25s;

    font-size:15px;

}

#user-menu button:hover{

    background:#2563eb;

}

/* ==========================================
   PROFILE MODAL
========================================== */

#profile-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999999;

    animation:fadeProfile .25s ease;

}

@keyframes fadeProfile{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

.profile-card{

    width:430px;

    max-width:92%;

    background:#111827;

    border-radius:22px;

    padding:35px;

    text-align:center;

    position:relative;

    color:white;

    box-shadow:0 20px 60px rgba(0,0,0,.45);

}

.profile-avatar{

    width:110px;

    height:110px;

    border-radius:50%;

    margin-bottom:20px;

}

#close-profile{

    position:absolute;

    right:20px;

    top:20px;

    background:none;

    border:none;

    color:white;

    font-size:24px;

    cursor:pointer;

}

.profile-info{

    margin-top:30px;

    display:grid;

    gap:15px;

}

.profile-info div{

    background:#1e293b;

    border-radius:12px;

    padding:15px;

}

.profile-info span{

    display:block;

    color:#94a3b8;

    font-size:13px;

}

.profile-info strong{

    font-size:17px;

}

/* ==========================
   GAMES TOOLBAR
========================== */

.games-toolbar{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    margin-top:35px;

    flex-wrap:wrap;

}

#game-search{

    width:350px;

    max-width:100%;

    padding:14px 18px;

    border:none;

    outline:none;

    border-radius:12px;

    background:#1e293b;

    color:white;

    font-size:15px;

}

#game-search::placeholder{

    color:#94a3b8;

}

#game-filter{

    padding:14px 18px;

    border:none;

    border-radius:12px;

    background:#1e293b;

    color:white;

    cursor:pointer;

}

.no-games{

    margin-top:40px;

    text-align:center;

    font-size:20px;

    color:#94a3b8;

}

/* ==========================================
   GAME DETAILS MODAL
========================================== */

.game-modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    padding:30px;

    z-index:999999;

}

.game-modal.active{

    display:flex;

}


/* =========================
   OVERLAY
========================= */

.game-modal-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.75);

    backdrop-filter:blur(10px);

}


/* =========================
   MODAL BOX
========================= */

.game-modal-box{

    position:relative;

    width:900px;

    max-width:100%;

    max-height:90vh;

    overflow-y:auto;

    background:#111827;

    border:1px solid rgba(255,255,255,.1);

    border-radius:24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.5);

    animation:gameModalOpen .3s ease;

}


@keyframes gameModalOpen{

    from{

        opacity:0;

        transform:scale(.92)
        translateY(20px);

    }

    to{

        opacity:1;

        transform:scale(1)
        translateY(0);

    }

}


/* =========================
   CLOSE BUTTON
========================= */

.close-game-modal{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:white;

    font-size:20px;

    cursor:pointer;

    z-index:5;

    transition:.3s;

}


.close-game-modal:hover{

    background:#ef4444;

    transform:rotate(90deg);

}


/* =========================
   GAME IMAGE
========================= */

.game-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

    position:relative;

    z-index:0;

    transition:
        transform .5s ease,
        filter .5s ease;

}


/* =========================
   CONTENT
========================= */

.game-modal-content{

    padding:35px;

}


.game-modal-header{

    margin-bottom:15px;

}


.game-modal-header h2{

    font-size:42px;

    margin-top:10px;

    line-height:1.2;

}


.game-modal-description{

    color:#cbd5e1;

    font-size:17px;

    line-height:1.8;

    margin-bottom:30px;

}


/* =========================
   STATS
========================= */

.game-modal-stats{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(150px,1fr));

    gap:15px;

    margin-bottom:30px;

}


.modal-stat{

    display:flex;

    align-items:center;

    gap:12px;

    padding:18px;

    background:#1e293b;

    border-radius:14px;

    border:1px solid
        rgba(255,255,255,.06);

}


.modal-stat-icon{

    font-size:28px;

}


.modal-stat small{

    display:block;

    color:#94a3b8;

    font-size:12px;

    margin-bottom:4px;

}


.modal-stat strong{

    display:block;

    color:white;

    font-size:16px;

}


/* =========================
   UPDATE
========================= */

.game-modal-update{

    background:#182235;

    border-radius:15px;

    padding:20px;

    margin-bottom:30px;

    border-left:4px solid #2563eb;

}


.game-modal-update h3{

    font-size:18px;

    margin-bottom:8px;

}


.game-modal-update p{

    color:#cbd5e1;

    line-height:1.7;

}


/* =========================
   BUTTONS
========================= */

.game-modal-buttons{

    display:flex;

    gap:15px;

}


.game-modal-buttons .play-btn{

    flex:1;

    justify-content:center;

}


/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .game-modal{

        padding:15px;

    }

    .game-modal-box{

        max-height:92vh;

        border-radius:18px;

    }

    .game-modal-image{

        height:220px;

    }

    .game-modal-content{

        padding:25px;

    }

    .game-modal-header h2{

        font-size:32px;

    }

    .game-modal-description{

        font-size:15px;

    }

    .game-modal-stats{

        grid-template-columns:1fr;

    }

}

@media (max-width:480px){

    .game-modal-image{

        height:180px;

    }

    .game-modal-content{

        padding:20px;

    }

    .game-modal-header h2{

        font-size:28px;

    }

}

/* ==========================================
   GAME MODAL - EXTRA STATS
========================================== */

.game-modal-extra{

    margin-top:20px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,0.08);

}


.game-extra-item{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:12px 0;

}


.game-extra-item span{

    color:#94a3b8;

    font-size:14px;

}


.game-extra-item strong{

    color:#ffffff;

    font-size:15px;

    font-weight:600;

}


/* ==========================================
   GAME MODAL - BUTTONS
========================================== */

.game-modal-buttons{

    display:flex;

    align-items:center;

    gap:12px;

    margin-top:24px;

    flex-wrap:wrap;

}


.game-modal-buttons .play-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

}


/* ==========================================
   COPY GAME BUTTON
========================================== */

.copy-game-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:12px 18px;

    border:none;

    border-radius:10px;

    background:#1e293b;

    color:#ffffff;

    font-family:inherit;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:

        background 0.2s ease,

        transform 0.2s ease,

        opacity 0.2s ease;

}


.copy-game-btn:hover{

    background:#334155;

    transform:translateY(-1px);

}


.copy-game-btn:active{

    transform:translateY(0);

}


.copy-game-btn:focus-visible{

    outline:2px solid #60a5fa;

    outline-offset:2px;

}


/* ==========================================
   MODAL STATS - 4 ITEMS
========================================== */

.game-modal-stats{

    display:grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:12px;

    margin-top:24px;

}


.modal-stat{

    min-width:0;

}


/* ==========================================
   MODAL RESPONSIVE
========================================== */

@media(max-width:768px){

    .game-modal-stats{

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .game-modal-buttons{

        flex-direction:column;

        align-items:stretch;

    }


    .game-modal-buttons .play-btn,
    .copy-game-btn{

        width:100%;

    }

}


@media(max-width:480px){

    .game-modal-stats{

        grid-template-columns:1fr;

    }


    .game-extra-item{

        align-items:flex-start;

        flex-direction:column;

        gap:5px;

    }

}

/* ==========================================
   FEATURED GAME BUTTONS FIX
========================================== */

.featured-buttons .play-btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:8px;

    padding:14px 28px;

    border-radius:10px;

    background:#2563eb;

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.featured-buttons .play-btn:hover{

    background:#3b82f6;

    transform:translateY(-3px);

}

.featured-buttons .secondary-btn{

    background:#334155;

    color:white;

}

.featured-buttons .secondary-btn:hover{

    background:#475569;

}

/* ==========================================
   GAME CARDS CONTENT FIX
========================================== */

.game-card{

    position:relative;

    overflow:hidden;

}

.game-card::before{

    z-index:1;

    pointer-events:none;

}

.game-card img{

    position:relative;

    z-index:0;

}

.game-info{

    position:relative;

    z-index:2;

    display:block;

    visibility:visible;

    opacity:1;

}

/* ==========================================
   FIX - OUR GAMES CONTENT
========================================== */

.game-card {
    position: relative;
    overflow: hidden;
}

.game-card img {
    position: relative;
    z-index: 1;
    display: block;
}

.game-card .game-info {
    position: relative;
    z-index: 5;

    display: block;

    padding: 25px;

    background: #182235;

    color: white;
}

.game-card .game-info h3 {
    display: block;

    color: white;

    font-size: 28px;

    margin: 15px 0;
}

.game-card .game-info p {
    display: block;

    color: #cbd5e1;

    line-height: 1.7;

    margin-bottom: 25px;
}

.game-card .game-status {
    display: inline-block;

    color: white;

    margin-bottom: 5px;
}

.game-card .game-stats {
    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    margin-bottom: 20px;

    color: #cbd5e1;
}

.game-card .play-btn {
    position: relative;

    z-index: 10;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    padding: 14px 28px;

    border-radius: 10px;

    font-weight: 600;

    transition: .3s;
}

.game-card .play-btn:hover {

    background: #3b82f6;

    transform: translateY(-3px);

}

/* ==========================================
   FINAL FIX - OUR GAMES
========================================== */

.game-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.game-card > img{
    width:100%;
    height:220px;
    min-height:220px;
    object-fit:cover;
    display:block;
    flex-shrink:0;
}

.game-card .game-info{
    display:block;
    width:100%;
    height:auto;
    padding:25px;
    background:#182235;
    position:relative;
    z-index:5;
}

.game-card .game-info h3{
    display:block;
    color:#fff;
}

.game-card .game-info p{
    display:block;
    color:#cbd5e1;
}

.game-card .game-stats{
    display:flex;
}

.game-card .play-btn{
    display:inline-flex;
}

/* ==========================================
   GAME MODAL - PLAY BUTTON FIX
========================================== */

.game-modal-buttons .play-btn{

    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;

    padding:15px 25px;

    background:#2563eb;

    color:white;

    border:none;

    border-radius:12px;

    text-decoration:none;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;

}

.game-modal-buttons .play-btn::before{

    content:"▶";

    font-size:13px;

}

.game-modal-buttons .play-btn:hover{

    background:#3b82f6;

    transform:translateY(-3px);

    box-shadow:
        0 10px 25px rgba(37,99,235,.35);

}

/* ==========================================
   GAME MODAL - PROFESSIONAL ANIMATION
========================================== */

/* ==========================
   MODAL CONTAINER
========================== */

.game-modal{

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


/* ==========================
   MODAL ACTIVE
========================== */

.game-modal.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}


/* ==========================
   OVERLAY
========================== */

.game-modal-overlay{

    opacity:0;

    transition:
        opacity 0.35s ease;

}


.game-modal.active .game-modal-overlay{

    opacity:1;

}


/* ==========================
   MODAL BOX
========================== */

.game-modal-box{

    opacity:0;

    transform:
        translateY(30px)
        scale(0.96);

    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );

}


/* ==========================
   MODAL BOX ACTIVE
========================== */

.game-modal.active .game-modal-box{

    opacity:1;

    transform:
        translateY(0)
        scale(1);

}


/* ==========================
   IMAGE ANIMATION
========================== */

.game-modal-image{

    overflow:hidden;

}


.game-modal-image img{

    transform:scale(1.04);

    opacity:0;

    transition:
        transform 0.6s ease,
        opacity 0.4s ease;

}


.game-modal.active .game-modal-image img{

    transform:scale(1);

    opacity:1;

}


/* ==========================
   CONTENT ANIMATION
========================== */

.game-modal-content{

    opacity:0;

    transform:
        translateY(12px);

    transition:
        opacity 0.35s ease 0.12s,
        transform 0.4s ease 0.12s;

}


.game-modal.active .game-modal-content{

    opacity:1;

    transform:
        translateY(0);

}


/* ==========================
   STATS ANIMATION
========================== */

.game-modal.active .modal-stat{

    animation:
        modalStatIn
        0.4s ease both;

}


.game-modal.active .modal-stat:nth-child(1){

    animation-delay:0.15s;

}


.game-modal.active .modal-stat:nth-child(2){

    animation-delay:0.20s;

}


.game-modal.active .modal-stat:nth-child(3){

    animation-delay:0.25s;

}


.game-modal.active .modal-stat:nth-child(4){

    animation-delay:0.30s;

}


@keyframes modalStatIn{

    from{

        opacity:0;

        transform:
            translateY(8px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}


/* ==========================
   BUTTON ANIMATION
========================== */

.game-modal-buttons{

    opacity:0;

    transform:
        translateY(8px);

    transition:
        opacity 0.35s ease 0.25s,
        transform 0.35s ease 0.25s;

}


.game-modal.active .game-modal-buttons{

    opacity:1;

    transform:
        translateY(0);

}


/* ==========================
   CLOSE BUTTON
========================== */

.close-game-modal{

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}


.close-game-modal:hover{

    transform:
        rotate(90deg)
        scale(1.08);

}


/* ==========================
   REDUCED MOTION
========================== */

@media(prefers-reduced-motion:reduce){

    .game-modal,
    .game-modal-overlay,
    .game-modal-box,
    .game-modal-image img,
    .game-modal-content,
    .game-modal-buttons,
    .close-game-modal{

        transition:none !important;

        animation:none !important;

    }

}

/* ==========================================
   MANATON GAMES USER PANEL
========================================== */

.mg-user-panel-button{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    white-space:nowrap;

    cursor:pointer;

}


.user-panel-icon{

    font-size:16px;

}


.user-panel-name{

    max-width:150px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


.user-panel-arrow{

    font-size:10px;

    opacity:.7;

}


/* ==========================================
   USER MENU
========================================== */

#user-menu{

    position:fixed;

    width:250px;

    padding:10px;

    background:rgba(15,23,42,.98);

    border:1px solid rgba(255,255,255,.10);

    border-radius:16px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    z-index:99999;

    animation:
        userMenuIn .18s ease;

}


@keyframes userMenuIn{

    from{

        opacity:0;

        transform:
            translateY(-6px)
            scale(.97);

    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ==========================================
   USER HEADER
========================================== */

.user-header{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px;

}


.user-avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

}


.user-header-info{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;

}


.user-header-info strong{

    color:white;

    font-size:14px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


.user-header-info span{

    color:#94a3b8;

    font-size:12px;

}


/* ==========================================
   ROBLOX INFO
========================================== */

.user-roblox-info{

    display:flex;

    align-items:center;

    gap:10px;

    margin:4px 4px 8px;

    padding:10px;

    border-radius:12px;

    background:rgba(255,255,255,.05);

}


.user-roblox-icon{

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:10px;

    background:rgba(37,99,235,.15);

    font-size:17px;

}


.user-roblox-data{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;

}


.user-roblox-data strong{

    color:white;

    font-size:13px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


.user-roblox-data span{

    color:#60a5fa;

    font-size:11px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


/* ==========================================
   DIVIDER
========================================== */

.user-menu-divider{

    height:1px;

    margin:7px 4px;

    background:rgba(255,255,255,.08);

}


/* ==========================================
   MENU ITEMS
========================================== */

.user-menu-item{

    width:100%;

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px 12px;

    border:0;

    border-radius:10px;

    background:transparent;

    color:#e2e8f0;

    font-size:14px;

    text-align:left;

    cursor:pointer;

    transition:
        background .15s ease,
        transform .15s ease;

}


.user-menu-item:hover{

    background:rgba(255,255,255,.07);

    transform:translateX(2px);

}


.user-menu-item span:first-child{

    width:20px;

    text-align:center;

}


/* ==========================================
   LOGOUT
========================================== */

.logout-item{

    color:#fca5a5;

}


.logout-item:hover{

    background:rgba(239,68,68,.10);

}


/* ==========================================
   PROFILE MODAL
========================================== */

#profile-modal{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:24px;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

    z-index:100000;

    overflow-y:auto;

}


.profile-card{

    position:relative;

    width:min(100%, 430px);

    max-height:
        calc(100vh - 48px);

    overflow-y:auto;

    margin:auto;

    padding:30px;

    border-radius:22px;

    background:#0f172a;

    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 25px 80px rgba(0,0,0,.45);

    text-align:center;

    animation:
        profileIn .2s ease;

}


@keyframes profileIn{

    from{

        opacity:0;

        transform:
            translateY(10px)
            scale(.97);

    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ==========================================
   PROFILE CLOSE
========================================== */

#close-profile{

    position:absolute;

    top:14px;

    right:14px;

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:0;

    border-radius:10px;

    background:rgba(255,255,255,.06);

    color:#cbd5e1;

    cursor:pointer;

    font-size:16px;

    transition:.15s ease;

}


#close-profile:hover{

    background:rgba(255,255,255,.12);

    color:white;

}


/* ==========================================
   PROFILE AVATAR
========================================== */

.profile-avatar{

    width:88px;

    height:88px;

    margin:4px auto 14px;

    display:block;

    border-radius:50%;

    object-fit:cover;

    border:3px solid rgba(255,255,255,.08);

}


.profile-card h2{

    margin:0;

    color:white;

}


.profile-card > p{

    margin:6px 0 22px;

    color:#94a3b8;

    font-size:13px;

}


/* ==========================================
   PROFILE INFO
========================================== */

.profile-info{

    display:flex;

    flex-direction:column;

    gap:8px;

    text-align:left;

}


.profile-info > div{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    padding:12px 14px;

    border-radius:12px;

    background:rgba(255,255,255,.045);

}


.profile-info span{

    color:#94a3b8;

    font-size:12px;

}


.profile-info strong{

    color:#f8fafc;

    font-size:13px;

    text-align:right;

}


/* ==========================================
   ROBLOX PROFILE SECTION
========================================== */

.roblox-profile-section{

    margin-top:18px;

    padding:15px;

    border-radius:15px;

    background:rgba(255,255,255,.045);

    text-align:left;

}


.roblox-profile-title{

    color:white;

    font-weight:600;

    margin-bottom:8px;

}


.roblox-account-status{

    color:#94a3b8;

    font-size:12px;

    margin-bottom:12px;

}


.profile-action-btn{

    width:100%;

    padding:10px 14px;

    border:0;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.15s ease;

}


.profile-action-btn:hover{

    background:#3b82f6;

    transform:translateY(-1px);

}

/* ==========================================
   ROBLOX PROFILE SECTION
========================================== */

.roblox-profile-section {
    width: 100%;
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    text-align: center;
}


/* ==========================================
   TITLE
========================================== */

.roblox-profile-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 18px;

    font-size: 17px;
    font-weight: 700;
}


/* ==========================================
   ACCOUNT STATUS
========================================== */

.roblox-account-status {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ==========================================
   LINKED USER
========================================== */

.roblox-linked-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    text-align: center;
}


/* ==========================================
   ROBLOX AVATAR
========================================== */

.roblox-linked-avatar {
    width: 96px;
    height: 96px;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    margin: 0 auto 14px;

    border: 3px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    background: #111827;
}


/* ==========================================
   USERNAME
========================================== */

.roblox-linked-user strong {
    display: block;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 5px;
}


/* ==========================================
   USER ID
========================================== */

.roblox-linked-user span {
    display: block;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.55);

    line-height: 1.4;
}


/* ==========================================
   CHANGE / LINK BUTTON
========================================== */

.roblox-profile-section
.profile-action-btn {
    width: 100%;

    margin-top: 20px;

    min-height: 44px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


.roblox-profile-section
.profile-action-btn:hover {
    transform: translateY(-2px);
}


.roblox-profile-section
.profile-action-btn:active {
    transform: translateY(0);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .roblox-profile-section {
        padding: 18px;
        margin-top: 20px;
    }


    .roblox-linked-avatar {
        width: 84px;
        height: 84px;
    }


    .roblox-linked-user strong {
        font-size: 16px;
    }


    .roblox-linked-user span {
        font-size: 12px;
    }

}

/* ==========================================
   MANATON GAMES - ROBLOX ACCOUNT UI
========================================== */


/* ==========================================
   ROBLOX PROFILE SECTION
========================================== */

.roblox-profile-section {
    width: 100%;
    margin-top: 24px;
    padding: 22px;

    box-sizing: border-box;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    overflow: hidden;
}


/* ==========================================
   ROBLOX TITLE
========================================== */

.roblox-profile-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-bottom: 20px;

    font-size: 17px;
    font-weight: 700;
}


/* ==========================================
   ACCOUNT STATUS
========================================== */

.roblox-account-status {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* ==========================================
   LINKED ACCOUNT
========================================== */

.roblox-linked-user {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ==========================================
   ROBLOX AVATAR
========================================== */

.roblox-linked-avatar {
    width: 96px;
    height: 96px;

    display: block;

    object-fit: cover;

    margin: 0 auto 14px;

    border-radius: 50%;

    border: 3px solid rgba(255, 255, 255, 0.12);

    background: #111827;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.roblox-linked-avatar:hover {
    transform: scale(1.05);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45);
}


/* ==========================================
   USERNAME
========================================== */

.roblox-linked-user strong {
    display: block;

    margin-bottom: 5px;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;
}


/* ==========================================
   USER ID
========================================== */

.roblox-linked-user span {
    display: block;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.55);

    line-height: 1.4;
}


/* ==========================================
   LINK / CHANGE BUTTON
========================================== */

.roblox-profile-section
.profile-action-btn {
    width: 100%;

    min-height: 44px;

    margin-top: 20px;

    padding: 11px 18px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


.roblox-profile-section
.profile-action-btn:hover {
    transform: translateY(-2px);
}


.roblox-profile-section
.profile-action-btn:active {
    transform: translateY(0);
}


/* ==========================================
   ROBLOX LINK MODAL
========================================== */

#roblox-link-modal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);
}


/* ==========================================
   LINK CARD
========================================== */

.roblox-link-card {
    position: relative;

    width: min(440px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    box-sizing: border-box;

    padding: 30px;

    border-radius: 22px;

    background: #111827;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55);

    text-align: center;

    animation:
        robloxModalIn 0.25s ease;
}


@keyframes robloxModalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

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

}


/* ==========================================
   CLOSE BUTTON
========================================== */

.roblox-close-btn {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);

    color: inherit;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.roblox-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);

    transform: scale(1.05);
}


/* ==========================================
   ROBLOX ICON
========================================== */

.roblox-link-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 30px;
}


/* ==========================================
   MODAL TITLE
========================================== */

.roblox-link-card h2 {
    margin: 0 0 8px;

    font-size: 24px;

    font-weight: 750;
}


.roblox-link-card p {
    margin: 0 auto 22px;

    max-width: 340px;

    font-size: 14px;

    line-height: 1.5;

    color: rgba(255, 255, 255, 0.60);
}


/* ==========================================
   INPUT WRAPPER
========================================== */

.roblox-input-wrapper {
    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 14px;

    box-sizing: border-box;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.10);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.roblox-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.07);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.04);
}


.roblox-input-wrapper > span {
    flex-shrink: 0;

    font-size: 17px;

    opacity: 0.7;
}


/* ==========================================
   INPUT
========================================== */

#roblox-username-input {
    width: 100%;
    height: 100%;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    color: inherit;

    font-family: inherit;

    font-size: 14px;
}


#roblox-username-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}


/* ==========================================
   SEARCH BUTTON
========================================== */

#search-roblox-btn {
    width: 100%;

    min-height: 46px;

    margin-top: 14px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 650;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


#search-roblox-btn:hover {
    transform: translateY(-2px);
}


#search-roblox-btn:active {
    transform: translateY(0);
}


#search-roblox-btn:disabled {
    opacity: 0.55;

    cursor: wait;

    transform: none;
}


/* ==========================================
   SEARCH RESULT
========================================== */

.roblox-search-result {
    width: 100%;

    margin-top: 18px;

    box-sizing: border-box;
}


/* ==========================================
   LOADING
========================================== */

.roblox-loading {
    width: 100%;

    min-height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    box-sizing: border-box;

    padding: 14px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.07);

    font-size: 14px;

    color: rgba(255, 255, 255, 0.70);
}


/* ==========================================
   ERROR
========================================== */

.roblox-error {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border-radius: 12px;

    background: rgba(255, 80, 80, 0.08);

    border: 1px solid rgba(255, 80, 80, 0.16);

    color: #ff8b8b;

    font-size: 14px;

    line-height: 1.5;

    text-align: center;
}


.roblox-error small {
    display: block;

    margin-top: 5px;

    font-size: 12px;

    opacity: 0.75;
}


/* ==========================================
   FOUND ACCOUNT
========================================== */

.roblox-found {
    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    animation:
        robloxResultIn 0.25s ease;
}


@keyframes robloxResultIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}


/* ==========================================
   FOUND AVATAR
========================================== */

.roblox-found-avatar-wrapper {
    display: flex;

    justify-content: center;

    margin-bottom: 13px;
}


.roblox-found-avatar {
    width: 90px;
    height: 90px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid rgba(255, 255, 255, 0.12);

    background: #111827;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);
}


/* ==========================================
   FOUND USER INFO
========================================== */

.roblox-found-info {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    text-align: center;
}


.roblox-found-info strong {
    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;
}


.roblox-found-info span {
    font-size: 13px;

    color: rgba(255, 255, 255, 0.55);

    line-height: 1.4;
}


/* ==========================================
   SELECT BUTTON
========================================== */

.roblox-found
.profile-action-btn {
    width: 100%;

    min-height: 46px;

    margin-top: 18px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 650;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


.roblox-found
.profile-action-btn:hover {
    transform: translateY(-2px);
}


.roblox-found
.profile-action-btn:active {
    transform: translateY(0);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .roblox-profile-section {
        padding: 18px;
        margin-top: 20px;
    }


    .roblox-linked-avatar {
        width: 84px;
        height: 84px;
    }


    .roblox-linked-user strong {
        font-size: 16px;
    }


    .roblox-linked-user span {
        font-size: 12px;
    }


    .roblox-link-card {
        padding: 24px 18px;

        border-radius: 18px;
    }


    .roblox-link-card h2 {
        font-size: 21px;
    }


    .roblox-found {
        padding: 17px;
    }


    .roblox-found-avatar {
        width: 80px;
        height: 80px;
    }

}

/* ==========================================
   FAVORITES MODAL
========================================== */

#favorites-modal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);
}


/* ==========================================
   FAVORITES CARD
========================================== */

.favorites-card {
    position: relative;

    width: min(620px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 28px;

    box-sizing: border-box;

    border-radius: 22px;

    background: #111827;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55);

    animation: favoritesIn 0.25s ease;
}


@keyframes favoritesIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

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

}


/* ==========================================
   HEADER
========================================== */

.favorites-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;
}


.favorites-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 25px;
}


.favorites-header h2 {
    margin: 0 0 4px;

    font-size: 23px;
}


.favorites-header p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;
}


/* ==========================================
   CLOSE
========================================== */

.favorites-close-btn {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);

    color: inherit;

    cursor: pointer;

    font-size: 16px;
}


/* ==========================================
   FAVORITES LIST
========================================== */

.favorites-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* ==========================================
   GAME
========================================== */

.favorite-game {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 13px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.07);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.favorite-game:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.06);
}


/* ==========================================
   THUMBNAIL
========================================== */

.favorite-game-thumbnail {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 13px;

    background: #0f172a;
}


/* ==========================================
   INFO
========================================== */

.favorite-game-info {
    min-width: 0;

    flex: 1;
}


.favorite-game-info strong {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.favorite-game-info > span {
    display: block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.50);

    font-size: 12px;
}


/* ==========================================
   ACTIONS
========================================== */

.favorite-game-actions {
    display: flex;

    gap: 8px;
}


.favorite-game-actions button {
    min-height: 34px;

    padding: 7px 11px;

    border: none;

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;
}


.favorite-play-btn {
    background: rgba(255, 255, 255, 0.09);

    color: inherit;
}


.favorite-remove-btn {
    background: rgba(255, 80, 80, 0.08);

    color: #ff8b8b;
}


/* ==========================================
   EMPTY
========================================== */

.favorites-empty {
    padding: 45px 20px;

    text-align: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.06);
}


.favorites-empty-icon {
    font-size: 42px;

    margin-bottom: 12px;

    opacity: 0.8;
}


.favorites-empty h3 {
    margin: 0 0 7px;

    font-size: 18px;
}


.favorites-empty p {
    margin: 0;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.50);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .favorites-card {
        padding: 22px 16px;

        border-radius: 18px;
    }


    .favorite-game {
        align-items: flex-start;
    }


    .favorite-game-thumbnail {
        width: 68px;
        height: 68px;
    }


    .favorite-game-actions {
        flex-direction: column;
    }


    .favorite-game-actions button {
        width: 100%;
    }

}

/* ==========================================
   FAVORITE BUTTON
========================================== */

.favorite-btn {

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:8px;

    padding:11px 16px;

    border:1px solid rgba(255,255,255,.10);

    border-radius:10px;

    background:rgba(255,255,255,.06);

    color:#cbd5e1;

    font-family:inherit;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


/* =========================
   HOVER
========================= */

.favorite-btn:hover {

    background:rgba(59,130,246,.12);

    border-color:rgba(59,130,246,.45);

    color:#60a5fa;

    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37,99,235,.15);

}


/* =========================
   ACTIVE / FAVORITED
========================= */

.favorite-btn.active {

    background:rgba(250,204,21,.10);

    border-color:rgba(250,204,21,.45);

    color:#facc15;

    box-shadow:
        0 8px 20px rgba(250,204,21,.10);

}


/* =========================
   ACTIVE HOVER
========================= */

.favorite-btn.active:hover {

    background:rgba(250,204,21,.16);

    border-color:rgba(250,204,21,.65);

    color:#fde047;

}


/* =========================
   STAR ICON
========================= */

.favorite-btn .favorite-icon {

    font-size:16px;

    line-height:1;

    transition:
        transform .25s ease;

}


.favorite-btn:hover .favorite-icon {

    transform:scale(1.12);

}


/* =========================
   STAR ANIMATION
========================= */

.favorite-btn.active .favorite-icon {

    animation:
        favoritePop .3s ease;

}


@keyframes favoritePop {

    0% {

        transform:scale(.7) rotate(-10deg);

    }

    60% {

        transform:scale(1.25) rotate(5deg);

    }

    100% {

        transform:scale(1) rotate(0);

    }

}


/* =========================
   CLICK
========================= */

.favorite-btn:active {

    transform:scale(.96);

}


/* =========================
   FOCUS
========================= */

.favorite-btn:focus-visible {

    outline:2px solid #60a5fa;

    outline-offset:3px;

}


/* =========================
   FAVORITE BUTTON INSIDE
   GAME MODAL
========================= */

.game-modal-buttons .favorite-btn {

    min-height:50px;

    padding:14px 20px;

}


/* =========================
   MOBILE
========================= */

@media (max-width:768px) {

    .favorite-btn {

        width:100%;

        min-height:44px;

    }

}

/* =====================================================
   FAVORITES ANIMATIONS
===================================================== */

/* Botón favorito */
.favorite-btn {
    transition:
        transform 0.2s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Al pasar el mouse */
.favorite-btn:hover {
    transform: translateY(-2px);
}

/* Animación al añadir */
.favorite-btn.favorite-pop {
    animation: favoritePop 0.45s ease;
}

@keyframes favoritePop {

    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.18);
    }

    65% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }

}


/* Brillo */
.favorite-btn.favorite-pop::after {

    content: "✨";

    position: absolute;

    pointer-events: none;

    animation: favoriteSparkle 0.7s ease forwards;

}

@keyframes favoriteSparkle {

    0% {
        opacity: 0;
        transform: scale(0.5) translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.4) translateY(-18px);
    }

}


/* =====================================================
   FAVORITE GAME REMOVE ANIMATION
===================================================== */

.favorite-game.favorite-removing {

    animation: favoriteRemove 0.35s ease forwards;

}

@keyframes favoriteRemove {

    0% {

        opacity: 1;
        transform: scale(1);

    }

    100% {

        opacity: 0;
        transform: scale(0.92) translateX(25px);

    }

}


/* =====================================================
   FAVORITES MODAL
===================================================== */

#favorites-modal {

    animation: favoritesModalIn 0.3s ease;

}

@keyframes favoritesModalIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


.favorites-card {

    animation: favoritesCardIn 0.35s ease;

}

@keyframes favoritesCardIn {

    from {

        opacity: 0;
        transform: translateY(20px) scale(0.96);

    }

    to {

        opacity: 1;
        transform: translateY(0) scale(1);

    }

}


/* =====================================================
   FAVORITE GAME CARDS
===================================================== */

.favorite-game {

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.favorite-game:hover {

    transform: translateY(-3px);

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .favorite-btn,
    .favorite-game,
    #favorites-modal,
    .favorites-card {

        animation: none !important;
        transition: none !important;

    }

}

/* =====================================================
   MANATON GAMES - PRIVATE MODE
   PREMIUM IMAGE BACKGROUND
===================================================== */

#private-mode.private-mode{

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    min-height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    z-index: 99999;

    background:
        #050816;

}


/* =====================================================
   BACKGROUND CON IMAGEN
===================================================== */

.private-background{

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    background-image:
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.25),
            rgba(2, 6, 23, 0.55)
        ),
        url("../assets/backgrounds/private-background.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    transform: scale(1.02);

    z-index: 0;

}


/* =====================================================
   DARK OVERLAY
===================================================== */

.private-background::before{

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 15%,
            rgba(2, 6, 23, 0.18) 45%,
            rgba(2, 6, 23, 0.72) 100%
        );

    z-index: 1;

}


/* =====================================================
   CINEMATIC GRADIENT
===================================================== */

.private-background::after{

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 23, 0.35),
            transparent 30%,
            transparent 70%,
            rgba(2, 6, 23, 0.35)
        );

    opacity: 0.8;

    z-index: 2;

}


/* =====================================================
   GLOW ORBS
===================================================== */

.private-glow{

    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    z-index: 3;

}


/* TOP LEFT */

.private-glow-1{

    width: 420px;
    height: 420px;

    top: -200px;
    left: -140px;

    background:
        rgba(37, 99, 235, 0.22);

    opacity: 0.65;

    animation:
        private-float-1 14s ease-in-out infinite;

}


/* BOTTOM RIGHT */

.private-glow-2{

    width: 500px;
    height: 500px;

    right: -220px;
    bottom: -250px;

    background:
        rgba(79, 70, 229, 0.20);

    opacity: 0.6;

    animation:
        private-float-2 17s ease-in-out infinite;

}


/* CENTER GLOW */

.private-glow-3{

    width: 300px;
    height: 300px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    background:
        rgba(59, 130, 246, 0.12);

    filter: blur(120px);

    opacity: 0.55;

    animation:
        private-pulse 7s ease-in-out infinite;

}


/* =====================================================
   SUBTLE PARTICLES
===================================================== */

.private-stars{

    position: absolute;

    inset: 0;

    z-index: 4;

    opacity: 0.25;

    background-image:

        radial-gradient(
            1px 1px at 10% 20%,
            rgba(255,255,255,0.8),
            transparent
        ),

        radial-gradient(
            1px 1px at 25% 70%,
            rgba(255,255,255,0.6),
            transparent
        ),

        radial-gradient(
            1px 1px at 40% 35%,
            rgba(255,255,255,0.7),
            transparent
        ),

        radial-gradient(
            1px 1px at 58% 15%,
            rgba(255,255,255,0.6),
            transparent
        ),

        radial-gradient(
            1px 1px at 72% 60%,
            rgba(255,255,255,0.75),
            transparent
        ),

        radial-gradient(
            1px 1px at 88% 30%,
            rgba(255,255,255,0.6),
            transparent
        ),

        radial-gradient(
            1px 1px at 93% 82%,
            rgba(255,255,255,0.7),
            transparent
        );

    background-size:
        220px 220px,
        280px 280px,
        330px 330px,
        260px 260px,
        300px 300px,
        240px 240px,
        350px 350px;

    animation:
        private-stars-move 30s linear infinite;

}


/* =====================================================
   CONTENT
===================================================== */

.private-content{

    position: relative;

    z-index: 10;

    width: min(
        90%,
        760px
    );

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   MESSAGE CARD
===================================================== */

.private-message{

    position: relative;

    width: 100%;

    padding:
        55px
        60px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.78),
            rgba(2, 6, 23, 0.62)
        );

    border:
        1px solid
        rgba(255,255,255,0.13);

    box-shadow:

        0 30px 100px
        rgba(0,0,0,0.55),

        0 0 60px
        rgba(37,99,235,0.08),

        inset 0 1px 0
        rgba(255,255,255,0.07);

    backdrop-filter:
        blur(22px)
        saturate(130%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(130%);

    overflow: hidden;

}


/* =====================================================
   CARD TOP LIGHT
===================================================== */

.private-message::before{

    content: "";

    position: absolute;

    top: 0;

    left: 12%;

    width: 76%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(96,165,250,0.9),
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(59,130,246,0.7);

}


/* =====================================================
   CARD INNER GLOW
===================================================== */

.private-message::after{

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -180px;
    left: 50%;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,0.14),
            transparent 70%
        );

    pointer-events: none;

}


/* =====================================================
   SMALL TITLE
===================================================== */

.private-title{

    position: relative;

    z-index: 2;

    margin:
        0 0 14px;

    font-size: 15px;

    font-weight: 600;

    letter-spacing:
        0.18em;

    text-transform:
        uppercase;

    color:
        rgba(226,232,240,0.9);

}


/* =====================================================
   BRAND
===================================================== */

.private-brand{

    position: relative;

    z-index: 2;

    margin: 0;

    font-size:
        clamp(
            42px,
            7vw,
            76px
        );

    line-height: 1;

    font-weight: 800;

    letter-spacing:
        -0.045em;

    background:
        linear-gradient(
            135deg,
            #ffffff 10%,
            #dbeafe 40%,
            #60a5fa 72%,
            #2563eb 100%
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

    text-shadow:
        0 0 50px
        rgba(59,130,246,0.18);

}


/* =====================================================
   SUBTITLE
===================================================== */

.private-subtitle{

    position: relative;

    z-index: 2;

    max-width: 570px;

    margin:
        22px auto 0;

    font-size:
        clamp(
            17px,
            2.5vw,
            21px
        );

    line-height: 1.6;

    color:
        #dbeafe;

}


/* =====================================================
   DIVIDER
===================================================== */

.private-divider{

    position: relative;

    z-index: 2;

    width: 90px;

    height: 2px;

    margin:
        30px auto;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #60a5fa,
            #2563eb,
            transparent
        );

    box-shadow:
        0 0 20px
        rgba(59,130,246,0.65);

}


/* =====================================================
   DESCRIPTION
===================================================== */

.private-description{

    position: relative;

    z-index: 2;

    max-width: 500px;

    margin:
        0 auto;

    font-size: 15px;

    line-height: 1.7;

    color:
        #94a3b8;

}


/* =====================================================
   FOOTER
===================================================== */

.private-footer{

    position: relative;

    z-index: 10;

    margin-top: 28px;

    font-size: 13px;

    letter-spacing:
        0.08em;

    color:
        rgba(226,232,240,0.65);

    text-shadow:
        0 2px 10px
        rgba(0,0,0,0.5);

}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes private-pulse{

    0%,
    100%{

        opacity: 0.35;

        transform:
            translate(-50%, -50%)
            scale(0.92);

    }

    50%{

        opacity: 0.65;

        transform:
            translate(-50%, -50%)
            scale(1.12);

    }

}


@keyframes private-float-1{

    0%,
    100%{

        transform:
            translate(0,0);

    }

    50%{

        transform:
            translate(70px,45px);

    }

}


@keyframes private-float-2{

    0%,
    100%{

        transform:
            translate(0,0);

    }

    50%{

        transform:
            translate(-65px,-45px);

    }

}


@keyframes private-stars-move{

    0%{

        transform:
            translateY(0);

    }

    50%{

        transform:
            translateY(-12px);

    }

    100%{

        transform:
            translateY(0);

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px){

    #private-mode.private-mode{

        padding:
            20px;

    }


    .private-background{

        background-position:
            center center;

    }


    .private-message{

        width: 100%;

        padding:
            42px
            25px;

        border-radius:
            22px;

    }


    .private-title{

        font-size: 12px;

        letter-spacing:
            0.14em;

    }


    .private-brand{

        font-size:
            clamp(
                34px,
                11vw,
                52px
            );

    }


    .private-subtitle{

        font-size:
            16px;

    }


    .private-description{

        font-size:
            14px;

    }


    .private-glow-1{

        width: 280px;
        height: 280px;

    }


    .private-glow-2{

        width: 320px;
        height: 320px;

    }

}


/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 400px){

    .private-message{

        padding:
            35px
            20px;

    }


    .private-brand{

        font-size:
            31px;

    }


    .private-subtitle{

        font-size:
            15px;

    }


    .private-description{

        font-size:
            13px;

    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce){

    .private-glow,
    .private-stars{

        animation:
            none !important;

    }

}
