@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #0a0f16;
    --bg-card: #111827;
    --bg-footer: #05080b;
    --aqua-main: #00e5ff;
    --aqua-hover: #00b3cc;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --nav-bg: rgba(10, 15, 22, 0);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    direction: rtl;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(0.4);
    z-index: -2;
    transition: opacity 0.1s ease-out;
}

.bg-overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, 
        rgba(10, 15, 22, 0) 0%, 
        rgba(10, 15, 22, 0.2) 30%, 
        rgba(10, 15, 22, 0.6) 60%, 
        var(--bg-dark) 100%
    );
    z-index: -1;
}

/* Faint Glowing Grid Overlay */
.bg-overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: -1;
}

a { text-decoration: none; color: inherit; }
.aqua { color: var(--aqua-main); }
.highlight { color: var(--aqua-main); }
.text-danger { color: #ff4757 !important; }
.noselect { user-select: none; -webkit-user-select: none; -ms-user-select: none; }

.navbar {
    position: fixed;
    width: 100%;
    top: 20px;
    z-index: 1000;
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1rem 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.navbar.scrolled {
    top: 0;
    background-color: rgba(10, 15, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled .nav-container {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
    padding: 0.8rem 2rem;
}

.logo .logo-text { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; font-family: Arial, sans-serif !important; }

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.25));
    transition: var(--transition);
    vertical-align: middle;
}

.logo-img:hover {
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.logo-img-small {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.2));
    vertical-align: middle;
}
.nav-links { display: flex; list-style: none; gap: 3rem; }
.nav-links a { font-size: 1.05rem; font-weight: 500; transition: var(--transition); color: var(--text-gray); }
.nav-links a:hover { color: var(--text-white); text-shadow: 0 0 12px rgba(255,255,255,0.4); }

.btn-login {
    background-color: var(--aqua-main);
    color: #000;
    padding: 0.6rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--aqua-hover);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-white);
    padding: 0.6rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    transition: var(--transition);
    margin-left: 10px;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background-color: rgba(255,255,255,0.05);
}

.hero { min-height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; padding-top: 80px; position: relative; }
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, 
        rgba(10, 15, 22, 0) 0%, 
        rgba(10, 15, 22, 0.3) 35%, 
        rgba(10, 15, 22, 0.7) 70%, 
        var(--bg-dark) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.hero-content { max-width: 800px; padding: 2rem; }
.badge { display: inline-block; color: var(--text-white); font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.badge i { color: var(--aqua-main); margin-left: 8px; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.5; font-weight: 900; margin-bottom: 1.5rem; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.description { color: var(--text-gray); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

.server-box {
    display: inline-flex;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.05);
    transition: var(--transition);
}
.server-box:hover { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 35px rgba(0, 229, 255, 0.1); }
.ip-section { padding: 1rem 2.5rem; font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; cursor: pointer; transition: var(--transition); border-left: 1px solid rgba(255, 255, 255, 0.05); font-family: Arial, sans-serif !important; }
.ip-section:hover { background-color: rgba(0, 229, 255, 0.05); }
.status-section { padding: 1rem 2.5rem; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.online { background-color: #10b981; box-shadow: 0 0 12px #10b981; }
.dot.offline { background-color: #ef4444; box-shadow: 0 0 12px #ef4444; }

.game-modes { 
    padding: 6rem 5%; 
    background-color: var(--bg-dark); 
    position: relative; 
    z-index: 10; 
}
.gm-container { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: 3.5rem; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.gm-grid { 
    width: 100%;
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}
.gm-card-wrapper {
    animation: gmCardFloat 6s ease-in-out infinite;
    display: flex;
    width: 100%;
}
.gm-card { 
    background-color: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.03); 
    border-radius: 24px; 
    padding: 1.3rem 1.6rem; 
    display: flex; 
    align-items: center; 
    gap: 1.2rem; 
    cursor: pointer; 
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}
.gm-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    border-color: rgba(0, 229, 255, 0.35); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 229, 255, 0.15); 
}
.gm-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(0, 229, 255, 0.02) 100%);
    border: 2px solid rgba(0, 229, 255, 0.15);
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.gm-card:hover .gm-icon {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.05) 100%);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}
.gm-cube-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
    filter: brightness(0.9) contrast(1.05);
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gm-card:hover .gm-cube-img {
    transform: scale(1.35) rotate(5deg);
    filter: brightness(1.1) contrast(1.05);
}

