/* =========================================
   ETHERNYX
   Dark Fantasy Theme
========================================= */

:root{

    --bg:#09090D;
    --bg2:#11111A;
    --card:#181824;

    --purple:#6F52FF;
    --purple-light:#B89CFF;

    --gold:#D6B56A;

    --text:#F5F5F5;
    --gray:#B8B8C5;

    --border:rgba(255,255,255,.08);

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:'Inter',sans-serif;

    overflow-x:hidden;

}

/* =========================================
Scrollbar
========================================= */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:var(--purple);

    border-radius:20px;

}

/* =========================================
Container
========================================= */

.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}

/* =========================================
Background
========================================= */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

    radial-gradient(circle at top,#4d3b84 0%,transparent 30%),

    radial-gradient(circle at bottom,#1d1b4e 0%,transparent 30%),

    linear-gradient(180deg,#09090d,#0f1020);

    z-index:-3;

}

body::after{

    content:"";

    position:fixed;

    inset:0;

    background:

    url("https://www.transparenttextures.com/patterns/asfalt-dark.png");

    opacity:.15;

    z-index:-2;

}

/* =========================================
Floating Fog
========================================= */

.fog{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-1;

    opacity:.18;

    background:

    radial-gradient(circle,#ffffff22 0%,transparent 70%);

    animation:fogMove 30s linear infinite;

}

@keyframes fogMove{

    from{

        transform:translateX(-10%) translateY(0);

    }

    to{

        transform:translateX(10%) translateY(-5%);

    }

}

/* =========================================
Navbar
========================================= */

header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:999;

    transition:.4s;

}

.navbar{

    width:90%;

    max-width:1300px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 0;

}

.logo{

    font-family:'Cinzel',serif;

    font-size:30px;

    color:var(--gold);

    letter-spacing:2px;

}

.nav-links{

    display:flex;

    gap:40px;

    list-style:none;

}

.nav-links a{

    color:white;

    text-decoration:none;

    transition:.3s;

    font-weight:500;

}

.nav-links a:hover{

    color:var(--gold);

}

.join-btn{

    padding:13px 28px;

    text-decoration:none;

    color:white;

    border:1px solid var(--gold);

    transition:.35s;

    border-radius:40px;

}

.join-btn:hover{

    background:var(--gold);

    color:black;

    box-shadow:0 0 25px var(--gold);

}

.nav-play-btn{

    display:none;

}

.menu-toggle{

    display:none;

    flex-direction:column;

    justify-content:center;

    gap:6px;

    width:34px;

    height:34px;

    background:none;

    border:none;

    cursor:pointer;

    z-index:1001;

}

.menu-toggle span{

    display:block;

    width:100%;

    height:2px;

    background:white;

    transition:.3s;

}

.menu-toggle.active span:nth-child(1){

    transform:translateY(8px) rotate(45deg);

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:translateY(-8px) rotate(-45deg);

}

/* navbar saat scroll */

header.scrolled{

    background:rgba(8,8,14,.88);

    backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(255,255,255,.05);

}

/* =========================================
Hero
========================================= */

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:140px 20px;

    position:relative;

}

/* Glow */

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    background:radial-gradient(circle,

    rgba(111,82,255,.35),

    transparent 70%);

    filter:blur(80px);

    z-index:-1;

}

.hero-content{

    max-width:900px;

}

.subtitle{

    color:var(--gold);

    letter-spacing:4px;

    text-transform:uppercase;

    font-size:14px;

}

.hero h1{

    margin-top:20px;

    font-size:70px;

    line-height:1.15;

    font-family:'Cinzel',serif;

}

.hero p{

    margin:35px auto;

    max-width:760px;

    color:var(--gray);

    font-size:19px;

    line-height:1.8;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;

}

/* =========================================
Buttons
========================================= */

