/* Nightfall KalOnline - Professional MMORPG Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glowing {
    0% { box-shadow: 0 0 5px #8a2be2; }
    50% { box-shadow: 0 0 20px #8a2be2; }
    100% { box-shadow: 0 0 5px #8a2be2; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* General Styles */
body {
    background: #0a0a0a url('../../images/bg.jpg') top center no-repeat fixed;
    background-size: cover;
    color: #e8eaed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    animation: fadeIn 1s ease-in-out;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#wrapper {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.85), rgba(20, 20, 40, 0.8));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(138, 43, 226, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

#wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/content-bg.jpg') center center no-repeat;
    background-size: cover;
    filter: blur(2px);
    z-index: -1;
    opacity: 0.6;
}

a {
    color: #8a2be2; /* Nightfall violet */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #f72585; /* Nightfall magenta */
    text-decoration: none;
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.5);
}

a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #f72585;
    transition: width 0.3s ease;
}

a:hover:after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Cinzel', serif;
    color: #e8eaed;
    text-shadow: none;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
    padding-bottom: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: #8a2be2;
    border-bottom-color: rgba(138, 43, 226, 0.6);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, #8a2be2, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1:before, h1:after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: -2px;
    background: linear-gradient(to right, transparent, #8a2be2, transparent);
    width: 100%;
    left: 0;
}

h2 {
    font-size: 26px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

img {
    border: 0;
}

/* Header Styles */
#header {
    height: 200px;
    background: rgba(10, 10, 30, 0.6);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

#site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

#site-title h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #a7cbd5;
    text-shadow: 0 0 20px rgba(183, 201, 206, 0.5);
    margin: 0;
    letter-spacing: 3px;
    border: none;
    padding: 0;
    background: linear-gradient(135deg, #dddede, #9b9b9b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.title-decoration {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
    margin: 8px auto;
    border-radius: 1px;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}



.status-header {
    text-align: center;
    font-weight: bold;
    color: #8a2be2;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding-bottom: 3px;
    margin-bottom: 3px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.status-online {
    color: #00ff00;
    font-weight: bold;
}

.status-offline {
    color: #ff0000;
    font-weight: bold;
}

.status-maintenance {
    color: #f72585;
    font-weight: bold;
}

/* Navigation Styles */
#navigation {
    height: 60px;
    background: linear-gradient(135deg, rgba(22, 15, 45, 0.95), rgba(30, 20, 60, 0.9));
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#navigation ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#navigation li {
    display: inline-block;
    height: 60px;
    line-height: 60px;
    margin: 0 2px;
    padding: 0;
    position: relative;
}

#navigation a {
    display: block;
    height: 60px;
    line-height: 60px;
    padding: 0 24px;
    color: #e8eaed;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-shadow: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#navigation a:hover {
    color: #8a2be2;
    text-decoration: none;
    background: rgba(138, 43, 226, 0.1);
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

#navigation li.nav-dropdown { position: relative; }
#navigation li.nav-dropdown > a { padding-right: 30px; }
#navigation li.nav-dropdown > a:after { content: '\25BE'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; opacity: 0.7; transition: transform 0.2s ease; }
#navigation .dropdown-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(6px) scale(0.98); transition: all 0.2s ease; position: absolute; top: 60px; left: 0; min-width: 220px; height: auto; background: rgba(20, 25, 45, 0.98); border: 1px solid rgba(76, 201, 240, 0.25); border-radius: 10px; box-shadow: 0 14px 28px rgba(0,0,0,0.35); z-index: 200; padding: 8px 0; backdrop-filter: blur(6px); }
#navigation .dropdown-menu li { display: block; margin: 0; }
#navigation .dropdown-menu a { height: 42px; line-height: 42px; padding: 0 16px; text-transform: none; font-size: 13px; border-radius: 6px; }
#navigation .dropdown-menu a:hover { background: rgba(76, 201, 240, 0.12); color: #ffffff; }
#navigation li.nav-dropdown:hover .dropdown-menu, #navigation li.nav-dropdown:focus-within .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
#navigation li.nav-dropdown:hover > a:after { transform: translateY(-50%) rotate(180deg); }

@media (max-width: 768px) { #navigation .dropdown-menu { position: static; top: auto; left: auto; box-shadow: none; transform: none; } }

#navigation a:after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

#navigation a:hover:after {
    width: 70%;
}

/* Content Styles */
#content {
    padding: 40px;
    min-height: 600px;
    background: transparent;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
    z-index: 2;
}

