:root {
    --bg-dark: #08080c;
    --card-bg: #11111d;
    --primary-purple: #7d31ff;
    --light-purple: #b388ff;
    --border-color: #2b2b3d;
    --text-main: #ffffff;
    --text-dim: #b0b0cc;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: radial-gradient(circle at center, rgba(125,49,255,0.05), transparent 70%);
    z-index:-1;
}

/* NAVBAR */
nav {
    background: rgba(8,8,12,0.9);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top:0; z-index:99;
}

.nav-container {
    max-width: 1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-purple);
    text-shadow: 0 0 25px rgba(125,49,255,0.6);
}

.logo span { color: white; }

.nav-links {
    list-style:none;
    display:flex;
    gap:28px;
}

.nav-links a {
    text-decoration:none;
    color: var(--text-dim);
    font-weight:bold;
    transition:0.3s;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--light-purple);
}

/* HERO */
.hero {
    text-align:center;
    padding:100px 20px;
}

.glitch-purple {
    font-size:4rem;
    font-weight:900;
    text-shadow:0 0 40px rgba(125,49,255,0.9);
}

.hero-subtitle {
    color: var(--text-dim);
    margin:10px 0 40px;
}

.ip-container {
    background: var(--card-bg);
    border:1px solid var(--border-color);
    padding:12px 28px;
    border-radius:50px;
    display:inline-flex;
    align-items:center;
    gap:20px;
}

.ip-text span {
    color: var(--light-purple);
    font-weight:bold;
}

.copy-btn {
    background: var(--primary-purple);
    border:none;
    padding:8px 20px;
    border-radius:20px;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.copy-btn:hover {
    background: var(--light-purple);
}

/* FIXED SERVER STATUS */
.status-bar {
    margin-top:20px;
    background: rgba(125,49,255,0.15);
    padding:6px 24px;
    border-radius:25px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:0.95rem;
}

.status {
    font-weight:bold;
}

.status.checking { color:#999; }
.status.online { color:#b388ff; text-shadow:0 0 12px #7d31ff; }
.status.offline { color:#ff4d4d; }

.status-dot {
    width:10px;
    height:10px;
    border-radius:50%;
    background:#555;
}

.status-dot.online {
    background:#7d31ff;
    box-shadow:0 0 10px #7d31ff;
    animation:pulse 1.3s infinite;
}

.status-dot.offline {
    background:#ff4d4d;
}

@keyframes pulse {
    0%   { box-shadow:0 0 5px #7d31ff; }
    50%  { box-shadow:0 0 18px #7d31ff; }
    100% { box-shadow:0 0 5px #7d31ff; }
}

/* JOIN GUIDE */
.join-guide {
    max-width:1100px;
    margin:60px auto;
    padding:20px;
}

.section-title {
    text-align:center;
    margin-bottom:45px;
    font-size:2rem;
}

.guide-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
    gap:25px;
}

.step-card {
    background:var(--card-bg);
    border:1px solid var(--border-color);
    padding:35px 25px;
    border-radius:20px;
    text-align:center;
    position:relative;
    transition:0.3s;
}

.step-card:hover {
    border-color: var(--primary-purple);
    transform:translateY(-8px);
}

.step-num {
    position:absolute;
    top:-20px;
    left:50%; transform:translateX(-50%);
    background:var(--primary-purple);
    width:45px; height:45px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:white;
    font-weight:bold;
}

.download-links a {
    display:block;
    background:rgba(125,49,255,0.2);
    margin-top:8px;
    padding:6px;
    border-radius:6px;
    color: var(--light-purple);
    text-decoration:none;
    font-weight:bold;
}

/* GAMEMODES */
.modes-section {
    background:#0d0d16;
    padding:80px 20px;
}

.modes-grid {
    max-width:1100px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:25px;
}

.mode-card {
    background:var(--bg-dark);
    border:1px solid var(--border-color);
    padding:35px;
    border-radius:15px;
    text-align:center;
}

.badge {
    padding:4px 10px;
    border-radius:5px;
    font-size:0.85rem;
    margin-top:10px;
    display:inline-block;
}

.in-progress {
    background:#555;
    color:white;
}

.soon {
    background:#2b1d4d;
    color:#b388ff;
}

/* FOOTER */
footer {
    padding:40px;
    text-align:center;
    border-top:1px solid var(--border-color);
    color:var(--text-dim);
}

@media (max-width:768px) {
    .glitch-purple { font-size:2.5rem; }
    .nav-links { display:none; }
    
    /* SHOP */
.shop-section {
    max-width:1200px;
    margin:80px auto;
    padding:20px;
}

.rank-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:30px;
}

.rank-card {
    background:linear-gradient(145deg,#11111d,#0a0a14);
    border:1px solid #2b2b3d;
    border-radius:20px;
    padding:40px 25px;
    text-align:center;
    transition:0.3s;
    position:relative;
}

.rank-card:hover {
    transform:translateY(-10px);
    border-color:#7d31ff;
    box-shadow:0 0 25px rgba(125,49,255,0.5);
}

.rank-card h3 {
    font-size:1.5rem;
    margin-bottom:15px;
}

.price {
    font-size:2rem;
    color:#b388ff;
    font-weight:bold;
}

.duration {
    color:#999;
    margin:10px 0 25px;
}

.buy-btn {
    background:#7d31ff;
    border:none;
    padding:10px 25px;
    border-radius:25px;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.buy-btn:hover {
    background:#b388ff;
    
}