.primary-btn{

    padding:16px 40px;

    background:linear-gradient(45deg,

    var(--purple),

    #8e68ff);

    color:white;

    text-decoration:none;

    border-radius:40px;

    transition:.35s;

    box-shadow:0 0 35px rgba(111,82,255,.4);

}

.primary-btn:hover{

    transform:translateY(-5px);

    box-shadow:0 0 45px rgba(111,82,255,.7);

}

.secondary-btn{

    padding:16px 40px;

    border:1px solid var(--gold);

    border-radius:40px;

    text-decoration:none;

    color:var(--gold);

    transition:.35s;

}

.secondary-btn:hover{

    background:var(--gold);

    color:black;

}

/* =========================================
   SECTION GLOBAL
========================================= */

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-family: "Cinzel", serif;
    font-size: 48px;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

/* =========================================
   ABOUT
========================================= */

.about-content {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 70px;
    align-items: center;
}

.about-text p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-box {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    transition: .35s;
}

.about-box:hover {
    transform: translateY(-8px);
    border-color: rgba(214,181,106,.4);
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.about-box h3 {
    font-family: "Cinzel", serif;
    color: var(--gold);
    margin-bottom: 15px;
}

.about-box p {
    color: var(--gray);
    line-height: 1.8;
}

/* =========================================
   FEATURES
========================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
}

.feature-card {
    position: relative;
    overflow: hidden;

    background: rgba(255,255,255,.03);

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 35px;

    backdrop-filter: blur(16px);

    transition: .4s;
}

.feature-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );

    transition: .8s;
}

.feature-card:hover::before {

    left: 120%;

}

.feature-card:hover {

    transform: translateY(-10px);

    border-color: rgba(184,156,255,.5);

    box-shadow:
    0 15px 35px rgba(0,0,0,.45),
    0 0 35px rgba(111,82,255,.18);

}

.feature-card h3 {

    margin-bottom: 18px;

    font-family: "Cinzel", serif;

    color: var(--gold);

}

.feature-card p {

    color: var(--gray);

    line-height: 1.8;

}

/* =========================================
   COMMANDS
========================================= */

.commands {

    background: linear-gradient(
        180deg,
        transparent,
        rgba(111,82,255,.05)
    );

}

.command-list {

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));

    gap: 25px;

}

.command-list div {

    padding: 25px;

    background: rgba(0,0,0,.45);

    border: 1px solid rgba(111,82,255,.18);

    border-radius: 16px;

    text-align: center;

    font-family: monospace;

    color: var(--purple-light);

    font-size: 20px;

    transition: .35s;

}

.command-list div:hover {

    background: rgba(111,82,255,.15);

    transform: scale(1.05);

    box-shadow: 0 0 30px rgba(111,82,255,.25);

}

/* =========================================
   COMMUNITY CTA
========================================= */

.community-box {

    position: relative;

    overflow: hidden;

    text-align: center;

    padding: 80px 50px;

    border-radius: 30px;

    background:

    linear-gradient(
        145deg,
        rgba(111,82,255,.18),
        rgba(214,181,106,.08)
    );

    border: 1px solid rgba(255,255,255,.08);

}

.community-box::after {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(214,181,106,.2),
        transparent
    );

    top: -220px;
    right: -220px;

}

.community-box h2 {

    font-size: 52px;

    font-family: "Cinzel", serif;

    margin-bottom: 25px;

}

.community-box p {

    max-width: 760px;

    margin: auto auto 40px;

    color: var(--gray);

    line-height: 1.9;

}

/* =========================================
   FOOTER
========================================= */

footer {

    padding: 70px 0;

    border-top: 1px solid rgba(255,255,255,.05);

    background: #06060A;

    text-align: center;

}

.footer-logo {

    font-size: 34px;

    font-family: "Cinzel", serif;

    color: var(--gold);

    margin-bottom: 20px;

}

footer p {

    color: var(--gray);

}

.footer-links {

    margin: 35px 0;

    display: flex;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

}

.footer-links a {

    color: white;

    text-decoration: none;

    transition: .3s;

}

.footer-links a:hover {

    color: var(--gold);

}

.copyright {

    margin-top: 40px;

    font-size: 14px;

    color: #777;

}

/* =========================================
   REVEAL ANIMATION
========================================= */

.reveal {

    opacity: 0;

    transform: translateY(60px);

    transition:
    opacity .8s ease,
    transform .8s ease;

}