.welcome-box {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.25), rgba(25, 25, 45, 0.15));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 
                0 4px 12px rgba(138, 43, 226, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

.welcome-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #8a2be2, #f72585, #8a2be2);
    background-size: 100% 200%;
    animation: gradientFlow 3s ease-in-out infinite;
}

.welcome-box:after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 20s linear infinite;
}

.welcome-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 8px 24px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
}

.welcome-box:hover:after {
    opacity: 1;
}

.welcome-box h2 {
    color: #8a2be2;
    margin-top: 0;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
    z-index: 3;
}

.welcome-box p, .welcome-box ul {
    position: relative;
    z-index: 3;
    line-height: 1.7;
    font-size: 16px;
}

.welcome-box ul li {
    margin-bottom: 12px;
    padding-left: 8px;
    position: relative;
}

.welcome-box ul li:before {
    content: '▶';
    color: #8a2be2;
    font-size: 12px;
    position: absolute;
    left: -16px;
    top: 2px;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

.news-box {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.25), rgba(25, 25, 45, 0.15));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 
                0 4px 12px rgba(138, 43, 226, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    contain: layout style;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.news-box::-webkit-scrollbar {
    width: 8px;
}

.news-box::-webkit-scrollbar-track {
    background: rgba(20, 20, 40, 0.3);
    border-radius: 4px;
}

.news-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8a2be2, #f72585);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.news-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f72585, #8a2be2);
}

.news-box:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 25s linear infinite;
}

.news-box:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 8px 24px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-6px) scale(1.01);
}

.news-box:hover:before {
    opacity: 1;
}

.news-box h2 {
    color: #8a2be2;
    margin-top: 0;
    margin-bottom: 32px;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 3;
    text-align: center;
}

.news-item {
    margin-bottom: 28px;
    padding: 20px 24px;
    padding-left: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.3), rgba(30, 30, 50, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.news-item:nth-child(even) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.news-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #8a2be2, #f72585, #8a2be2);
    background-size: 100% 200%;
    opacity: 0.7;
    transition: all 0.4s ease;
    animation: gradientFlow 4s ease-in-out infinite;
}

.news-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.news-item:hover {
    transform: translateY(-3px) translateX(5px);
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.5), rgba(30, 30, 50, 0.4));
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.news-item:hover:before {
    opacity: 1;
    width: 6px;
}

