:root {
    --ice-primary: #3498db;
    --ice-secondary: #2980b9;
    --ice-glow: rgba(52, 152, 219, 0.3);
    --fire-primary: #e74c3c;
    --fire-secondary: #c0392b;
    --fire-glow: rgba(231, 76, 60, 0.3);
    --bg-modal: rgba(15, 15, 20, 0.92);
    --glass-border: rgba(255, 255, 255, 0.1);
    --feature-bg: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: #000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.loading {
    overflow: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-duel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    perspective: 1000px;
}

.preloader-logo {
    width: 180px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: all 0.5s ease;
}

.preloader-logo.ice {
    animation: slideInIce 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards, floatingLogo 4s ease-in-out infinite 1.5s;
    filter: drop-shadow(0 0 20px var(--ice-glow));
}

.preloader-logo.fire {
    animation: slideInFire 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards, floatingLogo 4s ease-in-out infinite 1.5s;
    filter: drop-shadow(0 0 20px var(--fire-glow));
}

.preloader-vs {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1s;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes slideInIce {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slideInFire {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--ice-primary), var(--fire-primary));
    animation: fillLoader 2.5s ease-in-out forwards;
}

.preloader-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
}

@keyframes fillLoader {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes floatingLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (min-width: 1025px) {

    body,
    html {
        height: 100%;
        overflow: hidden;
    }
}

.portal-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.portal-container.single-server .portal-side {
    flex: 1 !important;
}

.portal-container.single-server .portal-side:hover {
    flex: 1 !important;
}

.portal-side {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    text-decoration: none;
}

.portal-side:hover {
    flex: 1.25;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, filter 0.6s ease;
    z-index: 1;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transition: transform 0.8s ease, filter 0.6s ease;
}

.portal-side:hover .video-bg {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.2) contrast(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.6s ease;
}

.portal-side:hover .bg-image {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.1);
}

.portal-side:hover .overlay {
    opacity: 0.4;
}

.side-left {
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.side-left .overlay {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.6), rgba(0, 0, 0, 0.7));
}

.side-right .overlay {
    background: linear-gradient(225deg, rgba(80, 20, 0, 0.6), rgba(0, 0, 0, 0.7));
}