.reveal.active {

    opacity: 1;

    transform: translateY(0);

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:992px){

    .hero h1{

        font-size:54px;

    }

    .about-content{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .navbar{

        position:relative;

        padding:18px 0;

    }

    .desktop-play-btn{

        display:none;

    }

    .menu-toggle{

        display:flex;

    }

    .nav-links{

        position:absolute;

        top:calc(100% + 15px);

        right:0;

        left:0;

        flex-direction:column;

        align-items:center;

        gap:22px;

        background:rgba(8,8,14,.97);

        backdrop-filter:blur(15px);

        border:1px solid rgba(255,255,255,.08);

        border-radius:16px;

        padding:30px 20px;

        max-height:0;

        overflow:hidden;

        opacity:0;

        visibility:hidden;

        transition:.35s ease;

    }

    .nav-links.active{

        max-height:500px;

        opacity:1;

        visibility:visible;

        padding:30px 20px;

    }

    .nav-play-btn{

        display:block;

        margin-top:5px;

    }

    .hero{

        padding-top:150px;

    }

    .hero h1{

        font-size:42px;

    }

    .section-title h2{

        font-size:34px;

    }

    .community-box{

        padding:60px 30px;

    }

    .community-box h2{

        font-size:38px;

    }

}

@media(max-width:600px){

    section{

        padding:80px 0;

    }

    .section-title{

        margin-bottom:45px;

    }

    .feature-grid,
    .gallery-grid,
    .news-grid,
    .command-list,
    .status-grid{

        grid-template-columns:1fr;

    }

    .about-box,
    .feature-card,
    .status-card{

        padding:28px;

    }

    .hero::before{

        width:400px;

        height:400px;

    }

    .community-box{

        padding:50px 24px;

    }

    .community-box::after{

        width:320px;

        height:320px;

    }
}

@media(max-width:480px){

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:16px;

    }

    .primary-btn,
    .secondary-btn{

        width:100%;

        text-align:center;

    }

    .logo{

        font-size:24px;

    }

    .status-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .staff-toggle{

        right:16px;

        bottom:85px;

        padding:12px 18px;

        font-size:14px;

    }

    .top-btn{

        right:16px;

        bottom:16px;

    }

}

/* ===========================
   PARTICLES
=========================== */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(184,156,255,.7);
    animation: particleUp linear infinite;
}

@keyframes particleUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-110vh);
    }
}

/* ===========================
   CURSOR GLOW
=========================== */

.cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(111,82,255,.18),
        transparent 70%);
    z-index: -1;
}

/* ===========================
   BACK TO TOP
=========================== */

.top-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    box-shadow: 0 0 20px rgba(111,82,255,.35);
}

.top-btn.show {
    opacity: 1;
    visibility: visible;
}

.top-btn:hover {
    transform: translateY(-5px);
}

/* ===========================
   LOADER
=========================== */

.loader {
    position: fixed;
    inset: 0;
    background: #09090D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transition: opacity .5s ease, visibility .5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255,255,255,.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader h2 {
    font-family: "Cinzel", serif;
    color: var(--gold);
    letter-spacing: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   GALLERY
========================================== */

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

}

.gallery-item{

    overflow:hidden;

    border-radius:18px;

    cursor:pointer;

    position:relative;

}

.gallery-item img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.6s;

}

.gallery-item:hover img{

    transform:scale(1.1);

}

.gallery-item::after{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    opacity:0;

    transition:.4s;

    font-size:22px;

    letter-spacing:2px;

    font-family:"Cinzel",serif;

}

.gallery-item:hover::after{

    opacity:1;

}

/* ==========================================
   LIGHTBOX
========================================== */

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;

    justify-content:center;

    align-items:center;

    visibility:hidden;

    opacity:0;

    transition:.35s;

    z-index:9999;

}

.lightbox.show{

    visibility:visible;

    opacity:1;

}

.lightbox img{

    width:80%;

    max-width:1200px;

    border-radius:12px;

}

.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:45px;

    cursor:pointer;

}

.prev-image,
.next-image{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    background:rgba(255,255,255,.1);

    border:none;

    color:white;

    width:60px;

    height:60px;

    border-radius:50%;

    cursor:pointer;

    transition:.3s;

    font-size:24px;

}

.prev-image:hover,
.next-image:hover{

    background:var(--purple);

}

.prev-image{

    left:40px;

}

.next-image{

    right:40px;

}

@media(max-width:768px){

    .lightbox img{

        width:95%;

    }

}

/* ==========================================
   SERVER STATUS
========================================== */

.server-status{

    background:linear-gradient(
        180deg,
        rgba(111,82,255,.03),
        transparent
    );

}

.status-card{

    background:rgba(255,255,255,.03);

    border:1px solid var(--border);

    border-radius:22px;

    padding:40px;

    backdrop-filter:blur(15px);

}

.status-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:40px;

    flex-wrap:wrap;

    gap:20px;

}

.status-indicator{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:18px;

}

.dot{

    width:14px;

    height:14px;

    border-radius:50%;

}

.online{

    background:#4CAF50;

    box-shadow:0 0 15px #4CAF50;

}