.news-item:hover:after {
    left: 100%;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    color: #8a2be2;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 1.2px;
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(247, 37, 133, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.news-date:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(247, 37, 133, 0.2));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.news-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.news-title.clickable {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.news-title.clickable:after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8a2be2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(138, 43, 226, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.news-title.clickable:hover:after {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

.news-title.clickable.expanded:after {
    transform: translateY(-50%) rotate(180deg);
}

.news-item:hover .news-title {
    color: #f72585;
    text-shadow: 0 2px 8px rgba(247, 37, 133, 0.4);
    transform: translateX(5px);
}

.news-content {
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(232, 234, 237, 0.9);
    margin-top: 16px;
}

.news-content {
    margin-top: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Enhanced Login Page Styles */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message:before {
    content: '⚠';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #ff6b6b;
}

.success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(81, 207, 102, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #51cf66;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.success-message:before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #51cf66;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-success {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(247, 37, 133, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.login-success:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
}

.login-success p {
    color: #8a2be2;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-success .form-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.form-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(138, 43, 226, 0.3), transparent);
}

.form-divider span {
    background: rgba(10, 10, 20, 0.9);
    color: #8a2be2;
    padding: 0 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.change-password-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
}

.change-password-section h3 {
    color: #8a2be2;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.change-password-section p {
    color: #cccccc;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.form-links p {
    margin: 8px 0;
    color: #cccccc;
}

.form-links a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form-links a:hover {
    color: #f72585;
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.3);
}

.form-row small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.screenshots {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.screenshot {
    display: inline-block;
    margin: 0;
    border: 2px solid rgba(138, 43, 226, 0.3);
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.screenshot:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: #f72585;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(138, 43, 226, 0.3);
    z-index: 10;
}

.screenshot img {
    width: 220px;
    height: 165px;
    transition: all 0.4s ease;
    object-fit: cover;
}

.screenshot:hover img {
    filter: brightness(1.2);
}

.screenshot:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.screenshot:hover:after {
    opacity: 1;
}

/* Form Styles */
.form-box {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.6), rgba(30, 30, 50, 0.4));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

.form-box:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15), rgba(247, 37, 133, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 30s linear infinite;
}

.form-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 8px 24px rgba(138, 43, 226, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
}

.form-box:hover:before {
    opacity: 1;
}

.form-box h1, .form-box h2, .form-box h3 {
    color: #8a2be2;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 3;
}

.form-box h1 {
    font-size: 28px;
    margin-bottom: 32px;
}

.form-box h2 {
    font-size: 24px;
}

.form-box h3 {
    font-size: 20px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-row {
    margin-bottom: 20px;
    position: relative;
    animation: fadeInLeft 0.6s ease-out;
}

.form-row:nth-child(even) {
    animation: fadeInRight 0.6s ease-out;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #e8eaed;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.form-row:hover label {
    color: #f72585;
    text-shadow: 0 0 8px rgba(247, 37, 133, 0.4);
    transform: translateX(5px);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.7), rgba(40, 40, 60, 0.5));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: #e8eaed;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 
                0 1px 4px rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
    height: 42px;
    box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="number"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.15), 
                inset 0 1px 3px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(138, 43, 226, 0.2);
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(40, 40, 60, 0.7));
    transform: translateY(-1px);
    color: #ffffff;
}

.form-row input[type="text"]:hover,
.form-row input[type="password"]:hover,
.form-row input[type="email"]:hover,
.form-row input[type="number"]:hover,
.form-row select:hover,
.form-row textarea:hover {
    border-color: rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(40, 40, 60, 0.6));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 
                0 2px 6px rgba(138, 43, 226, 0.15);
}

.form-row input[type="text"]::placeholder,
.form-row input[type="password"]::placeholder,
.form-row input[type="email"]::placeholder,
.form-row textarea::placeholder {
    color: rgba(232, 234, 237, 0.6);
    transition: all 0.3s ease;
}

.form-row input[type="text"]:focus::placeholder,
.form-row input[type="password"]:focus::placeholder,
.form-row input[type="email"]:focus::placeholder,
.form-row textarea:focus::placeholder {
    color: rgba(138, 43, 226, 0.7);
    transform: translateX(5px);
}

.form-row input[type="submit"],
.form-row input[type="button"] {
    padding: 12px 32px;
    background: linear-gradient(135deg, #8a2be2, #f72585, #8a2be2);
    background-size: 200% 200%;
    border: none;
    border-radius: 8px;
    color: #0f0f23;
    font-weight: 700;
    cursor: pointer;
    text-shadow: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    animation: gradientShift 3s ease-in-out infinite;
    height: 42px;
    box-sizing: border-box;
    min-width: 180px;
    display: inline-block;
    width: auto;
}

.form-row input[type="submit"]:before,
.form-row input[type="button"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.form-row input[type="submit"]:hover,
.form-row input[type="button"]:hover {
    background: linear-gradient(135deg, #f72585, #8a2be2, #f72585);
    background-size: 200% 200%;
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.5),
                0 4px 12px rgba(247, 37, 133, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.01);
    animation: gradientShift 1.5s ease-in-out infinite;
}

.form-row input[type="submit"]:hover:before,
.form-row input[type="button"]:hover:before {
    left: 100%;
}

.form-row input[type="submit"]:active,
.form-row input[type="button"]:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: none;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.form-row input[type="submit"]:before,
.form-row input[type="button"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.form-row input[type="submit"]:hover:before,
.form-row input[type="button"]:hover:before {
    left: 100%;
}

/* Form Group Styles (for register.php) */
.form-group {
    display: block;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.3), rgba(30, 30, 50, 0.2));
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.form-group:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.form-group:hover {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.6), rgba(30, 30, 50, 0.5));
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

.form-group:hover:before {
    left: 100%;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item label {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #e8eaed;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin: 0;
    width: auto;
}

.form-group label {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #e8eaed;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    vertical-align: top;
}

.form-group:hover label {
    color: #f72585;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 14px 18px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    color: #e8eaed;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1), 0 4px 12px rgba(138, 43, 226, 0.2);
    background: rgba(25, 25, 45, 0.8);
    transform: translateY(-1px);
    z-index: 15;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, rgba(30, 20, 60, 0.8), rgba(40, 25, 70, 0.6));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 10;
}

.form-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, rgba(30, 20, 60, 0.8), rgba(40, 25, 70, 0.6));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    vertical-align: top;
    margin-top: 2px;
    z-index: 10;
}