@keyframes gmCardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.gm-info { flex: 1; text-align: right; }
.gm-info h4 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; text-align: right; white-space: nowrap; }
.gm-desc-text { font-size: 0.85rem; color: var(--text-gray); margin-top: 5px; line-height: 1.6; text-align: right; }
.gm-info .gm-version { font-size: 0.8rem; color: var(--aqua-main); font-weight: bold; display: inline-block; margin-top: 6px; }
.gm-stats { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: bold; 
    font-family: Arial, sans-serif !important; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 12px;
    flex-shrink: 0;
}
.gm-text-area { max-width: 800px; text-align: center; }
.gm-text-area h2 { font-size: 3rem; font-weight: 900; margin-bottom: 0.8rem; text-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
.highlight-line { width: 120px; height: 4px; background-color: var(--aqua-main); border-radius: 4px; margin: 0 auto 1.5rem; box-shadow: 0 0 15px var(--aqua-main); }
.gm-text-area p { color: var(--text-gray); line-height: 1.8; font-size: 1.1rem; }

.auth-section { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding-top: 80px; position: relative; z-index: 10; }
.auth-card { background-color: rgba(17, 24, 39, 0.6); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 3rem; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: var(--transition); }
.auth-card:hover { border-color: rgba(255,255,255,0.1); }
.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-header h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-gray); font-size: 0.95rem; }

.flash-msg { padding: 12px; border-radius: 12px; margin-bottom: 1.5rem; font-size: 0.9rem; text-align: center; font-weight: 500; }
.flash-msg.error { background-color: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }

.auth-form .form-group { margin-bottom: 1.5rem; }
.auth-form label { display: block; margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--text-gray); }
.auth-form input { width: 100%; padding: 1rem 1.2rem; background-color: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; color: #fff; font-family: Arial, sans-serif !important; transition: var(--transition); font-size: 1rem; }
.auth-form input:focus { outline: none; border-color: var(--aqua-main); box-shadow: 0 0 15px rgba(0,229,255,0.15); background-color: rgba(0,0,0,0.4); }

.btn-submit { width: 100%; background-color: var(--aqua-main); color: #000; padding: 1rem; border: none; border-radius: 14px; font-weight: 800; cursor: pointer; font-size: 1.05rem; transition: var(--transition); box-shadow: 0 0 20px rgba(0,229,255,0.2); margin-top: 1rem; }
.btn-submit:hover { background-color: var(--aqua-hover); box-shadow: 0 8px 30px rgba(0,229,255,0.4); transform: translateY(-2px); }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-gray); }
.auth-switch a { color: var(--aqua-main); font-weight: bold; transition: var(--transition); }
.auth-switch a:hover { text-shadow: 0 0 10px rgba(0,229,255,0.4); }

