* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    background-color: #111;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('../grafika/tlo.png') no-repeat center center/cover;
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo .highlight {
    color: #f1c40f;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar a:hover, .navbar a.active {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
}

.btn-login {
    border: 1px solid #f1c40f;
    padding: 10px 25px;
    border-radius: 0;
    color: #f1c40f;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    padding-top: 0;
}

.content-wrapper {
    width: 90%;
    max-width: 1200px;
}

.content-wrapper h1 {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    color: #f1c40f;
    line-height: 1.1;
}

.typewriter-container {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    min-height: 1.6em;
}

.typewriter-text {
    color: #f1c40f;
    font-weight: bold;
}

.cursor {
    animation: blink 1s infinite;
    color: #fff;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1c40f;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-particle {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    border: 2px solid #f1c40f;
    background: rgba(241, 196, 15, 0.1);
    overflow: hidden;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-particle:hover {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 30px #f1c40f;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #fff;
}

.highlight {
    color: #f1c40f;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.features-section {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.4s;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: #f1c40f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(241, 196, 15, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(241, 196, 15, 0.1);
    transition: 0.4s;
}

.feature-card:hover .icon-box {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 20px #f1c40f;
}

.feature-card h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #fff;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
}

.stats-section {
    padding: 60px 0;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}

.counter {
    font-size: 4rem;
    color: #f1c40f;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.stat-item p {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.discord-section {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../grafika/tlo.png') fixed center center/cover;
    position: relative;
    border-top: 1px solid #333;
}

.discord-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

.discord-content p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-discord-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #5865F2;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-top: 30px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-discord-large:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.main-footer {
    background: #080808; 
    position: relative;
    padding-top: 60px;
    margin-top: auto; 
    z-index: 10;
    overflow: hidden;
}

.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f1c40f, transparent);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px 60px 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    max-width: 350px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-desc {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-icon:hover {
    color: #000;
    background: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-left: 15px;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #f1c40f;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-nav a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: #555;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #f1c40f;
    padding-left: 5px; 
}

.footer-nav a:hover i {
    color: #f1c40f;
}

.btn-discord-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-discord-footer:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.server-status {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s infinite;
}
.status-dot.online { background: #2ecc71; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.footer-bottom {
    background: #000;
    padding: 20px 0;
    border-top: 1px solid #111;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #555;
    font-size: 0.85rem;
}

.copyright .author {
    color: #f1c40f;
}

.payment-methods {
    display: flex;
    gap: 15px;
    color: #444;
    font-size: 1.5rem;
}

.user-menu-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.user-menu-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    user-select: none;
}

.user-menu-trigger:hover,
.user-menu-container.active .user-menu-trigger {
    color: #fff;
    border: 1px solid rgba(241, 196, 15, 0.2);
    background: rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

.dropdown-arrow {
    font-size: 0.8em;
    color: #f1c40f;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin-left: 5px;
}

.user-menu-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid #f1c40f;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}

.user-menu-container.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-item a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: #aaa;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item a i {
    width: 25px;
    margin-right: 15px;
    text-align: center;
    color: #555;
    transition: 0.3s;
    font-size: 1rem;
}

.dropdown-item a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding-left: 30px;
    border-left-color: #f1c40f;
}

.dropdown-item a:hover i {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.dropdown-item.admin-link {
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item.admin-link a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
    border-left-color: #e74c3c;
}

.dropdown-item.admin-link a i {
    color: #c0392b;
}

.dropdown-separator {
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.02), rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    margin: 5px 0;
}

.dropdown-item.logout-link a {
    color: #888;
    font-size: 0.95rem;
}

.dropdown-item.logout-link a:hover {
    color: #fff;
    background: rgba(255, 0, 0, 0.1);
    border-left-color: #ff3333;
}

.rank-user { color: #777; }
.rank-premium { color: #f1c40f; text-shadow: 0 0 5px rgba(241, 196, 15, 0.4); }
.rank-support { color: #2ecc71; }
.rank-mod { color: #3498db; }
.rank-admin { color: #e74c3c; text-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }
.mobile-only { display: none; }

@media (max-width: 1024px) {
    .content-wrapper h1 {
        font-size: 4rem;
    }
    .main-header {
        padding: 15px 30px;
    }
    .navbar ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }
    .navbar {
        display: none;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding-top: 20px;
        padding-bottom: 40px;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .header-right {
        display: none;
    }
    .hamburger {
        display: block;
    }
    
    .mobile-only {
        display: block;
    }
    
    .content-wrapper h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-particle, .btn-secondary {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        padding: 0;
    }

    .user-menu-container {
        display: none !important;
    }

    .navbar .mobile-user-separator {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        display: block;
    }
    
    .navbar .mobile-user-info {
        color: #777;
        font-size: 0.9rem;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
    }
    
    .navbar li.mobile-only {
        width: 100%;
        text-align: center;
    }
    
    .navbar li a.mobile-link {
        font-size: 1.1rem;
        color: #ccc;
        display: block;
        padding: 5px 0;
    }
    
    .navbar li a.mobile-link:hover {
        color: #f1c40f;
    }
    
    .navbar li a.mobile-admin {
        color: #e74c3c !important;
        border: 1px solid rgba(231, 76, 60, 0.2);
        background: rgba(231, 76, 60, 0.05);
    }
    
    .navbar li a.mobile-logout {
        color: #f1c40f !important;
        font-weight: bold;
        border: 1px solid rgba(241, 196, 15, 0.3);
        background: rgba(241, 196, 15, 0.05);
        margin-top: 10px;
        padding: 10px 0;
    }
}

@media (min-width: 1920px) {
    .content-wrapper h1 {
        font-size: 7rem;
    }
    .hero-subtitle {
        font-size: 2rem;
    }
    .navbar a {
        font-size: 1.4rem;
    }
    .main-header .container, .footer-container {
        max-width: 1600px;
    }
}