.checkbox-item input[type="checkbox"]:before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #0f0f23;
    font-weight: bold;
    font-size: 11px;
    transition: transform 0.15s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-group input[type="checkbox"]:before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #0f0f23;
    font-weight: bold;
    font-size: 11px;
    transition: transform 0.15s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #8a2be2, #f72585);
    border-color: #f72585;
    box-shadow: 0 0 12px rgba(247, 37, 133, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.form-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #8a2be2, #f72585);
    border-color: #f72585;
    box-shadow: 0 0 12px rgba(247, 37, 133, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.checkbox-item input[type="checkbox"]:checked:before {
    transform: translate(-50%, -50%) scale(1);
}

.form-group input[type="checkbox"]:checked:before {
    transform: translate(-50%, -50%) scale(1);
}

.form-group input[type="checkbox"]:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 4px rgba(138, 43, 226, 0.3);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #a0a0a0;
    font-size: 12px;
    font-style: italic;
}

/* Button Primary Styles */
.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #8a2be2, #f72585);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    text-shadow: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    text-transform: uppercase;
    z-index: 10;
    margin-top: 10px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f72585, #8a2be2);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
    transform: translateY(-3px) scale(1.02);
    z-index: 15;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover:before {
    left: 100%;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.data-table th {
    background: linear-gradient(to bottom, #2a134e, #1b0f3a);
    color: #8a2be2;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid rgba(138, 43, 226, 0.3);
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-size: 15px;
    position: relative;
}

.data-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #8a2be2, transparent);
    opacity: 0.5;
}

.data-table td {
    padding: 10px 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    background: rgba(10, 10, 20, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.data-table tr {
    transition: all 0.3s ease;
}

.data-table tr:hover td {
    background: rgba(25, 25, 35, 0.8);
    color: #ffffff;
}

.data-table tr:hover {
    transform: translateX(5px);
}

.data-table .highlight {
    background: rgba(40, 30, 10, 0.7);
    position: relative;
}

.data-table .highlight:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #f72585;
}

/* Downloads Styles */
.download-box {
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.download-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    padding-left: 15px;
    position: relative;
}

.download-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #8a2be2, transparent);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.download-item:hover:before {
    opacity: 1;
    width: 5px;
}

.download-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.download-title {
    color: #8a2be2;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.download-item:hover .download-title {
    color: #f72585;
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.3);
}

.download-description {
    margin-bottom: 10px;
}

.download-button {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to bottom, #2a134e, #1b0f3a);
    border: 1px solid #8a2be2;
    color: #8a2be2;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 2px #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.download-button:hover {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(to bottom, #3a2a6e, #2a1a5e);
    border-color: #f72585;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

.download-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
#footer {
    background: linear-gradient(135deg, rgba(15, 10, 35, 0.95), rgba(8, 5, 20, 0.98));
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 32px 40px;
    text-align: center;
    color: #b8bcc8;
    font-size: 14px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(20px);
}

#footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(138, 43, 226, 0.5), transparent);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #8a2be2;
    margin: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #8a2be2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(138, 43, 226, 0.1);
    position: relative;
    display: inline-block;
}

.social-links a:hover {
    color: #f72585;
    text-shadow: 0 0 8px rgba(247, 37, 133, 0.4);
    transform: translateY(-2px) scale(1.05);
    background: rgba(138, 43, 226, 0.2);
}

.copyright {
    color: #555;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Download Button Styles */
.download-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8a2be2, #f72585);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    margin: 8px;
}

