/* Variables */
        :root {
            --primary: #7540db;
            --primary-light: #8a53f2;
            --primary-dark: #5d2bb1;
            --secondary: #f04e98;
            --light: #ffffff;
            --light-gray: #f8f9fc;
            --gray: #e0e0e0;
            --dark-gray: #757575;
            --dark: #222236;
            --black: #14141e;
            --accent: #ff9100;
            --success: #4caf50;
            --error: #f44336;
            --warning: #ff9800;
            --text-primary: #14141e;
            --text-secondary: #4f4f6f;
            --text-tertiary: #79798f;
            --transition: all 0.25s ease;
            --border-radius: 8px;
            --card-radius: 10px;
            --box-shadow: 0 4px 12px rgba(20, 20, 30, 0.06);
            --button-shadow: 0 4px 12px rgba(117, 64, 219, 0.15);
        }

        /* Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            background-color: var(--light-gray);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            font-weight: 400;
        }

        body.no-scroll {
            overflow: hidden;
        }

        a {
            text-decoration: none;
            color: var(--text-primary);
            transition: var(--transition);
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        img {
            max-width: 100%;
            height: auto;
            object-fit: cover;
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        p {
            margin-bottom: 1rem;
            color: var(--text-secondary);
        }

        /* Header & Navigation */
        header {
            background-color: rgba(20, 20, 30, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            transition: var(--transition);
            height: 65px;
        }

        header.scrolled {
            height: 55px;
            background-color: rgba(20, 20, 30, 0.98);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo {
            display: flex;
            align-items: center;
            z-index: 101;
        }

        .logo img {
            height: 28px;
            margin-right: 10px;
        }

        .logo h1 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: none;
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 0.2rem;
            align-items: center;
        }

        .nav-links li {
            position: relative;
            display: flex;
            align-items: center;
        }

        .nav-links a {
            position: relative;
            padding: 0.5rem 0.8rem;
            color: var(--light);
            display: flex;
            align-items: center;
            font-size: 0.85rem;
            font-weight: 600;
            white-space: nowrap;
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .nav-links a i {
            margin-right: 6px;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .nav-links a:hover {
            color: var(--primary-light);
            background-color: rgba(255, 255, 255, 0.05);
        }

        .nav-links a.active {
            color: var(--primary-light);
            background-color: rgba(117, 64, 219, 0.1);
        }

        /* Dropdown menu style */
        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            min-width: 200px;
            background-color: var(--dark);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 101;
            border-radius: var(--border-radius);
            margin-top: 5px;
            border-top: 2px solid var(--primary);
            padding: 0.5rem;
            animation: fadeIn 0.2s ease;
        }

        .dropdown-content::before {
            content: '';
            position: absolute;
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 0 6px 7px 6px;
            border-style: solid;
            border-color: transparent transparent var(--primary) transparent;
        }

        .dropdown-content a {
            color: var(--light);
            padding: 0.7rem 1rem;
            display: block;
            text-align: left;
            transition: var(--transition);
            border-radius: 6px;
            margin: 0.2rem 0;
        }

        .dropdown-content a i {
            margin-right: 8px;
            width: 16px;
            text-align: center;
        }

        .dropdown-content a:hover {
            background-color: rgba(117, 64, 219, 0.1);
            color: var(--primary-light);
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown > a::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-left: 6px;
            font-size: 0.7rem;
            transition: transform 0.3s ease;
            opacity: 0.8;
        }

        .dropdown:hover > a::after {
            transform: rotate(180deg);
        }

        /* Auth buttons */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        /* Button styles */
        .btn {
            padding: 0.5rem 1.2rem;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: none;
            font-size: 0.85rem;
            gap: 0.5rem;
            line-height: 1.4;
            text-transform: none;
            letter-spacing: 0;
        }

        .btn i {
            font-size: 0.85rem;
        }

        .btn-primary {
            background: linear-gradient(45deg, var(--primary), var(--primary-light));
            color: white;
            position: relative;
            z-index: 1;
            overflow: hidden;
            box-shadow: var(--button-shadow);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(45deg, var(--primary-dark), var(--primary));
            transition: var(--transition);
            z-index: -1;
        }

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

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(117, 64, 219, 0.25);
        }

        .btn-outline {
            background: transparent;
            border: 1.5px solid rgba(255, 255, 255, 0.15);
            color: var(--light);
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        .btn-outline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.08);
            transition: var(--transition);
            z-index: -1;
        }

        .btn-outline:hover::before {
            width: 100%;
        }

        .btn-outline:hover {
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--secondary);
            color: white;
            position: relative;
            z-index: 1;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(240, 78, 152, 0.15);
        }

        .btn-secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(45deg, #e03a8b, var(--secondary));
            transition: var(--transition);
            z-index: -1;
        }

        .btn-secondary:hover::before {
            width: 100%;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(240, 78, 152, 0.25);
        }

        .btn-accent {
            background: var(--accent);
            color: white;
            position: relative;
            z-index: 1;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(255, 145, 0, 0.15);
        }

        .btn-accent::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(45deg, #e68300, var(--accent));
            transition: var(--transition);
            z-index: -1;
        }

        .btn-accent:hover::before {
            width: 100%;
        }

        .btn-accent:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 145, 0, 0.25);
        }

        .btn-block {
            display: block;
            width: 100%;
        }

        /* Mobile menu control */
        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            color: var(--light);
            font-size: 1.3rem;
            padding: 5px;
            z-index: 102;
        }

        .close-menu {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--light);
            font-size: 1.2rem;
            cursor: pointer;
            display: none;
            z-index: 102;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            transition: var(--transition);
            align-items: center;
            justify-content: center;
        }

        .close-menu:hover {
            background-color: var(--primary);
            transform: rotate(90deg);
        }

        /* Menu overlay */
        .menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: rgba(20, 20, 30, 0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 99;
        }

        .menu-overlay.active {
            display: block;
        }

        /* Main content */
        main {
            padding-top: 65px;
        }

        /* Hero Section */
        .hero-servers {
            padding: 3rem 0 2rem;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            position: relative;
            overflow: hidden;
            min-height: 200px;
            display: flex;
            align-items: center;
        }

        .hero-servers::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('<?= ROOT ?>data/system/game_server.svg') center/cover no-repeat;
            opacity: 0.1;
            z-index: 1;
        }

        .hero-servers::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 50px;
            background: linear-gradient(to top, var(--light-gray), transparent);
            z-index: 2;
        }

        .hero-servers .container {
            position: relative;
            z-index: 3;
            text-align: center;
        }

        .hero-servers h2 {
            font-size: 2.2rem;
            margin-bottom: 0.8rem;
            color: var(--light);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-servers p {
            font-size: 1rem;
            margin-bottom: 1rem;
            color: rgba(255, 255, 255, 0.8);
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Improved Search and Filter Section */
        .search-section {
            background-color: var(--light-gray);
            padding: 1rem 0;
            position: relative;
            margin-bottom: 0;
        }

        .search-container {
            background-color: white;
            border-radius: var(--card-radius);
            padding: 1.2rem;
            box-shadow: var(--box-shadow);
            margin-bottom: 1.5rem;
            border: 1px solid rgba(0, 0, 0, 0.03);
            position: relative;
        }

        /* Improved search bar */
        .search-bar {
            display: flex;
            margin-bottom: 1rem;
            position: relative;
        }

        .search-input {
            flex: 1;
            padding: 0.8rem 1.2rem 0.8rem 3rem;
            border-radius: 30px;
            border: 1px solid var(--gray);
            font-size: 0.95rem;
            transition: var(--transition);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(117, 64, 219, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 0.9rem;
            pointer-events: none;
        }

        .search-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.5rem 1.2rem;
            border-radius: 30px;
            background: linear-gradient(45deg, var(--primary), var(--primary-light));
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            font-size: 0.85rem;
        }

        .search-btn:hover {
            background: linear-gradient(45deg, var(--primary-dark), var(--primary));
            transform: translateY(-50%) scale(1.03);
            box-shadow: 0 4px 10px rgba(117, 64, 219, 0.2);
        }

        /* Filter toggle */
        .filter-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            cursor: pointer;
        }

        .filter-toggle h4 {
            font-size: 0.95rem;
            margin-bottom: 0;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-toggle h4 i {
            color: var(--primary);
            transition: var(--transition);
        }

        .filter-toggle.active h4 i {
            transform: rotate(180deg);
        }

        .filter-toggle-icon {
            font-size: 1.1rem;
            color: var(--text-tertiary);
            transition: var(--transition);
        }

        /* Improved filter rows */
        .filter-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .filter-content.show {
            max-height: 500px;
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            align-items: center;
        }

        .filter-group {
            flex: 1;
            min-width: 150px;
            position: relative;
        }

        .filter-label {
            display: block;
            margin-bottom: 0.3rem;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-tertiary);
        }

        .filter-select {
            width: 100%;
            padding: 0.6rem 2.5rem 0.6rem 1rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--gray);
            background-color: white;
            font-size: 0.9rem;
            color: var(--text-secondary);
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f4f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 0.8rem;
            transition: var(--transition);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(117, 64, 219, 0.1);
        }

        .filter-icon {
            position: absolute;
            left: 1rem;
            top: 2.2rem;
            color: var(--text-tertiary);
            font-size: 0.8rem;
            pointer-events: none;
        }

        .filter-btns {
            display: flex;
            gap: 0.5rem;
            margin-left: auto;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .filter-btn i {
            font-size: 0.8rem;
        }

        /* Server List Section */
        .servers-section {
            padding: 1.5rem 0 4rem;
            background-color: var(--light-gray);
        }

        .section-header {
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
        }

        .section-subtitle {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.6rem;
            position: relative;
            padding: 0 10px;
        }

        .section-subtitle::before,
        .section-subtitle::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30px;
            height: 1px;
            background-color: var(--primary);
            opacity: 0.5;
        }

        .section-subtitle::before {
            left: -30px;
        }

        .section-subtitle::after {
            right: -30px;
        }

        .section-header h3 {
            font-size: 2rem;
            margin-bottom: 0.8rem;
            position: relative;
            display: inline-block;
            color: var(--text-primary);
        }

        .section-header h3 span {
            color: var(--primary);
        }

        .section-header p {
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* Improved List View for Servers */
        .servers-list {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin-bottom: 2rem;
        }

        .server-item {
            background: white;
            border-radius: var(--card-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.03);
            display: flex;
            height: 130px;
        }

        .server-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            border-color: rgba(117, 64, 219, 0.2);
        }

        .server-thumb {
            width: 180px;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .server-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .server-item:hover .server-thumb img {
            transform: scale(1.05);
        }

        .server-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            padding: 0.2rem 0.6rem;
            border-radius: 15px;
            font-size: 0.65rem;
            font-weight: bold;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
            z-index: 2;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .server-price {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.2rem 0.6rem;
            border-radius: 15px;
            font-size: 0.7rem;
            font-weight: bold;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            z-index: 2;
        }

        .server-price.free {
            background: var(--success);
        }

        .server-detail {
            padding: 1rem 1.2rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            position: relative;
        }

        .server-detail h4 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .server-detail h4 .online-dot {
            width: 8px;
            height: 8px;
            background-color: var(--success);
            border-radius: 50%;
            display: inline-block;
        }

        .server-item:hover .server-detail h4 {
            color: var(--primary);
        }

        .server-detail p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }

        .server-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .server-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 4px;
            background-color: rgba(117, 64, 219, 0.06);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }

        .stat i {
            color: var(--primary);
            font-size: 0.8rem;
        }

        .server-actions {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .server-date {
            color: var(--text-tertiary);
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .server-join {
            padding: 0.4rem 1rem;
            background: var(--primary);
            color: white;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: var(--button-shadow);
        }

        .server-join:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(117, 64, 219, 0.25);
        }

        /* Improved Tags */
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.6rem;
        }

        .tag {
            background-color: rgba(117, 64, 219, 0.06);
            color: var(--primary);
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .tag i {
            font-size: 0.65rem;
        }

        .tag:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-1px);
        }

        /* Pagination */
        
        .page-item {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: white;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            font-weight: 600;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        .page-item:hover {
            background-color: var(--primary-light);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(117, 64, 219, 0.15);
        }

.page-item.active {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 5px 15px rgba(117, 64, 219, 0.2);
        }

        .page-item.dots {
            box-shadow: none;
            background-color: transparent;
            border: none;
        }

        .page-item.dots:hover {
            transform: none;
            color: inherit;
            background-color: transparent;
        }

        /* Footer */
        footer {
            background-color: var(--black);
            color: var(--light);
            padding: 3.5rem 0 1rem;
            position: relative;
        }

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

        .footer-about {
            grid-column: span 2;
        }

        .footer-logo {
            color: var(--light);
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: inline-block;
        }

        .footer-logo span {
            color: var(--primary);
        }

        .footer-text {
            color: var(--dark-gray);
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            max-width: 400px;
        }

        .social-links {
            display: flex;
            gap: 0.8rem;
        }

        .social-links a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            font-size: 1rem;
            color: var(--light);
        }

        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(117, 64, 219, 0.3);
            color: white;
        }

        .footer-links h4 {
            font-size: 1.1rem;
            margin-bottom: 1.2rem;
            position: relative;
            padding-bottom: 0.8rem;
            color: var(--light);
        }

        .footer-links h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.7rem;
        }

        .footer-links a {
            color: var(--dark-gray);
            transition: var(--transition);
            position: relative;
            padding-left: 0;
            font-size: 0.9rem;
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 8px;
        }

        .footer-links a::before {
            content: '\f105';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            opacity: 0;
            transition: var(--transition);
        }

        .footer-links a:hover::before {
            opacity: 1;
            left: 0;
        }

        .newsletter {
            max-width: 500px;
            margin: 0 auto 3rem;
            text-align: center;
        }

        .newsletter h4 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--light);
        }

        .newsletter p {
            color: var(--dark-gray);
            margin-bottom: 1.2rem;
            font-size: 0.9rem;
        }

        .newsletter-form {
            display: flex;
            gap: 0.5rem;
        }

        .newsletter-form input {
            flex: 1;
            padding: 0.7rem 1rem;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--light);
            font-size: 0.9rem;
        }

        .newsletter-form input:focus {
            outline: none;
            border-color: var(--primary);
            background-color: rgba(255, 255, 255, 0.1);
        }

        .newsletter-form .btn {
            padding: 0.7rem 1.2rem;
        }

        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--dark-gray);
            font-size: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-bottom-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .footer-bottom-links a {
            color: var(--dark-gray);
            font-size: 0.85rem;
            transition: var(--transition);
        }

        .footer-bottom-links a:hover {
            color: var(--primary);
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: var(--transition);
            z-index: 99;
            box-shadow: 0 5px 15px rgba(117, 64, 219, 0.3);
            font-size: 0.9rem;
        }

        .back-to-top.visible {
            opacity: 1;
        }

        .back-to-top:hover {
            background: var(--primary-light);
            transform: translateY(-5px);
        }

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

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes floatImage {
            0%, 100% {
                transform: perspective(1000px) rotateY(-5deg) translateY(0);
            }
            50% {
                transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.2;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.1;
            }
            100% {
                transform: scale(1);
                opacity: 0.2;
            }
        }

        

        /* Responsive Design */
        @media (max-width: 1200px) {
            .container {
                max-width: 1000px;
            }
        }

        @media (max-width: 992px) {
            .container {
                max-width: 800px;
            }
            
            .filter-row {
                flex-wrap: wrap;
            }

            .filter-group {
                min-width: calc(50% - 0.5rem);
            }

            .filter-btns {
                width: 100%;
                margin-top: 1rem;
                justify-content: flex-end;
            }

            .server-thumb {
                width: 160px;
            }
            
            .auth-buttons {
                display: none;
            }
        }

        @media (max-width: 768px) {
            html {
                font-size: 15px;
            }
            
            .container {
                max-width: 100%;
            }
            
            .hero-servers h2 {
                font-size: 1.8rem;
            }
            
            .hamburger {
                display: block;
            }
            
            .close-menu {
                display: flex;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                left: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                flex-direction: column;
                background-color: var(--dark);
                box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
                padding: 80px 1.5rem 2rem;
                z-index: 101;
                overflow-y: auto;
                transition: left 0.3s ease;
                align-items: flex-start;
                gap: 0;
            }
            
            .nav-links.active {
                left: 0;
            }
            
            .nav-links.closing {
                left: -100%;
            }
            
            .nav-links li {
                width: 100%;
            }
            
            .nav-links a {
                padding: 1rem 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
                width: 100%;
                border-radius: 0;
            }
            
            .dropdown-content {
                position: static;
                transform: none;
                min-width: auto;
                background-color: transparent;
                box-shadow: none;
                border-top: none;
                padding: 0;
                margin: 0;
                margin-left: 1rem;
                border-left: 2px solid var(--primary);
                display: none;
            }
            
            .dropdown-content::before {
                display: none;
            }
            
            .dropdown-content a {
                padding: 0.7rem 1rem;
                border-radius: 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            }
            
            .dropdown:hover .dropdown-content {
                display: none;
            }
            
            .dropdown > a.active + .dropdown-content {
                display: block;
            }
            
            .server-item {
                flex-direction: column;
                height: auto;
            }

            .server-thumb {
                width: 100%;
                height: 160px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-about {
                grid-column: 1;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
        }

        @media (max-width: 576px) {
            html {
                font-size: 14px;
            }
            
            .hero-servers h2 {
                font-size: 1.6rem;
            }
            
            .filter-group {
                min-width: 100%;
            }
            
            .search-input {
                padding: 0.8rem 1rem 0.8rem 2.8rem;
            }
            
            .search-btn {
                position: relative;
                width: 100%;
                transform: none;
                right: 0;
                top: 0;
                margin-top: 0.5rem;
            }
            
            .search-bar {
                flex-direction: column;
            }
            
            .server-meta-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .server-actions {
                width: 100%;
                justify-content: space-between;
            }
        }