.content {
    position: relative;
    z-index: 10;
    padding: 20px;
    pointer-events: auto;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.side-left h1 {
    text-shadow: 0 0 30px var(--ice-glow);
}

.side-right h1 {
    text-shadow: 0 0 30px var(--fire-glow);
}

p {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-enter {
    display: inline-block;
    padding: 18px 60px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.btn-enter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: all 0.6s;
}

.btn-enter:hover::before {
    left: 100%;
}

.side-left .btn-enter {
    border-color: var(--ice-primary);
    box-shadow: inset 0 0 15px var(--ice-glow), 0 0 20px rgba(0, 0, 0, 0.4);
}

.side-right .btn-enter {
    border-color: var(--fire-primary);
    box-shadow: inset 0 0 15px var(--fire-glow), 0 0 20px rgba(0, 0, 0, 0.4);
}

.btn-enter:hover {
    transform: translateY(-8px) scale(1.05);
    letter-spacing: 5px;
    color: #fff;
}

.side-left .btn-enter:hover {
    background: linear-gradient(135deg, var(--ice-primary), #1a5276);
    box-shadow: 0 0 30px var(--ice-glow), 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.side-right .btn-enter:hover {
    background: linear-gradient(135deg, var(--fire-primary), #943126);
    box-shadow: 0 0 30px var(--fire-glow), 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 100;
    transform: translateX(-50%);
    pointer-events: none;
}

.central-logo {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
    pointer-events: none;
}

.central-logo h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    opacity: 0.8;
    animation: floatingLogo 5s ease-in-out infinite;
}

/* Modal Social Links */
.modal-social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.social-link-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link-item:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link-item.discord:hover {
    background: #7289da;
    border-color: #7289da;
}

.social-link-item.instagram:hover {
    background: linear-gradient(45deg, #f09433, #bc1888);
    border-color: #e6683c;
}

.social-link-item.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link-item.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-badge.online {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
}

.status-badge.online .status-dot,
.status-badge.online .status-dot::after {
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.status-badge.offline {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.1);
}

.status-badge.offline .status-dot,
.status-badge.offline .status-dot::after {
    background: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.launch-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.countdown-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.uptime-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #2ecc71;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.days-online {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.server-available {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: availablePulse 2s infinite ease-in-out;
}

@keyframes availablePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}


.timer {
    display: flex;
    gap: 15px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 50px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.time-block span {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.time-block small {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-top: 2px;
}

.side-left .time-block span {
    color: var(--ice-primary);
}

.side-right .time-block span {
    color: var(--fire-primary);
}


@media (max-width: 768px) {
    .portal-container {
        flex-direction: column;
    }

    .portal-side {
        width: 100%;
        flex: 1 !important;
    }

    .divider {
        width: 100%;
        height: 2px;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    }

    h1 {
        font-size: 2.2rem;
    }

    .central-logo {
        top: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeIn 1.2s ease-out forwards;
}

.portal-logo {
    width: 15vw;
    max-width: 150px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: transform 0.4s ease;
    animation: floatingLogo 4s ease-in-out infinite;
}

.portal-side:hover .portal-logo {
    transform: scale(1.1);
    animation-play-state: paused;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--bg-modal);
    backdrop-filter: blur(20px) saturate(160%);
    width: 95%;
    max-width: 720px;
    max-height: 90vh;
    padding: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-theme-ice {
    border-top: 4px solid var(--ice-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--ice-glow);
}

.modal-theme-fire {
    border-top: 4px solid var(--fire-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--fire-glow);
}

.modal-logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: 900;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.modal-theme-ice .tab-btn.active {
    border-color: var(--ice-primary);
    color: var(--ice-primary);
}

.modal-theme-fire .tab-btn.active {
    border-color: var(--fire-primary);
    color: var(--fire-primary);
}

.tab-content {
    display: none;
    animation: fadeInContent 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-box {
    background: var(--feature-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.feature-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 400;
}

.feature-value {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 0;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.modal-section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    gap: 10px;
    border-radius: 6px;
}

.btn-download:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.modal-theme-ice .btn-download:hover {
    box-shadow: 0 5px 15px var(--ice-glow);
}

.modal-theme-fire .btn-download:hover {
    box-shadow: 0 5px 15px var(--fire-glow);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(200%) rotate(30deg);
    }
}

.modal-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-panel,
.btn-ranking {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1c 0%, #0a0a0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-panel::after,
.btn-ranking::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(30deg);
    animation: shimmer 4s infinite;
}

.btn-panel i,
.btn-ranking i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 12px;
    font-size: 1.1rem;
}

.modal-theme-ice .btn-panel:hover,
.modal-theme-ice .btn-ranking:hover {
    border-color: var(--ice-primary);
    background: #0f171d;
    box-shadow: 0 0 20px var(--ice-glow), inset 0 0 10px rgba(52, 152, 219, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.modal-theme-fire .btn-panel:hover,
.modal-theme-fire .btn-ranking:hover {
    border-color: var(--fire-primary);
    background: #1d1211;
    box-shadow: 0 0 20px var(--fire-glow), inset 0 0 10px rgba(231, 76, 60, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.btn-panel:active,
.btn-ranking:active {
    transform: scale(0.98);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ice Theme Panel Button */
.modal-theme-ice .btn-panel {
    background-image: linear-gradient(-45deg, #0984e3, #00d2d3, #74b9ff, #0984e3);
    box-shadow: 0 4px 20px rgba(9, 132, 227, 0.4);
    animation: gradientBG 5s ease infinite, pulseIce 2s infinite;
}

@keyframes pulseIce {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 132, 227, 0.6);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(9, 132, 227, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(9, 132, 227, 0);
        transform: scale(1);
    }
}

/* Fire Theme Panel Button */
.modal-theme-fire .btn-panel {
    background-image: linear-gradient(-45deg, #d63031, #e17055, #fab1a0, #d63031);
    box-shadow: 0 4px 20px rgba(214, 48, 49, 0.4);
    animation: gradientBG 5s ease infinite, pulseFire 2s infinite;
}

@keyframes pulseFire {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.6);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(214, 48, 49, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0);
        transform: scale(1);
    }
}

.btn-panel:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    letter-spacing: 3px;
    filter: brightness(1.2);
}

.classes-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.race-group {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.race-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--ice-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
    text-align: left;
}

.modal-theme-fire .race-title {
    color: var(--fire-primary);
}

.classes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.class-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.class-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.class-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}



.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 1024px) {

    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    .portal-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        width: 100vw !important;
        overflow: visible !important;
        position: relative !important;
        display: block !important;
        /* Muda de flex para block para evitar bugs de flex-height */
    }

    .portal-side {
        width: 100% !important;
        min-height: 500px !important;
        height: auto !important;
        padding: 100px 20px 60px;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        overflow: visible !important;
        clip-path: none !important;
        position: relative !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .central-logo {
        position: absolute !important;
        top: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
    }

    .divider {
        display: none !important;
    }

    .portal-logo {
        width: 120px;
        margin-bottom: 15px;
    }

    .content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .portal-side .content h1 {
        font-size: 6px !important;
    }

    .mobile-nav-helper {
        display: flex;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 40px 15px 20px;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding-right: 5px;
    }

    .modal-logo {
        width: 80px;
        margin-bottom: 10px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .modal-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 5px;
        font-size: 0.65rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .classes-grid,
    .modal-info {
        padding: 15px;
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .modal-section-title {
        font-size: 0.75rem;
        margin: 20px 0 10px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        z-index: 100;
        font-size: 1.8rem;
    }

    .classes-list {
        grid-template-columns: 1fr;
    }

    .class-item {
        padding: 12px;
    }

    .class-icon {
        width: 28px;
        height: 28px;
    }

    .class-name {
        font-size: 0.9rem;
    }

    .server-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-modal {
        padding: 12px;
        font-size: 0.8rem;
    }
}



@media (max-width: 480px) {
    .central-logo h2 {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .portal-side {
        min-height: auto !important;
        padding: 50px 15px 40px;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .portal-side .content h1 {
        font-size: 6px !important;
    }

    .content p {
        font-size: 0.8rem;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .countdown-container {
        transform: scale(0.85);
        margin-bottom: 5px;
    }

    .modal-container {
        padding: 40px 15px 20px;
    }

    .feature-box {
        padding: 12px;
    }

    .feature-value {
        font-size: 1rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

.mobile-nav-helper {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-arrow:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow.up {
    box-shadow: 0 0 15px var(--ice-glow);
}

.nav-arrow.down {
    box-shadow: 0 0 15px var(--fire-glow);
}

@media (max-width: 1024px) {
    .mobile-nav-helper {
        display: flex !important;
    }
}