.download-button:hover {
    background: linear-gradient(135deg, #f72585, #8a2be2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(138, 43, 226, 0.4);
    color: #0a0a0a;
}

.download-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    #wrapper {
        width: 95%;
        margin: 10px auto;
    }
    
    #header {
        height: 160px;
    }
    
    #logo {
        top: 20px;
        left: 20px;
    }
    
    #server-status {
        top: 20px;
        right: 20px;
        width: 200px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    #wrapper {
        width: 98%;
        margin: 5px auto;
        border-radius: 8px;
    }
    
    #header {
        height: 140px;
    }
    
    #logo {
        top: 15px;
        left: 15px;
    }
    
    #logo img {
        max-width: 200px;
        max-height: 80px;
    }
    
    #server-status {
        position: static;
        width: auto;
        margin: 15px;
        padding: 15px;
    }
    
    #navigation {
        height: auto;
        padding: 10px 0;
    }
    
    #navigation ul {
        flex-wrap: wrap;
        height: auto;
    }
    
    #navigation li {
        height: 45px;
        line-height: 45px;
        margin: 2px;
    }
    
    #navigation a {
        height: 45px;
        line-height: 45px;
        padding: 0 16px;
        font-size: 13px;
    }
    
    #content {
        padding: 20px;
    }
    
    .welcome-box,
    .news-box,
    .form-box {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .form-row input[type="text"],
    .form-row input[type="password"],
    .form-row input[type="email"],
    .form-row select,
    .form-row textarea {
        max-width: 100%;
        padding: 12px 16px;
    }
    
    .screenshots {
        gap: 8px;
    }
    
    .screenshot img {
        width: 140px;
        height: 105px;
    }
    
    .download-button {
        padding: 14px 24px;
        font-size: 14px;
        margin: 6px;
    }
    
    #footer {
        padding: 24px 20px;
    }
    
    .social-links {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #navigation a {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .screenshot img {
        width: 120px;
        height: 90px;
    }
    
    .download-button {
        padding: 12px 20px;
        font-size: 13px;
        display: block;
        text-align: center;
        margin: 8px 0;
    }
}

/* Add animations for page transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

/* Scroll reveal animations */
.welcome-box, .news-box, .form-box, .data-table, .screenshots, .download-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Particle effects */
.particle {
    pointer-events: none;
}

/* Glow effect for server status */
#server-status.glow {
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

/* Footer decoration */
.footer-decoration {
    margin: 15px auto;
    width: 80%;
    max-width: 600px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(138, 43, 226, 0.5), transparent);
    position: relative;
}

.footer-divider:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #f72585;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.7);
}