.dashboard-section { min-height: 100vh; padding: 120px 5% 5rem; position: relative; z-index: 10; }
.dash-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 2rem; }
.dash-sidebar { width: 300px; background-color: var(--bg-card); border: 1px solid rgba(255,255,255,0.03); border-radius: 20px; padding: 2rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.user-profile { text-align: center; padding: 0 2rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.mc-avatar { width: 80px; height: 80px; border-radius: 16px; margin-bottom: 1rem; background-color: rgba(0,0,0,0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.user-profile h3 { font-family: Arial, sans-serif !important; font-size: 1.2rem; margin-bottom: 0.5rem; word-break: break-all; }
.role-badge { background-color: rgba(0,229,255,0.1); color: var(--aqua-main); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; border: 1px solid rgba(0,229,255,0.2); }
.dash-menu { list-style: none; padding-top: 1rem; }
.dash-menu li a { display: flex; align-items: center; gap: 15px; padding: 1rem 2rem; color: var(--text-gray); transition: var(--transition); }
.dash-menu li a:hover, .dash-menu li a.active { background-color: rgba(0,229,255,0.03); color: var(--aqua-main); border-right: 3px solid var(--aqua-main); }
.dash-menu li a i { font-size: 1.2rem; }
.dash-content { flex: 1; }
.welcome-box { background-color: var(--bg-card); border: 1px solid rgba(255,255,255,0.03); border-radius: 20px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.welcome-box h2 { font-size: 1.8rem; margin-bottom: 1rem; }

.rank-card { padding: 2.5rem; border-radius: 24px; text-align: center; position: relative; overflow: hidden; margin-top: 2rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.05); }
.rank-pro { background: linear-gradient(145deg, #0f172a, #0b0f19); border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 10px 40px rgba(56, 189, 248, 0.1); }
.rank-pro .rank-title { color: #38bdf8; text-shadow: 0 0 15px rgba(56, 189, 248, 0.5); }
.rank-vip { background: linear-gradient(145deg, #064e3b, #022c22); border-color: rgba(74, 222, 128, 0.3); box-shadow: 0 10px 40px rgba(74, 222, 128, 0.1); }
.rank-vip .rank-title { color: #4ade80; text-shadow: 0 0 15px rgba(74, 222, 128, 0.5); }
.rank-champion { background: linear-gradient(145deg, #7c2d12, #431407); border-color: rgba(251, 146, 60, 0.3); box-shadow: 0 10px 40px rgba(251, 146, 60, 0.1); }
.rank-champion .rank-title { color: #fb923c; text-shadow: 0 0 15px rgba(251, 146, 60, 0.5); }
.rank-default { background-color: rgba(255,255,255,0.02); }
.rank-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; text-transform: uppercase; font-family: Arial, sans-serif !important; }
.rank-time { font-size: 1.1rem; color: var(--text-white); background-color: rgba(0,0,0,0.3); padding: 8px 20px; border-radius: 12px; display: inline-block; }
.rank-avatar { width: 120px; height: 120px; border-radius: 20px; margin-bottom: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

.site-footer { 
    background-color: rgba(17, 24, 39, 0.7); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 229, 255, 0.1); 
    padding: 3rem 5%; 
    position: relative; 
    z-index: 10; 
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; }
.footer-right { display: flex; align-items: center; gap: 30px; }
.social-icons { display: flex; gap: 20px; }
.social-icons a { font-size: 1.4rem; color: var(--text-gray); transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.social-icons a:hover { color: var(--aqua-main); filter: drop-shadow(0 0 8px rgba(0,229,255,0.5)); transform: translateY(-3px); }
.copyright { display: flex; align-items: center; gap: 10px; color: var(--text-gray); font-size: 0.95rem; }
.logo-text-small { font-weight: bold; color: #fff; font-family: Arial, sans-serif !important; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeIn 1.2s ease-out; }
.gm-card { animation: fadeIn 0.8s ease-out backwards; }
.gm-card:nth-child(1) { animation-delay: 0.1s; }
.gm-card:nth-child(2) { animation-delay: 0.2s; }
.gm-card:nth-child(3) { animation-delay: 0.3s; }
.gm-card:nth-child(4) { animation-delay: 0.4s; }
.auth-card { animation: fadeIn 0.8s ease-out; }
/* Logo floating animation removed */

/* Styled Inputs, Textareas, and Selects */
input.auth-form, textarea.auth-form, select.auth-form {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: inherit !important;
    transition: var(--transition);
}
input.auth-form:focus, textarea.auth-form:focus, select.auth-form:focus {
    outline: none !important;
    border-color: var(--aqua-main) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2) !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Beautiful Global Table Styles for Admin & Users Dashboard */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(17, 24, 39, 0.4);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
th, td {
    padding: 1.2rem 1.5rem;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
th {
    background-color: rgba(0, 229, 255, 0.06);
    color: var(--aqua-main);
    font-weight: 800;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}
td {
    color: #e2e8f0;
}
tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Elegant Table Actions Buttons */
.btn-table {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
    background-color: var(--aqua-main);
    color: #000;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}
.btn-table:hover {
    background-color: var(--aqua-hover);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}
.btn-table-danger {
    background-color: #dc3545;
    color: #fff;
}
.btn-table-danger:hover {
    background-color: #c82333;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

@media (max-width: 1200px) {
    .gm-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile Styles */
    .navbar {
        top: 10px;
    }
    .nav-container {
        padding: 0.8rem 1.2rem;
        width: 95%;
        border-radius: 15px;
    }
    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--text-white);
        cursor: pointer;
        transition: var(--transition);
        order: 1;
        width: 32px;
        height: 32px;
    }
    .menu-icon line {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        transform-origin: center;
    }
    .nav-toggle.active .menu-icon .line-1 {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.active .menu-icon .line-2 {
        opacity: 0;
    }
    .nav-toggle.active .menu-icon .line-3 {
        transform: translateY(-6px) rotate(-45deg);
    }
    .logo {
        order: 2;
    }
    .nav-action {
        order: 3;
    }
    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 15, 22, 0.94);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(0, 229, 255, 0.15);
        border-top: none;
        border-radius: 0 0 20px 20px;
        padding: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        gap: 1.2rem;
        text-align: center;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.05);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
    }
    .nav-links.active {
        max-height: 350px;
        opacity: 1;
        padding: 1.5rem;
        border-top: 1px solid rgba(0, 229, 255, 0.1);
    }
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    /* Hero Mobile Styles */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    .description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .server-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 2rem;
    }
    .ip-section {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    .status-section {
        padding: 0.8rem 1.5rem;
        justify-content: center;
    }

    /* Game Modes Mobile Styles */
    .game-modes {
        padding: 4rem 1.2rem;
    }
    .gm-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .gm-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    .gm-text-area {
        text-align: center;
    }
    .gm-text-area h2 {
        font-size: 2rem;
    }
    .highlight-line {
        margin: 0 auto 1.5rem;
        width: 100px;
    }
    .gm-text-area p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.8;
    }

    /* Footer Mobile Styles */
    .site-footer {
        padding: 2.5rem 1.2rem;
    }
    .footer-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-left {
        justify-content: center;
    }
    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
    .copyright {
        flex-direction: column;
        gap: 8px;
    }

    /* Auth & Dashboard Mobile Styles */
    .auth-section {
        padding: 100px 1rem 3rem;
    }
    .auth-card {
        padding: 1.8rem 1.2rem;
        border-radius: 20px;
    }
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-section {
        padding: 100px 1rem 3rem;
    }
    .dash-container {
        flex-direction: column;
    }
    .dash-sidebar {
        width: 100%;
        padding: 1.5rem 0;
    }
    .dash-menu li a {
        padding: 0.8rem 1.5rem;
    }
    .welcome-box {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    .welcome-box h2 {
        font-size: 1.4rem;
    }
    
    /* Store Cards Grid override */
    .store-grid {
        grid-template-columns: 1fr !important;
    }
    .gm-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tables on mobile */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px;
    }
    th, td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Admin Navbar Overrides for Desktop Layout */
@media (min-width: 769px) {
    .admin-navbar .nav-links {
        gap: 1.2rem;
    }
    .admin-navbar .nav-links a {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
}

/* Floating Minecraft Items in Hero Section */
.hero-floating-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 768px) {
    .hero-floating-items {
        display: none !important;
    }
}

.float-item {
    position: absolute;
    width: 75px;
    height: 75px;
    opacity: 0.15; /* Low opacity as requested */
    image-rendering: pixelated; /* Crisp pixel art */
    animation: floatAnimation 8s ease-in-out infinite alternate;
}

/* Set absolute coordinates & animation delays to float asynchronously */
.item-1 { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.item-2 { top: 25%; right: 12%; animation-delay: 1.5s; animation-duration: 9s; }
.item-3 { top: 60%; left: 8%; animation-delay: 3s; animation-duration: 8s; }
.item-4 { top: 70%; right: 10%; animation-delay: 0.5s; animation-duration: 7.5s; }
.item-5 { top: 40%; left: 20%; animation-delay: 2s; animation-duration: 10s; }
.item-6 { top: 55%; right: 22%; animation-delay: 4.5s; animation-duration: 8.5s; }
.item-7 { top: 80%; left: 25%; animation-delay: 1s; animation-duration: 6.5s; }
.item-8 { top: 12%; right: 28%; animation-delay: 3.5s; animation-duration: 9.5s; }

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Rules Page Styling */
.rules-hero {
    padding: 120px 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
}
.rules-hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.rules-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    color: var(--aqua-main);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(0, 229, 255, 0.15);
    margin-bottom: 1.5rem;
}
.rules-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.rules-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.rules-tabs {
    display: inline-flex;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 16px;
    gap: 6px;
    margin-top: 1rem;
}
.rules-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.rules-tab-btn.active {
    background: var(--aqua-main);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}
.rules-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 8rem;
}
.rules-section-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}
.rules-section-content.active {
    display: block;
}
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.rule-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition);
}
.rule-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.rule-num {
    background: rgba(0, 229, 255, 0.08);
    color: var(--aqua-main);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
    border: 1px solid rgba(0, 229, 255, 0.15);
    /* Force English digits font */
    font-family: 'Poppins', 'Outfit', 'Segoe UI', Arial, sans-serif !important;
}
.rule-info {
    flex-grow: 1;
}
.rule-info h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.6rem;
}
.rule-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Search & Controls for Mods Tab */
.rules-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
}
.rules-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.rules-search-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
    pointer-events: none;
}
.rules-search-input {
    width: 100%;
    padding: 15px 52px 15px 22px !important;
    background: rgba(10, 15, 22, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    color: #fff !important;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
    transition: var(--transition);
}
.rules-search-input:focus {
    outline: none !important;
    border-color: var(--aqua-main) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2) !important;
    background: rgba(10, 15, 22, 0.8) !important;
}
.rules-filter-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.filter-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    transition: var(--transition);
}
.filter-pill:hover, .filter-pill.active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--aqua-main);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

/* Mods Grid & Cards */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.mod-card {
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.mod-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.08), 0 0 20px rgba(239, 68, 68, 0.03);
}
.mod-cat-tag {
    align-self: flex-start;
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 800;
    z-index: 1;
}
.mod-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    margin-top: 0.2rem;
    font-family: 'Poppins', 'Outfit', 'Segoe UI', Arial, sans-serif !important;
    letter-spacing: 0.5px;
    z-index: 1;
}
.mod-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    z-index: 1;
}
.mod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}
.mod-type-tag {
    font-family: 'Poppins', 'Outfit', 'Segoe UI', Arial, sans-serif !important;
    font-size: 0.8rem;
    color: var(--text-gray);
}
.mod-status {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}
.mod-status.ban {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
}