.offline{

    background:#ff4c4c;

    box-shadow:0 0 15px #ff4c4c;

}

.status-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

}

.status-box{

    background:rgba(0,0,0,.35);

    padding:25px;

    border-radius:15px;

    text-align:center;

}

.status-box h3{

    color:var(--gold);

    margin-bottom:12px;

}

.status-box p{

    font-size:18px;

}

.server-motd{

    margin-top:35px;

    background:rgba(0,0,0,.25);

    padding:25px;

    border-radius:15px;

}

.server-motd h3{

    margin-bottom:12px;

    color:var(--gold);

}

#refreshStatus{

    background:var(--purple);

    color:white;

    border:none;

    padding:12px 28px;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

}

#refreshStatus:hover{

    transform:translateY(-3px);

}

/* ============================
   STAFF SIDEBAR
============================ */

.staff-toggle{

    position:fixed;

    right:30px;

    bottom:95px;

    z-index:1000;

    background:var(--purple);

    color:white;

    border:none;

    padding:14px 24px;

    border-radius:40px;

    cursor:pointer;

    box-shadow:0 0 25px rgba(111,82,255,.35);

    transition:.3s;

}

.staff-toggle:hover{

    transform:translateY(-4px);

}

.staff-sidebar{

    position:fixed;

    top:0;

    right:-380px;

    width:360px;

    height:100vh;

    background:#11111A;

    border-left:1px solid rgba(255,255,255,.08);

    transition:.45s ease;

    z-index:2000;

    overflow-y:auto;

}

.staff-sidebar.active{

    right:0;

}

.sidebar-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:30px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.sidebar-header h2{

    font-family:"Cinzel",serif;

    color:var(--gold);

}

.sidebar-header button{

    background:none;

    border:none;

    color:white;

    font-size:32px;

    cursor:pointer;

}

.sidebar-content{

    padding:25px;

}

.staff-member{

    display:flex;

    align-items:center;

    gap:18px;

    padding:15px;

    margin-bottom:18px;

    border-radius:15px;

    transition:.3s;

    cursor:pointer;

}

.staff-member:hover{

    background:rgba(111,82,255,.12);

}

.staff-member img{

    width:60px;

    height:60px;

    border-radius:50%;

    border:2px solid var(--gold);

}

.staff-member h4{

    margin-bottom:5px;

}

.staff-member span{

    color:var(--gray);

    font-size:14px;

}

.sidebar-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1500;

}

.sidebar-overlay.active{

    opacity:1;

    visibility:visible;

}

@media(max-width:500px){

    .staff-sidebar{

        width:100%;

        right:-100%;

    }

}

/* ==========================
   IP POPUP
========================== */

.ip-popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.ip-popup.show{

    opacity:1;

    visibility:visible;

}

.popup-card{

    width:420px;

    max-width:92%;

    background:#171326;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:40px;

    text-align:center;

    position:relative;

    animation:popup .35s ease;

}

@keyframes popup{

    from{

        transform:translateY(20px) scale(.95);

        opacity:0;

    }

    to{

        transform:translateY(0) scale(1);

        opacity:1;

    }

}

.popup-close{

    position:absolute;

    right:18px;

    top:15px;

    background:none;

    border:none;

    color:white;

    font-size:30px;

    cursor:pointer;

}

.popup-card h2{

    font-family:"Cinzel",serif;

    color:var(--gold);

    margin-bottom:10px;

}

.popup-card p{

    color:var(--gray);

    margin-bottom:25px;

}

.server-ip-box{

    background:#0E0E15;

    border:1px solid rgba(111,82,255,.3);

    border-radius:12px;

    padding:18px;

    font-size:20px;

    margin-bottom:30px;

    font-family:monospace;

    color:var(--purple-light);

}

.popup-buttons{

    display:flex;

    gap:15px;

    justify-content:center;

    flex-wrap:wrap;

}

.popup-buttons button,

.popup-buttons a{

    padding:14px 24px;

    border-radius:40px;

    text-decoration:none;

    cursor:pointer;

    transition:.3s;

}

.popup-buttons button{

    background:var(--purple);

    color:white;

    border:none;

}

.popup-buttons button:hover{

    transform:translateY(-3px);

}

.popup-buttons a{

    border:1px solid var(--gold);

    color:var(--gold);

}

.popup-buttons a:hover{

    background:var(--gold);

    color:black;

}