/* Add custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

.rank-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 12px 0 18px;
    background: rgba(20, 25, 45, 0.5);
    border: 1px solid rgba(76, 201, 240, 0.25);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.rank-tabs {
    display: flex;
    gap: 8px;
}

.rank-tab {
    display: inline-block;
    padding: 7px 12px;
    font-size: 13px;
    color: #e8eaed;
    background: rgba(20, 25, 45, 0.6);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.rank-tab:hover {
    background: rgba(25, 30, 55, 0.85);
    color: #ffffff;
    transform: translateY(-1px);
}

.rank-tab.active {
    background: linear-gradient(135deg, rgba(76,201,240,0.25), rgba(114,239,221,0.15));
    border-color: rgba(114, 239, 221, 0.6);
}

.rank-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-select {
    padding: 6px 8px;
    font-size: 13px;
    background: rgba(10, 10, 20, 0.9);
    color: #e8eaed;
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 6px;
}

.rank-apply {
    padding: 6px 12px;
    font-size: 13px;
    color: #e8eaed;
    background: rgba(20,25,45,0.7);
    border: 1px solid rgba(76,201,240,0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rank-apply:hover {
    background: rgba(25,30,55,0.9);
    color: #ffffff;
}

@media (max-width: 600px) {
    .rank-toolbar { flex-direction: column; align-items: stretch; }
    .rank-filter { justify-content: center; }
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

.community-card {
    margin: 0;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}

.home-card { margin: 0; padding: 16px 18px; }
.welcome-box.home-card { padding: 14px 16px; position: relative; }
.welcome-box.home-card { background: linear-gradient(135deg, rgba(15, 15, 35, 0.25), rgba(25, 25, 45, 0.2)); border: 1px solid rgba(76, 201, 240, 0.25); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.welcome-box.home-card h2 { font-size: 24px; }
.welcome-box.home-card p, .welcome-box.home-card li { font-size: 14px; }
.welcome-toolbar { position: absolute; top: 12px; right: 12px; }
.rates-toggle { display: inline-block; padding: 6px 10px; font-size: 12px; color: #e8eaed; background: rgba(20,25,45,0.7); border: 1px solid rgba(76,201,240,0.3); border-radius: 14px; text-decoration: none; }
.rates-toggle:hover { background: rgba(25,30,55,0.9); color: #ffffff; }
.welcome-dropdown { visibility: visible; opacity: 1; transform: translateY(0); transition: all 0.2s ease; position: absolute; top: 20px; right: 12px; min-width: 300px; background: rgba(20,25,45,0.98); border: 1px solid rgba(76,201,240,0.25); border-radius: 8px; box-shadow: 0 14px 28px rgba(0,0,0,0.35); padding: 6px; z-index: 150; }
.rates-header { font-size: 11px; font-weight: 700; color: #4cc9f0; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.rates-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.rates-list li { display: inline-flex; align-items: center; padding: 3px 7px; font-size: 10px; color: #e8eaed; background: linear-gradient(135deg, rgba(15, 20, 35, 0.8), rgba(25, 30, 50, 0.8)); border: 1px solid rgba(76, 201, 240, 0.25); border-radius: 12px; }
.welcome-box .rates-list li:before { content: none; }
.rates-list li { position: relative; }
.rates-list li strong { margin-right: 6px; }
.welcome-dropdown .data-table th, .welcome-dropdown .data-table td { font-size: 12px; }

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(76,201,240,0.05);
    border: 1px solid rgba(76,201,240,0.2);
    border-radius: 8px;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-vote-btn {
    position: fixed;
    top: 80px;
    right: -160px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    width: 220px;
    font-size: 12px;
    font-weight: 700;
    color: #e8eaed;
    background: linear-gradient(135deg, rgba(138,43,226,0.85), rgba(76,201,240,0.85));
    border: 1px solid rgba(76, 201, 240, 0.5);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    animation: votePulse 2.2s ease-in-out infinite;
    transition: right 0.25s ease;
}

.floating-vote-btn:hover {
    background: linear-gradient(135deg, rgba(138,43,226,0.95), rgba(76,201,240,0.95));
    color: #ffffff;
    right: -44px;
}

@keyframes votePulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(76,201,240,0.0); }
    50% { box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 0 12px 4px rgba(76,201,240,0.35); }
}
.home-span-2 { grid-column: 1 / -1; }

.home-grid h2 { font-size: 22px; }
.home-grid h3 { font-size: 18px; }
.home-grid p { font-size: 14px; }
.home-grid ul { margin: 8px 0; }
.home-grid li { font-size: 14px; }
.home-grid .download-button { padding: 10px 16px; font-size: 13px; }

@media (max-width: 900px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-span-2 { grid-column: auto; }
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.8);
}

/* Top 3 Ranking Styles */
.rank-1 {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rank-2 {
    color: #C0C0C0 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.5);
}

.rank-3 {
    color: #CD7F32 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
}

.rank-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.rank-icon-1::before {
    content: "👑";
    font-size: 14px;
}

.rank-icon-2::before {
    content: "🥈";
    font-size: 14px;
}

.rank-icon-3::before {
    content: "🥉";
    font-size: 14px;
}

/* Experience Progress Bar Styles */
.exp-progress-wrapper {
    width: 100%;
}

.exp-progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    margin-bottom: 3px;
}

.exp-progress-segment {
    width: 10%;
    height: 100%;
    border-right: 2px solid #444;
    background-color: #2a2a2a;
    border-radius: 0;
}

.exp-progress-segment:last-child {
    border-right: none;
}

.exp-progress-segment.filled {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFFF00 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.exp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.exp-counter-bar {
    width: 100%;
    height: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
    position: relative;
    font-size: 8px;
    color: #ccc;
    text-align: center;
    line-height: 8px;
    overflow: hidden;
}

.exp-counter-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}
.news-item .news-date-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