@media (max-width: 1024px) {
    .mods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .rules-grid, .mods-grid {
        grid-template-columns: 1fr;
    }
    .rules-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .rules-search-wrapper {
        max-width: 100%;
    }
}

/* Store Page Styles */
.store-section {
    padding: 120px 5% 6rem;
    position: relative;
    z-index: 10;
}
.store-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.store-banner {
    text-align: center;
    margin-bottom: 0.5rem;
}
.store-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}
.store-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}
.store-profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    gap: 1.5rem;
}
.profile-left, .profile-middle {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: bold;
}
.profile-username {
    font-size: 1.15rem;
    font-weight: bold;
    font-family: Arial, sans-serif !important;
    color: #fff;
}
.profile-rank {
    font-size: 0.95rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 10px;
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.5px;
}
.profile-rank-expiry {
    font-size: 0.85rem;
    color: var(--text-gray);
}
.rank-badge-default {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rank-badge-pro {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.rank-badge-vip {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}
.rank-badge-champion {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.25);
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}
.btn-change-account {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-change-account:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--aqua-main);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
}
.store-categories-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
.store-categories-bar {
    display: flex;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 18px;
    gap: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.category-pill {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 12px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition);
}
.category-pill.active {
    background: var(--aqua-main);
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}
.category-pill.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}
.store-product-card {
    background: #1E2024;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.store-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}
.product-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}
.product-image-container {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}
.product-rank-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}
.store-product-card:hover .product-rank-img {
    transform: scale(1.05) translateY(-3px);
}
.product-title {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 0.8rem;
    color: #f1f1f1;
    font-family: inherit;
}
.product-description {
    display: none;
}
.product-price-container {
    margin-top: auto;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.price-original {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.2rem;
}
.price-discounted, .price-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--aqua-main);
}
.product-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-product-buy {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    background: var(--aqua-main);
    color: #111;
    transition: all 0.2s ease;
}
.btn-product-buy:hover {
    background: #00b8cc;
    transform: translateY(-2px);
}
.btn-product-features {
    background: transparent;
    border: none;
    color: #777;
    width: 100%;
    padding: 8px;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-product-features:hover {
    color: #ccc;
}

@media (max-width: 1024px) {
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .store-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .store-profile-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.2rem;
        text-align: center;
    }
    .profile-left, .profile-middle {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    .btn-change-account {
        justify-content: center;
        width: 100%;
    }
    .store-title {
        font-size: 2.4rem;
    }
}

/* Custom Scrollbar for Features Modal */
#modal-features-list::-webkit-scrollbar {
    width: 6px;
}
#modal-features-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
#modal-features-list::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 10px;
}
#modal-features-list::-webkit-scrollbar-thumb:hover {
    background: var(--aqua-main);
}