:root {
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --purple: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-light: #A78BFA;
    --purple-glow: rgba(139, 92, 246, 0.5);
    --bg-dark: #0F0A1A;
    --bg-card: #1A1025;
    --bg-card-hover: #251535;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    color: var(--text-light) !important;
    box-shadow: 0 4px 20px var(--purple-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 28px !important;
    font-size: 1.05rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    color: var(--text-light);
    box-shadow: 0 4px 25px var(--purple-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--text-light);
    box-shadow: 0 4px 20px var(--purple-glow);
    transform: translateY(-3px);
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    flex-wrap: wrap;
    justify-content: center;
}

.ip-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ip-address {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: monospace;
}

.copy-btn {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--purple);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: 
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%),
        var(--bg-dark);
}

.cta-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links a,
.footer-social a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--purple-light);
    transform: translateX(5px);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 10px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 10, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 30px;
    }

    .btn-large {
        padding: 15px 35px !important;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .server-ip {
        flex-direction: column;
        gap: 10px;
    }

    .features {
        padding: 60px 0;
    }

    .stats {
        padding: 50px 0;
    }

    .cta {
        padding: 60px 0;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

.hero-title {
    animation: float 4s ease-in-out infinite;
}

.btn-primary {
    animation: glow 3s ease-in-out infinite;
}

/* Legal Pages */
.legal-page {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    margin-bottom: 40px;
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-section p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--gold);
}

.legal-section ul {
    color: var(--text-muted);
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
}

.back-btn {
    display: inline-block;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px;
    }
    
    .legal-page {
        padding: 100px 15px 60px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--purple-light);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-ip-box {
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.modal-ip {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-copy-btn {
    width: 100%;
    margin-bottom: 25px;
}

.modal-instructions {
    text-align: left;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-instructions p {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.modal-instructions ol {
    color: var(--text-muted);
    margin-left: 20px;
    font-size: 0.9rem;
}

.modal-instructions li {
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .modal {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-ip {
        font-size: 1.2rem;
    }
    
    .modal-ip-box {
        padding: 15px 20px;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.login-container,
.profile-container {
    width: 100%;
    max-width: 450px;
}

.login-box,
.profile-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.login-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.login-btn {
    width: 100%;
    position: relative;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(15, 10, 26, 0.3);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.login-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.login-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-tab:hover {
    color: var(--text-light);
}

.login-tab.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--text-light);
    box-shadow: 0 2px 10px var(--purple-glow);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

/* Profile Box */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.profile-rank {
    display: flex;
}

.rank-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rank Colors */
.rank-owner { background: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
.rank-admin { background: #ff5555; box-shadow: 0 0 15px rgba(255, 85, 85, 0.5); }
.rank-moderator { background: #00aa00; box-shadow: 0 0 15px rgba(0, 170, 0, 0.5); }
.rank-supporter { background: #55ffff; color: #000; box-shadow: 0 0 15px rgba(85, 255, 255, 0.5); }
.rank-builder { background: #ffaa00; color: #000; box-shadow: 0 0 15px rgba(255, 170, 0, 0.5); }
.rank-vip { background: #55ff55; color: #000; box-shadow: 0 0 15px rgba(85, 255, 85, 0.5); }
.rank-premium { background: #ffff55; color: #000; box-shadow: 0 0 15px rgba(255, 255, 85, 0.5); }
.rank-spieler { background: #aaaaaa; box-shadow: 0 0 15px rgba(170, 170, 170, 0.5); }

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info .stat-value {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-value.online {
    color: #10b981;
}

.stat-value.offline {
    color: #ef4444;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-actions .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 480px) {
    .login-box,
    .profile-box {
        padding: 30px 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}