#copyMessage{

    display:block;

    margin-top:20px;

    color:#6DFF8C;

    min-height:20px;

}

/* ==========================
   RULES POPUP
========================== */

.rules-popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.8);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.rules-popup.show{

    opacity:1;

    visibility:visible;

}

.rules-card{

    width:700px;

    max-width:92%;

    max-height:85vh;

    overflow-y:auto;

    background:#171326;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:40px;

    position:relative;

    animation:popup .35s ease;

}

.rules-close{

    position:absolute;

    right:20px;

    top:15px;

    border:none;

    background:none;

    color:white;

    font-size:32px;

    cursor:pointer;

}

.rules-card h2{

    text-align:center;

    font-family:"Cinzel", serif;

    color:var(--gold);

    margin-bottom:10px;

}

.rules-subtitle{

    text-align:center;

    color:var(--gray);

    margin-bottom:35px;

}

.rules-list{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.rule-item{

    display:flex;

    gap:18px;

    padding:18px;

    background:rgba(255,255,255,.03);

    border-left:4px solid var(--gold);

    border-radius:12px;

}

.rule-item span{

    font-size:22px;

    color:var(--gold);

    font-weight:bold;

}

.rule-item p{

    color:var(--gray);

    line-height:1.8;

}

/* ==========================================
   NEWS
========================================== */

.news-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.news-card{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:30px;

    transition:.35s;

}

.news-card:hover{

    transform:translateY(-8px);

    border-color:rgba(214,181,106,.4);

}

.news-date{

    color:var(--gold);

    margin-bottom:15px;

    font-size:14px;

}

.news-card h3{

    margin-bottom:18px;

    font-family:"Cinzel",serif;

}

.news-card p{

    color:var(--gray);

    line-height:1.8;

    margin-bottom:25px;

}

.news-btn{

    background:none;

    border:1px solid var(--gold);

    color:var(--gold);

    padding:10px 24px;

    border-radius:40px;

    cursor:pointer;

    transition:.3s;

}

.news-btn:hover{

    background:var(--gold);

    color:black;

}

.news-popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.8);

    display:flex;

    justify-content:center;

    align-items:center;

    visibility:hidden;

    opacity:0;

    transition:.3s;

    z-index:9999;

}

.news-popup.show{

    visibility:visible;

    opacity:1;

}

.news-popup-card{

    width:700px;

    max-width:92%;

    background:#171326;

    border-radius:20px;

    padding:40px;

    position:relative;

}

.news-popup-card button{

    position:absolute;

    right:20px;

    top:20px;

    border:none;

    background:none;

    color:white;

    font-size:30px;

    cursor:pointer;

}

.news-popup-card small{

    color:var(--gold);

}

.news-popup-card h2{

    margin:15px 0 20px;

    font-family:"Cinzel",serif;

}

.news-popup-card p{

    color:var(--gray);

    line-height:1.9;

}

/* ========================================
   HOW TO JOIN POPUP
======================================== */

.join-guide-popup{

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.75);

    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;

    z-index: 9999;

}

.join-guide-popup.show{

    opacity: 1;
    visibility: visible;

}

.join-guide-card{

    width: min(700px, 92%);

    max-height: 85vh;
    overflow-y: auto;

    background: #171326;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 20px;

    padding: 35px;

    position: relative;

    box-shadow: 0 20px 60px rgba(0,0,0,.45);

    animation: popupFade .35s ease;

}

.join-guide-card h2{

    color: var(--gold);

    text-align: center;

    margin-bottom: 30px;

    font-family: "Cinzel", serif;

}

.join-guide-card h3{

    color: var(--gold);

    margin-bottom: 12px;

}

.guide-box{

    background: rgba(255,255,255,.03);

    border-left: 4px solid var(--gold);

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 20px;

}

.guide-box ol{

    padding-left: 20px;

    color: var(--gray);

    line-height: 1.9;

}

.guide-box p{

    color: var(--gray);

    margin: 10px 0;

}

.guide-footer{

    margin-top: 25px;

    padding: 18px;

    text-align: center;

    background: rgba(212,175,55,.08);

    border: 1px solid rgba(212,175,55,.25);

    border-radius: 12px;

    color: var(--gold);

    font-weight: 600;

}

#closeJoinGuide{

    position: absolute;

    top: 15px;
    right: 20px;

    background: none;
    border: none;

    color: white;

    font-size: 30px;

    cursor: pointer;

    transition: .3s;